Use updated valueset definitions
This commit is contained in:
parent
c385384269
commit
9664174b6a
|
@ -31,17 +31,22 @@
|
|||
<dependency>
|
||||
<groupId>ca.uhn.hapi.fhir</groupId>
|
||||
<artifactId>hapi-fhir-structures-dstu</artifactId>
|
||||
<version>1.1</version>
|
||||
<version>1.2</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>ca.uhn.hapi.fhir</groupId>
|
||||
<artifactId>hapi-fhir-structures-dstu2</artifactId>
|
||||
<version>1.1</version>
|
||||
<version>1.2</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>ca.uhn.hapi.fhir</groupId>
|
||||
<artifactId>hapi-fhir-structures-hl7org-dstu2</artifactId>
|
||||
<version>1.1</version>
|
||||
<version>1.2</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>ca.uhn.hapi.fhir</groupId>
|
||||
<artifactId>hapi-fhir-validation-resources-dstu2</artifactId>
|
||||
<version>1.2</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
|
|
|
@ -228,7 +228,7 @@ public class TinderStructuresMojo extends AbstractMojo {
|
|||
String dtOutputDir = "target/generated-sources/tinder/ca/uhn/fhir/model/dev/composite";
|
||||
|
||||
ResourceGeneratorUsingSpreadsheet rp = new ResourceGeneratorUsingSpreadsheet("dstu2", ".");
|
||||
rp.setBaseResourceNames(Arrays.asList( "bundle"
|
||||
rp.setBaseResourceNames(Arrays.asList( "careplan"
|
||||
// //, "contract"
|
||||
// "valueset", "organization", "location"
|
||||
// , "observation", "conformance"
|
||||
|
@ -252,11 +252,12 @@ public class TinderStructuresMojo extends AbstractMojo {
|
|||
rp.getLocalImports().putAll(datatypeLocalImports);
|
||||
datatypeLocalImports.putAll(rp.getLocalImports());
|
||||
|
||||
String vsOutputDir = "target/generated-sources/tinder/ca/uhn/fhir/model/dev/valueset";
|
||||
vsp.writeMarkedValueSets(new File(vsOutputDir), "ca.uhn.fhir.model.dev");
|
||||
|
||||
dtp.writeAll(new File(dtOutputDir), null, "ca.uhn.fhir.model.dev");
|
||||
rp.writeAll(new File(rpOutputDir), new File(rpSOutputDir), "ca.uhn.fhir.model.dev");
|
||||
|
||||
String vsOutputDir = "target/generated-sources/tinder/ca/uhn/fhir/model/dev/valueset";
|
||||
vsp.writeMarkedValueSets(new File(vsOutputDir), "ca.uhn.fhir.model.dev");
|
||||
}
|
||||
|
||||
public static class ProfileFileDefinition {
|
||||
|
|
|
@ -79,7 +79,11 @@ public class ValueSetGenerator {
|
|||
version = "dstu2";
|
||||
}
|
||||
|
||||
String vs = IOUtils.toString(ValueSetGenerator.class.getResourceAsStream("/vs/" + version + "/all-valuesets-bundle.xml"));
|
||||
String name = "/vs/" + version + "/all-valuesets-bundle.xml";
|
||||
if (version.equals("dstu2")) {
|
||||
name = "/org/hl7/fhir/instance/model/valueset/valuesets.xml";
|
||||
}
|
||||
String vs = IOUtils.toString(ValueSetGenerator.class.getResourceAsStream(name));
|
||||
if ("dstu".equals(myVersion)) {
|
||||
Bundle bundle = newXmlParser.parseBundle(vs);
|
||||
for (BundleEntry next : bundle.getEntries()) {
|
||||
|
|
|
@ -101,6 +101,11 @@
|
|||
profiled datatype name instead of the base datatype name as required by the FHIR
|
||||
spec. Thanks to Nehashri Puttu Lokesh for reporting!
|
||||
</action>
|
||||
<action type="fix">
|
||||
Some generated Enum types in DSTU2 HAPI structures
|
||||
did not have latest valueset definitions applied. Thanks
|
||||
to Bill de Beaubien for reporting!
|
||||
</action>
|
||||
</release>
|
||||
<release version="1.2" date="2015-09-18">
|
||||
<action type="add">
|
||||
|
|
Loading…
Reference in New Issue