FIx unit test - Need to deal with unexpected extensions still though..
This commit is contained in:
parent
1322dcfa7b
commit
e4d58077c8
|
@ -46,7 +46,7 @@ public abstract class BaseRuntimeElementCompositeDefinition<T extends IComposite
|
|||
public BaseRuntimeChildDefinition getChildByNameOrThrowDataFormatException(String theName) throws DataFormatException {
|
||||
BaseRuntimeChildDefinition retVal = myNameToChild.get(theName);
|
||||
if (retVal == null) {
|
||||
throw new DataFormatException("Unknown child name: " + theName);
|
||||
throw new DataFormatException("Unknown child name '" + theName + "' in element " + getName());
|
||||
}
|
||||
return retVal;
|
||||
}
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
<!-- This example is taken from the v3 data types (SLIST) -->
|
||||
|
||||
<Observation xmlns="http://hl7.org/fhir" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://hl7.org/fhir ..\..\schema\observation.xsd">
|
||||
<!--
|
||||
<extension url="http://acme.org/fhir/Profile/main#trial-status">
|
||||
<extension url="http://acme.org/fhir/Profile/main#trial-status-code">
|
||||
<valueCode value="unsure" />
|
||||
|
@ -15,10 +16,13 @@
|
|||
</valueResource>
|
||||
</extension>
|
||||
</extension>
|
||||
-->
|
||||
<!--
|
||||
<text>
|
||||
<status value="generated" />
|
||||
<div xmlns="http://www.w3.org/1999/xhtml">Sept 17, 2012: Systolic Blood pressure 107 mmHg (normal)</div>
|
||||
</text>
|
||||
-->
|
||||
<name>
|
||||
<!-- Actually, this is not a vull EEG. A todo is to turn it into one -->
|
||||
<coding>
|
||||
|
|
|
@ -104,6 +104,16 @@
|
|||
<artifactId>maven-settings</artifactId>
|
||||
<version>${maven_version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven</groupId>
|
||||
<artifactId>maven-artifact</artifactId>
|
||||
<version>${maven_version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven</groupId>
|
||||
<artifactId>maven-model</artifactId>
|
||||
<version>${maven_version}</version>
|
||||
</dependency>
|
||||
|
||||
</dependencies>
|
||||
|
||||
|
|
Loading…
Reference in New Issue