merged changes from master
This commit is contained in:
commit
f366cb52f1
|
@ -1,5 +1,13 @@
|
|||
/bin
|
||||
/target
|
||||
target/
|
||||
.idea/
|
||||
.project/
|
||||
.settings/
|
||||
.metadata/
|
||||
RemoteSystemsTempFiles/
|
||||
Servers/
|
||||
*.iml
|
||||
*.log
|
||||
*.log*
|
||||
nohup.out
|
||||
|
|
|
@ -0,0 +1,52 @@
|
|||
<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>
|
||||
<groupId>ca.uhn.hapi.fhir</groupId>
|
||||
<artifactId>hapi-fhir</artifactId>
|
||||
<version>0.8-SNAPSHOT</version>
|
||||
<relativePath>../pom.xml</relativePath>
|
||||
</parent>
|
||||
|
||||
<artifactId>hapi-fhir-base-examples</artifactId>
|
||||
<packaging>jar</packaging>
|
||||
|
||||
<name>HAPI FHIR - Examples (for site)</name>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>ca.uhn.hapi.fhir</groupId>
|
||||
<artifactId>hapi-fhir-base</artifactId>
|
||||
<version>0.8-SNAPSHOT</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>ca.uhn.hapi.fhir</groupId>
|
||||
<artifactId>hapi-fhir-structures-dstu</artifactId>
|
||||
<version>0.8-SNAPSHOT</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>javax.servlet</groupId>
|
||||
<artifactId>javax.servlet-api</artifactId>
|
||||
<version>3.1.0</version>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>junit</groupId>
|
||||
<artifactId>junit</artifactId>
|
||||
<version>${junit_version}</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-deploy-plugin</artifactId>
|
||||
<configuration>
|
||||
<skip>true</skip>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
|
||||
</project>
|
|
@ -4,7 +4,7 @@
|
|||
<parent>
|
||||
<groupId>ca.uhn.hapi.fhir</groupId>
|
||||
<artifactId>hapi-fhir</artifactId>
|
||||
<version>0.7-SNAPSHOT</version>
|
||||
<version>0.8-SNAPSHOT</version>
|
||||
<relativePath>../../pom.xml</relativePath>
|
||||
</parent>
|
||||
|
||||
|
@ -17,7 +17,15 @@
|
|||
<dependency>
|
||||
<groupId>ca.uhn.hapi.fhir</groupId>
|
||||
<artifactId>hapi-fhir-base</artifactId>
|
||||
<version>0.7-SNAPSHOT</version>
|
||||
<version>0.8-SNAPSHOT</version>
|
||||
<<<<<<< HEAD
|
||||
=======
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>ca.uhn.hapi.fhir</groupId>
|
||||
<artifactId>hapi-fhir-structures-dstu</artifactId>
|
||||
<version>0.8-SNAPSHOT</version>
|
||||
>>>>>>> versions
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>javax.servlet</groupId>
|
|
@ -35,12 +35,18 @@ patient.addUndeclaredExtension(ext);
|
|||
|
||||
|
||||
//START SNIPPET: resourceStringExtension
|
||||
// Continuing the example from above, we will add a name to the patient, and then
|
||||
// add an extension to part of that name
|
||||
HumanNameDt name = patient.addName();
|
||||
name.addFamily().setValue("Shmoe");
|
||||
|
||||
// Add a new "given name", which is of type StringDt
|
||||
StringDt given = name.addGiven();
|
||||
given.setValue("Joe");
|
||||
ExtensionDt ext2 = new ExtensionDt(false, "http://examples.com#moreext", new StringDt("Hello"));
|
||||
given.addUndeclaredExtension(ext2);
|
||||
|
||||
// Create an extension and add it to the StringDt
|
||||
ExtensionDt givenExt = new ExtensionDt(false, "http://examples.com#moreext", new StringDt("Hello"));
|
||||
given.addUndeclaredExtension(givenExt);
|
||||
//END SNIPPET: resourceStringExtension
|
||||
|
||||
String output = new FhirContext().newXmlParser().setPrettyPrint(true).encodeResourceToString(patient);
|
||||
|
@ -64,10 +70,12 @@ List<ExtensionDt> modExts = patient.getUndeclaredModifierExtensions();
|
|||
public void foo() {
|
||||
//START SNIPPET: subExtension
|
||||
Patient patient = new Patient();
|
||||
|
||||
|
||||
// Add an extension (initially with no contents) to the resource
|
||||
ExtensionDt parent = new ExtensionDt(false, "http://example.com#parent");
|
||||
patient.addUndeclaredExtension(parent);
|
||||
|
||||
// Add two extensions as children to the parent extension
|
||||
ExtensionDt child1 = new ExtensionDt(false, "http://example.com#childOne", new StringDt("value1"));
|
||||
parent.addUndeclaredExtension(child1);
|
||||
|
|
@ -6,6 +6,8 @@ import java.util.List;
|
|||
import ca.uhn.fhir.context.FhirContext;
|
||||
import ca.uhn.fhir.model.api.Bundle;
|
||||
import ca.uhn.fhir.model.api.IResource;
|
||||
import ca.uhn.fhir.model.base.resource.BaseConformance;
|
||||
import ca.uhn.fhir.model.base.resource.BaseOperationOutcome;
|
||||
import ca.uhn.fhir.model.dstu.resource.Conformance;
|
||||
import ca.uhn.fhir.model.dstu.resource.Observation;
|
||||
import ca.uhn.fhir.model.dstu.resource.OperationOutcome;
|
||||
|
@ -82,19 +84,19 @@ public class GenericClientExample {
|
|||
// START SNIPPET: conformance
|
||||
// Retrieve the server's conformance statement and print its
|
||||
// description
|
||||
Conformance conf = client.conformance();
|
||||
System.out.println(conf.getDescription().getValue());
|
||||
BaseConformance conf = client.conformance();
|
||||
System.out.println(conf.getDescriptionElement().getValue());
|
||||
// END SNIPPET: conformance
|
||||
}
|
||||
{
|
||||
// START SNIPPET: delete
|
||||
// Retrieve the server's conformance statement and print its
|
||||
// description
|
||||
OperationOutcome outcome = client.delete().resourceById(new IdDt("Patient", "1234")).execute();
|
||||
BaseOperationOutcome outcome = client.delete().resourceById(new IdDt("Patient", "1234")).execute();
|
||||
|
||||
// outcome may be null if the server didn't return one
|
||||
if (outcome != null) {
|
||||
System.out.println(outcome.getIssueFirstRep().getDetails().getValue());
|
||||
System.out.println(outcome.getIssueFirstRep().getDetailsElement().getValue());
|
||||
}
|
||||
// END SNIPPET: delete
|
||||
}
|
|
@ -0,0 +1,36 @@
|
|||
package example;
|
||||
|
||||
import ca.uhn.fhir.context.FhirContext;
|
||||
import ca.uhn.fhir.model.dstu.resource.Organization;
|
||||
import ca.uhn.fhir.model.dstu.resource.Patient;
|
||||
|
||||
public class ResourceRefs {
|
||||
|
||||
private static FhirContext ourCtx = new FhirContext();
|
||||
|
||||
public static void main(String[] args) {
|
||||
manualContained();
|
||||
}
|
||||
|
||||
public static void manualContained() {
|
||||
// START SNIPPET: manualContained
|
||||
// Create an organization, and give it a local ID
|
||||
Organization org = new Organization();
|
||||
org.setId("#localOrganization");
|
||||
org.getName().setValue("Contained Test Organization");
|
||||
|
||||
// Create a patient
|
||||
Patient patient = new Patient();
|
||||
patient.setId("Patient/1333");
|
||||
patient.addIdentifier("urn:mrns", "253345");
|
||||
|
||||
// Set the reference, and manually add the contained resource
|
||||
patient.getManagingOrganization().setReference("#localOrganization");
|
||||
patient.getContained().getContainedResources().add(org);
|
||||
|
||||
String encoded = ourCtx.newXmlParser().setPrettyPrint(true).encodeResourceToString(patient);
|
||||
System.out.println(encoded);
|
||||
// END SNIPPET: manualContained
|
||||
}
|
||||
|
||||
}
|
|
@ -19,6 +19,7 @@ import ca.uhn.fhir.model.api.Tag;
|
|||
import ca.uhn.fhir.model.api.TagList;
|
||||
import ca.uhn.fhir.model.api.TemporalPrecisionEnum;
|
||||
import ca.uhn.fhir.model.api.annotation.Description;
|
||||
import ca.uhn.fhir.model.base.composite.BaseCodingDt;
|
||||
import ca.uhn.fhir.rest.annotation.TagListParam;
|
||||
import ca.uhn.fhir.model.dstu.composite.CodingDt;
|
||||
import ca.uhn.fhir.model.dstu.resource.Conformance;
|
||||
|
@ -430,7 +431,7 @@ public List<Observation> searchByObservationNames(
|
|||
|
||||
// The list here will contain 0..* codings, and any observations which match any of the
|
||||
// given codings should be returned
|
||||
List<CodingDt> wantedCodings = theCodings.getListAsCodings();
|
||||
List<BaseCodingDt> wantedCodings = theCodings.getListAsCodings();
|
||||
|
||||
List<Observation> retVal = new ArrayList<Observation>();
|
||||
// ...populate...
|
|
@ -0,0 +1,115 @@
|
|||
<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>
|
||||
<groupId>ca.uhn.hapi.fhir</groupId>
|
||||
<artifactId>hapi-fhir</artifactId>
|
||||
<version>0.8-SNAPSHOT</version>
|
||||
<relativePath>../pom.xml</relativePath>
|
||||
</parent>
|
||||
|
||||
<artifactId>hapi-deployable-pom</artifactId>
|
||||
<packaging>pom</packaging>
|
||||
|
||||
<name>HAPI FHIR - Deployable Artifact Parent POM</name>
|
||||
|
||||
<reporting>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-project-info-reports-plugin</artifactId>
|
||||
<version>2.7</version>
|
||||
<reportSets>
|
||||
<reportSet>
|
||||
<reports>
|
||||
</reports>
|
||||
</reportSet>
|
||||
</reportSets>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-javadoc-plugin</artifactId>
|
||||
<version>${maven_javadoc_plugin_version}</version>
|
||||
<reportSets>
|
||||
<reportSet>
|
||||
<id>default</id>
|
||||
<reports>
|
||||
<report>javadoc</report>
|
||||
</reports>
|
||||
<configuration>
|
||||
<links>
|
||||
<link>http://docs.oracle.com/javaee/7/api</link>
|
||||
</links>
|
||||
</configuration>
|
||||
</reportSet>
|
||||
</reportSets>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</reporting>
|
||||
|
||||
<profiles>
|
||||
<profile>
|
||||
<id>DIST</id>
|
||||
<build>
|
||||
<plugins>
|
||||
<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>
|
||||
<version>${maven_source_plugin_version}</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<phase>package</phase>
|
||||
<goals>
|
||||
<goal>jar-no-fork</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.codehaus.mojo</groupId>
|
||||
<artifactId>license-maven-plugin</artifactId>
|
||||
<version>${maven_license_plugin_version}</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>first</id>
|
||||
<goals>
|
||||
<goal>update-file-header</goal>
|
||||
</goals>
|
||||
<phase>process-sources</phase>
|
||||
<configuration>
|
||||
<licenseName>apache_v2</licenseName>
|
||||
<canUpdateDescription>true</canUpdateDescription>
|
||||
<canUpdateCopyright>true</canUpdateCopyright>
|
||||
<roots>
|
||||
<root>src/main/java</root>
|
||||
</roots>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
</profile>
|
||||
</profiles>
|
||||
|
||||
</project>
|
|
@ -1,2 +1,3 @@
|
|||
/target
|
||||
/bin
|
||||
/target/
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
eclipse.preferences.version=1
|
||||
encoding//src/main/java=UTF-8
|
||||
encoding//src/main/resources=UTF-8
|
||||
encoding//src/test/java=UTF-8
|
||||
encoding//src/test/resources=UTF-8
|
||||
encoding/<project>=UTF-8
|
||||
|
|
|
@ -1,289 +0,0 @@
|
|||
eclipse.preferences.version=1
|
||||
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
|
||||
org.eclipse.jdt.core.compiler.compliance=1.6
|
||||
org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
|
||||
org.eclipse.jdt.core.compiler.source=1.6
|
||||
org.eclipse.jdt.core.formatter.align_type_members_on_columns=false
|
||||
org.eclipse.jdt.core.formatter.alignment_for_arguments_in_allocation_expression=16
|
||||
org.eclipse.jdt.core.formatter.alignment_for_arguments_in_annotation=0
|
||||
org.eclipse.jdt.core.formatter.alignment_for_arguments_in_enum_constant=16
|
||||
org.eclipse.jdt.core.formatter.alignment_for_arguments_in_explicit_constructor_call=16
|
||||
org.eclipse.jdt.core.formatter.alignment_for_arguments_in_method_invocation=16
|
||||
org.eclipse.jdt.core.formatter.alignment_for_arguments_in_qualified_allocation_expression=16
|
||||
org.eclipse.jdt.core.formatter.alignment_for_assignment=0
|
||||
org.eclipse.jdt.core.formatter.alignment_for_binary_expression=16
|
||||
org.eclipse.jdt.core.formatter.alignment_for_compact_if=16
|
||||
org.eclipse.jdt.core.formatter.alignment_for_conditional_expression=80
|
||||
org.eclipse.jdt.core.formatter.alignment_for_enum_constants=0
|
||||
org.eclipse.jdt.core.formatter.alignment_for_expressions_in_array_initializer=16
|
||||
org.eclipse.jdt.core.formatter.alignment_for_method_declaration=0
|
||||
org.eclipse.jdt.core.formatter.alignment_for_multiple_fields=16
|
||||
org.eclipse.jdt.core.formatter.alignment_for_parameters_in_constructor_declaration=16
|
||||
org.eclipse.jdt.core.formatter.alignment_for_parameters_in_method_declaration=16
|
||||
org.eclipse.jdt.core.formatter.alignment_for_resources_in_try=80
|
||||
org.eclipse.jdt.core.formatter.alignment_for_selector_in_method_invocation=16
|
||||
org.eclipse.jdt.core.formatter.alignment_for_superclass_in_type_declaration=16
|
||||
org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_enum_declaration=16
|
||||
org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_type_declaration=16
|
||||
org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_constructor_declaration=16
|
||||
org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_method_declaration=16
|
||||
org.eclipse.jdt.core.formatter.alignment_for_union_type_in_multicatch=16
|
||||
org.eclipse.jdt.core.formatter.blank_lines_after_imports=1
|
||||
org.eclipse.jdt.core.formatter.blank_lines_after_package=1
|
||||
org.eclipse.jdt.core.formatter.blank_lines_before_field=0
|
||||
org.eclipse.jdt.core.formatter.blank_lines_before_first_class_body_declaration=0
|
||||
org.eclipse.jdt.core.formatter.blank_lines_before_imports=1
|
||||
org.eclipse.jdt.core.formatter.blank_lines_before_member_type=1
|
||||
org.eclipse.jdt.core.formatter.blank_lines_before_method=1
|
||||
org.eclipse.jdt.core.formatter.blank_lines_before_new_chunk=1
|
||||
org.eclipse.jdt.core.formatter.blank_lines_before_package=0
|
||||
org.eclipse.jdt.core.formatter.blank_lines_between_import_groups=1
|
||||
org.eclipse.jdt.core.formatter.blank_lines_between_type_declarations=1
|
||||
org.eclipse.jdt.core.formatter.brace_position_for_annotation_type_declaration=end_of_line
|
||||
org.eclipse.jdt.core.formatter.brace_position_for_anonymous_type_declaration=end_of_line
|
||||
org.eclipse.jdt.core.formatter.brace_position_for_array_initializer=end_of_line
|
||||
org.eclipse.jdt.core.formatter.brace_position_for_block=end_of_line
|
||||
org.eclipse.jdt.core.formatter.brace_position_for_block_in_case=end_of_line
|
||||
org.eclipse.jdt.core.formatter.brace_position_for_constructor_declaration=end_of_line
|
||||
org.eclipse.jdt.core.formatter.brace_position_for_enum_constant=end_of_line
|
||||
org.eclipse.jdt.core.formatter.brace_position_for_enum_declaration=end_of_line
|
||||
org.eclipse.jdt.core.formatter.brace_position_for_lambda_body=end_of_line
|
||||
org.eclipse.jdt.core.formatter.brace_position_for_method_declaration=end_of_line
|
||||
org.eclipse.jdt.core.formatter.brace_position_for_switch=end_of_line
|
||||
org.eclipse.jdt.core.formatter.brace_position_for_type_declaration=end_of_line
|
||||
org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_block_comment=false
|
||||
org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_javadoc_comment=false
|
||||
org.eclipse.jdt.core.formatter.comment.format_block_comments=true
|
||||
org.eclipse.jdt.core.formatter.comment.format_header=false
|
||||
org.eclipse.jdt.core.formatter.comment.format_html=true
|
||||
org.eclipse.jdt.core.formatter.comment.format_javadoc_comments=true
|
||||
org.eclipse.jdt.core.formatter.comment.format_line_comments=true
|
||||
org.eclipse.jdt.core.formatter.comment.format_source_code=true
|
||||
org.eclipse.jdt.core.formatter.comment.indent_parameter_description=true
|
||||
org.eclipse.jdt.core.formatter.comment.indent_root_tags=true
|
||||
org.eclipse.jdt.core.formatter.comment.insert_new_line_before_root_tags=insert
|
||||
org.eclipse.jdt.core.formatter.comment.insert_new_line_for_parameter=insert
|
||||
org.eclipse.jdt.core.formatter.comment.line_length=80
|
||||
org.eclipse.jdt.core.formatter.comment.new_lines_at_block_boundaries=true
|
||||
org.eclipse.jdt.core.formatter.comment.new_lines_at_javadoc_boundaries=true
|
||||
org.eclipse.jdt.core.formatter.comment.preserve_white_space_between_code_and_line_comments=false
|
||||
org.eclipse.jdt.core.formatter.compact_else_if=true
|
||||
org.eclipse.jdt.core.formatter.continuation_indentation=2
|
||||
org.eclipse.jdt.core.formatter.continuation_indentation_for_array_initializer=2
|
||||
org.eclipse.jdt.core.formatter.disabling_tag=@formatter\:off
|
||||
org.eclipse.jdt.core.formatter.enabling_tag=@formatter\:on
|
||||
org.eclipse.jdt.core.formatter.format_guardian_clause_on_one_line=false
|
||||
org.eclipse.jdt.core.formatter.format_line_comment_starting_on_first_column=true
|
||||
org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_annotation_declaration_header=true
|
||||
org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_constant_header=true
|
||||
org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_declaration_header=true
|
||||
org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_type_header=true
|
||||
org.eclipse.jdt.core.formatter.indent_breaks_compare_to_cases=true
|
||||
org.eclipse.jdt.core.formatter.indent_empty_lines=false
|
||||
org.eclipse.jdt.core.formatter.indent_statements_compare_to_block=true
|
||||
org.eclipse.jdt.core.formatter.indent_statements_compare_to_body=true
|
||||
org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_cases=true
|
||||
org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_switch=false
|
||||
org.eclipse.jdt.core.formatter.indentation.size=3
|
||||
org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_field=insert
|
||||
org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_local_variable=insert
|
||||
org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_method=insert
|
||||
org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_package=insert
|
||||
org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_parameter=do not insert
|
||||
org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_type=insert
|
||||
org.eclipse.jdt.core.formatter.insert_new_line_after_label=do not insert
|
||||
org.eclipse.jdt.core.formatter.insert_new_line_after_opening_brace_in_array_initializer=do not insert
|
||||
org.eclipse.jdt.core.formatter.insert_new_line_after_type_annotation=do not insert
|
||||
org.eclipse.jdt.core.formatter.insert_new_line_at_end_of_file_if_missing=do not insert
|
||||
org.eclipse.jdt.core.formatter.insert_new_line_before_catch_in_try_statement=do not insert
|
||||
org.eclipse.jdt.core.formatter.insert_new_line_before_closing_brace_in_array_initializer=do not insert
|
||||
org.eclipse.jdt.core.formatter.insert_new_line_before_else_in_if_statement=do not insert
|
||||
org.eclipse.jdt.core.formatter.insert_new_line_before_finally_in_try_statement=do not insert
|
||||
org.eclipse.jdt.core.formatter.insert_new_line_before_while_in_do_statement=do not insert
|
||||
org.eclipse.jdt.core.formatter.insert_new_line_in_empty_annotation_declaration=insert
|
||||
org.eclipse.jdt.core.formatter.insert_new_line_in_empty_anonymous_type_declaration=insert
|
||||
org.eclipse.jdt.core.formatter.insert_new_line_in_empty_block=insert
|
||||
org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_constant=insert
|
||||
org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_declaration=insert
|
||||
org.eclipse.jdt.core.formatter.insert_new_line_in_empty_method_body=insert
|
||||
org.eclipse.jdt.core.formatter.insert_new_line_in_empty_type_declaration=insert
|
||||
org.eclipse.jdt.core.formatter.insert_space_after_and_in_type_parameter=insert
|
||||
org.eclipse.jdt.core.formatter.insert_space_after_assignment_operator=insert
|
||||
org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation=do not insert
|
||||
org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation_type_declaration=do not insert
|
||||
org.eclipse.jdt.core.formatter.insert_space_after_binary_operator=insert
|
||||
org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_arguments=insert
|
||||
org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_parameters=insert
|
||||
org.eclipse.jdt.core.formatter.insert_space_after_closing_brace_in_block=insert
|
||||
org.eclipse.jdt.core.formatter.insert_space_after_closing_paren_in_cast=insert
|
||||
org.eclipse.jdt.core.formatter.insert_space_after_colon_in_assert=insert
|
||||
org.eclipse.jdt.core.formatter.insert_space_after_colon_in_case=insert
|
||||
org.eclipse.jdt.core.formatter.insert_space_after_colon_in_conditional=insert
|
||||
org.eclipse.jdt.core.formatter.insert_space_after_colon_in_for=insert
|
||||
org.eclipse.jdt.core.formatter.insert_space_after_colon_in_labeled_statement=insert
|
||||
org.eclipse.jdt.core.formatter.insert_space_after_comma_in_allocation_expression=insert
|
||||
org.eclipse.jdt.core.formatter.insert_space_after_comma_in_annotation=insert
|
||||
org.eclipse.jdt.core.formatter.insert_space_after_comma_in_array_initializer=insert
|
||||
org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_parameters=insert
|
||||
org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_throws=insert
|
||||
org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_constant_arguments=insert
|
||||
org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_declarations=insert
|
||||
org.eclipse.jdt.core.formatter.insert_space_after_comma_in_explicitconstructorcall_arguments=insert
|
||||
org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_increments=insert
|
||||
org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_inits=insert
|
||||
org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_parameters=insert
|
||||
org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_throws=insert
|
||||
org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_invocation_arguments=insert
|
||||
org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_field_declarations=insert
|
||||
org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_local_declarations=insert
|
||||
org.eclipse.jdt.core.formatter.insert_space_after_comma_in_parameterized_type_reference=insert
|
||||
org.eclipse.jdt.core.formatter.insert_space_after_comma_in_superinterfaces=insert
|
||||
org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_arguments=insert
|
||||
org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_parameters=insert
|
||||
org.eclipse.jdt.core.formatter.insert_space_after_ellipsis=insert
|
||||
org.eclipse.jdt.core.formatter.insert_space_after_lambda_arrow=insert
|
||||
org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_parameterized_type_reference=do not insert
|
||||
org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_arguments=do not insert
|
||||
org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_parameters=do not insert
|
||||
org.eclipse.jdt.core.formatter.insert_space_after_opening_brace_in_array_initializer=insert
|
||||
org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_allocation_expression=do not insert
|
||||
org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_reference=do not insert
|
||||
org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_annotation=do not insert
|
||||
org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_cast=do not insert
|
||||
org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_catch=do not insert
|
||||
org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_constructor_declaration=do not insert
|
||||
org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_enum_constant=do not insert
|
||||
org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_for=do not insert
|
||||
org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_if=do not insert
|
||||
org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_declaration=do not insert
|
||||
org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_invocation=do not insert
|
||||
org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_parenthesized_expression=do not insert
|
||||
org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_switch=do not insert
|
||||
org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_synchronized=do not insert
|
||||
org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_try=do not insert
|
||||
org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_while=do not insert
|
||||
org.eclipse.jdt.core.formatter.insert_space_after_postfix_operator=do not insert
|
||||
org.eclipse.jdt.core.formatter.insert_space_after_prefix_operator=do not insert
|
||||
org.eclipse.jdt.core.formatter.insert_space_after_question_in_conditional=insert
|
||||
org.eclipse.jdt.core.formatter.insert_space_after_question_in_wildcard=do not insert
|
||||
org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_for=insert
|
||||
org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_try_resources=insert
|
||||
org.eclipse.jdt.core.formatter.insert_space_after_unary_operator=do not insert
|
||||
org.eclipse.jdt.core.formatter.insert_space_before_and_in_type_parameter=insert
|
||||
org.eclipse.jdt.core.formatter.insert_space_before_assignment_operator=insert
|
||||
org.eclipse.jdt.core.formatter.insert_space_before_at_in_annotation_type_declaration=insert
|
||||
org.eclipse.jdt.core.formatter.insert_space_before_binary_operator=insert
|
||||
org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_parameterized_type_reference=do not insert
|
||||
org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_arguments=do not insert
|
||||
org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_parameters=do not insert
|
||||
org.eclipse.jdt.core.formatter.insert_space_before_closing_brace_in_array_initializer=insert
|
||||
org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_allocation_expression=do not insert
|
||||
org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_reference=do not insert
|
||||
org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_annotation=do not insert
|
||||
org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_cast=do not insert
|
||||
org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_catch=do not insert
|
||||
org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_constructor_declaration=do not insert
|
||||
org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_enum_constant=do not insert
|
||||
org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_for=do not insert
|
||||
org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_if=do not insert
|
||||
org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_declaration=do not insert
|
||||
org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_invocation=do not insert
|
||||
org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_parenthesized_expression=do not insert
|
||||
org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_switch=do not insert
|
||||
org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_synchronized=do not insert
|
||||
org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_try=do not insert
|
||||
org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_while=do not insert
|
||||
org.eclipse.jdt.core.formatter.insert_space_before_colon_in_assert=insert
|
||||
org.eclipse.jdt.core.formatter.insert_space_before_colon_in_case=do not insert
|
||||
org.eclipse.jdt.core.formatter.insert_space_before_colon_in_conditional=insert
|
||||
org.eclipse.jdt.core.formatter.insert_space_before_colon_in_default=do not insert
|
||||
org.eclipse.jdt.core.formatter.insert_space_before_colon_in_for=insert
|
||||
org.eclipse.jdt.core.formatter.insert_space_before_colon_in_labeled_statement=do not insert
|
||||
org.eclipse.jdt.core.formatter.insert_space_before_comma_in_allocation_expression=do not insert
|
||||
org.eclipse.jdt.core.formatter.insert_space_before_comma_in_annotation=do not insert
|
||||
org.eclipse.jdt.core.formatter.insert_space_before_comma_in_array_initializer=do not insert
|
||||
org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_parameters=do not insert
|
||||
org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_throws=do not insert
|
||||
org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_constant_arguments=do not insert
|
||||
org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_declarations=do not insert
|
||||
org.eclipse.jdt.core.formatter.insert_space_before_comma_in_explicitconstructorcall_arguments=do not insert
|
||||
org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_increments=do not insert
|
||||
org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_inits=do not insert
|
||||
org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_parameters=do not insert
|
||||
org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_throws=do not insert
|
||||
org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_invocation_arguments=do not insert
|
||||
org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_field_declarations=do not insert
|
||||
org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_local_declarations=do not insert
|
||||
org.eclipse.jdt.core.formatter.insert_space_before_comma_in_parameterized_type_reference=do not insert
|
||||
org.eclipse.jdt.core.formatter.insert_space_before_comma_in_superinterfaces=do not insert
|
||||
org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_arguments=do not insert
|
||||
org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_parameters=do not insert
|
||||
org.eclipse.jdt.core.formatter.insert_space_before_ellipsis=do not insert
|
||||
org.eclipse.jdt.core.formatter.insert_space_before_lambda_arrow=insert
|
||||
org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_parameterized_type_reference=do not insert
|
||||
org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_arguments=do not insert
|
||||
org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_parameters=do not insert
|
||||
org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_annotation_type_declaration=insert
|
||||
org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_anonymous_type_declaration=insert
|
||||
org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_array_initializer=insert
|
||||
org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_block=insert
|
||||
org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_constructor_declaration=insert
|
||||
org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_constant=insert
|
||||
org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_declaration=insert
|
||||
org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_method_declaration=insert
|
||||
org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_switch=insert
|
||||
org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_type_declaration=insert
|
||||
org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_allocation_expression=do not insert
|
||||
org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_reference=do not insert
|
||||
org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_type_reference=do not insert
|
||||
org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation=do not insert
|
||||
org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation_type_member_declaration=do not insert
|
||||
org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_catch=insert
|
||||
org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_constructor_declaration=do not insert
|
||||
org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_enum_constant=do not insert
|
||||
org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_for=insert
|
||||
org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_if=insert
|
||||
org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_declaration=do not insert
|
||||
org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_invocation=do not insert
|
||||
org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_parenthesized_expression=do not insert
|
||||
org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_switch=insert
|
||||
org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_synchronized=insert
|
||||
org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_try=insert
|
||||
org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_while=insert
|
||||
org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_return=insert
|
||||
org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_throw=insert
|
||||
org.eclipse.jdt.core.formatter.insert_space_before_postfix_operator=do not insert
|
||||
org.eclipse.jdt.core.formatter.insert_space_before_prefix_operator=do not insert
|
||||
org.eclipse.jdt.core.formatter.insert_space_before_question_in_conditional=insert
|
||||
org.eclipse.jdt.core.formatter.insert_space_before_question_in_wildcard=do not insert
|
||||
org.eclipse.jdt.core.formatter.insert_space_before_semicolon=do not insert
|
||||
org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_for=do not insert
|
||||
org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_try_resources=do not insert
|
||||
org.eclipse.jdt.core.formatter.insert_space_before_unary_operator=do not insert
|
||||
org.eclipse.jdt.core.formatter.insert_space_between_brackets_in_array_type_reference=do not insert
|
||||
org.eclipse.jdt.core.formatter.insert_space_between_empty_braces_in_array_initializer=do not insert
|
||||
org.eclipse.jdt.core.formatter.insert_space_between_empty_brackets_in_array_allocation_expression=do not insert
|
||||
org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_annotation_type_member_declaration=do not insert
|
||||
org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_constructor_declaration=do not insert
|
||||
org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_enum_constant=do not insert
|
||||
org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_declaration=do not insert
|
||||
org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_invocation=do not insert
|
||||
org.eclipse.jdt.core.formatter.join_lines_in_comments=true
|
||||
org.eclipse.jdt.core.formatter.join_wrapped_lines=true
|
||||
org.eclipse.jdt.core.formatter.keep_else_statement_on_same_line=false
|
||||
org.eclipse.jdt.core.formatter.keep_empty_array_initializer_on_one_line=false
|
||||
org.eclipse.jdt.core.formatter.keep_imple_if_on_one_line=false
|
||||
org.eclipse.jdt.core.formatter.keep_then_statement_on_same_line=false
|
||||
org.eclipse.jdt.core.formatter.lineSplit=160
|
||||
org.eclipse.jdt.core.formatter.never_indent_block_comments_on_first_column=false
|
||||
org.eclipse.jdt.core.formatter.never_indent_line_comments_on_first_column=false
|
||||
org.eclipse.jdt.core.formatter.number_of_blank_lines_at_beginning_of_method_body=0
|
||||
org.eclipse.jdt.core.formatter.number_of_empty_lines_to_preserve=1
|
||||
org.eclipse.jdt.core.formatter.put_empty_statement_on_new_line=true
|
||||
org.eclipse.jdt.core.formatter.tabulation.char=space
|
||||
org.eclipse.jdt.core.formatter.tabulation.size=3
|
||||
org.eclipse.jdt.core.formatter.use_on_off_tags=false
|
||||
org.eclipse.jdt.core.formatter.use_tabs_only_for_leading_indentations=true
|
||||
org.eclipse.jdt.core.formatter.wrap_before_binary_operator=true
|
||||
org.eclipse.jdt.core.formatter.wrap_before_or_operator_multicatch=true
|
||||
org.eclipse.jdt.core.formatter.wrap_outer_expressions_when_nested=true
|
|
@ -1,3 +0,0 @@
|
|||
eclipse.preferences.version=1
|
||||
formatter_profile=_examples-format
|
||||
formatter_settings_version=12
|
|
@ -3,9 +3,9 @@
|
|||
|
||||
<parent>
|
||||
<groupId>ca.uhn.hapi.fhir</groupId>
|
||||
<artifactId>hapi-fhir</artifactId>
|
||||
<version>0.7-SNAPSHOT</version>
|
||||
<relativePath>../pom.xml</relativePath>
|
||||
<artifactId>hapi-deployable-pom</artifactId>
|
||||
<version>0.8-SNAPSHOT</version>
|
||||
<relativePath>../hapi-deployable-pom/pom.xml</relativePath>
|
||||
</parent>
|
||||
|
||||
<artifactId>hapi-fhir-base</artifactId>
|
||||
|
@ -178,7 +178,7 @@
|
|||
<dependency>
|
||||
<groupId>javax.servlet</groupId>
|
||||
<artifactId>javax.servlet-api</artifactId>
|
||||
<version>3.1.0</version>
|
||||
<version>${servlet_api_version}</version>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
|
||||
|
@ -189,395 +189,16 @@
|
|||
<version>${junit_version}</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>xmlunit</groupId>
|
||||
<artifactId>xmlunit</artifactId>
|
||||
<version>1.5</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.eclipse.jetty</groupId>
|
||||
<artifactId>jetty-servlets</artifactId>
|
||||
<version>9.1.1.v20140108</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.eclipse.jetty</groupId>
|
||||
<artifactId>jetty-servlet</artifactId>
|
||||
<version>9.1.1.v20140108</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.eclipse.jetty</groupId>
|
||||
<artifactId>jetty-server</artifactId>
|
||||
<version>9.1.1.v20140108</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.eclipse.jetty</groupId>
|
||||
<artifactId>jetty-servlet</artifactId>
|
||||
<version>9.1.1.v20140108</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.eclipse.jetty</groupId>
|
||||
<artifactId>jetty-util</artifactId>
|
||||
<version>9.1.1.v20140108</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.eclipse.jetty</groupId>
|
||||
<artifactId>jetty-webapp</artifactId>
|
||||
<version>9.1.1.v20140108</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.eclipse.jetty</groupId>
|
||||
<artifactId>jetty-http</artifactId>
|
||||
<version>9.1.1.v20140108</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
|
||||
|
||||
<!-- UNIT TEST DEPENDENCIES -->
|
||||
<dependency>
|
||||
<groupId>org.mockito</groupId>
|
||||
<artifactId>mockito-all</artifactId>
|
||||
<version>1.9.5</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>net.sf.json-lib</groupId>
|
||||
<artifactId>json-lib</artifactId>
|
||||
<version>2.4</version>
|
||||
<classifier>jdk15</classifier>
|
||||
<scope>test</scope>
|
||||
<exclusions>
|
||||
<exclusion>
|
||||
<artifactId>commons-logging</artifactId>
|
||||
<groupId>commons-logging</groupId>
|
||||
</exclusion>
|
||||
</exclusions>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>net.sf.json-lib</groupId>
|
||||
<artifactId>json-lib</artifactId>
|
||||
<version>2.4</version>
|
||||
<classifier>jdk15-sources</classifier>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>directory-naming</groupId>
|
||||
<artifactId>naming-java</artifactId>
|
||||
<version>0.8</version>
|
||||
<scope>test</scope>
|
||||
<exclusions>
|
||||
<exclusion>
|
||||
<artifactId>commons-logging</artifactId>
|
||||
<groupId>commons-logging</groupId>
|
||||
</exclusion>
|
||||
</exclusions>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.hamcrest</groupId>
|
||||
<artifactId>hamcrest-all</artifactId>
|
||||
<version>${hamcrest_version}</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.google.guava</groupId>
|
||||
<artifactId>guava</artifactId>
|
||||
<version>${guava_version}</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<!--
|
||||
<dependency>
|
||||
<groupId>org.springframework.security</groupId>
|
||||
<artifactId>spring-security-web</artifactId>
|
||||
<version>${spring_security_version}</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springframework.security</groupId>
|
||||
<artifactId>spring-security-config</artifactId>
|
||||
<version>${spring_security_version}</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springframework.security</groupId>
|
||||
<artifactId>spring-security-jwt</artifactId>
|
||||
<version>1.0.2.RELEASE</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
-->
|
||||
</dependencies>
|
||||
|
||||
|
||||
<reporting>
|
||||
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-changes-plugin</artifactId>
|
||||
<version>2.10</version>
|
||||
<inherited>false</inherited>
|
||||
<reportSets>
|
||||
<reportSet>
|
||||
<reports>
|
||||
<report>changes-report</report>
|
||||
</reports>
|
||||
</reportSet>
|
||||
</reportSets>
|
||||
<configuration>
|
||||
<feedType>atom_1.0</feedType>
|
||||
<issueLinkTemplatePerSystem>
|
||||
<default>http://sourceforge.net/support/tracker.php?aid=%ISSUE%</default>
|
||||
<newbugs>https://sourceforge.net/p/hl7api/bugs/%ISSUE%/</newbugs>
|
||||
<newfeatures>https://sourceforge.net/p/hl7api/feature-requests/%ISSUE%/</newfeatures>
|
||||
</issueLinkTemplatePerSystem>
|
||||
<escapeHTML>false</escapeHTML>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-project-info-reports-plugin</artifactId>
|
||||
<version>2.7</version>
|
||||
<reportSets>
|
||||
<reportSet>
|
||||
<reports>
|
||||
<report>project-team</report>
|
||||
<report>issue-tracking</report>
|
||||
<report>license</report>
|
||||
<report>scm</report>
|
||||
</reports>
|
||||
</reportSet>
|
||||
</reportSets>
|
||||
</plugin>
|
||||
<!-- <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-linkcheck-plugin</artifactId> <version>1.1</version> </plugin> -->
|
||||
</plugins>
|
||||
</reporting>
|
||||
|
||||
<properties>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
<siteMainDirectory>${user.home}/sites/hapi-fhir</siteMainDirectory>
|
||||
<scmPubCheckoutDirectory>${user.home}/sites/scm/hapi-fhir</scmPubCheckoutDirectory>
|
||||
</properties>
|
||||
|
||||
<build>
|
||||
<pluginManagement>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<artifactId>maven-site-plugin</artifactId>
|
||||
<version>${maven_site_plugin_version}</version>
|
||||
<configuration>
|
||||
<skip>false</skip>
|
||||
<skipDeploy>true</skipDeploy>
|
||||
</configuration>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven.wagon</groupId>
|
||||
<artifactId>wagon-scm</artifactId>
|
||||
<version>2.2</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven.scm</groupId>
|
||||
<artifactId>maven-scm-manager-plexus</artifactId>
|
||||
<version>1.9</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven.scm</groupId>
|
||||
<artifactId>maven-scm-provider-gitexe</artifactId>
|
||||
<version>1.9</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven.scm</groupId>
|
||||
<artifactId>maven-scm-api</artifactId>
|
||||
<version>1.9</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</pluginManagement>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<artifactId>maven-antrun-plugin</artifactId>
|
||||
<version>1.7</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>addSyntaxHighlighter</id>
|
||||
<phase>site</phase>
|
||||
<goals>
|
||||
<goal>run</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<target>
|
||||
<echo>Adding Syntax Highlighter</echo>
|
||||
<replace dir="target/site" summary="true">
|
||||
<include name="*.html"></include>
|
||||
<replacetoken><![CDATA[</body>]]></replacetoken>
|
||||
<replacevalue><![CDATA[
|
||||
<script type="text/javascript">
|
||||
var elements = document.getElementsByClassName("source");
|
||||
for (var i=0; i < elements.length; i++) {
|
||||
var pres = elements[i].getElementsByTagName("pre");
|
||||
for (var j = 0; j < pres.length; j++) {
|
||||
var pre = pres[j];
|
||||
if (pre.innerHTML.match(/\/\*/)) {
|
||||
pre.className = 'brush: java';
|
||||
} else if (pre.innerHTML.match(/^\/\//)) {
|
||||
pre.className = 'brush: java';
|
||||
} else if (pre.innerHTML.match(/^\{/)) {
|
||||
pre.className = 'brush: jscript';
|
||||
} else if (pre.innerHTML.match(/^\#/)) {
|
||||
pre.className = 'brush: bash';
|
||||
} else if (pre.innerHTML.match(/\<\;\//)) {
|
||||
pre.className = 'brush: xml';
|
||||
} else {
|
||||
pre.className = 'brush: java';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
SyntaxHighlighter.all();
|
||||
</script>
|
||||
</body>
|
||||
]]></replacevalue>
|
||||
</replace>
|
||||
</target>
|
||||
</configuration>
|
||||
</execution>
|
||||
<execution>
|
||||
<id>addAnalytics</id>
|
||||
<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="${project.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', 'auto');
|
||||
ga('require', 'displayfeatures');
|
||||
ga('require', 'linkid', 'linkid.js');
|
||||
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', 'auto');
|
||||
ga('require', 'displayfeatures');
|
||||
ga('require', 'linkid', 'linkid.js');
|
||||
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>
|
||||
<artifactId>maven-site-plugin</artifactId>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>stage-for-scm-publish</id>
|
||||
<phase>post-site</phase>
|
||||
<goals>
|
||||
<goal>stage</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<stagingDirectory>${siteMainDirectory}</stagingDirectory>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-scm-publish-plugin</artifactId>
|
||||
<version>1.1</version>
|
||||
<configuration>
|
||||
<checkoutDirectory>${scmPubCheckoutDirectory}</checkoutDirectory>
|
||||
<content>\${siteMainDirectory}</content>
|
||||
<tryUpdate>true</tryUpdate>
|
||||
<scmBranch>gh-pages</scmBranch>
|
||||
<pubScmUrl>scm:git:git@github.com:jamesagnew/hapi-fhir.git</pubScmUrl>
|
||||
</configuration>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>scm-publish</id>
|
||||
<phase>site-deploy</phase>
|
||||
<goals>
|
||||
<goal>publish-scm</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
<resources>
|
||||
<resource>
|
||||
<directory>src/main/resources</directory>
|
||||
<filtering>true</filtering>
|
||||
</resource>
|
||||
</resources>
|
||||
<!-- <extensions> <extension> <groupId>org.apache.maven.wagon</groupId> <artifactId>wagon-scm</artifactId> <version>2.6</version> </extension> <extension> <groupId>org.apache.maven.scm</groupId>
|
||||
<artifactId>maven-scm-manager-plexus</artifactId> <version>1.9</version> </extension> <extension> <groupId>org.apache.maven.scm</groupId> <artifactId>maven-scm-provider-gitexe</artifactId>
|
||||
<version>1.9</version> </extension> </extensions> -->
|
||||
</build>
|
||||
|
||||
<profiles>
|
||||
|
@ -585,40 +206,10 @@
|
|||
<id>MINI</id>
|
||||
</profile>
|
||||
<profile>
|
||||
<id>DEFAULT</id>
|
||||
<!--
|
||||
The default profile has a bunch of the site plugins that
|
||||
take longer to execute, so that they can be skipped for
|
||||
testing the site build
|
||||
-->
|
||||
<activation>
|
||||
<activeByDefault>true</activeByDefault>
|
||||
</activation>
|
||||
<id>SITE</id>
|
||||
<reporting>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-surefire-report-plugin</artifactId>
|
||||
<version>${maven_surefire_plugin_version}</version>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-javadoc-plugin</artifactId>
|
||||
<version>${maven_javadoc_plugin_version}</version>
|
||||
<configuration>
|
||||
<links>
|
||||
<link>http://docs.oracle.com/javaee/7/api</link>
|
||||
</links>
|
||||
</configuration>
|
||||
<reportSets>
|
||||
<reportSet>
|
||||
<id>default</id>
|
||||
<reports>
|
||||
<report>javadoc</report>
|
||||
</reports>
|
||||
</reportSet>
|
||||
</reportSets>
|
||||
</plugin>
|
||||
<!--
|
||||
<plugin>
|
||||
<groupId>org.codehaus.mojo</groupId>
|
||||
<artifactId>findbugs-maven-plugin</artifactId>
|
||||
|
@ -648,7 +239,8 @@
|
|||
</configuration>
|
||||
</reportSet>
|
||||
</reportSets>
|
||||
</plugin>
|
||||
</plugin>
|
||||
-->
|
||||
<!--
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
|
@ -666,39 +258,6 @@
|
|||
<id>DIST</id>
|
||||
<build>
|
||||
<plugins>
|
||||
<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>
|
||||
<version>${maven_source_plugin_version}</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<phase>package</phase>
|
||||
<goals>
|
||||
<goal>jar-no-fork</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<artifactId>maven-assembly-plugin</artifactId>
|
||||
<version>${maven_assembly_plugin_version}</version>
|
||||
|
@ -718,28 +277,6 @@
|
|||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.codehaus.mojo</groupId>
|
||||
<artifactId>license-maven-plugin</artifactId>
|
||||
<version>${maven_license_plugin_version}</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>first</id>
|
||||
<goals>
|
||||
<goal>update-file-header</goal>
|
||||
</goals>
|
||||
<phase>process-sources</phase>
|
||||
<configuration>
|
||||
<licenseName>apache_v2</licenseName>
|
||||
<canUpdateDescription>true</canUpdateDescription>
|
||||
<canUpdateCopyright>true</canUpdateCopyright>
|
||||
<roots>
|
||||
<root>src/main/java</root>
|
||||
</roots>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
</profile>
|
||||
|
|
|
@ -1,367 +0,0 @@
|
|||
<?xml version="1.0"?>
|
||||
<document xmlns="http://maven.apache.org/changes/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/changes/1.0.0 ./changes.xsd">
|
||||
<properties>
|
||||
<author>James Agnew</author>
|
||||
<title>HAPI FHIR Changelog</title>
|
||||
</properties>
|
||||
<body>
|
||||
<release version="0.7" date="TBD">
|
||||
<action type="add" dev="suranga">
|
||||
Documentation fixes
|
||||
</action>
|
||||
<action type="add" dev="dougmartin">
|
||||
Add a collection of new methods on the generic client which support the
|
||||
<![CDATA[
|
||||
<b><a href="./apidocs/ca/uhn/fhir/rest/client/IGenericClient.html#read(java.lang.Class,%20ca.uhn.fhir.model.primitive.UriDt)">read</a></b>,
|
||||
<b><a href="./apidocs/ca/uhn/fhir/rest/client/IGenericClient.html#vread(java.lang.Class,%20ca.uhn.fhir.model.primitive.UriDt)">read</a></b>,
|
||||
and <b><a href="./apidocs/ca/uhn/fhir/rest/client/IGenericClient.html#search(java.lang.Class,%20ca.uhn.fhir.model.primitive.UriDt)">search</a></b>
|
||||
]]>
|
||||
operations using an absolute URL. This allows developers to perform these operations using
|
||||
URLs they obtained from other sources (or external resource references within resources). In
|
||||
addition, the existing read/vread operations will now access absolute URL references if
|
||||
they are passed in. Thanks to Doug Martin of the Regenstrief Center for Biomedical Informatics
|
||||
for contributing this implementation!
|
||||
</action>
|
||||
<action type="fix">
|
||||
Server implementation was not correctly figuring out its own FHIR Base URL when deployed
|
||||
on Amazon Web Service server. Thanks to Jeffrey Ting and Bill De Beaubien of
|
||||
Systems Made Simple for their help in figuring out this issue!
|
||||
</action>
|
||||
<action type="fix">
|
||||
XML Parser failed to encode fields with both a resource reference child and
|
||||
a primitive type child. Thanks to Jeffrey Ting and Bill De Beaubien of
|
||||
Systems Made Simple for their help in figuring out this issue!
|
||||
</action>
|
||||
<action type="fix">
|
||||
HAPI now runs successfully on Servlet 2.5 containers (such as Tomcat 6). Thanks to
|
||||
Bernard Gitaadji for reporting and diagnosing the issue!
|
||||
</action>
|
||||
<action type="fix">
|
||||
Summary (in the bundle entry) is now encoded by the XML and JSON parsers if supplied. Thanks to David Hay of
|
||||
Orion Health for reporting this!
|
||||
</action>
|
||||
<action type="fix" issue="24">
|
||||
Conformance profiles which are automatically generated by the server were missing a few mandatory elements,
|
||||
which meant that the profile did not correctly validate. Thanks to Bill de Beaubien of Systems Made Simple
|
||||
for reporting this!
|
||||
</action>
|
||||
<action type="fix">
|
||||
XHTML (in narratives) containing escapable characters (e.g. < or ") will now always have those characters
|
||||
escaped properly in encoded messages.
|
||||
</action>
|
||||
<action type="fix">
|
||||
Resources containing entities which are not valid in basic XML (e.g. &sect;) will have those
|
||||
entities converted to their equivalent unicode characters when resources are encoded, since FHIR does
|
||||
not allow extended entities in resource instances.
|
||||
</action>
|
||||
<<<<<<< HEAD
|
||||
<action type="add">
|
||||
Add a new client interceptor which adds HTTP Authorization Bearer Tokens (for use with OAUTH2 servers)
|
||||
to client requests.
|
||||
</action>
|
||||
=======
|
||||
<action type="fix">
|
||||
Add phloc-commons dependency explicitly, which resolves an issue building HAPI from source on
|
||||
some platforms. Thanks to Odysseas Pentakalos for the patch!
|
||||
</action>
|
||||
<action type="add">
|
||||
HAPI now logs a single line indicating the StAX implementation being used upon the
|
||||
first time an XML parser is created.
|
||||
</action>
|
||||
>>>>>>> 4622af7a822ad80c864516369e1e941660a19194
|
||||
</release>
|
||||
<release version="0.6" date="2014-Sep-08" description="This release brings a number of new features and bug fixes!">
|
||||
<!--
|
||||
<action type="add">
|
||||
Allow generic client ... OAUTH
|
||||
</action>
|
||||
-->
|
||||
<action type="add">
|
||||
Add server interceptor framework, and new interceptor for logging incoming
|
||||
requests.
|
||||
</action>
|
||||
<action type="add">
|
||||
Add server validation framework for validating resources against the FHIR schemas and schematrons
|
||||
</action>
|
||||
<action type="fix">
|
||||
Tester UI created double _format and _pretty param entries in searches. Thanks to Gered King of University
|
||||
Health Network for reporting!
|
||||
</action>
|
||||
<action type="fix" issue="4">
|
||||
Create method was incorrectly returning an HTTP 204 on sucessful completion, but
|
||||
should be returning an HTTP 200 per the FHIR specification. Thanks to wanghaisheng
|
||||
for reporting!
|
||||
</action>
|
||||
<action type="fix">
|
||||
FHIR Tester UI now correctly sends UTF-8 charset in responses so that message payloads containing
|
||||
non US-ASCII characters will correctly display in the browser
|
||||
</action>
|
||||
<action type="fix">
|
||||
JSON parser was incorrectly encoding extensions on composite elements outside the element itself
|
||||
(as is done correctly for non-composite elements) instead of inside of them. Thanks to David Hay of
|
||||
Orion for reporting this!
|
||||
</action>
|
||||
<action type="add">
|
||||
Contained/included resource instances received by a client are now automatically
|
||||
added to any ResourceReferenceDt instancea in other resources which reference them.
|
||||
</action>
|
||||
<action type="add">
|
||||
Add documentation on how to use eBay CORS Filter to support Cross Origin Resource
|
||||
Sharing (CORS) to server. CORS support that was built in to the server itself has
|
||||
been removed, as it did not work correctly (and was reinventing a wheel that others
|
||||
have done a great job inventing). Thanks to Peter Bernhardt of Relay Health for all the assistance
|
||||
in testing this!
|
||||
</action>
|
||||
<action type="fix">
|
||||
IResource interface did not expose the getLanguage/setLanguage methods from BaseResource,
|
||||
so the resource language was difficult to access.
|
||||
</action>
|
||||
<action type="fix">
|
||||
JSON Parser now gives a more friendly error message if it tries to parse JSON with invalid use
|
||||
of single quotes
|
||||
</action>
|
||||
<action type="add">
|
||||
Transaction server method is now allowed to return an OperationOutcome in addition to the
|
||||
incoming resources. The public test server now does this in order to return status information
|
||||
about the transaction processing.
|
||||
</action>
|
||||
<action type="add">
|
||||
Update method in the server can now flag (via a field on the MethodOutcome object being returned)
|
||||
that the result was actually a creation, and Create method can indicate that it was actually an
|
||||
update. This has no effect other than to switch between the HTTP 200 and HTTP 201 status codes on the
|
||||
response, but this may be useful in some circumstances.
|
||||
</action>
|
||||
<action type="fix">
|
||||
Annotation client search methods with a specific resource type (e.g. List<Patient> search())
|
||||
won't return any resources that aren't of the correct type that are received in a response
|
||||
bundle (generally these are referenced resources, so they are populated in the reference fields instead).
|
||||
Thanks to Tahura Chaudhry of University Health Network for the unit test!
|
||||
</action>
|
||||
<action type="add">
|
||||
Added narrative generator template for OperationOutcome resource
|
||||
</action>
|
||||
<action type="fix">
|
||||
Date/time types did not correctly parse values in the format "yyyymmdd" (although the FHIR-defined format
|
||||
is "yyyy-mm-dd" anyhow, and this is correctly handled). Thanks to Jeffrey Ting of Systems Made Simple
|
||||
for reporting!
|
||||
</action>
|
||||
<action type="fix">
|
||||
Server search method for an unnamed query gets called if the client requests a named query
|
||||
with the same parameter list. Thanks to Neal Acharya of University Health Network for reporting!
|
||||
</action>
|
||||
<action type="fix">
|
||||
Category header (for tags) is correctly read in client for "read" operation
|
||||
</action>
|
||||
<action type="add">
|
||||
Transaction method in server can now have parameter type Bundle instead of
|
||||
List<IResource>
|
||||
</action>
|
||||
<action type="add">
|
||||
HAPI parsers now use field access to get/set values instead of method accessors and mutators.
|
||||
This should give a small performance boost.
|
||||
</action>
|
||||
<action type="fix">
|
||||
JSON parser encodes resource references incorrectly, using the name "resource" instead
|
||||
of the name "reference" for the actual reference. Thanks to
|
||||
Ricky Nguyen for reporting and tracking down the issue!
|
||||
</action>
|
||||
<action type="fix">
|
||||
Rename NotImpementedException to NotImplementedException (to correct typo)
|
||||
</action>
|
||||
<action type="fix">
|
||||
Server setUseBrowserFriendlyContentType setting also respected for errors (e.g. OperationOutcome with 4xx/5xx status)
|
||||
</action>
|
||||
<action type="fix">
|
||||
Fix performance issue in date/time datatypes where pattern matchers were not static
|
||||
</action>
|
||||
<action type="fix">
|
||||
Server now gives a more helpful error message if a @Read method has a search parameter (which is invalid, but
|
||||
previously lead to a very unhelpful error message). Thanks to Tahura Chaudhry of UHN for reporting!
|
||||
</action>
|
||||
<action type="fix">
|
||||
Resource of type "List" failed to parse from a bundle correctly. Thanks to David Hay of Orion Health
|
||||
for reporting!
|
||||
</action>
|
||||
<action type="fix">
|
||||
QuantityParam correctly encodes approximate (~) prefix to values
|
||||
</action>
|
||||
<action type="fix" issue="14">
|
||||
If a server defines a method with parameter "_id", incoming search requests for that method may
|
||||
get delegated to the wrong method. Thanks to Neal Acharya for reporting!
|
||||
</action>
|
||||
<action type="add">
|
||||
SecurityEvent.Object structural element has been renamed to
|
||||
SecurityEvent.ObjectElement to avoid conflicting names with the
|
||||
java Object class. Thanks to Laurie Macdougall-Sookraj of UHN for
|
||||
reporting!
|
||||
</action>
|
||||
<action type="fix">
|
||||
Text/narrative blocks that were created with a non-empty
|
||||
namespace prefix (e.g. <xhtml:div xmlns:xhtml="...">...</xhtml:div>)
|
||||
failed to encode correctly (prefix was missing in encoded resource)
|
||||
</action>
|
||||
<action type="fix">
|
||||
Resource references previously encoded their children (display and reference)
|
||||
in the wrong order so references with both would fail schema validation.
|
||||
</action>
|
||||
<action type="add">
|
||||
SecurityEvent resource's enums now use friendly enum names instead of the unfriendly
|
||||
numeric code values. Thanks to Laurie MacDougall-Sookraj of UHN for the
|
||||
suggestion!
|
||||
</action>
|
||||
</release>
|
||||
<release version="0.5" date="2014-Jul-30">
|
||||
<action type="add">
|
||||
HAPI has a number of RESTful method parameter types that have similar but not identical
|
||||
purposes and confusing names. A cleanup has been undertaken to clean this up.
|
||||
This means that a number of existing classes
|
||||
have been deprocated in favour of new naming schemes.
|
||||
<![CDATA[<br/><br/>]]>
|
||||
All annotation-based clients and all server search method parameters are now named
|
||||
(type)Param, for example: StringParam, TokenParam, etc.
|
||||
<![CDATA[<br/><br/>]]>
|
||||
All generic/fluent client method parameters are now named
|
||||
(type)ClientParam, for example: StringClientParam, TokenClientParam, etc.
|
||||
<![CDATA[<br/><br/>]]>
|
||||
All renamed classes have been retained and deprocated, so this change should not cause any issues
|
||||
for existing applications but those applications should be refactored to use the
|
||||
new parameters when possible.
|
||||
</action>
|
||||
<action type="add">
|
||||
Allow server methods to return wildcard generic types (e.g. List<? extends IResource>)
|
||||
</action>
|
||||
<action type="add">
|
||||
Search parameters are not properly escaped and unescaped. E.g. for a token parameter such as
|
||||
"&identifier=system|codepart1\|codepart2"
|
||||
</action>
|
||||
<action type="add">
|
||||
Add support for OPTIONS verb (which returns the server conformance statement)
|
||||
</action>
|
||||
<action type="add">
|
||||
Add support for CORS headers in server
|
||||
</action>
|
||||
<action type="add">
|
||||
Bump SLF4j dependency to latest version (1.7.7)
|
||||
</action>
|
||||
<action type="add">
|
||||
Add interceptor framework for clients (annotation based and generic), and add interceptors
|
||||
for configurable logging, capturing requests and responses, and HTTP basic auth.
|
||||
</action>
|
||||
<action type="fix">
|
||||
Transaction client invocations with XML encoding were using the wrong content type ("application/xml+fhir" instead
|
||||
of the correct "application/atom+xml"). Thanks to David Hay of Orion Health for surfacing this one!
|
||||
</action>
|
||||
<action type="add">
|
||||
Bundle entries now support a link type of "search". Thanks to David Hay for the suggestion!
|
||||
</action>
|
||||
<action type="add" issue="1">
|
||||
If a client receives a non 2xx response (e.g. HTTP 500) and the response body is a text/plain message or
|
||||
an OperationOutcome resource, include the message in the exception message so that it will be
|
||||
more conveniently displayed in logs and other places. Thanks to Neal Acharya for the suggestion!
|
||||
</action>
|
||||
<action type="add" issue="2">
|
||||
Read invocations in the client now process the "Content-Location" header and use it to
|
||||
populate the ID of the returned resource. Thanks to Neal Acharya for the suggestion!
|
||||
</action>
|
||||
<action type="fix" issue="3">
|
||||
Fix issue where vread invocations on server incorrectly get routed to instance history method if one is
|
||||
defined. Thanks to Neal Acharya from UHN for surfacing this one!
|
||||
</action>
|
||||
<action type="add">
|
||||
Binary reads on a server not include the Content-Disposition header, to prevent HTML in binary
|
||||
blobs from being used for nefarious purposes. See
|
||||
<![CDATA[<a href="http://gforge.hl7.org/gf/project/fhir/tracker/?action=TrackerItemEdit&tracker_id=677&tracker_item_id=3298">FHIR Tracker Bug 3298</a>]]>
|
||||
for more information.
|
||||
</action>
|
||||
<action type="add">
|
||||
Support has been added for using an HTTP proxy for outgoing requests.
|
||||
</action>
|
||||
<action type="fix">
|
||||
Fix: Primitive extensions declared against custom resource types
|
||||
are encoded even if they have no value. Thanks to David Hay of Orion for
|
||||
reporting this!
|
||||
</action>
|
||||
<action type="fix">
|
||||
Fix: RESTful server deployed to a location where the URL to access it contained a
|
||||
space (e.g. a WAR file with a space in the name) failed to work correctly.
|
||||
Thanks to David Hay of Orion for reporting this!
|
||||
</action>
|
||||
</release>
|
||||
<release version="0.4" date="2014-Jul-13">
|
||||
<action type="add">
|
||||
<![CDATA[<b>BREAKING CHANGE:</b>]]>: IdDt has been modified so that it
|
||||
contains a partial or complete resource identity. Previously it contained
|
||||
only the simple alphanumeric id of the resource (the part at the end of the "read" URL for
|
||||
that resource) but it can now contain a complete URL or even a partial URL (e.g. "Patient/123")
|
||||
and can optionally contain a version (e.g. "Patient/123/_history/456"). New methods have
|
||||
been added to this datatype which provide just the numeric portion. See the JavaDoc
|
||||
for more information.
|
||||
</action>
|
||||
<action type="add">
|
||||
<![CDATA[<b>API CHANGE:</b>]]>: Most elements in the HAPI FHIR model contain
|
||||
a getId() and setId() method. This method is confusing because it is only actually used
|
||||
for IDREF elements (which are rare) but its name makes it easy to confuse with more
|
||||
important identifiers. For this reason, these methods have been deprocated and replaced with
|
||||
get/setElementSpecificId() methods. The old methods will be removed at some point. Resource
|
||||
types are unchanged and retain their get/setId methods.
|
||||
</action>
|
||||
<action type="add">
|
||||
Allow use of QuantityDt as a service parameter to support the "quantity" type. Previously
|
||||
QuantityDt did not implement IQueryParameterType so it was not valid, and there was no way to
|
||||
support quantity search parameters on the server (e.g. Observation.value-quantity)
|
||||
</action>
|
||||
<action type="add">
|
||||
Introduce StringParameter type which can be used as a RESTful operation search parameter
|
||||
type. StringParameter allows ":exact" matches to be specified in clients, and handled in servers.
|
||||
</action>
|
||||
<action type="add">
|
||||
Parsers (XML/JSON) now support deleted entries in bundles
|
||||
</action>
|
||||
<action type="add">
|
||||
Transaction method now supported in servers
|
||||
</action>
|
||||
<action type="add">
|
||||
Support for Binary resources added (in servers, clients, parsers, etc.)
|
||||
</action>
|
||||
<action type="fix">
|
||||
Support for Query resources fixed (in parser)
|
||||
</action>
|
||||
<action type="fix">
|
||||
Nested contained resources (e.g. encoding a resource with a contained resource that itself contains a resource)
|
||||
now parse and encode correctly, meaning that all contained resources are placed in the "contained" element
|
||||
of the root resource, and the parser looks in the root resource for all container levels when stitching
|
||||
contained resources back together.
|
||||
</action>
|
||||
<action type="fix">
|
||||
Server methods with @Include parameter would sometimes fail when no _include was actually
|
||||
specified in query strings.
|
||||
</action>
|
||||
<action type="fix">
|
||||
Client requests for IdentifierDt types (such as Patient.identifier) did not create the correct
|
||||
query string if the system is null.
|
||||
</action>
|
||||
<action type="add">
|
||||
Add support for paging responses from RESTful servers.
|
||||
</action>
|
||||
<action type="fix">
|
||||
Don't fail on narrative blocks in JSON resources with only an XML declaration but no content (these are
|
||||
produced by the Health Intersections server)
|
||||
</action>
|
||||
<action type="fix">
|
||||
Server now automatically compresses responses if the client indicates support
|
||||
</action>
|
||||
<action type="fix">
|
||||
Server failed to support optional parameters when type is String and :exact qualifier is used
|
||||
</action>
|
||||
<action type="fix">
|
||||
Read method in client correctly populated resource ID in returned object
|
||||
</action>
|
||||
<action type="add">
|
||||
Support added for deleted-entry by/name, by/email, and comment from Tombstones spec
|
||||
</action>
|
||||
</release>
|
||||
<release version="0.3" date="2014-May-12" description="This release corrects lots of bugs and introduces the fluent client mode">
|
||||
</release>
|
||||
</body>
|
||||
</document>
|
|
@ -81,10 +81,10 @@ public abstract class BaseRuntimeDeclaredChildDefinition extends BaseRuntimeChil
|
|||
if (ourUseMethodAccessors == null) {
|
||||
try {
|
||||
myField.setAccessible(true);
|
||||
ourUseMethodAccessors = true;
|
||||
ourUseMethodAccessors = false;
|
||||
} catch (SecurityException e) {
|
||||
ourLog.info("Can not use field accessors/mutators, going to use methods instead");
|
||||
ourUseMethodAccessors = false;
|
||||
ourUseMethodAccessors = true;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -32,6 +32,7 @@ import org.apache.commons.lang3.text.WordUtils;
|
|||
|
||||
import ca.uhn.fhir.i18n.HapiLocalizer;
|
||||
import ca.uhn.fhir.model.api.IElement;
|
||||
import ca.uhn.fhir.model.api.IFhirVersion;
|
||||
import ca.uhn.fhir.model.api.IResource;
|
||||
import ca.uhn.fhir.model.view.ViewGenerator;
|
||||
import ca.uhn.fhir.narrative.INarrativeGenerator;
|
||||
|
@ -72,6 +73,7 @@ public class FhirContext {
|
|||
private volatile INarrativeGenerator myNarrativeGenerator;
|
||||
private volatile IRestfulClientFactory myRestfulClientFactory;
|
||||
private volatile RuntimeChildUndeclaredExtensionDefinition myRuntimeChildUndeclaredExtensionDefinition;
|
||||
private IFhirVersion myVersion;
|
||||
|
||||
/**
|
||||
* Default constructor. In most cases this is the right constructor to use.
|
||||
|
@ -90,6 +92,13 @@ public class FhirContext {
|
|||
|
||||
public FhirContext(Collection<Class<? extends IResource>> theResourceTypes) {
|
||||
scanResourceTypes(theResourceTypes);
|
||||
|
||||
if (FhirVersionEnum.DSTU1.isPresentOnClasspath()) {
|
||||
myVersion = FhirVersionEnum.DSTU1.getVersionImplementation();
|
||||
} else {
|
||||
throw new IllegalStateException("Could not find any HAPI-FHIR structure JARs on the classpath. Note that as of HAPI-FHIR v0.8, a separate FHIR strcture JAR must be added to your classpath or project pom.xml");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -197,6 +206,10 @@ public class FhirContext {
|
|||
return myRuntimeChildUndeclaredExtensionDefinition;
|
||||
}
|
||||
|
||||
public IFhirVersion getVersion() {
|
||||
return myVersion;
|
||||
}
|
||||
|
||||
/**
|
||||
* Create and return a new JSON parser.
|
||||
*
|
||||
|
@ -282,7 +295,7 @@ public class FhirContext {
|
|||
}
|
||||
|
||||
private Map<Class<? extends IElement>, BaseRuntimeElementDefinition<?>> scanResourceTypes(Collection<Class<? extends IResource>> theResourceTypes) {
|
||||
ModelScanner scanner = new ModelScanner(myClassToElementDefinition, theResourceTypes);
|
||||
ModelScanner scanner = new ModelScanner(this, myClassToElementDefinition, theResourceTypes);
|
||||
if (myRuntimeChildUndeclaredExtensionDefinition == null) {
|
||||
myRuntimeChildUndeclaredExtensionDefinition = scanner.getRuntimeChildUndeclaredExtensionDefinition();
|
||||
}
|
||||
|
|
|
@ -0,0 +1,69 @@
|
|||
package ca.uhn.fhir.context;
|
||||
|
||||
/*
|
||||
* #%L
|
||||
* HAPI FHIR - Core Library
|
||||
* %%
|
||||
* Copyright (C) 2014 University Health Network
|
||||
* %%
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
* #L%
|
||||
*/
|
||||
|
||||
import ca.uhn.fhir.model.api.IFhirVersion;
|
||||
import ca.uhn.fhir.rest.server.exceptions.InternalErrorException;
|
||||
|
||||
public enum FhirVersionEnum {
|
||||
|
||||
DSTU1("ca.uhn.fhir.model.dstu.FhirDstu1");
|
||||
|
||||
private final String myVersionClass;
|
||||
private volatile Boolean myPresentOnClasspath;
|
||||
private volatile IFhirVersion myVersionImplementation;
|
||||
|
||||
FhirVersionEnum(String theVersionClass) {
|
||||
myVersionClass = theVersionClass;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns true if the given version is present on the classpath
|
||||
*/
|
||||
public boolean isPresentOnClasspath() {
|
||||
Boolean retVal = myPresentOnClasspath;
|
||||
if (retVal==null) {
|
||||
try {
|
||||
Class.forName(myVersionClass);
|
||||
retVal= true;
|
||||
} catch (Exception e) {
|
||||
retVal= false;
|
||||
}
|
||||
myPresentOnClasspath = retVal;
|
||||
}
|
||||
return retVal;
|
||||
}
|
||||
|
||||
public IFhirVersion getVersionImplementation() {
|
||||
if (!isPresentOnClasspath()) {
|
||||
throw new IllegalStateException("Version " + name() + " is not present on classpath");
|
||||
}
|
||||
if (myVersionImplementation == null) {
|
||||
try {
|
||||
myVersionImplementation = (IFhirVersion) Class.forName(myVersionClass).newInstance();
|
||||
} catch (Exception e) {
|
||||
throw new InternalErrorException("Failed to instantiate FHIR version " + name(), e);
|
||||
}
|
||||
}
|
||||
return myVersionImplementation;
|
||||
}
|
||||
|
||||
}
|
|
@ -20,7 +20,7 @@ package ca.uhn.fhir.context;
|
|||
* #L%
|
||||
*/
|
||||
|
||||
import static org.apache.commons.lang3.StringUtils.*;
|
||||
import static org.apache.commons.lang3.StringUtils.isBlank;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
|
@ -45,6 +45,7 @@ import java.util.TreeSet;
|
|||
|
||||
import ca.uhn.fhir.model.api.CodeableConceptElement;
|
||||
import ca.uhn.fhir.model.api.ExtensionDt;
|
||||
import ca.uhn.fhir.model.api.IBoundCodeableConcept;
|
||||
import ca.uhn.fhir.model.api.ICodeEnum;
|
||||
import ca.uhn.fhir.model.api.ICompositeDatatype;
|
||||
import ca.uhn.fhir.model.api.ICompositeElement;
|
||||
|
@ -64,10 +65,8 @@ import ca.uhn.fhir.model.api.annotation.SearchParamDefinition;
|
|||
import ca.uhn.fhir.model.base.composite.BaseResourceReferenceDt;
|
||||
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.dstu.valueset.SearchParamTypeEnum;
|
||||
import ca.uhn.fhir.model.primitive.BoundCodeDt;
|
||||
import ca.uhn.fhir.model.primitive.BoundCodeableConceptDt;
|
||||
import ca.uhn.fhir.model.primitive.ICodedDatatype;
|
||||
import ca.uhn.fhir.model.primitive.XhtmlDt;
|
||||
import ca.uhn.fhir.util.ReflectionUtil;
|
||||
|
@ -91,17 +90,22 @@ class ModelScanner {
|
|||
|
||||
private Set<Class<? extends ICodeEnum>> myScanAlsoCodeTable = new HashSet<Class<? extends ICodeEnum>>();
|
||||
|
||||
ModelScanner(Class<? extends IResource> theResourceTypes) throws ConfigurationException {
|
||||
private FhirContext myContext;
|
||||
|
||||
ModelScanner(FhirContext theContext, Class<? extends IResource> theResourceTypes) throws ConfigurationException {
|
||||
myContext=theContext;
|
||||
Set<Class<? extends IElement>> singleton = new HashSet<Class<? extends IElement>>();
|
||||
singleton.add(theResourceTypes);
|
||||
init(null, singleton);
|
||||
}
|
||||
|
||||
ModelScanner(Collection<Class<? extends IResource>> theResourceTypes) throws ConfigurationException {
|
||||
ModelScanner(FhirContext theContext, Collection<Class<? extends IResource>> theResourceTypes) throws ConfigurationException {
|
||||
myContext=theContext;
|
||||
init(null, new HashSet<Class<? extends IElement>>(theResourceTypes));
|
||||
}
|
||||
|
||||
ModelScanner(Map<Class<? extends IElement>, BaseRuntimeElementDefinition<?>> theExistingDefinitions, Collection<Class<? extends IResource>> theResourceTypes) throws ConfigurationException {
|
||||
ModelScanner(FhirContext theContext, Map<Class<? extends IElement>, BaseRuntimeElementDefinition<?>> theExistingDefinitions, Collection<Class<? extends IResource>> theResourceTypes) throws ConfigurationException {
|
||||
myContext=theContext;
|
||||
init(theExistingDefinitions, new HashSet<Class<? extends IElement>>(theResourceTypes));
|
||||
}
|
||||
|
||||
|
@ -479,7 +483,7 @@ class ModelScanner {
|
|||
RuntimeChildContainedResources def = new RuntimeChildContainedResources(next, childAnnotation, descriptionAnnotation, elementName);
|
||||
orderMap.put(order, def);
|
||||
|
||||
} else if (choiceTypes.size() > 1 && !ResourceReferenceDt.class.isAssignableFrom(nextElementType)) {
|
||||
} else if (choiceTypes.size() > 1 && !BaseResourceReferenceDt.class.isAssignableFrom(nextElementType)) {
|
||||
/*
|
||||
* Child is a choice element
|
||||
*/
|
||||
|
@ -514,7 +518,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().getCanonicalName() + "' 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 " + BaseResourceReferenceDt.class + " but contains a non-resource type: " + nextType.getCanonicalName());
|
||||
}
|
||||
refTypesList.add((Class<? extends IResource>) nextType);
|
||||
addScanAlso(nextType);
|
||||
|
@ -551,7 +555,7 @@ class ModelScanner {
|
|||
def = new RuntimeChildPrimitiveDatatypeDefinition(next, elementName, descriptionAnnotation, childAnnotation, nextDatatype);
|
||||
}
|
||||
} else {
|
||||
if (nextElementType.equals(BoundCodeableConceptDt.class)) {
|
||||
if (IBoundCodeableConcept.class.isAssignableFrom(nextElementType)) {
|
||||
IValueSetEnumBinder<Enum<?>> binder = getBoundCodeBinder(next);
|
||||
def = new RuntimeChildCompositeBoundDatatypeDefinition(next, elementName, childAnnotation, descriptionAnnotation, nextDatatype, binder);
|
||||
} else if (NarrativeDt.class.getSimpleName().equals(nextElementType.getSimpleName())) {
|
||||
|
@ -649,7 +653,7 @@ class ModelScanner {
|
|||
}
|
||||
}
|
||||
|
||||
RuntimeResourceDefinition resourceDef = new RuntimeResourceDefinition(resourceName, theClass, resourceDefinition);
|
||||
RuntimeResourceDefinition resourceDef = new RuntimeResourceDefinition(myContext, resourceName, theClass, resourceDefinition);
|
||||
myClassToElementDefinitions.put(theClass, resourceDef);
|
||||
if (primaryNameProvider) {
|
||||
myNameToResourceDefinitions.put(resourceName, resourceDef);
|
||||
|
|
|
@ -0,0 +1,70 @@
|
|||
package ca.uhn.fhir.context;
|
||||
|
||||
/*
|
||||
* #%L
|
||||
* HAPI FHIR - Core Library
|
||||
* %%
|
||||
* Copyright (C) 2014 University Health Network
|
||||
* %%
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
* #L%
|
||||
*/
|
||||
|
||||
import ca.uhn.fhir.model.api.IResource;
|
||||
import ca.uhn.fhir.model.api.annotation.ProvidesResources;
|
||||
|
||||
/**
|
||||
* Scans a class tagged with {@code ProvidesResources} and adds any resources listed to its FhirContext's resource
|
||||
* definition list. This makes the profile generator find the classes.
|
||||
*
|
||||
* @see ca.uhn.fhir.model.api.annotation.ProvidesResources
|
||||
*/
|
||||
public class ProvidedResourceScanner {
|
||||
private static final org.slf4j.Logger ourLog = org.slf4j.LoggerFactory.getLogger(ModelScanner.class);
|
||||
private FhirContext myContext;
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
* @param theContext - context whose resource definition list is to be updated by the scanner
|
||||
*/
|
||||
public ProvidedResourceScanner(FhirContext theContext) {
|
||||
myContext = theContext;
|
||||
}
|
||||
|
||||
/**
|
||||
* If {@code theProvider} is tagged with the {@code ProvidesResources} annotation, this method will add every resource listed
|
||||
* by the {@code resources} method.
|
||||
* <p/>
|
||||
* notes:
|
||||
* <ul>
|
||||
* <li>if {@code theProvider} isn't annotated with {@code resources} nothing is done; it's expected that most RestfulServers and
|
||||
* ResourceProviders won't be annotated.</li>
|
||||
* <li>any object listed in {@code resources} that doesn't implement {@code IResource} will generate a warning in the log.</li>
|
||||
* </ul>
|
||||
*
|
||||
* @param theProvider - Normally, either a {@link ca.uhn.fhir.rest.server.RestfulServer} or a {@link ca.uhn.fhir.rest.server.IResourceProvider}
|
||||
* that might be annotated with {@link ca.uhn.fhir.model.api.annotation.ProvidesResources}
|
||||
*/
|
||||
public void scanForProvidedResources(Object theProvider) {
|
||||
ProvidesResources annotation = theProvider.getClass().getAnnotation(ProvidesResources.class);
|
||||
if (annotation == null)
|
||||
return;
|
||||
for (Class clazz : annotation.resources()) {
|
||||
if (IResource.class.isAssignableFrom(clazz)) {
|
||||
myContext.getResourceDefinition(clazz);
|
||||
} else {
|
||||
ourLog.warn(clazz.getSimpleName() + "is not assignable from IResource");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -20,52 +20,40 @@ package ca.uhn.fhir.context;
|
|||
* #L%
|
||||
*/
|
||||
|
||||
import static org.apache.commons.lang3.StringUtils.*;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
import java.util.Comparator;
|
||||
import java.util.HashMap;
|
||||
import java.util.Iterator;
|
||||
import java.util.LinkedHashMap;
|
||||
import java.util.LinkedList;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.apache.commons.lang3.text.WordUtils;
|
||||
|
||||
import ca.uhn.fhir.model.api.IElement;
|
||||
import ca.uhn.fhir.model.api.IPrimitiveDatatype;
|
||||
import ca.uhn.fhir.model.api.IResource;
|
||||
import ca.uhn.fhir.model.api.annotation.Child;
|
||||
import ca.uhn.fhir.model.api.annotation.ResourceDef;
|
||||
import ca.uhn.fhir.model.dstu.resource.Profile;
|
||||
import ca.uhn.fhir.model.dstu.resource.Profile.ExtensionDefn;
|
||||
import ca.uhn.fhir.model.dstu.resource.Profile.Structure;
|
||||
import ca.uhn.fhir.model.dstu.resource.Profile.StructureElement;
|
||||
import ca.uhn.fhir.model.dstu.resource.Profile.StructureElementDefinitionType;
|
||||
import ca.uhn.fhir.model.dstu.valueset.DataTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.SlicingRulesEnum;
|
||||
import ca.uhn.fhir.model.primitive.IdDt;
|
||||
|
||||
public class RuntimeResourceDefinition extends BaseRuntimeElementCompositeDefinition<IResource> {
|
||||
|
||||
private static final org.slf4j.Logger ourLog = org.slf4j.LoggerFactory.getLogger(RuntimeResourceDefinition.class);
|
||||
private RuntimeResourceDefinition myBaseDefinition;
|
||||
private Map<RuntimeChildDeclaredExtensionDefinition, String> myExtensionDefToCode = new HashMap<RuntimeChildDeclaredExtensionDefinition, String>();
|
||||
private String myId;
|
||||
private Map<String, RuntimeSearchParam> myNameToSearchParam = new LinkedHashMap<String, RuntimeSearchParam>();
|
||||
private Profile myProfileDef;
|
||||
private IResource myProfileDef;
|
||||
private String myResourceProfile;
|
||||
private List<RuntimeSearchParam> mySearchParams;
|
||||
private FhirContext myContext;
|
||||
private String myId;
|
||||
|
||||
public RuntimeResourceDefinition(String theResourceName, Class<? extends IResource> theClass, ResourceDef theResourceAnnotation) {
|
||||
public RuntimeResourceDefinition(FhirContext theContext, String theResourceName, Class<? extends IResource> theClass, ResourceDef theResourceAnnotation) {
|
||||
super(theResourceName, theClass);
|
||||
myContext= theContext;
|
||||
myResourceProfile = theResourceAnnotation.profile();
|
||||
myId = theResourceAnnotation.id();
|
||||
}
|
||||
|
||||
public String getId() {
|
||||
return myId;
|
||||
}
|
||||
|
||||
public void addSearchParam(RuntimeSearchParam theParam) {
|
||||
myNameToSearchParam.put(theParam.getName(), theParam);
|
||||
}
|
||||
|
@ -129,253 +117,17 @@ public class RuntimeResourceDefinition extends BaseRuntimeElementCompositeDefini
|
|||
} while (target.equals(Object.class)==false);
|
||||
}
|
||||
|
||||
public synchronized Profile toProfile() {
|
||||
public synchronized IResource toProfile() {
|
||||
if (myProfileDef != null) {
|
||||
return myProfileDef;
|
||||
}
|
||||
|
||||
Profile retVal = new Profile();
|
||||
|
||||
RuntimeResourceDefinition def = this;
|
||||
|
||||
if (StringUtils.isBlank(myId)) {
|
||||
myId = getName().toLowerCase();
|
||||
}
|
||||
|
||||
retVal.setId(new IdDt(myId));
|
||||
|
||||
// Scan for extensions
|
||||
scanForExtensions(retVal, def);
|
||||
Collections.sort(retVal.getExtensionDefn(), new Comparator<ExtensionDefn>() {
|
||||
@Override
|
||||
public int compare(ExtensionDefn theO1, ExtensionDefn theO2) {
|
||||
return theO1.getCode().compareTo(theO2.getCode());
|
||||
}
|
||||
});
|
||||
|
||||
// Scan for children
|
||||
retVal.setName(getName());
|
||||
Structure struct = retVal.addStructure();
|
||||
LinkedList<String> path = new LinkedList<String>();
|
||||
|
||||
StructureElement element = struct.addElement();
|
||||
element.getDefinition().setMin(1);
|
||||
element.getDefinition().setMax("1");
|
||||
|
||||
fillProfile(struct, element, def, path, null);
|
||||
|
||||
retVal.getStructure().get(0).getElement().get(0).getDefinition().addType().getCode().setValue("Resource");
|
||||
|
||||
IResource retVal = myContext.getVersion().generateProfile(this);
|
||||
myProfileDef = retVal;
|
||||
|
||||
return retVal;
|
||||
}
|
||||
|
||||
private void fillBasics(StructureElement theElement, BaseRuntimeElementDefinition<?> def, LinkedList<String> path, BaseRuntimeDeclaredChildDefinition theChild) {
|
||||
if (path.isEmpty()) {
|
||||
path.add(def.getName());
|
||||
theElement.setName(def.getName());
|
||||
} else {
|
||||
path.add(WordUtils.uncapitalize(theChild.getElementName()));
|
||||
theElement.setName(theChild.getElementName());
|
||||
}
|
||||
theElement.setPath(StringUtils.join(path, '.'));
|
||||
}
|
||||
|
||||
private void fillExtensions(Structure theStruct, LinkedList<String> path, List<RuntimeChildDeclaredExtensionDefinition> extList, String elementName, boolean theIsModifier) {
|
||||
if (extList.size() > 0) {
|
||||
StructureElement extSlice = theStruct.addElement();
|
||||
extSlice.setName(elementName);
|
||||
extSlice.setPath(join(path, '.') + '.' + elementName);
|
||||
extSlice.getSlicing().getDiscriminator().setValue("url");
|
||||
extSlice.getSlicing().setOrdered(false);
|
||||
extSlice.getSlicing().setRules(SlicingRulesEnum.OPEN);
|
||||
extSlice.getDefinition().addType().setCode(DataTypeEnum.EXTENSION);
|
||||
|
||||
for (RuntimeChildDeclaredExtensionDefinition nextExt : extList) {
|
||||
StructureElement nextProfileExt = theStruct.addElement();
|
||||
nextProfileExt.getDefinition().setIsModifier(theIsModifier);
|
||||
nextProfileExt.setName(extSlice.getName());
|
||||
nextProfileExt.setPath(extSlice.getPath());
|
||||
fillMinAndMaxAndDefinitions(nextExt, nextProfileExt);
|
||||
StructureElementDefinitionType type = nextProfileExt.getDefinition().addType();
|
||||
type.setCode(DataTypeEnum.EXTENSION);
|
||||
if (nextExt.isDefinedLocally()) {
|
||||
type.setProfile(nextExt.getExtensionUrl().substring(nextExt.getExtensionUrl().indexOf('#')));
|
||||
} else {
|
||||
type.setProfile(nextExt.getExtensionUrl());
|
||||
}
|
||||
}
|
||||
} else {
|
||||
StructureElement extSlice = theStruct.addElement();
|
||||
extSlice.setName(elementName);
|
||||
extSlice.setPath(join(path, '.') + '.' + elementName);
|
||||
extSlice.getDefinition().setIsModifier(theIsModifier);
|
||||
extSlice.getDefinition().addType().setCode(DataTypeEnum.EXTENSION);
|
||||
extSlice.getDefinition().setMin(0);
|
||||
extSlice.getDefinition().setMax("*");
|
||||
}
|
||||
}
|
||||
|
||||
private void fillMinAndMaxAndDefinitions(BaseRuntimeDeclaredChildDefinition child, StructureElement elem) {
|
||||
elem.getDefinition().setMin(child.getMin());
|
||||
if (child.getMax() == Child.MAX_UNLIMITED) {
|
||||
elem.getDefinition().setMax("*");
|
||||
} else {
|
||||
elem.getDefinition().setMax(Integer.toString(child.getMax()));
|
||||
}
|
||||
|
||||
if (isNotBlank(child.getShortDefinition())) {
|
||||
elem.getDefinition().getShort().setValue(child.getShortDefinition());
|
||||
}
|
||||
if (isNotBlank(child.getFormalDefinition())) {
|
||||
elem.getDefinition().getFormal().setValue(child.getFormalDefinition());
|
||||
}
|
||||
}
|
||||
|
||||
private void fillName(StructureElement elem, BaseRuntimeElementDefinition<?> nextDef) {
|
||||
if (nextDef instanceof RuntimeResourceReferenceDefinition) {
|
||||
RuntimeResourceReferenceDefinition rr = (RuntimeResourceReferenceDefinition) nextDef;
|
||||
for (Class<? extends IResource> next : rr.getResourceTypes()) {
|
||||
StructureElementDefinitionType type = elem.getDefinition().addType();
|
||||
type.getCode().setValue("ResourceReference");
|
||||
|
||||
if (next != IResource.class) {
|
||||
RuntimeResourceDefinition resDef = rr.getDefinitionForResourceType(next);
|
||||
type.getProfile().setValueAsString(resDef.getResourceProfile());
|
||||
}
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
StructureElementDefinitionType type = elem.getDefinition().addType();
|
||||
String name = nextDef.getName();
|
||||
DataTypeEnum fromCodeString = DataTypeEnum.VALUESET_BINDER.fromCodeString(name);
|
||||
if (fromCodeString == null) {
|
||||
throw new ConfigurationException("Unknown type: " + name);
|
||||
}
|
||||
type.setCode(fromCodeString);
|
||||
}
|
||||
|
||||
private void fillProfile(Structure theStruct, StructureElement theElement, BaseRuntimeElementDefinition<?> def, LinkedList<String> path, BaseRuntimeDeclaredChildDefinition theChild) {
|
||||
|
||||
fillBasics(theElement, def, path, theChild);
|
||||
|
||||
String expectedPath = StringUtils.join(path, '.');
|
||||
|
||||
ourLog.info("Filling profile for: {} - Path: {}", expectedPath);
|
||||
String name = def.getName();
|
||||
if (!expectedPath.equals(name)) {
|
||||
path.pollLast();
|
||||
theElement.getDefinition().getNameReference().setValue(def.getName());
|
||||
return;
|
||||
}
|
||||
|
||||
fillExtensions(theStruct, path, def.getExtensionsNonModifier(), "extension", false);
|
||||
fillExtensions(theStruct, path, def.getExtensionsModifier(), "modifierExtension", true);
|
||||
|
||||
if (def.getChildType() == ChildTypeEnum.RESOURCE) {
|
||||
StructureElement narrative = theStruct.addElement();
|
||||
narrative.setName("text");
|
||||
narrative.setPath(join(path, '.') + ".text");
|
||||
narrative.getDefinition().addType().setCode(DataTypeEnum.NARRATIVE);
|
||||
narrative.getDefinition().setIsModifier(false);
|
||||
narrative.getDefinition().setMin(0);
|
||||
narrative.getDefinition().setMax("1");
|
||||
|
||||
StructureElement contained = theStruct.addElement();
|
||||
contained.setName("contained");
|
||||
contained.setPath(join(path, '.') + ".contained");
|
||||
contained.getDefinition().addType().getCode().setValue("Resource");
|
||||
contained.getDefinition().setIsModifier(false);
|
||||
contained.getDefinition().setMin(0);
|
||||
contained.getDefinition().setMax("1");
|
||||
}
|
||||
|
||||
if (def instanceof BaseRuntimeElementCompositeDefinition) {
|
||||
BaseRuntimeElementCompositeDefinition<?> cdef = ((BaseRuntimeElementCompositeDefinition<?>) def);
|
||||
for (BaseRuntimeChildDefinition nextChild : cdef.getChildren()) {
|
||||
if (nextChild instanceof RuntimeChildUndeclaredExtensionDefinition) {
|
||||
continue;
|
||||
}
|
||||
|
||||
BaseRuntimeDeclaredChildDefinition child = (BaseRuntimeDeclaredChildDefinition) nextChild;
|
||||
StructureElement elem = theStruct.addElement();
|
||||
fillMinAndMaxAndDefinitions(child, elem);
|
||||
|
||||
if (child instanceof RuntimeChildResourceBlockDefinition) {
|
||||
RuntimeResourceBlockDefinition nextDef = (RuntimeResourceBlockDefinition) child.getSingleChildOrThrow();
|
||||
fillProfile(theStruct, elem, nextDef, path, child);
|
||||
} else if (child instanceof RuntimeChildContainedResources) {
|
||||
// ignore
|
||||
} else if (child instanceof RuntimeChildDeclaredExtensionDefinition) {
|
||||
throw new IllegalStateException("Unexpected child type: " + child.getClass().getCanonicalName());
|
||||
} else if (child instanceof RuntimeChildCompositeDatatypeDefinition || child instanceof RuntimeChildPrimitiveDatatypeDefinition || child instanceof RuntimeChildChoiceDefinition
|
||||
|| child instanceof RuntimeChildResourceDefinition) {
|
||||
Iterator<String> childNamesIter = child.getValidChildNames().iterator();
|
||||
String nextName = childNamesIter.next();
|
||||
BaseRuntimeElementDefinition<?> nextDef = child.getChildByName(nextName);
|
||||
fillBasics(elem, nextDef, path, child);
|
||||
fillName(elem, nextDef);
|
||||
while (childNamesIter.hasNext()) {
|
||||
nextDef = child.getChildByName(childNamesIter.next());
|
||||
fillName(elem, nextDef);
|
||||
}
|
||||
path.pollLast();
|
||||
} else {
|
||||
throw new IllegalStateException("Unexpected child type: " + child.getClass().getCanonicalName());
|
||||
}
|
||||
|
||||
}
|
||||
} else {
|
||||
throw new IllegalStateException("Unexpected child type: " + def.getClass().getCanonicalName());
|
||||
}
|
||||
|
||||
path.pollLast();
|
||||
}
|
||||
|
||||
private void scanForExtensions(Profile theProfile, BaseRuntimeElementDefinition<?> def) {
|
||||
BaseRuntimeElementCompositeDefinition<?> cdef = ((BaseRuntimeElementCompositeDefinition<?>) def);
|
||||
|
||||
for (RuntimeChildDeclaredExtensionDefinition nextChild : cdef.getExtensions()) {
|
||||
if (myExtensionDefToCode.containsKey(nextChild)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (nextChild.isDefinedLocally() == false) {
|
||||
continue;
|
||||
}
|
||||
|
||||
ExtensionDefn defn = theProfile.addExtensionDefn();
|
||||
String code = null;
|
||||
if (nextChild.getExtensionUrl().contains("#") && !nextChild.getExtensionUrl().endsWith("#")) {
|
||||
code = nextChild.getExtensionUrl().substring(nextChild.getExtensionUrl().indexOf('#') + 1);
|
||||
} else {
|
||||
throw new ConfigurationException("Locally defined extension has no '#[code]' part in extension URL: " + nextChild.getExtensionUrl());
|
||||
}
|
||||
|
||||
defn.setCode(code);
|
||||
if (myExtensionDefToCode.values().contains(code)) {
|
||||
throw new IllegalStateException("Duplicate extension code: " + code);
|
||||
}
|
||||
myExtensionDefToCode.put(nextChild, code);
|
||||
|
||||
if (nextChild.getChildType() != null && IPrimitiveDatatype.class.isAssignableFrom(nextChild.getChildType())) {
|
||||
RuntimePrimitiveDatatypeDefinition pdef = (RuntimePrimitiveDatatypeDefinition) nextChild.getSingleChildOrThrow();
|
||||
defn.getDefinition().addType().setCode(DataTypeEnum.VALUESET_BINDER.fromCodeString(pdef.getName()));
|
||||
} else {
|
||||
RuntimeResourceBlockDefinition pdef = (RuntimeResourceBlockDefinition) nextChild.getSingleChildOrThrow();
|
||||
scanForExtensions(theProfile, pdef);
|
||||
|
||||
for (RuntimeChildDeclaredExtensionDefinition nextChildExt : pdef.getExtensions()) {
|
||||
StructureElementDefinitionType type = defn.getDefinition().addType();
|
||||
type.setCode(DataTypeEnum.EXTENSION);
|
||||
type.setProfile("#" + myExtensionDefToCode.get(nextChildExt));
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -0,0 +1,25 @@
|
|||
package ca.uhn.fhir.model.api;
|
||||
|
||||
/*
|
||||
* #%L
|
||||
* HAPI FHIR - Core Library
|
||||
* %%
|
||||
* Copyright (C) 2014 University Health Network
|
||||
* %%
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
* #L%
|
||||
*/
|
||||
|
||||
public interface IBoundCodeableConcept {
|
||||
|
||||
}
|
|
@ -0,0 +1,35 @@
|
|||
package ca.uhn.fhir.model.api;
|
||||
|
||||
/*
|
||||
* #%L
|
||||
* HAPI FHIR - Core Library
|
||||
* %%
|
||||
* Copyright (C) 2014 University Health Network
|
||||
* %%
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
* #L%
|
||||
*/
|
||||
|
||||
import ca.uhn.fhir.context.RuntimeResourceDefinition;
|
||||
import ca.uhn.fhir.rest.server.IResourceProvider;
|
||||
import ca.uhn.fhir.rest.server.RestfulServer;
|
||||
|
||||
public interface IFhirVersion {
|
||||
|
||||
IResource generateProfile(RuntimeResourceDefinition theRuntimeResourceDefinition);
|
||||
|
||||
Object createServerConformanceProvider(RestfulServer theServer);
|
||||
|
||||
IResourceProvider createServerProfilesProvider(RestfulServer theRestfulServer);
|
||||
|
||||
}
|
|
@ -0,0 +1,44 @@
|
|||
package ca.uhn.fhir.model.api.annotation;
|
||||
|
||||
/*
|
||||
* #%L
|
||||
* HAPI FHIR - Core Library
|
||||
* %%
|
||||
* Copyright (C) 2014 University Health Network
|
||||
* %%
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
* #L%
|
||||
*/
|
||||
|
||||
import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.RetentionPolicy;
|
||||
|
||||
/**
|
||||
* IResourceProvider and RestfulServer subclasses can use this annotation to designate which custom resources they can provide.
|
||||
* These resources will automatically be added to the resource list used for profile generation.
|
||||
* <pre>
|
||||
* Examples:
|
||||
* {@code
|
||||
* @literal@ProvidesResources(resource=CustomObservation.class)
|
||||
* class CustomObservationResourceProvider implements IResourceProvider{...}
|
||||
*
|
||||
* @literal@ProvidesResources(resource={CustomPatient.class,CustomObservation.class}){...}
|
||||
* class FhirServer extends RestfulServer
|
||||
* }
|
||||
* </pre>
|
||||
* Note that you needn't annotate both the IResourceProvider and the RestfulServer for a given resource; either one will suffice.
|
||||
*/
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
public @interface ProvidesResources {
|
||||
Class[] resources();
|
||||
}
|
|
@ -38,7 +38,7 @@ public @interface ResourceDef {
|
|||
String name() default "";
|
||||
|
||||
/**
|
||||
* Not currently used
|
||||
* if set, will be used as the id for any profiles generated for this resource
|
||||
*/
|
||||
String id() default "";
|
||||
|
||||
|
|
|
@ -25,7 +25,6 @@ import org.apache.commons.lang3.StringUtils;
|
|||
import ca.uhn.fhir.model.api.BaseIdentifiableElement;
|
||||
import ca.uhn.fhir.model.api.ICompositeDatatype;
|
||||
import ca.uhn.fhir.model.api.IQueryParameterType;
|
||||
import ca.uhn.fhir.model.dstu.composite.CodingDt;
|
||||
import ca.uhn.fhir.model.primitive.CodeDt;
|
||||
import ca.uhn.fhir.model.primitive.UriDt;
|
||||
import ca.uhn.fhir.rest.param.ParameterUtil;
|
||||
|
@ -39,7 +38,7 @@ public abstract class BaseCodingDt extends BaseIdentifiableElement implements IC
|
|||
* <b>Definition:</b> A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination)
|
||||
* </p>
|
||||
*/
|
||||
public abstract CodeDt getCode();
|
||||
public abstract CodeDt getCodeElement();
|
||||
|
||||
@Override
|
||||
public String getQueryParameterQualifier() {
|
||||
|
@ -53,17 +52,17 @@ public abstract class BaseCodingDt extends BaseIdentifiableElement implements IC
|
|||
* <b>Definition:</b> The identification of the code system that defines the meaning of the symbol in the code.
|
||||
* </p>
|
||||
*/
|
||||
public abstract UriDt getSystem();
|
||||
public abstract UriDt getSystemElement();
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public String getValueAsQueryToken() {
|
||||
if (getSystem().getValueAsString() != null) {
|
||||
return ParameterUtil.escape(StringUtils.defaultString(getSystem().getValueAsString())) + '|' + ParameterUtil.escape(getCode().getValueAsString());
|
||||
if (getSystemElement().getValueAsString() != null) {
|
||||
return ParameterUtil.escape(StringUtils.defaultString(getSystemElement().getValueAsString())) + '|' + ParameterUtil.escape(getCodeElement().getValueAsString());
|
||||
} else {
|
||||
return ParameterUtil.escape(getCode().getValueAsString());
|
||||
return ParameterUtil.escape(getCodeElement().getValueAsString());
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -82,14 +81,14 @@ public abstract class BaseCodingDt extends BaseIdentifiableElement implements IC
|
|||
}
|
||||
|
||||
/**
|
||||
* Returns true if <code>this</code> Coding has the same {@link CodingDt#getCode() Code} and {@link CodingDt#getSystem() system} (as compared by simple equals comparison). Does not compare other
|
||||
* Codes (e.g. {@link CodingDt#getUse() use}) or any extensions.
|
||||
* Returns true if <code>this</code> Coding has the same {@link ca.uhn.fhir.model.dstu.composite.InternalCodingDt#getCode() Code} and {@link ca.uhn.fhir.model.dstu.composite.InternalCodingDt#getSystem() system} (as compared by simple equals comparison). Does not compare other
|
||||
* Codes (e.g. {@link ca.uhn.fhir.model.dstu.composite.InternalCodingDt#getUse() use}) or any extensions.
|
||||
*/
|
||||
public boolean matchesSystemAndCode(BaseCodingDt theCoding) {
|
||||
if (theCoding == null) {
|
||||
return false;
|
||||
}
|
||||
return getCode().equals(theCoding.getCode()) && getSystem().equals(theCoding.getSystem());
|
||||
return getCodeElement().equals(theCoding.getCodeElement()) && getSystemElement().equals(theCoding.getSystemElement());
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -0,0 +1,25 @@
|
|||
package ca.uhn.fhir.model.base.composite;
|
||||
|
||||
/*
|
||||
* #%L
|
||||
* HAPI FHIR - Core Library
|
||||
* %%
|
||||
* Copyright (C) 2014 University Health Network
|
||||
* %%
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
* #L%
|
||||
*/
|
||||
|
||||
public class BaseContainedDt {
|
||||
|
||||
}
|
|
@ -23,9 +23,9 @@ package ca.uhn.fhir.model.base.composite;
|
|||
import org.apache.commons.lang3.StringUtils;
|
||||
|
||||
import ca.uhn.fhir.model.api.BaseIdentifiableElement;
|
||||
import ca.uhn.fhir.model.api.BasePrimitive;
|
||||
import ca.uhn.fhir.model.api.ICompositeDatatype;
|
||||
import ca.uhn.fhir.model.api.IQueryParameterType;
|
||||
import ca.uhn.fhir.model.dstu.composite.IdentifierDt;
|
||||
import ca.uhn.fhir.model.primitive.StringDt;
|
||||
import ca.uhn.fhir.model.primitive.UriDt;
|
||||
import ca.uhn.fhir.rest.param.ParameterUtil;
|
||||
|
@ -38,83 +38,73 @@ public abstract class BaseIdentifierDt extends BaseIdentifiableElement implement
|
|||
}
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>system</b> (The namespace for the identifier).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
* Gets the value(s) for <b>system</b> (The namespace for the identifier). creating it if it does not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Establishes the namespace in which set of possible id values is unique.
|
||||
* </p>
|
||||
* <p>
|
||||
* <b>Definition:</b> Establishes the namespace in which set of possible id values is unique.
|
||||
* </p>
|
||||
*/
|
||||
public abstract UriDt getSystem() ;
|
||||
public abstract UriDt getSystemElement();
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>value</b> (The value that is unique).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
* Gets the value(s) for <b>value</b> (The value that is unique). creating it if it does not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The portion of the identifier typically displayed to the user and which is unique within the context of the system.
|
||||
* </p>
|
||||
* <p>
|
||||
* <b>Definition:</b> The portion of the identifier typically displayed to the user and which is unique within the context of the system.
|
||||
* </p>
|
||||
*/
|
||||
public abstract StringDt getValue();
|
||||
public abstract StringDt getValueElement();
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public String getValueAsQueryToken() {
|
||||
if (getSystem().getValueAsString() != null) {
|
||||
return ParameterUtil.escape(StringUtils.defaultString(getSystem().getValueAsString())) + '|' + ParameterUtil.escape(getValue().getValueAsString());
|
||||
} else {
|
||||
return ParameterUtil.escape(getValue().getValueAsString());
|
||||
}
|
||||
}
|
||||
UriDt system = (UriDt) getSystemElement();
|
||||
StringDt value = (StringDt) getValueElement();
|
||||
if (system.getValueAsString() != null) {
|
||||
return ParameterUtil.escape(StringUtils.defaultString(system.getValueAsString())) + '|' + ParameterUtil.escape(value.getValueAsString());
|
||||
} else {
|
||||
return ParameterUtil.escape(value.getValueAsString());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Returns true if <code>this</code> identifier has the same {@link IdentifierDt#getValue() value}
|
||||
* and {@link IdentifierDt#getSystem() system} (as compared by simple equals comparison).
|
||||
* Does not compare other values (e.g. {@link IdentifierDt#getUse() use}) or any extensions.
|
||||
* Returns true if <code>this</code> identifier has the same {@link ca.uhn.fhir.model.dstu.composite.IdentifierDt#getValue() value} and
|
||||
* {@link ca.uhn.fhir.model.dstu.composite.IdentifierDt#getSystem() system} (as compared by simple equals comparison). Does not compare other values (e.g.
|
||||
* {@link ca.uhn.fhir.model.dstu.composite.IdentifierDt#getUse() use}) or any extensions.
|
||||
*/
|
||||
public boolean matchesSystemAndValue(BaseIdentifierDt theIdentifier) {
|
||||
if (theIdentifier == null) {
|
||||
return false;
|
||||
}
|
||||
return getValue().equals(theIdentifier.getValue()) && getSystem().equals(theIdentifier.getSystem());
|
||||
return getValueElement().equals(theIdentifier.getValueElement()) && getSystemElement().equals(theIdentifier.getSystemElement());
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
/**
|
||||
* Sets the value for <b>system</b> (The namespace for the identifier)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Establishes the namespace in which set of possible id values is unique.
|
||||
* </p>
|
||||
* <p>
|
||||
* <b>Definition:</b> Establishes the namespace in which set of possible id values is unique.
|
||||
* </p>
|
||||
*/
|
||||
public abstract BaseIdentifierDt setSystem( String theUri);
|
||||
|
||||
|
||||
public abstract BaseIdentifierDt setSystem(String theUri);
|
||||
|
||||
/**
|
||||
* Sets the value for <b>value</b> (The value that is unique)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The portion of the identifier typically displayed to the user and which is unique within the context of the system.
|
||||
* </p>
|
||||
* <p>
|
||||
* <b>Definition:</b> The portion of the identifier typically displayed to the user and which is unique within the context of the system.
|
||||
* </p>
|
||||
*/
|
||||
public abstract BaseIdentifierDt setValue( String theString);
|
||||
|
||||
public abstract BaseIdentifierDt setValue(String theString);
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public void setValueAsQueryToken(String theQualifier, String theParameter) {
|
||||
int barIndex = ParameterUtil.nonEscapedIndexOf(theParameter,'|');
|
||||
int barIndex = ParameterUtil.nonEscapedIndexOf(theParameter, '|');
|
||||
if (barIndex != -1) {
|
||||
setSystem(theParameter.substring(0, barIndex));
|
||||
setValue(ParameterUtil.unescape(theParameter.substring(barIndex + 1)));
|
||||
|
@ -122,5 +112,5 @@ public abstract class BaseIdentifierDt extends BaseIdentifiableElement implement
|
|||
setValue(ParameterUtil.unescape(theParameter));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
|
@ -50,7 +50,7 @@ public abstract class BaseQuantityDt extends BaseIdentifiableElement implements
|
|||
|
||||
@Override
|
||||
public void setValueAsQueryToken(String theQualifier, String theValue) {
|
||||
getComparator().setValue(null);
|
||||
getComparatorElement().setValue(null);
|
||||
setCode( null);
|
||||
setSystem(null);
|
||||
setUnits( null);
|
||||
|
@ -62,16 +62,16 @@ public abstract class BaseQuantityDt extends BaseIdentifiableElement implements
|
|||
String[] parts = theValue.split("\\|");
|
||||
if (parts.length > 0 && StringUtils.isNotBlank(parts[0])) {
|
||||
if (parts[0].startsWith("<=")) {
|
||||
getComparator().setValue(QuantityCompararatorEnum.LESSTHAN_OR_EQUALS.getCode());
|
||||
getComparatorElement().setValue(QuantityCompararatorEnum.LESSTHAN_OR_EQUALS.getCode());
|
||||
setValue(new BigDecimal(parts[0].substring(2)));
|
||||
} else if (parts[0].startsWith("<")) {
|
||||
getComparator().setValue(QuantityCompararatorEnum.LESSTHAN.getCode());
|
||||
getComparatorElement().setValue(QuantityCompararatorEnum.LESSTHAN.getCode());
|
||||
setValue(new BigDecimal(parts[0].substring(1)));
|
||||
} else if (parts[0].startsWith(">=")) {
|
||||
getComparator().setValue(QuantityCompararatorEnum.GREATERTHAN_OR_EQUALS.getCode());
|
||||
getComparatorElement().setValue(QuantityCompararatorEnum.GREATERTHAN_OR_EQUALS.getCode());
|
||||
setValue(new BigDecimal(parts[0].substring(2)));
|
||||
} else if (parts[0].startsWith(">")) {
|
||||
getComparator().setValue(QuantityCompararatorEnum.GREATERTHAN.getCode());
|
||||
getComparatorElement().setValue(QuantityCompararatorEnum.GREATERTHAN.getCode());
|
||||
setValue(new BigDecimal(parts[0].substring(1)));
|
||||
} else {
|
||||
setValue(new BigDecimal(parts[0]));
|
||||
|
@ -96,24 +96,24 @@ public abstract class BaseQuantityDt extends BaseIdentifiableElement implements
|
|||
* How the value should be understood and represented - whether the actual value is greater or less than the stated value due to measurement issues. E.g. if the comparator is \"<\" , then the real value is < stated value
|
||||
* </p>
|
||||
*/
|
||||
public abstract BoundCodeDt<?> getComparator();
|
||||
public abstract BoundCodeDt<?> getComparatorElement();
|
||||
|
||||
@Override
|
||||
public String getValueAsQueryToken() {
|
||||
StringBuilder b= new StringBuilder();
|
||||
if (getComparator() != null) {
|
||||
b.append(getComparator().getValue());
|
||||
if (getComparatorElement() != null) {
|
||||
b.append(getComparatorElement().getValue());
|
||||
}
|
||||
if (!getValue().isEmpty()) {
|
||||
b.append(getValue().getValueAsString());
|
||||
if (!getValueElement().isEmpty()) {
|
||||
b.append(getValueElement().getValueAsString());
|
||||
}
|
||||
b.append('|');
|
||||
if (!getSystem().isEmpty()) {
|
||||
b.append(getSystem().getValueAsString());
|
||||
if (!getSystemElement().isEmpty()) {
|
||||
b.append(getSystemElement().getValueAsString());
|
||||
}
|
||||
b.append('|');
|
||||
if (!getUnits().isEmpty()) {
|
||||
b.append(getUnits().getValueAsString());
|
||||
if (!getUnitsElement().isEmpty()) {
|
||||
b.append(getUnitsElement().getValueAsString());
|
||||
}
|
||||
|
||||
return b.toString();
|
||||
|
@ -150,7 +150,7 @@ public abstract class BaseQuantityDt extends BaseIdentifiableElement implements
|
|||
* The identification of the system that provides the coded form of the unit
|
||||
* </p>
|
||||
*/
|
||||
public abstract UriDt getSystem();
|
||||
public abstract UriDt getSystemElement();
|
||||
|
||||
|
||||
|
||||
|
@ -174,7 +174,7 @@ public abstract class BaseQuantityDt extends BaseIdentifiableElement implements
|
|||
* A computer processable form of the units in some unit representation system
|
||||
* </p>
|
||||
*/
|
||||
public abstract CodeDt getCode();
|
||||
public abstract CodeDt getCodeElement();
|
||||
|
||||
/**
|
||||
* Sets the value for <b>code</b> (Coded form of the unit)
|
||||
|
@ -195,7 +195,7 @@ public abstract class BaseQuantityDt extends BaseIdentifiableElement implements
|
|||
* A human-readable form of the units
|
||||
* </p>
|
||||
*/
|
||||
public abstract StringDt getUnits() ;
|
||||
public abstract StringDt getUnitsElement() ;
|
||||
/**
|
||||
* Gets the value(s) for <b>value</b> (Numerical value (with implicit precision)).
|
||||
* creating it if it does
|
||||
|
@ -206,5 +206,5 @@ public abstract class BaseQuantityDt extends BaseIdentifiableElement implements
|
|||
* The value of the measured amount. The value includes an implicit precision in the presentation of the value
|
||||
* </p>
|
||||
*/
|
||||
public abstract DecimalDt getValue();
|
||||
public abstract DecimalDt getValueElement();
|
||||
}
|
||||
|
|
|
@ -0,0 +1,35 @@
|
|||
package ca.uhn.fhir.model.base.resource;
|
||||
|
||||
/*
|
||||
* #%L
|
||||
* HAPI FHIR - Core Library
|
||||
* %%
|
||||
* Copyright (C) 2014 University Health Network
|
||||
* %%
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
* #L%
|
||||
*/
|
||||
|
||||
import ca.uhn.fhir.model.api.BaseResource;
|
||||
import ca.uhn.fhir.model.api.IResource;
|
||||
import ca.uhn.fhir.model.api.annotation.ResourceDef;
|
||||
import ca.uhn.fhir.model.primitive.StringDt;
|
||||
|
||||
//@ResourceDef(name="Conformance")
|
||||
public abstract class BaseConformance extends BaseResource implements IResource {
|
||||
|
||||
public abstract StringDt getDescriptionElement();
|
||||
|
||||
public abstract StringDt getPublisherElement();
|
||||
|
||||
}
|
|
@ -0,0 +1,59 @@
|
|||
package ca.uhn.fhir.model.base.resource;
|
||||
|
||||
/*
|
||||
* #%L
|
||||
* HAPI FHIR - Core Library
|
||||
* %%
|
||||
* Copyright (C) 2014 University Health Network
|
||||
* %%
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
* #L%
|
||||
*/
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import ca.uhn.fhir.model.api.BaseIdentifiableElement;
|
||||
import ca.uhn.fhir.model.api.BaseResource;
|
||||
import ca.uhn.fhir.model.api.IResource;
|
||||
import ca.uhn.fhir.model.api.IResourceBlock;
|
||||
import ca.uhn.fhir.model.base.composite.BaseCodingDt;
|
||||
import ca.uhn.fhir.model.primitive.CodeDt;
|
||||
import ca.uhn.fhir.model.primitive.StringDt;
|
||||
|
||||
public abstract class BaseOperationOutcome extends BaseResource implements IResource {
|
||||
|
||||
public abstract BaseIssue addIssue();
|
||||
|
||||
public abstract List<? extends BaseIssue> getIssue();
|
||||
|
||||
public abstract BaseIssue getIssueFirstRep();
|
||||
|
||||
public static abstract class BaseIssue extends BaseIdentifiableElement implements IResourceBlock {
|
||||
|
||||
public abstract CodeDt getSeverityElement();
|
||||
|
||||
public abstract StringDt getDetailsElement();
|
||||
|
||||
public abstract BaseCodingDt getType();
|
||||
|
||||
public abstract BaseIssue addLocation( String theString);
|
||||
|
||||
public abstract BaseIssue setDetails(String theString);
|
||||
|
||||
public abstract StringDt getLocationFirstRep();
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
File diff suppressed because it is too large
Load Diff
|
@ -1,624 +0,0 @@
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
package ca.uhn.fhir.model.dstu.resource;
|
||||
|
||||
/*
|
||||
* #%L
|
||||
* HAPI FHIR - Core Library
|
||||
* %%
|
||||
* Copyright (C) 2014 University Health Network
|
||||
* %%
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
* #L%
|
||||
*/
|
||||
|
||||
|
||||
import java.util.*;
|
||||
import ca.uhn.fhir.model.api.*;
|
||||
import ca.uhn.fhir.model.api.annotation.*;
|
||||
import ca.uhn.fhir.rest.gclient.*;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ResourceTypeEnum;
|
||||
|
||||
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.resource.AdverseReaction;
|
||||
import ca.uhn.fhir.model.dstu.valueset.AggregationModeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.AlertStatusEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.AllergyIntolerance;
|
||||
import ca.uhn.fhir.model.dstu.valueset.AnimalSpeciesEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Appointment;
|
||||
import ca.uhn.fhir.model.dstu.composite.AttachmentDt;
|
||||
import ca.uhn.fhir.model.dstu.resource.Availability;
|
||||
import ca.uhn.fhir.model.dstu.valueset.BindingConformanceEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.CarePlan;
|
||||
import ca.uhn.fhir.model.dstu.valueset.CarePlanActivityCategoryEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.CarePlanActivityStatusEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.CarePlanGoalStatusEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.CarePlanStatusEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.CausalityExpectationEnum;
|
||||
import ca.uhn.fhir.model.dstu.composite.CodeableConceptDt;
|
||||
import ca.uhn.fhir.model.dstu.composite.CodingDt;
|
||||
import ca.uhn.fhir.model.dstu.valueset.CompositionAttestationModeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.CompositionStatusEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ConceptMapEquivalenceEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Condition;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ConditionRelationshipTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ConditionStatusEnum;
|
||||
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.ContactUseEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.CriticalityEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.DataTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Device;
|
||||
import ca.uhn.fhir.model.dstu.resource.DeviceObservationReport;
|
||||
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.resource.DiagnosticReport;
|
||||
import ca.uhn.fhir.model.dstu.valueset.DiagnosticReportStatusEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.DocumentManifest;
|
||||
import ca.uhn.fhir.model.dstu.valueset.DocumentModeEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.DocumentReference;
|
||||
import ca.uhn.fhir.model.dstu.valueset.DocumentReferenceStatusEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.DocumentRelationshipTypeEnum;
|
||||
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.ExposureTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ExtensionContextEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.FHIRDefinedTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.FamilyHistory;
|
||||
import ca.uhn.fhir.model.dstu.valueset.FilterOperatorEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.GVFMeta;
|
||||
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.IdentifierUseEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ImagingModalityEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.ImagingStudy;
|
||||
import ca.uhn.fhir.model.dstu.resource.Immunization;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ImmunizationReasonCodesEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.ImmunizationRecommendation;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ImmunizationRecommendationDateCriterionCodesEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ImmunizationRecommendationStatusCodesEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ImmunizationRouteCodesEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.InstanceAvailabilityEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.IssueSeverityEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.IssueTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.LinkTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ListModeEnum;
|
||||
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.resource.MedicationAdministration;
|
||||
import ca.uhn.fhir.model.dstu.valueset.MedicationAdministrationStatusEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.MedicationDispense;
|
||||
import ca.uhn.fhir.model.dstu.valueset.MedicationDispenseStatusEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.MedicationKindEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.MedicationPrescription;
|
||||
import ca.uhn.fhir.model.dstu.valueset.MedicationPrescriptionStatusEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.MedicationStatement;
|
||||
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.resource.Microarray;
|
||||
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.OperationOutcome;
|
||||
import ca.uhn.fhir.model.dstu.resource.Order;
|
||||
import ca.uhn.fhir.model.dstu.valueset.OrderOutcomeStatusEnum;
|
||||
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.Procedure;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ProcedureRelationshipTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Profile;
|
||||
import ca.uhn.fhir.model.dstu.valueset.PropertyRepresentationEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ProvenanceEntityRoleEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.QuantityCompararatorEnum;
|
||||
import ca.uhn.fhir.model.dstu.composite.QuantityDt;
|
||||
import ca.uhn.fhir.model.dstu.valueset.QueryOutcomeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.QuestionnaireGroupNameEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.QuestionnaireNameEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.QuestionnaireStatusEnum;
|
||||
import ca.uhn.fhir.model.dstu.composite.RangeDt;
|
||||
import ca.uhn.fhir.model.dstu.composite.RatioDt;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ReactionSeverityEnum;
|
||||
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.ResponseTypeEnum;
|
||||
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.composite.ScheduleDt;
|
||||
import ca.uhn.fhir.model.dstu.valueset.SearchParamTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.SecurityEventActionEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectLifecycleEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectRoleEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectSensitivityEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.SecurityEventOutcomeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.SecurityEventParticipantNetworkTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.SecurityEventSourceTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.SensitivityStatusEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.SensitivityTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.SequencingAnalysis;
|
||||
import ca.uhn.fhir.model.dstu.resource.SequencingLab;
|
||||
import ca.uhn.fhir.model.dstu.valueset.SlicingRulesEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Slot;
|
||||
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.valueset.SupplyDispenseStatusEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.SupplyItemTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.SupplyStatusEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.SupplyTypeEnum;
|
||||
import ca.uhn.fhir.model.api.TemporalPrecisionEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.ValueSet;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ValueSetStatusEnum;
|
||||
import ca.uhn.fhir.model.api.ExtensionDt;
|
||||
import ca.uhn.fhir.model.api.IResource;
|
||||
import ca.uhn.fhir.model.dstu.composite.AgeDt;
|
||||
import ca.uhn.fhir.model.dstu.composite.DurationDt;
|
||||
import ca.uhn.fhir.model.dstu.resource.Binary;
|
||||
import ca.uhn.fhir.model.primitive.Base64BinaryDt;
|
||||
import ca.uhn.fhir.model.primitive.BooleanDt;
|
||||
import ca.uhn.fhir.model.primitive.BoundCodeDt;
|
||||
import ca.uhn.fhir.model.primitive.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.IdrefDt;
|
||||
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;
|
||||
|
||||
|
||||
/**
|
||||
* HAPI/FHIR <b>Alert</b> Resource
|
||||
* (Key information to flag to healthcare providers)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Prospective warnings of potential issues when providing care to the patient
|
||||
* </p>
|
||||
*
|
||||
* <p>
|
||||
* <b>Requirements:</b>
|
||||
*
|
||||
* </p>
|
||||
*
|
||||
* <p>
|
||||
* <b>Profile Definition:</b>
|
||||
* <a href="http://hl7.org/fhir/profiles/Alert">http://hl7.org/fhir/profiles/Alert</a>
|
||||
* </p>
|
||||
*
|
||||
*/
|
||||
@ResourceDef(name="Alert", profile="http://hl7.org/fhir/profiles/Alert", id="alert")
|
||||
public class Alert extends BaseResource implements IResource {
|
||||
|
||||
/**
|
||||
* Search parameter constant for <b>subject</b>
|
||||
* <p>
|
||||
* Description: <b>The identity of a subject to list alerts for</b><br/>
|
||||
* Type: <b>reference</b><br/>
|
||||
* Path: <b>Alert.subject</b><br/>
|
||||
* </p>
|
||||
*/
|
||||
@SearchParamDefinition(name="subject", path="Alert.subject", description="The identity of a subject to list alerts for", type="reference" )
|
||||
public static final String SP_SUBJECT = "subject";
|
||||
|
||||
/**
|
||||
* <b>Fluent Client</b> search parameter constant for <b>subject</b>
|
||||
* <p>
|
||||
* Description: <b>The identity of a subject to list alerts for</b><br/>
|
||||
* Type: <b>reference</b><br/>
|
||||
* Path: <b>Alert.subject</b><br/>
|
||||
* </p>
|
||||
*/
|
||||
public static final ReferenceClientParam SUBJECT = new ReferenceClientParam(SP_SUBJECT);
|
||||
|
||||
/**
|
||||
* Constant for fluent queries to be used to add include statements. Specifies
|
||||
* the path value of "<b>Alert.subject</b>".
|
||||
*/
|
||||
public static final Include INCLUDE_SUBJECT = new Include("Alert.subject");
|
||||
|
||||
|
||||
@Child(name="identifier", type=IdentifierDt.class, order=0, min=0, max=Child.MAX_UNLIMITED)
|
||||
@Description(
|
||||
shortDefinition="Business identifier",
|
||||
formalDefinition="Identifier assigned to the alert for external use (outside the FHIR environment)"
|
||||
)
|
||||
private java.util.List<IdentifierDt> myIdentifier;
|
||||
|
||||
@Child(name="category", type=CodeableConceptDt.class, order=1, min=0, max=1)
|
||||
@Description(
|
||||
shortDefinition="Clinical, administrative, etc.",
|
||||
formalDefinition="Allows an alert to be divided into different categories like clinical, administrative etc."
|
||||
)
|
||||
private CodeableConceptDt myCategory;
|
||||
|
||||
@Child(name="status", type=CodeDt.class, order=2, min=1, max=1)
|
||||
@Description(
|
||||
shortDefinition="active | inactive | entered in error",
|
||||
formalDefinition="Supports basic workflow"
|
||||
)
|
||||
private BoundCodeDt<AlertStatusEnum> myStatus;
|
||||
|
||||
@Child(name="subject", order=3, min=1, max=1, type={
|
||||
ca.uhn.fhir.model.dstu.resource.Patient.class })
|
||||
@Description(
|
||||
shortDefinition="Who is alert about?",
|
||||
formalDefinition="The person who this alert concerns"
|
||||
)
|
||||
private ResourceReferenceDt mySubject;
|
||||
|
||||
@Child(name="author", order=4, min=0, max=1, type={
|
||||
ca.uhn.fhir.model.dstu.resource.Practitioner.class, ca.uhn.fhir.model.dstu.resource.Patient.class, ca.uhn.fhir.model.dstu.resource.Device.class })
|
||||
@Description(
|
||||
shortDefinition="Alert creator",
|
||||
formalDefinition="The person or device that created the alert"
|
||||
)
|
||||
private ResourceReferenceDt myAuthor;
|
||||
|
||||
@Child(name="note", type=StringDt.class, order=5, min=1, max=1)
|
||||
@Description(
|
||||
shortDefinition="Text of alert",
|
||||
formalDefinition="The textual component of the alert to display to the user"
|
||||
)
|
||||
private StringDt myNote;
|
||||
|
||||
|
||||
@Override
|
||||
public boolean isEmpty() {
|
||||
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myIdentifier, myCategory, myStatus, mySubject, myAuthor, myNote);
|
||||
}
|
||||
|
||||
@Override
|
||||
public <T extends IElement> List<T> getAllPopulatedChildElementsOfType(Class<T> theType) {
|
||||
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myIdentifier, myCategory, myStatus, mySubject, myAuthor, myNote);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>identifier</b> (Business identifier).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Identifier assigned to the alert for external use (outside the FHIR environment)
|
||||
* </p>
|
||||
*/
|
||||
public java.util.List<IdentifierDt> getIdentifier() {
|
||||
if (myIdentifier == null) {
|
||||
myIdentifier = new java.util.ArrayList<IdentifierDt>();
|
||||
}
|
||||
return myIdentifier;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>identifier</b> (Business identifier)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Identifier assigned to the alert for external use (outside the FHIR environment)
|
||||
* </p>
|
||||
*/
|
||||
public Alert setIdentifier(java.util.List<IdentifierDt> theValue) {
|
||||
myIdentifier = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds and returns a new value for <b>identifier</b> (Business identifier)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Identifier assigned to the alert for external use (outside the FHIR environment)
|
||||
* </p>
|
||||
*/
|
||||
public IdentifierDt addIdentifier() {
|
||||
IdentifierDt newType = new IdentifierDt();
|
||||
getIdentifier().add(newType);
|
||||
return newType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the first repetition for <b>identifier</b> (Business identifier),
|
||||
* creating it if it does not already exist.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Identifier assigned to the alert for external use (outside the FHIR environment)
|
||||
* </p>
|
||||
*/
|
||||
public IdentifierDt getIdentifierFirstRep() {
|
||||
if (getIdentifier().isEmpty()) {
|
||||
return addIdentifier();
|
||||
}
|
||||
return getIdentifier().get(0);
|
||||
}
|
||||
/**
|
||||
* Adds a new value for <b>identifier</b> (Business identifier)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Identifier assigned to the alert for external use (outside the FHIR environment)
|
||||
* </p>
|
||||
*
|
||||
* @return Returns a reference to this object, to allow for simple chaining.
|
||||
*/
|
||||
public Alert addIdentifier( IdentifierUseEnum theUse, String theSystem, String theValue, String theLabel) {
|
||||
if (myIdentifier == null) {
|
||||
myIdentifier = new java.util.ArrayList<IdentifierDt>();
|
||||
}
|
||||
myIdentifier.add(new IdentifierDt(theUse, theSystem, theValue, theLabel));
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds a new value for <b>identifier</b> (Business identifier)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Identifier assigned to the alert for external use (outside the FHIR environment)
|
||||
* </p>
|
||||
*
|
||||
* @return Returns a reference to this object, to allow for simple chaining.
|
||||
*/
|
||||
public Alert addIdentifier( String theSystem, String theValue) {
|
||||
if (myIdentifier == null) {
|
||||
myIdentifier = new java.util.ArrayList<IdentifierDt>();
|
||||
}
|
||||
myIdentifier.add(new IdentifierDt(theSystem, theValue));
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>category</b> (Clinical, administrative, etc.).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Allows an alert to be divided into different categories like clinical, administrative etc.
|
||||
* </p>
|
||||
*/
|
||||
public CodeableConceptDt getCategory() {
|
||||
if (myCategory == null) {
|
||||
myCategory = new CodeableConceptDt();
|
||||
}
|
||||
return myCategory;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>category</b> (Clinical, administrative, etc.)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Allows an alert to be divided into different categories like clinical, administrative etc.
|
||||
* </p>
|
||||
*/
|
||||
public Alert setCategory(CodeableConceptDt theValue) {
|
||||
myCategory = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>status</b> (active | inactive | entered in error).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Supports basic workflow
|
||||
* </p>
|
||||
*/
|
||||
public BoundCodeDt<AlertStatusEnum> getStatus() {
|
||||
if (myStatus == null) {
|
||||
myStatus = new BoundCodeDt<AlertStatusEnum>(AlertStatusEnum.VALUESET_BINDER);
|
||||
}
|
||||
return myStatus;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>status</b> (active | inactive | entered in error)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Supports basic workflow
|
||||
* </p>
|
||||
*/
|
||||
public Alert setStatus(BoundCodeDt<AlertStatusEnum> theValue) {
|
||||
myStatus = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>status</b> (active | inactive | entered in error)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Supports basic workflow
|
||||
* </p>
|
||||
*/
|
||||
public Alert setStatus(AlertStatusEnum theValue) {
|
||||
getStatus().setValueAsEnum(theValue);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>subject</b> (Who is alert about?).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The person who this alert concerns
|
||||
* </p>
|
||||
*/
|
||||
public ResourceReferenceDt getSubject() {
|
||||
if (mySubject == null) {
|
||||
mySubject = new ResourceReferenceDt();
|
||||
}
|
||||
return mySubject;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>subject</b> (Who is alert about?)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The person who this alert concerns
|
||||
* </p>
|
||||
*/
|
||||
public Alert setSubject(ResourceReferenceDt theValue) {
|
||||
mySubject = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>author</b> (Alert creator).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The person or device that created the alert
|
||||
* </p>
|
||||
*/
|
||||
public ResourceReferenceDt getAuthor() {
|
||||
if (myAuthor == null) {
|
||||
myAuthor = new ResourceReferenceDt();
|
||||
}
|
||||
return myAuthor;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>author</b> (Alert creator)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The person or device that created the alert
|
||||
* </p>
|
||||
*/
|
||||
public Alert setAuthor(ResourceReferenceDt theValue) {
|
||||
myAuthor = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>note</b> (Text of alert).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The textual component of the alert to display to the user
|
||||
* </p>
|
||||
*/
|
||||
public StringDt getNote() {
|
||||
if (myNote == null) {
|
||||
myNote = new StringDt();
|
||||
}
|
||||
return myNote;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>note</b> (Text of alert)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The textual component of the alert to display to the user
|
||||
* </p>
|
||||
*/
|
||||
public Alert setNote(StringDt theValue) {
|
||||
myNote = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value for <b>note</b> (Text of alert)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The textual component of the alert to display to the user
|
||||
* </p>
|
||||
*/
|
||||
public Alert setNote( String theString) {
|
||||
myNote = new StringDt(theString);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
@Override
|
||||
public ResourceTypeEnum getResourceType() {
|
||||
return ResourceTypeEnum.ALERT;
|
||||
}
|
||||
|
||||
}
|
|
@ -1,961 +0,0 @@
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
package ca.uhn.fhir.model.dstu.resource;
|
||||
|
||||
/*
|
||||
* #%L
|
||||
* HAPI FHIR - Core Library
|
||||
* %%
|
||||
* Copyright (C) 2014 University Health Network
|
||||
* %%
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
* #L%
|
||||
*/
|
||||
|
||||
|
||||
import java.util.*;
|
||||
import ca.uhn.fhir.model.api.*;
|
||||
import ca.uhn.fhir.model.api.annotation.*;
|
||||
import ca.uhn.fhir.rest.gclient.*;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ResourceTypeEnum;
|
||||
|
||||
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.resource.AdverseReaction;
|
||||
import ca.uhn.fhir.model.dstu.valueset.AggregationModeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.AlertStatusEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.AllergyIntolerance;
|
||||
import ca.uhn.fhir.model.dstu.valueset.AnimalSpeciesEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Appointment;
|
||||
import ca.uhn.fhir.model.dstu.composite.AttachmentDt;
|
||||
import ca.uhn.fhir.model.dstu.resource.Availability;
|
||||
import ca.uhn.fhir.model.dstu.valueset.BindingConformanceEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.CarePlan;
|
||||
import ca.uhn.fhir.model.dstu.valueset.CarePlanActivityCategoryEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.CarePlanActivityStatusEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.CarePlanGoalStatusEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.CarePlanStatusEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.CausalityExpectationEnum;
|
||||
import ca.uhn.fhir.model.dstu.composite.CodeableConceptDt;
|
||||
import ca.uhn.fhir.model.dstu.composite.CodingDt;
|
||||
import ca.uhn.fhir.model.dstu.valueset.CompositionAttestationModeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.CompositionStatusEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ConceptMapEquivalenceEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Condition;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ConditionRelationshipTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ConditionStatusEnum;
|
||||
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.ContactUseEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.CriticalityEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.DataTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Device;
|
||||
import ca.uhn.fhir.model.dstu.resource.DeviceObservationReport;
|
||||
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.resource.DiagnosticReport;
|
||||
import ca.uhn.fhir.model.dstu.valueset.DiagnosticReportStatusEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.DocumentManifest;
|
||||
import ca.uhn.fhir.model.dstu.valueset.DocumentModeEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.DocumentReference;
|
||||
import ca.uhn.fhir.model.dstu.valueset.DocumentReferenceStatusEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.DocumentRelationshipTypeEnum;
|
||||
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.ExposureTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ExtensionContextEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.FHIRDefinedTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.FamilyHistory;
|
||||
import ca.uhn.fhir.model.dstu.valueset.FilterOperatorEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.GVFMeta;
|
||||
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.IdentifierUseEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ImagingModalityEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.ImagingStudy;
|
||||
import ca.uhn.fhir.model.dstu.resource.Immunization;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ImmunizationReasonCodesEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.ImmunizationRecommendation;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ImmunizationRecommendationDateCriterionCodesEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ImmunizationRecommendationStatusCodesEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ImmunizationRouteCodesEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.InstanceAvailabilityEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.IssueSeverityEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.IssueTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.LinkTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ListModeEnum;
|
||||
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.resource.MedicationAdministration;
|
||||
import ca.uhn.fhir.model.dstu.valueset.MedicationAdministrationStatusEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.MedicationDispense;
|
||||
import ca.uhn.fhir.model.dstu.valueset.MedicationDispenseStatusEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.MedicationKindEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.MedicationPrescription;
|
||||
import ca.uhn.fhir.model.dstu.valueset.MedicationPrescriptionStatusEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.MedicationStatement;
|
||||
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.resource.Microarray;
|
||||
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.OperationOutcome;
|
||||
import ca.uhn.fhir.model.dstu.resource.Order;
|
||||
import ca.uhn.fhir.model.dstu.valueset.OrderOutcomeStatusEnum;
|
||||
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.Procedure;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ProcedureRelationshipTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Profile;
|
||||
import ca.uhn.fhir.model.dstu.valueset.PropertyRepresentationEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ProvenanceEntityRoleEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.QuantityCompararatorEnum;
|
||||
import ca.uhn.fhir.model.dstu.composite.QuantityDt;
|
||||
import ca.uhn.fhir.model.dstu.valueset.QueryOutcomeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.QuestionnaireGroupNameEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.QuestionnaireNameEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.QuestionnaireStatusEnum;
|
||||
import ca.uhn.fhir.model.dstu.composite.RangeDt;
|
||||
import ca.uhn.fhir.model.dstu.composite.RatioDt;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ReactionSeverityEnum;
|
||||
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.ResponseTypeEnum;
|
||||
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.composite.ScheduleDt;
|
||||
import ca.uhn.fhir.model.dstu.valueset.SearchParamTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.SecurityEventActionEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectLifecycleEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectRoleEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectSensitivityEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.SecurityEventOutcomeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.SecurityEventParticipantNetworkTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.SecurityEventSourceTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.SensitivityStatusEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.SensitivityTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.SequencingAnalysis;
|
||||
import ca.uhn.fhir.model.dstu.resource.SequencingLab;
|
||||
import ca.uhn.fhir.model.dstu.valueset.SlicingRulesEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Slot;
|
||||
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.valueset.SupplyDispenseStatusEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.SupplyItemTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.SupplyStatusEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.SupplyTypeEnum;
|
||||
import ca.uhn.fhir.model.api.TemporalPrecisionEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.ValueSet;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ValueSetStatusEnum;
|
||||
import ca.uhn.fhir.model.api.ExtensionDt;
|
||||
import ca.uhn.fhir.model.api.IResource;
|
||||
import ca.uhn.fhir.model.dstu.composite.AgeDt;
|
||||
import ca.uhn.fhir.model.dstu.composite.DurationDt;
|
||||
import ca.uhn.fhir.model.dstu.resource.Binary;
|
||||
import ca.uhn.fhir.model.primitive.Base64BinaryDt;
|
||||
import ca.uhn.fhir.model.primitive.BooleanDt;
|
||||
import ca.uhn.fhir.model.primitive.BoundCodeDt;
|
||||
import ca.uhn.fhir.model.primitive.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.IdrefDt;
|
||||
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;
|
||||
|
||||
|
||||
/**
|
||||
* HAPI/FHIR <b>AllergyIntolerance</b> Resource
|
||||
* (Drug, food, environmental and others)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Indicates the patient has a susceptibility to an adverse reaction upon exposure to a specified substance
|
||||
* </p>
|
||||
*
|
||||
* <p>
|
||||
* <b>Requirements:</b>
|
||||
*
|
||||
* </p>
|
||||
*
|
||||
* <p>
|
||||
* <b>Profile Definition:</b>
|
||||
* <a href="http://hl7.org/fhir/profiles/AllergyIntolerance">http://hl7.org/fhir/profiles/AllergyIntolerance</a>
|
||||
* </p>
|
||||
*
|
||||
*/
|
||||
@ResourceDef(name="AllergyIntolerance", profile="http://hl7.org/fhir/profiles/AllergyIntolerance", id="allergyintolerance")
|
||||
public class AllergyIntolerance extends BaseResource implements IResource {
|
||||
|
||||
/**
|
||||
* Search parameter constant for <b>type</b>
|
||||
* <p>
|
||||
* Description: <b>The type of sensitivity</b><br/>
|
||||
* Type: <b>token</b><br/>
|
||||
* Path: <b>AllergyIntolerance.sensitivityType</b><br/>
|
||||
* </p>
|
||||
*/
|
||||
@SearchParamDefinition(name="type", path="AllergyIntolerance.sensitivityType", description="The type of sensitivity", type="token" )
|
||||
public static final String SP_TYPE = "type";
|
||||
|
||||
/**
|
||||
* <b>Fluent Client</b> search parameter constant for <b>type</b>
|
||||
* <p>
|
||||
* Description: <b>The type of sensitivity</b><br/>
|
||||
* Type: <b>token</b><br/>
|
||||
* Path: <b>AllergyIntolerance.sensitivityType</b><br/>
|
||||
* </p>
|
||||
*/
|
||||
public static final TokenClientParam TYPE = new TokenClientParam(SP_TYPE);
|
||||
|
||||
/**
|
||||
* Search parameter constant for <b>substance</b>
|
||||
* <p>
|
||||
* Description: <b>The name or code of the substance that produces the sensitivity</b><br/>
|
||||
* Type: <b>reference</b><br/>
|
||||
* Path: <b>AllergyIntolerance.substance</b><br/>
|
||||
* </p>
|
||||
*/
|
||||
@SearchParamDefinition(name="substance", path="AllergyIntolerance.substance", description="The name or code of the substance that produces the sensitivity", type="reference" )
|
||||
public static final String SP_SUBSTANCE = "substance";
|
||||
|
||||
/**
|
||||
* <b>Fluent Client</b> search parameter constant for <b>substance</b>
|
||||
* <p>
|
||||
* Description: <b>The name or code of the substance that produces the sensitivity</b><br/>
|
||||
* Type: <b>reference</b><br/>
|
||||
* Path: <b>AllergyIntolerance.substance</b><br/>
|
||||
* </p>
|
||||
*/
|
||||
public static final ReferenceClientParam SUBSTANCE = new ReferenceClientParam(SP_SUBSTANCE);
|
||||
|
||||
/**
|
||||
* Constant for fluent queries to be used to add include statements. Specifies
|
||||
* the path value of "<b>AllergyIntolerance.substance</b>".
|
||||
*/
|
||||
public static final Include INCLUDE_SUBSTANCE = new Include("AllergyIntolerance.substance");
|
||||
|
||||
/**
|
||||
* Search parameter constant for <b>date</b>
|
||||
* <p>
|
||||
* Description: <b>Recorded date/time.</b><br/>
|
||||
* Type: <b>date</b><br/>
|
||||
* Path: <b>AllergyIntolerance.recordedDate</b><br/>
|
||||
* </p>
|
||||
*/
|
||||
@SearchParamDefinition(name="date", path="AllergyIntolerance.recordedDate", description="Recorded date/time.", type="date" )
|
||||
public static final String SP_DATE = "date";
|
||||
|
||||
/**
|
||||
* <b>Fluent Client</b> search parameter constant for <b>date</b>
|
||||
* <p>
|
||||
* Description: <b>Recorded date/time.</b><br/>
|
||||
* Type: <b>date</b><br/>
|
||||
* Path: <b>AllergyIntolerance.recordedDate</b><br/>
|
||||
* </p>
|
||||
*/
|
||||
public static final DateClientParam DATE = new DateClientParam(SP_DATE);
|
||||
|
||||
/**
|
||||
* Search parameter constant for <b>status</b>
|
||||
* <p>
|
||||
* Description: <b>The status of the sensitivity</b><br/>
|
||||
* Type: <b>token</b><br/>
|
||||
* Path: <b>AllergyIntolerance.status</b><br/>
|
||||
* </p>
|
||||
*/
|
||||
@SearchParamDefinition(name="status", path="AllergyIntolerance.status", description="The status of the sensitivity", type="token" )
|
||||
public static final String SP_STATUS = "status";
|
||||
|
||||
/**
|
||||
* <b>Fluent Client</b> search parameter constant for <b>status</b>
|
||||
* <p>
|
||||
* Description: <b>The status of the sensitivity</b><br/>
|
||||
* Type: <b>token</b><br/>
|
||||
* Path: <b>AllergyIntolerance.status</b><br/>
|
||||
* </p>
|
||||
*/
|
||||
public static final TokenClientParam STATUS = new TokenClientParam(SP_STATUS);
|
||||
|
||||
/**
|
||||
* Search parameter constant for <b>subject</b>
|
||||
* <p>
|
||||
* Description: <b>The subject that the sensitivity is about</b><br/>
|
||||
* Type: <b>reference</b><br/>
|
||||
* Path: <b>AllergyIntolerance.subject</b><br/>
|
||||
* </p>
|
||||
*/
|
||||
@SearchParamDefinition(name="subject", path="AllergyIntolerance.subject", description="The subject that the sensitivity is about", type="reference" )
|
||||
public static final String SP_SUBJECT = "subject";
|
||||
|
||||
/**
|
||||
* <b>Fluent Client</b> search parameter constant for <b>subject</b>
|
||||
* <p>
|
||||
* Description: <b>The subject that the sensitivity is about</b><br/>
|
||||
* Type: <b>reference</b><br/>
|
||||
* Path: <b>AllergyIntolerance.subject</b><br/>
|
||||
* </p>
|
||||
*/
|
||||
public static final ReferenceClientParam SUBJECT = new ReferenceClientParam(SP_SUBJECT);
|
||||
|
||||
/**
|
||||
* Constant for fluent queries to be used to add include statements. Specifies
|
||||
* the path value of "<b>AllergyIntolerance.subject</b>".
|
||||
*/
|
||||
public static final Include INCLUDE_SUBJECT = new Include("AllergyIntolerance.subject");
|
||||
|
||||
/**
|
||||
* Search parameter constant for <b>recorder</b>
|
||||
* <p>
|
||||
* Description: <b>Who recorded the sensitivity</b><br/>
|
||||
* Type: <b>reference</b><br/>
|
||||
* Path: <b>AllergyIntolerance.recorder</b><br/>
|
||||
* </p>
|
||||
*/
|
||||
@SearchParamDefinition(name="recorder", path="AllergyIntolerance.recorder", description="Who recorded the sensitivity", type="reference" )
|
||||
public static final String SP_RECORDER = "recorder";
|
||||
|
||||
/**
|
||||
* <b>Fluent Client</b> search parameter constant for <b>recorder</b>
|
||||
* <p>
|
||||
* Description: <b>Who recorded the sensitivity</b><br/>
|
||||
* Type: <b>reference</b><br/>
|
||||
* Path: <b>AllergyIntolerance.recorder</b><br/>
|
||||
* </p>
|
||||
*/
|
||||
public static final ReferenceClientParam RECORDER = new ReferenceClientParam(SP_RECORDER);
|
||||
|
||||
/**
|
||||
* Constant for fluent queries to be used to add include statements. Specifies
|
||||
* the path value of "<b>AllergyIntolerance.recorder</b>".
|
||||
*/
|
||||
public static final Include INCLUDE_RECORDER = new Include("AllergyIntolerance.recorder");
|
||||
|
||||
|
||||
@Child(name="identifier", type=IdentifierDt.class, order=0, min=0, max=Child.MAX_UNLIMITED)
|
||||
@Description(
|
||||
shortDefinition="External Ids for this item",
|
||||
formalDefinition="This records identifiers associated with this allergy/intolerance concern that are defined by business processed and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation)"
|
||||
)
|
||||
private java.util.List<IdentifierDt> myIdentifier;
|
||||
|
||||
@Child(name="criticality", type=CodeDt.class, order=1, min=0, max=1)
|
||||
@Description(
|
||||
shortDefinition="fatal | high | medium | low",
|
||||
formalDefinition="Criticality of the sensitivity"
|
||||
)
|
||||
private BoundCodeDt<CriticalityEnum> myCriticality;
|
||||
|
||||
@Child(name="sensitivityType", type=CodeDt.class, order=2, min=1, max=1)
|
||||
@Description(
|
||||
shortDefinition="allergy | intolerance | unknown",
|
||||
formalDefinition="Type of the sensitivity"
|
||||
)
|
||||
private BoundCodeDt<SensitivityTypeEnum> mySensitivityType;
|
||||
|
||||
@Child(name="recordedDate", type=DateTimeDt.class, order=3, min=0, max=1)
|
||||
@Description(
|
||||
shortDefinition="When recorded",
|
||||
formalDefinition="Date when the sensitivity was recorded"
|
||||
)
|
||||
private DateTimeDt myRecordedDate;
|
||||
|
||||
@Child(name="status", type=CodeDt.class, order=4, min=1, max=1)
|
||||
@Description(
|
||||
shortDefinition="suspected | confirmed | refuted | resolved",
|
||||
formalDefinition="Status of the sensitivity"
|
||||
)
|
||||
private BoundCodeDt<SensitivityStatusEnum> myStatus;
|
||||
|
||||
@Child(name="subject", order=5, min=1, max=1, type={
|
||||
ca.uhn.fhir.model.dstu.resource.Patient.class })
|
||||
@Description(
|
||||
shortDefinition="Who the sensitivity is for",
|
||||
formalDefinition="The patient who has the allergy or intolerance"
|
||||
)
|
||||
private ResourceReferenceDt mySubject;
|
||||
|
||||
@Child(name="recorder", order=6, min=0, max=1, type={
|
||||
ca.uhn.fhir.model.dstu.resource.Practitioner.class, ca.uhn.fhir.model.dstu.resource.Patient.class })
|
||||
@Description(
|
||||
shortDefinition="Who recorded the sensitivity",
|
||||
formalDefinition="Indicates who has responsibility for the record"
|
||||
)
|
||||
private ResourceReferenceDt myRecorder;
|
||||
|
||||
@Child(name="substance", order=7, min=1, max=1, type={
|
||||
ca.uhn.fhir.model.dstu.resource.Substance.class })
|
||||
@Description(
|
||||
shortDefinition="The substance that causes the sensitivity",
|
||||
formalDefinition="The substance that causes the sensitivity"
|
||||
)
|
||||
private ResourceReferenceDt mySubstance;
|
||||
|
||||
@Child(name="reaction", order=8, min=0, max=Child.MAX_UNLIMITED, type={
|
||||
ca.uhn.fhir.model.dstu.resource.AdverseReaction.class })
|
||||
@Description(
|
||||
shortDefinition="Reactions associated with the sensitivity",
|
||||
formalDefinition="Reactions associated with the sensitivity"
|
||||
)
|
||||
private java.util.List<ResourceReferenceDt> myReaction;
|
||||
|
||||
@Child(name="sensitivityTest", order=9, min=0, max=Child.MAX_UNLIMITED, type={
|
||||
ca.uhn.fhir.model.dstu.resource.Observation.class })
|
||||
@Description(
|
||||
shortDefinition="Observations that confirm or refute",
|
||||
formalDefinition="Observations that confirm or refute the sensitivity"
|
||||
)
|
||||
private java.util.List<ResourceReferenceDt> mySensitivityTest;
|
||||
|
||||
|
||||
@Override
|
||||
public boolean isEmpty() {
|
||||
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myIdentifier, myCriticality, mySensitivityType, myRecordedDate, myStatus, mySubject, myRecorder, mySubstance, myReaction, mySensitivityTest);
|
||||
}
|
||||
|
||||
@Override
|
||||
public <T extends IElement> List<T> getAllPopulatedChildElementsOfType(Class<T> theType) {
|
||||
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myIdentifier, myCriticality, mySensitivityType, myRecordedDate, myStatus, mySubject, myRecorder, mySubstance, myReaction, mySensitivityTest);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>identifier</b> (External Ids for this item).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* This records identifiers associated with this allergy/intolerance concern that are defined by business processed and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation)
|
||||
* </p>
|
||||
*/
|
||||
public java.util.List<IdentifierDt> getIdentifier() {
|
||||
if (myIdentifier == null) {
|
||||
myIdentifier = new java.util.ArrayList<IdentifierDt>();
|
||||
}
|
||||
return myIdentifier;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>identifier</b> (External Ids for this item)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* This records identifiers associated with this allergy/intolerance concern that are defined by business processed and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation)
|
||||
* </p>
|
||||
*/
|
||||
public AllergyIntolerance setIdentifier(java.util.List<IdentifierDt> theValue) {
|
||||
myIdentifier = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds and returns a new value for <b>identifier</b> (External Ids for this item)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* This records identifiers associated with this allergy/intolerance concern that are defined by business processed and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation)
|
||||
* </p>
|
||||
*/
|
||||
public IdentifierDt addIdentifier() {
|
||||
IdentifierDt newType = new IdentifierDt();
|
||||
getIdentifier().add(newType);
|
||||
return newType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the first repetition for <b>identifier</b> (External Ids for this item),
|
||||
* creating it if it does not already exist.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* This records identifiers associated with this allergy/intolerance concern that are defined by business processed and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation)
|
||||
* </p>
|
||||
*/
|
||||
public IdentifierDt getIdentifierFirstRep() {
|
||||
if (getIdentifier().isEmpty()) {
|
||||
return addIdentifier();
|
||||
}
|
||||
return getIdentifier().get(0);
|
||||
}
|
||||
/**
|
||||
* Adds a new value for <b>identifier</b> (External Ids for this item)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* This records identifiers associated with this allergy/intolerance concern that are defined by business processed and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation)
|
||||
* </p>
|
||||
*
|
||||
* @return Returns a reference to this object, to allow for simple chaining.
|
||||
*/
|
||||
public AllergyIntolerance addIdentifier( IdentifierUseEnum theUse, String theSystem, String theValue, String theLabel) {
|
||||
if (myIdentifier == null) {
|
||||
myIdentifier = new java.util.ArrayList<IdentifierDt>();
|
||||
}
|
||||
myIdentifier.add(new IdentifierDt(theUse, theSystem, theValue, theLabel));
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds a new value for <b>identifier</b> (External Ids for this item)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* This records identifiers associated with this allergy/intolerance concern that are defined by business processed and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation)
|
||||
* </p>
|
||||
*
|
||||
* @return Returns a reference to this object, to allow for simple chaining.
|
||||
*/
|
||||
public AllergyIntolerance addIdentifier( String theSystem, String theValue) {
|
||||
if (myIdentifier == null) {
|
||||
myIdentifier = new java.util.ArrayList<IdentifierDt>();
|
||||
}
|
||||
myIdentifier.add(new IdentifierDt(theSystem, theValue));
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>criticality</b> (fatal | high | medium | low).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Criticality of the sensitivity
|
||||
* </p>
|
||||
*/
|
||||
public BoundCodeDt<CriticalityEnum> getCriticality() {
|
||||
if (myCriticality == null) {
|
||||
myCriticality = new BoundCodeDt<CriticalityEnum>(CriticalityEnum.VALUESET_BINDER);
|
||||
}
|
||||
return myCriticality;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>criticality</b> (fatal | high | medium | low)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Criticality of the sensitivity
|
||||
* </p>
|
||||
*/
|
||||
public AllergyIntolerance setCriticality(BoundCodeDt<CriticalityEnum> theValue) {
|
||||
myCriticality = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>criticality</b> (fatal | high | medium | low)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Criticality of the sensitivity
|
||||
* </p>
|
||||
*/
|
||||
public AllergyIntolerance setCriticality(CriticalityEnum theValue) {
|
||||
getCriticality().setValueAsEnum(theValue);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>sensitivityType</b> (allergy | intolerance | unknown).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Type of the sensitivity
|
||||
* </p>
|
||||
*/
|
||||
public BoundCodeDt<SensitivityTypeEnum> getSensitivityType() {
|
||||
if (mySensitivityType == null) {
|
||||
mySensitivityType = new BoundCodeDt<SensitivityTypeEnum>(SensitivityTypeEnum.VALUESET_BINDER);
|
||||
}
|
||||
return mySensitivityType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>sensitivityType</b> (allergy | intolerance | unknown)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Type of the sensitivity
|
||||
* </p>
|
||||
*/
|
||||
public AllergyIntolerance setSensitivityType(BoundCodeDt<SensitivityTypeEnum> theValue) {
|
||||
mySensitivityType = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>sensitivityType</b> (allergy | intolerance | unknown)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Type of the sensitivity
|
||||
* </p>
|
||||
*/
|
||||
public AllergyIntolerance setSensitivityType(SensitivityTypeEnum theValue) {
|
||||
getSensitivityType().setValueAsEnum(theValue);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>recordedDate</b> (When recorded).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Date when the sensitivity was recorded
|
||||
* </p>
|
||||
*/
|
||||
public DateTimeDt getRecordedDate() {
|
||||
if (myRecordedDate == null) {
|
||||
myRecordedDate = new DateTimeDt();
|
||||
}
|
||||
return myRecordedDate;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>recordedDate</b> (When recorded)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Date when the sensitivity was recorded
|
||||
* </p>
|
||||
*/
|
||||
public AllergyIntolerance setRecordedDate(DateTimeDt theValue) {
|
||||
myRecordedDate = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value for <b>recordedDate</b> (When recorded)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Date when the sensitivity was recorded
|
||||
* </p>
|
||||
*/
|
||||
public AllergyIntolerance setRecordedDateWithSecondsPrecision( Date theDate) {
|
||||
myRecordedDate = new DateTimeDt(theDate);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value for <b>recordedDate</b> (When recorded)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Date when the sensitivity was recorded
|
||||
* </p>
|
||||
*/
|
||||
public AllergyIntolerance setRecordedDate( Date theDate, TemporalPrecisionEnum thePrecision) {
|
||||
myRecordedDate = new DateTimeDt(theDate, thePrecision);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>status</b> (suspected | confirmed | refuted | resolved).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Status of the sensitivity
|
||||
* </p>
|
||||
*/
|
||||
public BoundCodeDt<SensitivityStatusEnum> getStatus() {
|
||||
if (myStatus == null) {
|
||||
myStatus = new BoundCodeDt<SensitivityStatusEnum>(SensitivityStatusEnum.VALUESET_BINDER);
|
||||
}
|
||||
return myStatus;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>status</b> (suspected | confirmed | refuted | resolved)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Status of the sensitivity
|
||||
* </p>
|
||||
*/
|
||||
public AllergyIntolerance setStatus(BoundCodeDt<SensitivityStatusEnum> theValue) {
|
||||
myStatus = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>status</b> (suspected | confirmed | refuted | resolved)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Status of the sensitivity
|
||||
* </p>
|
||||
*/
|
||||
public AllergyIntolerance setStatus(SensitivityStatusEnum theValue) {
|
||||
getStatus().setValueAsEnum(theValue);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>subject</b> (Who the sensitivity is for).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The patient who has the allergy or intolerance
|
||||
* </p>
|
||||
*/
|
||||
public ResourceReferenceDt getSubject() {
|
||||
if (mySubject == null) {
|
||||
mySubject = new ResourceReferenceDt();
|
||||
}
|
||||
return mySubject;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>subject</b> (Who the sensitivity is for)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The patient who has the allergy or intolerance
|
||||
* </p>
|
||||
*/
|
||||
public AllergyIntolerance setSubject(ResourceReferenceDt theValue) {
|
||||
mySubject = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>recorder</b> (Who recorded the sensitivity).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Indicates who has responsibility for the record
|
||||
* </p>
|
||||
*/
|
||||
public ResourceReferenceDt getRecorder() {
|
||||
if (myRecorder == null) {
|
||||
myRecorder = new ResourceReferenceDt();
|
||||
}
|
||||
return myRecorder;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>recorder</b> (Who recorded the sensitivity)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Indicates who has responsibility for the record
|
||||
* </p>
|
||||
*/
|
||||
public AllergyIntolerance setRecorder(ResourceReferenceDt theValue) {
|
||||
myRecorder = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>substance</b> (The substance that causes the sensitivity).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The substance that causes the sensitivity
|
||||
* </p>
|
||||
*/
|
||||
public ResourceReferenceDt getSubstance() {
|
||||
if (mySubstance == null) {
|
||||
mySubstance = new ResourceReferenceDt();
|
||||
}
|
||||
return mySubstance;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>substance</b> (The substance that causes the sensitivity)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The substance that causes the sensitivity
|
||||
* </p>
|
||||
*/
|
||||
public AllergyIntolerance setSubstance(ResourceReferenceDt theValue) {
|
||||
mySubstance = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>reaction</b> (Reactions associated with the sensitivity).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Reactions associated with the sensitivity
|
||||
* </p>
|
||||
*/
|
||||
public java.util.List<ResourceReferenceDt> getReaction() {
|
||||
if (myReaction == null) {
|
||||
myReaction = new java.util.ArrayList<ResourceReferenceDt>();
|
||||
}
|
||||
return myReaction;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>reaction</b> (Reactions associated with the sensitivity)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Reactions associated with the sensitivity
|
||||
* </p>
|
||||
*/
|
||||
public AllergyIntolerance setReaction(java.util.List<ResourceReferenceDt> theValue) {
|
||||
myReaction = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds and returns a new value for <b>reaction</b> (Reactions associated with the sensitivity)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Reactions associated with the sensitivity
|
||||
* </p>
|
||||
*/
|
||||
public ResourceReferenceDt addReaction() {
|
||||
ResourceReferenceDt newType = new ResourceReferenceDt();
|
||||
getReaction().add(newType);
|
||||
return newType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>sensitivityTest</b> (Observations that confirm or refute).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Observations that confirm or refute the sensitivity
|
||||
* </p>
|
||||
*/
|
||||
public java.util.List<ResourceReferenceDt> getSensitivityTest() {
|
||||
if (mySensitivityTest == null) {
|
||||
mySensitivityTest = new java.util.ArrayList<ResourceReferenceDt>();
|
||||
}
|
||||
return mySensitivityTest;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>sensitivityTest</b> (Observations that confirm or refute)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Observations that confirm or refute the sensitivity
|
||||
* </p>
|
||||
*/
|
||||
public AllergyIntolerance setSensitivityTest(java.util.List<ResourceReferenceDt> theValue) {
|
||||
mySensitivityTest = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds and returns a new value for <b>sensitivityTest</b> (Observations that confirm or refute)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Observations that confirm or refute the sensitivity
|
||||
* </p>
|
||||
*/
|
||||
public ResourceReferenceDt addSensitivityTest() {
|
||||
ResourceReferenceDt newType = new ResourceReferenceDt();
|
||||
getSensitivityTest().add(newType);
|
||||
return newType;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@Override
|
||||
public ResourceTypeEnum getResourceType() {
|
||||
return ResourceTypeEnum.ALLERGYINTOLERANCE;
|
||||
}
|
||||
|
||||
}
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
|
@ -1,696 +0,0 @@
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
package ca.uhn.fhir.model.dstu.resource;
|
||||
|
||||
/*
|
||||
* #%L
|
||||
* HAPI FHIR - Core Library
|
||||
* %%
|
||||
* Copyright (C) 2014 University Health Network
|
||||
* %%
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
* #L%
|
||||
*/
|
||||
|
||||
|
||||
import java.util.*;
|
||||
import ca.uhn.fhir.model.api.*;
|
||||
import ca.uhn.fhir.model.api.annotation.*;
|
||||
import ca.uhn.fhir.rest.gclient.*;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ResourceTypeEnum;
|
||||
|
||||
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.resource.AdverseReaction;
|
||||
import ca.uhn.fhir.model.dstu.valueset.AggregationModeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.AlertStatusEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.AllergyIntolerance;
|
||||
import ca.uhn.fhir.model.dstu.valueset.AnimalSpeciesEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Appointment;
|
||||
import ca.uhn.fhir.model.dstu.composite.AttachmentDt;
|
||||
import ca.uhn.fhir.model.dstu.resource.Availability;
|
||||
import ca.uhn.fhir.model.dstu.valueset.BindingConformanceEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.CarePlan;
|
||||
import ca.uhn.fhir.model.dstu.valueset.CarePlanActivityCategoryEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.CarePlanActivityStatusEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.CarePlanGoalStatusEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.CarePlanStatusEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.CausalityExpectationEnum;
|
||||
import ca.uhn.fhir.model.dstu.composite.CodeableConceptDt;
|
||||
import ca.uhn.fhir.model.dstu.composite.CodingDt;
|
||||
import ca.uhn.fhir.model.dstu.valueset.CompositionAttestationModeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.CompositionStatusEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ConceptMapEquivalenceEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Condition;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ConditionRelationshipTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ConditionStatusEnum;
|
||||
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.ContactUseEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.CriticalityEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.DataTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Device;
|
||||
import ca.uhn.fhir.model.dstu.resource.DeviceObservationReport;
|
||||
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.resource.DiagnosticReport;
|
||||
import ca.uhn.fhir.model.dstu.valueset.DiagnosticReportStatusEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.DocumentManifest;
|
||||
import ca.uhn.fhir.model.dstu.valueset.DocumentModeEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.DocumentReference;
|
||||
import ca.uhn.fhir.model.dstu.valueset.DocumentReferenceStatusEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.DocumentRelationshipTypeEnum;
|
||||
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.ExposureTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ExtensionContextEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.FHIRDefinedTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.FamilyHistory;
|
||||
import ca.uhn.fhir.model.dstu.valueset.FilterOperatorEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.GVFMeta;
|
||||
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.IdentifierUseEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ImagingModalityEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.ImagingStudy;
|
||||
import ca.uhn.fhir.model.dstu.resource.Immunization;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ImmunizationReasonCodesEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.ImmunizationRecommendation;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ImmunizationRecommendationDateCriterionCodesEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ImmunizationRecommendationStatusCodesEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ImmunizationRouteCodesEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.InstanceAvailabilityEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.IssueSeverityEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.IssueTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.LinkTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ListModeEnum;
|
||||
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.resource.MedicationAdministration;
|
||||
import ca.uhn.fhir.model.dstu.valueset.MedicationAdministrationStatusEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.MedicationDispense;
|
||||
import ca.uhn.fhir.model.dstu.valueset.MedicationDispenseStatusEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.MedicationKindEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.MedicationPrescription;
|
||||
import ca.uhn.fhir.model.dstu.valueset.MedicationPrescriptionStatusEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.MedicationStatement;
|
||||
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.resource.Microarray;
|
||||
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.OperationOutcome;
|
||||
import ca.uhn.fhir.model.dstu.resource.Order;
|
||||
import ca.uhn.fhir.model.dstu.valueset.OrderOutcomeStatusEnum;
|
||||
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.Procedure;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ProcedureRelationshipTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Profile;
|
||||
import ca.uhn.fhir.model.dstu.valueset.PropertyRepresentationEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ProvenanceEntityRoleEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.QuantityCompararatorEnum;
|
||||
import ca.uhn.fhir.model.dstu.composite.QuantityDt;
|
||||
import ca.uhn.fhir.model.dstu.valueset.QueryOutcomeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.QuestionnaireGroupNameEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.QuestionnaireNameEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.QuestionnaireStatusEnum;
|
||||
import ca.uhn.fhir.model.dstu.composite.RangeDt;
|
||||
import ca.uhn.fhir.model.dstu.composite.RatioDt;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ReactionSeverityEnum;
|
||||
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.ResponseTypeEnum;
|
||||
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.composite.ScheduleDt;
|
||||
import ca.uhn.fhir.model.dstu.valueset.SearchParamTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.SecurityEventActionEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectLifecycleEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectRoleEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectSensitivityEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.SecurityEventOutcomeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.SecurityEventParticipantNetworkTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.SecurityEventSourceTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.SensitivityStatusEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.SensitivityTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.SequencingAnalysis;
|
||||
import ca.uhn.fhir.model.dstu.resource.SequencingLab;
|
||||
import ca.uhn.fhir.model.dstu.valueset.SlicingRulesEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Slot;
|
||||
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.valueset.SupplyDispenseStatusEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.SupplyItemTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.SupplyStatusEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.SupplyTypeEnum;
|
||||
import ca.uhn.fhir.model.api.TemporalPrecisionEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.ValueSet;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ValueSetStatusEnum;
|
||||
import ca.uhn.fhir.model.api.ExtensionDt;
|
||||
import ca.uhn.fhir.model.api.IResource;
|
||||
import ca.uhn.fhir.model.dstu.composite.AgeDt;
|
||||
import ca.uhn.fhir.model.dstu.composite.DurationDt;
|
||||
import ca.uhn.fhir.model.dstu.resource.Binary;
|
||||
import ca.uhn.fhir.model.primitive.Base64BinaryDt;
|
||||
import ca.uhn.fhir.model.primitive.BooleanDt;
|
||||
import ca.uhn.fhir.model.primitive.BoundCodeDt;
|
||||
import ca.uhn.fhir.model.primitive.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.IdrefDt;
|
||||
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;
|
||||
|
||||
|
||||
/**
|
||||
* HAPI/FHIR <b>Availability</b> Resource
|
||||
* ((informative) A container for slot(s) of time that may be available for booking appointments)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
*
|
||||
* </p>
|
||||
*
|
||||
* <p>
|
||||
* <b>Requirements:</b>
|
||||
*
|
||||
* </p>
|
||||
*
|
||||
* <p>
|
||||
* <b>Profile Definition:</b>
|
||||
* <a href="http://hl7.org/fhir/profiles/Availability">http://hl7.org/fhir/profiles/Availability</a>
|
||||
* </p>
|
||||
*
|
||||
*/
|
||||
@ResourceDef(name="Availability", profile="http://hl7.org/fhir/profiles/Availability", id="availability")
|
||||
public class Availability extends BaseResource implements IResource {
|
||||
|
||||
/**
|
||||
* Search parameter constant for <b>individual</b>
|
||||
* <p>
|
||||
* Description: <b>The individual to find an availability for</b><br/>
|
||||
* Type: <b>reference</b><br/>
|
||||
* Path: <b>Availability.individual</b><br/>
|
||||
* </p>
|
||||
*/
|
||||
@SearchParamDefinition(name="individual", path="Availability.individual", description="The individual to find an availability for", type="reference" )
|
||||
public static final String SP_INDIVIDUAL = "individual";
|
||||
|
||||
/**
|
||||
* <b>Fluent Client</b> search parameter constant for <b>individual</b>
|
||||
* <p>
|
||||
* Description: <b>The individual to find an availability for</b><br/>
|
||||
* Type: <b>reference</b><br/>
|
||||
* Path: <b>Availability.individual</b><br/>
|
||||
* </p>
|
||||
*/
|
||||
public static final ReferenceClientParam INDIVIDUAL = new ReferenceClientParam(SP_INDIVIDUAL);
|
||||
|
||||
/**
|
||||
* Constant for fluent queries to be used to add include statements. Specifies
|
||||
* the path value of "<b>Availability.individual</b>".
|
||||
*/
|
||||
public static final Include INCLUDE_INDIVIDUAL = new Include("Availability.individual");
|
||||
|
||||
/**
|
||||
* Search parameter constant for <b>slottype</b>
|
||||
* <p>
|
||||
* Description: <b>The type of appointments that can be booked into associated slot(s)</b><br/>
|
||||
* Type: <b>token</b><br/>
|
||||
* Path: <b>Availability.type</b><br/>
|
||||
* </p>
|
||||
*/
|
||||
@SearchParamDefinition(name="slottype", path="Availability.type", description="The type of appointments that can be booked into associated slot(s)", type="token" )
|
||||
public static final String SP_SLOTTYPE = "slottype";
|
||||
|
||||
/**
|
||||
* <b>Fluent Client</b> search parameter constant for <b>slottype</b>
|
||||
* <p>
|
||||
* Description: <b>The type of appointments that can be booked into associated slot(s)</b><br/>
|
||||
* Type: <b>token</b><br/>
|
||||
* Path: <b>Availability.type</b><br/>
|
||||
* </p>
|
||||
*/
|
||||
public static final TokenClientParam SLOTTYPE = new TokenClientParam(SP_SLOTTYPE);
|
||||
|
||||
|
||||
@Child(name="identifier", type=IdentifierDt.class, order=0, min=0, max=Child.MAX_UNLIMITED)
|
||||
@Description(
|
||||
shortDefinition="External Ids for this item",
|
||||
formalDefinition=""
|
||||
)
|
||||
private java.util.List<IdentifierDt> myIdentifier;
|
||||
|
||||
@Child(name="type", type=CodeableConceptDt.class, order=1, min=0, max=1)
|
||||
@Description(
|
||||
shortDefinition="The type of appointments that can be booked into slots attached to this availability resource (ideally this would be an identifiable service - which is at a location, rather than the location itself) - change to CodeableConcept",
|
||||
formalDefinition=""
|
||||
)
|
||||
private CodeableConceptDt myType;
|
||||
|
||||
@Child(name="individual", order=2, min=1, max=1, type={
|
||||
ca.uhn.fhir.model.dstu.resource.Location.class, ca.uhn.fhir.model.dstu.resource.Practitioner.class, ca.uhn.fhir.model.dstu.resource.Device.class, ca.uhn.fhir.model.dstu.resource.Patient.class, ca.uhn.fhir.model.dstu.resource.RelatedPerson.class })
|
||||
@Description(
|
||||
shortDefinition="The type of resource this availability resource is providing availability information for",
|
||||
formalDefinition=""
|
||||
)
|
||||
private ResourceReferenceDt myIndividual;
|
||||
|
||||
@Child(name="period", type=PeriodDt.class, order=3, min=0, max=1)
|
||||
@Description(
|
||||
shortDefinition="The period of time that the slots that are attached to this availability resource cover (even if none exist)",
|
||||
formalDefinition=""
|
||||
)
|
||||
private PeriodDt myPeriod;
|
||||
|
||||
@Child(name="comment", type=StringDt.class, order=4, min=0, max=1)
|
||||
@Description(
|
||||
shortDefinition="Comments on the availability to describe any extended information. Such as custom constraints on the slot(s) that may be associated",
|
||||
formalDefinition=""
|
||||
)
|
||||
private StringDt myComment;
|
||||
|
||||
@Child(name="author", order=5, min=0, max=1, type={
|
||||
ca.uhn.fhir.model.dstu.resource.Practitioner.class, ca.uhn.fhir.model.dstu.resource.Patient.class, ca.uhn.fhir.model.dstu.resource.RelatedPerson.class })
|
||||
@Description(
|
||||
shortDefinition="Who authored the availability",
|
||||
formalDefinition=""
|
||||
)
|
||||
private ResourceReferenceDt myAuthor;
|
||||
|
||||
@Child(name="authorDate", type=DateTimeDt.class, order=6, min=0, max=1)
|
||||
@Description(
|
||||
shortDefinition="When this availability was created, or last revised",
|
||||
formalDefinition=""
|
||||
)
|
||||
private DateTimeDt myAuthorDate;
|
||||
|
||||
|
||||
@Override
|
||||
public boolean isEmpty() {
|
||||
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myIdentifier, myType, myIndividual, myPeriod, myComment, myAuthor, myAuthorDate);
|
||||
}
|
||||
|
||||
@Override
|
||||
public <T extends IElement> List<T> getAllPopulatedChildElementsOfType(Class<T> theType) {
|
||||
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myIdentifier, myType, myIndividual, myPeriod, myComment, myAuthor, myAuthorDate);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>identifier</b> (External Ids for this item).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
*
|
||||
* </p>
|
||||
*/
|
||||
public java.util.List<IdentifierDt> getIdentifier() {
|
||||
if (myIdentifier == null) {
|
||||
myIdentifier = new java.util.ArrayList<IdentifierDt>();
|
||||
}
|
||||
return myIdentifier;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>identifier</b> (External Ids for this item)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
*
|
||||
* </p>
|
||||
*/
|
||||
public Availability setIdentifier(java.util.List<IdentifierDt> theValue) {
|
||||
myIdentifier = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds and returns a new value for <b>identifier</b> (External Ids for this item)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
*
|
||||
* </p>
|
||||
*/
|
||||
public IdentifierDt addIdentifier() {
|
||||
IdentifierDt newType = new IdentifierDt();
|
||||
getIdentifier().add(newType);
|
||||
return newType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the first repetition for <b>identifier</b> (External Ids for this item),
|
||||
* creating it if it does not already exist.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
*
|
||||
* </p>
|
||||
*/
|
||||
public IdentifierDt getIdentifierFirstRep() {
|
||||
if (getIdentifier().isEmpty()) {
|
||||
return addIdentifier();
|
||||
}
|
||||
return getIdentifier().get(0);
|
||||
}
|
||||
/**
|
||||
* Adds a new value for <b>identifier</b> (External Ids for this item)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
*
|
||||
* </p>
|
||||
*
|
||||
* @return Returns a reference to this object, to allow for simple chaining.
|
||||
*/
|
||||
public Availability addIdentifier( IdentifierUseEnum theUse, String theSystem, String theValue, String theLabel) {
|
||||
if (myIdentifier == null) {
|
||||
myIdentifier = new java.util.ArrayList<IdentifierDt>();
|
||||
}
|
||||
myIdentifier.add(new IdentifierDt(theUse, theSystem, theValue, theLabel));
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds a new value for <b>identifier</b> (External Ids for this item)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
*
|
||||
* </p>
|
||||
*
|
||||
* @return Returns a reference to this object, to allow for simple chaining.
|
||||
*/
|
||||
public Availability addIdentifier( String theSystem, String theValue) {
|
||||
if (myIdentifier == null) {
|
||||
myIdentifier = new java.util.ArrayList<IdentifierDt>();
|
||||
}
|
||||
myIdentifier.add(new IdentifierDt(theSystem, theValue));
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>type</b> (The type of appointments that can be booked into slots attached to this availability resource (ideally this would be an identifiable service - which is at a location, rather than the location itself) - change to CodeableConcept).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
*
|
||||
* </p>
|
||||
*/
|
||||
public CodeableConceptDt getType() {
|
||||
if (myType == null) {
|
||||
myType = new CodeableConceptDt();
|
||||
}
|
||||
return myType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>type</b> (The type of appointments that can be booked into slots attached to this availability resource (ideally this would be an identifiable service - which is at a location, rather than the location itself) - change to CodeableConcept)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
*
|
||||
* </p>
|
||||
*/
|
||||
public Availability setType(CodeableConceptDt theValue) {
|
||||
myType = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>individual</b> (The type of resource this availability resource is providing availability information for).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
*
|
||||
* </p>
|
||||
*/
|
||||
public ResourceReferenceDt getIndividual() {
|
||||
if (myIndividual == null) {
|
||||
myIndividual = new ResourceReferenceDt();
|
||||
}
|
||||
return myIndividual;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>individual</b> (The type of resource this availability resource is providing availability information for)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
*
|
||||
* </p>
|
||||
*/
|
||||
public Availability setIndividual(ResourceReferenceDt theValue) {
|
||||
myIndividual = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>period</b> (The period of time that the slots that are attached to this availability resource cover (even if none exist)).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
*
|
||||
* </p>
|
||||
*/
|
||||
public PeriodDt getPeriod() {
|
||||
if (myPeriod == null) {
|
||||
myPeriod = new PeriodDt();
|
||||
}
|
||||
return myPeriod;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>period</b> (The period of time that the slots that are attached to this availability resource cover (even if none exist))
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
*
|
||||
* </p>
|
||||
*/
|
||||
public Availability setPeriod(PeriodDt theValue) {
|
||||
myPeriod = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>comment</b> (Comments on the availability to describe any extended information. Such as custom constraints on the slot(s) that may be associated).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
*
|
||||
* </p>
|
||||
*/
|
||||
public StringDt getComment() {
|
||||
if (myComment == null) {
|
||||
myComment = new StringDt();
|
||||
}
|
||||
return myComment;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>comment</b> (Comments on the availability to describe any extended information. Such as custom constraints on the slot(s) that may be associated)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
*
|
||||
* </p>
|
||||
*/
|
||||
public Availability setComment(StringDt theValue) {
|
||||
myComment = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value for <b>comment</b> (Comments on the availability to describe any extended information. Such as custom constraints on the slot(s) that may be associated)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
*
|
||||
* </p>
|
||||
*/
|
||||
public Availability setComment( String theString) {
|
||||
myComment = new StringDt(theString);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>author</b> (Who authored the availability).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
*
|
||||
* </p>
|
||||
*/
|
||||
public ResourceReferenceDt getAuthor() {
|
||||
if (myAuthor == null) {
|
||||
myAuthor = new ResourceReferenceDt();
|
||||
}
|
||||
return myAuthor;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>author</b> (Who authored the availability)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
*
|
||||
* </p>
|
||||
*/
|
||||
public Availability setAuthor(ResourceReferenceDt theValue) {
|
||||
myAuthor = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>authorDate</b> (When this availability was created, or last revised).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
*
|
||||
* </p>
|
||||
*/
|
||||
public DateTimeDt getAuthorDate() {
|
||||
if (myAuthorDate == null) {
|
||||
myAuthorDate = new DateTimeDt();
|
||||
}
|
||||
return myAuthorDate;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>authorDate</b> (When this availability was created, or last revised)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
*
|
||||
* </p>
|
||||
*/
|
||||
public Availability setAuthorDate(DateTimeDt theValue) {
|
||||
myAuthorDate = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value for <b>authorDate</b> (When this availability was created, or last revised)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
*
|
||||
* </p>
|
||||
*/
|
||||
public Availability setAuthorDateWithSecondsPrecision( Date theDate) {
|
||||
myAuthorDate = new DateTimeDt(theDate);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value for <b>authorDate</b> (When this availability was created, or last revised)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
*
|
||||
* </p>
|
||||
*/
|
||||
public Availability setAuthorDate( Date theDate, TemporalPrecisionEnum thePrecision) {
|
||||
myAuthorDate = new DateTimeDt(theDate, thePrecision);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
@Override
|
||||
public ResourceTypeEnum getResourceType() {
|
||||
return ResourceTypeEnum.AVAILABILITY;
|
||||
}
|
||||
|
||||
}
|
|
@ -1,100 +0,0 @@
|
|||
package ca.uhn.fhir.model.dstu.resource;
|
||||
|
||||
/*
|
||||
* #%L
|
||||
* HAPI FHIR - Core Library
|
||||
* %%
|
||||
* Copyright (C) 2014 University Health Network
|
||||
* %%
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
* #L%
|
||||
*/
|
||||
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
|
||||
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.ResourceDef;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ResourceTypeEnum;
|
||||
import ca.uhn.fhir.model.primitive.Base64BinaryDt;
|
||||
|
||||
@ResourceDef(name = "Binary", profile = "http://hl7.org/fhir/profiles/Binary", id = "binary")
|
||||
public class Binary extends BaseResource implements IResource {
|
||||
|
||||
private Base64BinaryDt myContent = new Base64BinaryDt();
|
||||
private String myContentType;
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*/
|
||||
public Binary() {
|
||||
// nothing
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @param theContentType
|
||||
* The content type
|
||||
* @param theContent
|
||||
* The binary contents
|
||||
*/
|
||||
public Binary(String theContentType, byte[] theContent) {
|
||||
setContentType(theContentType);
|
||||
setContent(theContent);
|
||||
}
|
||||
|
||||
@Override
|
||||
public <T extends IElement> List<T> getAllPopulatedChildElementsOfType(Class<T> theType) {
|
||||
return Collections.emptyList();
|
||||
}
|
||||
|
||||
public byte[] getContent() {
|
||||
return myContent.getValue();
|
||||
}
|
||||
|
||||
public String getContentAsBase64() {
|
||||
return myContent.getValueAsString();
|
||||
}
|
||||
|
||||
public String getContentType() {
|
||||
return myContentType;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isEmpty() {
|
||||
return (myContent.isEmpty()) && StringUtils.isBlank(myContentType);
|
||||
}
|
||||
|
||||
public void setContent(byte[] theContent) {
|
||||
myContent.setValue(theContent);
|
||||
}
|
||||
|
||||
public void setContentAsBase64(String theContent) {
|
||||
myContent.setValueAsString(theContent);
|
||||
}
|
||||
|
||||
public void setContentType(String theContentType) {
|
||||
myContentType = theContentType;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ResourceTypeEnum getResourceType() {
|
||||
return ResourceTypeEnum.BINARY;
|
||||
}
|
||||
|
||||
}
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
|
@ -1,996 +0,0 @@
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
package ca.uhn.fhir.model.dstu.resource;
|
||||
|
||||
/*
|
||||
* #%L
|
||||
* HAPI FHIR - Core Library
|
||||
* %%
|
||||
* Copyright (C) 2014 University Health Network
|
||||
* %%
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
* #L%
|
||||
*/
|
||||
|
||||
|
||||
import java.util.*;
|
||||
import ca.uhn.fhir.model.api.*;
|
||||
import ca.uhn.fhir.model.api.annotation.*;
|
||||
import ca.uhn.fhir.rest.gclient.*;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ResourceTypeEnum;
|
||||
|
||||
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.resource.AdverseReaction;
|
||||
import ca.uhn.fhir.model.dstu.valueset.AggregationModeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.AlertStatusEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.AllergyIntolerance;
|
||||
import ca.uhn.fhir.model.dstu.valueset.AnimalSpeciesEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Appointment;
|
||||
import ca.uhn.fhir.model.dstu.composite.AttachmentDt;
|
||||
import ca.uhn.fhir.model.dstu.resource.Availability;
|
||||
import ca.uhn.fhir.model.dstu.valueset.BindingConformanceEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.CarePlan;
|
||||
import ca.uhn.fhir.model.dstu.valueset.CarePlanActivityCategoryEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.CarePlanActivityStatusEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.CarePlanGoalStatusEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.CarePlanStatusEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.CausalityExpectationEnum;
|
||||
import ca.uhn.fhir.model.dstu.composite.CodeableConceptDt;
|
||||
import ca.uhn.fhir.model.dstu.composite.CodingDt;
|
||||
import ca.uhn.fhir.model.dstu.valueset.CompositionAttestationModeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.CompositionStatusEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ConceptMapEquivalenceEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Condition;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ConditionRelationshipTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ConditionStatusEnum;
|
||||
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.ContactUseEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.CriticalityEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.DataTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Device;
|
||||
import ca.uhn.fhir.model.dstu.resource.DeviceObservationReport;
|
||||
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.resource.DiagnosticReport;
|
||||
import ca.uhn.fhir.model.dstu.valueset.DiagnosticReportStatusEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.DocumentManifest;
|
||||
import ca.uhn.fhir.model.dstu.valueset.DocumentModeEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.DocumentReference;
|
||||
import ca.uhn.fhir.model.dstu.valueset.DocumentReferenceStatusEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.DocumentRelationshipTypeEnum;
|
||||
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.ExposureTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ExtensionContextEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.FHIRDefinedTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.FamilyHistory;
|
||||
import ca.uhn.fhir.model.dstu.valueset.FilterOperatorEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.GVFMeta;
|
||||
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.IdentifierUseEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ImagingModalityEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.ImagingStudy;
|
||||
import ca.uhn.fhir.model.dstu.resource.Immunization;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ImmunizationReasonCodesEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.ImmunizationRecommendation;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ImmunizationRecommendationDateCriterionCodesEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ImmunizationRecommendationStatusCodesEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ImmunizationRouteCodesEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.InstanceAvailabilityEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.IssueSeverityEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.IssueTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.LinkTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ListModeEnum;
|
||||
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.resource.MedicationAdministration;
|
||||
import ca.uhn.fhir.model.dstu.valueset.MedicationAdministrationStatusEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.MedicationDispense;
|
||||
import ca.uhn.fhir.model.dstu.valueset.MedicationDispenseStatusEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.MedicationKindEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.MedicationPrescription;
|
||||
import ca.uhn.fhir.model.dstu.valueset.MedicationPrescriptionStatusEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.MedicationStatement;
|
||||
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.resource.Microarray;
|
||||
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.OperationOutcome;
|
||||
import ca.uhn.fhir.model.dstu.resource.Order;
|
||||
import ca.uhn.fhir.model.dstu.valueset.OrderOutcomeStatusEnum;
|
||||
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.Procedure;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ProcedureRelationshipTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Profile;
|
||||
import ca.uhn.fhir.model.dstu.valueset.PropertyRepresentationEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ProvenanceEntityRoleEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.QuantityCompararatorEnum;
|
||||
import ca.uhn.fhir.model.dstu.composite.QuantityDt;
|
||||
import ca.uhn.fhir.model.dstu.valueset.QueryOutcomeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.QuestionnaireGroupNameEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.QuestionnaireNameEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.QuestionnaireStatusEnum;
|
||||
import ca.uhn.fhir.model.dstu.composite.RangeDt;
|
||||
import ca.uhn.fhir.model.dstu.composite.RatioDt;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ReactionSeverityEnum;
|
||||
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.ResponseTypeEnum;
|
||||
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.composite.ScheduleDt;
|
||||
import ca.uhn.fhir.model.dstu.valueset.SearchParamTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.SecurityEventActionEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectLifecycleEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectRoleEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectSensitivityEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.SecurityEventOutcomeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.SecurityEventParticipantNetworkTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.SecurityEventSourceTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.SensitivityStatusEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.SensitivityTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.SequencingAnalysis;
|
||||
import ca.uhn.fhir.model.dstu.resource.SequencingLab;
|
||||
import ca.uhn.fhir.model.dstu.valueset.SlicingRulesEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Slot;
|
||||
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.valueset.SupplyDispenseStatusEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.SupplyItemTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.SupplyStatusEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.SupplyTypeEnum;
|
||||
import ca.uhn.fhir.model.api.TemporalPrecisionEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.ValueSet;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ValueSetStatusEnum;
|
||||
import ca.uhn.fhir.model.api.ExtensionDt;
|
||||
import ca.uhn.fhir.model.api.IResource;
|
||||
import ca.uhn.fhir.model.dstu.composite.AgeDt;
|
||||
import ca.uhn.fhir.model.dstu.composite.DurationDt;
|
||||
import ca.uhn.fhir.model.dstu.resource.Binary;
|
||||
import ca.uhn.fhir.model.primitive.Base64BinaryDt;
|
||||
import ca.uhn.fhir.model.primitive.BooleanDt;
|
||||
import ca.uhn.fhir.model.primitive.BoundCodeDt;
|
||||
import ca.uhn.fhir.model.primitive.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.IdrefDt;
|
||||
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;
|
||||
|
||||
|
||||
/**
|
||||
* HAPI/FHIR <b>Medication</b> Resource
|
||||
* (Definition of a Medication)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Primarily used for identification and definition of Medication, but also covers ingredients and packaging
|
||||
* </p>
|
||||
*
|
||||
* <p>
|
||||
* <b>Requirements:</b>
|
||||
*
|
||||
* </p>
|
||||
*
|
||||
* <p>
|
||||
* <b>Profile Definition:</b>
|
||||
* <a href="http://hl7.org/fhir/profiles/Medication">http://hl7.org/fhir/profiles/Medication</a>
|
||||
* </p>
|
||||
*
|
||||
*/
|
||||
@ResourceDef(name="Medication", profile="http://hl7.org/fhir/profiles/Medication", id="medication")
|
||||
public class Medication extends BaseResource implements IResource {
|
||||
|
||||
/**
|
||||
* Search parameter constant for <b>code</b>
|
||||
* <p>
|
||||
* Description: <b></b><br/>
|
||||
* Type: <b>token</b><br/>
|
||||
* Path: <b>Medication.code</b><br/>
|
||||
* </p>
|
||||
*/
|
||||
@SearchParamDefinition(name="code", path="Medication.code", description="", type="token" )
|
||||
public static final String SP_CODE = "code";
|
||||
|
||||
/**
|
||||
* <b>Fluent Client</b> search parameter constant for <b>code</b>
|
||||
* <p>
|
||||
* Description: <b></b><br/>
|
||||
* Type: <b>token</b><br/>
|
||||
* Path: <b>Medication.code</b><br/>
|
||||
* </p>
|
||||
*/
|
||||
public static final TokenClientParam CODE = new TokenClientParam(SP_CODE);
|
||||
|
||||
/**
|
||||
* Search parameter constant for <b>name</b>
|
||||
* <p>
|
||||
* Description: <b></b><br/>
|
||||
* Type: <b>string</b><br/>
|
||||
* Path: <b>Medication.name</b><br/>
|
||||
* </p>
|
||||
*/
|
||||
@SearchParamDefinition(name="name", path="Medication.name", description="", type="string" )
|
||||
public static final String SP_NAME = "name";
|
||||
|
||||
/**
|
||||
* <b>Fluent Client</b> search parameter constant for <b>name</b>
|
||||
* <p>
|
||||
* Description: <b></b><br/>
|
||||
* Type: <b>string</b><br/>
|
||||
* Path: <b>Medication.name</b><br/>
|
||||
* </p>
|
||||
*/
|
||||
public static final StringClientParam NAME = new StringClientParam(SP_NAME);
|
||||
|
||||
/**
|
||||
* Search parameter constant for <b>manufacturer</b>
|
||||
* <p>
|
||||
* Description: <b></b><br/>
|
||||
* Type: <b>reference</b><br/>
|
||||
* Path: <b>Medication.manufacturer</b><br/>
|
||||
* </p>
|
||||
*/
|
||||
@SearchParamDefinition(name="manufacturer", path="Medication.manufacturer", description="", type="reference" )
|
||||
public static final String SP_MANUFACTURER = "manufacturer";
|
||||
|
||||
/**
|
||||
* <b>Fluent Client</b> search parameter constant for <b>manufacturer</b>
|
||||
* <p>
|
||||
* Description: <b></b><br/>
|
||||
* Type: <b>reference</b><br/>
|
||||
* Path: <b>Medication.manufacturer</b><br/>
|
||||
* </p>
|
||||
*/
|
||||
public static final ReferenceClientParam MANUFACTURER = new ReferenceClientParam(SP_MANUFACTURER);
|
||||
|
||||
/**
|
||||
* Constant for fluent queries to be used to add include statements. Specifies
|
||||
* the path value of "<b>Medication.manufacturer</b>".
|
||||
*/
|
||||
public static final Include INCLUDE_MANUFACTURER = new Include("Medication.manufacturer");
|
||||
|
||||
/**
|
||||
* Search parameter constant for <b>form</b>
|
||||
* <p>
|
||||
* Description: <b></b><br/>
|
||||
* Type: <b>token</b><br/>
|
||||
* Path: <b>Medication.product.form</b><br/>
|
||||
* </p>
|
||||
*/
|
||||
@SearchParamDefinition(name="form", path="Medication.product.form", description="", type="token" )
|
||||
public static final String SP_FORM = "form";
|
||||
|
||||
/**
|
||||
* <b>Fluent Client</b> search parameter constant for <b>form</b>
|
||||
* <p>
|
||||
* Description: <b></b><br/>
|
||||
* Type: <b>token</b><br/>
|
||||
* Path: <b>Medication.product.form</b><br/>
|
||||
* </p>
|
||||
*/
|
||||
public static final TokenClientParam FORM = new TokenClientParam(SP_FORM);
|
||||
|
||||
/**
|
||||
* Search parameter constant for <b>ingredient</b>
|
||||
* <p>
|
||||
* Description: <b></b><br/>
|
||||
* Type: <b>reference</b><br/>
|
||||
* Path: <b>Medication.product.ingredient.item</b><br/>
|
||||
* </p>
|
||||
*/
|
||||
@SearchParamDefinition(name="ingredient", path="Medication.product.ingredient.item", description="", type="reference" )
|
||||
public static final String SP_INGREDIENT = "ingredient";
|
||||
|
||||
/**
|
||||
* <b>Fluent Client</b> search parameter constant for <b>ingredient</b>
|
||||
* <p>
|
||||
* Description: <b></b><br/>
|
||||
* Type: <b>reference</b><br/>
|
||||
* Path: <b>Medication.product.ingredient.item</b><br/>
|
||||
* </p>
|
||||
*/
|
||||
public static final ReferenceClientParam INGREDIENT = new ReferenceClientParam(SP_INGREDIENT);
|
||||
|
||||
/**
|
||||
* Constant for fluent queries to be used to add include statements. Specifies
|
||||
* the path value of "<b>Medication.product.ingredient.item</b>".
|
||||
*/
|
||||
public static final Include INCLUDE_PRODUCT_INGREDIENT_ITEM = new Include("Medication.product.ingredient.item");
|
||||
|
||||
/**
|
||||
* Search parameter constant for <b>container</b>
|
||||
* <p>
|
||||
* Description: <b></b><br/>
|
||||
* Type: <b>token</b><br/>
|
||||
* Path: <b>Medication.package.container</b><br/>
|
||||
* </p>
|
||||
*/
|
||||
@SearchParamDefinition(name="container", path="Medication.package.container", description="", type="token" )
|
||||
public static final String SP_CONTAINER = "container";
|
||||
|
||||
/**
|
||||
* <b>Fluent Client</b> search parameter constant for <b>container</b>
|
||||
* <p>
|
||||
* Description: <b></b><br/>
|
||||
* Type: <b>token</b><br/>
|
||||
* Path: <b>Medication.package.container</b><br/>
|
||||
* </p>
|
||||
*/
|
||||
public static final TokenClientParam CONTAINER = new TokenClientParam(SP_CONTAINER);
|
||||
|
||||
/**
|
||||
* Search parameter constant for <b>content</b>
|
||||
* <p>
|
||||
* Description: <b></b><br/>
|
||||
* Type: <b>reference</b><br/>
|
||||
* Path: <b>Medication.package.content.item</b><br/>
|
||||
* </p>
|
||||
*/
|
||||
@SearchParamDefinition(name="content", path="Medication.package.content.item", description="", type="reference" )
|
||||
public static final String SP_CONTENT = "content";
|
||||
|
||||
/**
|
||||
* <b>Fluent Client</b> search parameter constant for <b>content</b>
|
||||
* <p>
|
||||
* Description: <b></b><br/>
|
||||
* Type: <b>reference</b><br/>
|
||||
* Path: <b>Medication.package.content.item</b><br/>
|
||||
* </p>
|
||||
*/
|
||||
public static final ReferenceClientParam CONTENT = new ReferenceClientParam(SP_CONTENT);
|
||||
|
||||
/**
|
||||
* Constant for fluent queries to be used to add include statements. Specifies
|
||||
* the path value of "<b>Medication.package.content.item</b>".
|
||||
*/
|
||||
public static final Include INCLUDE_PACKAGE_CONTENT_ITEM = new Include("Medication.package.content.item");
|
||||
|
||||
|
||||
@Child(name="name", type=StringDt.class, order=0, min=0, max=1)
|
||||
@Description(
|
||||
shortDefinition="Common / Commercial name",
|
||||
formalDefinition="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"
|
||||
)
|
||||
private StringDt myName;
|
||||
|
||||
@Child(name="code", type=CodeableConceptDt.class, order=1, min=0, max=1)
|
||||
@Description(
|
||||
shortDefinition="Codes that identify this medication",
|
||||
formalDefinition="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"
|
||||
)
|
||||
private CodeableConceptDt myCode;
|
||||
|
||||
@Child(name="isBrand", type=BooleanDt.class, order=2, min=0, max=1)
|
||||
@Description(
|
||||
shortDefinition="True if a brand",
|
||||
formalDefinition="Set to true if the item is attributable to a specific manufacturer (even if we don't know who that is)"
|
||||
)
|
||||
private BooleanDt myIsBrand;
|
||||
|
||||
@Child(name="manufacturer", order=3, min=0, max=1, type={
|
||||
ca.uhn.fhir.model.dstu.resource.Organization.class })
|
||||
@Description(
|
||||
shortDefinition="Manufacturer of the item",
|
||||
formalDefinition="Describes the details of the manufacturer"
|
||||
)
|
||||
private ResourceReferenceDt myManufacturer;
|
||||
|
||||
@Child(name="kind", type=CodeDt.class, order=4, min=0, max=1)
|
||||
@Description(
|
||||
shortDefinition="product | package",
|
||||
formalDefinition="Medications are either a single administrable product or a package that contains one or more products."
|
||||
)
|
||||
private BoundCodeDt<MedicationKindEnum> myKind;
|
||||
|
||||
@Child(name="product", order=5, min=0, max=1)
|
||||
@Description(
|
||||
shortDefinition="Administrable medication details",
|
||||
formalDefinition="Information that only applies to products (not packages)"
|
||||
)
|
||||
private Product myProduct;
|
||||
|
||||
@Child(name="package", type=CodeDt.class, order=6, min=0, max=1)
|
||||
@Description(
|
||||
shortDefinition="Details about packaged medications",
|
||||
formalDefinition="Information that only applies to packages (not products)"
|
||||
)
|
||||
private CodeDt myPackage;
|
||||
|
||||
|
||||
@Override
|
||||
public boolean isEmpty() {
|
||||
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myName, myCode, myIsBrand, myManufacturer, myKind, myProduct, myPackage);
|
||||
}
|
||||
|
||||
@Override
|
||||
public <T extends IElement> List<T> getAllPopulatedChildElementsOfType(Class<T> theType) {
|
||||
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myName, myCode, myIsBrand, myManufacturer, myKind, myProduct, myPackage);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>name</b> (Common / Commercial name).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* 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 StringDt getName() {
|
||||
if (myName == null) {
|
||||
myName = new StringDt();
|
||||
}
|
||||
return myName;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>name</b> (Common / Commercial name)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* 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 Medication setName(StringDt theValue) {
|
||||
myName = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value for <b>name</b> (Common / Commercial name)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* 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 Medication setName( String theString) {
|
||||
myName = new StringDt(theString);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>code</b> (Codes that identify this medication).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* A code (or set of codes) that identify this 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 CodeableConceptDt getCode() {
|
||||
if (myCode == null) {
|
||||
myCode = new CodeableConceptDt();
|
||||
}
|
||||
return myCode;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>code</b> (Codes that identify this medication)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* 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 Medication setCode(CodeableConceptDt theValue) {
|
||||
myCode = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>isBrand</b> (True if a brand).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Set to true if the item is attributable to a specific manufacturer (even if we don't know who that is)
|
||||
* </p>
|
||||
*/
|
||||
public BooleanDt getIsBrand() {
|
||||
if (myIsBrand == null) {
|
||||
myIsBrand = new BooleanDt();
|
||||
}
|
||||
return myIsBrand;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>isBrand</b> (True if a brand)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Set to true if the item is attributable to a specific manufacturer (even if we don't know who that is)
|
||||
* </p>
|
||||
*/
|
||||
public Medication setIsBrand(BooleanDt theValue) {
|
||||
myIsBrand = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value for <b>isBrand</b> (True if a brand)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Set to true if the item is attributable to a specific manufacturer (even if we don't know who that is)
|
||||
* </p>
|
||||
*/
|
||||
public Medication setIsBrand( boolean theBoolean) {
|
||||
myIsBrand = new BooleanDt(theBoolean);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>manufacturer</b> (Manufacturer of the item).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Describes the details of the manufacturer
|
||||
* </p>
|
||||
*/
|
||||
public ResourceReferenceDt getManufacturer() {
|
||||
if (myManufacturer == null) {
|
||||
myManufacturer = new ResourceReferenceDt();
|
||||
}
|
||||
return myManufacturer;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>manufacturer</b> (Manufacturer of the item)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Describes the details of the manufacturer
|
||||
* </p>
|
||||
*/
|
||||
public Medication setManufacturer(ResourceReferenceDt theValue) {
|
||||
myManufacturer = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>kind</b> (product | package).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Medications are either a single administrable product or a package that contains one or more products.
|
||||
* </p>
|
||||
*/
|
||||
public BoundCodeDt<MedicationKindEnum> getKind() {
|
||||
if (myKind == null) {
|
||||
myKind = new BoundCodeDt<MedicationKindEnum>(MedicationKindEnum.VALUESET_BINDER);
|
||||
}
|
||||
return myKind;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>kind</b> (product | package)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Medications are either a single administrable product or a package that contains one or more products.
|
||||
* </p>
|
||||
*/
|
||||
public Medication setKind(BoundCodeDt<MedicationKindEnum> theValue) {
|
||||
myKind = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>kind</b> (product | package)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Medications are either a single administrable product or a package that contains one or more products.
|
||||
* </p>
|
||||
*/
|
||||
public Medication setKind(MedicationKindEnum theValue) {
|
||||
getKind().setValueAsEnum(theValue);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>product</b> (Administrable medication details).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Information that only applies to products (not packages)
|
||||
* </p>
|
||||
*/
|
||||
public Product getProduct() {
|
||||
if (myProduct == null) {
|
||||
myProduct = new Product();
|
||||
}
|
||||
return myProduct;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>product</b> (Administrable medication details)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Information that only applies to products (not packages)
|
||||
* </p>
|
||||
*/
|
||||
public Medication setProduct(Product theValue) {
|
||||
myProduct = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>package</b> (Details about packaged medications).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Information that only applies to packages (not products)
|
||||
* </p>
|
||||
*/
|
||||
public CodeDt getPackage() {
|
||||
if (myPackage == null) {
|
||||
myPackage = new CodeDt();
|
||||
}
|
||||
return myPackage;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>package</b> (Details about packaged medications)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Information that only applies to packages (not products)
|
||||
* </p>
|
||||
*/
|
||||
public Medication setPackage(CodeDt theValue) {
|
||||
myPackage = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value for <b>package</b> (Details about packaged medications)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Information that only applies to packages (not products)
|
||||
* </p>
|
||||
*/
|
||||
public Medication setPackage( String theCode) {
|
||||
myPackage = new CodeDt(theCode);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Block class for child element: <b>Medication.product</b> (Administrable medication details)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Information that only applies to products (not packages)
|
||||
* </p>
|
||||
*/
|
||||
@Block()
|
||||
public static class Product extends BaseIdentifiableElement implements IResourceBlock {
|
||||
|
||||
@Child(name="form", type=CodeableConceptDt.class, order=0, min=0, max=1)
|
||||
@Description(
|
||||
shortDefinition="powder | tablets | carton +",
|
||||
formalDefinition="Describes the form of the item. Powder; tables; carton"
|
||||
)
|
||||
private CodeableConceptDt myForm;
|
||||
|
||||
@Child(name="ingredient", order=1, min=0, max=Child.MAX_UNLIMITED)
|
||||
@Description(
|
||||
shortDefinition="Active or inactive ingredient",
|
||||
formalDefinition="Identifies a particular constituent of interest in the product"
|
||||
)
|
||||
private java.util.List<ProductIngredient> myIngredient;
|
||||
|
||||
|
||||
@Override
|
||||
public boolean isEmpty() {
|
||||
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myForm, myIngredient);
|
||||
}
|
||||
|
||||
@Override
|
||||
public <T extends IElement> List<T> getAllPopulatedChildElementsOfType(Class<T> theType) {
|
||||
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myForm, myIngredient);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>form</b> (powder | tablets | carton +).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Describes the form of the item. Powder; tables; carton
|
||||
* </p>
|
||||
*/
|
||||
public CodeableConceptDt getForm() {
|
||||
if (myForm == null) {
|
||||
myForm = new CodeableConceptDt();
|
||||
}
|
||||
return myForm;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>form</b> (powder | tablets | carton +)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Describes the form of the item. Powder; tables; carton
|
||||
* </p>
|
||||
*/
|
||||
public Product setForm(CodeableConceptDt theValue) {
|
||||
myForm = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>ingredient</b> (Active or inactive ingredient).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Identifies a particular constituent of interest in the product
|
||||
* </p>
|
||||
*/
|
||||
public java.util.List<ProductIngredient> getIngredient() {
|
||||
if (myIngredient == null) {
|
||||
myIngredient = new java.util.ArrayList<ProductIngredient>();
|
||||
}
|
||||
return myIngredient;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>ingredient</b> (Active or inactive ingredient)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Identifies a particular constituent of interest in the product
|
||||
* </p>
|
||||
*/
|
||||
public Product setIngredient(java.util.List<ProductIngredient> theValue) {
|
||||
myIngredient = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds and returns a new value for <b>ingredient</b> (Active or inactive ingredient)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Identifies a particular constituent of interest in the product
|
||||
* </p>
|
||||
*/
|
||||
public ProductIngredient addIngredient() {
|
||||
ProductIngredient newType = new ProductIngredient();
|
||||
getIngredient().add(newType);
|
||||
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);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Block class for child element: <b>Medication.product.ingredient</b> (Active or inactive ingredient)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Identifies a particular constituent of interest in the product
|
||||
* </p>
|
||||
*/
|
||||
@Block()
|
||||
public static class ProductIngredient extends BaseIdentifiableElement implements IResourceBlock {
|
||||
|
||||
@Child(name="item", order=0, min=1, max=1, type={
|
||||
ca.uhn.fhir.model.dstu.resource.Substance.class, ca.uhn.fhir.model.dstu.resource.Medication.class })
|
||||
@Description(
|
||||
shortDefinition="The product contained",
|
||||
formalDefinition="The actual ingredient - either a substance (simple ingredient) or another medication"
|
||||
)
|
||||
private ResourceReferenceDt myItem;
|
||||
|
||||
@Child(name="amount", type=RatioDt.class, order=1, min=0, max=1)
|
||||
@Description(
|
||||
shortDefinition="How much ingredient in product",
|
||||
formalDefinition="Specifies how many (or how much) of the items there are in this Medication. E.g. 250 mg per tablet"
|
||||
)
|
||||
private RatioDt myAmount;
|
||||
|
||||
|
||||
@Override
|
||||
public boolean isEmpty() {
|
||||
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myItem, myAmount);
|
||||
}
|
||||
|
||||
@Override
|
||||
public <T extends IElement> List<T> getAllPopulatedChildElementsOfType(Class<T> theType) {
|
||||
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myItem, myAmount);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>item</b> (The product contained).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The actual ingredient - either a substance (simple ingredient) or another medication
|
||||
* </p>
|
||||
*/
|
||||
public ResourceReferenceDt getItem() {
|
||||
if (myItem == null) {
|
||||
myItem = new ResourceReferenceDt();
|
||||
}
|
||||
return myItem;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>item</b> (The product contained)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The actual ingredient - either a substance (simple ingredient) or another medication
|
||||
* </p>
|
||||
*/
|
||||
public ProductIngredient setItem(ResourceReferenceDt theValue) {
|
||||
myItem = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>amount</b> (How much ingredient in product).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Specifies how many (or how much) of the items there are in this Medication. E.g. 250 mg per tablet
|
||||
* </p>
|
||||
*/
|
||||
public RatioDt getAmount() {
|
||||
if (myAmount == null) {
|
||||
myAmount = new RatioDt();
|
||||
}
|
||||
return myAmount;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>amount</b> (How much ingredient in product)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Specifies how many (or how much) of the items there are in this Medication. E.g. 250 mg per tablet
|
||||
* </p>
|
||||
*/
|
||||
public ProductIngredient setAmount(RatioDt theValue) {
|
||||
myAmount = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@Override
|
||||
public ResourceTypeEnum getResourceType() {
|
||||
return ResourceTypeEnum.MEDICATION;
|
||||
}
|
||||
|
||||
}
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
|
@ -1,595 +0,0 @@
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
package ca.uhn.fhir.model.dstu.resource;
|
||||
|
||||
/*
|
||||
* #%L
|
||||
* HAPI FHIR - Core Library
|
||||
* %%
|
||||
* Copyright (C) 2014 University Health Network
|
||||
* %%
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
* #L%
|
||||
*/
|
||||
|
||||
|
||||
import java.util.*;
|
||||
import ca.uhn.fhir.model.api.*;
|
||||
import ca.uhn.fhir.model.api.annotation.*;
|
||||
import ca.uhn.fhir.rest.gclient.*;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ResourceTypeEnum;
|
||||
|
||||
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.resource.AdverseReaction;
|
||||
import ca.uhn.fhir.model.dstu.valueset.AggregationModeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.AlertStatusEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.AllergyIntolerance;
|
||||
import ca.uhn.fhir.model.dstu.valueset.AnimalSpeciesEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Appointment;
|
||||
import ca.uhn.fhir.model.dstu.composite.AttachmentDt;
|
||||
import ca.uhn.fhir.model.dstu.resource.Availability;
|
||||
import ca.uhn.fhir.model.dstu.valueset.BindingConformanceEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.CarePlan;
|
||||
import ca.uhn.fhir.model.dstu.valueset.CarePlanActivityCategoryEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.CarePlanActivityStatusEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.CarePlanGoalStatusEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.CarePlanStatusEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.CausalityExpectationEnum;
|
||||
import ca.uhn.fhir.model.dstu.composite.CodeableConceptDt;
|
||||
import ca.uhn.fhir.model.dstu.composite.CodingDt;
|
||||
import ca.uhn.fhir.model.dstu.valueset.CompositionAttestationModeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.CompositionStatusEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ConceptMapEquivalenceEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Condition;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ConditionRelationshipTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ConditionStatusEnum;
|
||||
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.ContactUseEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.CriticalityEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.DataTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Device;
|
||||
import ca.uhn.fhir.model.dstu.resource.DeviceObservationReport;
|
||||
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.resource.DiagnosticReport;
|
||||
import ca.uhn.fhir.model.dstu.valueset.DiagnosticReportStatusEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.DocumentManifest;
|
||||
import ca.uhn.fhir.model.dstu.valueset.DocumentModeEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.DocumentReference;
|
||||
import ca.uhn.fhir.model.dstu.valueset.DocumentReferenceStatusEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.DocumentRelationshipTypeEnum;
|
||||
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.ExposureTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ExtensionContextEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.FHIRDefinedTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.FamilyHistory;
|
||||
import ca.uhn.fhir.model.dstu.valueset.FilterOperatorEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.GVFMeta;
|
||||
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.IdentifierUseEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ImagingModalityEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.ImagingStudy;
|
||||
import ca.uhn.fhir.model.dstu.resource.Immunization;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ImmunizationReasonCodesEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.ImmunizationRecommendation;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ImmunizationRecommendationDateCriterionCodesEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ImmunizationRecommendationStatusCodesEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ImmunizationRouteCodesEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.InstanceAvailabilityEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.IssueSeverityEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.IssueTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.LinkTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ListModeEnum;
|
||||
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.resource.MedicationAdministration;
|
||||
import ca.uhn.fhir.model.dstu.valueset.MedicationAdministrationStatusEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.MedicationDispense;
|
||||
import ca.uhn.fhir.model.dstu.valueset.MedicationDispenseStatusEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.MedicationKindEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.MedicationPrescription;
|
||||
import ca.uhn.fhir.model.dstu.valueset.MedicationPrescriptionStatusEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.MedicationStatement;
|
||||
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.resource.Microarray;
|
||||
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.OperationOutcome;
|
||||
import ca.uhn.fhir.model.dstu.resource.Order;
|
||||
import ca.uhn.fhir.model.dstu.valueset.OrderOutcomeStatusEnum;
|
||||
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.Procedure;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ProcedureRelationshipTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Profile;
|
||||
import ca.uhn.fhir.model.dstu.valueset.PropertyRepresentationEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ProvenanceEntityRoleEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.QuantityCompararatorEnum;
|
||||
import ca.uhn.fhir.model.dstu.composite.QuantityDt;
|
||||
import ca.uhn.fhir.model.dstu.valueset.QueryOutcomeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.QuestionnaireGroupNameEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.QuestionnaireNameEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.QuestionnaireStatusEnum;
|
||||
import ca.uhn.fhir.model.dstu.composite.RangeDt;
|
||||
import ca.uhn.fhir.model.dstu.composite.RatioDt;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ReactionSeverityEnum;
|
||||
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.ResponseTypeEnum;
|
||||
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.composite.ScheduleDt;
|
||||
import ca.uhn.fhir.model.dstu.valueset.SearchParamTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.SecurityEventActionEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectLifecycleEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectRoleEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectSensitivityEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.SecurityEventOutcomeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.SecurityEventParticipantNetworkTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.SecurityEventSourceTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.SensitivityStatusEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.SensitivityTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.SequencingAnalysis;
|
||||
import ca.uhn.fhir.model.dstu.resource.SequencingLab;
|
||||
import ca.uhn.fhir.model.dstu.valueset.SlicingRulesEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Slot;
|
||||
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.valueset.SupplyDispenseStatusEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.SupplyItemTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.SupplyStatusEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.SupplyTypeEnum;
|
||||
import ca.uhn.fhir.model.api.TemporalPrecisionEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.ValueSet;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ValueSetStatusEnum;
|
||||
import ca.uhn.fhir.model.api.ExtensionDt;
|
||||
import ca.uhn.fhir.model.api.IResource;
|
||||
import ca.uhn.fhir.model.dstu.composite.AgeDt;
|
||||
import ca.uhn.fhir.model.dstu.composite.DurationDt;
|
||||
import ca.uhn.fhir.model.dstu.resource.Binary;
|
||||
import ca.uhn.fhir.model.primitive.Base64BinaryDt;
|
||||
import ca.uhn.fhir.model.primitive.BooleanDt;
|
||||
import ca.uhn.fhir.model.primitive.BoundCodeDt;
|
||||
import ca.uhn.fhir.model.primitive.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.IdrefDt;
|
||||
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;
|
||||
|
||||
|
||||
/**
|
||||
* HAPI/FHIR <b>OperationOutcome</b> Resource
|
||||
* (Information about the success/failure of an action)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* A collection of error, warning or information messages that result from a system action
|
||||
* </p>
|
||||
*
|
||||
* <p>
|
||||
* <b>Requirements:</b>
|
||||
*
|
||||
* </p>
|
||||
*
|
||||
* <p>
|
||||
* <b>Profile Definition:</b>
|
||||
* <a href="http://hl7.org/fhir/profiles/OperationOutcome">http://hl7.org/fhir/profiles/OperationOutcome</a>
|
||||
* </p>
|
||||
*
|
||||
*/
|
||||
@ResourceDef(name="OperationOutcome", profile="http://hl7.org/fhir/profiles/OperationOutcome", id="operationoutcome")
|
||||
public class OperationOutcome extends BaseResource implements IResource {
|
||||
|
||||
|
||||
@Child(name="issue", order=0, min=1, max=Child.MAX_UNLIMITED)
|
||||
@Description(
|
||||
shortDefinition="A single issue associated with the action",
|
||||
formalDefinition="An error, warning or information message that results from a system action"
|
||||
)
|
||||
private java.util.List<Issue> myIssue;
|
||||
|
||||
|
||||
@Override
|
||||
public boolean isEmpty() {
|
||||
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myIssue);
|
||||
}
|
||||
|
||||
@Override
|
||||
public <T extends IElement> List<T> getAllPopulatedChildElementsOfType(Class<T> theType) {
|
||||
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myIssue);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>issue</b> (A single issue associated with the action).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* An error, warning or information message that results from a system action
|
||||
* </p>
|
||||
*/
|
||||
public java.util.List<Issue> getIssue() {
|
||||
if (myIssue == null) {
|
||||
myIssue = new java.util.ArrayList<Issue>();
|
||||
}
|
||||
return myIssue;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>issue</b> (A single issue associated with the action)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* An error, warning or information message that results from a system action
|
||||
* </p>
|
||||
*/
|
||||
public OperationOutcome setIssue(java.util.List<Issue> theValue) {
|
||||
myIssue = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds and returns a new value for <b>issue</b> (A single issue associated with the action)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* An error, warning or information message that results from a system action
|
||||
* </p>
|
||||
*/
|
||||
public Issue addIssue() {
|
||||
Issue newType = new Issue();
|
||||
getIssue().add(newType);
|
||||
return newType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the first repetition for <b>issue</b> (A single issue associated with the action),
|
||||
* creating it if it does not already exist.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* An error, warning or information message that results from a system action
|
||||
* </p>
|
||||
*/
|
||||
public Issue getIssueFirstRep() {
|
||||
if (getIssue().isEmpty()) {
|
||||
return addIssue();
|
||||
}
|
||||
return getIssue().get(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Block class for child element: <b>OperationOutcome.issue</b> (A single issue associated with the action)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* An error, warning or information message that results from a system action
|
||||
* </p>
|
||||
*/
|
||||
@Block()
|
||||
public static class Issue extends BaseIdentifiableElement implements IResourceBlock {
|
||||
|
||||
@Child(name="severity", type=CodeDt.class, order=0, min=1, max=1)
|
||||
@Description(
|
||||
shortDefinition="fatal | error | warning | information",
|
||||
formalDefinition="Indicates whether the issue indicates a variation from successful processing"
|
||||
)
|
||||
private BoundCodeDt<IssueSeverityEnum> mySeverity;
|
||||
|
||||
@Child(name="type", type=CodingDt.class, order=1, min=0, max=1)
|
||||
@Description(
|
||||
shortDefinition="Error or warning code",
|
||||
formalDefinition="A code indicating the type of error, warning or information message."
|
||||
)
|
||||
private CodingDt myType;
|
||||
|
||||
@Child(name="details", type=StringDt.class, order=2, min=0, max=1)
|
||||
@Description(
|
||||
shortDefinition="Additional description of the issue",
|
||||
formalDefinition="Additional description of the issue"
|
||||
)
|
||||
private StringDt myDetails;
|
||||
|
||||
@Child(name="location", type=StringDt.class, order=3, min=0, max=Child.MAX_UNLIMITED)
|
||||
@Description(
|
||||
shortDefinition="XPath of element(s) related to issue",
|
||||
formalDefinition="A simple XPath limited to element names, repetition indicators and the default child access that identifies one of the elements in the resource that caused this issue to be raised."
|
||||
)
|
||||
private java.util.List<StringDt> myLocation;
|
||||
|
||||
|
||||
@Override
|
||||
public boolean isEmpty() {
|
||||
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( mySeverity, myType, myDetails, myLocation);
|
||||
}
|
||||
|
||||
@Override
|
||||
public <T extends IElement> List<T> getAllPopulatedChildElementsOfType(Class<T> theType) {
|
||||
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, mySeverity, myType, myDetails, myLocation);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>severity</b> (fatal | error | warning | information).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Indicates whether the issue indicates a variation from successful processing
|
||||
* </p>
|
||||
*/
|
||||
public BoundCodeDt<IssueSeverityEnum> getSeverity() {
|
||||
if (mySeverity == null) {
|
||||
mySeverity = new BoundCodeDt<IssueSeverityEnum>(IssueSeverityEnum.VALUESET_BINDER);
|
||||
}
|
||||
return mySeverity;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>severity</b> (fatal | error | warning | information)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Indicates whether the issue indicates a variation from successful processing
|
||||
* </p>
|
||||
*/
|
||||
public Issue setSeverity(BoundCodeDt<IssueSeverityEnum> theValue) {
|
||||
mySeverity = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>severity</b> (fatal | error | warning | information)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Indicates whether the issue indicates a variation from successful processing
|
||||
* </p>
|
||||
*/
|
||||
public Issue setSeverity(IssueSeverityEnum theValue) {
|
||||
getSeverity().setValueAsEnum(theValue);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>type</b> (Error or warning code).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* A code indicating the type of error, warning or information message.
|
||||
* </p>
|
||||
*/
|
||||
public CodingDt getType() {
|
||||
if (myType == null) {
|
||||
myType = new CodingDt();
|
||||
}
|
||||
return myType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>type</b> (Error or warning code)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* A code indicating the type of error, warning or information message.
|
||||
* </p>
|
||||
*/
|
||||
public Issue setType(CodingDt theValue) {
|
||||
myType = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>details</b> (Additional description of the issue).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Additional description of the issue
|
||||
* </p>
|
||||
*/
|
||||
public StringDt getDetails() {
|
||||
if (myDetails == null) {
|
||||
myDetails = new StringDt();
|
||||
}
|
||||
return myDetails;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>details</b> (Additional description of the issue)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Additional description of the issue
|
||||
* </p>
|
||||
*/
|
||||
public Issue setDetails(StringDt theValue) {
|
||||
myDetails = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value for <b>details</b> (Additional description of the issue)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Additional description of the issue
|
||||
* </p>
|
||||
*/
|
||||
public Issue setDetails( String theString) {
|
||||
myDetails = new StringDt(theString);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>location</b> (XPath of element(s) related to issue).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* A simple XPath limited to element names, repetition indicators and the default child access that identifies one of the elements in the resource that caused this issue to be raised.
|
||||
* </p>
|
||||
*/
|
||||
public java.util.List<StringDt> getLocation() {
|
||||
if (myLocation == null) {
|
||||
myLocation = new java.util.ArrayList<StringDt>();
|
||||
}
|
||||
return myLocation;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>location</b> (XPath of element(s) related to issue)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* A simple XPath limited to element names, repetition indicators and the default child access that identifies one of the elements in the resource that caused this issue to be raised.
|
||||
* </p>
|
||||
*/
|
||||
public Issue setLocation(java.util.List<StringDt> theValue) {
|
||||
myLocation = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds and returns a new value for <b>location</b> (XPath of element(s) related to issue)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* A simple XPath limited to element names, repetition indicators and the default child access that identifies one of the elements in the resource that caused this issue to be raised.
|
||||
* </p>
|
||||
*/
|
||||
public StringDt addLocation() {
|
||||
StringDt newType = new StringDt();
|
||||
getLocation().add(newType);
|
||||
return newType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the first repetition for <b>location</b> (XPath of element(s) related to issue),
|
||||
* creating it if it does not already exist.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* A simple XPath limited to element names, repetition indicators and the default child access that identifies one of the elements in the resource that caused this issue to be raised.
|
||||
* </p>
|
||||
*/
|
||||
public StringDt getLocationFirstRep() {
|
||||
if (getLocation().isEmpty()) {
|
||||
return addLocation();
|
||||
}
|
||||
return getLocation().get(0);
|
||||
}
|
||||
/**
|
||||
* Adds a new value for <b>location</b> (XPath of element(s) related to issue)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* A simple XPath limited to element names, repetition indicators and the default child access that identifies one of the elements in the resource that caused this issue to be raised.
|
||||
* </p>
|
||||
*
|
||||
* @return Returns a reference to this object, to allow for simple chaining.
|
||||
*/
|
||||
public Issue addLocation( String theString) {
|
||||
if (myLocation == null) {
|
||||
myLocation = new java.util.ArrayList<StringDt>();
|
||||
}
|
||||
myLocation.add(new StringDt(theString));
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
@Override
|
||||
public ResourceTypeEnum getResourceType() {
|
||||
return ResourceTypeEnum.OPERATIONOUTCOME;
|
||||
}
|
||||
|
||||
}
|
File diff suppressed because it is too large
Load Diff
|
@ -1,834 +0,0 @@
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
package ca.uhn.fhir.model.dstu.resource;
|
||||
|
||||
/*
|
||||
* #%L
|
||||
* HAPI FHIR - Core Library
|
||||
* %%
|
||||
* Copyright (C) 2014 University Health Network
|
||||
* %%
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
* #L%
|
||||
*/
|
||||
|
||||
|
||||
import java.util.*;
|
||||
import ca.uhn.fhir.model.api.*;
|
||||
import ca.uhn.fhir.model.api.annotation.*;
|
||||
import ca.uhn.fhir.rest.gclient.*;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ResourceTypeEnum;
|
||||
|
||||
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.resource.AdverseReaction;
|
||||
import ca.uhn.fhir.model.dstu.valueset.AggregationModeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.AlertStatusEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.AllergyIntolerance;
|
||||
import ca.uhn.fhir.model.dstu.valueset.AnimalSpeciesEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Appointment;
|
||||
import ca.uhn.fhir.model.dstu.composite.AttachmentDt;
|
||||
import ca.uhn.fhir.model.dstu.resource.Availability;
|
||||
import ca.uhn.fhir.model.dstu.valueset.BindingConformanceEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.CarePlan;
|
||||
import ca.uhn.fhir.model.dstu.valueset.CarePlanActivityCategoryEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.CarePlanActivityStatusEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.CarePlanGoalStatusEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.CarePlanStatusEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.CausalityExpectationEnum;
|
||||
import ca.uhn.fhir.model.dstu.composite.CodeableConceptDt;
|
||||
import ca.uhn.fhir.model.dstu.composite.CodingDt;
|
||||
import ca.uhn.fhir.model.dstu.valueset.CompositionAttestationModeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.CompositionStatusEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ConceptMapEquivalenceEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Condition;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ConditionRelationshipTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ConditionStatusEnum;
|
||||
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.ContactUseEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.CriticalityEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.DataTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Device;
|
||||
import ca.uhn.fhir.model.dstu.resource.DeviceObservationReport;
|
||||
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.resource.DiagnosticReport;
|
||||
import ca.uhn.fhir.model.dstu.valueset.DiagnosticReportStatusEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.DocumentManifest;
|
||||
import ca.uhn.fhir.model.dstu.valueset.DocumentModeEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.DocumentReference;
|
||||
import ca.uhn.fhir.model.dstu.valueset.DocumentReferenceStatusEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.DocumentRelationshipTypeEnum;
|
||||
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.ExposureTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ExtensionContextEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.FHIRDefinedTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.FamilyHistory;
|
||||
import ca.uhn.fhir.model.dstu.valueset.FilterOperatorEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.GVFMeta;
|
||||
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.IdentifierUseEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ImagingModalityEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.ImagingStudy;
|
||||
import ca.uhn.fhir.model.dstu.resource.Immunization;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ImmunizationReasonCodesEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.ImmunizationRecommendation;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ImmunizationRecommendationDateCriterionCodesEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ImmunizationRecommendationStatusCodesEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ImmunizationRouteCodesEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.InstanceAvailabilityEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.IssueSeverityEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.IssueTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.LinkTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ListModeEnum;
|
||||
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.resource.MedicationAdministration;
|
||||
import ca.uhn.fhir.model.dstu.valueset.MedicationAdministrationStatusEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.MedicationDispense;
|
||||
import ca.uhn.fhir.model.dstu.valueset.MedicationDispenseStatusEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.MedicationKindEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.MedicationPrescription;
|
||||
import ca.uhn.fhir.model.dstu.valueset.MedicationPrescriptionStatusEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.MedicationStatement;
|
||||
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.resource.Microarray;
|
||||
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.OperationOutcome;
|
||||
import ca.uhn.fhir.model.dstu.resource.Order;
|
||||
import ca.uhn.fhir.model.dstu.valueset.OrderOutcomeStatusEnum;
|
||||
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.Procedure;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ProcedureRelationshipTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Profile;
|
||||
import ca.uhn.fhir.model.dstu.valueset.PropertyRepresentationEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ProvenanceEntityRoleEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.QuantityCompararatorEnum;
|
||||
import ca.uhn.fhir.model.dstu.composite.QuantityDt;
|
||||
import ca.uhn.fhir.model.dstu.valueset.QueryOutcomeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.QuestionnaireGroupNameEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.QuestionnaireNameEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.QuestionnaireStatusEnum;
|
||||
import ca.uhn.fhir.model.dstu.composite.RangeDt;
|
||||
import ca.uhn.fhir.model.dstu.composite.RatioDt;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ReactionSeverityEnum;
|
||||
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.ResponseTypeEnum;
|
||||
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.composite.ScheduleDt;
|
||||
import ca.uhn.fhir.model.dstu.valueset.SearchParamTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.SecurityEventActionEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectLifecycleEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectRoleEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectSensitivityEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.SecurityEventObjectTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.SecurityEventOutcomeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.SecurityEventParticipantNetworkTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.SecurityEventSourceTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.SensitivityStatusEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.SensitivityTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.SequencingAnalysis;
|
||||
import ca.uhn.fhir.model.dstu.resource.SequencingLab;
|
||||
import ca.uhn.fhir.model.dstu.valueset.SlicingRulesEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.Slot;
|
||||
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.valueset.SupplyDispenseStatusEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.SupplyItemTypeEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.SupplyStatusEnum;
|
||||
import ca.uhn.fhir.model.dstu.valueset.SupplyTypeEnum;
|
||||
import ca.uhn.fhir.model.api.TemporalPrecisionEnum;
|
||||
import ca.uhn.fhir.model.dstu.resource.ValueSet;
|
||||
import ca.uhn.fhir.model.dstu.valueset.ValueSetStatusEnum;
|
||||
import ca.uhn.fhir.model.api.ExtensionDt;
|
||||
import ca.uhn.fhir.model.api.IResource;
|
||||
import ca.uhn.fhir.model.dstu.composite.AgeDt;
|
||||
import ca.uhn.fhir.model.dstu.composite.DurationDt;
|
||||
import ca.uhn.fhir.model.dstu.resource.Binary;
|
||||
import ca.uhn.fhir.model.primitive.Base64BinaryDt;
|
||||
import ca.uhn.fhir.model.primitive.BooleanDt;
|
||||
import ca.uhn.fhir.model.primitive.BoundCodeDt;
|
||||
import ca.uhn.fhir.model.primitive.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.IdrefDt;
|
||||
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;
|
||||
|
||||
|
||||
/**
|
||||
* HAPI/FHIR <b>OrderResponse</b> Resource
|
||||
* (A response to an order)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* A response to an order
|
||||
* </p>
|
||||
*
|
||||
* <p>
|
||||
* <b>Requirements:</b>
|
||||
*
|
||||
* </p>
|
||||
*
|
||||
* <p>
|
||||
* <b>Profile Definition:</b>
|
||||
* <a href="http://hl7.org/fhir/profiles/OrderResponse">http://hl7.org/fhir/profiles/OrderResponse</a>
|
||||
* </p>
|
||||
*
|
||||
*/
|
||||
@ResourceDef(name="OrderResponse", profile="http://hl7.org/fhir/profiles/OrderResponse", id="orderresponse")
|
||||
public class OrderResponse extends BaseResource implements IResource {
|
||||
|
||||
/**
|
||||
* Search parameter constant for <b>request</b>
|
||||
* <p>
|
||||
* Description: <b></b><br/>
|
||||
* Type: <b>reference</b><br/>
|
||||
* Path: <b>OrderResponse.request</b><br/>
|
||||
* </p>
|
||||
*/
|
||||
@SearchParamDefinition(name="request", path="OrderResponse.request", description="", type="reference" )
|
||||
public static final String SP_REQUEST = "request";
|
||||
|
||||
/**
|
||||
* <b>Fluent Client</b> search parameter constant for <b>request</b>
|
||||
* <p>
|
||||
* Description: <b></b><br/>
|
||||
* Type: <b>reference</b><br/>
|
||||
* Path: <b>OrderResponse.request</b><br/>
|
||||
* </p>
|
||||
*/
|
||||
public static final ReferenceClientParam REQUEST = new ReferenceClientParam(SP_REQUEST);
|
||||
|
||||
/**
|
||||
* Constant for fluent queries to be used to add include statements. Specifies
|
||||
* the path value of "<b>OrderResponse.request</b>".
|
||||
*/
|
||||
public static final Include INCLUDE_REQUEST = new Include("OrderResponse.request");
|
||||
|
||||
/**
|
||||
* Search parameter constant for <b>date</b>
|
||||
* <p>
|
||||
* Description: <b></b><br/>
|
||||
* Type: <b>date</b><br/>
|
||||
* Path: <b>OrderResponse.date</b><br/>
|
||||
* </p>
|
||||
*/
|
||||
@SearchParamDefinition(name="date", path="OrderResponse.date", description="", type="date" )
|
||||
public static final String SP_DATE = "date";
|
||||
|
||||
/**
|
||||
* <b>Fluent Client</b> search parameter constant for <b>date</b>
|
||||
* <p>
|
||||
* Description: <b></b><br/>
|
||||
* Type: <b>date</b><br/>
|
||||
* Path: <b>OrderResponse.date</b><br/>
|
||||
* </p>
|
||||
*/
|
||||
public static final DateClientParam DATE = new DateClientParam(SP_DATE);
|
||||
|
||||
/**
|
||||
* Search parameter constant for <b>who</b>
|
||||
* <p>
|
||||
* Description: <b></b><br/>
|
||||
* Type: <b>reference</b><br/>
|
||||
* Path: <b>OrderResponse.who</b><br/>
|
||||
* </p>
|
||||
*/
|
||||
@SearchParamDefinition(name="who", path="OrderResponse.who", description="", type="reference" )
|
||||
public static final String SP_WHO = "who";
|
||||
|
||||
/**
|
||||
* <b>Fluent Client</b> search parameter constant for <b>who</b>
|
||||
* <p>
|
||||
* Description: <b></b><br/>
|
||||
* Type: <b>reference</b><br/>
|
||||
* Path: <b>OrderResponse.who</b><br/>
|
||||
* </p>
|
||||
*/
|
||||
public static final ReferenceClientParam WHO = new ReferenceClientParam(SP_WHO);
|
||||
|
||||
/**
|
||||
* Constant for fluent queries to be used to add include statements. Specifies
|
||||
* the path value of "<b>OrderResponse.who</b>".
|
||||
*/
|
||||
public static final Include INCLUDE_WHO = new Include("OrderResponse.who");
|
||||
|
||||
/**
|
||||
* Search parameter constant for <b>code</b>
|
||||
* <p>
|
||||
* Description: <b></b><br/>
|
||||
* Type: <b>token</b><br/>
|
||||
* Path: <b>OrderResponse.code</b><br/>
|
||||
* </p>
|
||||
*/
|
||||
@SearchParamDefinition(name="code", path="OrderResponse.code", description="", type="token" )
|
||||
public static final String SP_CODE = "code";
|
||||
|
||||
/**
|
||||
* <b>Fluent Client</b> search parameter constant for <b>code</b>
|
||||
* <p>
|
||||
* Description: <b></b><br/>
|
||||
* Type: <b>token</b><br/>
|
||||
* Path: <b>OrderResponse.code</b><br/>
|
||||
* </p>
|
||||
*/
|
||||
public static final TokenClientParam CODE = new TokenClientParam(SP_CODE);
|
||||
|
||||
/**
|
||||
* Search parameter constant for <b>fulfillment</b>
|
||||
* <p>
|
||||
* Description: <b></b><br/>
|
||||
* Type: <b>reference</b><br/>
|
||||
* Path: <b>OrderResponse.fulfillment</b><br/>
|
||||
* </p>
|
||||
*/
|
||||
@SearchParamDefinition(name="fulfillment", path="OrderResponse.fulfillment", description="", type="reference" )
|
||||
public static final String SP_FULFILLMENT = "fulfillment";
|
||||
|
||||
/**
|
||||
* <b>Fluent Client</b> search parameter constant for <b>fulfillment</b>
|
||||
* <p>
|
||||
* Description: <b></b><br/>
|
||||
* Type: <b>reference</b><br/>
|
||||
* Path: <b>OrderResponse.fulfillment</b><br/>
|
||||
* </p>
|
||||
*/
|
||||
public static final ReferenceClientParam FULFILLMENT = new ReferenceClientParam(SP_FULFILLMENT);
|
||||
|
||||
/**
|
||||
* Constant for fluent queries to be used to add include statements. Specifies
|
||||
* the path value of "<b>OrderResponse.fulfillment</b>".
|
||||
*/
|
||||
public static final Include INCLUDE_FULFILLMENT = new Include("OrderResponse.fulfillment");
|
||||
|
||||
|
||||
@Child(name="identifier", type=IdentifierDt.class, order=0, min=0, max=Child.MAX_UNLIMITED)
|
||||
@Description(
|
||||
shortDefinition="Identifiers assigned to this order by the orderer or by the receiver",
|
||||
formalDefinition="Identifiers assigned to this order. The identifiers are usually assigned by the system responding to the order, but they may be provided or added to by other systems"
|
||||
)
|
||||
private java.util.List<IdentifierDt> myIdentifier;
|
||||
|
||||
@Child(name="request", order=1, min=1, max=1, type={
|
||||
ca.uhn.fhir.model.dstu.resource.Order.class })
|
||||
@Description(
|
||||
shortDefinition="The order that this is a response to",
|
||||
formalDefinition="A reference to the order that this is in response to"
|
||||
)
|
||||
private ResourceReferenceDt myRequest;
|
||||
|
||||
@Child(name="date", type=DateTimeDt.class, order=2, min=0, max=1)
|
||||
@Description(
|
||||
shortDefinition="When the response was made",
|
||||
formalDefinition="The date and time at which this order response was made (created/posted)"
|
||||
)
|
||||
private DateTimeDt myDate;
|
||||
|
||||
@Child(name="who", order=3, min=0, max=1, type={
|
||||
ca.uhn.fhir.model.dstu.resource.Practitioner.class, ca.uhn.fhir.model.dstu.resource.Organization.class, ca.uhn.fhir.model.dstu.resource.Device.class })
|
||||
@Description(
|
||||
shortDefinition="Who made the response",
|
||||
formalDefinition="The person, organization, or device credited with making the response"
|
||||
)
|
||||
private ResourceReferenceDt myWho;
|
||||
|
||||
@Child(name="authority", order=4, min=0, max=1, type={
|
||||
CodeableConceptDt.class, IResource.class })
|
||||
@Description(
|
||||
shortDefinition="If required by policy",
|
||||
formalDefinition="A reference to an authority policy that is the reason for the response. Usually this is used when the order is rejected, to provide a reason for rejection"
|
||||
)
|
||||
private IDatatype myAuthority;
|
||||
|
||||
@Child(name="code", type=CodeDt.class, order=5, min=1, max=1)
|
||||
@Description(
|
||||
shortDefinition="pending | review | rejected | error | accepted | cancelled | replaced | aborted | complete",
|
||||
formalDefinition="What this response says about the status of the original order"
|
||||
)
|
||||
private BoundCodeDt<OrderOutcomeStatusEnum> myCode;
|
||||
|
||||
@Child(name="description", type=StringDt.class, order=6, min=0, max=1)
|
||||
@Description(
|
||||
shortDefinition="Additional description of the response",
|
||||
formalDefinition="Additional description about the response - e.g. a text description provided by a human user when making decisions about the order"
|
||||
)
|
||||
private StringDt myDescription;
|
||||
|
||||
@Child(name="fulfillment", order=7, min=0, max=Child.MAX_UNLIMITED, type={
|
||||
IResource.class })
|
||||
@Description(
|
||||
shortDefinition="Details of the outcome of performing the order",
|
||||
formalDefinition="Links to resources that provide details of the outcome of performing the order. E.g. Diagnostic Reports in a response that is made to an order that referenced a diagnostic order"
|
||||
)
|
||||
private java.util.List<ResourceReferenceDt> myFulfillment;
|
||||
|
||||
|
||||
@Override
|
||||
public boolean isEmpty() {
|
||||
return super.isBaseEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( myIdentifier, myRequest, myDate, myWho, myAuthority, myCode, myDescription, myFulfillment);
|
||||
}
|
||||
|
||||
@Override
|
||||
public <T extends IElement> List<T> getAllPopulatedChildElementsOfType(Class<T> theType) {
|
||||
return ca.uhn.fhir.util.ElementUtil.allPopulatedChildElements(theType, myIdentifier, myRequest, myDate, myWho, myAuthority, myCode, myDescription, myFulfillment);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>identifier</b> (Identifiers assigned to this order by the orderer or by the receiver).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Identifiers assigned to this order. The identifiers are usually assigned by the system responding to the order, but they may be provided or added to by other systems
|
||||
* </p>
|
||||
*/
|
||||
public java.util.List<IdentifierDt> getIdentifier() {
|
||||
if (myIdentifier == null) {
|
||||
myIdentifier = new java.util.ArrayList<IdentifierDt>();
|
||||
}
|
||||
return myIdentifier;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>identifier</b> (Identifiers assigned to this order by the orderer or by the receiver)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Identifiers assigned to this order. The identifiers are usually assigned by the system responding to the order, but they may be provided or added to by other systems
|
||||
* </p>
|
||||
*/
|
||||
public OrderResponse setIdentifier(java.util.List<IdentifierDt> theValue) {
|
||||
myIdentifier = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds and returns a new value for <b>identifier</b> (Identifiers assigned to this order by the orderer or by the receiver)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Identifiers assigned to this order. The identifiers are usually assigned by the system responding to the order, but they may be provided or added to by other systems
|
||||
* </p>
|
||||
*/
|
||||
public IdentifierDt addIdentifier() {
|
||||
IdentifierDt newType = new IdentifierDt();
|
||||
getIdentifier().add(newType);
|
||||
return newType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the first repetition for <b>identifier</b> (Identifiers assigned to this order by the orderer or by the receiver),
|
||||
* creating it if it does not already exist.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Identifiers assigned to this order. The identifiers are usually assigned by the system responding to the order, but they may be provided or added to by other systems
|
||||
* </p>
|
||||
*/
|
||||
public IdentifierDt getIdentifierFirstRep() {
|
||||
if (getIdentifier().isEmpty()) {
|
||||
return addIdentifier();
|
||||
}
|
||||
return getIdentifier().get(0);
|
||||
}
|
||||
/**
|
||||
* Adds a new value for <b>identifier</b> (Identifiers assigned to this order by the orderer or by the receiver)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Identifiers assigned to this order. The identifiers are usually assigned by the system responding to the order, but they may be provided or added to by other systems
|
||||
* </p>
|
||||
*
|
||||
* @return Returns a reference to this object, to allow for simple chaining.
|
||||
*/
|
||||
public OrderResponse addIdentifier( IdentifierUseEnum theUse, String theSystem, String theValue, String theLabel) {
|
||||
if (myIdentifier == null) {
|
||||
myIdentifier = new java.util.ArrayList<IdentifierDt>();
|
||||
}
|
||||
myIdentifier.add(new IdentifierDt(theUse, theSystem, theValue, theLabel));
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds a new value for <b>identifier</b> (Identifiers assigned to this order by the orderer or by the receiver)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Identifiers assigned to this order. The identifiers are usually assigned by the system responding to the order, but they may be provided or added to by other systems
|
||||
* </p>
|
||||
*
|
||||
* @return Returns a reference to this object, to allow for simple chaining.
|
||||
*/
|
||||
public OrderResponse addIdentifier( String theSystem, String theValue) {
|
||||
if (myIdentifier == null) {
|
||||
myIdentifier = new java.util.ArrayList<IdentifierDt>();
|
||||
}
|
||||
myIdentifier.add(new IdentifierDt(theSystem, theValue));
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>request</b> (The order that this is a response to).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* A reference to the order that this is in response to
|
||||
* </p>
|
||||
*/
|
||||
public ResourceReferenceDt getRequest() {
|
||||
if (myRequest == null) {
|
||||
myRequest = new ResourceReferenceDt();
|
||||
}
|
||||
return myRequest;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>request</b> (The order that this is a response to)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* A reference to the order that this is in response to
|
||||
* </p>
|
||||
*/
|
||||
public OrderResponse setRequest(ResourceReferenceDt theValue) {
|
||||
myRequest = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>date</b> (When the response was made).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The date and time at which this order response was made (created/posted)
|
||||
* </p>
|
||||
*/
|
||||
public DateTimeDt getDate() {
|
||||
if (myDate == null) {
|
||||
myDate = new DateTimeDt();
|
||||
}
|
||||
return myDate;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>date</b> (When the response was made)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The date and time at which this order response was made (created/posted)
|
||||
* </p>
|
||||
*/
|
||||
public OrderResponse setDate(DateTimeDt theValue) {
|
||||
myDate = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value for <b>date</b> (When the response was made)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The date and time at which this order response was made (created/posted)
|
||||
* </p>
|
||||
*/
|
||||
public OrderResponse setDateWithSecondsPrecision( Date theDate) {
|
||||
myDate = new DateTimeDt(theDate);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value for <b>date</b> (When the response was made)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The date and time at which this order response was made (created/posted)
|
||||
* </p>
|
||||
*/
|
||||
public OrderResponse setDate( Date theDate, TemporalPrecisionEnum thePrecision) {
|
||||
myDate = new DateTimeDt(theDate, thePrecision);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>who</b> (Who made the response).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The person, organization, or device credited with making the response
|
||||
* </p>
|
||||
*/
|
||||
public ResourceReferenceDt getWho() {
|
||||
if (myWho == null) {
|
||||
myWho = new ResourceReferenceDt();
|
||||
}
|
||||
return myWho;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>who</b> (Who made the response)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* The person, organization, or device credited with making the response
|
||||
* </p>
|
||||
*/
|
||||
public OrderResponse setWho(ResourceReferenceDt theValue) {
|
||||
myWho = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>authority[x]</b> (If required by policy).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* A reference to an authority policy that is the reason for the response. Usually this is used when the order is rejected, to provide a reason for rejection
|
||||
* </p>
|
||||
*/
|
||||
public IDatatype getAuthority() {
|
||||
return myAuthority;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>authority[x]</b> (If required by policy)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* A reference to an authority policy that is the reason for the response. Usually this is used when the order is rejected, to provide a reason for rejection
|
||||
* </p>
|
||||
*/
|
||||
public OrderResponse setAuthority(IDatatype theValue) {
|
||||
myAuthority = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>code</b> (pending | review | rejected | error | accepted | cancelled | replaced | aborted | complete).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* What this response says about the status of the original order
|
||||
* </p>
|
||||
*/
|
||||
public BoundCodeDt<OrderOutcomeStatusEnum> getCode() {
|
||||
if (myCode == null) {
|
||||
myCode = new BoundCodeDt<OrderOutcomeStatusEnum>(OrderOutcomeStatusEnum.VALUESET_BINDER);
|
||||
}
|
||||
return myCode;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>code</b> (pending | review | rejected | error | accepted | cancelled | replaced | aborted | complete)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* What this response says about the status of the original order
|
||||
* </p>
|
||||
*/
|
||||
public OrderResponse setCode(BoundCodeDt<OrderOutcomeStatusEnum> theValue) {
|
||||
myCode = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>code</b> (pending | review | rejected | error | accepted | cancelled | replaced | aborted | complete)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* What this response says about the status of the original order
|
||||
* </p>
|
||||
*/
|
||||
public OrderResponse setCode(OrderOutcomeStatusEnum theValue) {
|
||||
getCode().setValueAsEnum(theValue);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>description</b> (Additional description of the response).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Additional description about the response - e.g. a text description provided by a human user when making decisions about the order
|
||||
* </p>
|
||||
*/
|
||||
public StringDt getDescription() {
|
||||
if (myDescription == null) {
|
||||
myDescription = new StringDt();
|
||||
}
|
||||
return myDescription;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>description</b> (Additional description of the response)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Additional description about the response - e.g. a text description provided by a human user when making decisions about the order
|
||||
* </p>
|
||||
*/
|
||||
public OrderResponse setDescription(StringDt theValue) {
|
||||
myDescription = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value for <b>description</b> (Additional description of the response)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Additional description about the response - e.g. a text description provided by a human user when making decisions about the order
|
||||
* </p>
|
||||
*/
|
||||
public OrderResponse setDescription( String theString) {
|
||||
myDescription = new StringDt(theString);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the value(s) for <b>fulfillment</b> (Details of the outcome of performing the order).
|
||||
* creating it if it does
|
||||
* not exist. Will not return <code>null</code>.
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Links to resources that provide details of the outcome of performing the order. E.g. Diagnostic Reports in a response that is made to an order that referenced a diagnostic order
|
||||
* </p>
|
||||
*/
|
||||
public java.util.List<ResourceReferenceDt> getFulfillment() {
|
||||
if (myFulfillment == null) {
|
||||
myFulfillment = new java.util.ArrayList<ResourceReferenceDt>();
|
||||
}
|
||||
return myFulfillment;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value(s) for <b>fulfillment</b> (Details of the outcome of performing the order)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Links to resources that provide details of the outcome of performing the order. E.g. Diagnostic Reports in a response that is made to an order that referenced a diagnostic order
|
||||
* </p>
|
||||
*/
|
||||
public OrderResponse setFulfillment(java.util.List<ResourceReferenceDt> theValue) {
|
||||
myFulfillment = theValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds and returns a new value for <b>fulfillment</b> (Details of the outcome of performing the order)
|
||||
*
|
||||
* <p>
|
||||
* <b>Definition:</b>
|
||||
* Links to resources that provide details of the outcome of performing the order. E.g. Diagnostic Reports in a response that is made to an order that referenced a diagnostic order
|
||||
* </p>
|
||||
*/
|
||||
public ResourceReferenceDt addFulfillment() {
|
||||
ResourceReferenceDt newType = new ResourceReferenceDt();
|
||||
getFulfillment().add(newType);
|
||||
return newType;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@Override
|
||||
public ResourceTypeEnum getResourceType() {
|
||||
return ResourceTypeEnum.ORDERRESPONSE;
|
||||
}
|
||||
|
||||
}
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue