Merge branch 'master' of github.com:jamesagnew/hapi-fhir
This commit is contained in:
commit
1b13131873
|
@ -222,6 +222,30 @@
|
|||
<!-- <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-linkcheck-plugin</artifactId>
|
||||
<version>1.1</version> <configuration> <forceSite>false</forceSite> </configuration>
|
||||
</plugin> -->
|
||||
|
||||
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-checkstyle-plugin</artifactId>
|
||||
<reportSets>
|
||||
<reportSet>
|
||||
<reports>
|
||||
<report>checkstyle</report>
|
||||
</reports>
|
||||
</reportSet>
|
||||
</reportSets>
|
||||
<configuration>
|
||||
<linkXRef>false</linkXRef>
|
||||
<configLocation>file://${project.basedir}/../src/checkstyle/checkstyle.xml</configLocation>
|
||||
<!--<sourceDirectories>
|
||||
<sourceDirectory>
|
||||
${project.basedir}/../hapi-fhir-base/src/main/java
|
||||
</sourceDirectory>
|
||||
</sourceDirectories>-->
|
||||
</configuration>
|
||||
</plugin>
|
||||
|
||||
|
||||
</plugins>
|
||||
</reporting>
|
||||
</profile>
|
||||
|
|
|
@ -38,7 +38,6 @@ import ca.uhn.fhir.util.BeanUtils;
|
|||
|
||||
public abstract class BaseRuntimeDeclaredChildDefinition extends BaseRuntimeChildDefinition {
|
||||
private static final org.slf4j.Logger ourLog = org.slf4j.LoggerFactory.getLogger(BaseRuntimeDeclaredChildDefinition.class);
|
||||
private Boolean ourUseMethodAccessors;
|
||||
private final IAccessor myAccessor;
|
||||
private final String myElementName;
|
||||
private final Field myField;
|
||||
|
@ -47,6 +46,7 @@ public abstract class BaseRuntimeDeclaredChildDefinition extends BaseRuntimeChil
|
|||
private final int myMin;
|
||||
private final IMutator myMutator;
|
||||
private final String myShortDefinition;
|
||||
private Boolean ourUseMethodAccessors;
|
||||
|
||||
BaseRuntimeDeclaredChildDefinition(Field theField, Child theChildAnnotation, Description theDescriptionAnnotation, String theElementName) throws ConfigurationException {
|
||||
super();
|
||||
|
@ -197,11 +197,43 @@ public abstract class BaseRuntimeDeclaredChildDefinition extends BaseRuntimeChil
|
|||
}
|
||||
}
|
||||
|
||||
protected final class FieldPlainMutator implements IMutator {
|
||||
private final class FieldListAccessor implements IAccessor {
|
||||
@SuppressWarnings("unchecked")
|
||||
@Override
|
||||
public List<IBase> getValues(Object theTarget) {
|
||||
List<IBase> retVal;
|
||||
try {
|
||||
retVal = (List<IBase>) myField.get(theTarget);
|
||||
} catch (IllegalArgumentException e) {
|
||||
throw new ConfigurationException("Failed to get value", e);
|
||||
} catch (IllegalAccessException e) {
|
||||
throw new ConfigurationException("Failed to get value", e);
|
||||
}
|
||||
if (retVal == null) {
|
||||
retVal = Collections.emptyList();
|
||||
}
|
||||
return retVal;
|
||||
}
|
||||
}
|
||||
|
||||
protected final class FieldListMutator implements IMutator {
|
||||
@Override
|
||||
public void addValue(Object theTarget, IBase theValue) {
|
||||
addValue(theTarget, theValue, false);
|
||||
}
|
||||
|
||||
private void addValue(Object theTarget, IBase theValue, boolean theClear) {
|
||||
try {
|
||||
myField.set(theTarget, theValue);
|
||||
@SuppressWarnings("unchecked")
|
||||
List<IBase> existingList = (List<IBase>) myField.get(theTarget);
|
||||
if (existingList == null) {
|
||||
existingList = new ArrayList<IBase>(2);
|
||||
myField.set(theTarget, existingList);
|
||||
}
|
||||
if (theClear) {
|
||||
existingList.clear();
|
||||
}
|
||||
existingList.add(theValue);
|
||||
} catch (IllegalArgumentException e) {
|
||||
throw new ConfigurationException("Failed to set value", e);
|
||||
} catch (IllegalAccessException e) {
|
||||
|
@ -211,7 +243,7 @@ public abstract class BaseRuntimeDeclaredChildDefinition extends BaseRuntimeChil
|
|||
|
||||
@Override
|
||||
public void setValue(Object theTarget, IBase theValue) {
|
||||
addValue(theTarget, theValue);
|
||||
addValue(theTarget, theValue, true);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -233,53 +265,21 @@ public abstract class BaseRuntimeDeclaredChildDefinition extends BaseRuntimeChil
|
|||
}
|
||||
}
|
||||
|
||||
protected final class FieldListMutator implements IMutator {
|
||||
protected final class FieldPlainMutator implements IMutator {
|
||||
@Override
|
||||
public void addValue(Object theTarget, IBase theValue) {
|
||||
addValue(theTarget, theValue, false);
|
||||
try {
|
||||
myField.set(theTarget, theValue);
|
||||
} catch (IllegalArgumentException e) {
|
||||
throw new ConfigurationException("Failed to set value", e);
|
||||
} catch (IllegalAccessException e) {
|
||||
throw new ConfigurationException("Failed to set value", e);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setValue(Object theTarget, IBase theValue) {
|
||||
addValue(theTarget, theValue, true);
|
||||
}
|
||||
|
||||
private void addValue(Object theTarget, IBase theValue, boolean theClear) {
|
||||
try {
|
||||
@SuppressWarnings("unchecked")
|
||||
List<IBase> existingList = (List<IBase>) myField.get(theTarget);
|
||||
if (existingList == null) {
|
||||
existingList = new ArrayList<IBase>(2);
|
||||
myField.set(theTarget, existingList);
|
||||
}
|
||||
if (theClear) {
|
||||
existingList.clear();
|
||||
}
|
||||
existingList.add(theValue);
|
||||
} catch (IllegalArgumentException e) {
|
||||
throw new ConfigurationException("Failed to set value", e);
|
||||
} catch (IllegalAccessException e) {
|
||||
throw new ConfigurationException("Failed to set value", e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private final class FieldListAccessor implements IAccessor {
|
||||
@SuppressWarnings("unchecked")
|
||||
@Override
|
||||
public List<IBase> getValues(Object theTarget) {
|
||||
List<IBase> retVal;
|
||||
try {
|
||||
retVal = (List<IBase>) myField.get(theTarget);
|
||||
} catch (IllegalArgumentException e) {
|
||||
throw new ConfigurationException("Failed to get value", e);
|
||||
} catch (IllegalAccessException e) {
|
||||
throw new ConfigurationException("Failed to get value", e);
|
||||
}
|
||||
if (retVal == null) {
|
||||
retVal = Collections.emptyList();
|
||||
}
|
||||
return retVal;
|
||||
addValue(theTarget, theValue);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -312,11 +312,6 @@ public abstract class BaseRuntimeDeclaredChildDefinition extends BaseRuntimeChil
|
|||
myMutatorMethod = theMutator;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void addValue(Object theTarget, IBase theValue) {
|
||||
addValue(theTarget, false, theValue);
|
||||
}
|
||||
|
||||
private void addValue(Object theTarget, boolean theClear, IBase theValue) {
|
||||
List<IBase> existingList = myAccessor.getValues(theTarget);
|
||||
if (existingList == null) {
|
||||
|
@ -337,6 +332,11 @@ public abstract class BaseRuntimeDeclaredChildDefinition extends BaseRuntimeChil
|
|||
existingList.add(theValue);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void addValue(Object theTarget, IBase theValue) {
|
||||
addValue(theTarget, false, theValue);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setValue(Object theTarget, IBase theValue) {
|
||||
addValue(theTarget, true, theValue);
|
||||
|
|
|
@ -371,7 +371,7 @@
|
|||
</build>
|
||||
<reporting>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<!--<plugin>
|
||||
<groupId>org.codehaus.mojo</groupId>
|
||||
<artifactId>cobertura-maven-plugin</artifactId>
|
||||
<version>${maven_cobertura_plugin_version}</version>
|
||||
|
@ -382,7 +382,7 @@
|
|||
</reports>
|
||||
</reportSet>
|
||||
</reportSets>
|
||||
</plugin>
|
||||
</plugin>-->
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-project-info-reports-plugin</artifactId>
|
||||
|
@ -391,20 +391,6 @@
|
|||
<skip>true</skip>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-checkstyle-plugin</artifactId>
|
||||
<reportSets>
|
||||
<reportSet>
|
||||
<reports>
|
||||
<report>checkstyle</report>
|
||||
</reports>
|
||||
</reportSet>
|
||||
</reportSets>
|
||||
<configuration>
|
||||
<linkXRef>false</linkXRef>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</reporting>
|
||||
|
||||
|
|
|
@ -16,6 +16,11 @@ import ca.uhn.fhir.context.FhirContext;
|
|||
import ca.uhn.fhir.jpa.dao.BaseJpaTest;
|
||||
import ca.uhn.fhir.jpa.testutil.RandomServerPortProvider;
|
||||
import ca.uhn.fhir.model.api.Bundle;
|
||||
import ca.uhn.fhir.model.api.Include;
|
||||
import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt;
|
||||
import ca.uhn.fhir.model.dstu.resource.AdverseReaction;
|
||||
import ca.uhn.fhir.model.dstu.resource.AllergyIntolerance;
|
||||
import ca.uhn.fhir.model.dstu.resource.BaseResource;
|
||||
import ca.uhn.fhir.model.dstu.resource.Patient;
|
||||
import ca.uhn.fhir.model.dstu.valueset.AdministrativeGenderCodesEnum;
|
||||
import ca.uhn.fhir.model.dstu2.resource.PaymentNotice;
|
||||
|
@ -118,6 +123,20 @@ public class ResourceProviderMultiVersionTest extends BaseJpaTest {
|
|||
assertEquals(ca.uhn.fhir.model.dstu.resource.Patient.class, history.getEntries().get(0).getResource().getClass());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testUnknownResourceType2() {
|
||||
AdverseReaction ar = new AdverseReaction();
|
||||
ar.addIdentifier("FOO", "BAR");
|
||||
|
||||
AllergyIntolerance ai = new AllergyIntolerance();
|
||||
ai.addReaction().setResource(ar);
|
||||
IdDt id = ourClientDstu2.create().resource(ai).execute().getId().toUnqualifiedVersionless();
|
||||
|
||||
ourClientDstu2.search().forResource(AllergyIntolerance.class.getSimpleName())
|
||||
.where(BaseResource.RES_ID.matches().value(id.getIdPart()))
|
||||
.include(new Include("*")).execute();
|
||||
}
|
||||
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@BeforeClass
|
||||
|
|
|
@ -22,25 +22,14 @@
|
|||
|
||||
<exclude-unlisted-classes>true</exclude-unlisted-classes>
|
||||
<properties>
|
||||
<!--
|
||||
<property name="hibernate.connection.url" value="jdbc:hsqldb:directory:fhirtest-database" />
|
||||
<property name="hibernate.connection.driver_class" value="org.hsqldb.jdbcDriver" />
|
||||
-->
|
||||
<property name="hibernate.dialect" value="org.hibernate.dialect.DerbyTenSevenDialect" />
|
||||
<property name="hibernate.hbm2ddl.auto" value="update" />
|
||||
<!--
|
||||
<property name="hibernate.connection.username" value="sa" />
|
||||
<property name="hibernate.connection.password" value="" />
|
||||
-->
|
||||
<property name="hibernate.jdbc.batch_size" value="0" />
|
||||
<property name="hibernate.cache.use_minimal_puts" value="false" />
|
||||
<property name="hibernate.show_sql" value="false" />
|
||||
<property name="hibernate.cache.use_query_cache" value="false" />
|
||||
<property name="hibernate.cache.use_second_level_cache" value="false" />
|
||||
<property name="hibernate.cache.use_structured_entries" value="false" />
|
||||
<!--
|
||||
<property name="hibernate.cache.region.factory_class" value="org.hibernate.cache.ehcache.SingletonEhCacheRegionFactory" />
|
||||
-->
|
||||
</properties>
|
||||
</persistence-unit>
|
||||
|
||||
|
|
|
@ -1,484 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Profile xmlns="http://hl7.org/fhir">
|
||||
<text>
|
||||
<status value="generated"/>
|
||||
<div xmlns="http://www.w3.org/1999/xhtml">

|
||||
<pre>
<

|
||||
<a title="A description of a query with a set of parameters." class="dict" href="query-definitions.html#Query">

|
||||
<b>Query</b>
 </a> xmlns="http://hl7.org/fhir"> 

|
||||
<span style="float: right">

|
||||
<a title="Documentation for this format" href="formats.html">

|
||||
<img alt="doco" src="help.png"/>
 </a>
 </span>
 <!-- from 

|
||||
<a href="resources.html">Resource</a>: 

|
||||
<a href="extensibility.html">extension</a>, 

|
||||
<a href="extensibility.html#modifierExtension">modifierExtension</a>, language, 

|
||||
<a href="narrative.html#Narrative">text</a>, and 

|
||||
<a href="references.html#contained">contained</a> -->
 <

|
||||
<a title="Links query and its response(s)." class="dict" href="query-definitions.html#Query.identifier">

|
||||
<b>identifier</b>
 </a> value="[

|
||||
<span style="color: darkgreen">

|
||||
<a href="datatypes.html#uri">uri</a>
 </span>]"/>

|
||||
<span style="color: Gray"><!--</span> 

|
||||
<span style="color: brown">

|
||||
<b>1..1</b>
 </span> 

|
||||
<span style="color: navy">Links query and its response(s)</span>

|
||||
<span style="color: Gray"> --></span>
 <

|
||||
<a title="Set of query parameters with values." class="dict" href="query-definitions.html#Query.parameter">

|
||||
<b>parameter</b>
 </a>>

|
||||
<span style="color: Gray"><!--</span> 

|
||||
<span style="color: brown">

|
||||
<b>1..*</b>
 </span> 

|
||||
<span style="color: darkgreen">

|
||||
<a href="extensibility.html#Extension">Extension</a>
 </span> 

|
||||
<span style="color: navy">Set of query parameters with values</span>

|
||||
<span style="color: Gray"> --></span></parameter>
 <

|
||||
<a title="If this is a response to a query." class="dict" href="query-definitions.html#Query.response">

|
||||
<b>response</b>
 </a>> 

|
||||
<span style="color: Gray"><!-- 

|
||||
<span style="color: brown">

|
||||
<b>0..1</b>
 </span> If this is a response to a query --></span>
 <

|
||||
<a title="Links response to source query." class="dict" href="query-definitions.html#Query.response.identifier">

|
||||
<b>identifier</b>
 </a> value="[

|
||||
<span style="color: darkgreen">

|
||||
<a href="datatypes.html#uri">uri</a>
 </span>]"/>

|
||||
<span style="color: Gray"><!--</span> 

|
||||
<span style="color: brown">

|
||||
<b>1..1</b>
 </span> 

|
||||
<span style="color: navy">Links response to source query</span>

|
||||
<span style="color: Gray"> --></span>
 <

|
||||
<a title="Outcome of processing the query." class="dict" href="query-definitions.html#Query.response.outcome">

|
||||
<b>outcome</b>
 </a> value="[

|
||||
<span style="color: darkgreen">

|
||||
<a href="datatypes.html#code">code</a>
 </span>]"/>

|
||||
<span style="color: Gray"><!--</span> 

|
||||
<span style="color: brown">

|
||||
<b>1..1</b>
 </span> 

|
||||
<span style="color: navy">

|
||||
<a style="color: navy" href="query-outcome.html">ok | limited | refused | error</a>
 </span>

|
||||
<span style="color: Gray"> --></span>
 <

|
||||
<a title="Total number of matching records." class="dict" href="query-definitions.html#Query.response.total">

|
||||
<b>total</b>
 </a> value="[

|
||||
<span style="color: darkgreen">

|
||||
<a href="datatypes.html#integer">integer</a>
 </span>]"/>

|
||||
<span style="color: Gray"><!--</span> 

|
||||
<span style="color: brown">

|
||||
<b>0..1</b>
 </span> 

|
||||
<span style="color: navy">Total number of matching records</span>

|
||||
<span style="color: Gray"> --></span>
 <

|
||||
<a title="Parameters server used." class="dict" href="query-definitions.html#Query.response.parameter">

|
||||
<b>parameter</b>
 </a>>

|
||||
<span style="color: Gray"><!--</span> 

|
||||
<span style="color: brown">

|
||||
<b>0..*</b>
 </span> 

|
||||
<span style="color: darkgreen">

|
||||
<a href="extensibility.html#Extension">Extension</a>
 </span> 

|
||||
<span style="color: navy">Parameters server used</span>

|
||||
<span style="color: Gray"> --></span></parameter>
 <

|
||||
<a title="To get first page (if paged)." class="dict" href="query-definitions.html#Query.response.first">

|
||||
<b>first</b>
 </a>>

|
||||
<span style="color: Gray"><!--</span> 

|
||||
<span style="color: brown">

|
||||
<b>0..*</b>
 </span> 

|
||||
<span style="color: darkgreen">

|
||||
<a href="extensibility.html#Extension">Extension</a>
 </span> 

|
||||
<span style="color: navy">To get first page (if paged)</span>

|
||||
<span style="color: Gray"> --></span></first>
 <

|
||||
<a title="To get previous page (if paged)." class="dict" href="query-definitions.html#Query.response.previous">

|
||||
<b>previous</b>
 </a>>

|
||||
<span style="color: Gray"><!--</span> 

|
||||
<span style="color: brown">

|
||||
<b>0..*</b>
 </span> 

|
||||
<span style="color: darkgreen">

|
||||
<a href="extensibility.html#Extension">Extension</a>
 </span> 

|
||||
<span style="color: navy">To get previous page (if paged)</span>

|
||||
<span style="color: Gray"> --></span></previous>
 <

|
||||
<a title="To get next page (if paged)." class="dict" href="query-definitions.html#Query.response.next">

|
||||
<b>next</b>
 </a>>

|
||||
<span style="color: Gray"><!--</span> 

|
||||
<span style="color: brown">

|
||||
<b>0..*</b>
 </span> 

|
||||
<span style="color: darkgreen">

|
||||
<a href="extensibility.html#Extension">Extension</a>
 </span> 

|
||||
<span style="color: navy">To get next page (if paged)</span>

|
||||
<span style="color: Gray"> --></span></next>
 <

|
||||
<a title="To get last page (if paged)." class="dict" href="query-definitions.html#Query.response.last">

|
||||
<b>last</b>
 </a>>

|
||||
<span style="color: Gray"><!--</span> 

|
||||
<span style="color: brown">

|
||||
<b>0..*</b>
 </span> 

|
||||
<span style="color: darkgreen">

|
||||
<a href="extensibility.html#Extension">Extension</a>
 </span> 

|
||||
<span style="color: navy">To get last page (if paged)</span>

|
||||
<span style="color: Gray"> --></span></last>
 <

|
||||
<a title="Resources that are the results of the search." class="dict" href="query-definitions.html#Query.response.reference">

|
||||
<b>reference</b>
 </a>>

|
||||
<span style="color: Gray"><!--</span> 

|
||||
<span style="color: brown">

|
||||
<b>0..*</b>
 </span> 

|
||||
<span style="color: darkgreen">

|
||||
<a href="references.html#Resource">Resource</a>(

|
||||
<a href="resourcelist.html">Any</a>)</span> 

|
||||
<span style="color: navy">Resources that are the results of the search</span>

|
||||
<span style="color: Gray"> --></span></reference>
 </response>
</Query>
</pre>
 </div>
|
||||
</text>
|
||||
<name value="query"/>
|
||||
<publisher value="FHIR Project"/>
|
||||
<description value="Basic Profile. A description of a query with a set of parameters."/>
|
||||
<status value="draft"/>
|
||||
<date value="2014-02-03"/>
|
||||
<requirements value="Scope and Usage The resource is used to perform queries using messaging-based exchanges, and to perform asynchronous searches using the RESTful interface."/>
|
||||
<mapping>
|
||||
<identity value="rim"/>
|
||||
<uri value="http://hl7.org/v3"/>
|
||||
<name value="RIM"/>
|
||||
</mapping>
|
||||
<structure>
|
||||
<type value="Query"/>
|
||||
<publish value="true"/>
|
||||
<element>
|
||||
<path value="Query"/>
|
||||
<definition>
|
||||
<short value="A description of a query with a set of parameters"/>
|
||||
<formal value="A description of a query with a set of parameters."/>
|
||||
<min value="1"/>
|
||||
<max value="1"/>
|
||||
<type>
|
||||
<code value="Resource"/>
|
||||
</type>
|
||||
<isModifier value="false"/>
|
||||
<mapping>
|
||||
<identity value="rim"/>
|
||||
<map value="QuerySpec"/>
|
||||
</mapping>
|
||||
</definition>
|
||||
</element>
|
||||
<element>
|
||||
<path value="Query.extension"/>
|
||||
<definition>
|
||||
<short value="Additional Content defined by implementations"/>
|
||||
<formal value="May be used to represent additional information that is not part of the basic definition of the resource. In order to make the use of extensions safe and manageable, there is a strict governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."/>
|
||||
<comments value="there can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core simplicity for everyone."/>
|
||||
<synonym value="extensions"/>
|
||||
<synonym value="user content"/>
|
||||
<min value="0"/>
|
||||
<max value="*"/>
|
||||
<type>
|
||||
<code value="Extension"/>
|
||||
</type>
|
||||
<isModifier value="false"/>
|
||||
</definition>
|
||||
</element>
|
||||
<element>
|
||||
<path value="Query.modifierExtension"/>
|
||||
<definition>
|
||||
<short value="Extensions that cannot be ignored"/>
|
||||
<formal value="May be used to represent additional information that is not part of the basic definition of the resource, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions."/>
|
||||
<comments value="there can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core simplicity for everyone."/>
|
||||
<synonym value="extensions"/>
|
||||
<synonym value="user content"/>
|
||||
<min value="0"/>
|
||||
<max value="*"/>
|
||||
<type>
|
||||
<code value="Extension"/>
|
||||
</type>
|
||||
<isModifier value="false"/>
|
||||
</definition>
|
||||
</element>
|
||||
<element>
|
||||
<path value="Query.text"/>
|
||||
<definition>
|
||||
<short value="Text summary of the resource, for human interpretation"/>
|
||||
<formal value="A human-readable narrative that contains a summary of the resource, and may be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it "clinically safe" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety."/>
|
||||
<comments value="Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative."/>
|
||||
<synonym value="narrative"/>
|
||||
<synonym value="html"/>
|
||||
<synonym value="xhtml"/>
|
||||
<synonym value="display"/>
|
||||
<min value="0"/>
|
||||
<max value="1"/>
|
||||
<type>
|
||||
<code value="Narrative"/>
|
||||
</type>
|
||||
<isModifier value="false"/>
|
||||
</definition>
|
||||
</element>
|
||||
<element>
|
||||
<path value="Query.contained"/>
|
||||
<definition>
|
||||
<short value="Contained, inline Resources"/>
|
||||
<formal value="These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope."/>
|
||||
<comments value="This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again."/>
|
||||
<synonym value="inline resources"/>
|
||||
<synonym value="anonymous resources"/>
|
||||
<synonym value="contained resources"/>
|
||||
<min value="0"/>
|
||||
<max value="*"/>
|
||||
<type>
|
||||
<code value="Resource"/>
|
||||
</type>
|
||||
<isModifier value="false"/>
|
||||
</definition>
|
||||
</element>
|
||||
<element>
|
||||
<path value="Query.identifier"/>
|
||||
<definition>
|
||||
<short value="Links query and its response(s)"/>
|
||||
<formal value="Links query and its response(s)."/>
|
||||
<min value="1"/>
|
||||
<max value="1"/>
|
||||
<type>
|
||||
<code value="uri"/>
|
||||
</type>
|
||||
<isModifier value="false"/>
|
||||
<mapping>
|
||||
<identity value="rim"/>
|
||||
<map value=".queryId"/>
|
||||
</mapping>
|
||||
</definition>
|
||||
</element>
|
||||
<element>
|
||||
<path value="Query.parameter"/>
|
||||
<definition>
|
||||
<short value="Set of query parameters with values"/>
|
||||
<formal value="Set of query parameters with values."/>
|
||||
<comments value="Unless otherwise specified, parameters are usually strings."/>
|
||||
<min value="1"/>
|
||||
<max value="*"/>
|
||||
<type>
|
||||
<code value="Extension"/>
|
||||
</type>
|
||||
<isModifier value="false"/>
|
||||
<mapping>
|
||||
<identity value="rim"/>
|
||||
<map value=".parameter"/>
|
||||
</mapping>
|
||||
</definition>
|
||||
</element>
|
||||
<element>
|
||||
<path value="Query.response"/>
|
||||
<definition>
|
||||
<short value="If this is a response to a query"/>
|
||||
<formal value="If this is a response to a query."/>
|
||||
<min value="0"/>
|
||||
<max value="1"/>
|
||||
<isModifier value="false"/>
|
||||
<mapping>
|
||||
<identity value="rim"/>
|
||||
<map value="QueryAck (indirectly linked through .queryId, directly linked via Message.acknowledges"/>
|
||||
</mapping>
|
||||
</definition>
|
||||
</element>
|
||||
<element>
|
||||
<path value="Query.response.extension"/>
|
||||
<definition>
|
||||
<short value="Additional Content defined by implementations"/>
|
||||
<formal value="May be used to represent additional information that is not part of the basic definition of the resource. In order to make the use of extensions safe and manageable, there is a strict governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."/>
|
||||
<comments value="there can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core simplicity for everyone."/>
|
||||
<synonym value="extensions"/>
|
||||
<synonym value="user content"/>
|
||||
<min value="0"/>
|
||||
<max value="*"/>
|
||||
<type>
|
||||
<code value="Extension"/>
|
||||
</type>
|
||||
<isModifier value="false"/>
|
||||
</definition>
|
||||
</element>
|
||||
<element>
|
||||
<path value="Query.response.modifierExtension"/>
|
||||
<definition>
|
||||
<short value="Extensions that cannot be ignored"/>
|
||||
<formal value="May be used to represent additional information that is not part of the basic definition of the resource, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions."/>
|
||||
<comments value="there can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core simplicity for everyone."/>
|
||||
<synonym value="extensions"/>
|
||||
<synonym value="user content"/>
|
||||
<min value="0"/>
|
||||
<max value="*"/>
|
||||
<type>
|
||||
<code value="Extension"/>
|
||||
</type>
|
||||
<isModifier value="false"/>
|
||||
</definition>
|
||||
</element>
|
||||
<element>
|
||||
<path value="Query.response.identifier"/>
|
||||
<definition>
|
||||
<short value="Links response to source query"/>
|
||||
<formal value="Links response to source query."/>
|
||||
<min value="1"/>
|
||||
<max value="1"/>
|
||||
<type>
|
||||
<code value="uri"/>
|
||||
</type>
|
||||
<isModifier value="false"/>
|
||||
<mapping>
|
||||
<identity value="rim"/>
|
||||
<map value=".queryId?"/>
|
||||
</mapping>
|
||||
</definition>
|
||||
</element>
|
||||
<element>
|
||||
<path value="Query.response.outcome"/>
|
||||
<definition>
|
||||
<short value="ok | limited | refused | error"/>
|
||||
<formal value="Outcome of processing the query."/>
|
||||
<min value="1"/>
|
||||
<max value="1"/>
|
||||
<type>
|
||||
<code value="code"/>
|
||||
</type>
|
||||
<isModifier value="false"/>
|
||||
<binding>
|
||||
<name value="QueryOutcome"/>
|
||||
<isExtensible value="false"/>
|
||||
<conformance value="required"/>
|
||||
<referenceResource>
|
||||
<reference value="http://hl7.org/fhir/vs/query-outcome"/>
|
||||
</referenceResource>
|
||||
</binding>
|
||||
<mapping>
|
||||
<identity value="rim"/>
|
||||
<map value=".queryResponseCode"/>
|
||||
</mapping>
|
||||
</definition>
|
||||
</element>
|
||||
<element>
|
||||
<path value="Query.response.total"/>
|
||||
<definition>
|
||||
<short value="Total number of matching records"/>
|
||||
<formal value="Total number of matching records."/>
|
||||
<min value="0"/>
|
||||
<max value="1"/>
|
||||
<type>
|
||||
<code value="integer"/>
|
||||
</type>
|
||||
<isModifier value="false"/>
|
||||
<mapping>
|
||||
<identity value="rim"/>
|
||||
<map value=".resultTotalQuantity"/>
|
||||
</mapping>
|
||||
</definition>
|
||||
</element>
|
||||
<element>
|
||||
<path value="Query.response.parameter"/>
|
||||
<definition>
|
||||
<short value="Parameters server used"/>
|
||||
<formal value="Parameters server used."/>
|
||||
<min value="0"/>
|
||||
<max value="*"/>
|
||||
<type>
|
||||
<code value="Extension"/>
|
||||
</type>
|
||||
<isModifier value="false"/>
|
||||
<mapping>
|
||||
<identity value="rim"/>
|
||||
<map value="Not supported"/>
|
||||
</mapping>
|
||||
</definition>
|
||||
</element>
|
||||
<element>
|
||||
<path value="Query.response.first"/>
|
||||
<definition>
|
||||
<short value="To get first page (if paged)"/>
|
||||
<formal value="To get first page (if paged)."/>
|
||||
<min value="0"/>
|
||||
<max value="*"/>
|
||||
<type>
|
||||
<code value="Extension"/>
|
||||
</type>
|
||||
<isModifier value="false"/>
|
||||
<mapping>
|
||||
<identity value="rim"/>
|
||||
<map value="Not supported"/>
|
||||
</mapping>
|
||||
</definition>
|
||||
</element>
|
||||
<element>
|
||||
<path value="Query.response.previous"/>
|
||||
<definition>
|
||||
<short value="To get previous page (if paged)"/>
|
||||
<formal value="To get previous page (if paged)."/>
|
||||
<min value="0"/>
|
||||
<max value="*"/>
|
||||
<type>
|
||||
<code value="Extension"/>
|
||||
</type>
|
||||
<isModifier value="false"/>
|
||||
<mapping>
|
||||
<identity value="rim"/>
|
||||
<map value="Not supported"/>
|
||||
</mapping>
|
||||
</definition>
|
||||
</element>
|
||||
<element>
|
||||
<path value="Query.response.next"/>
|
||||
<definition>
|
||||
<short value="To get next page (if paged)"/>
|
||||
<formal value="To get next page (if paged)."/>
|
||||
<min value="0"/>
|
||||
<max value="*"/>
|
||||
<type>
|
||||
<code value="Extension"/>
|
||||
</type>
|
||||
<isModifier value="false"/>
|
||||
<mapping>
|
||||
<identity value="rim"/>
|
||||
<map value=".continuationToken"/>
|
||||
</mapping>
|
||||
</definition>
|
||||
</element>
|
||||
<element>
|
||||
<path value="Query.response.last"/>
|
||||
<definition>
|
||||
<short value="To get last page (if paged)"/>
|
||||
<formal value="To get last page (if paged)."/>
|
||||
<min value="0"/>
|
||||
<max value="*"/>
|
||||
<type>
|
||||
<code value="Extension"/>
|
||||
</type>
|
||||
<isModifier value="false"/>
|
||||
<mapping>
|
||||
<identity value="rim"/>
|
||||
<map value="Not supported"/>
|
||||
</mapping>
|
||||
</definition>
|
||||
</element>
|
||||
<element>
|
||||
<path value="Query.response.reference"/>
|
||||
<definition>
|
||||
<short value="Resources that are the results of the search"/>
|
||||
<formal value="Resources that are the results of the search."/>
|
||||
<comments value="Is query only used in messaging?."/>
|
||||
<min value="0"/>
|
||||
<max value="*"/>
|
||||
<type>
|
||||
<code value="ResourceReference"/>
|
||||
<profile value="http://hl7.org/fhir/profiles/Any"/>
|
||||
</type>
|
||||
<isModifier value="false"/>
|
||||
<mapping>
|
||||
<identity value="rim"/>
|
||||
<map value=".controlAct.outboundRelationship[typeCode=SUBJ].target or .controlAct.participation[typeCode=SBJ].role"/>
|
||||
</mapping>
|
||||
</definition>
|
||||
</element>
|
||||
<searchParam>
|
||||
<name value="_id"/>
|
||||
<type value="token"/>
|
||||
<documentation value="The logical resource id associated with the resource (must be supported by all servers)"/>
|
||||
</searchParam>
|
||||
<searchParam>
|
||||
<name value="identifier"/>
|
||||
<type value="token"/>
|
||||
<documentation value="Links query and its response(s)"/>
|
||||
<xpath value="f:Query/f:identifier"/>
|
||||
</searchParam>
|
||||
<searchParam>
|
||||
<name value="response"/>
|
||||
<type value="token"/>
|
||||
<documentation value="Links response to source query"/>
|
||||
<xpath value="f:Query/f:response/f:identifier"/>
|
||||
</searchParam>
|
||||
</structure>
|
||||
</Profile>
|
4
pom.xml
4
pom.xml
|
@ -454,7 +454,7 @@
|
|||
</dependency>
|
||||
</dependencies>
|
||||
<configuration>
|
||||
<configLocation>src/checkstyle/checkstyle.xml</configLocation>
|
||||
<configLocation>file://${project.basedir}/src/checkstyle/checkstyle.xml</configLocation>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
|
@ -516,7 +516,7 @@
|
|||
<fileset dir="hapi-fhir-cobertura/target/site/cobertura" />
|
||||
</copy>
|
||||
<copy todir="target/site">
|
||||
<fileset dir="hapi-fhir-cobertura/target/site" includes="checkstyle.*"/>
|
||||
<fileset dir="hapi-fhir-base/target/site" includes="checkstyle.*"/>
|
||||
</copy>
|
||||
<echo>Fixing Checkstyle Report</echo>
|
||||
<replace dir="target/site" summary="true">
|
||||
|
|
Loading…
Reference in New Issue