FIx unit test - Need to deal with unexpected extensions still though..

This commit is contained in:
jamesagnew 2014-02-24 13:55:44 -05:00
parent 1322dcfa7b
commit e4d58077c8
3 changed files with 15 additions and 1 deletions

View File

@ -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;
}

View File

@ -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>

View File

@ -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>