diff --git a/examples/pom.xml b/examples/pom.xml
index 099969d3072..e7c346e034a 100644
--- a/examples/pom.xml
+++ b/examples/pom.xml
@@ -27,7 +27,7 @@
ca.uhn.hapi.fhir
- hapi-fhir-structures-dstu2.1
+ hapi-fhir-structures-dstu31.4-SNAPSHOT
diff --git a/examples/src/main/java/example/FhirContextIntro.java b/examples/src/main/java/example/FhirContextIntro.java
index 310b9bdc140..dc4fe8a9e11 100644
--- a/examples/src/main/java/example/FhirContextIntro.java
+++ b/examples/src/main/java/example/FhirContextIntro.java
@@ -26,11 +26,11 @@ FhirContext ctxDstu2 = FhirContext.forDstu2();
@SuppressWarnings("unused")
public static void creatingContextHl7org() {
// START SNIPPET: creatingContextHl7org
-// Create a context for DSTU2.1
-FhirContext ctx = FhirContext.forDstu2_1();
+// Create a context for DSTU3
+FhirContext ctx = FhirContext.forDstu3();
// Working with RI structures is similar to how it works with the HAPI structures
-org.hl7.fhir.dstu21.model.Patient patient = new org.hl7.fhir.dstu21.model.Patient();
+org.hl7.fhir.dstu3.model.Patient patient = new org.hl7.fhir.dstu3.model.Patient();
patient.addName().addGiven("John").addFamily("Smith");
patient.getBirthDateElement().setValueAsString("1998-02-22");
diff --git a/hapi-fhir-base/src/main/java/ca/uhn/fhir/context/FhirContext.java b/hapi-fhir-base/src/main/java/ca/uhn/fhir/context/FhirContext.java
index 858327e44d8..c4e6e832531 100644
--- a/hapi-fhir-base/src/main/java/ca/uhn/fhir/context/FhirContext.java
+++ b/hapi-fhir-base/src/main/java/ca/uhn/fhir/context/FhirContext.java
@@ -508,12 +508,12 @@ public class FhirContext {
}
/**
- * Creates and returns a new FhirContext with version {@link FhirVersionEnum#DSTU2_1 DSTU 2.1}
+ * Creates and returns a new FhirContext with version {@link FhirVersionEnum#DSTU3 DSTU 3}
*
* @since 1.4
*/
- public static FhirContext forDstu2_1() {
- return new FhirContext(FhirVersionEnum.DSTU2_1);
+ public static FhirContext forDstu3() {
+ return new FhirContext(FhirVersionEnum.DSTU3);
}
public static FhirContext forDstu2Hl7Org() {
diff --git a/hapi-fhir-base/src/main/java/ca/uhn/fhir/context/FhirVersionEnum.java b/hapi-fhir-base/src/main/java/ca/uhn/fhir/context/FhirVersionEnum.java
index 3cf9787d06e..8c86d53c51c 100644
--- a/hapi-fhir-base/src/main/java/ca/uhn/fhir/context/FhirVersionEnum.java
+++ b/hapi-fhir-base/src/main/java/ca/uhn/fhir/context/FhirVersionEnum.java
@@ -38,7 +38,7 @@ public enum FhirVersionEnum {
DSTU2("ca.uhn.fhir.model.dstu2.FhirDstu2", null, false),
- DSTU2_1("org.hl7.fhir.dstu21.hapi.ctx.FhirDstu21", null, true),
+ DSTU3("org.hl7.fhir.dstu3.hapi.ctx.FhirDstu3", null, true),
DSTU2_HL7ORG("org.hl7.fhir.instance.FhirDstu2Hl7Org", DSTU2, true);
diff --git a/hapi-fhir-cli/hapi-fhir-cli-app/pom.xml b/hapi-fhir-cli/hapi-fhir-cli-app/pom.xml
index 7139770d8b0..5dec6fe18ab 100644
--- a/hapi-fhir-cli/hapi-fhir-cli-app/pom.xml
+++ b/hapi-fhir-cli/hapi-fhir-cli-app/pom.xml
@@ -55,7 +55,7 @@
ca.uhn.hapi.fhir
- hapi-fhir-structures-dstu2.1
+ hapi-fhir-structures-dstu31.4-SNAPSHOT
@@ -70,7 +70,7 @@
ca.uhn.hapi.fhir
- hapi-fhir-validation-resources-dstu2.1
+ hapi-fhir-validation-resources-dstu31.4-SNAPSHOT
diff --git a/hapi-fhir-cli/hapi-fhir-cli-app/src/main/java/ca/uhn/fhir/cli/BaseCommand.java b/hapi-fhir-cli/hapi-fhir-cli-app/src/main/java/ca/uhn/fhir/cli/BaseCommand.java
index d5d1f7fe207..28bff9a7840 100644
--- a/hapi-fhir-cli/hapi-fhir-cli-app/src/main/java/ca/uhn/fhir/cli/BaseCommand.java
+++ b/hapi-fhir-cli/hapi-fhir-cli-app/src/main/java/ca/uhn/fhir/cli/BaseCommand.java
@@ -54,11 +54,12 @@ public abstract class BaseCommand implements Comparable {
protected FhirContext getSpecVersionContext(CommandLine theCommandLine) throws ParseException {
if (myFhirCtx == null) {
String specVersion = theCommandLine.getOptionValue("f", SPEC_DEFAULT_VERSION);
+ specVersion = specVersion.toLowerCase();
FhirVersionEnum version;
if ("dstu2".equals(specVersion)) {
version = FhirVersionEnum.DSTU2;
- } else if ("dstu2.1".equals(specVersion)) {
- version = FhirVersionEnum.DSTU2_1;
+ } else if ("dstu3".equals(specVersion)) {
+ version = FhirVersionEnum.DSTU3;
} else {
throw new ParseException("Unknown spec version: " + specVersion);
}
diff --git a/hapi-fhir-cli/hapi-fhir-cli-app/src/main/java/ca/uhn/fhir/cli/ExampleDataUploader.java b/hapi-fhir-cli/hapi-fhir-cli-app/src/main/java/ca/uhn/fhir/cli/ExampleDataUploader.java
index 51d77022311..8410cc6965b 100644
--- a/hapi-fhir-cli/hapi-fhir-cli-app/src/main/java/ca/uhn/fhir/cli/ExampleDataUploader.java
+++ b/hapi-fhir-cli/hapi-fhir-cli-app/src/main/java/ca/uhn/fhir/cli/ExampleDataUploader.java
@@ -108,7 +108,7 @@ public class ExampleDataUploader extends BaseCommand {
case DSTU2:
specUrl = "http://hl7.org/fhir/dstu2/examples-json.zip";
break;
- case DSTU2_1:
+ case DSTU3:
specUrl = "http://hl7-fhir.github.io/examples-json.zip";
break;
default:
diff --git a/hapi-fhir-cli/hapi-fhir-cli-app/src/main/java/ca/uhn/fhir/cli/LoadingValidationSupportDstu21.java b/hapi-fhir-cli/hapi-fhir-cli-app/src/main/java/ca/uhn/fhir/cli/LoadingValidationSupportDstu3.java
similarity index 78%
rename from hapi-fhir-cli/hapi-fhir-cli-app/src/main/java/ca/uhn/fhir/cli/LoadingValidationSupportDstu21.java
rename to hapi-fhir-cli/hapi-fhir-cli-app/src/main/java/ca/uhn/fhir/cli/LoadingValidationSupportDstu3.java
index 07109930b51..a4a5465f180 100644
--- a/hapi-fhir-cli/hapi-fhir-cli-app/src/main/java/ca/uhn/fhir/cli/LoadingValidationSupportDstu21.java
+++ b/hapi-fhir-cli/hapi-fhir-cli-app/src/main/java/ca/uhn/fhir/cli/LoadingValidationSupportDstu3.java
@@ -1,9 +1,9 @@
package ca.uhn.fhir.cli;
-import org.hl7.fhir.dstu21.hapi.validation.IValidationSupport;
-import org.hl7.fhir.dstu21.model.ValueSet;
-import org.hl7.fhir.dstu21.model.ValueSet.ConceptSetComponent;
-import org.hl7.fhir.dstu21.model.ValueSet.ValueSetExpansionComponent;
+import org.hl7.fhir.dstu3.hapi.validation.IValidationSupport;
+import org.hl7.fhir.dstu3.model.ValueSet;
+import org.hl7.fhir.dstu3.model.ValueSet.ConceptSetComponent;
+import org.hl7.fhir.dstu3.model.ValueSet.ValueSetExpansionComponent;
import org.hl7.fhir.instance.model.api.IBaseResource;
import ca.uhn.fhir.context.FhirContext;
@@ -11,11 +11,11 @@ import ca.uhn.fhir.rest.client.IGenericClient;
import ca.uhn.fhir.rest.client.ServerValidationModeEnum;
import ca.uhn.fhir.rest.server.exceptions.BaseServerResponseException;
-public class LoadingValidationSupportDstu21 implements IValidationSupport {
+public class LoadingValidationSupportDstu3 implements IValidationSupport {
- private static FhirContext myCtx = FhirContext.forDstu2_1();
+ private static FhirContext myCtx = FhirContext.forDstu3();
- private static final org.slf4j.Logger ourLog = org.slf4j.LoggerFactory.getLogger(LoadingValidationSupportDstu21.class);
+ private static final org.slf4j.Logger ourLog = org.slf4j.LoggerFactory.getLogger(LoadingValidationSupportDstu3.class);
@Override
public ValueSetExpansionComponent expandValueSet(FhirContext theContext, ConceptSetComponent theInclude) {
diff --git a/hapi-fhir-cli/hapi-fhir-cli-app/src/main/java/ca/uhn/fhir/cli/RunServerCommand.java b/hapi-fhir-cli/hapi-fhir-cli-app/src/main/java/ca/uhn/fhir/cli/RunServerCommand.java
index 9bed6f5f878..c3da85baec9 100644
--- a/hapi-fhir-cli/hapi-fhir-cli-app/src/main/java/ca/uhn/fhir/cli/RunServerCommand.java
+++ b/hapi-fhir-cli/hapi-fhir-cli-app/src/main/java/ca/uhn/fhir/cli/RunServerCommand.java
@@ -6,7 +6,6 @@ import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
-import java.util.EventListener;
import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;
@@ -16,7 +15,6 @@ import org.apache.commons.cli.Options;
import org.apache.commons.cli.ParseException;
import org.apache.commons.io.IOUtils;
import org.eclipse.jetty.server.Server;
-import org.eclipse.jetty.server.handler.ContextHandler;
import org.eclipse.jetty.webapp.WebAppContext;
import org.springframework.web.context.ContextLoader;
import org.springframework.web.context.ContextLoaderListener;
@@ -24,7 +22,7 @@ import org.springframework.web.context.support.AnnotationConfigWebApplicationCon
import ca.uhn.fhir.jpa.demo.ContextHolder;
import ca.uhn.fhir.jpa.demo.FhirServerConfig;
-import ca.uhn.fhir.jpa.demo.FhirServerConfigDstu21;
+import ca.uhn.fhir.jpa.demo.FhirServerConfigDstu3;
public class RunServerCommand extends BaseCommand {
@@ -95,8 +93,8 @@ public class RunServerCommand extends BaseCommand {
case DSTU2:
theSce.getServletContext().setInitParameter(ContextLoader.CONFIG_LOCATION_PARAM, FhirServerConfig.class.getName());
break;
- case DSTU2_1:
- theSce.getServletContext().setInitParameter(ContextLoader.CONFIG_LOCATION_PARAM, FhirServerConfigDstu21.class.getName());
+ case DSTU3:
+ theSce.getServletContext().setInitParameter(ContextLoader.CONFIG_LOCATION_PARAM, FhirServerConfigDstu3.class.getName());
break;
}
cll.contextInitialized(theSce);
diff --git a/hapi-fhir-cli/hapi-fhir-cli-app/src/main/java/ca/uhn/fhir/cli/ValidateCommand.java b/hapi-fhir-cli/hapi-fhir-cli-app/src/main/java/ca/uhn/fhir/cli/ValidateCommand.java
index 5a5cbe99557..3c57254e569 100644
--- a/hapi-fhir-cli/hapi-fhir-cli-app/src/main/java/ca/uhn/fhir/cli/ValidateCommand.java
+++ b/hapi-fhir-cli/hapi-fhir-cli-app/src/main/java/ca/uhn/fhir/cli/ValidateCommand.java
@@ -20,10 +20,10 @@ import org.apache.commons.cli.ParseException;
import org.apache.commons.io.IOUtils;
import org.apache.commons.lang3.text.WordUtils;
import org.fusesource.jansi.Ansi.Color;
-import org.hl7.fhir.dstu21.hapi.validation.DefaultProfileValidationSupport;
-import org.hl7.fhir.dstu21.hapi.validation.FhirInstanceValidator;
-import org.hl7.fhir.dstu21.hapi.validation.ValidationSupportChain;
-import org.hl7.fhir.dstu21.model.StructureDefinition;
+import org.hl7.fhir.dstu3.hapi.validation.DefaultProfileValidationSupport;
+import org.hl7.fhir.dstu3.hapi.validation.FhirInstanceValidator;
+import org.hl7.fhir.dstu3.hapi.validation.ValidationSupportChain;
+import org.hl7.fhir.dstu3.model.StructureDefinition;
import org.hl7.fhir.instance.model.api.IBaseResource;
import com.phloc.commons.io.file.FileUtils;
@@ -127,7 +127,7 @@ public class ValidateCommand extends BaseCommand {
instanceValidator.setValidationSupport(validationSupport);
break;
}
- case DSTU2_1: {
+ case DSTU3: {
FhirInstanceValidator instanceValidator = new FhirInstanceValidator();
val.registerValidatorModule(instanceValidator);
ValidationSupportChain validationSupport = new ValidationSupportChain(new DefaultProfileValidationSupport());
@@ -135,7 +135,7 @@ public class ValidateCommand extends BaseCommand {
instanceValidator.setStructureDefintion((StructureDefinition) localProfileResource);
}
if (theCommandLine.hasOption("r")) {
- validationSupport.addValidationSupport(new LoadingValidationSupportDstu21());
+ validationSupport.addValidationSupport(new LoadingValidationSupportDstu3());
}
instanceValidator.setValidationSupport(validationSupport);
break;
diff --git a/hapi-fhir-cli/hapi-fhir-cli-jpaserver/src/main/java/ca/uhn/fhir/jpa/demo/ContextHolder.java b/hapi-fhir-cli/hapi-fhir-cli-jpaserver/src/main/java/ca/uhn/fhir/jpa/demo/ContextHolder.java
index d9613f68f1a..c07ae37f57b 100644
--- a/hapi-fhir-cli/hapi-fhir-cli-jpaserver/src/main/java/ca/uhn/fhir/jpa/demo/ContextHolder.java
+++ b/hapi-fhir-cli/hapi-fhir-cli-jpaserver/src/main/java/ca/uhn/fhir/jpa/demo/ContextHolder.java
@@ -20,8 +20,8 @@ public class ContextHolder {
case DSTU2:
ourPath = "/baseDstu2/";
break;
- case DSTU2_1:
- ourPath = "/baseDstu2.1/";
+ case DSTU3:
+ ourPath = "/baseDstu3/";
break;
default:
throw new ParseException("FHIR version not supported by this command: " + ContextHolder.getCtx().getVersion().getVersion());
diff --git a/hapi-fhir-cli/hapi-fhir-cli-jpaserver/src/main/java/ca/uhn/fhir/jpa/demo/FhirServerConfigDstu21.java b/hapi-fhir-cli/hapi-fhir-cli-jpaserver/src/main/java/ca/uhn/fhir/jpa/demo/FhirServerConfigDstu3.java
similarity index 94%
rename from hapi-fhir-cli/hapi-fhir-cli-jpaserver/src/main/java/ca/uhn/fhir/jpa/demo/FhirServerConfigDstu21.java
rename to hapi-fhir-cli/hapi-fhir-cli-jpaserver/src/main/java/ca/uhn/fhir/jpa/demo/FhirServerConfigDstu3.java
index 0ba42d8f4cf..cc3fb3679b1 100644
--- a/hapi-fhir-cli/hapi-fhir-cli-jpaserver/src/main/java/ca/uhn/fhir/jpa/demo/FhirServerConfigDstu21.java
+++ b/hapi-fhir-cli/hapi-fhir-cli-jpaserver/src/main/java/ca/uhn/fhir/jpa/demo/FhirServerConfigDstu3.java
@@ -15,23 +15,23 @@ import org.springframework.orm.jpa.JpaTransactionManager;
import org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean;
import org.springframework.transaction.annotation.EnableTransactionManagement;
-import ca.uhn.fhir.jpa.config.BaseJavaConfigDstu21;
+import ca.uhn.fhir.jpa.config.BaseJavaConfigDstu3;
import ca.uhn.fhir.jpa.dao.DaoConfig;
-import ca.uhn.fhir.jpa.util.SubscriptionsRequireManualActivationInterceptorDstu21;
+import ca.uhn.fhir.jpa.util.SubscriptionsRequireManualActivationInterceptorDstu3;
import ca.uhn.fhir.rest.server.interceptor.IServerInterceptor;
import ca.uhn.fhir.rest.server.interceptor.LoggingInterceptor;
import ca.uhn.fhir.rest.server.interceptor.ResponseHighlighterInterceptor;
/**
* This class isn't used by default by the example, but
- * you can use it as a config if you want to support DSTU2.1
+ * you can use it as a config if you want to support DSTU3
* instead of DSTU2 in your server.
*
* See https://github.com/jamesagnew/hapi-fhir/issues/278
*/
@Configuration
@EnableTransactionManagement()
-public class FhirServerConfigDstu21 extends BaseJavaConfigDstu21 {
+public class FhirServerConfigDstu3 extends BaseJavaConfigDstu3 {
/**
* Configure FHIR properties around the the JPA server via this bean
@@ -115,7 +115,7 @@ public class FhirServerConfigDstu21 extends BaseJavaConfigDstu21 {
@Bean(autowire = Autowire.BY_TYPE)
public IServerInterceptor subscriptionSecurityInterceptor() {
- SubscriptionsRequireManualActivationInterceptorDstu21 retVal = new SubscriptionsRequireManualActivationInterceptorDstu21();
+ SubscriptionsRequireManualActivationInterceptorDstu3 retVal = new SubscriptionsRequireManualActivationInterceptorDstu3();
return retVal;
}
diff --git a/hapi-fhir-cli/hapi-fhir-cli-jpaserver/src/main/java/ca/uhn/fhir/jpa/demo/JpaServerDemo.java b/hapi-fhir-cli/hapi-fhir-cli-jpaserver/src/main/java/ca/uhn/fhir/jpa/demo/JpaServerDemo.java
index 149fdb88bf9..d13c143a3a6 100644
--- a/hapi-fhir-cli/hapi-fhir-cli-jpaserver/src/main/java/ca/uhn/fhir/jpa/demo/JpaServerDemo.java
+++ b/hapi-fhir-cli/hapi-fhir-cli-jpaserver/src/main/java/ca/uhn/fhir/jpa/demo/JpaServerDemo.java
@@ -5,7 +5,7 @@ import java.util.List;
import javax.servlet.ServletException;
-import org.hl7.fhir.dstu21.model.Meta;
+import org.hl7.fhir.dstu3.model.Meta;
import org.springframework.web.context.ContextLoaderListener;
import org.springframework.web.context.WebApplicationContext;
@@ -15,10 +15,10 @@ import ca.uhn.fhir.jpa.dao.DaoConfig;
import ca.uhn.fhir.jpa.dao.IFhirSystemDao;
import ca.uhn.fhir.jpa.provider.JpaConformanceProviderDstu1;
import ca.uhn.fhir.jpa.provider.JpaConformanceProviderDstu2;
-import ca.uhn.fhir.jpa.provider.JpaConformanceProviderDstu21;
import ca.uhn.fhir.jpa.provider.JpaSystemProviderDstu1;
import ca.uhn.fhir.jpa.provider.JpaSystemProviderDstu2;
-import ca.uhn.fhir.jpa.provider.JpaSystemProviderDstu21;
+import ca.uhn.fhir.jpa.provider.dstu3.JpaConformanceProviderDstu3;
+import ca.uhn.fhir.jpa.provider.dstu3.JpaSystemProviderDstu3;
import ca.uhn.fhir.model.api.IResource;
import ca.uhn.fhir.model.dstu2.composite.MetaDt;
import ca.uhn.fhir.model.dstu2.resource.Bundle;
@@ -60,8 +60,8 @@ public class JpaServerDemo extends RestfulServer {
case DSTU2:
resourceProviderBeanName = "myResourceProvidersDstu2";
break;
- case DSTU2_1:
- resourceProviderBeanName = "myResourceProvidersDstu21";
+ case DSTU3:
+ resourceProviderBeanName = "myResourceProvidersDstu3";
break;
default:
throw new IllegalStateException();
@@ -79,8 +79,8 @@ public class JpaServerDemo extends RestfulServer {
systemProvider = myAppCtx.getBean("mySystemProviderDstu1", JpaSystemProviderDstu1.class);
} else if (fhirVersion == FhirVersionEnum.DSTU2) {
systemProvider = myAppCtx.getBean("mySystemProviderDstu2", JpaSystemProviderDstu2.class);
- } else if (fhirVersion == FhirVersionEnum.DSTU2_1) {
- systemProvider = myAppCtx.getBean("mySystemProviderDstu21", JpaSystemProviderDstu21.class);
+ } else if (fhirVersion == FhirVersionEnum.DSTU3) {
+ systemProvider = myAppCtx.getBean("mySystemProviderDstu3", JpaSystemProviderDstu3.class);
} else {
throw new IllegalStateException();
}
@@ -103,10 +103,10 @@ public class JpaServerDemo extends RestfulServer {
myAppCtx.getBean(DaoConfig.class));
confProvider.setImplementationDescription("Example Server");
setServerConformanceProvider(confProvider);
- } else if (fhirVersion == FhirVersionEnum.DSTU2_1) {
- IFhirSystemDao systemDao = myAppCtx
- .getBean("mySystemDaoDstu21", IFhirSystemDao.class);
- JpaConformanceProviderDstu21 confProvider = new JpaConformanceProviderDstu21(this, systemDao,
+ } else if (fhirVersion == FhirVersionEnum.DSTU3) {
+ IFhirSystemDao systemDao = myAppCtx
+ .getBean("mySystemDaoDstu3", IFhirSystemDao.class);
+ JpaConformanceProviderDstu3 confProvider = new JpaConformanceProviderDstu3(this, systemDao,
myAppCtx.getBean(DaoConfig.class));
confProvider.setImplementationDescription("Example Server");
setServerConformanceProvider(confProvider);
diff --git a/hapi-fhir-cobertura/pom.xml b/hapi-fhir-cobertura/pom.xml
index ab550900651..fbfcb66d5c2 100644
--- a/hapi-fhir-cobertura/pom.xml
+++ b/hapi-fhir-cobertura/pom.xml
@@ -33,7 +33,7 @@
ca.uhn.hapi.fhir
- hapi-fhir-structures-dstu2.1
+ hapi-fhir-structures-dstu31.4-SNAPSHOT
@@ -48,7 +48,7 @@
ca.uhn.hapi.fhir
- hapi-fhir-validation-resources-dstu2.1
+ hapi-fhir-validation-resources-dstu31.4-SNAPSHOT
@@ -284,7 +284,7 @@
-
+
@@ -354,7 +354,7 @@
../hapi-fhir-structures-hl7org-dstu2/src/test/resources
- ../hapi-fhir-structures-dstu2.1/src/test/resources
+ ../hapi-fhir-structures-dstu3/src/test/resources
diff --git a/hapi-fhir-jpaserver-base/pom.xml b/hapi-fhir-jpaserver-base/pom.xml
index 7272091c875..de0fbee1174 100644
--- a/hapi-fhir-jpaserver-base/pom.xml
+++ b/hapi-fhir-jpaserver-base/pom.xml
@@ -50,7 +50,7 @@
ca.uhn.hapi.fhir
- hapi-fhir-structures-dstu2.1
+ hapi-fhir-structures-dstu31.4-SNAPSHOT
@@ -65,7 +65,7 @@
ca.uhn.hapi.fhir
- hapi-fhir-validation-resources-dstu2.1
+ hapi-fhir-validation-resources-dstu31.4-SNAPSHOT
@@ -373,15 +373,15 @@
- build_dstu21
+ build_dstu3generate-jparest-server
- dstu21
+ dstu3ca.uhn.fhir.jpa.config
- ca.uhn.fhir.jpa.rp.dstu21
- hapi-fhir-server-resourceproviders-dstu21.xml
+ ca.uhn.fhir.jpa.rp.dstu3
+ hapi-fhir-server-resourceproviders-dstu3.xml
@@ -402,12 +402,12 @@
ca.uhn.hapi.fhir
- hapi-fhir-structures-dstu2.1
+ hapi-fhir-structures-dstu31.4-SNAPSHOTca.uhn.hapi.fhir
- hapi-fhir-validation-resources-dstu2.1
+ hapi-fhir-validation-resources-dstu31.4-SNAPSHOT
diff --git a/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/config/BaseConfig.java b/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/config/BaseConfig.java
index 1bf236fddef..ded23af9b26 100644
--- a/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/config/BaseConfig.java
+++ b/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/config/BaseConfig.java
@@ -43,41 +43,20 @@ import ca.uhn.fhir.context.FhirContext;
@EnableJpaRepositories(basePackages = "ca.uhn.fhir.jpa.dao.data")
public class BaseConfig implements SchedulingConfigurer {
- private static FhirContext ourFhirContextDstu21;
- private static FhirContext ourFhirContextDstu2;
private static FhirContext ourFhirContextDstu1;
+ private static FhirContext ourFhirContextDstu2;
private static FhirContext ourFhirContextDstu2Hl7Org;
-
- @Autowired
- protected Environment myEnv;
-
- /**
- * This lets the "@Value" fields reference properties from the properties file
- */
- @Bean
- public static PropertySourcesPlaceholderConfigurer propertySourcesPlaceholderConfigurer() {
- return new PropertySourcesPlaceholderConfigurer();
- }
+ private static FhirContext ourFhirContextDstu3;
@Resource
private ApplicationContext myAppCtx;
- @Bean(name = "myFhirContextDstu2")
- @Lazy
- public FhirContext fhirContextDstu2() {
- if (ourFhirContextDstu2 == null) {
- ourFhirContextDstu2 = FhirContext.forDstu2();
- }
- return ourFhirContextDstu2;
- }
+ @Autowired
+ protected Environment myEnv;
- @Bean(name = "myFhirContextDstu21")
- @Lazy
- public FhirContext fhirContextDstu21() {
- if (ourFhirContextDstu21 == null) {
- ourFhirContextDstu21 = FhirContext.forDstu2_1();
- }
- return ourFhirContextDstu21;
+ @Override
+ public void configureTasks(ScheduledTaskRegistrar theTaskRegistrar) {
+ theTaskRegistrar.setTaskScheduler(taskScheduler());
}
@Bean(name = "myFhirContextDstu1")
@@ -89,6 +68,15 @@ public class BaseConfig implements SchedulingConfigurer {
return ourFhirContextDstu1;
}
+ @Bean(name = "myFhirContextDstu2")
+ @Lazy
+ public FhirContext fhirContextDstu2() {
+ if (ourFhirContextDstu2 == null) {
+ ourFhirContextDstu2 = FhirContext.forDstu2();
+ }
+ return ourFhirContextDstu2;
+ }
+
@Bean(name = "myFhirContextDstu2Hl7Org")
@Lazy
public FhirContext fhirContextDstu2Hl7Org() {
@@ -98,9 +86,13 @@ public class BaseConfig implements SchedulingConfigurer {
return ourFhirContextDstu2Hl7Org;
}
- @Override
- public void configureTasks(ScheduledTaskRegistrar theTaskRegistrar) {
- theTaskRegistrar.setTaskScheduler(taskScheduler());
+ @Bean(name = "myFhirContextDstu3")
+ @Lazy
+ public FhirContext fhirContextDstu3() {
+ if (ourFhirContextDstu3 == null) {
+ ourFhirContextDstu3 = FhirContext.forDstu3();
+ }
+ return ourFhirContextDstu3;
}
@Bean
@@ -110,6 +102,14 @@ public class BaseConfig implements SchedulingConfigurer {
return retVal;
}
+ /**
+ * This lets the "@Value" fields reference properties from the properties file
+ */
+ @Bean
+ public static PropertySourcesPlaceholderConfigurer propertySourcesPlaceholderConfigurer() {
+ return new PropertySourcesPlaceholderConfigurer();
+ }
+
// @PostConstruct
// public void wireResourceDaos() {
// Map daoBeans = myAppCtx.getBeansOfType(IDao.class);
diff --git a/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/config/BaseDstu21Config.java b/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/config/dstu3/BaseDstu3Config.java
similarity index 50%
rename from hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/config/BaseDstu21Config.java
rename to hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/config/dstu3/BaseDstu3Config.java
index 3403d52c5e1..5164b95725a 100644
--- a/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/config/BaseDstu21Config.java
+++ b/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/config/dstu3/BaseDstu3Config.java
@@ -1,9 +1,9 @@
-package ca.uhn.fhir.jpa.config;
+package ca.uhn.fhir.jpa.config.dstu3;
-import org.hl7.fhir.dstu21.hapi.validation.FhirInstanceValidator;
-import org.hl7.fhir.dstu21.hapi.validation.FhirQuestionnaireResponseValidator;
-import org.hl7.fhir.dstu21.hapi.validation.IValidationSupport;
-import org.hl7.fhir.dstu21.validation.IResourceValidator.BestPracticeWarningLevel;
+import org.hl7.fhir.dstu3.hapi.validation.FhirInstanceValidator;
+import org.hl7.fhir.dstu3.hapi.validation.FhirQuestionnaireResponseValidator;
+import org.hl7.fhir.dstu3.hapi.validation.IValidationSupport;
+import org.hl7.fhir.dstu3.validation.IResourceValidator.BestPracticeWarningLevel;
/*
* #%L
@@ -33,67 +33,68 @@ import org.springframework.context.annotation.Primary;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import ca.uhn.fhir.context.FhirContext;
+import ca.uhn.fhir.jpa.config.BaseConfig;
import ca.uhn.fhir.jpa.dao.FhirSearchDao;
import ca.uhn.fhir.jpa.dao.IFhirSystemDao;
import ca.uhn.fhir.jpa.dao.ISearchDao;
-import ca.uhn.fhir.jpa.validation.JpaValidationSupportChainDstu21;
+import ca.uhn.fhir.jpa.validation.JpaValidationSupportChainDstu3;
import ca.uhn.fhir.validation.IValidatorModule;
@Configuration
@EnableTransactionManagement
-public class BaseDstu21Config extends BaseConfig {
+public class BaseDstu3Config extends BaseConfig {
@Bean
@Primary
public FhirContext defaultFhirContext() {
- return fhirContextDstu21();
+ return fhirContextDstu3();
}
- @Bean(name = "mySystemDaoDstu21", autowire = Autowire.BY_NAME)
- public IFhirSystemDao systemDaoDstu21() {
- ca.uhn.fhir.jpa.dao.FhirSystemDaoDstu21 retVal = new ca.uhn.fhir.jpa.dao.FhirSystemDaoDstu21();
+ @Bean(name = "mySystemDaoDstu3", autowire = Autowire.BY_NAME)
+ public IFhirSystemDao systemDaoDstu3() {
+ ca.uhn.fhir.jpa.dao.dstu3.FhirSystemDaoDstu3 retVal = new ca.uhn.fhir.jpa.dao.dstu3.FhirSystemDaoDstu3();
return retVal;
}
- @Bean(name = "mySystemProviderDstu21")
- public ca.uhn.fhir.jpa.provider.JpaSystemProviderDstu21 systemProviderDstu21() {
- ca.uhn.fhir.jpa.provider.JpaSystemProviderDstu21 retVal = new ca.uhn.fhir.jpa.provider.JpaSystemProviderDstu21();
- retVal.setDao(systemDaoDstu21());
+ @Bean(name = "mySystemProviderDstu3")
+ public ca.uhn.fhir.jpa.provider.dstu3.JpaSystemProviderDstu3 systemProviderDstu3() {
+ ca.uhn.fhir.jpa.provider.dstu3.JpaSystemProviderDstu3 retVal = new ca.uhn.fhir.jpa.provider.dstu3.JpaSystemProviderDstu3();
+ retVal.setDao(systemDaoDstu3());
return retVal;
}
- @Bean(name = "myJpaValidationSupportDstu21", autowire = Autowire.BY_NAME)
- public ca.uhn.fhir.jpa.dao.IJpaValidationSupportDstu21 jpaValidationSupportDstu21() {
- ca.uhn.fhir.jpa.dao.JpaValidationSupportDstu21 retVal = new ca.uhn.fhir.jpa.dao.JpaValidationSupportDstu21();
+ @Bean(name = "myJpaValidationSupportDstu3", autowire = Autowire.BY_NAME)
+ public ca.uhn.fhir.jpa.dao.dstu3.IJpaValidationSupportDstu3 jpaValidationSupportDstu3() {
+ ca.uhn.fhir.jpa.dao.dstu3.JpaValidationSupportDstu3 retVal = new ca.uhn.fhir.jpa.dao.dstu3.JpaValidationSupportDstu3();
return retVal;
}
@Bean(autowire = Autowire.BY_TYPE)
- public ISearchDao searchDaoDstu21() {
+ public ISearchDao searchDaoDstu3() {
FhirSearchDao searchDao = new FhirSearchDao();
return searchDao;
}
- @Bean(name="myInstanceValidatorDstu21")
+ @Bean(name="myInstanceValidatorDstu3")
@Lazy
- public IValidatorModule instanceValidatorDstu21() {
+ public IValidatorModule instanceValidatorDstu3() {
FhirInstanceValidator val = new FhirInstanceValidator();
val.setBestPracticeWarningLevel(BestPracticeWarningLevel.Warning);
- val.setValidationSupport(validationSupportChainDstu21());
+ val.setValidationSupport(validationSupportChainDstu3());
return val;
}
- @Bean(name="myQuestionnaireResponseValidatorDstu21")
+ @Bean(name="myQuestionnaireResponseValidatorDstu3")
@Lazy
- public IValidatorModule questionnaireResponseValidatorDstu21() {
+ public IValidatorModule questionnaireResponseValidatorDstu3() {
FhirQuestionnaireResponseValidator module = new FhirQuestionnaireResponseValidator();
- module.setValidationSupport(validationSupportChainDstu21());
+ module.setValidationSupport(validationSupportChainDstu3());
return module;
}
- @Bean(autowire=Autowire.BY_NAME, name="myJpaValidationSupportChainDstu21")
- public IValidationSupport validationSupportChainDstu21() {
- return new JpaValidationSupportChainDstu21();
+ @Bean(autowire=Autowire.BY_NAME, name="myJpaValidationSupportChainDstu3")
+ public IValidationSupport validationSupportChainDstu3() {
+ return new JpaValidationSupportChainDstu3();
}
}
diff --git a/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/config/WebsocketDstu21Config.java b/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/config/dstu3/WebsocketDstu3Config.java
similarity index 91%
rename from hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/config/WebsocketDstu21Config.java
rename to hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/config/dstu3/WebsocketDstu3Config.java
index 4e1978bf509..4dda7fd2c90 100644
--- a/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/config/WebsocketDstu21Config.java
+++ b/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/config/dstu3/WebsocketDstu3Config.java
@@ -1,4 +1,4 @@
-package ca.uhn.fhir.jpa.config;
+package ca.uhn.fhir.jpa.config.dstu3;
/*
* #%L
@@ -31,20 +31,20 @@ import org.springframework.web.socket.config.annotation.WebSocketConfigurer;
import org.springframework.web.socket.config.annotation.WebSocketHandlerRegistry;
import org.springframework.web.socket.handler.PerConnectionWebSocketHandler;
-import ca.uhn.fhir.jpa.subscription.SubscriptionWebsocketHandlerDstu21;
+import ca.uhn.fhir.jpa.subscription.SubscriptionWebsocketHandlerDstu3;
@Configuration
@EnableWebSocket()
-public class WebsocketDstu21Config implements WebSocketConfigurer {
+public class WebsocketDstu3Config implements WebSocketConfigurer {
@Override
public void registerWebSocketHandlers(WebSocketHandlerRegistry theRegistry) {
- theRegistry.addHandler(subscriptionWebSocketHandler(), "/websocket/dstu2.1");
+ theRegistry.addHandler(subscriptionWebSocketHandler(), "/websocket/dstu3");
}
@Bean(autowire = Autowire.BY_TYPE)
public WebSocketHandler subscriptionWebSocketHandler() {
- PerConnectionWebSocketHandler retVal = new PerConnectionWebSocketHandler(SubscriptionWebsocketHandlerDstu21.class);
+ PerConnectionWebSocketHandler retVal = new PerConnectionWebSocketHandler(SubscriptionWebsocketHandlerDstu3.class);
return retVal;
}
@@ -61,7 +61,7 @@ public class WebsocketDstu21Config implements WebSocketConfigurer {
getScheduledThreadPoolExecutor().setContinueExistingPeriodicTasksAfterShutdownPolicy(false);
}
};
- retVal.setThreadNamePrefix("ws-dstu21-");
+ retVal.setThreadNamePrefix("ws-dstu3-");
retVal.setPoolSize(5);
return retVal;
diff --git a/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/BaseHapiFhirDao.java b/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/BaseHapiFhirDao.java
index 66bb81ffa17..5224012fed5 100644
--- a/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/BaseHapiFhirDao.java
+++ b/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/BaseHapiFhirDao.java
@@ -53,9 +53,9 @@ import org.apache.commons.lang3.NotImplementedException;
import org.apache.commons.lang3.StringUtils;
import org.apache.http.NameValuePair;
import org.apache.http.client.utils.URLEncodedUtils;
-import org.hl7.fhir.dstu21.model.Bundle.HTTPVerb;
-import org.hl7.fhir.dstu21.model.IdType;
-import org.hl7.fhir.dstu21.model.StringType;
+import org.hl7.fhir.dstu3.model.Bundle.HTTPVerb;
+import org.hl7.fhir.dstu3.model.IdType;
+import org.hl7.fhir.dstu3.model.StringType;
import org.hl7.fhir.instance.model.api.IAnyResource;
import org.hl7.fhir.instance.model.api.IBaseCoding;
import org.hl7.fhir.instance.model.api.IBaseOperationOutcome;
@@ -82,6 +82,7 @@ import ca.uhn.fhir.context.FhirVersionEnum;
import ca.uhn.fhir.context.RuntimeChildResourceDefinition;
import ca.uhn.fhir.context.RuntimeResourceDefinition;
import ca.uhn.fhir.context.RuntimeSearchParam;
+import ca.uhn.fhir.jpa.dao.dstu3.SearchParamExtractorDstu3;
import ca.uhn.fhir.jpa.entity.BaseHasResource;
import ca.uhn.fhir.jpa.entity.BaseResourceIndexedSearchParam;
import ca.uhn.fhir.jpa.entity.BaseTag;
@@ -1113,8 +1114,8 @@ public abstract class BaseHapiFhirDao implements IDao {
case DSTU2:
mySearchParamExtractor = new SearchParamExtractorDstu2(theContext);
break;
- case DSTU2_1:
- mySearchParamExtractor = new SearchParamExtractorDstu21(theContext);
+ case DSTU3:
+ mySearchParamExtractor = new SearchParamExtractorDstu3(theContext);
break;
case DSTU2_HL7ORG:
throw new IllegalStateException("Don't know how to handle version: " + myContext.getVersion().getVersion());
@@ -1681,7 +1682,7 @@ public abstract class BaseHapiFhirDao implements IDao {
}
}
- static String normalizeString(String theString) {
+ public static String normalizeString(String theString) {
char[] out = new char[theString.length()];
theString = Normalizer.normalize(theString, Normalizer.Form.NFD);
int j = 0;
diff --git a/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/BaseHapiFhirResourceDao.java b/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/BaseHapiFhirResourceDao.java
index 1c400c70515..482b4001d7f 100644
--- a/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/BaseHapiFhirResourceDao.java
+++ b/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/BaseHapiFhirResourceDao.java
@@ -37,7 +37,7 @@ import javax.persistence.NoResultException;
import javax.persistence.TemporalType;
import javax.persistence.TypedQuery;
-import org.hl7.fhir.dstu21.model.IdType;
+import org.hl7.fhir.dstu3.model.IdType;
import org.hl7.fhir.instance.model.api.IAnyResource;
import org.hl7.fhir.instance.model.api.IBaseCoding;
import org.hl7.fhir.instance.model.api.IBaseMetaType;
diff --git a/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/ISearchParamExtractor.java b/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/ISearchParamExtractor.java
index 3f6a2311a19..72c1108eaec 100644
--- a/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/ISearchParamExtractor.java
+++ b/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/ISearchParamExtractor.java
@@ -33,7 +33,7 @@ import ca.uhn.fhir.jpa.entity.ResourceIndexedSearchParamString;
import ca.uhn.fhir.jpa.entity.ResourceIndexedSearchParamUri;
import ca.uhn.fhir.jpa.entity.ResourceTable;
-interface ISearchParamExtractor {
+public interface ISearchParamExtractor {
public abstract Set extractSearchParamCoords(ResourceTable theEntity, IBaseResource theResource);
diff --git a/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/FhirResourceDaoBundleDstu21.java b/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/dstu3/FhirResourceDaoBundleDstu3.java
similarity index 83%
rename from hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/FhirResourceDaoBundleDstu21.java
rename to hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/dstu3/FhirResourceDaoBundleDstu3.java
index c641ef22dd5..67286c0b6fb 100644
--- a/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/FhirResourceDaoBundleDstu21.java
+++ b/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/dstu3/FhirResourceDaoBundleDstu3.java
@@ -1,8 +1,8 @@
-package ca.uhn.fhir.jpa.dao;
+package ca.uhn.fhir.jpa.dao.dstu3;
-import org.hl7.fhir.dstu21.model.Bundle;
-import org.hl7.fhir.dstu21.model.Bundle.BundleEntryComponent;
-import org.hl7.fhir.dstu21.model.Bundle.BundleType;
+import org.hl7.fhir.dstu3.model.Bundle;
+import org.hl7.fhir.dstu3.model.Bundle.BundleEntryComponent;
+import org.hl7.fhir.dstu3.model.Bundle.BundleType;
/*
* #%L
@@ -26,7 +26,7 @@ import org.hl7.fhir.dstu21.model.Bundle.BundleType;
import ca.uhn.fhir.rest.server.exceptions.UnprocessableEntityException;
-public class FhirResourceDaoBundleDstu21 extends FhirResourceDaoDstu21 {
+public class FhirResourceDaoBundleDstu3 extends FhirResourceDaoDstu3 {
@Override
protected void preProcessResourceForStorage(Bundle theResource) {
diff --git a/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/FhirResourceDaoDstu21.java b/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/dstu3/FhirResourceDaoDstu3.java
similarity index 90%
rename from hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/FhirResourceDaoDstu21.java
rename to hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/dstu3/FhirResourceDaoDstu3.java
index 2ddcafc50aa..c9705caca4b 100644
--- a/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/FhirResourceDaoDstu21.java
+++ b/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/dstu3/FhirResourceDaoDstu3.java
@@ -1,4 +1,4 @@
-package ca.uhn.fhir.jpa.dao;
+package ca.uhn.fhir.jpa.dao.dstu3;
/*
* #%L
@@ -26,11 +26,11 @@ import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
-import org.hl7.fhir.dstu21.exceptions.FHIRException;
-import org.hl7.fhir.dstu21.model.IdType;
-import org.hl7.fhir.dstu21.model.OperationOutcome;
-import org.hl7.fhir.dstu21.model.OperationOutcome.IssueSeverity;
-import org.hl7.fhir.dstu21.model.OperationOutcome.OperationOutcomeIssueComponent;
+import org.hl7.fhir.dstu3.exceptions.FHIRException;
+import org.hl7.fhir.dstu3.model.IdType;
+import org.hl7.fhir.dstu3.model.OperationOutcome;
+import org.hl7.fhir.dstu3.model.OperationOutcome.IssueSeverity;
+import org.hl7.fhir.dstu3.model.OperationOutcome.OperationOutcomeIssueComponent;
import org.hl7.fhir.instance.model.OperationOutcome.IssueType;
import org.hl7.fhir.instance.model.api.IAnyResource;
import org.hl7.fhir.instance.model.api.IBaseOperationOutcome;
@@ -41,6 +41,7 @@ import org.springframework.beans.factory.annotation.Qualifier;
import ca.uhn.fhir.context.RuntimeResourceDefinition;
import ca.uhn.fhir.context.RuntimeSearchParam;
+import ca.uhn.fhir.jpa.dao.BaseHapiFhirResourceDao;
import ca.uhn.fhir.jpa.entity.ResourceTable;
import ca.uhn.fhir.jpa.util.DeleteConflict;
import ca.uhn.fhir.model.api.Bundle;
@@ -60,12 +61,12 @@ import ca.uhn.fhir.validation.IValidationContext;
import ca.uhn.fhir.validation.IValidatorModule;
import ca.uhn.fhir.validation.ValidationResult;
-public class FhirResourceDaoDstu21 extends BaseHapiFhirResourceDao {
+public class FhirResourceDaoDstu3 extends BaseHapiFhirResourceDao {
- private static final org.slf4j.Logger ourLog = org.slf4j.LoggerFactory.getLogger(FhirResourceDaoDstu21.class);
+ private static final org.slf4j.Logger ourLog = org.slf4j.LoggerFactory.getLogger(FhirResourceDaoDstu3.class);
@Autowired()
- @Qualifier("myInstanceValidatorDstu21")
+ @Qualifier("myInstanceValidatorDstu3")
private IValidatorModule myInstanceValidator;
@Override
@@ -75,7 +76,7 @@ public class FhirResourceDaoDstu21 extends BaseHapiFhirR
issue.getSeverityElement().setValueAsString(theSeverity);
issue.setDiagnostics(theMessage);
try {
- issue.setCode(org.hl7.fhir.dstu21.model.OperationOutcome.IssueType.fromCode(theCode));
+ issue.setCode(org.hl7.fhir.dstu3.model.OperationOutcome.IssueType.fromCode(theCode));
} catch (FHIRException e) {
ourLog.error("Unknown code: {}", theCode);
}
diff --git a/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/FhirResourceDaoEncounterDstu21.java b/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/dstu3/FhirResourceDaoEncounterDstu3.java
similarity index 88%
rename from hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/FhirResourceDaoEncounterDstu21.java
rename to hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/dstu3/FhirResourceDaoEncounterDstu3.java
index 058ea87c234..5c0529d34b9 100644
--- a/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/FhirResourceDaoEncounterDstu21.java
+++ b/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/dstu3/FhirResourceDaoEncounterDstu3.java
@@ -1,4 +1,4 @@
-package ca.uhn.fhir.jpa.dao;
+package ca.uhn.fhir.jpa.dao.dstu3;
/*
* #%L
@@ -24,10 +24,12 @@ import java.util.Collections;
import javax.servlet.http.HttpServletRequest;
-import org.hl7.fhir.dstu21.model.Encounter;
+import org.hl7.fhir.dstu3.model.Encounter;
import org.hl7.fhir.instance.model.api.IIdType;
import org.hl7.fhir.instance.model.api.IPrimitiveType;
+import ca.uhn.fhir.jpa.dao.IFhirResourceDaoEncounter;
+import ca.uhn.fhir.jpa.dao.SearchParameterMap;
import ca.uhn.fhir.jpa.dao.SearchParameterMap.EverythingModeEnum;
import ca.uhn.fhir.model.api.IResource;
import ca.uhn.fhir.rest.api.SortSpec;
@@ -35,7 +37,7 @@ import ca.uhn.fhir.rest.param.DateRangeParam;
import ca.uhn.fhir.rest.param.StringParam;
import ca.uhn.fhir.rest.server.IBundleProvider;
-public class FhirResourceDaoEncounterDstu21 extends FhirResourceDaoDstu21implements IFhirResourceDaoEncounter {
+public class FhirResourceDaoEncounterDstu3 extends FhirResourceDaoDstu3implements IFhirResourceDaoEncounter {
@Override
public IBundleProvider encounterInstanceEverything(HttpServletRequest theServletRequest, IIdType theId, IPrimitiveType theCount, DateRangeParam theLastUpdated, SortSpec theSort) {
diff --git a/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/FhirResourceDaoPatientDstu21.java b/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/dstu3/FhirResourceDaoPatientDstu3.java
similarity index 91%
rename from hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/FhirResourceDaoPatientDstu21.java
rename to hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/dstu3/FhirResourceDaoPatientDstu3.java
index aa6652e41cd..de2e65dfbae 100644
--- a/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/FhirResourceDaoPatientDstu21.java
+++ b/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/dstu3/FhirResourceDaoPatientDstu3.java
@@ -1,4 +1,4 @@
-package ca.uhn.fhir.jpa.dao;
+package ca.uhn.fhir.jpa.dao.dstu3;
/*
* #%L
@@ -24,10 +24,13 @@ import java.util.Collections;
import javax.servlet.http.HttpServletRequest;
-import org.hl7.fhir.dstu21.model.Patient;
+import org.hl7.fhir.dstu3.model.Patient;
import org.hl7.fhir.instance.model.api.IIdType;
import org.hl7.fhir.instance.model.api.IPrimitiveType;
+import ca.uhn.fhir.jpa.dao.IFhirResourceDaoPatient;
+import ca.uhn.fhir.jpa.dao.SearchBuilder;
+import ca.uhn.fhir.jpa.dao.SearchParameterMap;
import ca.uhn.fhir.jpa.dao.SearchParameterMap.EverythingModeEnum;
import ca.uhn.fhir.model.api.IResource;
import ca.uhn.fhir.rest.api.RestOperationTypeEnum;
@@ -39,7 +42,7 @@ import ca.uhn.fhir.rest.server.Constants;
import ca.uhn.fhir.rest.server.IBundleProvider;
import ca.uhn.fhir.rest.server.interceptor.IServerInterceptor.ActionRequestDetails;
-public class FhirResourceDaoPatientDstu21 extends FhirResourceDaoDstu21implements IFhirResourceDaoPatient {
+public class FhirResourceDaoPatientDstu3 extends FhirResourceDaoDstu3implements IFhirResourceDaoPatient {
private IBundleProvider doEverythingOperation(IIdType theId, IPrimitiveType theCount, DateRangeParam theLastUpdated, SortSpec theSort, StringAndListParam theContent, StringAndListParam theNarrative) {
SearchParameterMap paramMap = new SearchParameterMap();
diff --git a/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/FhirResourceDaoQuestionnaireResponseDstu21.java b/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/dstu3/FhirResourceDaoQuestionnaireResponseDstu3.java
similarity index 88%
rename from hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/FhirResourceDaoQuestionnaireResponseDstu21.java
rename to hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/dstu3/FhirResourceDaoQuestionnaireResponseDstu3.java
index 37c4099d438..0dccafd8a2f 100644
--- a/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/FhirResourceDaoQuestionnaireResponseDstu21.java
+++ b/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/dstu3/FhirResourceDaoQuestionnaireResponseDstu3.java
@@ -1,4 +1,4 @@
-package ca.uhn.fhir.jpa.dao;
+package ca.uhn.fhir.jpa.dao.dstu3;
/*
* #%L
@@ -22,16 +22,17 @@ package ca.uhn.fhir.jpa.dao;
import javax.annotation.PostConstruct;
-import org.hl7.fhir.dstu21.model.OperationOutcome;
-import org.hl7.fhir.dstu21.model.Questionnaire;
-import org.hl7.fhir.dstu21.model.QuestionnaireResponse;
-import org.hl7.fhir.dstu21.model.ValueSet;
+import org.hl7.fhir.dstu3.model.OperationOutcome;
+import org.hl7.fhir.dstu3.model.Questionnaire;
+import org.hl7.fhir.dstu3.model.QuestionnaireResponse;
+import org.hl7.fhir.dstu3.model.ValueSet;
import org.hl7.fhir.instance.model.api.IBaseOperationOutcome;
import org.hl7.fhir.instance.model.api.IBaseResource;
import org.hl7.fhir.instance.model.api.IIdType;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
+import ca.uhn.fhir.jpa.dao.IFhirResourceDao;
import ca.uhn.fhir.jpa.entity.ResourceTable;
import ca.uhn.fhir.rest.server.exceptions.ResourceNotFoundException;
import ca.uhn.fhir.rest.server.exceptions.UnprocessableEntityException;
@@ -40,13 +41,13 @@ import ca.uhn.fhir.validation.IResourceLoader;
import ca.uhn.fhir.validation.IValidatorModule;
import ca.uhn.fhir.validation.ValidationResult;
-public class FhirResourceDaoQuestionnaireResponseDstu21 extends FhirResourceDaoDstu21 {
+public class FhirResourceDaoQuestionnaireResponseDstu3 extends FhirResourceDaoDstu3 {
private Boolean myValidateResponses;
@Autowired
- @Qualifier("myQuestionnaireResponseValidatorDstu21")
- private IValidatorModule myQuestionnaireResponseValidatorDstu21;
+ @Qualifier("myQuestionnaireResponseValidatorDstu3")
+ private IValidatorModule myQuestionnaireResponseValidatorDstu3;
/**
@@ -77,7 +78,7 @@ public class FhirResourceDaoQuestionnaireResponseDstu21 extends FhirResourceDaoD
val.setValidateAgainstStandardSchema(false);
val.setValidateAgainstStandardSchematron(false);
- val.registerValidatorModule(myQuestionnaireResponseValidatorDstu21);
+ val.registerValidatorModule(myQuestionnaireResponseValidatorDstu3);
ValidationResult result = val.validateWithResult(getContext().newJsonParser().parseResource(getContext().newJsonParser().encodeResourceToString(theResource)));
if (!result.isSuccessful()) {
diff --git a/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/FhirResourceDaoSearchParameterDstu21.java b/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/dstu3/FhirResourceDaoSearchParameterDstu3.java
similarity index 80%
rename from hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/FhirResourceDaoSearchParameterDstu21.java
rename to hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/dstu3/FhirResourceDaoSearchParameterDstu3.java
index b21e44a68a5..24cc8493071 100644
--- a/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/FhirResourceDaoSearchParameterDstu21.java
+++ b/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/dstu3/FhirResourceDaoSearchParameterDstu3.java
@@ -1,4 +1,4 @@
-package ca.uhn.fhir.jpa.dao;
+package ca.uhn.fhir.jpa.dao.dstu3;
/*
* #%L
@@ -21,13 +21,16 @@ package ca.uhn.fhir.jpa.dao;
*/
import org.apache.commons.lang3.time.DateUtils;
-import org.hl7.fhir.dstu21.model.Bundle;
-import org.hl7.fhir.dstu21.model.Meta;
-import org.hl7.fhir.dstu21.model.SearchParameter;
+import org.hl7.fhir.dstu3.model.Bundle;
+import org.hl7.fhir.dstu3.model.Meta;
+import org.hl7.fhir.dstu3.model.SearchParameter;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
-public class FhirResourceDaoSearchParameterDstu21 extends FhirResourceDaoDstu21implements IFhirResourceDaoSearchParameter {
+import ca.uhn.fhir.jpa.dao.IFhirResourceDaoSearchParameter;
+import ca.uhn.fhir.jpa.dao.IFhirSystemDao;
+
+public class FhirResourceDaoSearchParameterDstu3 extends FhirResourceDaoDstu3implements IFhirResourceDaoSearchParameter {
@Autowired
private IFhirSystemDao mySystemDao;
diff --git a/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/FhirResourceDaoSubscriptionDstu21.java b/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/dstu3/FhirResourceDaoSubscriptionDstu3.java
similarity index 96%
rename from hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/FhirResourceDaoSubscriptionDstu21.java
rename to hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/dstu3/FhirResourceDaoSubscriptionDstu3.java
index 3e933a34216..6d20c954c38 100644
--- a/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/FhirResourceDaoSubscriptionDstu21.java
+++ b/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/dstu3/FhirResourceDaoSubscriptionDstu3.java
@@ -1,4 +1,4 @@
-package ca.uhn.fhir.jpa.dao;
+package ca.uhn.fhir.jpa.dao.dstu3;
/*
* #%L
@@ -30,8 +30,8 @@ import java.util.List;
import javax.persistence.Query;
import org.apache.commons.lang3.time.DateUtils;
-import org.hl7.fhir.dstu21.model.Subscription;
-import org.hl7.fhir.dstu21.model.Subscription.SubscriptionStatus;
+import org.hl7.fhir.dstu3.model.Subscription;
+import org.hl7.fhir.dstu3.model.Subscription.SubscriptionStatus;
import org.hl7.fhir.instance.model.api.IAnyResource;
import org.hl7.fhir.instance.model.api.IBaseResource;
import org.hl7.fhir.instance.model.api.IIdType;
@@ -48,6 +48,10 @@ import org.springframework.transaction.support.TransactionCallback;
import org.springframework.transaction.support.TransactionTemplate;
import ca.uhn.fhir.context.RuntimeResourceDefinition;
+import ca.uhn.fhir.jpa.dao.IDao;
+import ca.uhn.fhir.jpa.dao.IFhirResourceDao;
+import ca.uhn.fhir.jpa.dao.IFhirResourceDaoSubscription;
+import ca.uhn.fhir.jpa.dao.SearchParameterMap;
import ca.uhn.fhir.jpa.dao.data.ISubscriptionFlaggedResourceDataDao;
import ca.uhn.fhir.jpa.dao.data.ISubscriptionTableDao;
import ca.uhn.fhir.jpa.entity.ResourceTable;
@@ -66,9 +70,9 @@ import ca.uhn.fhir.rest.server.Constants;
import ca.uhn.fhir.rest.server.IBundleProvider;
import ca.uhn.fhir.rest.server.exceptions.UnprocessableEntityException;
-public class FhirResourceDaoSubscriptionDstu21 extends FhirResourceDaoDstu21implements IFhirResourceDaoSubscription {
+public class FhirResourceDaoSubscriptionDstu3 extends FhirResourceDaoDstu3implements IFhirResourceDaoSubscription {
- private static final org.slf4j.Logger ourLog = org.slf4j.LoggerFactory.getLogger(FhirResourceDaoSubscriptionDstu21.class);
+ private static final org.slf4j.Logger ourLog = org.slf4j.LoggerFactory.getLogger(FhirResourceDaoSubscriptionDstu3.class);
@Autowired
private ISubscriptionFlaggedResourceDataDao mySubscriptionFlaggedResourceDataDao;
diff --git a/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/FhirResourceDaoValueSetDstu21.java b/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/dstu3/FhirResourceDaoValueSetDstu3.java
similarity index 91%
rename from hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/FhirResourceDaoValueSetDstu21.java
rename to hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/dstu3/FhirResourceDaoValueSetDstu3.java
index 05f14381a70..bbd361b7b60 100644
--- a/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/FhirResourceDaoValueSetDstu21.java
+++ b/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/dstu3/FhirResourceDaoValueSetDstu3.java
@@ -1,4 +1,4 @@
-package ca.uhn.fhir.jpa.dao;
+package ca.uhn.fhir.jpa.dao.dstu3;
/*
* #%L
@@ -33,34 +33,37 @@ import java.util.Set;
import javax.annotation.PostConstruct;
import org.apache.commons.codec.binary.StringUtils;
-import org.hl7.fhir.dstu21.hapi.validation.DefaultProfileValidationSupport;
-import org.hl7.fhir.dstu21.hapi.validation.HapiWorkerContext;
-import org.hl7.fhir.dstu21.hapi.validation.ValidationSupportChain;
-import org.hl7.fhir.dstu21.model.CodeableConcept;
-import org.hl7.fhir.dstu21.model.Coding;
-import org.hl7.fhir.dstu21.model.IdType;
-import org.hl7.fhir.dstu21.model.ValueSet;
-import org.hl7.fhir.dstu21.model.ValueSet.ConceptDefinitionComponent;
-import org.hl7.fhir.dstu21.model.ValueSet.ConceptReferenceComponent;
-import org.hl7.fhir.dstu21.model.ValueSet.ConceptSetComponent;
-import org.hl7.fhir.dstu21.model.ValueSet.ValueSetExpansionComponent;
-import org.hl7.fhir.dstu21.model.ValueSet.ValueSetExpansionContainsComponent;
-import org.hl7.fhir.dstu21.terminologies.ValueSetExpander;
-import org.hl7.fhir.dstu21.terminologies.ValueSetExpander.ValueSetExpansionOutcome;
+import org.hl7.fhir.dstu3.hapi.validation.DefaultProfileValidationSupport;
+import org.hl7.fhir.dstu3.hapi.validation.HapiWorkerContext;
+import org.hl7.fhir.dstu3.hapi.validation.ValidationSupportChain;
+import org.hl7.fhir.dstu3.terminologies.ValueSetExpander;
+import org.hl7.fhir.dstu3.terminologies.ValueSetExpander.ValueSetExpansionOutcome;
+import org.hl7.fhir.dstu3.model.CodeableConcept;
+import org.hl7.fhir.dstu3.model.Coding;
+import org.hl7.fhir.dstu3.model.IdType;
+import org.hl7.fhir.dstu3.model.ValueSet;
+import org.hl7.fhir.dstu3.model.ValueSet.ConceptDefinitionComponent;
+import org.hl7.fhir.dstu3.model.ValueSet.ConceptReferenceComponent;
+import org.hl7.fhir.dstu3.model.ValueSet.ConceptSetComponent;
+import org.hl7.fhir.dstu3.model.ValueSet.ValueSetExpansionComponent;
+import org.hl7.fhir.dstu3.model.ValueSet.ValueSetExpansionContainsComponent;
import org.hl7.fhir.instance.model.api.IIdType;
import org.hl7.fhir.instance.model.api.IPrimitiveType;
import org.springframework.beans.factory.annotation.Autowired;
+import ca.uhn.fhir.jpa.dao.IFhirResourceDaoValueSet;
+import ca.uhn.fhir.jpa.dao.IFhirResourceDaoValueSet.LookupCodeResult;
+import ca.uhn.fhir.jpa.dao.IFhirResourceDaoValueSet.ValidateCodeResult;
import ca.uhn.fhir.rest.param.TokenParam;
import ca.uhn.fhir.rest.param.UriParam;
import ca.uhn.fhir.rest.server.IBundleProvider;
import ca.uhn.fhir.rest.server.exceptions.InternalErrorException;
import ca.uhn.fhir.rest.server.exceptions.InvalidRequestException;
-public class FhirResourceDaoValueSetDstu21 extends FhirResourceDaoDstu21 implements IFhirResourceDaoValueSet {
+public class FhirResourceDaoValueSetDstu3 extends FhirResourceDaoDstu3 implements IFhirResourceDaoValueSet {
@Autowired
- private IJpaValidationSupportDstu21 myJpaValidationSupport;
+ private IJpaValidationSupportDstu3 myJpaValidationSupport;
private ValidationSupportChain myValidationSupport;
diff --git a/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/FhirSystemDaoDstu21.java b/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/dstu3/FhirSystemDaoDstu3.java
similarity index 97%
rename from hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/FhirSystemDaoDstu21.java
rename to hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/dstu3/FhirSystemDaoDstu3.java
index b60b8b9fc98..b057355237d 100644
--- a/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/FhirSystemDaoDstu21.java
+++ b/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/dstu3/FhirSystemDaoDstu3.java
@@ -1,4 +1,4 @@
-package ca.uhn.fhir.jpa.dao;
+package ca.uhn.fhir.jpa.dao.dstu3;
/*
* #%L
@@ -39,16 +39,16 @@ import java.util.Set;
import javax.persistence.TypedQuery;
import org.apache.http.NameValuePair;
-import org.hl7.fhir.dstu21.model.Bundle;
-import org.hl7.fhir.dstu21.model.Bundle.BundleEntryComponent;
-import org.hl7.fhir.dstu21.model.Bundle.BundleEntryResponseComponent;
-import org.hl7.fhir.dstu21.model.Bundle.BundleType;
-import org.hl7.fhir.dstu21.model.Bundle.HTTPVerb;
-import org.hl7.fhir.dstu21.model.IdType;
-import org.hl7.fhir.dstu21.model.Meta;
-import org.hl7.fhir.dstu21.model.OperationOutcome;
-import org.hl7.fhir.dstu21.model.OperationOutcome.IssueSeverity;
-import org.hl7.fhir.dstu21.model.Resource;
+import org.hl7.fhir.dstu3.model.Bundle;
+import org.hl7.fhir.dstu3.model.Bundle.BundleEntryComponent;
+import org.hl7.fhir.dstu3.model.Bundle.BundleEntryResponseComponent;
+import org.hl7.fhir.dstu3.model.Bundle.BundleType;
+import org.hl7.fhir.dstu3.model.Bundle.HTTPVerb;
+import org.hl7.fhir.dstu3.model.IdType;
+import org.hl7.fhir.dstu3.model.Meta;
+import org.hl7.fhir.dstu3.model.OperationOutcome;
+import org.hl7.fhir.dstu3.model.OperationOutcome.IssueSeverity;
+import org.hl7.fhir.dstu3.model.Resource;
import org.hl7.fhir.instance.model.api.IAnyResource;
import org.hl7.fhir.instance.model.api.IBaseReference;
import org.hl7.fhir.instance.model.api.IBaseResource;
@@ -66,6 +66,9 @@ import org.springframework.transaction.support.TransactionTemplate;
import com.google.common.collect.ArrayListMultimap;
import ca.uhn.fhir.context.RuntimeResourceDefinition;
+import ca.uhn.fhir.jpa.dao.BaseHapiFhirSystemDao;
+import ca.uhn.fhir.jpa.dao.DaoMethodOutcome;
+import ca.uhn.fhir.jpa.dao.IFhirResourceDao;
import ca.uhn.fhir.jpa.entity.ResourceTable;
import ca.uhn.fhir.jpa.entity.TagDefinition;
import ca.uhn.fhir.jpa.provider.ServletSubRequestDetails;
@@ -91,8 +94,8 @@ import ca.uhn.fhir.util.FhirTerser;
import ca.uhn.fhir.util.UrlUtil;
import ca.uhn.fhir.util.UrlUtil.UrlParts;
-public class FhirSystemDaoDstu21 extends BaseHapiFhirSystemDao {
- private static final org.slf4j.Logger ourLog = org.slf4j.LoggerFactory.getLogger(FhirSystemDaoDstu21.class);
+public class FhirSystemDaoDstu3 extends BaseHapiFhirSystemDao {
+ private static final org.slf4j.Logger ourLog = org.slf4j.LoggerFactory.getLogger(FhirSystemDaoDstu3.class);
@Autowired
private PlatformTransactionManager myTxManager;
diff --git a/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/IJpaValidationSupportDstu21.java b/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/dstu3/IJpaValidationSupportDstu3.java
similarity index 79%
rename from hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/IJpaValidationSupportDstu21.java
rename to hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/dstu3/IJpaValidationSupportDstu3.java
index 2989636309e..701a7b2e99c 100644
--- a/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/IJpaValidationSupportDstu21.java
+++ b/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/dstu3/IJpaValidationSupportDstu3.java
@@ -1,6 +1,6 @@
-package ca.uhn.fhir.jpa.dao;
+package ca.uhn.fhir.jpa.dao.dstu3;
-import org.hl7.fhir.dstu21.hapi.validation.IValidationSupport;
+import org.hl7.fhir.dstu3.hapi.validation.IValidationSupport;
/*
* #%L
@@ -22,6 +22,6 @@ import org.hl7.fhir.dstu21.hapi.validation.IValidationSupport;
* #L%
*/
-public interface IJpaValidationSupportDstu21 extends IValidationSupport {
+public interface IJpaValidationSupportDstu3 extends IValidationSupport {
}
diff --git a/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/JpaValidationSupportDstu21.java b/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/dstu3/JpaValidationSupportDstu3.java
similarity index 78%
rename from hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/JpaValidationSupportDstu21.java
rename to hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/dstu3/JpaValidationSupportDstu3.java
index 069c1629f41..d8b75cef877 100644
--- a/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/JpaValidationSupportDstu21.java
+++ b/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/dstu3/JpaValidationSupportDstu3.java
@@ -1,11 +1,11 @@
-package ca.uhn.fhir.jpa.dao;
+package ca.uhn.fhir.jpa.dao.dstu3;
-import org.hl7.fhir.dstu21.model.IdType;
-import org.hl7.fhir.dstu21.model.Questionnaire;
-import org.hl7.fhir.dstu21.model.StructureDefinition;
-import org.hl7.fhir.dstu21.model.ValueSet;
-import org.hl7.fhir.dstu21.model.ValueSet.ConceptSetComponent;
-import org.hl7.fhir.dstu21.model.ValueSet.ValueSetExpansionComponent;
+import org.hl7.fhir.dstu3.model.IdType;
+import org.hl7.fhir.dstu3.model.Questionnaire;
+import org.hl7.fhir.dstu3.model.StructureDefinition;
+import org.hl7.fhir.dstu3.model.ValueSet;
+import org.hl7.fhir.dstu3.model.ValueSet.ConceptSetComponent;
+import org.hl7.fhir.dstu3.model.ValueSet.ValueSetExpansionComponent;
import org.hl7.fhir.instance.model.api.IAnyResource;
/*
@@ -33,31 +33,32 @@ import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import ca.uhn.fhir.context.FhirContext;
+import ca.uhn.fhir.jpa.dao.IFhirResourceDao;
import ca.uhn.fhir.rest.param.StringParam;
import ca.uhn.fhir.rest.param.UriParam;
import ca.uhn.fhir.rest.server.IBundleProvider;
-public class JpaValidationSupportDstu21 implements IJpaValidationSupportDstu21 {
+public class JpaValidationSupportDstu3 implements IJpaValidationSupportDstu3 {
- private static final org.slf4j.Logger ourLog = org.slf4j.LoggerFactory.getLogger(JpaValidationSupportDstu21.class);
+ private static final org.slf4j.Logger ourLog = org.slf4j.LoggerFactory.getLogger(JpaValidationSupportDstu3.class);
@Autowired
- @Qualifier("myStructureDefinitionDaoDstu21")
+ @Qualifier("myStructureDefinitionDaoDstu3")
private IFhirResourceDao myStructureDefinitionDao;
@Autowired
- @Qualifier("myValueSetDaoDstu21")
+ @Qualifier("myValueSetDaoDstu3")
private IFhirResourceDao myValueSetDao;
@Autowired
- @Qualifier("myQuestionnaireDaoDstu21")
+ @Qualifier("myQuestionnaireDaoDstu3")
private IFhirResourceDao myQuestionnaireDao;
@Autowired
- @Qualifier("myFhirContextDstu21")
- private FhirContext myDstu21Ctx;
+ @Qualifier("myFhirContextDstu3")
+ private FhirContext myDstu3Ctx;
- public JpaValidationSupportDstu21() {
+ public JpaValidationSupportDstu3() {
super();
}
@@ -80,7 +81,7 @@ public class JpaValidationSupportDstu21 implements IJpaValidationSupportDstu21 {
localReference = true;
}
- String resourceName = myDstu21Ctx.getResourceDefinition(theClass).getName();
+ String resourceName = myDstu3Ctx.getResourceDefinition(theClass).getName();
IBundleProvider search;
if ("ValueSet".equals(resourceName)) {
if (localReference) {
diff --git a/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/SearchParamExtractorDstu21.java b/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/dstu3/SearchParamExtractorDstu3.java
similarity index 94%
rename from hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/SearchParamExtractorDstu21.java
rename to hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/dstu3/SearchParamExtractorDstu3.java
index ea314bde8c0..3403d346f6f 100644
--- a/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/SearchParamExtractorDstu21.java
+++ b/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/dstu3/SearchParamExtractorDstu3.java
@@ -1,4 +1,4 @@
-package ca.uhn.fhir.jpa.dao;
+package ca.uhn.fhir.jpa.dao.dstu3;
/*
* #%L
@@ -34,25 +34,25 @@ import javax.measure.unit.Unit;
import org.apache.commons.lang3.StringUtils;
import org.apache.commons.lang3.tuple.Pair;
-import org.hl7.fhir.dstu21.model.Address;
-import org.hl7.fhir.dstu21.model.BaseDateTimeType;
-import org.hl7.fhir.dstu21.model.CodeableConcept;
-import org.hl7.fhir.dstu21.model.Coding;
-import org.hl7.fhir.dstu21.model.Conformance.ConformanceRestSecurityComponent;
-import org.hl7.fhir.dstu21.model.ContactPoint;
-import org.hl7.fhir.dstu21.model.Duration;
-import org.hl7.fhir.dstu21.model.Enumeration;
-import org.hl7.fhir.dstu21.model.HumanName;
-import org.hl7.fhir.dstu21.model.Identifier;
-import org.hl7.fhir.dstu21.model.IntegerType;
-import org.hl7.fhir.dstu21.model.Location.LocationPositionComponent;
-import org.hl7.fhir.dstu21.model.Patient.PatientCommunicationComponent;
-import org.hl7.fhir.dstu21.model.Period;
-import org.hl7.fhir.dstu21.model.Quantity;
-import org.hl7.fhir.dstu21.model.Questionnaire;
-import org.hl7.fhir.dstu21.model.StringType;
-import org.hl7.fhir.dstu21.model.UriType;
-import org.hl7.fhir.dstu21.model.ValueSet;
+import org.hl7.fhir.dstu3.model.Address;
+import org.hl7.fhir.dstu3.model.BaseDateTimeType;
+import org.hl7.fhir.dstu3.model.CodeableConcept;
+import org.hl7.fhir.dstu3.model.Coding;
+import org.hl7.fhir.dstu3.model.ContactPoint;
+import org.hl7.fhir.dstu3.model.Duration;
+import org.hl7.fhir.dstu3.model.Enumeration;
+import org.hl7.fhir.dstu3.model.HumanName;
+import org.hl7.fhir.dstu3.model.Identifier;
+import org.hl7.fhir.dstu3.model.IntegerType;
+import org.hl7.fhir.dstu3.model.Period;
+import org.hl7.fhir.dstu3.model.Quantity;
+import org.hl7.fhir.dstu3.model.Questionnaire;
+import org.hl7.fhir.dstu3.model.StringType;
+import org.hl7.fhir.dstu3.model.UriType;
+import org.hl7.fhir.dstu3.model.ValueSet;
+import org.hl7.fhir.dstu3.model.Conformance.ConformanceRestSecurityComponent;
+import org.hl7.fhir.dstu3.model.Location.LocationPositionComponent;
+import org.hl7.fhir.dstu3.model.Patient.PatientCommunicationComponent;
import org.hl7.fhir.instance.model.api.IBase;
import org.hl7.fhir.instance.model.api.IBaseResource;
import org.hl7.fhir.instance.model.api.IPrimitiveType;
@@ -61,6 +61,9 @@ import ca.uhn.fhir.context.ConfigurationException;
import ca.uhn.fhir.context.FhirContext;
import ca.uhn.fhir.context.RuntimeResourceDefinition;
import ca.uhn.fhir.context.RuntimeSearchParam;
+import ca.uhn.fhir.jpa.dao.BaseHapiFhirDao;
+import ca.uhn.fhir.jpa.dao.BaseSearchParamExtractor;
+import ca.uhn.fhir.jpa.dao.ISearchParamExtractor;
import ca.uhn.fhir.jpa.entity.BaseResourceIndexedSearchParam;
import ca.uhn.fhir.jpa.entity.ResourceIndexedSearchParamCoords;
import ca.uhn.fhir.jpa.entity.ResourceIndexedSearchParamDate;
@@ -72,11 +75,11 @@ import ca.uhn.fhir.jpa.entity.ResourceIndexedSearchParamUri;
import ca.uhn.fhir.jpa.entity.ResourceTable;
import ca.uhn.fhir.rest.method.RestSearchParameterTypeEnum;
-public class SearchParamExtractorDstu21 extends BaseSearchParamExtractor implements ISearchParamExtractor {
+public class SearchParamExtractorDstu3 extends BaseSearchParamExtractor implements ISearchParamExtractor {
- private static final org.slf4j.Logger ourLog = org.slf4j.LoggerFactory.getLogger(SearchParamExtractorDstu21.class);
+ private static final org.slf4j.Logger ourLog = org.slf4j.LoggerFactory.getLogger(SearchParamExtractorDstu3.class);
- public SearchParamExtractorDstu21(FhirContext theContext) {
+ public SearchParamExtractorDstu3(FhirContext theContext) {
super(theContext);
}
diff --git a/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/provider/BaseJpaResourceProviderEncounterDstu21.java b/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/provider/dstu3/BaseJpaResourceProviderEncounterDstu3.java
similarity index 92%
rename from hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/provider/BaseJpaResourceProviderEncounterDstu21.java
rename to hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/provider/dstu3/BaseJpaResourceProviderEncounterDstu3.java
index 0f66ee17f2f..54d69185b34 100644
--- a/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/provider/BaseJpaResourceProviderEncounterDstu21.java
+++ b/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/provider/dstu3/BaseJpaResourceProviderEncounterDstu3.java
@@ -1,8 +1,8 @@
-package ca.uhn.fhir.jpa.provider;
+package ca.uhn.fhir.jpa.provider.dstu3;
-import org.hl7.fhir.dstu21.model.Encounter;
-import org.hl7.fhir.dstu21.model.IdType;
-import org.hl7.fhir.dstu21.model.UnsignedIntType;
+import org.hl7.fhir.dstu3.model.Encounter;
+import org.hl7.fhir.dstu3.model.IdType;
+import org.hl7.fhir.dstu3.model.UnsignedIntType;
/*
* #%L
@@ -34,7 +34,7 @@ import ca.uhn.fhir.rest.api.SortSpec;
import ca.uhn.fhir.rest.param.DateRangeParam;
import ca.uhn.fhir.rest.server.Constants;
-public class BaseJpaResourceProviderEncounterDstu21 extends JpaResourceProviderDstu21 {
+public class BaseJpaResourceProviderEncounterDstu3 extends JpaResourceProviderDstu3 {
/**
* Encounter/123/$everything
diff --git a/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/provider/BaseJpaResourceProviderPatientDstu21.java b/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/provider/dstu3/BaseJpaResourceProviderPatientDstu3.java
similarity index 94%
rename from hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/provider/BaseJpaResourceProviderPatientDstu21.java
rename to hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/provider/dstu3/BaseJpaResourceProviderPatientDstu3.java
index 194b5a684f2..dc36cd0319a 100644
--- a/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/provider/BaseJpaResourceProviderPatientDstu21.java
+++ b/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/provider/dstu3/BaseJpaResourceProviderPatientDstu3.java
@@ -1,13 +1,13 @@
-package ca.uhn.fhir.jpa.provider;
+package ca.uhn.fhir.jpa.provider.dstu3;
import static org.apache.commons.lang3.StringUtils.isNotBlank;
import java.util.List;
-import org.hl7.fhir.dstu21.model.IdType;
-import org.hl7.fhir.dstu21.model.Patient;
-import org.hl7.fhir.dstu21.model.StringType;
-import org.hl7.fhir.dstu21.model.UnsignedIntType;
+import org.hl7.fhir.dstu3.model.IdType;
+import org.hl7.fhir.dstu3.model.Patient;
+import org.hl7.fhir.dstu3.model.StringType;
+import org.hl7.fhir.dstu3.model.UnsignedIntType;
/*
* #%L
@@ -42,7 +42,7 @@ import ca.uhn.fhir.rest.param.StringOrListParam;
import ca.uhn.fhir.rest.param.StringParam;
import ca.uhn.fhir.rest.server.Constants;
-public class BaseJpaResourceProviderPatientDstu21 extends JpaResourceProviderDstu21 {
+public class BaseJpaResourceProviderPatientDstu3 extends JpaResourceProviderDstu3 {
/**
* Patient/123/$everything
diff --git a/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/provider/BaseJpaResourceProviderQuestionnaireResponseDstu21.java b/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/provider/dstu3/BaseJpaResourceProviderQuestionnaireResponseDstu3.java
similarity index 76%
rename from hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/provider/BaseJpaResourceProviderQuestionnaireResponseDstu21.java
rename to hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/provider/dstu3/BaseJpaResourceProviderQuestionnaireResponseDstu3.java
index dc1a25bb7f3..e7e4f53b5a5 100644
--- a/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/provider/BaseJpaResourceProviderQuestionnaireResponseDstu21.java
+++ b/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/provider/dstu3/BaseJpaResourceProviderQuestionnaireResponseDstu3.java
@@ -1,6 +1,6 @@
-package ca.uhn.fhir.jpa.provider;
+package ca.uhn.fhir.jpa.provider.dstu3;
-import org.hl7.fhir.dstu21.model.QuestionnaireResponse;
+import org.hl7.fhir.dstu3.model.QuestionnaireResponse;
/*
* #%L
@@ -22,7 +22,7 @@ import org.hl7.fhir.dstu21.model.QuestionnaireResponse;
* #L%
*/
-public class BaseJpaResourceProviderQuestionnaireResponseDstu21 extends JpaResourceProviderDstu21 {
+public class BaseJpaResourceProviderQuestionnaireResponseDstu3 extends JpaResourceProviderDstu3 {
// nothing yet
diff --git a/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/provider/BaseJpaResourceProviderValueSetDstu21.java b/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/provider/dstu3/BaseJpaResourceProviderValueSetDstu3.java
similarity index 92%
rename from hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/provider/BaseJpaResourceProviderValueSetDstu21.java
rename to hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/provider/dstu3/BaseJpaResourceProviderValueSetDstu3.java
index 5fb3443e696..a46a8870caf 100644
--- a/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/provider/BaseJpaResourceProviderValueSetDstu21.java
+++ b/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/provider/dstu3/BaseJpaResourceProviderValueSetDstu3.java
@@ -1,4 +1,4 @@
-package ca.uhn.fhir.jpa.provider;
+package ca.uhn.fhir.jpa.provider.dstu3;
/*
* #%L
@@ -24,15 +24,15 @@ import static org.apache.commons.lang3.StringUtils.isNotBlank;
import javax.servlet.http.HttpServletRequest;
-import org.hl7.fhir.dstu21.model.BooleanType;
-import org.hl7.fhir.dstu21.model.CodeType;
-import org.hl7.fhir.dstu21.model.CodeableConcept;
-import org.hl7.fhir.dstu21.model.Coding;
-import org.hl7.fhir.dstu21.model.IdType;
-import org.hl7.fhir.dstu21.model.Parameters;
-import org.hl7.fhir.dstu21.model.StringType;
-import org.hl7.fhir.dstu21.model.UriType;
-import org.hl7.fhir.dstu21.model.ValueSet;
+import org.hl7.fhir.dstu3.model.BooleanType;
+import org.hl7.fhir.dstu3.model.CodeType;
+import org.hl7.fhir.dstu3.model.CodeableConcept;
+import org.hl7.fhir.dstu3.model.Coding;
+import org.hl7.fhir.dstu3.model.IdType;
+import org.hl7.fhir.dstu3.model.Parameters;
+import org.hl7.fhir.dstu3.model.StringType;
+import org.hl7.fhir.dstu3.model.UriType;
+import org.hl7.fhir.dstu3.model.ValueSet;
import ca.uhn.fhir.jpa.dao.IFhirResourceDaoValueSet;
import ca.uhn.fhir.jpa.dao.IFhirResourceDaoValueSet.LookupCodeResult;
@@ -43,7 +43,7 @@ import ca.uhn.fhir.rest.annotation.OperationParam;
import ca.uhn.fhir.rest.server.exceptions.InvalidRequestException;
import ca.uhn.fhir.rest.server.exceptions.ResourceNotFoundException;
-public class BaseJpaResourceProviderValueSetDstu21 extends JpaResourceProviderDstu21 {
+public class BaseJpaResourceProviderValueSetDstu3 extends JpaResourceProviderDstu3 {
//@formatter:off
@Operation(name = "$expand", idempotent = true)
diff --git a/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/provider/JpaConformanceProviderDstu21.java b/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/provider/dstu3/JpaConformanceProviderDstu3.java
similarity index 79%
rename from hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/provider/JpaConformanceProviderDstu21.java
rename to hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/provider/dstu3/JpaConformanceProviderDstu3.java
index 85930ec487d..96919a3d945 100644
--- a/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/provider/JpaConformanceProviderDstu21.java
+++ b/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/provider/dstu3/JpaConformanceProviderDstu3.java
@@ -1,4 +1,4 @@
-package ca.uhn.fhir.jpa.provider;
+package ca.uhn.fhir.jpa.provider.dstu3;
/*
* #%L
@@ -25,17 +25,17 @@ import java.util.Map;
import javax.servlet.http.HttpServletRequest;
-import org.hl7.fhir.dstu21.model.Bundle;
-import org.hl7.fhir.dstu21.model.CodeType;
-import org.hl7.fhir.dstu21.model.Conformance;
-import org.hl7.fhir.dstu21.model.Conformance.ConditionalDeleteStatus;
-import org.hl7.fhir.dstu21.model.Conformance.ConformanceRestComponent;
-import org.hl7.fhir.dstu21.model.Conformance.ConformanceRestResourceComponent;
-import org.hl7.fhir.dstu21.model.Conformance.ConformanceRestResourceSearchParamComponent;
-import org.hl7.fhir.dstu21.model.DecimalType;
-import org.hl7.fhir.dstu21.model.Enumerations.SearchParamType;
-import org.hl7.fhir.dstu21.model.Extension;
-import org.hl7.fhir.dstu21.model.Meta;
+import org.hl7.fhir.dstu3.model.Bundle;
+import org.hl7.fhir.dstu3.model.CodeType;
+import org.hl7.fhir.dstu3.model.Conformance;
+import org.hl7.fhir.dstu3.model.DecimalType;
+import org.hl7.fhir.dstu3.model.Extension;
+import org.hl7.fhir.dstu3.model.Meta;
+import org.hl7.fhir.dstu3.model.Conformance.ConditionalDeleteStatus;
+import org.hl7.fhir.dstu3.model.Conformance.ConformanceRestComponent;
+import org.hl7.fhir.dstu3.model.Conformance.ConformanceRestResourceComponent;
+import org.hl7.fhir.dstu3.model.Conformance.ConformanceRestResourceSearchParamComponent;
+import org.hl7.fhir.dstu3.model.Enumerations.SearchParamType;
import ca.uhn.fhir.context.FhirContext;
import ca.uhn.fhir.context.RuntimeResourceDefinition;
@@ -46,7 +46,7 @@ import ca.uhn.fhir.rest.server.RestfulServer;
import ca.uhn.fhir.util.CoverageIgnore;
import ca.uhn.fhir.util.ExtensionConstants;
-public class JpaConformanceProviderDstu21 extends org.hl7.fhir.dstu21.hapi.rest.server.ServerConformanceProvider {
+public class JpaConformanceProviderDstu3 extends org.hl7.fhir.dstu3.hapi.rest.server.ServerConformanceProvider {
private volatile Conformance myCachedValue;
private DaoConfig myDaoConfig;
@@ -58,7 +58,7 @@ public class JpaConformanceProviderDstu21 extends org.hl7.fhir.dstu21.hapi.rest.
* Constructor
*/
@CoverageIgnore
- public JpaConformanceProviderDstu21(){
+ public JpaConformanceProviderDstu3(){
super();
super.setCache(false);
}
@@ -66,7 +66,7 @@ public class JpaConformanceProviderDstu21 extends org.hl7.fhir.dstu21.hapi.rest.
/**
* Constructor
*/
- public JpaConformanceProviderDstu21(RestfulServer theRestfulServer, IFhirSystemDao theSystemDao, DaoConfig theDaoConfig) {
+ public JpaConformanceProviderDstu3(RestfulServer theRestfulServer, IFhirSystemDao theSystemDao, DaoConfig theDaoConfig) {
super(theRestfulServer);
myRestfulServer = theRestfulServer;
mySystemDao = theSystemDao;
diff --git a/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/provider/JpaResourceProviderDstu21.java b/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/provider/dstu3/JpaResourceProviderDstu3.java
similarity index 93%
rename from hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/provider/JpaResourceProviderDstu21.java
rename to hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/provider/dstu3/JpaResourceProviderDstu3.java
index 72e7e8f6b22..80ecda2e358 100644
--- a/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/provider/JpaResourceProviderDstu21.java
+++ b/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/provider/dstu3/JpaResourceProviderDstu3.java
@@ -1,4 +1,4 @@
-package ca.uhn.fhir.jpa.provider;
+package ca.uhn.fhir.jpa.provider.dstu3;
/*
* #%L
@@ -22,12 +22,13 @@ package ca.uhn.fhir.jpa.provider;
import javax.servlet.http.HttpServletRequest;
-import org.hl7.fhir.dstu21.model.IdType;
-import org.hl7.fhir.dstu21.model.Meta;
-import org.hl7.fhir.dstu21.model.Parameters;
+import org.hl7.fhir.dstu3.model.IdType;
+import org.hl7.fhir.dstu3.model.Meta;
+import org.hl7.fhir.dstu3.model.Parameters;
import org.hl7.fhir.instance.model.api.IAnyResource;
import ca.uhn.fhir.jpa.dao.IFhirResourceDao;
+import ca.uhn.fhir.jpa.provider.BaseJpaResourceProvider;
import ca.uhn.fhir.rest.annotation.ConditionalUrlParam;
import ca.uhn.fhir.rest.annotation.Create;
import ca.uhn.fhir.rest.annotation.Delete;
@@ -42,17 +43,17 @@ import ca.uhn.fhir.rest.api.ValidationModeEnum;
import ca.uhn.fhir.rest.server.EncodingEnum;
import ca.uhn.fhir.rest.server.exceptions.InvalidRequestException;
-public class JpaResourceProviderDstu21 extends BaseJpaResourceProvider {
+public class JpaResourceProviderDstu3 extends BaseJpaResourceProvider {
public static final String OPERATION_NAME_META = "$meta";
public static final String OPERATION_NAME_META_DELETE = "$meta-delete";
public static final String OPERATION_NAME_META_ADD = "$meta-add";
- public JpaResourceProviderDstu21() {
+ public JpaResourceProviderDstu3() {
// nothing
}
- public JpaResourceProviderDstu21(IFhirResourceDao theDao) {
+ public JpaResourceProviderDstu3(IFhirResourceDao theDao) {
super(theDao);
}
diff --git a/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/provider/JpaSystemProviderDstu21.java b/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/provider/dstu3/JpaSystemProviderDstu3.java
similarity index 95%
rename from hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/provider/JpaSystemProviderDstu21.java
rename to hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/provider/dstu3/JpaSystemProviderDstu3.java
index 3644478eeea..57bca21de14 100644
--- a/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/provider/JpaSystemProviderDstu21.java
+++ b/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/provider/dstu3/JpaSystemProviderDstu3.java
@@ -1,4 +1,4 @@
-package ca.uhn.fhir.jpa.provider;
+package ca.uhn.fhir.jpa.provider.dstu3;
import static org.apache.commons.lang3.StringUtils.isBlank;
@@ -28,17 +28,18 @@ import java.util.Map;
import java.util.Map.Entry;
import java.util.TreeMap;
-import org.hl7.fhir.dstu21.model.Bundle;
-import org.hl7.fhir.dstu21.model.DecimalType;
-import org.hl7.fhir.dstu21.model.IntegerType;
-import org.hl7.fhir.dstu21.model.Meta;
-import org.hl7.fhir.dstu21.model.Parameters;
-import org.hl7.fhir.dstu21.model.Parameters.ParametersParameterComponent;
-import org.hl7.fhir.dstu21.model.StringType;
+import org.hl7.fhir.dstu3.model.Bundle;
+import org.hl7.fhir.dstu3.model.DecimalType;
+import org.hl7.fhir.dstu3.model.IntegerType;
+import org.hl7.fhir.dstu3.model.Meta;
+import org.hl7.fhir.dstu3.model.Parameters;
+import org.hl7.fhir.dstu3.model.StringType;
+import org.hl7.fhir.dstu3.model.Parameters.ParametersParameterComponent;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import ca.uhn.fhir.jpa.dao.FhirSearchDao.Suggestion;
+import ca.uhn.fhir.jpa.provider.BaseJpaSystemProvider;
import ca.uhn.fhir.jpa.dao.IFhirSystemDao;
import ca.uhn.fhir.jpa.dao.ISearchDao;
import ca.uhn.fhir.model.api.annotation.Description;
@@ -51,10 +52,10 @@ import ca.uhn.fhir.rest.method.RequestDetails;
import ca.uhn.fhir.rest.server.exceptions.InvalidRequestException;
import ca.uhn.fhir.rest.server.servlet.ServletRequestDetails;
-public class JpaSystemProviderDstu21 extends BaseJpaSystemProvider {
+public class JpaSystemProviderDstu3 extends BaseJpaSystemProvider {
@Autowired()
- @Qualifier("mySystemDaoDstu21")
+ @Qualifier("mySystemDaoDstu3")
private IFhirSystemDao mySystemDao;
@Autowired
diff --git a/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/subscription/SubscriptionWebsocketHandlerDstu21.java b/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/subscription/SubscriptionWebsocketHandlerDstu3.java
similarity index 95%
rename from hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/subscription/SubscriptionWebsocketHandlerDstu21.java
rename to hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/subscription/SubscriptionWebsocketHandlerDstu3.java
index 8f5f834fa1d..cafd1797755 100644
--- a/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/subscription/SubscriptionWebsocketHandlerDstu21.java
+++ b/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/subscription/SubscriptionWebsocketHandlerDstu3.java
@@ -29,10 +29,10 @@ import javax.annotation.PreDestroy;
import org.apache.http.NameValuePair;
import org.apache.http.client.utils.URLEncodedUtils;
-import org.hl7.fhir.dstu21.model.IdType;
-import org.hl7.fhir.dstu21.model.Subscription;
-import org.hl7.fhir.dstu21.model.Subscription.SubscriptionChannelType;
-import org.hl7.fhir.dstu21.model.Subscription.SubscriptionStatus;
+import org.hl7.fhir.dstu3.model.IdType;
+import org.hl7.fhir.dstu3.model.Subscription;
+import org.hl7.fhir.dstu3.model.Subscription.SubscriptionChannelType;
+import org.hl7.fhir.dstu3.model.Subscription.SubscriptionStatus;
import org.hl7.fhir.instance.model.api.IBaseResource;
import org.hl7.fhir.instance.model.api.IIdType;
import org.springframework.beans.factory.annotation.Autowired;
@@ -50,11 +50,11 @@ import ca.uhn.fhir.rest.server.EncodingEnum;
import ca.uhn.fhir.rest.server.exceptions.ResourceNotFoundException;
import ca.uhn.fhir.rest.server.exceptions.UnprocessableEntityException;
-public class SubscriptionWebsocketHandlerDstu21 extends TextWebSocketHandler implements ISubscriptionWebsocketHandler, Runnable {
- private static final org.slf4j.Logger ourLog = org.slf4j.LoggerFactory.getLogger(SubscriptionWebsocketHandlerDstu21.class);
+public class SubscriptionWebsocketHandlerDstu3 extends TextWebSocketHandler implements ISubscriptionWebsocketHandler, Runnable {
+ private static final org.slf4j.Logger ourLog = org.slf4j.LoggerFactory.getLogger(SubscriptionWebsocketHandlerDstu3.class);
@Autowired
- @Qualifier("myFhirContextDstu21")
+ @Qualifier("myFhirContextDstu3")
private FhirContext myCtx;
private ScheduledFuture> myScheduleFuture;
diff --git a/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/subscription/SubscriptionWebsocketHandlerFactoryDstu21.java b/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/subscription/SubscriptionWebsocketHandlerFactoryDstu3.java
similarity index 83%
rename from hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/subscription/SubscriptionWebsocketHandlerFactoryDstu21.java
rename to hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/subscription/SubscriptionWebsocketHandlerFactoryDstu3.java
index 7166051c3aa..f43e36f0835 100644
--- a/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/subscription/SubscriptionWebsocketHandlerFactoryDstu21.java
+++ b/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/subscription/SubscriptionWebsocketHandlerFactoryDstu3.java
@@ -22,12 +22,12 @@ package ca.uhn.fhir.jpa.subscription;
import org.springframework.beans.factory.FactoryBean;
-public class SubscriptionWebsocketHandlerFactoryDstu21 implements FactoryBean {
- static final org.slf4j.Logger ourLog = org.slf4j.LoggerFactory.getLogger(SubscriptionWebsocketHandlerDstu21.class);
+public class SubscriptionWebsocketHandlerFactoryDstu3 implements FactoryBean {
+ static final org.slf4j.Logger ourLog = org.slf4j.LoggerFactory.getLogger(SubscriptionWebsocketHandlerDstu3.class);
@Override
public ISubscriptionWebsocketHandler getObject() throws Exception {
- return new SubscriptionWebsocketHandlerDstu21();
+ return new SubscriptionWebsocketHandlerDstu3();
}
@Override
diff --git a/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/util/SubscriptionsRequireManualActivationInterceptorDstu21.java b/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/util/SubscriptionsRequireManualActivationInterceptorDstu3.java
similarity index 92%
rename from hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/util/SubscriptionsRequireManualActivationInterceptorDstu21.java
rename to hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/util/SubscriptionsRequireManualActivationInterceptorDstu3.java
index 197996bba8e..fdd33d883fc 100644
--- a/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/util/SubscriptionsRequireManualActivationInterceptorDstu21.java
+++ b/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/util/SubscriptionsRequireManualActivationInterceptorDstu3.java
@@ -2,9 +2,9 @@ package ca.uhn.fhir.jpa.util;
import static org.apache.commons.lang3.StringUtils.isNotBlank;
-import org.hl7.fhir.dstu21.model.Subscription;
-import org.hl7.fhir.dstu21.model.Subscription.SubscriptionChannelType;
-import org.hl7.fhir.dstu21.model.Subscription.SubscriptionStatus;
+import org.hl7.fhir.dstu3.model.Subscription;
+import org.hl7.fhir.dstu3.model.Subscription.SubscriptionChannelType;
+import org.hl7.fhir.dstu3.model.Subscription.SubscriptionStatus;
/*
* #%L
@@ -30,8 +30,8 @@ import org.hl7.fhir.instance.model.api.IIdType;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
-import ca.uhn.fhir.jpa.dao.FhirResourceDaoSubscriptionDstu21;
import ca.uhn.fhir.jpa.dao.IFhirResourceDao;
+import ca.uhn.fhir.jpa.dao.dstu3.FhirResourceDaoSubscriptionDstu3;
import ca.uhn.fhir.model.api.IResource;
import ca.uhn.fhir.model.api.ResourceMetadataKeyEnum;
import ca.uhn.fhir.rest.api.RestOperationTypeEnum;
@@ -44,9 +44,9 @@ import ca.uhn.fhir.util.CoverageIgnore;
* Interceptor which requires newly created {@link Subscription subscriptions} to be in
* {@link SubscriptionStatus#REQUESTED} state and prevents clients from changing the status.
*/
-public class SubscriptionsRequireManualActivationInterceptorDstu21 extends InterceptorAdapter {
+public class SubscriptionsRequireManualActivationInterceptorDstu3 extends InterceptorAdapter {
- public static final ResourceMetadataKeyEnum
@@ -219,12 +219,12 @@
false
- ../hapi-fhir-structures-dstu2.1/src/main/resources
+ ../hapi-fhir-structures-dstu3/src/main/resourcesfalse
@@ -233,7 +233,7 @@
false
- ../hapi-fhir-validation-resources-dstu2.1/src/main/resources
+ ../hapi-fhir-validation-resources-dstu3/src/main/resourcesfalse
diff --git a/hapi-fhir-structures-dstu/src/test/java/ca/uhn/fhir/context/FhirContextDstu1Test.java b/hapi-fhir-structures-dstu/src/test/java/ca/uhn/fhir/context/FhirContextDstu1Test.java
index 9b9b31a52a9..e027dd8e8b0 100644
--- a/hapi-fhir-structures-dstu/src/test/java/ca/uhn/fhir/context/FhirContextDstu1Test.java
+++ b/hapi-fhir-structures-dstu/src/test/java/ca/uhn/fhir/context/FhirContextDstu1Test.java
@@ -37,10 +37,10 @@ public class FhirContextDstu1Test {
public void testUnknownVersion() {
try {
- Class.forName("org.hl7.fhir.dstu21.model.Patient");
+ Class.forName("org.hl7.fhir.dstu3.model.Patient");
/*
- * If we found this class, DSTU2.1 structures are on the classpath so we're probably doing
+ * If we found this class, DSTU3 structures are on the classpath so we're probably doing
* the cobertura tests.. This one won't work since all structures are on the classpath for
* cobertura tests
*/
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/AdditionalmaterialsEnumFactory.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/AdditionalmaterialsEnumFactory.java
deleted file mode 100644
index 54e97544466..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/AdditionalmaterialsEnumFactory.java
+++ /dev/null
@@ -1,78 +0,0 @@
-package org.hl7.fhir.dstu21.model.valuesets;
-
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
-
-public class AdditionalmaterialsEnumFactory implements EnumFactory {
-
- public Additionalmaterials fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("xray".equals(codeString))
- return Additionalmaterials.XRAY;
- if ("image".equals(codeString))
- return Additionalmaterials.IMAGE;
- if ("email".equals(codeString))
- return Additionalmaterials.EMAIL;
- if ("model".equals(codeString))
- return Additionalmaterials.MODEL;
- if ("document".equals(codeString))
- return Additionalmaterials.DOCUMENT;
- if ("other".equals(codeString))
- return Additionalmaterials.OTHER;
- throw new IllegalArgumentException("Unknown Additionalmaterials code '"+codeString+"'");
- }
-
- public String toCode(Additionalmaterials code) {
- if (code == Additionalmaterials.XRAY)
- return "xray";
- if (code == Additionalmaterials.IMAGE)
- return "image";
- if (code == Additionalmaterials.EMAIL)
- return "email";
- if (code == Additionalmaterials.MODEL)
- return "model";
- if (code == Additionalmaterials.DOCUMENT)
- return "document";
- if (code == Additionalmaterials.OTHER)
- return "other";
- return "?";
- }
-
- public String toSystem(Additionalmaterials code) {
- return code.getSystem();
- }
-
-}
-
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/AdjudicationEnumFactory.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/AdjudicationEnumFactory.java
deleted file mode 100644
index b1632d22f25..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/AdjudicationEnumFactory.java
+++ /dev/null
@@ -1,82 +0,0 @@
-package org.hl7.fhir.dstu21.model.valuesets;
-
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
-
-public class AdjudicationEnumFactory implements EnumFactory {
-
- public Adjudication fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("total".equals(codeString))
- return Adjudication.TOTAL;
- if ("copay".equals(codeString))
- return Adjudication.COPAY;
- if ("eligible".equals(codeString))
- return Adjudication.ELIGIBLE;
- if ("deductible".equals(codeString))
- return Adjudication.DEDUCTIBLE;
- if ("eligpercent".equals(codeString))
- return Adjudication.ELIGPERCENT;
- if ("tax".equals(codeString))
- return Adjudication.TAX;
- if ("benefit".equals(codeString))
- return Adjudication.BENEFIT;
- throw new IllegalArgumentException("Unknown Adjudication code '"+codeString+"'");
- }
-
- public String toCode(Adjudication code) {
- if (code == Adjudication.TOTAL)
- return "total";
- if (code == Adjudication.COPAY)
- return "copay";
- if (code == Adjudication.ELIGIBLE)
- return "eligible";
- if (code == Adjudication.DEDUCTIBLE)
- return "deductible";
- if (code == Adjudication.ELIGPERCENT)
- return "eligpercent";
- if (code == Adjudication.TAX)
- return "tax";
- if (code == Adjudication.BENEFIT)
- return "benefit";
- return "?";
- }
-
- public String toSystem(Adjudication code) {
- return code.getSystem();
- }
-
-}
-
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/AdjudicationErrorEnumFactory.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/AdjudicationErrorEnumFactory.java
deleted file mode 100644
index 3141b6ee9c8..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/AdjudicationErrorEnumFactory.java
+++ /dev/null
@@ -1,62 +0,0 @@
-package org.hl7.fhir.dstu21.model.valuesets;
-
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
-
-public class AdjudicationErrorEnumFactory implements EnumFactory {
-
- public AdjudicationError fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("a001".equals(codeString))
- return AdjudicationError.A001;
- if ("a002".equals(codeString))
- return AdjudicationError.A002;
- throw new IllegalArgumentException("Unknown AdjudicationError code '"+codeString+"'");
- }
-
- public String toCode(AdjudicationError code) {
- if (code == AdjudicationError.A001)
- return "a001";
- if (code == AdjudicationError.A002)
- return "a002";
- return "?";
- }
-
- public String toSystem(AdjudicationError code) {
- return code.getSystem();
- }
-
-}
-
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/AdjudicationReasonEnumFactory.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/AdjudicationReasonEnumFactory.java
deleted file mode 100644
index 2529bc17b26..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/AdjudicationReasonEnumFactory.java
+++ /dev/null
@@ -1,62 +0,0 @@
-package org.hl7.fhir.dstu21.model.valuesets;
-
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
-
-public class AdjudicationReasonEnumFactory implements EnumFactory {
-
- public AdjudicationReason fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("ar001".equals(codeString))
- return AdjudicationReason.AR001;
- if ("ar002".equals(codeString))
- return AdjudicationReason.AR002;
- throw new IllegalArgumentException("Unknown AdjudicationReason code '"+codeString+"'");
- }
-
- public String toCode(AdjudicationReason code) {
- if (code == AdjudicationReason.AR001)
- return "ar001";
- if (code == AdjudicationReason.AR002)
- return "ar002";
- return "?";
- }
-
- public String toSystem(AdjudicationReason code) {
- return code.getSystem();
- }
-
-}
-
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/AnimalBreedsEnumFactory.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/AnimalBreedsEnumFactory.java
deleted file mode 100644
index d385e4d5049..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/AnimalBreedsEnumFactory.java
+++ /dev/null
@@ -1,70 +0,0 @@
-package org.hl7.fhir.dstu21.model.valuesets;
-
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
-
-public class AnimalBreedsEnumFactory implements EnumFactory {
-
- public AnimalBreeds fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("gsd".equals(codeString))
- return AnimalBreeds.GSD;
- if ("irt".equals(codeString))
- return AnimalBreeds.IRT;
- if ("tibmas".equals(codeString))
- return AnimalBreeds.TIBMAS;
- if ("gret".equals(codeString))
- return AnimalBreeds.GRET;
- throw new IllegalArgumentException("Unknown AnimalBreeds code '"+codeString+"'");
- }
-
- public String toCode(AnimalBreeds code) {
- if (code == AnimalBreeds.GSD)
- return "gsd";
- if (code == AnimalBreeds.IRT)
- return "irt";
- if (code == AnimalBreeds.TIBMAS)
- return "tibmas";
- if (code == AnimalBreeds.GRET)
- return "gret";
- return "?";
- }
-
- public String toSystem(AnimalBreeds code) {
- return code.getSystem();
- }
-
-}
-
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/AnimalGenderstatusEnumFactory.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/AnimalGenderstatusEnumFactory.java
deleted file mode 100644
index 7089b0e35db..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/AnimalGenderstatusEnumFactory.java
+++ /dev/null
@@ -1,66 +0,0 @@
-package org.hl7.fhir.dstu21.model.valuesets;
-
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
-
-public class AnimalGenderstatusEnumFactory implements EnumFactory {
-
- public AnimalGenderstatus fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("neutered".equals(codeString))
- return AnimalGenderstatus.NEUTERED;
- if ("intact".equals(codeString))
- return AnimalGenderstatus.INTACT;
- if ("unknown".equals(codeString))
- return AnimalGenderstatus.UNKNOWN;
- throw new IllegalArgumentException("Unknown AnimalGenderstatus code '"+codeString+"'");
- }
-
- public String toCode(AnimalGenderstatus code) {
- if (code == AnimalGenderstatus.NEUTERED)
- return "neutered";
- if (code == AnimalGenderstatus.INTACT)
- return "intact";
- if (code == AnimalGenderstatus.UNKNOWN)
- return "unknown";
- return "?";
- }
-
- public String toSystem(AnimalGenderstatus code) {
- return code.getSystem();
- }
-
-}
-
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/AnimalSpeciesEnumFactory.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/AnimalSpeciesEnumFactory.java
deleted file mode 100644
index 3f2ef592629..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/AnimalSpeciesEnumFactory.java
+++ /dev/null
@@ -1,66 +0,0 @@
-package org.hl7.fhir.dstu21.model.valuesets;
-
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
-
-public class AnimalSpeciesEnumFactory implements EnumFactory {
-
- public AnimalSpecies fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("canislf".equals(codeString))
- return AnimalSpecies.CANISLF;
- if ("ovisa".equals(codeString))
- return AnimalSpecies.OVISA;
- if ("serinuscd".equals(codeString))
- return AnimalSpecies.SERINUSCD;
- throw new IllegalArgumentException("Unknown AnimalSpecies code '"+codeString+"'");
- }
-
- public String toCode(AnimalSpecies code) {
- if (code == AnimalSpecies.CANISLF)
- return "canislf";
- if (code == AnimalSpecies.OVISA)
- return "ovisa";
- if (code == AnimalSpecies.SERINUSCD)
- return "serinuscd";
- return "?";
- }
-
- public String toSystem(AnimalSpecies code) {
- return code.getSystem();
- }
-
-}
-
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/AuditSourceTypeEnumFactory.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/AuditSourceTypeEnumFactory.java
deleted file mode 100644
index 096d1b5ff9e..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/AuditSourceTypeEnumFactory.java
+++ /dev/null
@@ -1,90 +0,0 @@
-package org.hl7.fhir.dstu21.model.valuesets;
-
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
-
-public class AuditSourceTypeEnumFactory implements EnumFactory {
-
- public AuditSourceType fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("1".equals(codeString))
- return AuditSourceType._1;
- if ("2".equals(codeString))
- return AuditSourceType._2;
- if ("3".equals(codeString))
- return AuditSourceType._3;
- if ("4".equals(codeString))
- return AuditSourceType._4;
- if ("5".equals(codeString))
- return AuditSourceType._5;
- if ("6".equals(codeString))
- return AuditSourceType._6;
- if ("7".equals(codeString))
- return AuditSourceType._7;
- if ("8".equals(codeString))
- return AuditSourceType._8;
- if ("9".equals(codeString))
- return AuditSourceType._9;
- throw new IllegalArgumentException("Unknown AuditSourceType code '"+codeString+"'");
- }
-
- public String toCode(AuditSourceType code) {
- if (code == AuditSourceType._1)
- return "1";
- if (code == AuditSourceType._2)
- return "2";
- if (code == AuditSourceType._3)
- return "3";
- if (code == AuditSourceType._4)
- return "4";
- if (code == AuditSourceType._5)
- return "5";
- if (code == AuditSourceType._6)
- return "6";
- if (code == AuditSourceType._7)
- return "7";
- if (code == AuditSourceType._8)
- return "8";
- if (code == AuditSourceType._9)
- return "9";
- return "?";
- }
-
- public String toSystem(AuditSourceType code) {
- return code.getSystem();
- }
-
-}
-
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/BenefitCategoryEnumFactory.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/BenefitCategoryEnumFactory.java
deleted file mode 100644
index f83dad6d285..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/BenefitCategoryEnumFactory.java
+++ /dev/null
@@ -1,70 +0,0 @@
-package org.hl7.fhir.dstu21.model.valuesets;
-
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
-
-public class BenefitCategoryEnumFactory implements EnumFactory {
-
- public BenefitCategory fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("oral".equals(codeString))
- return BenefitCategory.ORAL;
- if ("vision".equals(codeString))
- return BenefitCategory.VISION;
- if ("medical".equals(codeString))
- return BenefitCategory.MEDICAL;
- if ("pharmacy".equals(codeString))
- return BenefitCategory.PHARMACY;
- throw new IllegalArgumentException("Unknown BenefitCategory code '"+codeString+"'");
- }
-
- public String toCode(BenefitCategory code) {
- if (code == BenefitCategory.ORAL)
- return "oral";
- if (code == BenefitCategory.VISION)
- return "vision";
- if (code == BenefitCategory.MEDICAL)
- return "medical";
- if (code == BenefitCategory.PHARMACY)
- return "pharmacy";
- return "?";
- }
-
- public String toSystem(BenefitCategory code) {
- return code.getSystem();
- }
-
-}
-
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/BenefitNetworkEnumFactory.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/BenefitNetworkEnumFactory.java
deleted file mode 100644
index 0d1a4bd75c5..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/BenefitNetworkEnumFactory.java
+++ /dev/null
@@ -1,62 +0,0 @@
-package org.hl7.fhir.dstu21.model.valuesets;
-
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
-
-public class BenefitNetworkEnumFactory implements EnumFactory {
-
- public BenefitNetwork fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("in".equals(codeString))
- return BenefitNetwork.IN;
- if ("out".equals(codeString))
- return BenefitNetwork.OUT;
- throw new IllegalArgumentException("Unknown BenefitNetwork code '"+codeString+"'");
- }
-
- public String toCode(BenefitNetwork code) {
- if (code == BenefitNetwork.IN)
- return "in";
- if (code == BenefitNetwork.OUT)
- return "out";
- return "?";
- }
-
- public String toSystem(BenefitNetwork code) {
- return code.getSystem();
- }
-
-}
-
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/BenefitTermEnumFactory.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/BenefitTermEnumFactory.java
deleted file mode 100644
index 911cbc80f27..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/BenefitTermEnumFactory.java
+++ /dev/null
@@ -1,62 +0,0 @@
-package org.hl7.fhir.dstu21.model.valuesets;
-
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
-
-public class BenefitTermEnumFactory implements EnumFactory {
-
- public BenefitTerm fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("annual".equals(codeString))
- return BenefitTerm.ANNUAL;
- if ("lifetime".equals(codeString))
- return BenefitTerm.LIFETIME;
- throw new IllegalArgumentException("Unknown BenefitTerm code '"+codeString+"'");
- }
-
- public String toCode(BenefitTerm code) {
- if (code == BenefitTerm.ANNUAL)
- return "annual";
- if (code == BenefitTerm.LIFETIME)
- return "lifetime";
- return "?";
- }
-
- public String toSystem(BenefitTerm code) {
- return code.getSystem();
- }
-
-}
-
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/BenefitTypeEnumFactory.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/BenefitTypeEnumFactory.java
deleted file mode 100644
index 655efd01d9f..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/BenefitTypeEnumFactory.java
+++ /dev/null
@@ -1,86 +0,0 @@
-package org.hl7.fhir.dstu21.model.valuesets;
-
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
-
-public class BenefitTypeEnumFactory implements EnumFactory {
-
- public BenefitType fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("deductable".equals(codeString))
- return BenefitType.DEDUCTABLE;
- if ("visit".equals(codeString))
- return BenefitType.VISIT;
- if ("copay".equals(codeString))
- return BenefitType.COPAY;
- if ("vision-exam".equals(codeString))
- return BenefitType.VISIONEXAM;
- if ("vision-glasses".equals(codeString))
- return BenefitType.VISIONGLASSES;
- if ("vision-contacts".equals(codeString))
- return BenefitType.VISIONCONTACTS;
- if ("medical-primarycare".equals(codeString))
- return BenefitType.MEDICALPRIMARYCARE;
- if ("pharmacy-dispense".equals(codeString))
- return BenefitType.PHARMACYDISPENSE;
- throw new IllegalArgumentException("Unknown BenefitType code '"+codeString+"'");
- }
-
- public String toCode(BenefitType code) {
- if (code == BenefitType.DEDUCTABLE)
- return "deductable";
- if (code == BenefitType.VISIT)
- return "visit";
- if (code == BenefitType.COPAY)
- return "copay";
- if (code == BenefitType.VISIONEXAM)
- return "vision-exam";
- if (code == BenefitType.VISIONGLASSES)
- return "vision-glasses";
- if (code == BenefitType.VISIONCONTACTS)
- return "vision-contacts";
- if (code == BenefitType.MEDICALPRIMARYCARE)
- return "medical-primarycare";
- if (code == BenefitType.PHARMACYDISPENSE)
- return "pharmacy-dispense";
- return "?";
- }
-
- public String toSystem(BenefitType code) {
- return code.getSystem();
- }
-
-}
-
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/BenefitUnitEnumFactory.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/BenefitUnitEnumFactory.java
deleted file mode 100644
index 266a8a54d7c..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/BenefitUnitEnumFactory.java
+++ /dev/null
@@ -1,62 +0,0 @@
-package org.hl7.fhir.dstu21.model.valuesets;
-
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
-
-public class BenefitUnitEnumFactory implements EnumFactory {
-
- public BenefitUnit fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("individual".equals(codeString))
- return BenefitUnit.INDIVIDUAL;
- if ("family".equals(codeString))
- return BenefitUnit.FAMILY;
- throw new IllegalArgumentException("Unknown BenefitUnit code '"+codeString+"'");
- }
-
- public String toCode(BenefitUnit code) {
- if (code == BenefitUnit.INDIVIDUAL)
- return "individual";
- if (code == BenefitUnit.FAMILY)
- return "family";
- return "?";
- }
-
- public String toSystem(BenefitUnit code) {
- return code.getSystem();
- }
-
-}
-
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/CarePlanActivityCategoryEnumFactory.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/CarePlanActivityCategoryEnumFactory.java
deleted file mode 100644
index c9a87462bd1..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/CarePlanActivityCategoryEnumFactory.java
+++ /dev/null
@@ -1,82 +0,0 @@
-package org.hl7.fhir.dstu21.model.valuesets;
-
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
-
-public class CarePlanActivityCategoryEnumFactory implements EnumFactory {
-
- public CarePlanActivityCategory fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("diet".equals(codeString))
- return CarePlanActivityCategory.DIET;
- if ("drug".equals(codeString))
- return CarePlanActivityCategory.DRUG;
- if ("encounter".equals(codeString))
- return CarePlanActivityCategory.ENCOUNTER;
- if ("observation".equals(codeString))
- return CarePlanActivityCategory.OBSERVATION;
- if ("procedure".equals(codeString))
- return CarePlanActivityCategory.PROCEDURE;
- if ("supply".equals(codeString))
- return CarePlanActivityCategory.SUPPLY;
- if ("other".equals(codeString))
- return CarePlanActivityCategory.OTHER;
- throw new IllegalArgumentException("Unknown CarePlanActivityCategory code '"+codeString+"'");
- }
-
- public String toCode(CarePlanActivityCategory code) {
- if (code == CarePlanActivityCategory.DIET)
- return "diet";
- if (code == CarePlanActivityCategory.DRUG)
- return "drug";
- if (code == CarePlanActivityCategory.ENCOUNTER)
- return "encounter";
- if (code == CarePlanActivityCategory.OBSERVATION)
- return "observation";
- if (code == CarePlanActivityCategory.PROCEDURE)
- return "procedure";
- if (code == CarePlanActivityCategory.SUPPLY)
- return "supply";
- if (code == CarePlanActivityCategory.OTHER)
- return "other";
- return "?";
- }
-
- public String toSystem(CarePlanActivityCategory code) {
- return code.getSystem();
- }
-
-}
-
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ChoiceListOrientationEnumFactory.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ChoiceListOrientationEnumFactory.java
deleted file mode 100644
index 7a32235c55c..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ChoiceListOrientationEnumFactory.java
+++ /dev/null
@@ -1,62 +0,0 @@
-package org.hl7.fhir.dstu21.model.valuesets;
-
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
-
-public class ChoiceListOrientationEnumFactory implements EnumFactory {
-
- public ChoiceListOrientation fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("horizontal".equals(codeString))
- return ChoiceListOrientation.HORIZONTAL;
- if ("vertical".equals(codeString))
- return ChoiceListOrientation.VERTICAL;
- throw new IllegalArgumentException("Unknown ChoiceListOrientation code '"+codeString+"'");
- }
-
- public String toCode(ChoiceListOrientation code) {
- if (code == ChoiceListOrientation.HORIZONTAL)
- return "horizontal";
- if (code == ChoiceListOrientation.VERTICAL)
- return "vertical";
- return "?";
- }
-
- public String toSystem(ChoiceListOrientation code) {
- return code.getSystem();
- }
-
-}
-
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ClaimExceptionEnumFactory.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ClaimExceptionEnumFactory.java
deleted file mode 100644
index 8dd61bf5333..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ClaimExceptionEnumFactory.java
+++ /dev/null
@@ -1,62 +0,0 @@
-package org.hl7.fhir.dstu21.model.valuesets;
-
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
-
-public class ClaimExceptionEnumFactory implements EnumFactory {
-
- public ClaimException fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("student".equals(codeString))
- return ClaimException.STUDENT;
- if ("disabled".equals(codeString))
- return ClaimException.DISABLED;
- throw new IllegalArgumentException("Unknown ClaimException code '"+codeString+"'");
- }
-
- public String toCode(ClaimException code) {
- if (code == ClaimException.STUDENT)
- return "student";
- if (code == ClaimException.DISABLED)
- return "disabled";
- return "?";
- }
-
- public String toSystem(ClaimException code) {
- return code.getSystem();
- }
-
-}
-
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ClaimModifiersEnumFactory.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ClaimModifiersEnumFactory.java
deleted file mode 100644
index eb4b008de5d..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ClaimModifiersEnumFactory.java
+++ /dev/null
@@ -1,74 +0,0 @@
-package org.hl7.fhir.dstu21.model.valuesets;
-
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
-
-public class ClaimModifiersEnumFactory implements EnumFactory {
-
- public ClaimModifiers fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("A".equals(codeString))
- return ClaimModifiers.A;
- if ("B".equals(codeString))
- return ClaimModifiers.B;
- if ("C".equals(codeString))
- return ClaimModifiers.C;
- if ("E".equals(codeString))
- return ClaimModifiers.E;
- if ("X".equals(codeString))
- return ClaimModifiers.X;
- throw new IllegalArgumentException("Unknown ClaimModifiers code '"+codeString+"'");
- }
-
- public String toCode(ClaimModifiers code) {
- if (code == ClaimModifiers.A)
- return "A";
- if (code == ClaimModifiers.B)
- return "B";
- if (code == ClaimModifiers.C)
- return "C";
- if (code == ClaimModifiers.E)
- return "E";
- if (code == ClaimModifiers.X)
- return "X";
- return "?";
- }
-
- public String toSystem(ClaimModifiers code) {
- return code.getSystem();
- }
-
-}
-
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ClassificationOrContextEnumFactory.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ClassificationOrContextEnumFactory.java
deleted file mode 100644
index 67169ac1762..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ClassificationOrContextEnumFactory.java
+++ /dev/null
@@ -1,62 +0,0 @@
-package org.hl7.fhir.dstu21.model.valuesets;
-
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
-
-public class ClassificationOrContextEnumFactory implements EnumFactory {
-
- public ClassificationOrContext fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("classification".equals(codeString))
- return ClassificationOrContext.CLASSIFICATION;
- if ("context".equals(codeString))
- return ClassificationOrContext.CONTEXT;
- throw new IllegalArgumentException("Unknown ClassificationOrContext code '"+codeString+"'");
- }
-
- public String toCode(ClassificationOrContext code) {
- if (code == ClassificationOrContext.CLASSIFICATION)
- return "classification";
- if (code == ClassificationOrContext.CONTEXT)
- return "context";
- return "?";
- }
-
- public String toSystem(ClassificationOrContext code) {
- return code.getSystem();
- }
-
-}
-
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ConditionCategoryEnumFactory.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ConditionCategoryEnumFactory.java
deleted file mode 100644
index 9390ce535d9..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ConditionCategoryEnumFactory.java
+++ /dev/null
@@ -1,70 +0,0 @@
-package org.hl7.fhir.dstu21.model.valuesets;
-
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
-
-public class ConditionCategoryEnumFactory implements EnumFactory {
-
- public ConditionCategory fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("complaint".equals(codeString))
- return ConditionCategory.COMPLAINT;
- if ("symptom".equals(codeString))
- return ConditionCategory.SYMPTOM;
- if ("finding".equals(codeString))
- return ConditionCategory.FINDING;
- if ("diagnosis".equals(codeString))
- return ConditionCategory.DIAGNOSIS;
- throw new IllegalArgumentException("Unknown ConditionCategory code '"+codeString+"'");
- }
-
- public String toCode(ConditionCategory code) {
- if (code == ConditionCategory.COMPLAINT)
- return "complaint";
- if (code == ConditionCategory.SYMPTOM)
- return "symptom";
- if (code == ConditionCategory.FINDING)
- return "finding";
- if (code == ConditionCategory.DIAGNOSIS)
- return "diagnosis";
- return "?";
- }
-
- public String toSystem(ConditionCategory code) {
- return code.getSystem();
- }
-
-}
-
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ConditionClinicalEnumFactory.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ConditionClinicalEnumFactory.java
deleted file mode 100644
index 1e76c0aa36c..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ConditionClinicalEnumFactory.java
+++ /dev/null
@@ -1,70 +0,0 @@
-package org.hl7.fhir.dstu21.model.valuesets;
-
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
-
-public class ConditionClinicalEnumFactory implements EnumFactory {
-
- public ConditionClinical fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("active".equals(codeString))
- return ConditionClinical.ACTIVE;
- if ("relapse".equals(codeString))
- return ConditionClinical.RELAPSE;
- if ("remission".equals(codeString))
- return ConditionClinical.REMISSION;
- if ("resolved".equals(codeString))
- return ConditionClinical.RESOLVED;
- throw new IllegalArgumentException("Unknown ConditionClinical code '"+codeString+"'");
- }
-
- public String toCode(ConditionClinical code) {
- if (code == ConditionClinical.ACTIVE)
- return "active";
- if (code == ConditionClinical.RELAPSE)
- return "relapse";
- if (code == ConditionClinical.REMISSION)
- return "remission";
- if (code == ConditionClinical.RESOLVED)
- return "resolved";
- return "?";
- }
-
- public String toSystem(ConditionClinical code) {
- return code.getSystem();
- }
-
-}
-
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ConditionStateEnumFactory.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ConditionStateEnumFactory.java
deleted file mode 100644
index 90d7b5de428..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ConditionStateEnumFactory.java
+++ /dev/null
@@ -1,66 +0,0 @@
-package org.hl7.fhir.dstu21.model.valuesets;
-
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
-
-public class ConditionStateEnumFactory implements EnumFactory {
-
- public ConditionState fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("active".equals(codeString))
- return ConditionState.ACTIVE;
- if ("inactive".equals(codeString))
- return ConditionState.INACTIVE;
- if ("resolved".equals(codeString))
- return ConditionState.RESOLVED;
- throw new IllegalArgumentException("Unknown ConditionState code '"+codeString+"'");
- }
-
- public String toCode(ConditionState code) {
- if (code == ConditionState.ACTIVE)
- return "active";
- if (code == ConditionState.INACTIVE)
- return "inactive";
- if (code == ConditionState.RESOLVED)
- return "resolved";
- return "?";
- }
-
- public String toSystem(ConditionState code) {
- return code.getSystem();
- }
-
-}
-
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ConformanceExpectationEnumFactory.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ConformanceExpectationEnumFactory.java
deleted file mode 100644
index 6f357c84e1b..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ConformanceExpectationEnumFactory.java
+++ /dev/null
@@ -1,70 +0,0 @@
-package org.hl7.fhir.dstu21.model.valuesets;
-
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
-
-public class ConformanceExpectationEnumFactory implements EnumFactory {
-
- public ConformanceExpectation fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("SHALL".equals(codeString))
- return ConformanceExpectation.SHALL;
- if ("SHOULD".equals(codeString))
- return ConformanceExpectation.SHOULD;
- if ("MAY".equals(codeString))
- return ConformanceExpectation.MAY;
- if ("SHOULD-NOT".equals(codeString))
- return ConformanceExpectation.SHOULDNOT;
- throw new IllegalArgumentException("Unknown ConformanceExpectation code '"+codeString+"'");
- }
-
- public String toCode(ConformanceExpectation code) {
- if (code == ConformanceExpectation.SHALL)
- return "SHALL";
- if (code == ConformanceExpectation.SHOULD)
- return "SHOULD";
- if (code == ConformanceExpectation.MAY)
- return "MAY";
- if (code == ConformanceExpectation.SHOULDNOT)
- return "SHOULD-NOT";
- return "?";
- }
-
- public String toSystem(ConformanceExpectation code) {
- return code.getSystem();
- }
-
-}
-
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ContactentityTypeEnumFactory.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ContactentityTypeEnumFactory.java
deleted file mode 100644
index 58512592d90..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ContactentityTypeEnumFactory.java
+++ /dev/null
@@ -1,78 +0,0 @@
-package org.hl7.fhir.dstu21.model.valuesets;
-
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
-
-public class ContactentityTypeEnumFactory implements EnumFactory {
-
- public ContactentityType fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("BILL".equals(codeString))
- return ContactentityType.BILL;
- if ("ADMIN".equals(codeString))
- return ContactentityType.ADMIN;
- if ("HR".equals(codeString))
- return ContactentityType.HR;
- if ("PAYOR".equals(codeString))
- return ContactentityType.PAYOR;
- if ("PATINF".equals(codeString))
- return ContactentityType.PATINF;
- if ("PRESS".equals(codeString))
- return ContactentityType.PRESS;
- throw new IllegalArgumentException("Unknown ContactentityType code '"+codeString+"'");
- }
-
- public String toCode(ContactentityType code) {
- if (code == ContactentityType.BILL)
- return "BILL";
- if (code == ContactentityType.ADMIN)
- return "ADMIN";
- if (code == ContactentityType.HR)
- return "HR";
- if (code == ContactentityType.PAYOR)
- return "PAYOR";
- if (code == ContactentityType.PATINF)
- return "PATINF";
- if (code == ContactentityType.PRESS)
- return "PRESS";
- return "?";
- }
-
- public String toSystem(ContactentityType code) {
- return code.getSystem();
- }
-
-}
-
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ContractActionEnumFactory.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ContractActionEnumFactory.java
deleted file mode 100644
index b869ecd8488..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ContractActionEnumFactory.java
+++ /dev/null
@@ -1,62 +0,0 @@
-package org.hl7.fhir.dstu21.model.valuesets;
-
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
-
-public class ContractActionEnumFactory implements EnumFactory {
-
- public ContractAction fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("action-a".equals(codeString))
- return ContractAction.ACTIONA;
- if ("action-b".equals(codeString))
- return ContractAction.ACTIONB;
- throw new IllegalArgumentException("Unknown ContractAction code '"+codeString+"'");
- }
-
- public String toCode(ContractAction code) {
- if (code == ContractAction.ACTIONA)
- return "action-a";
- if (code == ContractAction.ACTIONB)
- return "action-b";
- return "?";
- }
-
- public String toSystem(ContractAction code) {
- return code.getSystem();
- }
-
-}
-
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ContractActorroleEnumFactory.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ContractActorroleEnumFactory.java
deleted file mode 100644
index 93a5d292ec6..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ContractActorroleEnumFactory.java
+++ /dev/null
@@ -1,62 +0,0 @@
-package org.hl7.fhir.dstu21.model.valuesets;
-
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
-
-public class ContractActorroleEnumFactory implements EnumFactory {
-
- public ContractActorrole fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("practitioner".equals(codeString))
- return ContractActorrole.PRACTITIONER;
- if ("patient".equals(codeString))
- return ContractActorrole.PATIENT;
- throw new IllegalArgumentException("Unknown ContractActorrole code '"+codeString+"'");
- }
-
- public String toCode(ContractActorrole code) {
- if (code == ContractActorrole.PRACTITIONER)
- return "practitioner";
- if (code == ContractActorrole.PATIENT)
- return "patient";
- return "?";
- }
-
- public String toSystem(ContractActorrole code) {
- return code.getSystem();
- }
-
-}
-
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ContractSubtypeEnumFactory.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ContractSubtypeEnumFactory.java
deleted file mode 100644
index 64bef2872d2..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ContractSubtypeEnumFactory.java
+++ /dev/null
@@ -1,62 +0,0 @@
-package org.hl7.fhir.dstu21.model.valuesets;
-
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
-
-public class ContractSubtypeEnumFactory implements EnumFactory {
-
- public ContractSubtype fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("disclosure-CA".equals(codeString))
- return ContractSubtype.DISCLOSURECA;
- if ("disclosure-US".equals(codeString))
- return ContractSubtype.DISCLOSUREUS;
- throw new IllegalArgumentException("Unknown ContractSubtype code '"+codeString+"'");
- }
-
- public String toCode(ContractSubtype code) {
- if (code == ContractSubtype.DISCLOSURECA)
- return "disclosure-CA";
- if (code == ContractSubtype.DISCLOSUREUS)
- return "disclosure-US";
- return "?";
- }
-
- public String toSystem(ContractSubtype code) {
- return code.getSystem();
- }
-
-}
-
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ContractTermSubtypeEnumFactory.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ContractTermSubtypeEnumFactory.java
deleted file mode 100644
index fb1546b9bd7..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ContractTermSubtypeEnumFactory.java
+++ /dev/null
@@ -1,66 +0,0 @@
-package org.hl7.fhir.dstu21.model.valuesets;
-
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
-
-public class ContractTermSubtypeEnumFactory implements EnumFactory {
-
- public ContractTermSubtype fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("OralHealth-Basic".equals(codeString))
- return ContractTermSubtype.ORALHEALTHBASIC;
- if ("OralHealth-Major".equals(codeString))
- return ContractTermSubtype.ORALHEALTHMAJOR;
- if ("OralHealth-Orthodontic".equals(codeString))
- return ContractTermSubtype.ORALHEALTHORTHODONTIC;
- throw new IllegalArgumentException("Unknown ContractTermSubtype code '"+codeString+"'");
- }
-
- public String toCode(ContractTermSubtype code) {
- if (code == ContractTermSubtype.ORALHEALTHBASIC)
- return "OralHealth-Basic";
- if (code == ContractTermSubtype.ORALHEALTHMAJOR)
- return "OralHealth-Major";
- if (code == ContractTermSubtype.ORALHEALTHORTHODONTIC)
- return "OralHealth-Orthodontic";
- return "?";
- }
-
- public String toSystem(ContractTermSubtype code) {
- return code.getSystem();
- }
-
-}
-
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ContractTermTypeEnumFactory.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ContractTermTypeEnumFactory.java
deleted file mode 100644
index efe7334e682..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ContractTermTypeEnumFactory.java
+++ /dev/null
@@ -1,62 +0,0 @@
-package org.hl7.fhir.dstu21.model.valuesets;
-
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
-
-public class ContractTermTypeEnumFactory implements EnumFactory {
-
- public ContractTermType fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("OralHealth".equals(codeString))
- return ContractTermType.ORALHEALTH;
- if ("Vision".equals(codeString))
- return ContractTermType.VISION;
- throw new IllegalArgumentException("Unknown ContractTermType code '"+codeString+"'");
- }
-
- public String toCode(ContractTermType code) {
- if (code == ContractTermType.ORALHEALTH)
- return "OralHealth";
- if (code == ContractTermType.VISION)
- return "Vision";
- return "?";
- }
-
- public String toSystem(ContractTermType code) {
- return code.getSystem();
- }
-
-}
-
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ContractTypeEnumFactory.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ContractTypeEnumFactory.java
deleted file mode 100644
index 96b0d849a50..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ContractTypeEnumFactory.java
+++ /dev/null
@@ -1,62 +0,0 @@
-package org.hl7.fhir.dstu21.model.valuesets;
-
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
-
-public class ContractTypeEnumFactory implements EnumFactory {
-
- public ContractType fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("privacy".equals(codeString))
- return ContractType.PRIVACY;
- if ("disclosure".equals(codeString))
- return ContractType.DISCLOSURE;
- throw new IllegalArgumentException("Unknown ContractType code '"+codeString+"'");
- }
-
- public String toCode(ContractType code) {
- if (code == ContractType.PRIVACY)
- return "privacy";
- if (code == ContractType.DISCLOSURE)
- return "disclosure";
- return "?";
- }
-
- public String toSystem(ContractType code) {
- return code.getSystem();
- }
-
-}
-
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/DeviceActionEnumFactory.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/DeviceActionEnumFactory.java
deleted file mode 100644
index 0ee1c3dfbf9..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/DeviceActionEnumFactory.java
+++ /dev/null
@@ -1,66 +0,0 @@
-package org.hl7.fhir.dstu21.model.valuesets;
-
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
-
-public class DeviceActionEnumFactory implements EnumFactory {
-
- public DeviceAction fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("implanted".equals(codeString))
- return DeviceAction.IMPLANTED;
- if ("explanted".equals(codeString))
- return DeviceAction.EXPLANTED;
- if ("manipulated".equals(codeString))
- return DeviceAction.MANIPULATED;
- throw new IllegalArgumentException("Unknown DeviceAction code '"+codeString+"'");
- }
-
- public String toCode(DeviceAction code) {
- if (code == DeviceAction.IMPLANTED)
- return "implanted";
- if (code == DeviceAction.EXPLANTED)
- return "explanted";
- if (code == DeviceAction.MANIPULATED)
- return "manipulated";
- return "?";
- }
-
- public String toSystem(DeviceAction code) {
- return code.getSystem();
- }
-
-}
-
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/EncounterDietEnumFactory.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/EncounterDietEnumFactory.java
deleted file mode 100644
index 2572e1dddda..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/EncounterDietEnumFactory.java
+++ /dev/null
@@ -1,82 +0,0 @@
-package org.hl7.fhir.dstu21.model.valuesets;
-
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
-
-public class EncounterDietEnumFactory implements EnumFactory {
-
- public EncounterDiet fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("vegetarian".equals(codeString))
- return EncounterDiet.VEGETARIAN;
- if ("dairy-free".equals(codeString))
- return EncounterDiet.DAIRYFREE;
- if ("nut-free".equals(codeString))
- return EncounterDiet.NUTFREE;
- if ("gluten-free".equals(codeString))
- return EncounterDiet.GLUTENFREE;
- if ("vegan".equals(codeString))
- return EncounterDiet.VEGAN;
- if ("halal".equals(codeString))
- return EncounterDiet.HALAL;
- if ("kosher".equals(codeString))
- return EncounterDiet.KOSHER;
- throw new IllegalArgumentException("Unknown EncounterDiet code '"+codeString+"'");
- }
-
- public String toCode(EncounterDiet code) {
- if (code == EncounterDiet.VEGETARIAN)
- return "vegetarian";
- if (code == EncounterDiet.DAIRYFREE)
- return "dairy-free";
- if (code == EncounterDiet.NUTFREE)
- return "nut-free";
- if (code == EncounterDiet.GLUTENFREE)
- return "gluten-free";
- if (code == EncounterDiet.VEGAN)
- return "vegan";
- if (code == EncounterDiet.HALAL)
- return "halal";
- if (code == EncounterDiet.KOSHER)
- return "kosher";
- return "?";
- }
-
- public String toSystem(EncounterDiet code) {
- return code.getSystem();
- }
-
-}
-
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/EncounterPriorityEnumFactory.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/EncounterPriorityEnumFactory.java
deleted file mode 100644
index 92c1a95327e..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/EncounterPriorityEnumFactory.java
+++ /dev/null
@@ -1,74 +0,0 @@
-package org.hl7.fhir.dstu21.model.valuesets;
-
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
-
-public class EncounterPriorityEnumFactory implements EnumFactory {
-
- public EncounterPriority fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("imm".equals(codeString))
- return EncounterPriority.IMM;
- if ("emg".equals(codeString))
- return EncounterPriority.EMG;
- if ("urg".equals(codeString))
- return EncounterPriority.URG;
- if ("s-urg".equals(codeString))
- return EncounterPriority.SURG;
- if ("no-urg".equals(codeString))
- return EncounterPriority.NOURG;
- throw new IllegalArgumentException("Unknown EncounterPriority code '"+codeString+"'");
- }
-
- public String toCode(EncounterPriority code) {
- if (code == EncounterPriority.IMM)
- return "imm";
- if (code == EncounterPriority.EMG)
- return "emg";
- if (code == EncounterPriority.URG)
- return "urg";
- if (code == EncounterPriority.SURG)
- return "s-urg";
- if (code == EncounterPriority.NOURG)
- return "no-urg";
- return "?";
- }
-
- public String toSystem(EncounterPriority code) {
- return code.getSystem();
- }
-
-}
-
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/EncounterSpecialArrangementsEnumFactory.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/EncounterSpecialArrangementsEnumFactory.java
deleted file mode 100644
index ef97185f251..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/EncounterSpecialArrangementsEnumFactory.java
+++ /dev/null
@@ -1,74 +0,0 @@
-package org.hl7.fhir.dstu21.model.valuesets;
-
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
-
-public class EncounterSpecialArrangementsEnumFactory implements EnumFactory {
-
- public EncounterSpecialArrangements fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("wheel".equals(codeString))
- return EncounterSpecialArrangements.WHEEL;
- if ("stret".equals(codeString))
- return EncounterSpecialArrangements.STRET;
- if ("int".equals(codeString))
- return EncounterSpecialArrangements.INT;
- if ("att".equals(codeString))
- return EncounterSpecialArrangements.ATT;
- if ("dog".equals(codeString))
- return EncounterSpecialArrangements.DOG;
- throw new IllegalArgumentException("Unknown EncounterSpecialArrangements code '"+codeString+"'");
- }
-
- public String toCode(EncounterSpecialArrangements code) {
- if (code == EncounterSpecialArrangements.WHEEL)
- return "wheel";
- if (code == EncounterSpecialArrangements.STRET)
- return "stret";
- if (code == EncounterSpecialArrangements.INT)
- return "int";
- if (code == EncounterSpecialArrangements.ATT)
- return "att";
- if (code == EncounterSpecialArrangements.DOG)
- return "dog";
- return "?";
- }
-
- public String toSystem(EncounterSpecialArrangements code) {
- return code.getSystem();
- }
-
-}
-
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/EncounterTypeEnumFactory.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/EncounterTypeEnumFactory.java
deleted file mode 100644
index 27709f13a23..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/EncounterTypeEnumFactory.java
+++ /dev/null
@@ -1,70 +0,0 @@
-package org.hl7.fhir.dstu21.model.valuesets;
-
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
-
-public class EncounterTypeEnumFactory implements EnumFactory {
-
- public EncounterType fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("ADMS".equals(codeString))
- return EncounterType.ADMS;
- if ("BD/BM-clin".equals(codeString))
- return EncounterType.BD_BMCLIN;
- if ("CCS60".equals(codeString))
- return EncounterType.CCS60;
- if ("OKI".equals(codeString))
- return EncounterType.OKI;
- throw new IllegalArgumentException("Unknown EncounterType code '"+codeString+"'");
- }
-
- public String toCode(EncounterType code) {
- if (code == EncounterType.ADMS)
- return "ADMS";
- if (code == EncounterType.BD_BMCLIN)
- return "BD/BM-clin";
- if (code == EncounterType.CCS60)
- return "CCS60";
- if (code == EncounterType.OKI)
- return "OKI";
- return "?";
- }
-
- public String toSystem(EncounterType code) {
- return code.getSystem();
- }
-
-}
-
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/EntformulaAdditiveEnumFactory.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/EntformulaAdditiveEnumFactory.java
deleted file mode 100644
index 38ab25869b6..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/EntformulaAdditiveEnumFactory.java
+++ /dev/null
@@ -1,74 +0,0 @@
-package org.hl7.fhir.dstu21.model.valuesets;
-
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
-
-public class EntformulaAdditiveEnumFactory implements EnumFactory {
-
- public EntformulaAdditive fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("lipid".equals(codeString))
- return EntformulaAdditive.LIPID;
- if ("protein".equals(codeString))
- return EntformulaAdditive.PROTEIN;
- if ("carbohydrate".equals(codeString))
- return EntformulaAdditive.CARBOHYDRATE;
- if ("fiber".equals(codeString))
- return EntformulaAdditive.FIBER;
- if ("water".equals(codeString))
- return EntformulaAdditive.WATER;
- throw new IllegalArgumentException("Unknown EntformulaAdditive code '"+codeString+"'");
- }
-
- public String toCode(EntformulaAdditive code) {
- if (code == EntformulaAdditive.LIPID)
- return "lipid";
- if (code == EntformulaAdditive.PROTEIN)
- return "protein";
- if (code == EntformulaAdditive.CARBOHYDRATE)
- return "carbohydrate";
- if (code == EntformulaAdditive.FIBER)
- return "fiber";
- if (code == EntformulaAdditive.WATER)
- return "water";
- return "?";
- }
-
- public String toSystem(EntformulaAdditive code) {
- return code.getSystem();
- }
-
-}
-
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/FlagCategoryEnumFactory.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/FlagCategoryEnumFactory.java
deleted file mode 100644
index 0b78863e74b..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/FlagCategoryEnumFactory.java
+++ /dev/null
@@ -1,74 +0,0 @@
-package org.hl7.fhir.dstu21.model.valuesets;
-
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
-
-public class FlagCategoryEnumFactory implements EnumFactory {
-
- public FlagCategory fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("diet".equals(codeString))
- return FlagCategory.DIET;
- if ("drug".equals(codeString))
- return FlagCategory.DRUG;
- if ("lab".equals(codeString))
- return FlagCategory.LAB;
- if ("admin".equals(codeString))
- return FlagCategory.ADMIN;
- if ("contact".equals(codeString))
- return FlagCategory.CONTACT;
- throw new IllegalArgumentException("Unknown FlagCategory code '"+codeString+"'");
- }
-
- public String toCode(FlagCategory code) {
- if (code == FlagCategory.DIET)
- return "diet";
- if (code == FlagCategory.DRUG)
- return "drug";
- if (code == FlagCategory.LAB)
- return "lab";
- if (code == FlagCategory.ADMIN)
- return "admin";
- if (code == FlagCategory.CONTACT)
- return "contact";
- return "?";
- }
-
- public String toSystem(FlagCategory code) {
- return code.getSystem();
- }
-
-}
-
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/FlagPriorityEnumFactory.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/FlagPriorityEnumFactory.java
deleted file mode 100644
index 2096d9232f6..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/FlagPriorityEnumFactory.java
+++ /dev/null
@@ -1,70 +0,0 @@
-package org.hl7.fhir.dstu21.model.valuesets;
-
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
-
-public class FlagPriorityEnumFactory implements EnumFactory {
-
- public FlagPriority fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("PN".equals(codeString))
- return FlagPriority.PN;
- if ("PL".equals(codeString))
- return FlagPriority.PL;
- if ("PM".equals(codeString))
- return FlagPriority.PM;
- if ("PH".equals(codeString))
- return FlagPriority.PH;
- throw new IllegalArgumentException("Unknown FlagPriority code '"+codeString+"'");
- }
-
- public String toCode(FlagPriority code) {
- if (code == FlagPriority.PN)
- return "PN";
- if (code == FlagPriority.PL)
- return "PL";
- if (code == FlagPriority.PM)
- return "PM";
- if (code == FlagPriority.PH)
- return "PH";
- return "?";
- }
-
- public String toSystem(FlagPriority code) {
- return code.getSystem();
- }
-
-}
-
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/FmConditionsEnumFactory.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/FmConditionsEnumFactory.java
deleted file mode 100644
index b4d9f1ce7f4..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/FmConditionsEnumFactory.java
+++ /dev/null
@@ -1,58 +0,0 @@
-package org.hl7.fhir.dstu21.model.valuesets;
-
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
-
-public class FmConditionsEnumFactory implements EnumFactory {
-
- public FmConditions fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("123987".equals(codeString))
- return FmConditions._123987;
- throw new IllegalArgumentException("Unknown FmConditions code '"+codeString+"'");
- }
-
- public String toCode(FmConditions code) {
- if (code == FmConditions._123987)
- return "123987";
- return "?";
- }
-
- public String toSystem(FmConditions code) {
- return code.getSystem();
- }
-
-}
-
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/FormsEnumFactory.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/FormsEnumFactory.java
deleted file mode 100644
index 9942f9ec301..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/FormsEnumFactory.java
+++ /dev/null
@@ -1,62 +0,0 @@
-package org.hl7.fhir.dstu21.model.valuesets;
-
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
-
-public class FormsEnumFactory implements EnumFactory {
-
- public Forms fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("1".equals(codeString))
- return Forms._1;
- if ("2".equals(codeString))
- return Forms._2;
- throw new IllegalArgumentException("Unknown Forms code '"+codeString+"'");
- }
-
- public String toCode(Forms code) {
- if (code == Forms._1)
- return "1";
- if (code == Forms._2)
- return "2";
- return "?";
- }
-
- public String toSystem(Forms code) {
- return code.getSystem();
- }
-
-}
-
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/FundsreserveEnumFactory.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/FundsreserveEnumFactory.java
deleted file mode 100644
index b33f81c5428..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/FundsreserveEnumFactory.java
+++ /dev/null
@@ -1,66 +0,0 @@
-package org.hl7.fhir.dstu21.model.valuesets;
-
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
-
-public class FundsreserveEnumFactory implements EnumFactory {
-
- public Fundsreserve fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("patient".equals(codeString))
- return Fundsreserve.PATIENT;
- if ("provider".equals(codeString))
- return Fundsreserve.PROVIDER;
- if ("none".equals(codeString))
- return Fundsreserve.NONE;
- throw new IllegalArgumentException("Unknown Fundsreserve code '"+codeString+"'");
- }
-
- public String toCode(Fundsreserve code) {
- if (code == Fundsreserve.PATIENT)
- return "patient";
- if (code == Fundsreserve.PROVIDER)
- return "provider";
- if (code == Fundsreserve.NONE)
- return "none";
- return "?";
- }
-
- public String toSystem(Fundsreserve code) {
- return code.getSystem();
- }
-
-}
-
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/GoalAcceptanceStatusEnumFactory.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/GoalAcceptanceStatusEnumFactory.java
deleted file mode 100644
index 0b18db7a424..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/GoalAcceptanceStatusEnumFactory.java
+++ /dev/null
@@ -1,66 +0,0 @@
-package org.hl7.fhir.dstu21.model.valuesets;
-
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
-
-public class GoalAcceptanceStatusEnumFactory implements EnumFactory {
-
- public GoalAcceptanceStatus fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("agree".equals(codeString))
- return GoalAcceptanceStatus.AGREE;
- if ("disagree".equals(codeString))
- return GoalAcceptanceStatus.DISAGREE;
- if ("pending".equals(codeString))
- return GoalAcceptanceStatus.PENDING;
- throw new IllegalArgumentException("Unknown GoalAcceptanceStatus code '"+codeString+"'");
- }
-
- public String toCode(GoalAcceptanceStatus code) {
- if (code == GoalAcceptanceStatus.AGREE)
- return "agree";
- if (code == GoalAcceptanceStatus.DISAGREE)
- return "disagree";
- if (code == GoalAcceptanceStatus.PENDING)
- return "pending";
- return "?";
- }
-
- public String toSystem(GoalAcceptanceStatus code) {
- return code.getSystem();
- }
-
-}
-
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/GoalCategoryEnumFactory.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/GoalCategoryEnumFactory.java
deleted file mode 100644
index 44c0c592ae3..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/GoalCategoryEnumFactory.java
+++ /dev/null
@@ -1,74 +0,0 @@
-package org.hl7.fhir.dstu21.model.valuesets;
-
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
-
-public class GoalCategoryEnumFactory implements EnumFactory {
-
- public GoalCategory fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("dietary".equals(codeString))
- return GoalCategory.DIETARY;
- if ("safety".equals(codeString))
- return GoalCategory.SAFETY;
- if ("behavioral".equals(codeString))
- return GoalCategory.BEHAVIORAL;
- if ("nursing".equals(codeString))
- return GoalCategory.NURSING;
- if ("physiotherapy".equals(codeString))
- return GoalCategory.PHYSIOTHERAPY;
- throw new IllegalArgumentException("Unknown GoalCategory code '"+codeString+"'");
- }
-
- public String toCode(GoalCategory code) {
- if (code == GoalCategory.DIETARY)
- return "dietary";
- if (code == GoalCategory.SAFETY)
- return "safety";
- if (code == GoalCategory.BEHAVIORAL)
- return "behavioral";
- if (code == GoalCategory.NURSING)
- return "nursing";
- if (code == GoalCategory.PHYSIOTHERAPY)
- return "physiotherapy";
- return "?";
- }
-
- public String toSystem(GoalCategory code) {
- return code.getSystem();
- }
-
-}
-
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/GoalPriorityEnumFactory.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/GoalPriorityEnumFactory.java
deleted file mode 100644
index decf0a3dbdc..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/GoalPriorityEnumFactory.java
+++ /dev/null
@@ -1,66 +0,0 @@
-package org.hl7.fhir.dstu21.model.valuesets;
-
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
-
-public class GoalPriorityEnumFactory implements EnumFactory {
-
- public GoalPriority fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("high".equals(codeString))
- return GoalPriority.HIGH;
- if ("medium".equals(codeString))
- return GoalPriority.MEDIUM;
- if ("low".equals(codeString))
- return GoalPriority.LOW;
- throw new IllegalArgumentException("Unknown GoalPriority code '"+codeString+"'");
- }
-
- public String toCode(GoalPriority code) {
- if (code == GoalPriority.HIGH)
- return "high";
- if (code == GoalPriority.MEDIUM)
- return "medium";
- if (code == GoalPriority.LOW)
- return "low";
- return "?";
- }
-
- public String toSystem(GoalPriority code) {
- return code.getSystem();
- }
-
-}
-
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/GoalRelationshipTypeEnumFactory.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/GoalRelationshipTypeEnumFactory.java
deleted file mode 100644
index 49eaf6caf0c..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/GoalRelationshipTypeEnumFactory.java
+++ /dev/null
@@ -1,74 +0,0 @@
-package org.hl7.fhir.dstu21.model.valuesets;
-
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
-
-public class GoalRelationshipTypeEnumFactory implements EnumFactory {
-
- public GoalRelationshipType fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("predecessor".equals(codeString))
- return GoalRelationshipType.PREDECESSOR;
- if ("successor".equals(codeString))
- return GoalRelationshipType.SUCCESSOR;
- if ("replacement".equals(codeString))
- return GoalRelationshipType.REPLACEMENT;
- if ("component".equals(codeString))
- return GoalRelationshipType.COMPONENT;
- if ("other".equals(codeString))
- return GoalRelationshipType.OTHER;
- throw new IllegalArgumentException("Unknown GoalRelationshipType code '"+codeString+"'");
- }
-
- public String toCode(GoalRelationshipType code) {
- if (code == GoalRelationshipType.PREDECESSOR)
- return "predecessor";
- if (code == GoalRelationshipType.SUCCESSOR)
- return "successor";
- if (code == GoalRelationshipType.REPLACEMENT)
- return "replacement";
- if (code == GoalRelationshipType.COMPONENT)
- return "component";
- if (code == GoalRelationshipType.OTHER)
- return "other";
- return "?";
- }
-
- public String toSystem(GoalRelationshipType code) {
- return code.getSystem();
- }
-
-}
-
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/GoalStatusReasonEnumFactory.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/GoalStatusReasonEnumFactory.java
deleted file mode 100644
index 889a95c46eb..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/GoalStatusReasonEnumFactory.java
+++ /dev/null
@@ -1,70 +0,0 @@
-package org.hl7.fhir.dstu21.model.valuesets;
-
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
-
-public class GoalStatusReasonEnumFactory implements EnumFactory {
-
- public GoalStatusReason fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("surgery".equals(codeString))
- return GoalStatusReason.SURGERY;
- if ("life-event".equals(codeString))
- return GoalStatusReason.LIFEEVENT;
- if ("replaced".equals(codeString))
- return GoalStatusReason.REPLACED;
- if ("patient-request".equals(codeString))
- return GoalStatusReason.PATIENTREQUEST;
- throw new IllegalArgumentException("Unknown GoalStatusReason code '"+codeString+"'");
- }
-
- public String toCode(GoalStatusReason code) {
- if (code == GoalStatusReason.SURGERY)
- return "surgery";
- if (code == GoalStatusReason.LIFEEVENT)
- return "life-event";
- if (code == GoalStatusReason.REPLACED)
- return "replaced";
- if (code == GoalStatusReason.PATIENTREQUEST)
- return "patient-request";
- return "?";
- }
-
- public String toSystem(GoalStatusReason code) {
- return code.getSystem();
- }
-
-}
-
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ImmunizationRecommendationDateCriterionEnumFactory.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ImmunizationRecommendationDateCriterionEnumFactory.java
deleted file mode 100644
index 541b3b5023a..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ImmunizationRecommendationDateCriterionEnumFactory.java
+++ /dev/null
@@ -1,74 +0,0 @@
-package org.hl7.fhir.dstu21.model.valuesets;
-
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
-
-public class ImmunizationRecommendationDateCriterionEnumFactory implements EnumFactory {
-
- public ImmunizationRecommendationDateCriterion fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("due".equals(codeString))
- return ImmunizationRecommendationDateCriterion.DUE;
- if ("recommended".equals(codeString))
- return ImmunizationRecommendationDateCriterion.RECOMMENDED;
- if ("earliest".equals(codeString))
- return ImmunizationRecommendationDateCriterion.EARLIEST;
- if ("overdue".equals(codeString))
- return ImmunizationRecommendationDateCriterion.OVERDUE;
- if ("latest".equals(codeString))
- return ImmunizationRecommendationDateCriterion.LATEST;
- throw new IllegalArgumentException("Unknown ImmunizationRecommendationDateCriterion code '"+codeString+"'");
- }
-
- public String toCode(ImmunizationRecommendationDateCriterion code) {
- if (code == ImmunizationRecommendationDateCriterion.DUE)
- return "due";
- if (code == ImmunizationRecommendationDateCriterion.RECOMMENDED)
- return "recommended";
- if (code == ImmunizationRecommendationDateCriterion.EARLIEST)
- return "earliest";
- if (code == ImmunizationRecommendationDateCriterion.OVERDUE)
- return "overdue";
- if (code == ImmunizationRecommendationDateCriterion.LATEST)
- return "latest";
- return "?";
- }
-
- public String toSystem(ImmunizationRecommendationDateCriterion code) {
- return code.getSystem();
- }
-
-}
-
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ImmunizationRecommendationStatusEnumFactory.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ImmunizationRecommendationStatusEnumFactory.java
deleted file mode 100644
index 61984b4a1ec..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ImmunizationRecommendationStatusEnumFactory.java
+++ /dev/null
@@ -1,62 +0,0 @@
-package org.hl7.fhir.dstu21.model.valuesets;
-
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
-
-public class ImmunizationRecommendationStatusEnumFactory implements EnumFactory {
-
- public ImmunizationRecommendationStatus fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("due".equals(codeString))
- return ImmunizationRecommendationStatus.DUE;
- if ("overdue".equals(codeString))
- return ImmunizationRecommendationStatus.OVERDUE;
- throw new IllegalArgumentException("Unknown ImmunizationRecommendationStatus code '"+codeString+"'");
- }
-
- public String toCode(ImmunizationRecommendationStatus code) {
- if (code == ImmunizationRecommendationStatus.DUE)
- return "due";
- if (code == ImmunizationRecommendationStatus.OVERDUE)
- return "overdue";
- return "?";
- }
-
- public String toSystem(ImmunizationRecommendationStatus code) {
- return code.getSystem();
- }
-
-}
-
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/InterventionEnumFactory.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/InterventionEnumFactory.java
deleted file mode 100644
index 6377a438e72..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/InterventionEnumFactory.java
+++ /dev/null
@@ -1,62 +0,0 @@
-package org.hl7.fhir.dstu21.model.valuesets;
-
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
-
-public class InterventionEnumFactory implements EnumFactory {
-
- public Intervention fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("unknown".equals(codeString))
- return Intervention.UNKNOWN;
- if ("other".equals(codeString))
- return Intervention.OTHER;
- throw new IllegalArgumentException("Unknown Intervention code '"+codeString+"'");
- }
-
- public String toCode(Intervention code) {
- if (code == Intervention.UNKNOWN)
- return "unknown";
- if (code == Intervention.OTHER)
- return "other";
- return "?";
- }
-
- public String toSystem(Intervention code) {
- return code.getSystem();
- }
-
-}
-
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/LOINC480020AnswerlistEnumFactory.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/LOINC480020AnswerlistEnumFactory.java
deleted file mode 100644
index bec3f11508f..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/LOINC480020AnswerlistEnumFactory.java
+++ /dev/null
@@ -1,82 +0,0 @@
-package org.hl7.fhir.dstu21.model.valuesets;
-
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
-
-public class LOINC480020AnswerlistEnumFactory implements EnumFactory {
-
- public LOINC480020Answerlist fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("LA6683-2".equals(codeString))
- return LOINC480020Answerlist.LA66832;
- if ("LA6684-0".equals(codeString))
- return LOINC480020Answerlist.LA66840;
- if ("LA6685-7".equals(codeString))
- return LOINC480020Answerlist.LA66857;
- if ("LA18194-3".equals(codeString))
- return LOINC480020Answerlist.LA181943;
- if ("LA18195-0".equals(codeString))
- return LOINC480020Answerlist.LA181950;
- if ("LA18196-8".equals(codeString))
- return LOINC480020Answerlist.LA181968;
- if ("LA18197-6".equals(codeString))
- return LOINC480020Answerlist.LA181976;
- throw new IllegalArgumentException("Unknown LOINC480020Answerlist code '"+codeString+"'");
- }
-
- public String toCode(LOINC480020Answerlist code) {
- if (code == LOINC480020Answerlist.LA66832)
- return "LA6683-2";
- if (code == LOINC480020Answerlist.LA66840)
- return "LA6684-0";
- if (code == LOINC480020Answerlist.LA66857)
- return "LA6685-7";
- if (code == LOINC480020Answerlist.LA181943)
- return "LA18194-3";
- if (code == LOINC480020Answerlist.LA181950)
- return "LA18195-0";
- if (code == LOINC480020Answerlist.LA181968)
- return "LA18196-8";
- if (code == LOINC480020Answerlist.LA181976)
- return "LA18197-6";
- return "?";
- }
-
- public String toSystem(LOINC480020Answerlist code) {
- return code.getSystem();
- }
-
-}
-
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/LOINC480194AnswerlistEnumFactory.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/LOINC480194AnswerlistEnumFactory.java
deleted file mode 100644
index 7277982b4bf..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/LOINC480194AnswerlistEnumFactory.java
+++ /dev/null
@@ -1,82 +0,0 @@
-package org.hl7.fhir.dstu21.model.valuesets;
-
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
-
-public class LOINC480194AnswerlistEnumFactory implements EnumFactory {
-
- public LOINC480194Answerlist fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("LA9658-1".equals(codeString))
- return LOINC480194Answerlist.LA96581;
- if ("LA6692-3".equals(codeString))
- return LOINC480194Answerlist.LA66923;
- if ("LA6686-5".equals(codeString))
- return LOINC480194Answerlist.LA66865;
- if ("LA6687-3".equals(codeString))
- return LOINC480194Answerlist.LA66873;
- if ("LA6688-1".equals(codeString))
- return LOINC480194Answerlist.LA66881;
- if ("LA6689-9".equals(codeString))
- return LOINC480194Answerlist.LA66899;
- if ("LA6690-7".equals(codeString))
- return LOINC480194Answerlist.LA66907;
- throw new IllegalArgumentException("Unknown LOINC480194Answerlist code '"+codeString+"'");
- }
-
- public String toCode(LOINC480194Answerlist code) {
- if (code == LOINC480194Answerlist.LA96581)
- return "LA9658-1";
- if (code == LOINC480194Answerlist.LA66923)
- return "LA6692-3";
- if (code == LOINC480194Answerlist.LA66865)
- return "LA6686-5";
- if (code == LOINC480194Answerlist.LA66873)
- return "LA6687-3";
- if (code == LOINC480194Answerlist.LA66881)
- return "LA6688-1";
- if (code == LOINC480194Answerlist.LA66899)
- return "LA6689-9";
- if (code == LOINC480194Answerlist.LA66907)
- return "LA6690-7";
- return "?";
- }
-
- public String toSystem(LOINC480194Answerlist code) {
- return code.getSystem();
- }
-
-}
-
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/LOINC530345AnswerlistEnumFactory.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/LOINC530345AnswerlistEnumFactory.java
deleted file mode 100644
index 2fc040ed386..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/LOINC530345AnswerlistEnumFactory.java
+++ /dev/null
@@ -1,74 +0,0 @@
-package org.hl7.fhir.dstu21.model.valuesets;
-
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
-
-public class LOINC530345AnswerlistEnumFactory implements EnumFactory {
-
- public LOINC530345Answerlist fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("LA6703-8".equals(codeString))
- return LOINC530345Answerlist.LA67038;
- if ("LA6704-6".equals(codeString))
- return LOINC530345Answerlist.LA67046;
- if ("LA6705-3".equals(codeString))
- return LOINC530345Answerlist.LA67053;
- if ("LA6706-1".equals(codeString))
- return LOINC530345Answerlist.LA67061;
- if ("LA6707-9".equals(codeString))
- return LOINC530345Answerlist.LA67079;
- throw new IllegalArgumentException("Unknown LOINC530345Answerlist code '"+codeString+"'");
- }
-
- public String toCode(LOINC530345Answerlist code) {
- if (code == LOINC530345Answerlist.LA67038)
- return "LA6703-8";
- if (code == LOINC530345Answerlist.LA67046)
- return "LA6704-6";
- if (code == LOINC530345Answerlist.LA67053)
- return "LA6705-3";
- if (code == LOINC530345Answerlist.LA67061)
- return "LA6706-1";
- if (code == LOINC530345Answerlist.LA67079)
- return "LA6707-9";
- return "?";
- }
-
- public String toSystem(LOINC530345Answerlist code) {
- return code.getSystem();
- }
-
-}
-
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/LOINC530378AnswerlistEnumFactory.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/LOINC530378AnswerlistEnumFactory.java
deleted file mode 100644
index 311e6f700ca..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/LOINC530378AnswerlistEnumFactory.java
+++ /dev/null
@@ -1,74 +0,0 @@
-package org.hl7.fhir.dstu21.model.valuesets;
-
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
-
-public class LOINC530378AnswerlistEnumFactory implements EnumFactory {
-
- public LOINC530378Answerlist fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("LA6668-3".equals(codeString))
- return LOINC530378Answerlist.LA66683;
- if ("LA6669-1".equals(codeString))
- return LOINC530378Answerlist.LA66691;
- if ("LA6682-4".equals(codeString))
- return LOINC530378Answerlist.LA66824;
- if ("LA6675-8".equals(codeString))
- return LOINC530378Answerlist.LA66758;
- if ("LA6674-1".equals(codeString))
- return LOINC530378Answerlist.LA66741;
- throw new IllegalArgumentException("Unknown LOINC530378Answerlist code '"+codeString+"'");
- }
-
- public String toCode(LOINC530378Answerlist code) {
- if (code == LOINC530378Answerlist.LA66683)
- return "LA6668-3";
- if (code == LOINC530378Answerlist.LA66691)
- return "LA6669-1";
- if (code == LOINC530378Answerlist.LA66824)
- return "LA6682-4";
- if (code == LOINC530378Answerlist.LA66758)
- return "LA6675-8";
- if (code == LOINC530378Answerlist.LA66741)
- return "LA6674-1";
- return "?";
- }
-
- public String toSystem(LOINC530378Answerlist code) {
- return code.getSystem();
- }
-
-}
-
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ListEmptyReasonEnumFactory.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ListEmptyReasonEnumFactory.java
deleted file mode 100644
index 90850f247c0..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ListEmptyReasonEnumFactory.java
+++ /dev/null
@@ -1,78 +0,0 @@
-package org.hl7.fhir.dstu21.model.valuesets;
-
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
-
-public class ListEmptyReasonEnumFactory implements EnumFactory {
-
- public ListEmptyReason fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("nilknown".equals(codeString))
- return ListEmptyReason.NILKNOWN;
- if ("notasked".equals(codeString))
- return ListEmptyReason.NOTASKED;
- if ("withheld".equals(codeString))
- return ListEmptyReason.WITHHELD;
- if ("unavailable".equals(codeString))
- return ListEmptyReason.UNAVAILABLE;
- if ("notstarted".equals(codeString))
- return ListEmptyReason.NOTSTARTED;
- if ("closed".equals(codeString))
- return ListEmptyReason.CLOSED;
- throw new IllegalArgumentException("Unknown ListEmptyReason code '"+codeString+"'");
- }
-
- public String toCode(ListEmptyReason code) {
- if (code == ListEmptyReason.NILKNOWN)
- return "nilknown";
- if (code == ListEmptyReason.NOTASKED)
- return "notasked";
- if (code == ListEmptyReason.WITHHELD)
- return "withheld";
- if (code == ListEmptyReason.UNAVAILABLE)
- return "unavailable";
- if (code == ListEmptyReason.NOTSTARTED)
- return "notstarted";
- if (code == ListEmptyReason.CLOSED)
- return "closed";
- return "?";
- }
-
- public String toSystem(ListEmptyReason code) {
- return code.getSystem();
- }
-
-}
-
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ListItemFlagEnumFactory.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ListItemFlagEnumFactory.java
deleted file mode 100644
index 4d65da71ae8..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ListItemFlagEnumFactory.java
+++ /dev/null
@@ -1,78 +0,0 @@
-package org.hl7.fhir.dstu21.model.valuesets;
-
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
-
-public class ListItemFlagEnumFactory implements EnumFactory {
-
- public ListItemFlag fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("01".equals(codeString))
- return ListItemFlag._01;
- if ("02".equals(codeString))
- return ListItemFlag._02;
- if ("03".equals(codeString))
- return ListItemFlag._03;
- if ("04".equals(codeString))
- return ListItemFlag._04;
- if ("05".equals(codeString))
- return ListItemFlag._05;
- if ("06".equals(codeString))
- return ListItemFlag._06;
- throw new IllegalArgumentException("Unknown ListItemFlag code '"+codeString+"'");
- }
-
- public String toCode(ListItemFlag code) {
- if (code == ListItemFlag._01)
- return "01";
- if (code == ListItemFlag._02)
- return "02";
- if (code == ListItemFlag._03)
- return "03";
- if (code == ListItemFlag._04)
- return "04";
- if (code == ListItemFlag._05)
- return "05";
- if (code == ListItemFlag._06)
- return "06";
- return "?";
- }
-
- public String toSystem(ListItemFlag code) {
- return code.getSystem();
- }
-
-}
-
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ListOrderEnumFactory.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ListOrderEnumFactory.java
deleted file mode 100644
index 66ebcc3923a..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ListOrderEnumFactory.java
+++ /dev/null
@@ -1,86 +0,0 @@
-package org.hl7.fhir.dstu21.model.valuesets;
-
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
-
-public class ListOrderEnumFactory implements EnumFactory {
-
- public ListOrder fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("user".equals(codeString))
- return ListOrder.USER;
- if ("system".equals(codeString))
- return ListOrder.SYSTEM;
- if ("event-date".equals(codeString))
- return ListOrder.EVENTDATE;
- if ("entry-date".equals(codeString))
- return ListOrder.ENTRYDATE;
- if ("priority".equals(codeString))
- return ListOrder.PRIORITY;
- if ("alphabetic".equals(codeString))
- return ListOrder.ALPHABETIC;
- if ("category".equals(codeString))
- return ListOrder.CATEGORY;
- if ("patient".equals(codeString))
- return ListOrder.PATIENT;
- throw new IllegalArgumentException("Unknown ListOrder code '"+codeString+"'");
- }
-
- public String toCode(ListOrder code) {
- if (code == ListOrder.USER)
- return "user";
- if (code == ListOrder.SYSTEM)
- return "system";
- if (code == ListOrder.EVENTDATE)
- return "event-date";
- if (code == ListOrder.ENTRYDATE)
- return "entry-date";
- if (code == ListOrder.PRIORITY)
- return "priority";
- if (code == ListOrder.ALPHABETIC)
- return "alphabetic";
- if (code == ListOrder.CATEGORY)
- return "category";
- if (code == ListOrder.PATIENT)
- return "patient";
- return "?";
- }
-
- public String toSystem(ListOrder code) {
- return code.getSystem();
- }
-
-}
-
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/MessageReasonEncounterEnumFactory.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/MessageReasonEncounterEnumFactory.java
deleted file mode 100644
index 99cadbe41c6..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/MessageReasonEncounterEnumFactory.java
+++ /dev/null
@@ -1,78 +0,0 @@
-package org.hl7.fhir.dstu21.model.valuesets;
-
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
-
-public class MessageReasonEncounterEnumFactory implements EnumFactory {
-
- public MessageReasonEncounter fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("admit".equals(codeString))
- return MessageReasonEncounter.ADMIT;
- if ("discharge".equals(codeString))
- return MessageReasonEncounter.DISCHARGE;
- if ("absent".equals(codeString))
- return MessageReasonEncounter.ABSENT;
- if ("return".equals(codeString))
- return MessageReasonEncounter.RETURN;
- if ("moved".equals(codeString))
- return MessageReasonEncounter.MOVED;
- if ("edit".equals(codeString))
- return MessageReasonEncounter.EDIT;
- throw new IllegalArgumentException("Unknown MessageReasonEncounter code '"+codeString+"'");
- }
-
- public String toCode(MessageReasonEncounter code) {
- if (code == MessageReasonEncounter.ADMIT)
- return "admit";
- if (code == MessageReasonEncounter.DISCHARGE)
- return "discharge";
- if (code == MessageReasonEncounter.ABSENT)
- return "absent";
- if (code == MessageReasonEncounter.RETURN)
- return "return";
- if (code == MessageReasonEncounter.MOVED)
- return "moved";
- if (code == MessageReasonEncounter.EDIT)
- return "edit";
- return "?";
- }
-
- public String toSystem(MessageReasonEncounter code) {
- return code.getSystem();
- }
-
-}
-
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/MessageTransportEnumFactory.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/MessageTransportEnumFactory.java
deleted file mode 100644
index 56f6ce463cc..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/MessageTransportEnumFactory.java
+++ /dev/null
@@ -1,66 +0,0 @@
-package org.hl7.fhir.dstu21.model.valuesets;
-
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
-
-public class MessageTransportEnumFactory implements EnumFactory {
-
- public MessageTransport fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("http".equals(codeString))
- return MessageTransport.HTTP;
- if ("ftp".equals(codeString))
- return MessageTransport.FTP;
- if ("mllp".equals(codeString))
- return MessageTransport.MLLP;
- throw new IllegalArgumentException("Unknown MessageTransport code '"+codeString+"'");
- }
-
- public String toCode(MessageTransport code) {
- if (code == MessageTransport.HTTP)
- return "http";
- if (code == MessageTransport.FTP)
- return "ftp";
- if (code == MessageTransport.MLLP)
- return "mllp";
- return "?";
- }
-
- public String toSystem(MessageTransport code) {
- return code.getSystem();
- }
-
-}
-
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/MissingToothReasonEnumFactory.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/MissingToothReasonEnumFactory.java
deleted file mode 100644
index ee6accdbf8b..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/MissingToothReasonEnumFactory.java
+++ /dev/null
@@ -1,70 +0,0 @@
-package org.hl7.fhir.dstu21.model.valuesets;
-
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
-
-public class MissingToothReasonEnumFactory implements EnumFactory {
-
- public MissingToothReason fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("E".equals(codeString))
- return MissingToothReason.E;
- if ("C".equals(codeString))
- return MissingToothReason.C;
- if ("U".equals(codeString))
- return MissingToothReason.U;
- if ("O".equals(codeString))
- return MissingToothReason.O;
- throw new IllegalArgumentException("Unknown MissingToothReason code '"+codeString+"'");
- }
-
- public String toCode(MissingToothReason code) {
- if (code == MissingToothReason.E)
- return "E";
- if (code == MissingToothReason.C)
- return "C";
- if (code == MissingToothReason.U)
- return "U";
- if (code == MissingToothReason.O)
- return "O";
- return "?";
- }
-
- public String toSystem(MissingToothReason code) {
- return code.getSystem();
- }
-
-}
-
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ObjectTypeEnumFactory.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ObjectTypeEnumFactory.java
deleted file mode 100644
index 3bd955a5e3d..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ObjectTypeEnumFactory.java
+++ /dev/null
@@ -1,70 +0,0 @@
-package org.hl7.fhir.dstu21.model.valuesets;
-
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
-
-public class ObjectTypeEnumFactory implements EnumFactory {
-
- public ObjectType fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("1".equals(codeString))
- return ObjectType._1;
- if ("2".equals(codeString))
- return ObjectType._2;
- if ("3".equals(codeString))
- return ObjectType._3;
- if ("4".equals(codeString))
- return ObjectType._4;
- throw new IllegalArgumentException("Unknown ObjectType code '"+codeString+"'");
- }
-
- public String toCode(ObjectType code) {
- if (code == ObjectType._1)
- return "1";
- if (code == ObjectType._2)
- return "2";
- if (code == ObjectType._3)
- return "3";
- if (code == ObjectType._4)
- return "4";
- return "?";
- }
-
- public String toSystem(ObjectType code) {
- return code.getSystem();
- }
-
-}
-
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ObservationCategoryEnumFactory.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ObservationCategoryEnumFactory.java
deleted file mode 100644
index 8a7a3ce9a50..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ObservationCategoryEnumFactory.java
+++ /dev/null
@@ -1,86 +0,0 @@
-package org.hl7.fhir.dstu21.model.valuesets;
-
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
-
-public class ObservationCategoryEnumFactory implements EnumFactory {
-
- public ObservationCategory fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("social-history".equals(codeString))
- return ObservationCategory.SOCIALHISTORY;
- if ("vital-signs".equals(codeString))
- return ObservationCategory.VITALSIGNS;
- if ("imaging".equals(codeString))
- return ObservationCategory.IMAGING;
- if ("laboratory".equals(codeString))
- return ObservationCategory.LABORATORY;
- if ("procedure".equals(codeString))
- return ObservationCategory.PROCEDURE;
- if ("survey".equals(codeString))
- return ObservationCategory.SURVEY;
- if ("exam".equals(codeString))
- return ObservationCategory.EXAM;
- if ("therapy".equals(codeString))
- return ObservationCategory.THERAPY;
- throw new IllegalArgumentException("Unknown ObservationCategory code '"+codeString+"'");
- }
-
- public String toCode(ObservationCategory code) {
- if (code == ObservationCategory.SOCIALHISTORY)
- return "social-history";
- if (code == ObservationCategory.VITALSIGNS)
- return "vital-signs";
- if (code == ObservationCategory.IMAGING)
- return "imaging";
- if (code == ObservationCategory.LABORATORY)
- return "laboratory";
- if (code == ObservationCategory.PROCEDURE)
- return "procedure";
- if (code == ObservationCategory.SURVEY)
- return "survey";
- if (code == ObservationCategory.EXAM)
- return "exam";
- if (code == ObservationCategory.THERAPY)
- return "therapy";
- return "?";
- }
-
- public String toSystem(ObservationCategory code) {
- return code.getSystem();
- }
-
-}
-
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/OralProsthodonticMaterialEnumFactory.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/OralProsthodonticMaterialEnumFactory.java
deleted file mode 100644
index fd1bd0d5c65..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/OralProsthodonticMaterialEnumFactory.java
+++ /dev/null
@@ -1,70 +0,0 @@
-package org.hl7.fhir.dstu21.model.valuesets;
-
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
-
-public class OralProsthodonticMaterialEnumFactory implements EnumFactory {
-
- public OralProsthodonticMaterial fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("1".equals(codeString))
- return OralProsthodonticMaterial._1;
- if ("2".equals(codeString))
- return OralProsthodonticMaterial._2;
- if ("3".equals(codeString))
- return OralProsthodonticMaterial._3;
- if ("4".equals(codeString))
- return OralProsthodonticMaterial._4;
- throw new IllegalArgumentException("Unknown OralProsthodonticMaterial code '"+codeString+"'");
- }
-
- public String toCode(OralProsthodonticMaterial code) {
- if (code == OralProsthodonticMaterial._1)
- return "1";
- if (code == OralProsthodonticMaterial._2)
- return "2";
- if (code == OralProsthodonticMaterial._3)
- return "3";
- if (code == OralProsthodonticMaterial._4)
- return "4";
- return "?";
- }
-
- public String toSystem(OralProsthodonticMaterial code) {
- return code.getSystem();
- }
-
-}
-
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/PatientMpiMatchEnumFactory.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/PatientMpiMatchEnumFactory.java
deleted file mode 100644
index 347ed51ad57..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/PatientMpiMatchEnumFactory.java
+++ /dev/null
@@ -1,70 +0,0 @@
-package org.hl7.fhir.dstu21.model.valuesets;
-
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
-
-public class PatientMpiMatchEnumFactory implements EnumFactory {
-
- public PatientMpiMatch fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("certain".equals(codeString))
- return PatientMpiMatch.CERTAIN;
- if ("probable".equals(codeString))
- return PatientMpiMatch.PROBABLE;
- if ("possible".equals(codeString))
- return PatientMpiMatch.POSSIBLE;
- if ("certainly-not".equals(codeString))
- return PatientMpiMatch.CERTAINLYNOT;
- throw new IllegalArgumentException("Unknown PatientMpiMatch code '"+codeString+"'");
- }
-
- public String toCode(PatientMpiMatch code) {
- if (code == PatientMpiMatch.CERTAIN)
- return "certain";
- if (code == PatientMpiMatch.PROBABLE)
- return "probable";
- if (code == PatientMpiMatch.POSSIBLE)
- return "possible";
- if (code == PatientMpiMatch.CERTAINLYNOT)
- return "certainly-not";
- return "?";
- }
-
- public String toSystem(PatientMpiMatch code) {
- return code.getSystem();
- }
-
-}
-
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/PayeetypeEnumFactory.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/PayeetypeEnumFactory.java
deleted file mode 100644
index 36d21b9277a..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/PayeetypeEnumFactory.java
+++ /dev/null
@@ -1,66 +0,0 @@
-package org.hl7.fhir.dstu21.model.valuesets;
-
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
-
-public class PayeetypeEnumFactory implements EnumFactory {
-
- public Payeetype fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("subscriber".equals(codeString))
- return Payeetype.SUBSCRIBER;
- if ("provider".equals(codeString))
- return Payeetype.PROVIDER;
- if ("other".equals(codeString))
- return Payeetype.OTHER;
- throw new IllegalArgumentException("Unknown Payeetype code '"+codeString+"'");
- }
-
- public String toCode(Payeetype code) {
- if (code == Payeetype.SUBSCRIBER)
- return "subscriber";
- if (code == Payeetype.PROVIDER)
- return "provider";
- if (code == Payeetype.OTHER)
- return "other";
- return "?";
- }
-
- public String toSystem(Payeetype code) {
- return code.getSystem();
- }
-
-}
-
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/PaymentAdjustmentReasonEnumFactory.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/PaymentAdjustmentReasonEnumFactory.java
deleted file mode 100644
index 749688b5860..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/PaymentAdjustmentReasonEnumFactory.java
+++ /dev/null
@@ -1,62 +0,0 @@
-package org.hl7.fhir.dstu21.model.valuesets;
-
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
-
-public class PaymentAdjustmentReasonEnumFactory implements EnumFactory {
-
- public PaymentAdjustmentReason fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("a001".equals(codeString))
- return PaymentAdjustmentReason.A001;
- if ("a002".equals(codeString))
- return PaymentAdjustmentReason.A002;
- throw new IllegalArgumentException("Unknown PaymentAdjustmentReason code '"+codeString+"'");
- }
-
- public String toCode(PaymentAdjustmentReason code) {
- if (code == PaymentAdjustmentReason.A001)
- return "a001";
- if (code == PaymentAdjustmentReason.A002)
- return "a002";
- return "?";
- }
-
- public String toSystem(PaymentAdjustmentReason code) {
- return code.getSystem();
- }
-
-}
-
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/PaymentStatusEnumFactory.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/PaymentStatusEnumFactory.java
deleted file mode 100644
index 3d4c5c59a94..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/PaymentStatusEnumFactory.java
+++ /dev/null
@@ -1,62 +0,0 @@
-package org.hl7.fhir.dstu21.model.valuesets;
-
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
-
-public class PaymentStatusEnumFactory implements EnumFactory {
-
- public PaymentStatus fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("paid".equals(codeString))
- return PaymentStatus.PAID;
- if ("cleared".equals(codeString))
- return PaymentStatus.CLEARED;
- throw new IllegalArgumentException("Unknown PaymentStatus code '"+codeString+"'");
- }
-
- public String toCode(PaymentStatus code) {
- if (code == PaymentStatus.PAID)
- return "paid";
- if (code == PaymentStatus.CLEARED)
- return "cleared";
- return "?";
- }
-
- public String toSystem(PaymentStatus code) {
- return code.getSystem();
- }
-
-}
-
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/PaymentTypeEnumFactory.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/PaymentTypeEnumFactory.java
deleted file mode 100644
index cc8ab2d81f1..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/PaymentTypeEnumFactory.java
+++ /dev/null
@@ -1,66 +0,0 @@
-package org.hl7.fhir.dstu21.model.valuesets;
-
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
-
-public class PaymentTypeEnumFactory implements EnumFactory {
-
- public PaymentType fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("payment".equals(codeString))
- return PaymentType.PAYMENT;
- if ("adjustment".equals(codeString))
- return PaymentType.ADJUSTMENT;
- if ("advance".equals(codeString))
- return PaymentType.ADVANCE;
- throw new IllegalArgumentException("Unknown PaymentType code '"+codeString+"'");
- }
-
- public String toCode(PaymentType code) {
- if (code == PaymentType.PAYMENT)
- return "payment";
- if (code == PaymentType.ADJUSTMENT)
- return "adjustment";
- if (code == PaymentType.ADVANCE)
- return "advance";
- return "?";
- }
-
- public String toSystem(PaymentType code) {
- return code.getSystem();
- }
-
-}
-
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/PractitionerRoleEnumFactory.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/PractitionerRoleEnumFactory.java
deleted file mode 100644
index 0475c2b5ef3..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/PractitionerRoleEnumFactory.java
+++ /dev/null
@@ -1,78 +0,0 @@
-package org.hl7.fhir.dstu21.model.valuesets;
-
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
-
-public class PractitionerRoleEnumFactory implements EnumFactory {
-
- public PractitionerRole fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("doctor".equals(codeString))
- return PractitionerRole.DOCTOR;
- if ("nurse".equals(codeString))
- return PractitionerRole.NURSE;
- if ("pharmacist".equals(codeString))
- return PractitionerRole.PHARMACIST;
- if ("researcher".equals(codeString))
- return PractitionerRole.RESEARCHER;
- if ("teacher".equals(codeString))
- return PractitionerRole.TEACHER;
- if ("ict".equals(codeString))
- return PractitionerRole.ICT;
- throw new IllegalArgumentException("Unknown PractitionerRole code '"+codeString+"'");
- }
-
- public String toCode(PractitionerRole code) {
- if (code == PractitionerRole.DOCTOR)
- return "doctor";
- if (code == PractitionerRole.NURSE)
- return "nurse";
- if (code == PractitionerRole.PHARMACIST)
- return "pharmacist";
- if (code == PractitionerRole.RESEARCHER)
- return "researcher";
- if (code == PractitionerRole.TEACHER)
- return "teacher";
- if (code == PractitionerRole.ICT)
- return "ict";
- return "?";
- }
-
- public String toSystem(PractitionerRole code) {
- return code.getSystem();
- }
-
-}
-
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/PractitionerSpecialtyEnumFactory.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/PractitionerSpecialtyEnumFactory.java
deleted file mode 100644
index 9c7a2da43f2..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/PractitionerSpecialtyEnumFactory.java
+++ /dev/null
@@ -1,74 +0,0 @@
-package org.hl7.fhir.dstu21.model.valuesets;
-
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
-
-public class PractitionerSpecialtyEnumFactory implements EnumFactory {
-
- public PractitionerSpecialty fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("cardio".equals(codeString))
- return PractitionerSpecialty.CARDIO;
- if ("dent".equals(codeString))
- return PractitionerSpecialty.DENT;
- if ("dietary".equals(codeString))
- return PractitionerSpecialty.DIETARY;
- if ("midw".equals(codeString))
- return PractitionerSpecialty.MIDW;
- if ("sysarch".equals(codeString))
- return PractitionerSpecialty.SYSARCH;
- throw new IllegalArgumentException("Unknown PractitionerSpecialty code '"+codeString+"'");
- }
-
- public String toCode(PractitionerSpecialty code) {
- if (code == PractitionerSpecialty.CARDIO)
- return "cardio";
- if (code == PractitionerSpecialty.DENT)
- return "dent";
- if (code == PractitionerSpecialty.DIETARY)
- return "dietary";
- if (code == PractitionerSpecialty.MIDW)
- return "midw";
- if (code == PractitionerSpecialty.SYSARCH)
- return "sysarch";
- return "?";
- }
-
- public String toSystem(PractitionerSpecialty code) {
- return code.getSystem();
- }
-
-}
-
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ProcedureProgressStatusCodesEnumFactory.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ProcedureProgressStatusCodesEnumFactory.java
deleted file mode 100644
index 73e4a20caa9..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ProcedureProgressStatusCodesEnumFactory.java
+++ /dev/null
@@ -1,78 +0,0 @@
-package org.hl7.fhir.dstu21.model.valuesets;
-
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
-
-public class ProcedureProgressStatusCodesEnumFactory implements EnumFactory {
-
- public ProcedureProgressStatusCodes fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("a".equals(codeString))
- return ProcedureProgressStatusCodes.A;
- if ("b".equals(codeString))
- return ProcedureProgressStatusCodes.B;
- if ("c".equals(codeString))
- return ProcedureProgressStatusCodes.C;
- if ("d".equals(codeString))
- return ProcedureProgressStatusCodes.D;
- if ("e".equals(codeString))
- return ProcedureProgressStatusCodes.E;
- if ("f".equals(codeString))
- return ProcedureProgressStatusCodes.F;
- throw new IllegalArgumentException("Unknown ProcedureProgressStatusCodes code '"+codeString+"'");
- }
-
- public String toCode(ProcedureProgressStatusCodes code) {
- if (code == ProcedureProgressStatusCodes.A)
- return "a";
- if (code == ProcedureProgressStatusCodes.B)
- return "b";
- if (code == ProcedureProgressStatusCodes.C)
- return "c";
- if (code == ProcedureProgressStatusCodes.D)
- return "d";
- if (code == ProcedureProgressStatusCodes.E)
- return "e";
- if (code == ProcedureProgressStatusCodes.F)
- return "f";
- return "?";
- }
-
- public String toSystem(ProcedureProgressStatusCodes code) {
- return code.getSystem();
- }
-
-}
-
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ProcedureRelationshipTypeEnumFactory.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ProcedureRelationshipTypeEnumFactory.java
deleted file mode 100644
index 68dfe0bdcf1..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ProcedureRelationshipTypeEnumFactory.java
+++ /dev/null
@@ -1,62 +0,0 @@
-package org.hl7.fhir.dstu21.model.valuesets;
-
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
-
-public class ProcedureRelationshipTypeEnumFactory implements EnumFactory {
-
- public ProcedureRelationshipType fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("caused-by".equals(codeString))
- return ProcedureRelationshipType.CAUSEDBY;
- if ("because-of".equals(codeString))
- return ProcedureRelationshipType.BECAUSEOF;
- throw new IllegalArgumentException("Unknown ProcedureRelationshipType code '"+codeString+"'");
- }
-
- public String toCode(ProcedureRelationshipType code) {
- if (code == ProcedureRelationshipType.CAUSEDBY)
- return "caused-by";
- if (code == ProcedureRelationshipType.BECAUSEOF)
- return "because-of";
- return "?";
- }
-
- public String toSystem(ProcedureRelationshipType code) {
- return code.getSystem();
- }
-
-}
-
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ProcessOutcomeEnumFactory.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ProcessOutcomeEnumFactory.java
deleted file mode 100644
index 85ae04ab0dd..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ProcessOutcomeEnumFactory.java
+++ /dev/null
@@ -1,66 +0,0 @@
-package org.hl7.fhir.dstu21.model.valuesets;
-
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
-
-public class ProcessOutcomeEnumFactory implements EnumFactory {
-
- public ProcessOutcome fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("complete".equals(codeString))
- return ProcessOutcome.COMPLETE;
- if ("pended".equals(codeString))
- return ProcessOutcome.PENDED;
- if ("error".equals(codeString))
- return ProcessOutcome.ERROR;
- throw new IllegalArgumentException("Unknown ProcessOutcome code '"+codeString+"'");
- }
-
- public String toCode(ProcessOutcome code) {
- if (code == ProcessOutcome.COMPLETE)
- return "complete";
- if (code == ProcessOutcome.PENDED)
- return "pended";
- if (code == ProcessOutcome.ERROR)
- return "error";
- return "?";
- }
-
- public String toSystem(ProcessOutcome code) {
- return code.getSystem();
- }
-
-}
-
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ProcessPriorityEnumFactory.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ProcessPriorityEnumFactory.java
deleted file mode 100644
index f094988735c..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ProcessPriorityEnumFactory.java
+++ /dev/null
@@ -1,66 +0,0 @@
-package org.hl7.fhir.dstu21.model.valuesets;
-
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
-
-public class ProcessPriorityEnumFactory implements EnumFactory {
-
- public ProcessPriority fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("stat".equals(codeString))
- return ProcessPriority.STAT;
- if ("normal".equals(codeString))
- return ProcessPriority.NORMAL;
- if ("deferred".equals(codeString))
- return ProcessPriority.DEFERRED;
- throw new IllegalArgumentException("Unknown ProcessPriority code '"+codeString+"'");
- }
-
- public String toCode(ProcessPriority code) {
- if (code == ProcessPriority.STAT)
- return "stat";
- if (code == ProcessPriority.NORMAL)
- return "normal";
- if (code == ProcessPriority.DEFERRED)
- return "deferred";
- return "?";
- }
-
- public String toSystem(ProcessPriority code) {
- return code.getSystem();
- }
-
-}
-
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ProvenanceAgentTypeEnumFactory.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ProvenanceAgentTypeEnumFactory.java
deleted file mode 100644
index 2352515000b..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ProvenanceAgentTypeEnumFactory.java
+++ /dev/null
@@ -1,82 +0,0 @@
-package org.hl7.fhir.dstu21.model.valuesets;
-
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
-
-public class ProvenanceAgentTypeEnumFactory implements EnumFactory {
-
- public ProvenanceAgentType fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("person".equals(codeString))
- return ProvenanceAgentType.PERSON;
- if ("practitioner".equals(codeString))
- return ProvenanceAgentType.PRACTITIONER;
- if ("organization".equals(codeString))
- return ProvenanceAgentType.ORGANIZATION;
- if ("software".equals(codeString))
- return ProvenanceAgentType.SOFTWARE;
- if ("patient".equals(codeString))
- return ProvenanceAgentType.PATIENT;
- if ("device".equals(codeString))
- return ProvenanceAgentType.DEVICE;
- if ("related-person".equals(codeString))
- return ProvenanceAgentType.RELATEDPERSON;
- throw new IllegalArgumentException("Unknown ProvenanceAgentType code '"+codeString+"'");
- }
-
- public String toCode(ProvenanceAgentType code) {
- if (code == ProvenanceAgentType.PERSON)
- return "person";
- if (code == ProvenanceAgentType.PRACTITIONER)
- return "practitioner";
- if (code == ProvenanceAgentType.ORGANIZATION)
- return "organization";
- if (code == ProvenanceAgentType.SOFTWARE)
- return "software";
- if (code == ProvenanceAgentType.PATIENT)
- return "patient";
- if (code == ProvenanceAgentType.DEVICE)
- return "device";
- if (code == ProvenanceAgentType.RELATEDPERSON)
- return "related-person";
- return "?";
- }
-
- public String toSystem(ProvenanceAgentType code) {
- return code.getSystem();
- }
-
-}
-
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/QuestionMaxOccursEnumFactory.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/QuestionMaxOccursEnumFactory.java
deleted file mode 100644
index 9df57543636..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/QuestionMaxOccursEnumFactory.java
+++ /dev/null
@@ -1,58 +0,0 @@
-package org.hl7.fhir.dstu21.model.valuesets;
-
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
-
-public class QuestionMaxOccursEnumFactory implements EnumFactory {
-
- public QuestionMaxOccurs fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("*".equals(codeString))
- return QuestionMaxOccurs.ASTERISK;
- throw new IllegalArgumentException("Unknown QuestionMaxOccurs code '"+codeString+"'");
- }
-
- public String toCode(QuestionMaxOccurs code) {
- if (code == QuestionMaxOccurs.ASTERISK)
- return "*";
- return "?";
- }
-
- public String toSystem(QuestionMaxOccurs code) {
- return code.getSystem();
- }
-
-}
-
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/QuestionnaireDisplayCategoryEnumFactory.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/QuestionnaireDisplayCategoryEnumFactory.java
deleted file mode 100644
index c0bbd211e64..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/QuestionnaireDisplayCategoryEnumFactory.java
+++ /dev/null
@@ -1,62 +0,0 @@
-package org.hl7.fhir.dstu21.model.valuesets;
-
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
-
-public class QuestionnaireDisplayCategoryEnumFactory implements EnumFactory {
-
- public QuestionnaireDisplayCategory fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("instructions".equals(codeString))
- return QuestionnaireDisplayCategory.INSTRUCTIONS;
- if ("security".equals(codeString))
- return QuestionnaireDisplayCategory.SECURITY;
- throw new IllegalArgumentException("Unknown QuestionnaireDisplayCategory code '"+codeString+"'");
- }
-
- public String toCode(QuestionnaireDisplayCategory code) {
- if (code == QuestionnaireDisplayCategory.INSTRUCTIONS)
- return "instructions";
- if (code == QuestionnaireDisplayCategory.SECURITY)
- return "security";
- return "?";
- }
-
- public String toSystem(QuestionnaireDisplayCategory code) {
- return code.getSystem();
- }
-
-}
-
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ReasonMedicationGivenCodesEnumFactory.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ReasonMedicationGivenCodesEnumFactory.java
deleted file mode 100644
index c740991f9e8..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ReasonMedicationGivenCodesEnumFactory.java
+++ /dev/null
@@ -1,66 +0,0 @@
-package org.hl7.fhir.dstu21.model.valuesets;
-
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
-
-public class ReasonMedicationGivenCodesEnumFactory implements EnumFactory {
-
- public ReasonMedicationGivenCodes fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("a".equals(codeString))
- return ReasonMedicationGivenCodes.A;
- if ("b".equals(codeString))
- return ReasonMedicationGivenCodes.B;
- if ("c".equals(codeString))
- return ReasonMedicationGivenCodes.C;
- throw new IllegalArgumentException("Unknown ReasonMedicationGivenCodes code '"+codeString+"'");
- }
-
- public String toCode(ReasonMedicationGivenCodes code) {
- if (code == ReasonMedicationGivenCodes.A)
- return "a";
- if (code == ReasonMedicationGivenCodes.B)
- return "b";
- if (code == ReasonMedicationGivenCodes.C)
- return "c";
- return "?";
- }
-
- public String toSystem(ReasonMedicationGivenCodes code) {
- return code.getSystem();
- }
-
-}
-
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ReasonMedicationNotGivenCodesEnumFactory.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ReasonMedicationNotGivenCodesEnumFactory.java
deleted file mode 100644
index b3ac81e1f22..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ReasonMedicationNotGivenCodesEnumFactory.java
+++ /dev/null
@@ -1,70 +0,0 @@
-package org.hl7.fhir.dstu21.model.valuesets;
-
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
-
-public class ReasonMedicationNotGivenCodesEnumFactory implements EnumFactory {
-
- public ReasonMedicationNotGivenCodes fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("a".equals(codeString))
- return ReasonMedicationNotGivenCodes.A;
- if ("b".equals(codeString))
- return ReasonMedicationNotGivenCodes.B;
- if ("c".equals(codeString))
- return ReasonMedicationNotGivenCodes.C;
- if ("d".equals(codeString))
- return ReasonMedicationNotGivenCodes.D;
- throw new IllegalArgumentException("Unknown ReasonMedicationNotGivenCodes code '"+codeString+"'");
- }
-
- public String toCode(ReasonMedicationNotGivenCodes code) {
- if (code == ReasonMedicationNotGivenCodes.A)
- return "a";
- if (code == ReasonMedicationNotGivenCodes.B)
- return "b";
- if (code == ReasonMedicationNotGivenCodes.C)
- return "c";
- if (code == ReasonMedicationNotGivenCodes.D)
- return "d";
- return "?";
- }
-
- public String toSystem(ReasonMedicationNotGivenCodes code) {
- return code.getSystem();
- }
-
-}
-
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/RelationshipEnumFactory.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/RelationshipEnumFactory.java
deleted file mode 100644
index 61604502e2d..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/RelationshipEnumFactory.java
+++ /dev/null
@@ -1,74 +0,0 @@
-package org.hl7.fhir.dstu21.model.valuesets;
-
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
-
-public class RelationshipEnumFactory implements EnumFactory {
-
- public Relationship fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("1".equals(codeString))
- return Relationship._1;
- if ("2".equals(codeString))
- return Relationship._2;
- if ("3".equals(codeString))
- return Relationship._3;
- if ("4".equals(codeString))
- return Relationship._4;
- if ("5".equals(codeString))
- return Relationship._5;
- throw new IllegalArgumentException("Unknown Relationship code '"+codeString+"'");
- }
-
- public String toCode(Relationship code) {
- if (code == Relationship._1)
- return "1";
- if (code == Relationship._2)
- return "2";
- if (code == Relationship._3)
- return "3";
- if (code == Relationship._4)
- return "4";
- if (code == Relationship._5)
- return "5";
- return "?";
- }
-
- public String toSystem(Relationship code) {
- return code.getSystem();
- }
-
-}
-
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ResourceValidationModeEnumFactory.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ResourceValidationModeEnumFactory.java
deleted file mode 100644
index 9c53d1219d8..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ResourceValidationModeEnumFactory.java
+++ /dev/null
@@ -1,66 +0,0 @@
-package org.hl7.fhir.dstu21.model.valuesets;
-
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
-
-public class ResourceValidationModeEnumFactory implements EnumFactory {
-
- public ResourceValidationMode fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("create".equals(codeString))
- return ResourceValidationMode.CREATE;
- if ("update".equals(codeString))
- return ResourceValidationMode.UPDATE;
- if ("delete".equals(codeString))
- return ResourceValidationMode.DELETE;
- throw new IllegalArgumentException("Unknown ResourceValidationMode code '"+codeString+"'");
- }
-
- public String toCode(ResourceValidationMode code) {
- if (code == ResourceValidationMode.CREATE)
- return "create";
- if (code == ResourceValidationMode.UPDATE)
- return "update";
- if (code == ResourceValidationMode.DELETE)
- return "delete";
- return "?";
- }
-
- public String toSystem(ResourceValidationMode code) {
- return code.getSystem();
- }
-
-}
-
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/RestfulSecurityServiceEnumFactory.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/RestfulSecurityServiceEnumFactory.java
deleted file mode 100644
index 2ff5af00322..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/RestfulSecurityServiceEnumFactory.java
+++ /dev/null
@@ -1,78 +0,0 @@
-package org.hl7.fhir.dstu21.model.valuesets;
-
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
-
-public class RestfulSecurityServiceEnumFactory implements EnumFactory {
-
- public RestfulSecurityService fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("OAuth".equals(codeString))
- return RestfulSecurityService.OAUTH;
- if ("SMART-on-FHIR".equals(codeString))
- return RestfulSecurityService.SMARTONFHIR;
- if ("NTLM".equals(codeString))
- return RestfulSecurityService.NTLM;
- if ("Basic".equals(codeString))
- return RestfulSecurityService.BASIC;
- if ("Kerberos".equals(codeString))
- return RestfulSecurityService.KERBEROS;
- if ("Certificates".equals(codeString))
- return RestfulSecurityService.CERTIFICATES;
- throw new IllegalArgumentException("Unknown RestfulSecurityService code '"+codeString+"'");
- }
-
- public String toCode(RestfulSecurityService code) {
- if (code == RestfulSecurityService.OAUTH)
- return "OAuth";
- if (code == RestfulSecurityService.SMARTONFHIR)
- return "SMART-on-FHIR";
- if (code == RestfulSecurityService.NTLM)
- return "NTLM";
- if (code == RestfulSecurityService.BASIC)
- return "Basic";
- if (code == RestfulSecurityService.KERBEROS)
- return "Kerberos";
- if (code == RestfulSecurityService.CERTIFICATES)
- return "Certificates";
- return "?";
- }
-
- public String toSystem(RestfulSecurityService code) {
- return code.getSystem();
- }
-
-}
-
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/RiskProbabilityEnumFactory.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/RiskProbabilityEnumFactory.java
deleted file mode 100644
index 0da42e1ffda..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/RiskProbabilityEnumFactory.java
+++ /dev/null
@@ -1,74 +0,0 @@
-package org.hl7.fhir.dstu21.model.valuesets;
-
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
-
-public class RiskProbabilityEnumFactory implements EnumFactory {
-
- public RiskProbability fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("negligible".equals(codeString))
- return RiskProbability.NEGLIGIBLE;
- if ("low".equals(codeString))
- return RiskProbability.LOW;
- if ("moderate".equals(codeString))
- return RiskProbability.MODERATE;
- if ("high".equals(codeString))
- return RiskProbability.HIGH;
- if ("certain".equals(codeString))
- return RiskProbability.CERTAIN;
- throw new IllegalArgumentException("Unknown RiskProbability code '"+codeString+"'");
- }
-
- public String toCode(RiskProbability code) {
- if (code == RiskProbability.NEGLIGIBLE)
- return "negligible";
- if (code == RiskProbability.LOW)
- return "low";
- if (code == RiskProbability.MODERATE)
- return "moderate";
- if (code == RiskProbability.HIGH)
- return "high";
- if (code == RiskProbability.CERTAIN)
- return "certain";
- return "?";
- }
-
- public String toSystem(RiskProbability code) {
- return code.getSystem();
- }
-
-}
-
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/RulesetEnumFactory.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/RulesetEnumFactory.java
deleted file mode 100644
index 6bf54082637..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/RulesetEnumFactory.java
+++ /dev/null
@@ -1,78 +0,0 @@
-package org.hl7.fhir.dstu21.model.valuesets;
-
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
-
-public class RulesetEnumFactory implements EnumFactory {
-
- public Ruleset fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("x12-4010".equals(codeString))
- return Ruleset.X124010;
- if ("x12-5010".equals(codeString))
- return Ruleset.X125010;
- if ("x12-7010".equals(codeString))
- return Ruleset.X127010;
- if ("cdanet-v2".equals(codeString))
- return Ruleset.CDANETV2;
- if ("cdanet-v4".equals(codeString))
- return Ruleset.CDANETV4;
- if ("cpha-3".equals(codeString))
- return Ruleset.CPHA3;
- throw new IllegalArgumentException("Unknown Ruleset code '"+codeString+"'");
- }
-
- public String toCode(Ruleset code) {
- if (code == Ruleset.X124010)
- return "x12-4010";
- if (code == Ruleset.X125010)
- return "x12-5010";
- if (code == Ruleset.X127010)
- return "x12-7010";
- if (code == Ruleset.CDANETV2)
- return "cdanet-v2";
- if (code == Ruleset.CDANETV4)
- return "cdanet-v4";
- if (code == Ruleset.CPHA3)
- return "cpha-3";
- return "?";
- }
-
- public String toSystem(Ruleset code) {
- return code.getSystem();
- }
-
-}
-
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ServicePharmacyEnumFactory.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ServicePharmacyEnumFactory.java
deleted file mode 100644
index 232d11b0775..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ServicePharmacyEnumFactory.java
+++ /dev/null
@@ -1,62 +0,0 @@
-package org.hl7.fhir.dstu21.model.valuesets;
-
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
-
-public class ServicePharmacyEnumFactory implements EnumFactory {
-
- public ServicePharmacy fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("smokecess".equals(codeString))
- return ServicePharmacy.SMOKECESS;
- if ("flushot".equals(codeString))
- return ServicePharmacy.FLUSHOT;
- throw new IllegalArgumentException("Unknown ServicePharmacy code '"+codeString+"'");
- }
-
- public String toCode(ServicePharmacy code) {
- if (code == ServicePharmacy.SMOKECESS)
- return "smokecess";
- if (code == ServicePharmacy.FLUSHOT)
- return "flushot";
- return "?";
- }
-
- public String toSystem(ServicePharmacy code) {
- return code.getSystem();
- }
-
-}
-
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ServicePlaceEnumFactory.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ServicePlaceEnumFactory.java
deleted file mode 100644
index 259a54f33d0..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ServicePlaceEnumFactory.java
+++ /dev/null
@@ -1,62 +0,0 @@
-package org.hl7.fhir.dstu21.model.valuesets;
-
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
-
-public class ServicePlaceEnumFactory implements EnumFactory {
-
- public ServicePlace fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("emergency".equals(codeString))
- return ServicePlace.EMERGENCY;
- if ("clinic".equals(codeString))
- return ServicePlace.CLINIC;
- throw new IllegalArgumentException("Unknown ServicePlace code '"+codeString+"'");
- }
-
- public String toCode(ServicePlace code) {
- if (code == ServicePlace.EMERGENCY)
- return "emergency";
- if (code == ServicePlace.CLINIC)
- return "clinic";
- return "?";
- }
-
- public String toSystem(ServicePlace code) {
- return code.getSystem();
- }
-
-}
-
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ServiceProductEnumFactory.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ServiceProductEnumFactory.java
deleted file mode 100644
index 209efda8811..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ServiceProductEnumFactory.java
+++ /dev/null
@@ -1,62 +0,0 @@
-package org.hl7.fhir.dstu21.model.valuesets;
-
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
-
-public class ServiceProductEnumFactory implements EnumFactory {
-
- public ServiceProduct fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("exam".equals(codeString))
- return ServiceProduct.EXAM;
- if ("flushot".equals(codeString))
- return ServiceProduct.FLUSHOT;
- throw new IllegalArgumentException("Unknown ServiceProduct code '"+codeString+"'");
- }
-
- public String toCode(ServiceProduct code) {
- if (code == ServiceProduct.EXAM)
- return "exam";
- if (code == ServiceProduct.FLUSHOT)
- return "flushot";
- return "?";
- }
-
- public String toSystem(ServiceProduct code) {
- return code.getSystem();
- }
-
-}
-
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ServiceProvisionConditionsEnumFactory.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ServiceProvisionConditionsEnumFactory.java
deleted file mode 100644
index fd9a2c6cd17..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ServiceProvisionConditionsEnumFactory.java
+++ /dev/null
@@ -1,66 +0,0 @@
-package org.hl7.fhir.dstu21.model.valuesets;
-
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
-
-public class ServiceProvisionConditionsEnumFactory implements EnumFactory {
-
- public ServiceProvisionConditions fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("free".equals(codeString))
- return ServiceProvisionConditions.FREE;
- if ("disc".equals(codeString))
- return ServiceProvisionConditions.DISC;
- if ("cost".equals(codeString))
- return ServiceProvisionConditions.COST;
- throw new IllegalArgumentException("Unknown ServiceProvisionConditions code '"+codeString+"'");
- }
-
- public String toCode(ServiceProvisionConditions code) {
- if (code == ServiceProvisionConditions.FREE)
- return "free";
- if (code == ServiceProvisionConditions.DISC)
- return "disc";
- if (code == ServiceProvisionConditions.COST)
- return "cost";
- return "?";
- }
-
- public String toSystem(ServiceProvisionConditions code) {
- return code.getSystem();
- }
-
-}
-
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ServiceReferralMethodEnumFactory.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ServiceReferralMethodEnumFactory.java
deleted file mode 100644
index 80491a0eb2f..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ServiceReferralMethodEnumFactory.java
+++ /dev/null
@@ -1,74 +0,0 @@
-package org.hl7.fhir.dstu21.model.valuesets;
-
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
-
-public class ServiceReferralMethodEnumFactory implements EnumFactory {
-
- public ServiceReferralMethod fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("fax".equals(codeString))
- return ServiceReferralMethod.FAX;
- if ("phone".equals(codeString))
- return ServiceReferralMethod.PHONE;
- if ("elec".equals(codeString))
- return ServiceReferralMethod.ELEC;
- if ("semail".equals(codeString))
- return ServiceReferralMethod.SEMAIL;
- if ("mail".equals(codeString))
- return ServiceReferralMethod.MAIL;
- throw new IllegalArgumentException("Unknown ServiceReferralMethod code '"+codeString+"'");
- }
-
- public String toCode(ServiceReferralMethod code) {
- if (code == ServiceReferralMethod.FAX)
- return "fax";
- if (code == ServiceReferralMethod.PHONE)
- return "phone";
- if (code == ServiceReferralMethod.ELEC)
- return "elec";
- if (code == ServiceReferralMethod.SEMAIL)
- return "semail";
- if (code == ServiceReferralMethod.MAIL)
- return "mail";
- return "?";
- }
-
- public String toSystem(ServiceReferralMethod code) {
- return code.getSystem();
- }
-
-}
-
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/SubscriptionTagEnumFactory.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/SubscriptionTagEnumFactory.java
deleted file mode 100644
index 338b8b57acf..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/SubscriptionTagEnumFactory.java
+++ /dev/null
@@ -1,62 +0,0 @@
-package org.hl7.fhir.dstu21.model.valuesets;
-
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
-
-public class SubscriptionTagEnumFactory implements EnumFactory {
-
- public SubscriptionTag fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("queued".equals(codeString))
- return SubscriptionTag.QUEUED;
- if ("delivered".equals(codeString))
- return SubscriptionTag.DELIVERED;
- throw new IllegalArgumentException("Unknown SubscriptionTag code '"+codeString+"'");
- }
-
- public String toCode(SubscriptionTag code) {
- if (code == SubscriptionTag.QUEUED)
- return "queued";
- if (code == SubscriptionTag.DELIVERED)
- return "delivered";
- return "?";
- }
-
- public String toSystem(SubscriptionTag code) {
- return code.getSystem();
- }
-
-}
-
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/SubstanceCategoryEnumFactory.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/SubstanceCategoryEnumFactory.java
deleted file mode 100644
index 349eac74533..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/SubstanceCategoryEnumFactory.java
+++ /dev/null
@@ -1,82 +0,0 @@
-package org.hl7.fhir.dstu21.model.valuesets;
-
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
-
-public class SubstanceCategoryEnumFactory implements EnumFactory {
-
- public SubstanceCategory fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("allergen".equals(codeString))
- return SubstanceCategory.ALLERGEN;
- if ("biological".equals(codeString))
- return SubstanceCategory.BIOLOGICAL;
- if ("body".equals(codeString))
- return SubstanceCategory.BODY;
- if ("chemical".equals(codeString))
- return SubstanceCategory.CHEMICAL;
- if ("food".equals(codeString))
- return SubstanceCategory.FOOD;
- if ("drug".equals(codeString))
- return SubstanceCategory.DRUG;
- if ("material".equals(codeString))
- return SubstanceCategory.MATERIAL;
- throw new IllegalArgumentException("Unknown SubstanceCategory code '"+codeString+"'");
- }
-
- public String toCode(SubstanceCategory code) {
- if (code == SubstanceCategory.ALLERGEN)
- return "allergen";
- if (code == SubstanceCategory.BIOLOGICAL)
- return "biological";
- if (code == SubstanceCategory.BODY)
- return "body";
- if (code == SubstanceCategory.CHEMICAL)
- return "chemical";
- if (code == SubstanceCategory.FOOD)
- return "food";
- if (code == SubstanceCategory.DRUG)
- return "drug";
- if (code == SubstanceCategory.MATERIAL)
- return "material";
- return "?";
- }
-
- public String toSystem(SubstanceCategory code) {
- return code.getSystem();
- }
-
-}
-
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/SupplydeliveryTypeEnumFactory.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/SupplydeliveryTypeEnumFactory.java
deleted file mode 100644
index fb15140ebb4..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/SupplydeliveryTypeEnumFactory.java
+++ /dev/null
@@ -1,62 +0,0 @@
-package org.hl7.fhir.dstu21.model.valuesets;
-
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
-
-public class SupplydeliveryTypeEnumFactory implements EnumFactory {
-
- public SupplydeliveryType fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("medication".equals(codeString))
- return SupplydeliveryType.MEDICATION;
- if ("device".equals(codeString))
- return SupplydeliveryType.DEVICE;
- throw new IllegalArgumentException("Unknown SupplydeliveryType code '"+codeString+"'");
- }
-
- public String toCode(SupplydeliveryType code) {
- if (code == SupplydeliveryType.MEDICATION)
- return "medication";
- if (code == SupplydeliveryType.DEVICE)
- return "device";
- return "?";
- }
-
- public String toSystem(SupplydeliveryType code) {
- return code.getSystem();
- }
-
-}
-
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/SupplyrequestKindEnumFactory.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/SupplyrequestKindEnumFactory.java
deleted file mode 100644
index 818637537e3..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/SupplyrequestKindEnumFactory.java
+++ /dev/null
@@ -1,62 +0,0 @@
-package org.hl7.fhir.dstu21.model.valuesets;
-
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
-
-public class SupplyrequestKindEnumFactory implements EnumFactory {
-
- public SupplyrequestKind fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("central".equals(codeString))
- return SupplyrequestKind.CENTRAL;
- if ("nonstock".equals(codeString))
- return SupplyrequestKind.NONSTOCK;
- throw new IllegalArgumentException("Unknown SupplyrequestKind code '"+codeString+"'");
- }
-
- public String toCode(SupplyrequestKind code) {
- if (code == SupplyrequestKind.CENTRAL)
- return "central";
- if (code == SupplyrequestKind.NONSTOCK)
- return "nonstock";
- return "?";
- }
-
- public String toSystem(SupplyrequestKind code) {
- return code.getSystem();
- }
-
-}
-
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/SupplyrequestReasonEnumFactory.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/SupplyrequestReasonEnumFactory.java
deleted file mode 100644
index 0e04bd8acf0..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/SupplyrequestReasonEnumFactory.java
+++ /dev/null
@@ -1,62 +0,0 @@
-package org.hl7.fhir.dstu21.model.valuesets;
-
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
-
-public class SupplyrequestReasonEnumFactory implements EnumFactory {
-
- public SupplyrequestReason fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("patient-care".equals(codeString))
- return SupplyrequestReason.PATIENTCARE;
- if ("ward-stock".equals(codeString))
- return SupplyrequestReason.WARDSTOCK;
- throw new IllegalArgumentException("Unknown SupplyrequestReason code '"+codeString+"'");
- }
-
- public String toCode(SupplyrequestReason code) {
- if (code == SupplyrequestReason.PATIENTCARE)
- return "patient-care";
- if (code == SupplyrequestReason.WARDSTOCK)
- return "ward-stock";
- return "?";
- }
-
- public String toSystem(SupplyrequestReason code) {
- return code.getSystem();
- }
-
-}
-
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/SurfaceEnumFactory.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/SurfaceEnumFactory.java
deleted file mode 100644
index d915dc22d54..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/SurfaceEnumFactory.java
+++ /dev/null
@@ -1,98 +0,0 @@
-package org.hl7.fhir.dstu21.model.valuesets;
-
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
-
-public class SurfaceEnumFactory implements EnumFactory {
-
- public Surface fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("M".equals(codeString))
- return Surface.M;
- if ("O".equals(codeString))
- return Surface.O;
- if ("I".equals(codeString))
- return Surface.I;
- if ("D".equals(codeString))
- return Surface.D;
- if ("B".equals(codeString))
- return Surface.B;
- if ("V".equals(codeString))
- return Surface.V;
- if ("L".equals(codeString))
- return Surface.L;
- if ("MO".equals(codeString))
- return Surface.MO;
- if ("DO".equals(codeString))
- return Surface.DO;
- if ("DI".equals(codeString))
- return Surface.DI;
- if ("MOD".equals(codeString))
- return Surface.MOD;
- throw new IllegalArgumentException("Unknown Surface code '"+codeString+"'");
- }
-
- public String toCode(Surface code) {
- if (code == Surface.M)
- return "M";
- if (code == Surface.O)
- return "O";
- if (code == Surface.I)
- return "I";
- if (code == Surface.D)
- return "D";
- if (code == Surface.B)
- return "B";
- if (code == Surface.V)
- return "V";
- if (code == Surface.L)
- return "L";
- if (code == Surface.MO)
- return "MO";
- if (code == Surface.DO)
- return "DO";
- if (code == Surface.DI)
- return "DI";
- if (code == Surface.MOD)
- return "MOD";
- return "?";
- }
-
- public String toSystem(Surface code) {
- return code.getSystem();
- }
-
-}
-
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/UdiEnumFactory.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/UdiEnumFactory.java
deleted file mode 100644
index 447f5ae3402..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/UdiEnumFactory.java
+++ /dev/null
@@ -1,58 +0,0 @@
-package org.hl7.fhir.dstu21.model.valuesets;
-
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
-
-public class UdiEnumFactory implements EnumFactory {
-
- public Udi fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("gudid".equals(codeString))
- return Udi.GUDID;
- throw new IllegalArgumentException("Unknown Udi code '"+codeString+"'");
- }
-
- public String toCode(Udi code) {
- if (code == Udi.GUDID)
- return "gudid";
- return "?";
- }
-
- public String toSystem(Udi code) {
- return code.getSystem();
- }
-
-}
-
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3AcknowledgementConditionEnumFactory.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3AcknowledgementConditionEnumFactory.java
deleted file mode 100644
index 191f57eb1a9..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3AcknowledgementConditionEnumFactory.java
+++ /dev/null
@@ -1,70 +0,0 @@
-package org.hl7.fhir.dstu21.model.valuesets;
-
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
-
-public class V3AcknowledgementConditionEnumFactory implements EnumFactory {
-
- public V3AcknowledgementCondition fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("AL".equals(codeString))
- return V3AcknowledgementCondition.AL;
- if ("ER".equals(codeString))
- return V3AcknowledgementCondition.ER;
- if ("NE".equals(codeString))
- return V3AcknowledgementCondition.NE;
- if ("SU".equals(codeString))
- return V3AcknowledgementCondition.SU;
- throw new IllegalArgumentException("Unknown V3AcknowledgementCondition code '"+codeString+"'");
- }
-
- public String toCode(V3AcknowledgementCondition code) {
- if (code == V3AcknowledgementCondition.AL)
- return "AL";
- if (code == V3AcknowledgementCondition.ER)
- return "ER";
- if (code == V3AcknowledgementCondition.NE)
- return "NE";
- if (code == V3AcknowledgementCondition.SU)
- return "SU";
- return "?";
- }
-
- public String toSystem(V3AcknowledgementCondition code) {
- return code.getSystem();
- }
-
-}
-
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3AcknowledgementDetailTypeEnumFactory.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3AcknowledgementDetailTypeEnumFactory.java
deleted file mode 100644
index 0224be76a28..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3AcknowledgementDetailTypeEnumFactory.java
+++ /dev/null
@@ -1,78 +0,0 @@
-package org.hl7.fhir.dstu21.model.valuesets;
-
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
-
-public class V3AcknowledgementDetailTypeEnumFactory implements EnumFactory {
-
- public V3AcknowledgementDetailType fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("E".equals(codeString))
- return V3AcknowledgementDetailType.E;
- if ("I".equals(codeString))
- return V3AcknowledgementDetailType.I;
- if ("W".equals(codeString))
- return V3AcknowledgementDetailType.W;
- if ("ERR".equals(codeString))
- return V3AcknowledgementDetailType.ERR;
- if ("INFO".equals(codeString))
- return V3AcknowledgementDetailType.INFO;
- if ("WARN".equals(codeString))
- return V3AcknowledgementDetailType.WARN;
- throw new IllegalArgumentException("Unknown V3AcknowledgementDetailType code '"+codeString+"'");
- }
-
- public String toCode(V3AcknowledgementDetailType code) {
- if (code == V3AcknowledgementDetailType.E)
- return "E";
- if (code == V3AcknowledgementDetailType.I)
- return "I";
- if (code == V3AcknowledgementDetailType.W)
- return "W";
- if (code == V3AcknowledgementDetailType.ERR)
- return "ERR";
- if (code == V3AcknowledgementDetailType.INFO)
- return "INFO";
- if (code == V3AcknowledgementDetailType.WARN)
- return "WARN";
- return "?";
- }
-
- public String toSystem(V3AcknowledgementDetailType code) {
- return code.getSystem();
- }
-
-}
-
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3AcknowledgementTypeEnumFactory.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3AcknowledgementTypeEnumFactory.java
deleted file mode 100644
index de99a4b6c81..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3AcknowledgementTypeEnumFactory.java
+++ /dev/null
@@ -1,78 +0,0 @@
-package org.hl7.fhir.dstu21.model.valuesets;
-
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
-
-public class V3AcknowledgementTypeEnumFactory implements EnumFactory {
-
- public V3AcknowledgementType fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("AA".equals(codeString))
- return V3AcknowledgementType.AA;
- if ("AE".equals(codeString))
- return V3AcknowledgementType.AE;
- if ("AR".equals(codeString))
- return V3AcknowledgementType.AR;
- if ("CA".equals(codeString))
- return V3AcknowledgementType.CA;
- if ("CE".equals(codeString))
- return V3AcknowledgementType.CE;
- if ("CR".equals(codeString))
- return V3AcknowledgementType.CR;
- throw new IllegalArgumentException("Unknown V3AcknowledgementType code '"+codeString+"'");
- }
-
- public String toCode(V3AcknowledgementType code) {
- if (code == V3AcknowledgementType.AA)
- return "AA";
- if (code == V3AcknowledgementType.AE)
- return "AE";
- if (code == V3AcknowledgementType.AR)
- return "AR";
- if (code == V3AcknowledgementType.CA)
- return "CA";
- if (code == V3AcknowledgementType.CE)
- return "CE";
- if (code == V3AcknowledgementType.CR)
- return "CR";
- return "?";
- }
-
- public String toSystem(V3AcknowledgementType code) {
- return code.getSystem();
- }
-
-}
-
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3ActExposureLevelCodeEnumFactory.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3ActExposureLevelCodeEnumFactory.java
deleted file mode 100644
index 01e1fbaa6fd..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3ActExposureLevelCodeEnumFactory.java
+++ /dev/null
@@ -1,70 +0,0 @@
-package org.hl7.fhir.dstu21.model.valuesets;
-
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
-
-public class V3ActExposureLevelCodeEnumFactory implements EnumFactory {
-
- public V3ActExposureLevelCode fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("_ActExposureLevelCode".equals(codeString))
- return V3ActExposureLevelCode._ACTEXPOSURELEVELCODE;
- if ("HIGH".equals(codeString))
- return V3ActExposureLevelCode.HIGH;
- if ("LOW".equals(codeString))
- return V3ActExposureLevelCode.LOW;
- if ("MEDIUM".equals(codeString))
- return V3ActExposureLevelCode.MEDIUM;
- throw new IllegalArgumentException("Unknown V3ActExposureLevelCode code '"+codeString+"'");
- }
-
- public String toCode(V3ActExposureLevelCode code) {
- if (code == V3ActExposureLevelCode._ACTEXPOSURELEVELCODE)
- return "_ActExposureLevelCode";
- if (code == V3ActExposureLevelCode.HIGH)
- return "HIGH";
- if (code == V3ActExposureLevelCode.LOW)
- return "LOW";
- if (code == V3ActExposureLevelCode.MEDIUM)
- return "MEDIUM";
- return "?";
- }
-
- public String toSystem(V3ActExposureLevelCode code) {
- return code.getSystem();
- }
-
-}
-
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3ActInvoiceElementModifierEnumFactory.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3ActInvoiceElementModifierEnumFactory.java
deleted file mode 100644
index 91491346928..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3ActInvoiceElementModifierEnumFactory.java
+++ /dev/null
@@ -1,70 +0,0 @@
-package org.hl7.fhir.dstu21.model.valuesets;
-
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
-
-public class V3ActInvoiceElementModifierEnumFactory implements EnumFactory {
-
- public V3ActInvoiceElementModifier fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("EFORM".equals(codeString))
- return V3ActInvoiceElementModifier.EFORM;
- if ("FAX".equals(codeString))
- return V3ActInvoiceElementModifier.FAX;
- if ("LINV".equals(codeString))
- return V3ActInvoiceElementModifier.LINV;
- if ("PAPER".equals(codeString))
- return V3ActInvoiceElementModifier.PAPER;
- throw new IllegalArgumentException("Unknown V3ActInvoiceElementModifier code '"+codeString+"'");
- }
-
- public String toCode(V3ActInvoiceElementModifier code) {
- if (code == V3ActInvoiceElementModifier.EFORM)
- return "EFORM";
- if (code == V3ActInvoiceElementModifier.FAX)
- return "FAX";
- if (code == V3ActInvoiceElementModifier.LINV)
- return "LINV";
- if (code == V3ActInvoiceElementModifier.PAPER)
- return "PAPER";
- return "?";
- }
-
- public String toSystem(V3ActInvoiceElementModifier code) {
- return code.getSystem();
- }
-
-}
-
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3ActRelationshipCheckpointEnumFactory.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3ActRelationshipCheckpointEnumFactory.java
deleted file mode 100644
index 473f06af4b2..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3ActRelationshipCheckpointEnumFactory.java
+++ /dev/null
@@ -1,74 +0,0 @@
-package org.hl7.fhir.dstu21.model.valuesets;
-
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
-
-public class V3ActRelationshipCheckpointEnumFactory implements EnumFactory {
-
- public V3ActRelationshipCheckpoint fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("B".equals(codeString))
- return V3ActRelationshipCheckpoint.B;
- if ("E".equals(codeString))
- return V3ActRelationshipCheckpoint.E;
- if ("S".equals(codeString))
- return V3ActRelationshipCheckpoint.S;
- if ("T".equals(codeString))
- return V3ActRelationshipCheckpoint.T;
- if ("X".equals(codeString))
- return V3ActRelationshipCheckpoint.X;
- throw new IllegalArgumentException("Unknown V3ActRelationshipCheckpoint code '"+codeString+"'");
- }
-
- public String toCode(V3ActRelationshipCheckpoint code) {
- if (code == V3ActRelationshipCheckpoint.B)
- return "B";
- if (code == V3ActRelationshipCheckpoint.E)
- return "E";
- if (code == V3ActRelationshipCheckpoint.S)
- return "S";
- if (code == V3ActRelationshipCheckpoint.T)
- return "T";
- if (code == V3ActRelationshipCheckpoint.X)
- return "X";
- return "?";
- }
-
- public String toSystem(V3ActRelationshipCheckpoint code) {
- return code.getSystem();
- }
-
-}
-
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3ActRelationshipJoinEnumFactory.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3ActRelationshipJoinEnumFactory.java
deleted file mode 100644
index 2e9fa981a09..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3ActRelationshipJoinEnumFactory.java
+++ /dev/null
@@ -1,70 +0,0 @@
-package org.hl7.fhir.dstu21.model.valuesets;
-
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
-
-public class V3ActRelationshipJoinEnumFactory implements EnumFactory {
-
- public V3ActRelationshipJoin fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("D".equals(codeString))
- return V3ActRelationshipJoin.D;
- if ("K".equals(codeString))
- return V3ActRelationshipJoin.K;
- if ("W".equals(codeString))
- return V3ActRelationshipJoin.W;
- if ("X".equals(codeString))
- return V3ActRelationshipJoin.X;
- throw new IllegalArgumentException("Unknown V3ActRelationshipJoin code '"+codeString+"'");
- }
-
- public String toCode(V3ActRelationshipJoin code) {
- if (code == V3ActRelationshipJoin.D)
- return "D";
- if (code == V3ActRelationshipJoin.K)
- return "K";
- if (code == V3ActRelationshipJoin.W)
- return "W";
- if (code == V3ActRelationshipJoin.X)
- return "X";
- return "?";
- }
-
- public String toSystem(V3ActRelationshipJoin code) {
- return code.getSystem();
- }
-
-}
-
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3ActRelationshipSplitEnumFactory.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3ActRelationshipSplitEnumFactory.java
deleted file mode 100644
index c32a3c160ff..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3ActRelationshipSplitEnumFactory.java
+++ /dev/null
@@ -1,70 +0,0 @@
-package org.hl7.fhir.dstu21.model.valuesets;
-
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
-
-public class V3ActRelationshipSplitEnumFactory implements EnumFactory {
-
- public V3ActRelationshipSplit fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("E1".equals(codeString))
- return V3ActRelationshipSplit.E1;
- if ("EW".equals(codeString))
- return V3ActRelationshipSplit.EW;
- if ("I1".equals(codeString))
- return V3ActRelationshipSplit.I1;
- if ("IW".equals(codeString))
- return V3ActRelationshipSplit.IW;
- throw new IllegalArgumentException("Unknown V3ActRelationshipSplit code '"+codeString+"'");
- }
-
- public String toCode(V3ActRelationshipSplit code) {
- if (code == V3ActRelationshipSplit.E1)
- return "E1";
- if (code == V3ActRelationshipSplit.EW)
- return "EW";
- if (code == V3ActRelationshipSplit.I1)
- return "I1";
- if (code == V3ActRelationshipSplit.IW)
- return "IW";
- return "?";
- }
-
- public String toSystem(V3ActRelationshipSplit code) {
- return code.getSystem();
- }
-
-}
-
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3ActUSPrivacyLawEnumFactory.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3ActUSPrivacyLawEnumFactory.java
deleted file mode 100644
index c1bcce5136e..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3ActUSPrivacyLawEnumFactory.java
+++ /dev/null
@@ -1,82 +0,0 @@
-package org.hl7.fhir.dstu21.model.valuesets;
-
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
-
-public class V3ActUSPrivacyLawEnumFactory implements EnumFactory {
-
- public V3ActUSPrivacyLaw fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("_ActUSPrivacyLaw".equals(codeString))
- return V3ActUSPrivacyLaw._ACTUSPRIVACYLAW;
- if ("42CFRPart2".equals(codeString))
- return V3ActUSPrivacyLaw._42CFRPART2;
- if ("CommonRule".equals(codeString))
- return V3ActUSPrivacyLaw.COMMONRULE;
- if ("HIPAANOPP".equals(codeString))
- return V3ActUSPrivacyLaw.HIPAANOPP;
- if ("HIPAAPsyNotes".equals(codeString))
- return V3ActUSPrivacyLaw.HIPAAPSYNOTES;
- if ("HIPAASelfPay".equals(codeString))
- return V3ActUSPrivacyLaw.HIPAASELFPAY;
- if ("Title38Section7332".equals(codeString))
- return V3ActUSPrivacyLaw.TITLE38SECTION7332;
- throw new IllegalArgumentException("Unknown V3ActUSPrivacyLaw code '"+codeString+"'");
- }
-
- public String toCode(V3ActUSPrivacyLaw code) {
- if (code == V3ActUSPrivacyLaw._ACTUSPRIVACYLAW)
- return "_ActUSPrivacyLaw";
- if (code == V3ActUSPrivacyLaw._42CFRPART2)
- return "42CFRPart2";
- if (code == V3ActUSPrivacyLaw.COMMONRULE)
- return "CommonRule";
- if (code == V3ActUSPrivacyLaw.HIPAANOPP)
- return "HIPAANOPP";
- if (code == V3ActUSPrivacyLaw.HIPAAPSYNOTES)
- return "HIPAAPsyNotes";
- if (code == V3ActUSPrivacyLaw.HIPAASELFPAY)
- return "HIPAASelfPay";
- if (code == V3ActUSPrivacyLaw.TITLE38SECTION7332)
- return "Title38Section7332";
- return "?";
- }
-
- public String toSystem(V3ActUSPrivacyLaw code) {
- return code.getSystem();
- }
-
-}
-
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3ActUncertaintyEnumFactory.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3ActUncertaintyEnumFactory.java
deleted file mode 100644
index f4041c40b6e..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3ActUncertaintyEnumFactory.java
+++ /dev/null
@@ -1,62 +0,0 @@
-package org.hl7.fhir.dstu21.model.valuesets;
-
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
-
-public class V3ActUncertaintyEnumFactory implements EnumFactory {
-
- public V3ActUncertainty fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("N".equals(codeString))
- return V3ActUncertainty.N;
- if ("U".equals(codeString))
- return V3ActUncertainty.U;
- throw new IllegalArgumentException("Unknown V3ActUncertainty code '"+codeString+"'");
- }
-
- public String toCode(V3ActUncertainty code) {
- if (code == V3ActUncertainty.N)
- return "N";
- if (code == V3ActUncertainty.U)
- return "U";
- return "?";
- }
-
- public String toSystem(V3ActUncertainty code) {
- return code.getSystem();
- }
-
-}
-
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3AdministrativeGenderEnumFactory.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3AdministrativeGenderEnumFactory.java
deleted file mode 100644
index d4814ffe797..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3AdministrativeGenderEnumFactory.java
+++ /dev/null
@@ -1,66 +0,0 @@
-package org.hl7.fhir.dstu21.model.valuesets;
-
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
-
-public class V3AdministrativeGenderEnumFactory implements EnumFactory {
-
- public V3AdministrativeGender fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("F".equals(codeString))
- return V3AdministrativeGender.F;
- if ("M".equals(codeString))
- return V3AdministrativeGender.M;
- if ("UN".equals(codeString))
- return V3AdministrativeGender.UN;
- throw new IllegalArgumentException("Unknown V3AdministrativeGender code '"+codeString+"'");
- }
-
- public String toCode(V3AdministrativeGender code) {
- if (code == V3AdministrativeGender.F)
- return "F";
- if (code == V3AdministrativeGender.M)
- return "M";
- if (code == V3AdministrativeGender.UN)
- return "UN";
- return "?";
- }
-
- public String toSystem(V3AdministrativeGender code) {
- return code.getSystem();
- }
-
-}
-
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3CalendarEnumFactory.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3CalendarEnumFactory.java
deleted file mode 100644
index 19556a13dfb..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3CalendarEnumFactory.java
+++ /dev/null
@@ -1,58 +0,0 @@
-package org.hl7.fhir.dstu21.model.valuesets;
-
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
-
-public class V3CalendarEnumFactory implements EnumFactory {
-
- public V3Calendar fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("GREG".equals(codeString))
- return V3Calendar.GREG;
- throw new IllegalArgumentException("Unknown V3Calendar code '"+codeString+"'");
- }
-
- public String toCode(V3Calendar code) {
- if (code == V3Calendar.GREG)
- return "GREG";
- return "?";
- }
-
- public String toSystem(V3Calendar code) {
- return code.getSystem();
- }
-
-}
-
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3CalendarTypeEnumFactory.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3CalendarTypeEnumFactory.java
deleted file mode 100644
index 1c90cc15f06..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3CalendarTypeEnumFactory.java
+++ /dev/null
@@ -1,58 +0,0 @@
-package org.hl7.fhir.dstu21.model.valuesets;
-
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
-
-public class V3CalendarTypeEnumFactory implements EnumFactory {
-
- public V3CalendarType fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("GREG".equals(codeString))
- return V3CalendarType.GREG;
- throw new IllegalArgumentException("Unknown V3CalendarType code '"+codeString+"'");
- }
-
- public String toCode(V3CalendarType code) {
- if (code == V3CalendarType.GREG)
- return "GREG";
- return "?";
- }
-
- public String toSystem(V3CalendarType code) {
- return code.getSystem();
- }
-
-}
-
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3CodingRationaleEnumFactory.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3CodingRationaleEnumFactory.java
deleted file mode 100644
index f2ca5b5430c..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3CodingRationaleEnumFactory.java
+++ /dev/null
@@ -1,86 +0,0 @@
-package org.hl7.fhir.dstu21.model.valuesets;
-
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
-
-public class V3CodingRationaleEnumFactory implements EnumFactory {
-
- public V3CodingRationale fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("O".equals(codeString))
- return V3CodingRationale.O;
- if ("OR".equals(codeString))
- return V3CodingRationale.OR;
- if ("P".equals(codeString))
- return V3CodingRationale.P;
- if ("PR".equals(codeString))
- return V3CodingRationale.PR;
- if ("R".equals(codeString))
- return V3CodingRationale.R;
- if ("HL7".equals(codeString))
- return V3CodingRationale.HL7;
- if ("SH".equals(codeString))
- return V3CodingRationale.SH;
- if ("SRC".equals(codeString))
- return V3CodingRationale.SRC;
- throw new IllegalArgumentException("Unknown V3CodingRationale code '"+codeString+"'");
- }
-
- public String toCode(V3CodingRationale code) {
- if (code == V3CodingRationale.O)
- return "O";
- if (code == V3CodingRationale.OR)
- return "OR";
- if (code == V3CodingRationale.P)
- return "P";
- if (code == V3CodingRationale.PR)
- return "PR";
- if (code == V3CodingRationale.R)
- return "R";
- if (code == V3CodingRationale.HL7)
- return "HL7";
- if (code == V3CodingRationale.SH)
- return "SH";
- if (code == V3CodingRationale.SRC)
- return "SRC";
- return "?";
- }
-
- public String toSystem(V3CodingRationale code) {
- return code.getSystem();
- }
-
-}
-
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3CommunicationFunctionTypeEnumFactory.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3CommunicationFunctionTypeEnumFactory.java
deleted file mode 100644
index 8263d0e1a4c..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3CommunicationFunctionTypeEnumFactory.java
+++ /dev/null
@@ -1,66 +0,0 @@
-package org.hl7.fhir.dstu21.model.valuesets;
-
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
-
-public class V3CommunicationFunctionTypeEnumFactory implements EnumFactory {
-
- public V3CommunicationFunctionType fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("RCV".equals(codeString))
- return V3CommunicationFunctionType.RCV;
- if ("RSP".equals(codeString))
- return V3CommunicationFunctionType.RSP;
- if ("SND".equals(codeString))
- return V3CommunicationFunctionType.SND;
- throw new IllegalArgumentException("Unknown V3CommunicationFunctionType code '"+codeString+"'");
- }
-
- public String toCode(V3CommunicationFunctionType code) {
- if (code == V3CommunicationFunctionType.RCV)
- return "RCV";
- if (code == V3CommunicationFunctionType.RSP)
- return "RSP";
- if (code == V3CommunicationFunctionType.SND)
- return "SND";
- return "?";
- }
-
- public String toSystem(V3CommunicationFunctionType code) {
- return code.getSystem();
- }
-
-}
-
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3CompressionAlgorithmEnumFactory.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3CompressionAlgorithmEnumFactory.java
deleted file mode 100644
index a9eec35f916..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3CompressionAlgorithmEnumFactory.java
+++ /dev/null
@@ -1,78 +0,0 @@
-package org.hl7.fhir.dstu21.model.valuesets;
-
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
-
-public class V3CompressionAlgorithmEnumFactory implements EnumFactory {
-
- public V3CompressionAlgorithm fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("BZ".equals(codeString))
- return V3CompressionAlgorithm.BZ;
- if ("DF".equals(codeString))
- return V3CompressionAlgorithm.DF;
- if ("GZ".equals(codeString))
- return V3CompressionAlgorithm.GZ;
- if ("Z".equals(codeString))
- return V3CompressionAlgorithm.Z;
- if ("Z7".equals(codeString))
- return V3CompressionAlgorithm.Z7;
- if ("ZL".equals(codeString))
- return V3CompressionAlgorithm.ZL;
- throw new IllegalArgumentException("Unknown V3CompressionAlgorithm code '"+codeString+"'");
- }
-
- public String toCode(V3CompressionAlgorithm code) {
- if (code == V3CompressionAlgorithm.BZ)
- return "BZ";
- if (code == V3CompressionAlgorithm.DF)
- return "DF";
- if (code == V3CompressionAlgorithm.GZ)
- return "GZ";
- if (code == V3CompressionAlgorithm.Z)
- return "Z";
- if (code == V3CompressionAlgorithm.Z7)
- return "Z7";
- if (code == V3CompressionAlgorithm.ZL)
- return "ZL";
- return "?";
- }
-
- public String toSystem(V3CompressionAlgorithm code) {
- return code.getSystem();
- }
-
-}
-
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3ContainerCapEnumFactory.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3ContainerCapEnumFactory.java
deleted file mode 100644
index 8eeb4e171f3..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3ContainerCapEnumFactory.java
+++ /dev/null
@@ -1,82 +0,0 @@
-package org.hl7.fhir.dstu21.model.valuesets;
-
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
-
-public class V3ContainerCapEnumFactory implements EnumFactory {
-
- public V3ContainerCap fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("_MedicationCap".equals(codeString))
- return V3ContainerCap._MEDICATIONCAP;
- if ("CHILD".equals(codeString))
- return V3ContainerCap.CHILD;
- if ("EASY".equals(codeString))
- return V3ContainerCap.EASY;
- if ("FILM".equals(codeString))
- return V3ContainerCap.FILM;
- if ("FOIL".equals(codeString))
- return V3ContainerCap.FOIL;
- if ("PUSH".equals(codeString))
- return V3ContainerCap.PUSH;
- if ("SCR".equals(codeString))
- return V3ContainerCap.SCR;
- throw new IllegalArgumentException("Unknown V3ContainerCap code '"+codeString+"'");
- }
-
- public String toCode(V3ContainerCap code) {
- if (code == V3ContainerCap._MEDICATIONCAP)
- return "_MedicationCap";
- if (code == V3ContainerCap.CHILD)
- return "CHILD";
- if (code == V3ContainerCap.EASY)
- return "EASY";
- if (code == V3ContainerCap.FILM)
- return "FILM";
- if (code == V3ContainerCap.FOIL)
- return "FOIL";
- if (code == V3ContainerCap.PUSH)
- return "PUSH";
- if (code == V3ContainerCap.SCR)
- return "SCR";
- return "?";
- }
-
- public String toSystem(V3ContainerCap code) {
- return code.getSystem();
- }
-
-}
-
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3ContainerSeparatorEnumFactory.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3ContainerSeparatorEnumFactory.java
deleted file mode 100644
index 37212ae05fc..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3ContainerSeparatorEnumFactory.java
+++ /dev/null
@@ -1,62 +0,0 @@
-package org.hl7.fhir.dstu21.model.valuesets;
-
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
-
-public class V3ContainerSeparatorEnumFactory implements EnumFactory {
-
- public V3ContainerSeparator fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("GEL".equals(codeString))
- return V3ContainerSeparator.GEL;
- if ("NONE".equals(codeString))
- return V3ContainerSeparator.NONE;
- throw new IllegalArgumentException("Unknown V3ContainerSeparator code '"+codeString+"'");
- }
-
- public String toCode(V3ContainerSeparator code) {
- if (code == V3ContainerSeparator.GEL)
- return "GEL";
- if (code == V3ContainerSeparator.NONE)
- return "NONE";
- return "?";
- }
-
- public String toSystem(V3ContainerSeparator code) {
- return code.getSystem();
- }
-
-}
-
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3ContentProcessingModeEnumFactory.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3ContentProcessingModeEnumFactory.java
deleted file mode 100644
index e214a4d2b52..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3ContentProcessingModeEnumFactory.java
+++ /dev/null
@@ -1,62 +0,0 @@
-package org.hl7.fhir.dstu21.model.valuesets;
-
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
-
-public class V3ContentProcessingModeEnumFactory implements EnumFactory {
-
- public V3ContentProcessingMode fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("SEQL".equals(codeString))
- return V3ContentProcessingMode.SEQL;
- if ("UNOR".equals(codeString))
- return V3ContentProcessingMode.UNOR;
- throw new IllegalArgumentException("Unknown V3ContentProcessingMode code '"+codeString+"'");
- }
-
- public String toCode(V3ContentProcessingMode code) {
- if (code == V3ContentProcessingMode.SEQL)
- return "SEQL";
- if (code == V3ContentProcessingMode.UNOR)
- return "UNOR";
- return "?";
- }
-
- public String toSystem(V3ContentProcessingMode code) {
- return code.getSystem();
- }
-
-}
-
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3DeviceAlertLevelEnumFactory.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3DeviceAlertLevelEnumFactory.java
deleted file mode 100644
index 99b75b88490..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3DeviceAlertLevelEnumFactory.java
+++ /dev/null
@@ -1,70 +0,0 @@
-package org.hl7.fhir.dstu21.model.valuesets;
-
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
-
-public class V3DeviceAlertLevelEnumFactory implements EnumFactory {
-
- public V3DeviceAlertLevel fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("C".equals(codeString))
- return V3DeviceAlertLevel.C;
- if ("N".equals(codeString))
- return V3DeviceAlertLevel.N;
- if ("S".equals(codeString))
- return V3DeviceAlertLevel.S;
- if ("W".equals(codeString))
- return V3DeviceAlertLevel.W;
- throw new IllegalArgumentException("Unknown V3DeviceAlertLevel code '"+codeString+"'");
- }
-
- public String toCode(V3DeviceAlertLevel code) {
- if (code == V3DeviceAlertLevel.C)
- return "C";
- if (code == V3DeviceAlertLevel.N)
- return "N";
- if (code == V3DeviceAlertLevel.S)
- return "S";
- if (code == V3DeviceAlertLevel.W)
- return "W";
- return "?";
- }
-
- public String toSystem(V3DeviceAlertLevel code) {
- return code.getSystem();
- }
-
-}
-
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3DocumentCompletionEnumFactory.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3DocumentCompletionEnumFactory.java
deleted file mode 100644
index 02976088c6e..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3DocumentCompletionEnumFactory.java
+++ /dev/null
@@ -1,90 +0,0 @@
-package org.hl7.fhir.dstu21.model.valuesets;
-
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
-
-public class V3DocumentCompletionEnumFactory implements EnumFactory {
-
- public V3DocumentCompletion fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("AU".equals(codeString))
- return V3DocumentCompletion.AU;
- if ("DI".equals(codeString))
- return V3DocumentCompletion.DI;
- if ("DO".equals(codeString))
- return V3DocumentCompletion.DO;
- if ("IN".equals(codeString))
- return V3DocumentCompletion.IN;
- if ("IP".equals(codeString))
- return V3DocumentCompletion.IP;
- if ("LA".equals(codeString))
- return V3DocumentCompletion.LA;
- if ("NU".equals(codeString))
- return V3DocumentCompletion.NU;
- if ("PA".equals(codeString))
- return V3DocumentCompletion.PA;
- if ("UC".equals(codeString))
- return V3DocumentCompletion.UC;
- throw new IllegalArgumentException("Unknown V3DocumentCompletion code '"+codeString+"'");
- }
-
- public String toCode(V3DocumentCompletion code) {
- if (code == V3DocumentCompletion.AU)
- return "AU";
- if (code == V3DocumentCompletion.DI)
- return "DI";
- if (code == V3DocumentCompletion.DO)
- return "DO";
- if (code == V3DocumentCompletion.IN)
- return "IN";
- if (code == V3DocumentCompletion.IP)
- return "IP";
- if (code == V3DocumentCompletion.LA)
- return "LA";
- if (code == V3DocumentCompletion.NU)
- return "NU";
- if (code == V3DocumentCompletion.PA)
- return "PA";
- if (code == V3DocumentCompletion.UC)
- return "UC";
- return "?";
- }
-
- public String toSystem(V3DocumentCompletion code) {
- return code.getSystem();
- }
-
-}
-
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3DocumentStorageEnumFactory.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3DocumentStorageEnumFactory.java
deleted file mode 100644
index 83bffdd4448..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3DocumentStorageEnumFactory.java
+++ /dev/null
@@ -1,70 +0,0 @@
-package org.hl7.fhir.dstu21.model.valuesets;
-
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
-
-public class V3DocumentStorageEnumFactory implements EnumFactory {
-
- public V3DocumentStorage fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("AC".equals(codeString))
- return V3DocumentStorage.AC;
- if ("AA".equals(codeString))
- return V3DocumentStorage.AA;
- if ("AR".equals(codeString))
- return V3DocumentStorage.AR;
- if ("PU".equals(codeString))
- return V3DocumentStorage.PU;
- throw new IllegalArgumentException("Unknown V3DocumentStorage code '"+codeString+"'");
- }
-
- public String toCode(V3DocumentStorage code) {
- if (code == V3DocumentStorage.AC)
- return "AC";
- if (code == V3DocumentStorage.AA)
- return "AA";
- if (code == V3DocumentStorage.AR)
- return "AR";
- if (code == V3DocumentStorage.PU)
- return "PU";
- return "?";
- }
-
- public String toSystem(V3DocumentStorage code) {
- return code.getSystem();
- }
-
-}
-
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3EducationLevelEnumFactory.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3EducationLevelEnumFactory.java
deleted file mode 100644
index 709d57d6a96..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3EducationLevelEnumFactory.java
+++ /dev/null
@@ -1,90 +0,0 @@
-package org.hl7.fhir.dstu21.model.valuesets;
-
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
-
-public class V3EducationLevelEnumFactory implements EnumFactory {
-
- public V3EducationLevel fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("ASSOC".equals(codeString))
- return V3EducationLevel.ASSOC;
- if ("BD".equals(codeString))
- return V3EducationLevel.BD;
- if ("ELEM".equals(codeString))
- return V3EducationLevel.ELEM;
- if ("GD".equals(codeString))
- return V3EducationLevel.GD;
- if ("HS".equals(codeString))
- return V3EducationLevel.HS;
- if ("PB".equals(codeString))
- return V3EducationLevel.PB;
- if ("POSTG".equals(codeString))
- return V3EducationLevel.POSTG;
- if ("SCOL".equals(codeString))
- return V3EducationLevel.SCOL;
- if ("SEC".equals(codeString))
- return V3EducationLevel.SEC;
- throw new IllegalArgumentException("Unknown V3EducationLevel code '"+codeString+"'");
- }
-
- public String toCode(V3EducationLevel code) {
- if (code == V3EducationLevel.ASSOC)
- return "ASSOC";
- if (code == V3EducationLevel.BD)
- return "BD";
- if (code == V3EducationLevel.ELEM)
- return "ELEM";
- if (code == V3EducationLevel.GD)
- return "GD";
- if (code == V3EducationLevel.HS)
- return "HS";
- if (code == V3EducationLevel.PB)
- return "PB";
- if (code == V3EducationLevel.POSTG)
- return "POSTG";
- if (code == V3EducationLevel.SCOL)
- return "SCOL";
- if (code == V3EducationLevel.SEC)
- return "SEC";
- return "?";
- }
-
- public String toSystem(V3EducationLevel code) {
- return code.getSystem();
- }
-
-}
-
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3EmployeeJobClassEnumFactory.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3EmployeeJobClassEnumFactory.java
deleted file mode 100644
index 1400fb6c5ca..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3EmployeeJobClassEnumFactory.java
+++ /dev/null
@@ -1,62 +0,0 @@
-package org.hl7.fhir.dstu21.model.valuesets;
-
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
-
-public class V3EmployeeJobClassEnumFactory implements EnumFactory {
-
- public V3EmployeeJobClass fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("FT".equals(codeString))
- return V3EmployeeJobClass.FT;
- if ("PT".equals(codeString))
- return V3EmployeeJobClass.PT;
- throw new IllegalArgumentException("Unknown V3EmployeeJobClass code '"+codeString+"'");
- }
-
- public String toCode(V3EmployeeJobClass code) {
- if (code == V3EmployeeJobClass.FT)
- return "FT";
- if (code == V3EmployeeJobClass.PT)
- return "PT";
- return "?";
- }
-
- public String toSystem(V3EmployeeJobClass code) {
- return code.getSystem();
- }
-
-}
-
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3EncounterAdmissionSourceEnumFactory.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3EncounterAdmissionSourceEnumFactory.java
deleted file mode 100644
index 868e8cf6ae1..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3EncounterAdmissionSourceEnumFactory.java
+++ /dev/null
@@ -1,66 +0,0 @@
-package org.hl7.fhir.dstu21.model.valuesets;
-
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
-
-public class V3EncounterAdmissionSourceEnumFactory implements EnumFactory {
-
- public V3EncounterAdmissionSource fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("E".equals(codeString))
- return V3EncounterAdmissionSource.E;
- if ("LD".equals(codeString))
- return V3EncounterAdmissionSource.LD;
- if ("NB".equals(codeString))
- return V3EncounterAdmissionSource.NB;
- throw new IllegalArgumentException("Unknown V3EncounterAdmissionSource code '"+codeString+"'");
- }
-
- public String toCode(V3EncounterAdmissionSource code) {
- if (code == V3EncounterAdmissionSource.E)
- return "E";
- if (code == V3EncounterAdmissionSource.LD)
- return "LD";
- if (code == V3EncounterAdmissionSource.NB)
- return "NB";
- return "?";
- }
-
- public String toSystem(V3EncounterAdmissionSource code) {
- return code.getSystem();
- }
-
-}
-
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3EncounterSpecialCourtesyEnumFactory.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3EncounterSpecialCourtesyEnumFactory.java
deleted file mode 100644
index 920d58cc548..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3EncounterSpecialCourtesyEnumFactory.java
+++ /dev/null
@@ -1,74 +0,0 @@
-package org.hl7.fhir.dstu21.model.valuesets;
-
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
-
-public class V3EncounterSpecialCourtesyEnumFactory implements EnumFactory {
-
- public V3EncounterSpecialCourtesy fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("EXT".equals(codeString))
- return V3EncounterSpecialCourtesy.EXT;
- if ("NRM".equals(codeString))
- return V3EncounterSpecialCourtesy.NRM;
- if ("PRF".equals(codeString))
- return V3EncounterSpecialCourtesy.PRF;
- if ("STF".equals(codeString))
- return V3EncounterSpecialCourtesy.STF;
- if ("VIP".equals(codeString))
- return V3EncounterSpecialCourtesy.VIP;
- throw new IllegalArgumentException("Unknown V3EncounterSpecialCourtesy code '"+codeString+"'");
- }
-
- public String toCode(V3EncounterSpecialCourtesy code) {
- if (code == V3EncounterSpecialCourtesy.EXT)
- return "EXT";
- if (code == V3EncounterSpecialCourtesy.NRM)
- return "NRM";
- if (code == V3EncounterSpecialCourtesy.PRF)
- return "PRF";
- if (code == V3EncounterSpecialCourtesy.STF)
- return "STF";
- if (code == V3EncounterSpecialCourtesy.VIP)
- return "VIP";
- return "?";
- }
-
- public String toSystem(V3EncounterSpecialCourtesy code) {
- return code.getSystem();
- }
-
-}
-
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3EntityDeterminerEnumFactory.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3EntityDeterminerEnumFactory.java
deleted file mode 100644
index 050ed98c33d..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3EntityDeterminerEnumFactory.java
+++ /dev/null
@@ -1,74 +0,0 @@
-package org.hl7.fhir.dstu21.model.valuesets;
-
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
-
-public class V3EntityDeterminerEnumFactory implements EnumFactory {
-
- public V3EntityDeterminer fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("INSTANCE".equals(codeString))
- return V3EntityDeterminer.INSTANCE;
- if ("GROUP".equals(codeString))
- return V3EntityDeterminer.GROUP;
- if ("KIND".equals(codeString))
- return V3EntityDeterminer.KIND;
- if ("GROUPKIND".equals(codeString))
- return V3EntityDeterminer.GROUPKIND;
- if ("QUANTIFIED_KIND".equals(codeString))
- return V3EntityDeterminer.QUANTIFIEDKIND;
- throw new IllegalArgumentException("Unknown V3EntityDeterminer code '"+codeString+"'");
- }
-
- public String toCode(V3EntityDeterminer code) {
- if (code == V3EntityDeterminer.INSTANCE)
- return "INSTANCE";
- if (code == V3EntityDeterminer.GROUP)
- return "GROUP";
- if (code == V3EntityDeterminer.KIND)
- return "KIND";
- if (code == V3EntityDeterminer.GROUPKIND)
- return "GROUPKIND";
- if (code == V3EntityDeterminer.QUANTIFIEDKIND)
- return "QUANTIFIED_KIND";
- return "?";
- }
-
- public String toSystem(V3EntityDeterminer code) {
- return code.getSystem();
- }
-
-}
-
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3EntityNamePartTypeEnumFactory.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3EntityNamePartTypeEnumFactory.java
deleted file mode 100644
index a101c24f5b2..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3EntityNamePartTypeEnumFactory.java
+++ /dev/null
@@ -1,74 +0,0 @@
-package org.hl7.fhir.dstu21.model.valuesets;
-
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
-
-public class V3EntityNamePartTypeEnumFactory implements EnumFactory {
-
- public V3EntityNamePartType fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("DEL".equals(codeString))
- return V3EntityNamePartType.DEL;
- if ("FAM".equals(codeString))
- return V3EntityNamePartType.FAM;
- if ("GIV".equals(codeString))
- return V3EntityNamePartType.GIV;
- if ("PFX".equals(codeString))
- return V3EntityNamePartType.PFX;
- if ("SFX".equals(codeString))
- return V3EntityNamePartType.SFX;
- throw new IllegalArgumentException("Unknown V3EntityNamePartType code '"+codeString+"'");
- }
-
- public String toCode(V3EntityNamePartType code) {
- if (code == V3EntityNamePartType.DEL)
- return "DEL";
- if (code == V3EntityNamePartType.FAM)
- return "FAM";
- if (code == V3EntityNamePartType.GIV)
- return "GIV";
- if (code == V3EntityNamePartType.PFX)
- return "PFX";
- if (code == V3EntityNamePartType.SFX)
- return "SFX";
- return "?";
- }
-
- public String toSystem(V3EntityNamePartType code) {
- return code.getSystem();
- }
-
-}
-
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3EntityNamePartTypeR2EnumFactory.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3EntityNamePartTypeR2EnumFactory.java
deleted file mode 100644
index 7131c64da6e..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3EntityNamePartTypeR2EnumFactory.java
+++ /dev/null
@@ -1,70 +0,0 @@
-package org.hl7.fhir.dstu21.model.valuesets;
-
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
-
-public class V3EntityNamePartTypeR2EnumFactory implements EnumFactory {
-
- public V3EntityNamePartTypeR2 fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("DEL".equals(codeString))
- return V3EntityNamePartTypeR2.DEL;
- if ("FAM".equals(codeString))
- return V3EntityNamePartTypeR2.FAM;
- if ("GIV".equals(codeString))
- return V3EntityNamePartTypeR2.GIV;
- if ("TITLE".equals(codeString))
- return V3EntityNamePartTypeR2.TITLE;
- throw new IllegalArgumentException("Unknown V3EntityNamePartTypeR2 code '"+codeString+"'");
- }
-
- public String toCode(V3EntityNamePartTypeR2 code) {
- if (code == V3EntityNamePartTypeR2.DEL)
- return "DEL";
- if (code == V3EntityNamePartTypeR2.FAM)
- return "FAM";
- if (code == V3EntityNamePartTypeR2.GIV)
- return "GIV";
- if (code == V3EntityNamePartTypeR2.TITLE)
- return "TITLE";
- return "?";
- }
-
- public String toSystem(V3EntityNamePartTypeR2 code) {
- return code.getSystem();
- }
-
-}
-
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3EntityRiskEnumFactory.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3EntityRiskEnumFactory.java
deleted file mode 100644
index 56695e19a43..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3EntityRiskEnumFactory.java
+++ /dev/null
@@ -1,98 +0,0 @@
-package org.hl7.fhir.dstu21.model.valuesets;
-
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
-
-public class V3EntityRiskEnumFactory implements EnumFactory {
-
- public V3EntityRisk fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("AGG".equals(codeString))
- return V3EntityRisk.AGG;
- if ("BIO".equals(codeString))
- return V3EntityRisk.BIO;
- if ("COR".equals(codeString))
- return V3EntityRisk.COR;
- if ("ESC".equals(codeString))
- return V3EntityRisk.ESC;
- if ("IFL".equals(codeString))
- return V3EntityRisk.IFL;
- if ("EXP".equals(codeString))
- return V3EntityRisk.EXP;
- if ("INF".equals(codeString))
- return V3EntityRisk.INF;
- if ("BHZ".equals(codeString))
- return V3EntityRisk.BHZ;
- if ("INJ".equals(codeString))
- return V3EntityRisk.INJ;
- if ("POI".equals(codeString))
- return V3EntityRisk.POI;
- if ("RAD".equals(codeString))
- return V3EntityRisk.RAD;
- throw new IllegalArgumentException("Unknown V3EntityRisk code '"+codeString+"'");
- }
-
- public String toCode(V3EntityRisk code) {
- if (code == V3EntityRisk.AGG)
- return "AGG";
- if (code == V3EntityRisk.BIO)
- return "BIO";
- if (code == V3EntityRisk.COR)
- return "COR";
- if (code == V3EntityRisk.ESC)
- return "ESC";
- if (code == V3EntityRisk.IFL)
- return "IFL";
- if (code == V3EntityRisk.EXP)
- return "EXP";
- if (code == V3EntityRisk.INF)
- return "INF";
- if (code == V3EntityRisk.BHZ)
- return "BHZ";
- if (code == V3EntityRisk.INJ)
- return "INJ";
- if (code == V3EntityRisk.POI)
- return "POI";
- if (code == V3EntityRisk.RAD)
- return "RAD";
- return "?";
- }
-
- public String toSystem(V3EntityRisk code) {
- return code.getSystem();
- }
-
-}
-
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3EntityStatusEnumFactory.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3EntityStatusEnumFactory.java
deleted file mode 100644
index dfc5ae3ef84..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3EntityStatusEnumFactory.java
+++ /dev/null
@@ -1,74 +0,0 @@
-package org.hl7.fhir.dstu21.model.valuesets;
-
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
-
-public class V3EntityStatusEnumFactory implements EnumFactory {
-
- public V3EntityStatus fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("normal".equals(codeString))
- return V3EntityStatus.NORMAL;
- if ("active".equals(codeString))
- return V3EntityStatus.ACTIVE;
- if ("inactive".equals(codeString))
- return V3EntityStatus.INACTIVE;
- if ("terminated".equals(codeString))
- return V3EntityStatus.TERMINATED;
- if ("nullified".equals(codeString))
- return V3EntityStatus.NULLIFIED;
- throw new IllegalArgumentException("Unknown V3EntityStatus code '"+codeString+"'");
- }
-
- public String toCode(V3EntityStatus code) {
- if (code == V3EntityStatus.NORMAL)
- return "normal";
- if (code == V3EntityStatus.ACTIVE)
- return "active";
- if (code == V3EntityStatus.INACTIVE)
- return "inactive";
- if (code == V3EntityStatus.TERMINATED)
- return "terminated";
- if (code == V3EntityStatus.NULLIFIED)
- return "nullified";
- return "?";
- }
-
- public String toSystem(V3EntityStatus code) {
- return code.getSystem();
- }
-
-}
-
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3EquipmentAlertLevelEnumFactory.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3EquipmentAlertLevelEnumFactory.java
deleted file mode 100644
index eb60a60ea4f..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3EquipmentAlertLevelEnumFactory.java
+++ /dev/null
@@ -1,70 +0,0 @@
-package org.hl7.fhir.dstu21.model.valuesets;
-
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
-
-public class V3EquipmentAlertLevelEnumFactory implements EnumFactory {
-
- public V3EquipmentAlertLevel fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("C".equals(codeString))
- return V3EquipmentAlertLevel.C;
- if ("N".equals(codeString))
- return V3EquipmentAlertLevel.N;
- if ("S".equals(codeString))
- return V3EquipmentAlertLevel.S;
- if ("W".equals(codeString))
- return V3EquipmentAlertLevel.W;
- throw new IllegalArgumentException("Unknown V3EquipmentAlertLevel code '"+codeString+"'");
- }
-
- public String toCode(V3EquipmentAlertLevel code) {
- if (code == V3EquipmentAlertLevel.C)
- return "C";
- if (code == V3EquipmentAlertLevel.N)
- return "N";
- if (code == V3EquipmentAlertLevel.S)
- return "S";
- if (code == V3EquipmentAlertLevel.W)
- return "W";
- return "?";
- }
-
- public String toSystem(V3EquipmentAlertLevel code) {
- return code.getSystem();
- }
-
-}
-
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3ExposureModeEnumFactory.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3ExposureModeEnumFactory.java
deleted file mode 100644
index 1097578b397..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3ExposureModeEnumFactory.java
+++ /dev/null
@@ -1,74 +0,0 @@
-package org.hl7.fhir.dstu21.model.valuesets;
-
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
-
-public class V3ExposureModeEnumFactory implements EnumFactory {
-
- public V3ExposureMode fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("_ExposureMode".equals(codeString))
- return V3ExposureMode._EXPOSUREMODE;
- if ("AIRBORNE".equals(codeString))
- return V3ExposureMode.AIRBORNE;
- if ("CONTACT".equals(codeString))
- return V3ExposureMode.CONTACT;
- if ("FOODBORNE".equals(codeString))
- return V3ExposureMode.FOODBORNE;
- if ("WATERBORNE".equals(codeString))
- return V3ExposureMode.WATERBORNE;
- throw new IllegalArgumentException("Unknown V3ExposureMode code '"+codeString+"'");
- }
-
- public String toCode(V3ExposureMode code) {
- if (code == V3ExposureMode._EXPOSUREMODE)
- return "_ExposureMode";
- if (code == V3ExposureMode.AIRBORNE)
- return "AIRBORNE";
- if (code == V3ExposureMode.CONTACT)
- return "CONTACT";
- if (code == V3ExposureMode.FOODBORNE)
- return "FOODBORNE";
- if (code == V3ExposureMode.WATERBORNE)
- return "WATERBORNE";
- return "?";
- }
-
- public String toSystem(V3ExposureMode code) {
- return code.getSystem();
- }
-
-}
-
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3GenderStatusEnumFactory.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3GenderStatusEnumFactory.java
deleted file mode 100644
index 60e60af4e7c..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3GenderStatusEnumFactory.java
+++ /dev/null
@@ -1,62 +0,0 @@
-package org.hl7.fhir.dstu21.model.valuesets;
-
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
-
-public class V3GenderStatusEnumFactory implements EnumFactory {
-
- public V3GenderStatus fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("I".equals(codeString))
- return V3GenderStatus.I;
- if ("N".equals(codeString))
- return V3GenderStatus.N;
- throw new IllegalArgumentException("Unknown V3GenderStatus code '"+codeString+"'");
- }
-
- public String toCode(V3GenderStatus code) {
- if (code == V3GenderStatus.I)
- return "I";
- if (code == V3GenderStatus.N)
- return "N";
- return "?";
- }
-
- public String toSystem(V3GenderStatus code) {
- return code.getSystem();
- }
-
-}
-
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3Hl7V3ConformanceEnumFactory.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3Hl7V3ConformanceEnumFactory.java
deleted file mode 100644
index 0c82e6e6e6d..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3Hl7V3ConformanceEnumFactory.java
+++ /dev/null
@@ -1,78 +0,0 @@
-package org.hl7.fhir.dstu21.model.valuesets;
-
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
-
-public class V3Hl7V3ConformanceEnumFactory implements EnumFactory {
-
- public V3Hl7V3Conformance fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("I".equals(codeString))
- return V3Hl7V3Conformance.I;
- if ("NP".equals(codeString))
- return V3Hl7V3Conformance.NP;
- if ("R".equals(codeString))
- return V3Hl7V3Conformance.R;
- if ("RC".equals(codeString))
- return V3Hl7V3Conformance.RC;
- if ("RI".equals(codeString))
- return V3Hl7V3Conformance.RI;
- if ("U".equals(codeString))
- return V3Hl7V3Conformance.U;
- throw new IllegalArgumentException("Unknown V3Hl7V3Conformance code '"+codeString+"'");
- }
-
- public String toCode(V3Hl7V3Conformance code) {
- if (code == V3Hl7V3Conformance.I)
- return "I";
- if (code == V3Hl7V3Conformance.NP)
- return "NP";
- if (code == V3Hl7V3Conformance.R)
- return "R";
- if (code == V3Hl7V3Conformance.RC)
- return "RC";
- if (code == V3Hl7V3Conformance.RI)
- return "RI";
- if (code == V3Hl7V3Conformance.U)
- return "U";
- return "?";
- }
-
- public String toSystem(V3Hl7V3Conformance code) {
- return code.getSystem();
- }
-
-}
-
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3IdentifierReliabilityEnumFactory.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3IdentifierReliabilityEnumFactory.java
deleted file mode 100644
index fcd08d9a747..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3IdentifierReliabilityEnumFactory.java
+++ /dev/null
@@ -1,66 +0,0 @@
-package org.hl7.fhir.dstu21.model.valuesets;
-
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
-
-public class V3IdentifierReliabilityEnumFactory implements EnumFactory {
-
- public V3IdentifierReliability fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("ISS".equals(codeString))
- return V3IdentifierReliability.ISS;
- if ("UNV".equals(codeString))
- return V3IdentifierReliability.UNV;
- if ("VRF".equals(codeString))
- return V3IdentifierReliability.VRF;
- throw new IllegalArgumentException("Unknown V3IdentifierReliability code '"+codeString+"'");
- }
-
- public String toCode(V3IdentifierReliability code) {
- if (code == V3IdentifierReliability.ISS)
- return "ISS";
- if (code == V3IdentifierReliability.UNV)
- return "UNV";
- if (code == V3IdentifierReliability.VRF)
- return "VRF";
- return "?";
- }
-
- public String toSystem(V3IdentifierReliability code) {
- return code.getSystem();
- }
-
-}
-
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3IdentifierScopeEnumFactory.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3IdentifierScopeEnumFactory.java
deleted file mode 100644
index 36fba82607f..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3IdentifierScopeEnumFactory.java
+++ /dev/null
@@ -1,70 +0,0 @@
-package org.hl7.fhir.dstu21.model.valuesets;
-
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
-
-public class V3IdentifierScopeEnumFactory implements EnumFactory {
-
- public V3IdentifierScope fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("BUSN".equals(codeString))
- return V3IdentifierScope.BUSN;
- if ("OBJ".equals(codeString))
- return V3IdentifierScope.OBJ;
- if ("VER".equals(codeString))
- return V3IdentifierScope.VER;
- if ("VW".equals(codeString))
- return V3IdentifierScope.VW;
- throw new IllegalArgumentException("Unknown V3IdentifierScope code '"+codeString+"'");
- }
-
- public String toCode(V3IdentifierScope code) {
- if (code == V3IdentifierScope.BUSN)
- return "BUSN";
- if (code == V3IdentifierScope.OBJ)
- return "OBJ";
- if (code == V3IdentifierScope.VER)
- return "VER";
- if (code == V3IdentifierScope.VW)
- return "VW";
- return "?";
- }
-
- public String toSystem(V3IdentifierScope code) {
- return code.getSystem();
- }
-
-}
-
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3IntegrityCheckAlgorithmEnumFactory.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3IntegrityCheckAlgorithmEnumFactory.java
deleted file mode 100644
index 299441dfa68..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3IntegrityCheckAlgorithmEnumFactory.java
+++ /dev/null
@@ -1,62 +0,0 @@
-package org.hl7.fhir.dstu21.model.valuesets;
-
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
-
-public class V3IntegrityCheckAlgorithmEnumFactory implements EnumFactory {
-
- public V3IntegrityCheckAlgorithm fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("SHA-1".equals(codeString))
- return V3IntegrityCheckAlgorithm.SHA1;
- if ("SHA-256".equals(codeString))
- return V3IntegrityCheckAlgorithm.SHA256;
- throw new IllegalArgumentException("Unknown V3IntegrityCheckAlgorithm code '"+codeString+"'");
- }
-
- public String toCode(V3IntegrityCheckAlgorithm code) {
- if (code == V3IntegrityCheckAlgorithm.SHA1)
- return "SHA-1";
- if (code == V3IntegrityCheckAlgorithm.SHA256)
- return "SHA-256";
- return "?";
- }
-
- public String toSystem(V3IntegrityCheckAlgorithm code) {
- return code.getSystem();
- }
-
-}
-
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3LanguageAbilityModeEnumFactory.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3LanguageAbilityModeEnumFactory.java
deleted file mode 100644
index 6c22d751a4a..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3LanguageAbilityModeEnumFactory.java
+++ /dev/null
@@ -1,78 +0,0 @@
-package org.hl7.fhir.dstu21.model.valuesets;
-
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
-
-public class V3LanguageAbilityModeEnumFactory implements EnumFactory {
-
- public V3LanguageAbilityMode fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("ESGN".equals(codeString))
- return V3LanguageAbilityMode.ESGN;
- if ("ESP".equals(codeString))
- return V3LanguageAbilityMode.ESP;
- if ("EWR".equals(codeString))
- return V3LanguageAbilityMode.EWR;
- if ("RSGN".equals(codeString))
- return V3LanguageAbilityMode.RSGN;
- if ("RSP".equals(codeString))
- return V3LanguageAbilityMode.RSP;
- if ("RWR".equals(codeString))
- return V3LanguageAbilityMode.RWR;
- throw new IllegalArgumentException("Unknown V3LanguageAbilityMode code '"+codeString+"'");
- }
-
- public String toCode(V3LanguageAbilityMode code) {
- if (code == V3LanguageAbilityMode.ESGN)
- return "ESGN";
- if (code == V3LanguageAbilityMode.ESP)
- return "ESP";
- if (code == V3LanguageAbilityMode.EWR)
- return "EWR";
- if (code == V3LanguageAbilityMode.RSGN)
- return "RSGN";
- if (code == V3LanguageAbilityMode.RSP)
- return "RSP";
- if (code == V3LanguageAbilityMode.RWR)
- return "RWR";
- return "?";
- }
-
- public String toSystem(V3LanguageAbilityMode code) {
- return code.getSystem();
- }
-
-}
-
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3LanguageAbilityProficiencyEnumFactory.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3LanguageAbilityProficiencyEnumFactory.java
deleted file mode 100644
index 584a3c2cd24..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3LanguageAbilityProficiencyEnumFactory.java
+++ /dev/null
@@ -1,70 +0,0 @@
-package org.hl7.fhir.dstu21.model.valuesets;
-
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
-
-public class V3LanguageAbilityProficiencyEnumFactory implements EnumFactory {
-
- public V3LanguageAbilityProficiency fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("E".equals(codeString))
- return V3LanguageAbilityProficiency.E;
- if ("F".equals(codeString))
- return V3LanguageAbilityProficiency.F;
- if ("G".equals(codeString))
- return V3LanguageAbilityProficiency.G;
- if ("P".equals(codeString))
- return V3LanguageAbilityProficiency.P;
- throw new IllegalArgumentException("Unknown V3LanguageAbilityProficiency code '"+codeString+"'");
- }
-
- public String toCode(V3LanguageAbilityProficiency code) {
- if (code == V3LanguageAbilityProficiency.E)
- return "E";
- if (code == V3LanguageAbilityProficiency.F)
- return "F";
- if (code == V3LanguageAbilityProficiency.G)
- return "G";
- if (code == V3LanguageAbilityProficiency.P)
- return "P";
- return "?";
- }
-
- public String toSystem(V3LanguageAbilityProficiency code) {
- return code.getSystem();
- }
-
-}
-
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3LocalMarkupIgnoreEnumFactory.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3LocalMarkupIgnoreEnumFactory.java
deleted file mode 100644
index 401e9afef97..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3LocalMarkupIgnoreEnumFactory.java
+++ /dev/null
@@ -1,62 +0,0 @@
-package org.hl7.fhir.dstu21.model.valuesets;
-
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
-
-public class V3LocalMarkupIgnoreEnumFactory implements EnumFactory {
-
- public V3LocalMarkupIgnore fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("all".equals(codeString))
- return V3LocalMarkupIgnore.ALL;
- if ("markup".equals(codeString))
- return V3LocalMarkupIgnore.MARKUP;
- throw new IllegalArgumentException("Unknown V3LocalMarkupIgnore code '"+codeString+"'");
- }
-
- public String toCode(V3LocalMarkupIgnore code) {
- if (code == V3LocalMarkupIgnore.ALL)
- return "all";
- if (code == V3LocalMarkupIgnore.MARKUP)
- return "markup";
- return "?";
- }
-
- public String toSystem(V3LocalMarkupIgnore code) {
- return code.getSystem();
- }
-
-}
-
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3LocalRemoteControlStateEnumFactory.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3LocalRemoteControlStateEnumFactory.java
deleted file mode 100644
index e368f604bae..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3LocalRemoteControlStateEnumFactory.java
+++ /dev/null
@@ -1,62 +0,0 @@
-package org.hl7.fhir.dstu21.model.valuesets;
-
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
-
-public class V3LocalRemoteControlStateEnumFactory implements EnumFactory {
-
- public V3LocalRemoteControlState fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("L".equals(codeString))
- return V3LocalRemoteControlState.L;
- if ("R".equals(codeString))
- return V3LocalRemoteControlState.R;
- throw new IllegalArgumentException("Unknown V3LocalRemoteControlState code '"+codeString+"'");
- }
-
- public String toCode(V3LocalRemoteControlState code) {
- if (code == V3LocalRemoteControlState.L)
- return "L";
- if (code == V3LocalRemoteControlState.R)
- return "R";
- return "?";
- }
-
- public String toSystem(V3LocalRemoteControlState code) {
- return code.getSystem();
- }
-
-}
-
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3ManagedParticipationStatusEnumFactory.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3ManagedParticipationStatusEnumFactory.java
deleted file mode 100644
index 518a37ccee9..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3ManagedParticipationStatusEnumFactory.java
+++ /dev/null
@@ -1,78 +0,0 @@
-package org.hl7.fhir.dstu21.model.valuesets;
-
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
-
-public class V3ManagedParticipationStatusEnumFactory implements EnumFactory {
-
- public V3ManagedParticipationStatus fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("normal".equals(codeString))
- return V3ManagedParticipationStatus.NORMAL;
- if ("active".equals(codeString))
- return V3ManagedParticipationStatus.ACTIVE;
- if ("cancelled".equals(codeString))
- return V3ManagedParticipationStatus.CANCELLED;
- if ("completed".equals(codeString))
- return V3ManagedParticipationStatus.COMPLETED;
- if ("pending".equals(codeString))
- return V3ManagedParticipationStatus.PENDING;
- if ("nullified".equals(codeString))
- return V3ManagedParticipationStatus.NULLIFIED;
- throw new IllegalArgumentException("Unknown V3ManagedParticipationStatus code '"+codeString+"'");
- }
-
- public String toCode(V3ManagedParticipationStatus code) {
- if (code == V3ManagedParticipationStatus.NORMAL)
- return "normal";
- if (code == V3ManagedParticipationStatus.ACTIVE)
- return "active";
- if (code == V3ManagedParticipationStatus.CANCELLED)
- return "cancelled";
- if (code == V3ManagedParticipationStatus.COMPLETED)
- return "completed";
- if (code == V3ManagedParticipationStatus.PENDING)
- return "pending";
- if (code == V3ManagedParticipationStatus.NULLIFIED)
- return "nullified";
- return "?";
- }
-
- public String toSystem(V3ManagedParticipationStatus code) {
- return code.getSystem();
- }
-
-}
-
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3MapRelationshipEnumFactory.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3MapRelationshipEnumFactory.java
deleted file mode 100644
index 2613d9cd307..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3MapRelationshipEnumFactory.java
+++ /dev/null
@@ -1,66 +0,0 @@
-package org.hl7.fhir.dstu21.model.valuesets;
-
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
-
-public class V3MapRelationshipEnumFactory implements EnumFactory {
-
- public V3MapRelationship fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("BT".equals(codeString))
- return V3MapRelationship.BT;
- if ("E".equals(codeString))
- return V3MapRelationship.E;
- if ("NT".equals(codeString))
- return V3MapRelationship.NT;
- throw new IllegalArgumentException("Unknown V3MapRelationship code '"+codeString+"'");
- }
-
- public String toCode(V3MapRelationship code) {
- if (code == V3MapRelationship.BT)
- return "BT";
- if (code == V3MapRelationship.E)
- return "E";
- if (code == V3MapRelationship.NT)
- return "NT";
- return "?";
- }
-
- public String toSystem(V3MapRelationship code) {
- return code.getSystem();
- }
-
-}
-
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3MaritalStatusEnumFactory.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3MaritalStatusEnumFactory.java
deleted file mode 100644
index 812f123c4a3..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3MaritalStatusEnumFactory.java
+++ /dev/null
@@ -1,94 +0,0 @@
-package org.hl7.fhir.dstu21.model.valuesets;
-
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
-
-public class V3MaritalStatusEnumFactory implements EnumFactory {
-
- public V3MaritalStatus fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("A".equals(codeString))
- return V3MaritalStatus.A;
- if ("D".equals(codeString))
- return V3MaritalStatus.D;
- if ("I".equals(codeString))
- return V3MaritalStatus.I;
- if ("L".equals(codeString))
- return V3MaritalStatus.L;
- if ("M".equals(codeString))
- return V3MaritalStatus.M;
- if ("P".equals(codeString))
- return V3MaritalStatus.P;
- if ("S".equals(codeString))
- return V3MaritalStatus.S;
- if ("T".equals(codeString))
- return V3MaritalStatus.T;
- if ("U".equals(codeString))
- return V3MaritalStatus.U;
- if ("W".equals(codeString))
- return V3MaritalStatus.W;
- throw new IllegalArgumentException("Unknown V3MaritalStatus code '"+codeString+"'");
- }
-
- public String toCode(V3MaritalStatus code) {
- if (code == V3MaritalStatus.A)
- return "A";
- if (code == V3MaritalStatus.D)
- return "D";
- if (code == V3MaritalStatus.I)
- return "I";
- if (code == V3MaritalStatus.L)
- return "L";
- if (code == V3MaritalStatus.M)
- return "M";
- if (code == V3MaritalStatus.P)
- return "P";
- if (code == V3MaritalStatus.S)
- return "S";
- if (code == V3MaritalStatus.T)
- return "T";
- if (code == V3MaritalStatus.U)
- return "U";
- if (code == V3MaritalStatus.W)
- return "W";
- return "?";
- }
-
- public String toSystem(V3MaritalStatus code) {
- return code.getSystem();
- }
-
-}
-
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3MessageWaitingPriorityEnumFactory.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3MessageWaitingPriorityEnumFactory.java
deleted file mode 100644
index 20492af1d4a..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3MessageWaitingPriorityEnumFactory.java
+++ /dev/null
@@ -1,66 +0,0 @@
-package org.hl7.fhir.dstu21.model.valuesets;
-
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
-
-public class V3MessageWaitingPriorityEnumFactory implements EnumFactory {
-
- public V3MessageWaitingPriority fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("H".equals(codeString))
- return V3MessageWaitingPriority.H;
- if ("L".equals(codeString))
- return V3MessageWaitingPriority.L;
- if ("M".equals(codeString))
- return V3MessageWaitingPriority.M;
- throw new IllegalArgumentException("Unknown V3MessageWaitingPriority code '"+codeString+"'");
- }
-
- public String toCode(V3MessageWaitingPriority code) {
- if (code == V3MessageWaitingPriority.H)
- return "H";
- if (code == V3MessageWaitingPriority.L)
- return "L";
- if (code == V3MessageWaitingPriority.M)
- return "M";
- return "?";
- }
-
- public String toSystem(V3MessageWaitingPriority code) {
- return code.getSystem();
- }
-
-}
-
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3ModifyIndicatorEnumFactory.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3ModifyIndicatorEnumFactory.java
deleted file mode 100644
index 4007c7fffe9..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3ModifyIndicatorEnumFactory.java
+++ /dev/null
@@ -1,62 +0,0 @@
-package org.hl7.fhir.dstu21.model.valuesets;
-
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
-
-public class V3ModifyIndicatorEnumFactory implements EnumFactory {
-
- public V3ModifyIndicator fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("M".equals(codeString))
- return V3ModifyIndicator.M;
- if ("N".equals(codeString))
- return V3ModifyIndicator.N;
- throw new IllegalArgumentException("Unknown V3ModifyIndicator code '"+codeString+"'");
- }
-
- public String toCode(V3ModifyIndicator code) {
- if (code == V3ModifyIndicator.M)
- return "M";
- if (code == V3ModifyIndicator.N)
- return "N";
- return "?";
- }
-
- public String toSystem(V3ModifyIndicator code) {
- return code.getSystem();
- }
-
-}
-
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3ParticipationSignatureEnumFactory.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3ParticipationSignatureEnumFactory.java
deleted file mode 100644
index a42a5343dca..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3ParticipationSignatureEnumFactory.java
+++ /dev/null
@@ -1,66 +0,0 @@
-package org.hl7.fhir.dstu21.model.valuesets;
-
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
-
-public class V3ParticipationSignatureEnumFactory implements EnumFactory {
-
- public V3ParticipationSignature fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("I".equals(codeString))
- return V3ParticipationSignature.I;
- if ("S".equals(codeString))
- return V3ParticipationSignature.S;
- if ("X".equals(codeString))
- return V3ParticipationSignature.X;
- throw new IllegalArgumentException("Unknown V3ParticipationSignature code '"+codeString+"'");
- }
-
- public String toCode(V3ParticipationSignature code) {
- if (code == V3ParticipationSignature.I)
- return "I";
- if (code == V3ParticipationSignature.S)
- return "S";
- if (code == V3ParticipationSignature.X)
- return "X";
- return "?";
- }
-
- public String toSystem(V3ParticipationSignature code) {
- return code.getSystem();
- }
-
-}
-
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3PatientImportanceEnumFactory.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3PatientImportanceEnumFactory.java
deleted file mode 100644
index 3afae1ff537..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3PatientImportanceEnumFactory.java
+++ /dev/null
@@ -1,90 +0,0 @@
-package org.hl7.fhir.dstu21.model.valuesets;
-
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
-
-public class V3PatientImportanceEnumFactory implements EnumFactory {
-
- public V3PatientImportance fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("BM".equals(codeString))
- return V3PatientImportance.BM;
- if ("DFM".equals(codeString))
- return V3PatientImportance.DFM;
- if ("DR".equals(codeString))
- return V3PatientImportance.DR;
- if ("FD".equals(codeString))
- return V3PatientImportance.FD;
- if ("FOR".equals(codeString))
- return V3PatientImportance.FOR;
- if ("GOVT".equals(codeString))
- return V3PatientImportance.GOVT;
- if ("SFM".equals(codeString))
- return V3PatientImportance.SFM;
- if ("STF".equals(codeString))
- return V3PatientImportance.STF;
- if ("VIP".equals(codeString))
- return V3PatientImportance.VIP;
- throw new IllegalArgumentException("Unknown V3PatientImportance code '"+codeString+"'");
- }
-
- public String toCode(V3PatientImportance code) {
- if (code == V3PatientImportance.BM)
- return "BM";
- if (code == V3PatientImportance.DFM)
- return "DFM";
- if (code == V3PatientImportance.DR)
- return "DR";
- if (code == V3PatientImportance.FD)
- return "FD";
- if (code == V3PatientImportance.FOR)
- return "FOR";
- if (code == V3PatientImportance.GOVT)
- return "GOVT";
- if (code == V3PatientImportance.SFM)
- return "SFM";
- if (code == V3PatientImportance.STF)
- return "STF";
- if (code == V3PatientImportance.VIP)
- return "VIP";
- return "?";
- }
-
- public String toSystem(V3PatientImportance code) {
- return code.getSystem();
- }
-
-}
-
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3PaymentTermsEnumFactory.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3PaymentTermsEnumFactory.java
deleted file mode 100644
index 36734171b68..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3PaymentTermsEnumFactory.java
+++ /dev/null
@@ -1,70 +0,0 @@
-package org.hl7.fhir.dstu21.model.valuesets;
-
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
-
-public class V3PaymentTermsEnumFactory implements EnumFactory {
-
- public V3PaymentTerms fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("COD".equals(codeString))
- return V3PaymentTerms.COD;
- if ("N30".equals(codeString))
- return V3PaymentTerms.N30;
- if ("N60".equals(codeString))
- return V3PaymentTerms.N60;
- if ("N90".equals(codeString))
- return V3PaymentTerms.N90;
- throw new IllegalArgumentException("Unknown V3PaymentTerms code '"+codeString+"'");
- }
-
- public String toCode(V3PaymentTerms code) {
- if (code == V3PaymentTerms.COD)
- return "COD";
- if (code == V3PaymentTerms.N30)
- return "N30";
- if (code == V3PaymentTerms.N60)
- return "N60";
- if (code == V3PaymentTerms.N90)
- return "N90";
- return "?";
- }
-
- public String toSystem(V3PaymentTerms code) {
- return code.getSystem();
- }
-
-}
-
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3ProcessingIDEnumFactory.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3ProcessingIDEnumFactory.java
deleted file mode 100644
index ea5a32e0851..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3ProcessingIDEnumFactory.java
+++ /dev/null
@@ -1,66 +0,0 @@
-package org.hl7.fhir.dstu21.model.valuesets;
-
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
-
-public class V3ProcessingIDEnumFactory implements EnumFactory {
-
- public V3ProcessingID fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("D".equals(codeString))
- return V3ProcessingID.D;
- if ("P".equals(codeString))
- return V3ProcessingID.P;
- if ("T".equals(codeString))
- return V3ProcessingID.T;
- throw new IllegalArgumentException("Unknown V3ProcessingID code '"+codeString+"'");
- }
-
- public String toCode(V3ProcessingID code) {
- if (code == V3ProcessingID.D)
- return "D";
- if (code == V3ProcessingID.P)
- return "P";
- if (code == V3ProcessingID.T)
- return "T";
- return "?";
- }
-
- public String toSystem(V3ProcessingID code) {
- return code.getSystem();
- }
-
-}
-
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3ProcessingModeEnumFactory.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3ProcessingModeEnumFactory.java
deleted file mode 100644
index d758c9a8b00..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3ProcessingModeEnumFactory.java
+++ /dev/null
@@ -1,70 +0,0 @@
-package org.hl7.fhir.dstu21.model.valuesets;
-
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
-
-public class V3ProcessingModeEnumFactory implements EnumFactory {
-
- public V3ProcessingMode fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("A".equals(codeString))
- return V3ProcessingMode.A;
- if ("I".equals(codeString))
- return V3ProcessingMode.I;
- if ("R".equals(codeString))
- return V3ProcessingMode.R;
- if ("T".equals(codeString))
- return V3ProcessingMode.T;
- throw new IllegalArgumentException("Unknown V3ProcessingMode code '"+codeString+"'");
- }
-
- public String toCode(V3ProcessingMode code) {
- if (code == V3ProcessingMode.A)
- return "A";
- if (code == V3ProcessingMode.I)
- return "I";
- if (code == V3ProcessingMode.R)
- return "R";
- if (code == V3ProcessingMode.T)
- return "T";
- return "?";
- }
-
- public String toSystem(V3ProcessingMode code) {
- return code.getSystem();
- }
-
-}
-
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3QueryPriorityEnumFactory.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3QueryPriorityEnumFactory.java
deleted file mode 100644
index 04846b70041..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3QueryPriorityEnumFactory.java
+++ /dev/null
@@ -1,62 +0,0 @@
-package org.hl7.fhir.dstu21.model.valuesets;
-
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
-
-public class V3QueryPriorityEnumFactory implements EnumFactory {
-
- public V3QueryPriority fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("D".equals(codeString))
- return V3QueryPriority.D;
- if ("I".equals(codeString))
- return V3QueryPriority.I;
- throw new IllegalArgumentException("Unknown V3QueryPriority code '"+codeString+"'");
- }
-
- public String toCode(V3QueryPriority code) {
- if (code == V3QueryPriority.D)
- return "D";
- if (code == V3QueryPriority.I)
- return "I";
- return "?";
- }
-
- public String toSystem(V3QueryPriority code) {
- return code.getSystem();
- }
-
-}
-
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3QueryRequestLimitEnumFactory.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3QueryRequestLimitEnumFactory.java
deleted file mode 100644
index c20bdd27c96..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3QueryRequestLimitEnumFactory.java
+++ /dev/null
@@ -1,62 +0,0 @@
-package org.hl7.fhir.dstu21.model.valuesets;
-
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
-
-public class V3QueryRequestLimitEnumFactory implements EnumFactory {
-
- public V3QueryRequestLimit fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("_QueryRequestLimit".equals(codeString))
- return V3QueryRequestLimit._QUERYREQUESTLIMIT;
- if ("RD".equals(codeString))
- return V3QueryRequestLimit.RD;
- throw new IllegalArgumentException("Unknown V3QueryRequestLimit code '"+codeString+"'");
- }
-
- public String toCode(V3QueryRequestLimit code) {
- if (code == V3QueryRequestLimit._QUERYREQUESTLIMIT)
- return "_QueryRequestLimit";
- if (code == V3QueryRequestLimit.RD)
- return "RD";
- return "?";
- }
-
- public String toSystem(V3QueryRequestLimit code) {
- return code.getSystem();
- }
-
-}
-
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3QueryResponseEnumFactory.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3QueryResponseEnumFactory.java
deleted file mode 100644
index 6da09c9d6b3..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3QueryResponseEnumFactory.java
+++ /dev/null
@@ -1,70 +0,0 @@
-package org.hl7.fhir.dstu21.model.valuesets;
-
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
-
-public class V3QueryResponseEnumFactory implements EnumFactory {
-
- public V3QueryResponse fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("AE".equals(codeString))
- return V3QueryResponse.AE;
- if ("NF".equals(codeString))
- return V3QueryResponse.NF;
- if ("OK".equals(codeString))
- return V3QueryResponse.OK;
- if ("QE".equals(codeString))
- return V3QueryResponse.QE;
- throw new IllegalArgumentException("Unknown V3QueryResponse code '"+codeString+"'");
- }
-
- public String toCode(V3QueryResponse code) {
- if (code == V3QueryResponse.AE)
- return "AE";
- if (code == V3QueryResponse.NF)
- return "NF";
- if (code == V3QueryResponse.OK)
- return "OK";
- if (code == V3QueryResponse.QE)
- return "QE";
- return "?";
- }
-
- public String toSystem(V3QueryResponse code) {
- return code.getSystem();
- }
-
-}
-
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3QueryStatusCodeEnumFactory.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3QueryStatusCodeEnumFactory.java
deleted file mode 100644
index 0c4b633f617..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3QueryStatusCodeEnumFactory.java
+++ /dev/null
@@ -1,74 +0,0 @@
-package org.hl7.fhir.dstu21.model.valuesets;
-
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
-
-public class V3QueryStatusCodeEnumFactory implements EnumFactory {
-
- public V3QueryStatusCode fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("aborted".equals(codeString))
- return V3QueryStatusCode.ABORTED;
- if ("deliveredResponse".equals(codeString))
- return V3QueryStatusCode.DELIVEREDRESPONSE;
- if ("executing".equals(codeString))
- return V3QueryStatusCode.EXECUTING;
- if ("new".equals(codeString))
- return V3QueryStatusCode.NEW;
- if ("waitContinuedQueryResponse".equals(codeString))
- return V3QueryStatusCode.WAITCONTINUEDQUERYRESPONSE;
- throw new IllegalArgumentException("Unknown V3QueryStatusCode code '"+codeString+"'");
- }
-
- public String toCode(V3QueryStatusCode code) {
- if (code == V3QueryStatusCode.ABORTED)
- return "aborted";
- if (code == V3QueryStatusCode.DELIVEREDRESPONSE)
- return "deliveredResponse";
- if (code == V3QueryStatusCode.EXECUTING)
- return "executing";
- if (code == V3QueryStatusCode.NEW)
- return "new";
- if (code == V3QueryStatusCode.WAITCONTINUEDQUERYRESPONSE)
- return "waitContinuedQueryResponse";
- return "?";
- }
-
- public String toSystem(V3QueryStatusCode code) {
- return code.getSystem();
- }
-
-}
-
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3RelationalOperatorEnumFactory.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3RelationalOperatorEnumFactory.java
deleted file mode 100644
index 87b6e76c76e..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3RelationalOperatorEnumFactory.java
+++ /dev/null
@@ -1,86 +0,0 @@
-package org.hl7.fhir.dstu21.model.valuesets;
-
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
-
-public class V3RelationalOperatorEnumFactory implements EnumFactory {
-
- public V3RelationalOperator fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("CT".equals(codeString))
- return V3RelationalOperator.CT;
- if ("EQ".equals(codeString))
- return V3RelationalOperator.EQ;
- if ("GE".equals(codeString))
- return V3RelationalOperator.GE;
- if ("GN".equals(codeString))
- return V3RelationalOperator.GN;
- if ("GT".equals(codeString))
- return V3RelationalOperator.GT;
- if ("LE".equals(codeString))
- return V3RelationalOperator.LE;
- if ("LT".equals(codeString))
- return V3RelationalOperator.LT;
- if ("NE".equals(codeString))
- return V3RelationalOperator.NE;
- throw new IllegalArgumentException("Unknown V3RelationalOperator code '"+codeString+"'");
- }
-
- public String toCode(V3RelationalOperator code) {
- if (code == V3RelationalOperator.CT)
- return "CT";
- if (code == V3RelationalOperator.EQ)
- return "EQ";
- if (code == V3RelationalOperator.GE)
- return "GE";
- if (code == V3RelationalOperator.GN)
- return "GN";
- if (code == V3RelationalOperator.GT)
- return "GT";
- if (code == V3RelationalOperator.LE)
- return "LE";
- if (code == V3RelationalOperator.LT)
- return "LT";
- if (code == V3RelationalOperator.NE)
- return "NE";
- return "?";
- }
-
- public String toSystem(V3RelationalOperator code) {
- return code.getSystem();
- }
-
-}
-
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3RelationshipConjunctionEnumFactory.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3RelationshipConjunctionEnumFactory.java
deleted file mode 100644
index f6e6a5bfd66..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3RelationshipConjunctionEnumFactory.java
+++ /dev/null
@@ -1,66 +0,0 @@
-package org.hl7.fhir.dstu21.model.valuesets;
-
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
-
-public class V3RelationshipConjunctionEnumFactory implements EnumFactory {
-
- public V3RelationshipConjunction fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("AND".equals(codeString))
- return V3RelationshipConjunction.AND;
- if ("OR".equals(codeString))
- return V3RelationshipConjunction.OR;
- if ("XOR".equals(codeString))
- return V3RelationshipConjunction.XOR;
- throw new IllegalArgumentException("Unknown V3RelationshipConjunction code '"+codeString+"'");
- }
-
- public String toCode(V3RelationshipConjunction code) {
- if (code == V3RelationshipConjunction.AND)
- return "AND";
- if (code == V3RelationshipConjunction.OR)
- return "OR";
- if (code == V3RelationshipConjunction.XOR)
- return "XOR";
- return "?";
- }
-
- public String toSystem(V3RelationshipConjunction code) {
- return code.getSystem();
- }
-
-}
-
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3ResponseLevelEnumFactory.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3ResponseLevelEnumFactory.java
deleted file mode 100644
index 0af5caa7f24..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3ResponseLevelEnumFactory.java
+++ /dev/null
@@ -1,82 +0,0 @@
-package org.hl7.fhir.dstu21.model.valuesets;
-
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
-
-public class V3ResponseLevelEnumFactory implements EnumFactory {
-
- public V3ResponseLevel fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("C".equals(codeString))
- return V3ResponseLevel.C;
- if ("D".equals(codeString))
- return V3ResponseLevel.D;
- if ("E".equals(codeString))
- return V3ResponseLevel.E;
- if ("F".equals(codeString))
- return V3ResponseLevel.F;
- if ("N".equals(codeString))
- return V3ResponseLevel.N;
- if ("R".equals(codeString))
- return V3ResponseLevel.R;
- if ("X".equals(codeString))
- return V3ResponseLevel.X;
- throw new IllegalArgumentException("Unknown V3ResponseLevel code '"+codeString+"'");
- }
-
- public String toCode(V3ResponseLevel code) {
- if (code == V3ResponseLevel.C)
- return "C";
- if (code == V3ResponseLevel.D)
- return "D";
- if (code == V3ResponseLevel.E)
- return "E";
- if (code == V3ResponseLevel.F)
- return "F";
- if (code == V3ResponseLevel.N)
- return "N";
- if (code == V3ResponseLevel.R)
- return "R";
- if (code == V3ResponseLevel.X)
- return "X";
- return "?";
- }
-
- public String toSystem(V3ResponseLevel code) {
- return code.getSystem();
- }
-
-}
-
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3ResponseModalityEnumFactory.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3ResponseModalityEnumFactory.java
deleted file mode 100644
index 1cf6714214f..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3ResponseModalityEnumFactory.java
+++ /dev/null
@@ -1,66 +0,0 @@
-package org.hl7.fhir.dstu21.model.valuesets;
-
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
-
-public class V3ResponseModalityEnumFactory implements EnumFactory {
-
- public V3ResponseModality fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("B".equals(codeString))
- return V3ResponseModality.B;
- if ("R".equals(codeString))
- return V3ResponseModality.R;
- if ("T".equals(codeString))
- return V3ResponseModality.T;
- throw new IllegalArgumentException("Unknown V3ResponseModality code '"+codeString+"'");
- }
-
- public String toCode(V3ResponseModality code) {
- if (code == V3ResponseModality.B)
- return "B";
- if (code == V3ResponseModality.R)
- return "R";
- if (code == V3ResponseModality.T)
- return "T";
- return "?";
- }
-
- public String toSystem(V3ResponseModality code) {
- return code.getSystem();
- }
-
-}
-
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3ResponseModeEnumFactory.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3ResponseModeEnumFactory.java
deleted file mode 100644
index a8ff7ed30db..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3ResponseModeEnumFactory.java
+++ /dev/null
@@ -1,66 +0,0 @@
-package org.hl7.fhir.dstu21.model.valuesets;
-
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
-
-public class V3ResponseModeEnumFactory implements EnumFactory {
-
- public V3ResponseMode fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("D".equals(codeString))
- return V3ResponseMode.D;
- if ("I".equals(codeString))
- return V3ResponseMode.I;
- if ("Q".equals(codeString))
- return V3ResponseMode.Q;
- throw new IllegalArgumentException("Unknown V3ResponseMode code '"+codeString+"'");
- }
-
- public String toCode(V3ResponseMode code) {
- if (code == V3ResponseMode.D)
- return "D";
- if (code == V3ResponseMode.I)
- return "I";
- if (code == V3ResponseMode.Q)
- return "Q";
- return "?";
- }
-
- public String toSystem(V3ResponseMode code) {
- return code.getSystem();
- }
-
-}
-
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3RoleLinkStatusEnumFactory.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3RoleLinkStatusEnumFactory.java
deleted file mode 100644
index c4c7bd88c0f..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3RoleLinkStatusEnumFactory.java
+++ /dev/null
@@ -1,78 +0,0 @@
-package org.hl7.fhir.dstu21.model.valuesets;
-
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
-
-public class V3RoleLinkStatusEnumFactory implements EnumFactory {
-
- public V3RoleLinkStatus fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("NORMAL".equals(codeString))
- return V3RoleLinkStatus.NORMAL;
- if ("ACTIVE".equals(codeString))
- return V3RoleLinkStatus.ACTIVE;
- if ("CANCELLED".equals(codeString))
- return V3RoleLinkStatus.CANCELLED;
- if ("COMPLETED".equals(codeString))
- return V3RoleLinkStatus.COMPLETED;
- if ("PENDING".equals(codeString))
- return V3RoleLinkStatus.PENDING;
- if ("NULLIFIED".equals(codeString))
- return V3RoleLinkStatus.NULLIFIED;
- throw new IllegalArgumentException("Unknown V3RoleLinkStatus code '"+codeString+"'");
- }
-
- public String toCode(V3RoleLinkStatus code) {
- if (code == V3RoleLinkStatus.NORMAL)
- return "NORMAL";
- if (code == V3RoleLinkStatus.ACTIVE)
- return "ACTIVE";
- if (code == V3RoleLinkStatus.CANCELLED)
- return "CANCELLED";
- if (code == V3RoleLinkStatus.COMPLETED)
- return "COMPLETED";
- if (code == V3RoleLinkStatus.PENDING)
- return "PENDING";
- if (code == V3RoleLinkStatus.NULLIFIED)
- return "NULLIFIED";
- return "?";
- }
-
- public String toSystem(V3RoleLinkStatus code) {
- return code.getSystem();
- }
-
-}
-
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3RoleLinkTypeEnumFactory.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3RoleLinkTypeEnumFactory.java
deleted file mode 100644
index bb643d7ac78..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3RoleLinkTypeEnumFactory.java
+++ /dev/null
@@ -1,86 +0,0 @@
-package org.hl7.fhir.dstu21.model.valuesets;
-
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
-
-public class V3RoleLinkTypeEnumFactory implements EnumFactory {
-
- public V3RoleLinkType fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("REL".equals(codeString))
- return V3RoleLinkType.REL;
- if ("BACKUP".equals(codeString))
- return V3RoleLinkType.BACKUP;
- if ("CONT".equals(codeString))
- return V3RoleLinkType.CONT;
- if ("DIRAUTH".equals(codeString))
- return V3RoleLinkType.DIRAUTH;
- if ("IDENT".equals(codeString))
- return V3RoleLinkType.IDENT;
- if ("INDAUTH".equals(codeString))
- return V3RoleLinkType.INDAUTH;
- if ("PART".equals(codeString))
- return V3RoleLinkType.PART;
- if ("REPL".equals(codeString))
- return V3RoleLinkType.REPL;
- throw new IllegalArgumentException("Unknown V3RoleLinkType code '"+codeString+"'");
- }
-
- public String toCode(V3RoleLinkType code) {
- if (code == V3RoleLinkType.REL)
- return "REL";
- if (code == V3RoleLinkType.BACKUP)
- return "BACKUP";
- if (code == V3RoleLinkType.CONT)
- return "CONT";
- if (code == V3RoleLinkType.DIRAUTH)
- return "DIRAUTH";
- if (code == V3RoleLinkType.IDENT)
- return "IDENT";
- if (code == V3RoleLinkType.INDAUTH)
- return "INDAUTH";
- if (code == V3RoleLinkType.PART)
- return "PART";
- if (code == V3RoleLinkType.REPL)
- return "REPL";
- return "?";
- }
-
- public String toSystem(V3RoleLinkType code) {
- return code.getSystem();
- }
-
-}
-
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3RoleStatusEnumFactory.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3RoleStatusEnumFactory.java
deleted file mode 100644
index fe3a727549f..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3RoleStatusEnumFactory.java
+++ /dev/null
@@ -1,82 +0,0 @@
-package org.hl7.fhir.dstu21.model.valuesets;
-
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
-
-public class V3RoleStatusEnumFactory implements EnumFactory {
-
- public V3RoleStatus fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("normal".equals(codeString))
- return V3RoleStatus.NORMAL;
- if ("active".equals(codeString))
- return V3RoleStatus.ACTIVE;
- if ("cancelled".equals(codeString))
- return V3RoleStatus.CANCELLED;
- if ("pending".equals(codeString))
- return V3RoleStatus.PENDING;
- if ("suspended".equals(codeString))
- return V3RoleStatus.SUSPENDED;
- if ("terminated".equals(codeString))
- return V3RoleStatus.TERMINATED;
- if ("nullified".equals(codeString))
- return V3RoleStatus.NULLIFIED;
- throw new IllegalArgumentException("Unknown V3RoleStatus code '"+codeString+"'");
- }
-
- public String toCode(V3RoleStatus code) {
- if (code == V3RoleStatus.NORMAL)
- return "normal";
- if (code == V3RoleStatus.ACTIVE)
- return "active";
- if (code == V3RoleStatus.CANCELLED)
- return "cancelled";
- if (code == V3RoleStatus.PENDING)
- return "pending";
- if (code == V3RoleStatus.SUSPENDED)
- return "suspended";
- if (code == V3RoleStatus.TERMINATED)
- return "terminated";
- if (code == V3RoleStatus.NULLIFIED)
- return "nullified";
- return "?";
- }
-
- public String toSystem(V3RoleStatus code) {
- return code.getSystem();
- }
-
-}
-
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3SequencingEnumFactory.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3SequencingEnumFactory.java
deleted file mode 100644
index 9335746319b..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3SequencingEnumFactory.java
+++ /dev/null
@@ -1,66 +0,0 @@
-package org.hl7.fhir.dstu21.model.valuesets;
-
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
-
-public class V3SequencingEnumFactory implements EnumFactory {
-
- public V3Sequencing fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("A".equals(codeString))
- return V3Sequencing.A;
- if ("D".equals(codeString))
- return V3Sequencing.D;
- if ("N".equals(codeString))
- return V3Sequencing.N;
- throw new IllegalArgumentException("Unknown V3Sequencing code '"+codeString+"'");
- }
-
- public String toCode(V3Sequencing code) {
- if (code == V3Sequencing.A)
- return "A";
- if (code == V3Sequencing.D)
- return "D";
- if (code == V3Sequencing.N)
- return "N";
- return "?";
- }
-
- public String toSystem(V3Sequencing code) {
- return code.getSystem();
- }
-
-}
-
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3SetOperatorEnumFactory.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3SetOperatorEnumFactory.java
deleted file mode 100644
index d00cea48221..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3SetOperatorEnumFactory.java
+++ /dev/null
@@ -1,78 +0,0 @@
-package org.hl7.fhir.dstu21.model.valuesets;
-
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
-
-public class V3SetOperatorEnumFactory implements EnumFactory {
-
- public V3SetOperator fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("_ValueSetOperator".equals(codeString))
- return V3SetOperator._VALUESETOPERATOR;
- if ("E".equals(codeString))
- return V3SetOperator.E;
- if ("I".equals(codeString))
- return V3SetOperator.I;
- if ("A".equals(codeString))
- return V3SetOperator.A;
- if ("H".equals(codeString))
- return V3SetOperator.H;
- if ("P".equals(codeString))
- return V3SetOperator.P;
- throw new IllegalArgumentException("Unknown V3SetOperator code '"+codeString+"'");
- }
-
- public String toCode(V3SetOperator code) {
- if (code == V3SetOperator._VALUESETOPERATOR)
- return "_ValueSetOperator";
- if (code == V3SetOperator.E)
- return "E";
- if (code == V3SetOperator.I)
- return "I";
- if (code == V3SetOperator.A)
- return "A";
- if (code == V3SetOperator.H)
- return "H";
- if (code == V3SetOperator.P)
- return "P";
- return "?";
- }
-
- public String toSystem(V3SetOperator code) {
- return code.getSystem();
- }
-
-}
-
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3SubstitutionConditionEnumFactory.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3SubstitutionConditionEnumFactory.java
deleted file mode 100644
index 8a5adfebd25..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3SubstitutionConditionEnumFactory.java
+++ /dev/null
@@ -1,74 +0,0 @@
-package org.hl7.fhir.dstu21.model.valuesets;
-
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
-
-public class V3SubstitutionConditionEnumFactory implements EnumFactory {
-
- public V3SubstitutionCondition fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("_Conditional".equals(codeString))
- return V3SubstitutionCondition._CONDITIONAL;
- if ("CONFIRM".equals(codeString))
- return V3SubstitutionCondition.CONFIRM;
- if ("NOTIFY".equals(codeString))
- return V3SubstitutionCondition.NOTIFY;
- if ("NOSUB".equals(codeString))
- return V3SubstitutionCondition.NOSUB;
- if ("UNCOND".equals(codeString))
- return V3SubstitutionCondition.UNCOND;
- throw new IllegalArgumentException("Unknown V3SubstitutionCondition code '"+codeString+"'");
- }
-
- public String toCode(V3SubstitutionCondition code) {
- if (code == V3SubstitutionCondition._CONDITIONAL)
- return "_Conditional";
- if (code == V3SubstitutionCondition.CONFIRM)
- return "CONFIRM";
- if (code == V3SubstitutionCondition.NOTIFY)
- return "NOTIFY";
- if (code == V3SubstitutionCondition.NOSUB)
- return "NOSUB";
- if (code == V3SubstitutionCondition.UNCOND)
- return "UNCOND";
- return "?";
- }
-
- public String toSystem(V3SubstitutionCondition code) {
- return code.getSystem();
- }
-
-}
-
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3TableCellHorizontalAlignEnumFactory.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3TableCellHorizontalAlignEnumFactory.java
deleted file mode 100644
index 8c021dda5c1..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3TableCellHorizontalAlignEnumFactory.java
+++ /dev/null
@@ -1,74 +0,0 @@
-package org.hl7.fhir.dstu21.model.valuesets;
-
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
-
-public class V3TableCellHorizontalAlignEnumFactory implements EnumFactory {
-
- public V3TableCellHorizontalAlign fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("center".equals(codeString))
- return V3TableCellHorizontalAlign.CENTER;
- if ("char".equals(codeString))
- return V3TableCellHorizontalAlign.CHAR;
- if ("justify".equals(codeString))
- return V3TableCellHorizontalAlign.JUSTIFY;
- if ("left".equals(codeString))
- return V3TableCellHorizontalAlign.LEFT;
- if ("right".equals(codeString))
- return V3TableCellHorizontalAlign.RIGHT;
- throw new IllegalArgumentException("Unknown V3TableCellHorizontalAlign code '"+codeString+"'");
- }
-
- public String toCode(V3TableCellHorizontalAlign code) {
- if (code == V3TableCellHorizontalAlign.CENTER)
- return "center";
- if (code == V3TableCellHorizontalAlign.CHAR)
- return "char";
- if (code == V3TableCellHorizontalAlign.JUSTIFY)
- return "justify";
- if (code == V3TableCellHorizontalAlign.LEFT)
- return "left";
- if (code == V3TableCellHorizontalAlign.RIGHT)
- return "right";
- return "?";
- }
-
- public String toSystem(V3TableCellHorizontalAlign code) {
- return code.getSystem();
- }
-
-}
-
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3TableCellScopeEnumFactory.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3TableCellScopeEnumFactory.java
deleted file mode 100644
index 77fe0f78dc5..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3TableCellScopeEnumFactory.java
+++ /dev/null
@@ -1,70 +0,0 @@
-package org.hl7.fhir.dstu21.model.valuesets;
-
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
-
-public class V3TableCellScopeEnumFactory implements EnumFactory {
-
- public V3TableCellScope fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("col".equals(codeString))
- return V3TableCellScope.COL;
- if ("colgroup".equals(codeString))
- return V3TableCellScope.COLGROUP;
- if ("row".equals(codeString))
- return V3TableCellScope.ROW;
- if ("rowgroup".equals(codeString))
- return V3TableCellScope.ROWGROUP;
- throw new IllegalArgumentException("Unknown V3TableCellScope code '"+codeString+"'");
- }
-
- public String toCode(V3TableCellScope code) {
- if (code == V3TableCellScope.COL)
- return "col";
- if (code == V3TableCellScope.COLGROUP)
- return "colgroup";
- if (code == V3TableCellScope.ROW)
- return "row";
- if (code == V3TableCellScope.ROWGROUP)
- return "rowgroup";
- return "?";
- }
-
- public String toSystem(V3TableCellScope code) {
- return code.getSystem();
- }
-
-}
-
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3TableCellVerticalAlignEnumFactory.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3TableCellVerticalAlignEnumFactory.java
deleted file mode 100644
index f0728226d30..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3TableCellVerticalAlignEnumFactory.java
+++ /dev/null
@@ -1,70 +0,0 @@
-package org.hl7.fhir.dstu21.model.valuesets;
-
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
-
-public class V3TableCellVerticalAlignEnumFactory implements EnumFactory {
-
- public V3TableCellVerticalAlign fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("baseline".equals(codeString))
- return V3TableCellVerticalAlign.BASELINE;
- if ("bottom".equals(codeString))
- return V3TableCellVerticalAlign.BOTTOM;
- if ("middle".equals(codeString))
- return V3TableCellVerticalAlign.MIDDLE;
- if ("top".equals(codeString))
- return V3TableCellVerticalAlign.TOP;
- throw new IllegalArgumentException("Unknown V3TableCellVerticalAlign code '"+codeString+"'");
- }
-
- public String toCode(V3TableCellVerticalAlign code) {
- if (code == V3TableCellVerticalAlign.BASELINE)
- return "baseline";
- if (code == V3TableCellVerticalAlign.BOTTOM)
- return "bottom";
- if (code == V3TableCellVerticalAlign.MIDDLE)
- return "middle";
- if (code == V3TableCellVerticalAlign.TOP)
- return "top";
- return "?";
- }
-
- public String toSystem(V3TableCellVerticalAlign code) {
- return code.getSystem();
- }
-
-}
-
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3TableFrameEnumFactory.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3TableFrameEnumFactory.java
deleted file mode 100644
index 839ad2cd0ab..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3TableFrameEnumFactory.java
+++ /dev/null
@@ -1,90 +0,0 @@
-package org.hl7.fhir.dstu21.model.valuesets;
-
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
-
-public class V3TableFrameEnumFactory implements EnumFactory {
-
- public V3TableFrame fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("above".equals(codeString))
- return V3TableFrame.ABOVE;
- if ("below".equals(codeString))
- return V3TableFrame.BELOW;
- if ("border".equals(codeString))
- return V3TableFrame.BORDER;
- if ("box".equals(codeString))
- return V3TableFrame.BOX;
- if ("hsides".equals(codeString))
- return V3TableFrame.HSIDES;
- if ("lhs".equals(codeString))
- return V3TableFrame.LHS;
- if ("rhs".equals(codeString))
- return V3TableFrame.RHS;
- if ("void".equals(codeString))
- return V3TableFrame.VOID;
- if ("vsides".equals(codeString))
- return V3TableFrame.VSIDES;
- throw new IllegalArgumentException("Unknown V3TableFrame code '"+codeString+"'");
- }
-
- public String toCode(V3TableFrame code) {
- if (code == V3TableFrame.ABOVE)
- return "above";
- if (code == V3TableFrame.BELOW)
- return "below";
- if (code == V3TableFrame.BORDER)
- return "border";
- if (code == V3TableFrame.BOX)
- return "box";
- if (code == V3TableFrame.HSIDES)
- return "hsides";
- if (code == V3TableFrame.LHS)
- return "lhs";
- if (code == V3TableFrame.RHS)
- return "rhs";
- if (code == V3TableFrame.VOID)
- return "void";
- if (code == V3TableFrame.VSIDES)
- return "vsides";
- return "?";
- }
-
- public String toSystem(V3TableFrame code) {
- return code.getSystem();
- }
-
-}
-
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3TableRulesEnumFactory.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3TableRulesEnumFactory.java
deleted file mode 100644
index cc719189cb6..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3TableRulesEnumFactory.java
+++ /dev/null
@@ -1,74 +0,0 @@
-package org.hl7.fhir.dstu21.model.valuesets;
-
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
-
-public class V3TableRulesEnumFactory implements EnumFactory {
-
- public V3TableRules fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("all".equals(codeString))
- return V3TableRules.ALL;
- if ("cols".equals(codeString))
- return V3TableRules.COLS;
- if ("groups".equals(codeString))
- return V3TableRules.GROUPS;
- if ("none".equals(codeString))
- return V3TableRules.NONE;
- if ("rows".equals(codeString))
- return V3TableRules.ROWS;
- throw new IllegalArgumentException("Unknown V3TableRules code '"+codeString+"'");
- }
-
- public String toCode(V3TableRules code) {
- if (code == V3TableRules.ALL)
- return "all";
- if (code == V3TableRules.COLS)
- return "cols";
- if (code == V3TableRules.GROUPS)
- return "groups";
- if (code == V3TableRules.NONE)
- return "none";
- if (code == V3TableRules.ROWS)
- return "rows";
- return "?";
- }
-
- public String toSystem(V3TableRules code) {
- return code.getSystem();
- }
-
-}
-
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3TargetAwarenessEnumFactory.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3TargetAwarenessEnumFactory.java
deleted file mode 100644
index 62c14a2ba78..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3TargetAwarenessEnumFactory.java
+++ /dev/null
@@ -1,78 +0,0 @@
-package org.hl7.fhir.dstu21.model.valuesets;
-
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
-
-public class V3TargetAwarenessEnumFactory implements EnumFactory {
-
- public V3TargetAwareness fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("D".equals(codeString))
- return V3TargetAwareness.D;
- if ("F".equals(codeString))
- return V3TargetAwareness.F;
- if ("I".equals(codeString))
- return V3TargetAwareness.I;
- if ("M".equals(codeString))
- return V3TargetAwareness.M;
- if ("P".equals(codeString))
- return V3TargetAwareness.P;
- if ("U".equals(codeString))
- return V3TargetAwareness.U;
- throw new IllegalArgumentException("Unknown V3TargetAwareness code '"+codeString+"'");
- }
-
- public String toCode(V3TargetAwareness code) {
- if (code == V3TargetAwareness.D)
- return "D";
- if (code == V3TargetAwareness.F)
- return "F";
- if (code == V3TargetAwareness.I)
- return "I";
- if (code == V3TargetAwareness.M)
- return "M";
- if (code == V3TargetAwareness.P)
- return "P";
- if (code == V3TargetAwareness.U)
- return "U";
- return "?";
- }
-
- public String toSystem(V3TargetAwareness code) {
- return code.getSystem();
- }
-
-}
-
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3TelecommunicationCapabilitiesEnumFactory.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3TelecommunicationCapabilitiesEnumFactory.java
deleted file mode 100644
index 2097036aca9..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3TelecommunicationCapabilitiesEnumFactory.java
+++ /dev/null
@@ -1,74 +0,0 @@
-package org.hl7.fhir.dstu21.model.valuesets;
-
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
-
-public class V3TelecommunicationCapabilitiesEnumFactory implements EnumFactory {
-
- public V3TelecommunicationCapabilities fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("data".equals(codeString))
- return V3TelecommunicationCapabilities.DATA;
- if ("fax".equals(codeString))
- return V3TelecommunicationCapabilities.FAX;
- if ("sms".equals(codeString))
- return V3TelecommunicationCapabilities.SMS;
- if ("tty".equals(codeString))
- return V3TelecommunicationCapabilities.TTY;
- if ("voice".equals(codeString))
- return V3TelecommunicationCapabilities.VOICE;
- throw new IllegalArgumentException("Unknown V3TelecommunicationCapabilities code '"+codeString+"'");
- }
-
- public String toCode(V3TelecommunicationCapabilities code) {
- if (code == V3TelecommunicationCapabilities.DATA)
- return "data";
- if (code == V3TelecommunicationCapabilities.FAX)
- return "fax";
- if (code == V3TelecommunicationCapabilities.SMS)
- return "sms";
- if (code == V3TelecommunicationCapabilities.TTY)
- return "tty";
- if (code == V3TelecommunicationCapabilities.VOICE)
- return "voice";
- return "?";
- }
-
- public String toSystem(V3TelecommunicationCapabilities code) {
- return code.getSystem();
- }
-
-}
-
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3TransmissionRelationshipTypeCodeEnumFactory.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3TransmissionRelationshipTypeCodeEnumFactory.java
deleted file mode 100644
index 94cf8f457fe..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/V3TransmissionRelationshipTypeCodeEnumFactory.java
+++ /dev/null
@@ -1,58 +0,0 @@
-package org.hl7.fhir.dstu21.model.valuesets;
-
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
-
-public class V3TransmissionRelationshipTypeCodeEnumFactory implements EnumFactory {
-
- public V3TransmissionRelationshipTypeCode fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("SEQL".equals(codeString))
- return V3TransmissionRelationshipTypeCode.SEQL;
- throw new IllegalArgumentException("Unknown V3TransmissionRelationshipTypeCode code '"+codeString+"'");
- }
-
- public String toCode(V3TransmissionRelationshipTypeCode code) {
- if (code == V3TransmissionRelationshipTypeCode.SEQL)
- return "SEQL";
- return "?";
- }
-
- public String toSystem(V3TransmissionRelationshipTypeCode code) {
- return code.getSystem();
- }
-
-}
-
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/VaccinationProtocolDoseStatusEnumFactory.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/VaccinationProtocolDoseStatusEnumFactory.java
deleted file mode 100644
index c70dc498351..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/VaccinationProtocolDoseStatusEnumFactory.java
+++ /dev/null
@@ -1,62 +0,0 @@
-package org.hl7.fhir.dstu21.model.valuesets;
-
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
-
-public class VaccinationProtocolDoseStatusEnumFactory implements EnumFactory {
-
- public VaccinationProtocolDoseStatus fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("count".equals(codeString))
- return VaccinationProtocolDoseStatus.COUNT;
- if ("nocount".equals(codeString))
- return VaccinationProtocolDoseStatus.NOCOUNT;
- throw new IllegalArgumentException("Unknown VaccinationProtocolDoseStatus code '"+codeString+"'");
- }
-
- public String toCode(VaccinationProtocolDoseStatus code) {
- if (code == VaccinationProtocolDoseStatus.COUNT)
- return "count";
- if (code == VaccinationProtocolDoseStatus.NOCOUNT)
- return "nocount";
- return "?";
- }
-
- public String toSystem(VaccinationProtocolDoseStatus code) {
- return code.getSystem();
- }
-
-}
-
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/VaccinationProtocolDoseStatusReasonEnumFactory.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/VaccinationProtocolDoseStatusReasonEnumFactory.java
deleted file mode 100644
index ee1c7721af6..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/VaccinationProtocolDoseStatusReasonEnumFactory.java
+++ /dev/null
@@ -1,74 +0,0 @@
-package org.hl7.fhir.dstu21.model.valuesets;
-
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
-
-public class VaccinationProtocolDoseStatusReasonEnumFactory implements EnumFactory {
-
- public VaccinationProtocolDoseStatusReason fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("advstorage".equals(codeString))
- return VaccinationProtocolDoseStatusReason.ADVSTORAGE;
- if ("coldchbrk".equals(codeString))
- return VaccinationProtocolDoseStatusReason.COLDCHBRK;
- if ("explot".equals(codeString))
- return VaccinationProtocolDoseStatusReason.EXPLOT;
- if ("outsidesched".equals(codeString))
- return VaccinationProtocolDoseStatusReason.OUTSIDESCHED;
- if ("prodrecall".equals(codeString))
- return VaccinationProtocolDoseStatusReason.PRODRECALL;
- throw new IllegalArgumentException("Unknown VaccinationProtocolDoseStatusReason code '"+codeString+"'");
- }
-
- public String toCode(VaccinationProtocolDoseStatusReason code) {
- if (code == VaccinationProtocolDoseStatusReason.ADVSTORAGE)
- return "advstorage";
- if (code == VaccinationProtocolDoseStatusReason.COLDCHBRK)
- return "coldchbrk";
- if (code == VaccinationProtocolDoseStatusReason.EXPLOT)
- return "explot";
- if (code == VaccinationProtocolDoseStatusReason.OUTSIDESCHED)
- return "outsidesched";
- if (code == VaccinationProtocolDoseStatusReason.PRODRECALL)
- return "prodrecall";
- return "?";
- }
-
- public String toSystem(VaccinationProtocolDoseStatusReason code) {
- return code.getSystem();
- }
-
-}
-
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/VariantStateEnumFactory.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/VariantStateEnumFactory.java
deleted file mode 100644
index a842edf1abf..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/VariantStateEnumFactory.java
+++ /dev/null
@@ -1,66 +0,0 @@
-package org.hl7.fhir.dstu21.model.valuesets;
-
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
-
-public class VariantStateEnumFactory implements EnumFactory {
-
- public VariantState fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("positive".equals(codeString))
- return VariantState.POSITIVE;
- if ("negative".equals(codeString))
- return VariantState.NEGATIVE;
- if ("absent".equals(codeString))
- return VariantState.ABSENT;
- throw new IllegalArgumentException("Unknown VariantState code '"+codeString+"'");
- }
-
- public String toCode(VariantState code) {
- if (code == VariantState.POSITIVE)
- return "positive";
- if (code == VariantState.NEGATIVE)
- return "negative";
- if (code == VariantState.ABSENT)
- return "absent";
- return "?";
- }
-
- public String toSystem(VariantState code) {
- return code.getSystem();
- }
-
-}
-
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/VisionProductEnumFactory.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/VisionProductEnumFactory.java
deleted file mode 100644
index 7e019858e39..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/VisionProductEnumFactory.java
+++ /dev/null
@@ -1,62 +0,0 @@
-package org.hl7.fhir.dstu21.model.valuesets;
-
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
-
-public class VisionProductEnumFactory implements EnumFactory {
-
- public VisionProduct fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("lens".equals(codeString))
- return VisionProduct.LENS;
- if ("contact".equals(codeString))
- return VisionProduct.CONTACT;
- throw new IllegalArgumentException("Unknown VisionProduct code '"+codeString+"'");
- }
-
- public String toCode(VisionProduct code) {
- if (code == VisionProduct.LENS)
- return "lens";
- if (code == VisionProduct.CONTACT)
- return "contact";
- return "?";
- }
-
- public String toSystem(VisionProduct code) {
- return code.getSystem();
- }
-
-}
-
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/XdsRelationshipTypeEnumFactory.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/XdsRelationshipTypeEnumFactory.java
deleted file mode 100644
index bcc010d0797..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/XdsRelationshipTypeEnumFactory.java
+++ /dev/null
@@ -1,74 +0,0 @@
-package org.hl7.fhir.dstu21.model.valuesets;
-
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
-
-public class XdsRelationshipTypeEnumFactory implements EnumFactory {
-
- public XdsRelationshipType fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("APND".equals(codeString))
- return XdsRelationshipType.APND;
- if ("RPLC".equals(codeString))
- return XdsRelationshipType.RPLC;
- if ("XFRM".equals(codeString))
- return XdsRelationshipType.XFRM;
- if ("XFRM_RPLC".equals(codeString))
- return XdsRelationshipType.XFRMRPLC;
- if ("signs".equals(codeString))
- return XdsRelationshipType.SIGNS;
- throw new IllegalArgumentException("Unknown XdsRelationshipType code '"+codeString+"'");
- }
-
- public String toCode(XdsRelationshipType code) {
- if (code == XdsRelationshipType.APND)
- return "APND";
- if (code == XdsRelationshipType.RPLC)
- return "RPLC";
- if (code == XdsRelationshipType.XFRM)
- return "XFRM";
- if (code == XdsRelationshipType.XFRMRPLC)
- return "XFRM_RPLC";
- if (code == XdsRelationshipType.SIGNS)
- return "signs";
- return "?";
- }
-
- public String toSystem(XdsRelationshipType code) {
- return code.getSystem();
- }
-
-}
-
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/terminologies/ValueSetChecker.java b/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/terminologies/ValueSetChecker.java
deleted file mode 100644
index 588a103e33a..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/terminologies/ValueSetChecker.java
+++ /dev/null
@@ -1,10 +0,0 @@
-package org.hl7.fhir.dstu21.terminologies;
-
-import org.hl7.fhir.dstu21.terminologies.ValueSetExpander.ETooCostly;
-import org.hl7.fhir.dstu21.utils.EOperationOutcome;
-
-public interface ValueSetChecker {
-
- boolean codeInValueSet(String system, String code) throws ETooCostly, EOperationOutcome, Exception;
-
-}
diff --git a/hapi-fhir-structures-dstu2.1/src/main/resources/org/hl7/fhir/dstu21/model/fhirversion.properties b/hapi-fhir-structures-dstu2.1/src/main/resources/org/hl7/fhir/dstu21/model/fhirversion.properties
deleted file mode 100644
index 1c2838eac45..00000000000
--- a/hapi-fhir-structures-dstu2.1/src/main/resources/org/hl7/fhir/dstu21/model/fhirversion.properties
+++ /dev/null
@@ -1,151 +0,0 @@
-# This file contains version definitions
-
-resource.Account=org.hl7.fhir.dstu21.model.Account
-resource.AllergyIntolerance=org.hl7.fhir.dstu21.model.AllergyIntolerance
-resource.Appointment=org.hl7.fhir.dstu21.model.Appointment
-resource.AppointmentResponse=org.hl7.fhir.dstu21.model.AppointmentResponse
-resource.AuditEvent=org.hl7.fhir.dstu21.model.AuditEvent
-resource.Basic=org.hl7.fhir.dstu21.model.Basic
-resource.Binary=org.hl7.fhir.dstu21.model.Binary
-resource.BodySite=org.hl7.fhir.dstu21.model.BodySite
-resource.Bundle=org.hl7.fhir.dstu21.model.Bundle
-resource.CarePlan=org.hl7.fhir.dstu21.model.CarePlan
-resource.Claim=org.hl7.fhir.dstu21.model.Claim
-resource.ClaimResponse=org.hl7.fhir.dstu21.model.ClaimResponse
-resource.ClinicalImpression=org.hl7.fhir.dstu21.model.ClinicalImpression
-resource.Communication=org.hl7.fhir.dstu21.model.Communication
-resource.CommunicationRequest=org.hl7.fhir.dstu21.model.CommunicationRequest
-resource.Composition=org.hl7.fhir.dstu21.model.Composition
-resource.ConceptMap=org.hl7.fhir.dstu21.model.ConceptMap
-resource.Condition=org.hl7.fhir.dstu21.model.Condition
-resource.Conformance=org.hl7.fhir.dstu21.model.Conformance
-resource.Contract=org.hl7.fhir.dstu21.model.Contract
-resource.Coverage=org.hl7.fhir.dstu21.model.Coverage
-resource.DataElement=org.hl7.fhir.dstu21.model.DataElement
-resource.DecisionSupportRule=org.hl7.fhir.dstu21.model.DecisionSupportRule
-resource.DecisionSupportServiceModule=org.hl7.fhir.dstu21.model.DecisionSupportServiceModule
-resource.DetectedIssue=org.hl7.fhir.dstu21.model.DetectedIssue
-resource.Device=org.hl7.fhir.dstu21.model.Device
-resource.DeviceComponent=org.hl7.fhir.dstu21.model.DeviceComponent
-resource.DeviceMetric=org.hl7.fhir.dstu21.model.DeviceMetric
-resource.DeviceUseRequest=org.hl7.fhir.dstu21.model.DeviceUseRequest
-resource.DeviceUseStatement=org.hl7.fhir.dstu21.model.DeviceUseStatement
-resource.DiagnosticOrder=org.hl7.fhir.dstu21.model.DiagnosticOrder
-resource.DiagnosticReport=org.hl7.fhir.dstu21.model.DiagnosticReport
-resource.DocumentManifest=org.hl7.fhir.dstu21.model.DocumentManifest
-resource.DocumentReference=org.hl7.fhir.dstu21.model.DocumentReference
-resource.EligibilityRequest=org.hl7.fhir.dstu21.model.EligibilityRequest
-resource.EligibilityResponse=org.hl7.fhir.dstu21.model.EligibilityResponse
-resource.Encounter=org.hl7.fhir.dstu21.model.Encounter
-resource.EnrollmentRequest=org.hl7.fhir.dstu21.model.EnrollmentRequest
-resource.EnrollmentResponse=org.hl7.fhir.dstu21.model.EnrollmentResponse
-resource.EpisodeOfCare=org.hl7.fhir.dstu21.model.EpisodeOfCare
-resource.ExpansionProfile=org.hl7.fhir.dstu21.model.ExpansionProfile
-resource.ExplanationOfBenefit=org.hl7.fhir.dstu21.model.ExplanationOfBenefit
-resource.FamilyMemberHistory=org.hl7.fhir.dstu21.model.FamilyMemberHistory
-resource.Flag=org.hl7.fhir.dstu21.model.Flag
-resource.Goal=org.hl7.fhir.dstu21.model.Goal
-resource.Group=org.hl7.fhir.dstu21.model.Group
-resource.GuidanceResponse=org.hl7.fhir.dstu21.model.GuidanceResponse
-resource.HealthcareService=org.hl7.fhir.dstu21.model.HealthcareService
-resource.ImagingObjectSelection=org.hl7.fhir.dstu21.model.ImagingObjectSelection
-resource.ImagingStudy=org.hl7.fhir.dstu21.model.ImagingStudy
-resource.Immunization=org.hl7.fhir.dstu21.model.Immunization
-resource.ImmunizationRecommendation=org.hl7.fhir.dstu21.model.ImmunizationRecommendation
-resource.ImplementationGuide=org.hl7.fhir.dstu21.model.ImplementationGuide
-resource.Library=org.hl7.fhir.dstu21.model.Library
-resource.List=org.hl7.fhir.dstu21.model.ListResource
-resource.Location=org.hl7.fhir.dstu21.model.Location
-resource.Measure=org.hl7.fhir.dstu21.model.Measure
-resource.Media=org.hl7.fhir.dstu21.model.Media
-resource.Medication=org.hl7.fhir.dstu21.model.Medication
-resource.MedicationAdministration=org.hl7.fhir.dstu21.model.MedicationAdministration
-resource.MedicationDispense=org.hl7.fhir.dstu21.model.MedicationDispense
-resource.MedicationOrder=org.hl7.fhir.dstu21.model.MedicationOrder
-resource.MedicationStatement=org.hl7.fhir.dstu21.model.MedicationStatement
-resource.MessageHeader=org.hl7.fhir.dstu21.model.MessageHeader
-resource.ModuleDefinition=org.hl7.fhir.dstu21.model.ModuleDefinition
-resource.ModuleMetadata=org.hl7.fhir.dstu21.model.ModuleMetadata
-resource.NamingSystem=org.hl7.fhir.dstu21.model.NamingSystem
-resource.NutritionOrder=org.hl7.fhir.dstu21.model.NutritionOrder
-resource.Observation=org.hl7.fhir.dstu21.model.Observation
-resource.OperationDefinition=org.hl7.fhir.dstu21.model.OperationDefinition
-resource.OperationOutcome=org.hl7.fhir.dstu21.model.OperationOutcome
-resource.Order=org.hl7.fhir.dstu21.model.Order
-resource.OrderResponse=org.hl7.fhir.dstu21.model.OrderResponse
-resource.OrderSet=org.hl7.fhir.dstu21.model.OrderSet
-resource.Organization=org.hl7.fhir.dstu21.model.Organization
-resource.Parameters=org.hl7.fhir.dstu21.model.Parameters
-resource.Patient=org.hl7.fhir.dstu21.model.Patient
-resource.PaymentNotice=org.hl7.fhir.dstu21.model.PaymentNotice
-resource.PaymentReconciliation=org.hl7.fhir.dstu21.model.PaymentReconciliation
-resource.Person=org.hl7.fhir.dstu21.model.Person
-resource.Practitioner=org.hl7.fhir.dstu21.model.Practitioner
-resource.Procedure=org.hl7.fhir.dstu21.model.Procedure
-resource.ProcedureRequest=org.hl7.fhir.dstu21.model.ProcedureRequest
-resource.ProcessRequest=org.hl7.fhir.dstu21.model.ProcessRequest
-resource.ProcessResponse=org.hl7.fhir.dstu21.model.ProcessResponse
-resource.Provenance=org.hl7.fhir.dstu21.model.Provenance
-resource.Questionnaire=org.hl7.fhir.dstu21.model.Questionnaire
-resource.QuestionnaireResponse=org.hl7.fhir.dstu21.model.QuestionnaireResponse
-resource.ReferralRequest=org.hl7.fhir.dstu21.model.ReferralRequest
-resource.RelatedPerson=org.hl7.fhir.dstu21.model.RelatedPerson
-resource.RiskAssessment=org.hl7.fhir.dstu21.model.RiskAssessment
-resource.Schedule=org.hl7.fhir.dstu21.model.Schedule
-resource.SearchParameter=org.hl7.fhir.dstu21.model.SearchParameter
-resource.Sequence=org.hl7.fhir.dstu21.model.Sequence
-resource.Slot=org.hl7.fhir.dstu21.model.Slot
-resource.Specimen=org.hl7.fhir.dstu21.model.Specimen
-resource.StructureDefinition=org.hl7.fhir.dstu21.model.StructureDefinition
-resource.Subscription=org.hl7.fhir.dstu21.model.Subscription
-resource.Substance=org.hl7.fhir.dstu21.model.Substance
-resource.SupplyDelivery=org.hl7.fhir.dstu21.model.SupplyDelivery
-resource.SupplyRequest=org.hl7.fhir.dstu21.model.SupplyRequest
-resource.TestScript=org.hl7.fhir.dstu21.model.TestScript
-resource.ValueSet=org.hl7.fhir.dstu21.model.ValueSet
-resource.VisionPrescription=org.hl7.fhir.dstu21.model.VisionPrescription
-
-datatype.Address=org.hl7.fhir.dstu21.model.Address
-datatype.Age=org.hl7.fhir.dstu21.model.Age
-datatype.Annotation=org.hl7.fhir.dstu21.model.Annotation
-datatype.Attachment=org.hl7.fhir.dstu21.model.Attachment
-datatype.CodeableConcept=org.hl7.fhir.dstu21.model.CodeableConcept
-datatype.Coding=org.hl7.fhir.dstu21.model.Coding
-datatype.ContactPoint=org.hl7.fhir.dstu21.model.ContactPoint
-datatype.Count=org.hl7.fhir.dstu21.model.Count
-datatype.Distance=org.hl7.fhir.dstu21.model.Distance
-datatype.Duration=org.hl7.fhir.dstu21.model.Duration
-datatype.ElementDefinition=org.hl7.fhir.dstu21.model.ElementDefinition
-datatype.Extension=org.hl7.fhir.dstu21.model.Extension
-datatype.HumanName=org.hl7.fhir.dstu21.model.HumanName
-datatype.Identifier=org.hl7.fhir.dstu21.model.Identifier
-datatype.Meta=org.hl7.fhir.dstu21.model.Meta
-datatype.Money=org.hl7.fhir.dstu21.model.Money
-datatype.Narrative=org.hl7.fhir.dstu21.model.Narrative
-datatype.Period=org.hl7.fhir.dstu21.model.Period
-datatype.Quantity=org.hl7.fhir.dstu21.model.Quantity
-datatype.Range=org.hl7.fhir.dstu21.model.Range
-datatype.Ratio=org.hl7.fhir.dstu21.model.Ratio
-datatype.Reference=org.hl7.fhir.dstu21.model.Reference
-datatype.SampledData=org.hl7.fhir.dstu21.model.SampledData
-datatype.Signature=org.hl7.fhir.dstu21.model.Signature
-datatype.SimpleQuantity=org.hl7.fhir.dstu21.model.SimpleQuantity
-datatype.Timing=org.hl7.fhir.dstu21.model.Timing
-datatype.base64binary=org.hl7.fhir.dstu21.model.Base64BinaryType
-datatype.boolean=org.hl7.fhir.dstu21.model.BooleanType
-datatype.code=org.hl7.fhir.dstu21.model.CodeType
-datatype.code.2=org.hl7.fhir.dstu21.model.Enumeration
-datatype.date=org.hl7.fhir.dstu21.model.DateType
-datatype.dateTime=org.hl7.fhir.dstu21.model.DateTimeType
-datatype.decimal=org.hl7.fhir.dstu21.model.DecimalType
-datatype.id=org.hl7.fhir.dstu21.model.IdType
-datatype.instant=org.hl7.fhir.dstu21.model.InstantType
-datatype.integer=org.hl7.fhir.dstu21.model.IntegerType
-datatype.markdown=org.hl7.fhir.dstu21.model.MarkdownType
-datatype.oid=org.hl7.fhir.dstu21.model.OidType
-datatype.positiveInt=org.hl7.fhir.dstu21.model.PositiveIntType
-datatype.string=org.hl7.fhir.dstu21.model.StringType
-datatype.time=org.hl7.fhir.dstu21.model.TimeType
-datatype.unsignedInt=org.hl7.fhir.dstu21.model.UnsignedIntType
-datatype.uri=org.hl7.fhir.dstu21.model.UriType
-datatype.xhtml=org.hl7.fhir.utilities.xhtml.XhtmlNode
diff --git a/hapi-fhir-structures-dstu3/.gitignore b/hapi-fhir-structures-dstu3/.gitignore
new file mode 100644
index 00000000000..b83d22266ac
--- /dev/null
+++ b/hapi-fhir-structures-dstu3/.gitignore
@@ -0,0 +1 @@
+/target/
diff --git a/hapi-fhir-structures-dstu2.1/differences.txt b/hapi-fhir-structures-dstu3/differences.txt
similarity index 100%
rename from hapi-fhir-structures-dstu2.1/differences.txt
rename to hapi-fhir-structures-dstu3/differences.txt
diff --git a/hapi-fhir-structures-dstu2.1/pom.xml b/hapi-fhir-structures-dstu3/pom.xml
similarity index 96%
rename from hapi-fhir-structures-dstu2.1/pom.xml
rename to hapi-fhir-structures-dstu3/pom.xml
index c82f8b924eb..8528b2d1a71 100644
--- a/hapi-fhir-structures-dstu2.1/pom.xml
+++ b/hapi-fhir-structures-dstu3/pom.xml
@@ -9,10 +9,10 @@
../hapi-deployable-pom/pom.xml
- hapi-fhir-structures-dstu2.1
+ hapi-fhir-structures-dstu3jar
- HAPI FHIR Structures - DSTU2.1
+ HAPI FHIR Structures - DSTU3
@@ -22,7 +22,7 @@
ca.uhn.hapi.fhir
- hapi-fhir-validation-resources-dstu2.1
+ hapi-fhir-validation-resources-dstu31.4-SNAPSHOTtest
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/exceptions/DefinitionException.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/exceptions/DefinitionException.java
similarity index 84%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/exceptions/DefinitionException.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/exceptions/DefinitionException.java
index 7ffd7a2a00b..65d5dce5cee 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/exceptions/DefinitionException.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/exceptions/DefinitionException.java
@@ -1,4 +1,4 @@
-package org.hl7.fhir.dstu21.exceptions;
+package org.hl7.fhir.dstu3.exceptions;
public class DefinitionException extends FHIRException {
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/exceptions/FHIRException.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/exceptions/FHIRException.java
similarity index 86%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/exceptions/FHIRException.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/exceptions/FHIRException.java
index dfc275742f7..d2bdbe145fa 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/exceptions/FHIRException.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/exceptions/FHIRException.java
@@ -1,4 +1,4 @@
-package org.hl7.fhir.dstu21.exceptions;
+package org.hl7.fhir.dstu3.exceptions;
public class FHIRException extends Exception {
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/exceptions/FHIRFormatError.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/exceptions/FHIRFormatError.java
similarity index 85%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/exceptions/FHIRFormatError.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/exceptions/FHIRFormatError.java
index ca93334d166..8d05bc17332 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/exceptions/FHIRFormatError.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/exceptions/FHIRFormatError.java
@@ -1,4 +1,4 @@
-package org.hl7.fhir.dstu21.exceptions;
+package org.hl7.fhir.dstu3.exceptions;
public class FHIRFormatError extends FHIRException {
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/exceptions/PathEngineException.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/exceptions/PathEngineException.java
similarity index 84%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/exceptions/PathEngineException.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/exceptions/PathEngineException.java
index 89572dc32c0..5a1d84086d8 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/exceptions/PathEngineException.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/exceptions/PathEngineException.java
@@ -1,4 +1,4 @@
-package org.hl7.fhir.dstu21.exceptions;
+package org.hl7.fhir.dstu3.exceptions;
public class PathEngineException extends FHIRException {
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/exceptions/TerminologyServiceException.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/exceptions/TerminologyServiceException.java
similarity index 86%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/exceptions/TerminologyServiceException.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/exceptions/TerminologyServiceException.java
index 31b5ef2fa3f..744084aabd0 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/exceptions/TerminologyServiceException.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/exceptions/TerminologyServiceException.java
@@ -1,4 +1,4 @@
-package org.hl7.fhir.dstu21.exceptions;
+package org.hl7.fhir.dstu3.exceptions;
public class TerminologyServiceException extends FHIRException {
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/exceptions/UcumException.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/exceptions/UcumException.java
similarity index 83%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/exceptions/UcumException.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/exceptions/UcumException.java
index c28511fbbdc..b2b9e9ed04d 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/exceptions/UcumException.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/exceptions/UcumException.java
@@ -1,4 +1,4 @@
-package org.hl7.fhir.dstu21.exceptions;
+package org.hl7.fhir.dstu3.exceptions;
public class UcumException extends FHIRException {
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/formats/FormatUtilities.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/formats/FormatUtilities.java
similarity index 95%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/formats/FormatUtilities.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/formats/FormatUtilities.java
index 84de424e727..2d509a511d4 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/formats/FormatUtilities.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/formats/FormatUtilities.java
@@ -1,4 +1,4 @@
-package org.hl7.fhir.dstu21.formats;
+package org.hl7.fhir.dstu3.formats;
/*
Copyright (c) 2011+, HL7, Inc
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/formats/IParser.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/formats/IParser.java
similarity index 95%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/formats/IParser.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/formats/IParser.java
index 042f3b57dcd..cab4de82082 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/formats/IParser.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/formats/IParser.java
@@ -1,4 +1,4 @@
-package org.hl7.fhir.dstu21.formats;
+package org.hl7.fhir.dstu3.formats;
import java.io.IOException;
@@ -37,9 +37,9 @@ import java.io.InputStream;
import java.io.OutputStream;
import java.io.UnsupportedEncodingException;
-import org.hl7.fhir.dstu21.exceptions.FHIRFormatError;
-import org.hl7.fhir.dstu21.model.Resource;
-import org.hl7.fhir.dstu21.model.Type;
+import org.hl7.fhir.dstu3.exceptions.FHIRFormatError;
+import org.hl7.fhir.dstu3.model.Resource;
+import org.hl7.fhir.dstu3.model.Type;
import org.xmlpull.v1.XmlPullParserException;
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/formats/ParserType.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/formats/ParserType.java
similarity index 86%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/formats/ParserType.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/formats/ParserType.java
index 050af0b0994..0f703b9fc11 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/formats/ParserType.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/formats/ParserType.java
@@ -1,4 +1,4 @@
-package org.hl7.fhir.dstu21.formats;
+package org.hl7.fhir.dstu3.formats;
/**
* Used in factory methods for parsers, for requesting a parser of a particular type
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/hapi/ctx/FhirDstu21.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/hapi/ctx/FhirDstu3.java
similarity index 73%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/hapi/ctx/FhirDstu21.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/hapi/ctx/FhirDstu3.java
index 23af232fc56..2010cebfa87 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/hapi/ctx/FhirDstu21.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/hapi/ctx/FhirDstu3.java
@@ -1,4 +1,4 @@
-package org.hl7.fhir.dstu21.hapi.ctx;
+package org.hl7.fhir.dstu3.hapi.ctx;
/*
* #%L
@@ -25,15 +25,14 @@ import java.util.Date;
import java.util.List;
import org.apache.commons.lang3.StringUtils;
-import org.hl7.fhir.dstu21.hapi.rest.server.Dstu21BundleFactory;
-import org.hl7.fhir.dstu21.hapi.rest.server.ServerConformanceProvider;
-import org.hl7.fhir.dstu21.hapi.rest.server.ServerProfileProvider;
-import org.hl7.fhir.dstu21.model.Coding;
-import org.hl7.fhir.dstu21.model.IdType;
-import org.hl7.fhir.dstu21.model.Reference;
-import org.hl7.fhir.dstu21.model.Resource;
-import org.hl7.fhir.dstu21.model.StructureDefinition;
-import org.hl7.fhir.instance.model.api.IAnyResource;
+import org.hl7.fhir.dstu3.hapi.rest.server.Dstu3BundleFactory;
+import org.hl7.fhir.dstu3.hapi.rest.server.ServerConformanceProvider;
+import org.hl7.fhir.dstu3.hapi.rest.server.ServerProfileProvider;
+import org.hl7.fhir.dstu3.model.Coding;
+import org.hl7.fhir.dstu3.model.IdType;
+import org.hl7.fhir.dstu3.model.Reference;
+import org.hl7.fhir.dstu3.model.Resource;
+import org.hl7.fhir.dstu3.model.StructureDefinition;
import org.hl7.fhir.instance.model.api.IBaseCoding;
import org.hl7.fhir.instance.model.api.IBaseReference;
import org.hl7.fhir.instance.model.api.IBaseResource;
@@ -45,15 +44,12 @@ import ca.uhn.fhir.context.FhirContext;
import ca.uhn.fhir.context.FhirVersionEnum;
import ca.uhn.fhir.context.RuntimeResourceDefinition;
import ca.uhn.fhir.model.api.IFhirVersion;
-import ca.uhn.fhir.model.api.IResource;
-import ca.uhn.fhir.model.api.ResourceMetadataKeyEnum;
-import ca.uhn.fhir.model.base.composite.BaseContainedDt;
import ca.uhn.fhir.model.primitive.IdDt;
import ca.uhn.fhir.rest.server.IResourceProvider;
import ca.uhn.fhir.rest.server.IVersionSpecificBundleFactory;
import ca.uhn.fhir.rest.server.RestfulServer;
-public class FhirDstu21 implements IFhirVersion {
+public class FhirDstu3 implements IFhirVersion {
private String myId;
@@ -90,12 +86,12 @@ public class FhirDstu21 implements IFhirVersion {
@Override
public InputStream getFhirVersionPropertiesFile() {
- InputStream str = FhirDstu21.class.getResourceAsStream("/org/hl7/fhir/dstu21/model/fhirversion.properties");
+ InputStream str = FhirDstu3.class.getResourceAsStream("/org/hl7/fhir/dstu3/model/fhirversion.properties");
if (str == null) {
- str = FhirDstu21.class.getResourceAsStream("/org/hl7/fhir/dstu21/model/fhirversion.properties");
+ str = FhirDstu3.class.getResourceAsStream("/org/hl7/fhir/dstu3/model/fhirversion.properties");
}
if (str == null) {
- throw new ConfigurationException("Can not find model property file on classpath: " + "/ca/uhn/fhir/model/dstu21/fhirversion.properties");
+ throw new ConfigurationException("Can not find model property file on classpath: " + "/ca/uhn/fhir/model/dstu3/fhirversion.properties");
}
return str;
}
@@ -107,7 +103,7 @@ public class FhirDstu21 implements IFhirVersion {
@Override
public String getPathToSchemaDefinitions() {
- return "/org/hl7/fhir/instance/model/dstu21/schema";
+ return "/org/hl7/fhir/instance/model/dstu3/schema";
}
@Override
@@ -117,12 +113,12 @@ public class FhirDstu21 implements IFhirVersion {
@Override
public FhirVersionEnum getVersion() {
- return FhirVersionEnum.DSTU2_1;
+ return FhirVersionEnum.DSTU3;
}
@Override
public IVersionSpecificBundleFactory newBundleFactory(FhirContext theContext) {
- return new Dstu21BundleFactory(theContext);
+ return new Dstu3BundleFactory(theContext);
}
@Override
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/hapi/rest/server/Dstu21BundleFactory.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/hapi/rest/server/Dstu3BundleFactory.java
similarity index 96%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/hapi/rest/server/Dstu21BundleFactory.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/hapi/rest/server/Dstu3BundleFactory.java
index cfeecdb8f5d..66fabe2c80e 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/hapi/rest/server/Dstu21BundleFactory.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/hapi/rest/server/Dstu3BundleFactory.java
@@ -1,4 +1,4 @@
-package org.hl7.fhir.dstu21.hapi.rest.server;
+package org.hl7.fhir.dstu3.hapi.rest.server;
/*
* #%L
@@ -30,14 +30,14 @@ import java.util.Set;
import java.util.UUID;
import org.apache.commons.lang3.Validate;
-import org.hl7.fhir.dstu21.model.Bundle;
-import org.hl7.fhir.dstu21.model.Bundle.BundleEntryComponent;
-import org.hl7.fhir.dstu21.model.Bundle.BundleLinkComponent;
-import org.hl7.fhir.dstu21.model.Bundle.HTTPVerb;
-import org.hl7.fhir.dstu21.model.Bundle.SearchEntryMode;
-import org.hl7.fhir.dstu21.model.DomainResource;
-import org.hl7.fhir.dstu21.model.IdType;
-import org.hl7.fhir.dstu21.model.Resource;
+import org.hl7.fhir.dstu3.model.Bundle;
+import org.hl7.fhir.dstu3.model.DomainResource;
+import org.hl7.fhir.dstu3.model.IdType;
+import org.hl7.fhir.dstu3.model.Resource;
+import org.hl7.fhir.dstu3.model.Bundle.BundleEntryComponent;
+import org.hl7.fhir.dstu3.model.Bundle.BundleLinkComponent;
+import org.hl7.fhir.dstu3.model.Bundle.HTTPVerb;
+import org.hl7.fhir.dstu3.model.Bundle.SearchEntryMode;
import org.hl7.fhir.instance.model.api.IAnyResource;
import org.hl7.fhir.instance.model.api.IBaseResource;
import org.hl7.fhir.instance.model.api.IIdType;
@@ -63,14 +63,14 @@ import ca.uhn.fhir.rest.server.RestfulServerUtils;
import ca.uhn.fhir.rest.server.exceptions.InternalErrorException;
import ca.uhn.fhir.util.ResourceReferenceInfo;
-public class Dstu21BundleFactory implements IVersionSpecificBundleFactory {
+public class Dstu3BundleFactory implements IVersionSpecificBundleFactory {
- private static final org.slf4j.Logger ourLog = org.slf4j.LoggerFactory.getLogger(Dstu21BundleFactory.class);
+ private static final org.slf4j.Logger ourLog = org.slf4j.LoggerFactory.getLogger(Dstu3BundleFactory.class);
private Bundle myBundle;
private FhirContext myContext;
private String myBase;
- public Dstu21BundleFactory(FhirContext theContext) {
+ public Dstu3BundleFactory(FhirContext theContext) {
myContext = theContext;
}
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/hapi/rest/server/ServerConformanceProvider.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/hapi/rest/server/ServerConformanceProvider.java
similarity index 94%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/hapi/rest/server/ServerConformanceProvider.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/hapi/rest/server/ServerConformanceProvider.java
index 8cc31ea3f8c..965250e9d5b 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/hapi/rest/server/ServerConformanceProvider.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/hapi/rest/server/ServerConformanceProvider.java
@@ -1,4 +1,4 @@
-package org.hl7.fhir.dstu21.hapi.rest.server;
+package org.hl7.fhir.dstu3.hapi.rest.server;
/*
* #%L
@@ -38,25 +38,25 @@ import javax.servlet.ServletContext;
import javax.servlet.http.HttpServletRequest;
import org.apache.commons.lang3.StringUtils;
-import org.hl7.fhir.dstu21.exceptions.FHIRException;
-import org.hl7.fhir.dstu21.model.Conformance;
-import org.hl7.fhir.dstu21.model.Conformance.ConditionalDeleteStatus;
-import org.hl7.fhir.dstu21.model.Conformance.ConformanceRestComponent;
-import org.hl7.fhir.dstu21.model.Conformance.ConformanceRestResourceComponent;
-import org.hl7.fhir.dstu21.model.Conformance.ConformanceRestResourceSearchParamComponent;
-import org.hl7.fhir.dstu21.model.Conformance.ConformanceStatementKind;
-import org.hl7.fhir.dstu21.model.Conformance.ResourceInteractionComponent;
-import org.hl7.fhir.dstu21.model.Conformance.RestfulConformanceMode;
-import org.hl7.fhir.dstu21.model.Conformance.SystemRestfulInteraction;
-import org.hl7.fhir.dstu21.model.Conformance.TypeRestfulInteraction;
-import org.hl7.fhir.dstu21.model.Conformance.UnknownContentCode;
-import org.hl7.fhir.dstu21.model.DateTimeType;
-import org.hl7.fhir.dstu21.model.Enumerations.ConformanceResourceStatus;
-import org.hl7.fhir.dstu21.model.IdType;
-import org.hl7.fhir.dstu21.model.OperationDefinition;
-import org.hl7.fhir.dstu21.model.OperationDefinition.OperationDefinitionParameterComponent;
-import org.hl7.fhir.dstu21.model.OperationDefinition.OperationParameterUse;
-import org.hl7.fhir.dstu21.model.ResourceType;
+import org.hl7.fhir.dstu3.exceptions.FHIRException;
+import org.hl7.fhir.dstu3.model.Conformance;
+import org.hl7.fhir.dstu3.model.DateTimeType;
+import org.hl7.fhir.dstu3.model.IdType;
+import org.hl7.fhir.dstu3.model.OperationDefinition;
+import org.hl7.fhir.dstu3.model.ResourceType;
+import org.hl7.fhir.dstu3.model.Conformance.ConditionalDeleteStatus;
+import org.hl7.fhir.dstu3.model.Conformance.ConformanceRestComponent;
+import org.hl7.fhir.dstu3.model.Conformance.ConformanceRestResourceComponent;
+import org.hl7.fhir.dstu3.model.Conformance.ConformanceRestResourceSearchParamComponent;
+import org.hl7.fhir.dstu3.model.Conformance.ConformanceStatementKind;
+import org.hl7.fhir.dstu3.model.Conformance.ResourceInteractionComponent;
+import org.hl7.fhir.dstu3.model.Conformance.RestfulConformanceMode;
+import org.hl7.fhir.dstu3.model.Conformance.SystemRestfulInteraction;
+import org.hl7.fhir.dstu3.model.Conformance.TypeRestfulInteraction;
+import org.hl7.fhir.dstu3.model.Conformance.UnknownContentCode;
+import org.hl7.fhir.dstu3.model.Enumerations.ConformanceResourceStatus;
+import org.hl7.fhir.dstu3.model.OperationDefinition.OperationDefinitionParameterComponent;
+import org.hl7.fhir.dstu3.model.OperationDefinition.OperationParameterUse;
import org.hl7.fhir.instance.model.api.IBaseResource;
import ca.uhn.fhir.context.RuntimeResourceDefinition;
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/hapi/rest/server/ServerProfileProvider.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/hapi/rest/server/ServerProfileProvider.java
similarity index 95%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/hapi/rest/server/ServerProfileProvider.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/hapi/rest/server/ServerProfileProvider.java
index 921c30d1500..3a2342cce8e 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/hapi/rest/server/ServerProfileProvider.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/hapi/rest/server/ServerProfileProvider.java
@@ -1,4 +1,4 @@
-package org.hl7.fhir.dstu21.hapi.rest.server;
+package org.hl7.fhir.dstu3.hapi.rest.server;
/*
* #%L
@@ -27,8 +27,8 @@ import java.util.List;
import javax.servlet.http.HttpServletRequest;
-import org.hl7.fhir.dstu21.model.IdType;
-import org.hl7.fhir.dstu21.model.StructureDefinition;
+import org.hl7.fhir.dstu3.model.IdType;
+import org.hl7.fhir.dstu3.model.StructureDefinition;
import org.hl7.fhir.instance.model.api.IBaseResource;
import ca.uhn.fhir.context.FhirContext;
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/hapi/validation/BaseValidatorBridge.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/hapi/validation/BaseValidatorBridge.java
similarity index 93%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/hapi/validation/BaseValidatorBridge.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/hapi/validation/BaseValidatorBridge.java
index 60ecf34a1b4..1726fd962ba 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/hapi/validation/BaseValidatorBridge.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/hapi/validation/BaseValidatorBridge.java
@@ -1,8 +1,8 @@
-package org.hl7.fhir.dstu21.hapi.validation;
+package org.hl7.fhir.dstu3.hapi.validation;
import java.util.List;
-import org.hl7.fhir.dstu21.validation.ValidationMessage;
+import org.hl7.fhir.dstu3.validation.ValidationMessage;
import org.hl7.fhir.instance.model.api.IBaseResource;
import ca.uhn.fhir.model.api.Bundle;
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/hapi/validation/DefaultProfileValidationSupport.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/hapi/validation/DefaultProfileValidationSupport.java
similarity index 88%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/hapi/validation/DefaultProfileValidationSupport.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/hapi/validation/DefaultProfileValidationSupport.java
index 5e56d242243..51c383a265e 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/hapi/validation/DefaultProfileValidationSupport.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/hapi/validation/DefaultProfileValidationSupport.java
@@ -1,4 +1,4 @@
-package org.hl7.fhir.dstu21.hapi.validation;
+package org.hl7.fhir.dstu3.hapi.validation;
import static org.apache.commons.lang3.StringUtils.isNotBlank;
@@ -10,15 +10,15 @@ import java.util.HashSet;
import java.util.Map;
import java.util.Set;
-import org.hl7.fhir.dstu21.model.Bundle;
-import org.hl7.fhir.dstu21.model.Bundle.BundleEntryComponent;
-import org.hl7.fhir.dstu21.model.IdType;
-import org.hl7.fhir.dstu21.model.OperationOutcome.IssueSeverity;
-import org.hl7.fhir.dstu21.model.ValueSet;
-import org.hl7.fhir.dstu21.model.ValueSet.ConceptDefinitionComponent;
-import org.hl7.fhir.dstu21.model.ValueSet.ConceptReferenceComponent;
-import org.hl7.fhir.dstu21.model.ValueSet.ConceptSetComponent;
-import org.hl7.fhir.dstu21.model.ValueSet.ValueSetExpansionComponent;
+import org.hl7.fhir.dstu3.model.Bundle;
+import org.hl7.fhir.dstu3.model.IdType;
+import org.hl7.fhir.dstu3.model.ValueSet;
+import org.hl7.fhir.dstu3.model.Bundle.BundleEntryComponent;
+import org.hl7.fhir.dstu3.model.OperationOutcome.IssueSeverity;
+import org.hl7.fhir.dstu3.model.ValueSet.ConceptDefinitionComponent;
+import org.hl7.fhir.dstu3.model.ValueSet.ConceptReferenceComponent;
+import org.hl7.fhir.dstu3.model.ValueSet.ConceptSetComponent;
+import org.hl7.fhir.dstu3.model.ValueSet.ValueSetExpansionComponent;
import org.hl7.fhir.instance.model.api.IBaseResource;
import ca.uhn.fhir.context.FhirContext;
@@ -56,9 +56,9 @@ public class DefaultProfileValidationSupport implements IValidationSupport {
if (codeSystems == null) {
codeSystems = new HashMap();
- loadCodeSystems(theContext, codeSystems, "/org/hl7/fhir/instance/model/dstu21/valueset/valuesets.xml");
- loadCodeSystems(theContext, codeSystems, "/org/hl7/fhir/instance/model/dstu21/valueset/v2-tables.xml");
- loadCodeSystems(theContext, codeSystems, "/org/hl7/fhir/instance/model/dstu21/valueset/v3-codesystems.xml");
+ loadCodeSystems(theContext, codeSystems, "/org/hl7/fhir/instance/model/dstu3/valueset/valuesets.xml");
+ loadCodeSystems(theContext, codeSystems, "/org/hl7/fhir/instance/model/dstu3/valueset/v2-tables.xml");
+ loadCodeSystems(theContext, codeSystems, "/org/hl7/fhir/instance/model/dstu3/valueset/v3-codesystems.xml");
myCodeSystems = codeSystems;
}
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/hapi/validation/FhirInstanceValidator.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/hapi/validation/FhirInstanceValidator.java
similarity index 96%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/hapi/validation/FhirInstanceValidator.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/hapi/validation/FhirInstanceValidator.java
index 9ce347d75a5..f98061fa704 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/hapi/validation/FhirInstanceValidator.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/hapi/validation/FhirInstanceValidator.java
@@ -1,4 +1,4 @@
-package org.hl7.fhir.dstu21.hapi.validation;
+package org.hl7.fhir.dstu3.hapi.validation;
import static org.apache.commons.lang3.StringUtils.isBlank;
@@ -14,11 +14,11 @@ import javax.xml.parsers.DocumentBuilderFactory;
import org.apache.commons.io.IOUtils;
import org.apache.commons.lang3.Validate;
-import org.hl7.fhir.dstu21.model.OperationOutcome.IssueSeverity;
-import org.hl7.fhir.dstu21.model.StructureDefinition;
-import org.hl7.fhir.dstu21.validation.IResourceValidator.BestPracticeWarningLevel;
-import org.hl7.fhir.dstu21.validation.InstanceValidator;
-import org.hl7.fhir.dstu21.validation.ValidationMessage;
+import org.hl7.fhir.dstu3.model.StructureDefinition;
+import org.hl7.fhir.dstu3.model.OperationOutcome.IssueSeverity;
+import org.hl7.fhir.dstu3.validation.InstanceValidator;
+import org.hl7.fhir.dstu3.validation.ValidationMessage;
+import org.hl7.fhir.dstu3.validation.IResourceValidator.BestPracticeWarningLevel;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
import org.w3c.dom.NodeList;
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/hapi/validation/FhirQuestionnaireResponseValidator.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/hapi/validation/FhirQuestionnaireResponseValidator.java
similarity index 95%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/hapi/validation/FhirQuestionnaireResponseValidator.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/hapi/validation/FhirQuestionnaireResponseValidator.java
index 505a6225489..8afb9558534 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/hapi/validation/FhirQuestionnaireResponseValidator.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/hapi/validation/FhirQuestionnaireResponseValidator.java
@@ -1,13 +1,13 @@
-package org.hl7.fhir.dstu21.hapi.validation;
+package org.hl7.fhir.dstu3.hapi.validation;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
-import org.hl7.fhir.dstu21.model.QuestionnaireResponse;
-import org.hl7.fhir.dstu21.utils.IWorkerContext;
-import org.hl7.fhir.dstu21.validation.QuestionnaireResponseValidator;
-import org.hl7.fhir.dstu21.validation.ValidationMessage;
+import org.hl7.fhir.dstu3.model.QuestionnaireResponse;
+import org.hl7.fhir.dstu3.utils.IWorkerContext;
+import org.hl7.fhir.dstu3.validation.QuestionnaireResponseValidator;
+import org.hl7.fhir.dstu3.validation.ValidationMessage;
import org.hl7.fhir.instance.model.api.IBaseResource;
import ca.uhn.fhir.context.RuntimeResourceDefinition;
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/hapi/validation/HapiWorkerContext.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/hapi/validation/HapiWorkerContext.java
similarity index 84%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/hapi/validation/HapiWorkerContext.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/hapi/validation/HapiWorkerContext.java
index 2e2457afb3c..6eb979c4b30 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/hapi/validation/HapiWorkerContext.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/hapi/validation/HapiWorkerContext.java
@@ -1,4 +1,4 @@
-package org.hl7.fhir.dstu21.hapi.validation;
+package org.hl7.fhir.dstu3.hapi.validation;
import java.util.ArrayList;
import java.util.Collections;
@@ -7,26 +7,26 @@ import java.util.List;
import java.util.Map;
import org.apache.commons.lang3.StringUtils;
-import org.hl7.fhir.dstu21.formats.IParser;
-import org.hl7.fhir.dstu21.formats.ParserType;
-import org.hl7.fhir.dstu21.hapi.validation.IValidationSupport.CodeValidationResult;
-import org.hl7.fhir.dstu21.model.CodeableConcept;
-import org.hl7.fhir.dstu21.model.Coding;
-import org.hl7.fhir.dstu21.model.ConceptMap;
-import org.hl7.fhir.dstu21.model.OperationOutcome.IssueSeverity;
-import org.hl7.fhir.dstu21.model.Resource;
-import org.hl7.fhir.dstu21.model.ResourceType;
-import org.hl7.fhir.dstu21.model.ValueSet;
-import org.hl7.fhir.dstu21.model.ValueSet.ConceptDefinitionComponent;
-import org.hl7.fhir.dstu21.model.ValueSet.ConceptReferenceComponent;
-import org.hl7.fhir.dstu21.model.ValueSet.ConceptSetComponent;
-import org.hl7.fhir.dstu21.model.ValueSet.ValueSetExpansionComponent;
-import org.hl7.fhir.dstu21.terminologies.ValueSetExpander;
-import org.hl7.fhir.dstu21.terminologies.ValueSetExpanderFactory;
-import org.hl7.fhir.dstu21.terminologies.ValueSetExpanderSimple;
-import org.hl7.fhir.dstu21.utils.INarrativeGenerator;
-import org.hl7.fhir.dstu21.utils.IWorkerContext;
-import org.hl7.fhir.dstu21.validation.IResourceValidator;
+import org.hl7.fhir.dstu3.formats.IParser;
+import org.hl7.fhir.dstu3.formats.ParserType;
+import org.hl7.fhir.dstu3.hapi.validation.IValidationSupport.CodeValidationResult;
+import org.hl7.fhir.dstu3.model.CodeableConcept;
+import org.hl7.fhir.dstu3.model.Coding;
+import org.hl7.fhir.dstu3.model.ConceptMap;
+import org.hl7.fhir.dstu3.model.Resource;
+import org.hl7.fhir.dstu3.model.ResourceType;
+import org.hl7.fhir.dstu3.model.ValueSet;
+import org.hl7.fhir.dstu3.model.OperationOutcome.IssueSeverity;
+import org.hl7.fhir.dstu3.model.ValueSet.ConceptDefinitionComponent;
+import org.hl7.fhir.dstu3.model.ValueSet.ConceptReferenceComponent;
+import org.hl7.fhir.dstu3.model.ValueSet.ConceptSetComponent;
+import org.hl7.fhir.dstu3.model.ValueSet.ValueSetExpansionComponent;
+import org.hl7.fhir.dstu3.terminologies.ValueSetExpander;
+import org.hl7.fhir.dstu3.terminologies.ValueSetExpanderFactory;
+import org.hl7.fhir.dstu3.terminologies.ValueSetExpanderSimple;
+import org.hl7.fhir.dstu3.utils.INarrativeGenerator;
+import org.hl7.fhir.dstu3.utils.IWorkerContext;
+import org.hl7.fhir.dstu3.validation.IResourceValidator;
import ca.uhn.fhir.context.FhirContext;
import ca.uhn.fhir.rest.server.exceptions.InternalErrorException;
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/hapi/validation/IValidationSupport.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/hapi/validation/IValidationSupport.java
similarity index 90%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/hapi/validation/IValidationSupport.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/hapi/validation/IValidationSupport.java
index f931b9f709f..80a094346f1 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/hapi/validation/IValidationSupport.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/hapi/validation/IValidationSupport.java
@@ -1,10 +1,10 @@
-package org.hl7.fhir.dstu21.hapi.validation;
+package org.hl7.fhir.dstu3.hapi.validation;
-import org.hl7.fhir.dstu21.model.OperationOutcome.IssueSeverity;
-import org.hl7.fhir.dstu21.model.ValueSet;
-import org.hl7.fhir.dstu21.model.ValueSet.ConceptDefinitionComponent;
-import org.hl7.fhir.dstu21.model.ValueSet.ConceptSetComponent;
-import org.hl7.fhir.dstu21.model.ValueSet.ValueSetExpansionComponent;
+import org.hl7.fhir.dstu3.model.ValueSet;
+import org.hl7.fhir.dstu3.model.OperationOutcome.IssueSeverity;
+import org.hl7.fhir.dstu3.model.ValueSet.ConceptDefinitionComponent;
+import org.hl7.fhir.dstu3.model.ValueSet.ConceptSetComponent;
+import org.hl7.fhir.dstu3.model.ValueSet.ValueSetExpansionComponent;
import org.hl7.fhir.instance.model.api.IBaseResource;
import ca.uhn.fhir.context.FhirContext;
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/hapi/validation/ValidationSupportChain.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/hapi/validation/ValidationSupportChain.java
similarity index 91%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/hapi/validation/ValidationSupportChain.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/hapi/validation/ValidationSupportChain.java
index 794db3e419e..c9c65336481 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/hapi/validation/ValidationSupportChain.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/hapi/validation/ValidationSupportChain.java
@@ -1,11 +1,11 @@
-package org.hl7.fhir.dstu21.hapi.validation;
+package org.hl7.fhir.dstu3.hapi.validation;
import java.util.ArrayList;
import java.util.List;
-import org.hl7.fhir.dstu21.model.ValueSet;
-import org.hl7.fhir.dstu21.model.ValueSet.ConceptSetComponent;
-import org.hl7.fhir.dstu21.model.ValueSet.ValueSetExpansionComponent;
+import org.hl7.fhir.dstu3.model.ValueSet;
+import org.hl7.fhir.dstu3.model.ValueSet.ConceptSetComponent;
+import org.hl7.fhir.dstu3.model.ValueSet.ValueSetExpansionComponent;
import org.hl7.fhir.instance.model.api.IBaseResource;
import ca.uhn.fhir.context.FhirContext;
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/Account.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/Account.java
similarity index 97%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/Account.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/Account.java
index 1374d5791cc..152e3d986de 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/Account.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/Account.java
@@ -1,4 +1,4 @@
-package org.hl7.fhir.dstu21.model;
+package org.hl7.fhir.dstu3.model;
/*
Copyright (c) 2011+, HL7, Inc.
@@ -39,8 +39,9 @@ import ca.uhn.fhir.model.api.annotation.SearchParamDefinition;
import ca.uhn.fhir.model.api.annotation.Child;
import ca.uhn.fhir.model.api.annotation.Description;
import ca.uhn.fhir.model.api.annotation.Block;
+
+import org.hl7.fhir.dstu3.exceptions.FHIRException;
import org.hl7.fhir.instance.model.api.*;
-import org.hl7.fhir.dstu21.exceptions.FHIRException;
/**
* A financial tool for tracking value accrued for a particular purpose. In the healthcare field, used to track charges for a patient, cost centres, etc.
*/
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/Address.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/Address.java
similarity index 97%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/Address.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/Address.java
index 6faa86d60f9..9c20a5d555c 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/Address.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/Address.java
@@ -1,4 +1,4 @@
-package org.hl7.fhir.dstu21.model;
+package org.hl7.fhir.dstu3.model;
/*
Copyright (c) 2011+, HL7, Inc.
@@ -38,8 +38,9 @@ import ca.uhn.fhir.model.api.annotation.Child;
import ca.uhn.fhir.model.api.annotation.Description;
import ca.uhn.fhir.model.api.annotation.DatatypeDef;
import ca.uhn.fhir.model.api.annotation.Block;
+
+import org.hl7.fhir.dstu3.exceptions.FHIRException;
import org.hl7.fhir.instance.model.api.*;
-import org.hl7.fhir.dstu21.exceptions.FHIRException;
/**
* There is a variety of postal address formats defined around the world. This format defines a superset that is the basis for all addresses around the world.
*/
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/Age.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/Age.java
similarity index 95%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/Age.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/Age.java
index a322426bae7..6b6f21b2e5b 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/Age.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/Age.java
@@ -1,4 +1,4 @@
-package org.hl7.fhir.dstu21.model;
+package org.hl7.fhir.dstu3.model;
/*
Copyright (c) 2011+, HL7, Inc.
@@ -33,8 +33,9 @@ package org.hl7.fhir.dstu21.model;
import ca.uhn.fhir.model.api.annotation.DatatypeDef;
import ca.uhn.fhir.model.api.annotation.Block;
+
+import org.hl7.fhir.dstu3.exceptions.FHIRException;
import org.hl7.fhir.instance.model.api.*;
-import org.hl7.fhir.dstu21.exceptions.FHIRException;
/**
* A measured amount (or an amount that can potentially be measured). Note that measured amounts include amounts that are not precisely quantified, including amounts involving arbitrary units and floating currencies.
*/
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/AllergyIntolerance.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/AllergyIntolerance.java
similarity index 97%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/AllergyIntolerance.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/AllergyIntolerance.java
index 61493d403bd..3159da78763 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/AllergyIntolerance.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/AllergyIntolerance.java
@@ -1,4 +1,4 @@
-package org.hl7.fhir.dstu21.model;
+package org.hl7.fhir.dstu3.model;
/*
Copyright (c) 2011+, HL7, Inc.
@@ -39,8 +39,9 @@ import ca.uhn.fhir.model.api.annotation.SearchParamDefinition;
import ca.uhn.fhir.model.api.annotation.Child;
import ca.uhn.fhir.model.api.annotation.Description;
import ca.uhn.fhir.model.api.annotation.Block;
+
+import org.hl7.fhir.dstu3.exceptions.FHIRException;
import org.hl7.fhir.instance.model.api.*;
-import org.hl7.fhir.dstu21.exceptions.FHIRException;
/**
* Risk of harmful or undesirable, physiological response which is unique to an individual and associated with exposure to a substance.
*/
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/Annotation.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/Annotation.java
similarity index 96%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/Annotation.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/Annotation.java
index dbb8099ca24..f91e9280d37 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/Annotation.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/Annotation.java
@@ -1,4 +1,4 @@
-package org.hl7.fhir.dstu21.model;
+package org.hl7.fhir.dstu3.model;
/*
Copyright (c) 2011+, HL7, Inc.
@@ -38,8 +38,9 @@ import ca.uhn.fhir.model.api.annotation.Child;
import ca.uhn.fhir.model.api.annotation.Description;
import ca.uhn.fhir.model.api.annotation.DatatypeDef;
import ca.uhn.fhir.model.api.annotation.Block;
+
+import org.hl7.fhir.dstu3.exceptions.FHIRException;
import org.hl7.fhir.instance.model.api.*;
-import org.hl7.fhir.dstu21.exceptions.FHIRException;
/**
* A text note which also contains information about who made the statement and when.
*/
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/Appointment.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/Appointment.java
similarity index 97%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/Appointment.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/Appointment.java
index 8268f42e15b..f47fb9d900a 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/Appointment.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/Appointment.java
@@ -1,4 +1,4 @@
-package org.hl7.fhir.dstu21.model;
+package org.hl7.fhir.dstu3.model;
/*
Copyright (c) 2011+, HL7, Inc.
@@ -39,8 +39,9 @@ import ca.uhn.fhir.model.api.annotation.SearchParamDefinition;
import ca.uhn.fhir.model.api.annotation.Child;
import ca.uhn.fhir.model.api.annotation.Description;
import ca.uhn.fhir.model.api.annotation.Block;
+
+import org.hl7.fhir.dstu3.exceptions.FHIRException;
import org.hl7.fhir.instance.model.api.*;
-import org.hl7.fhir.dstu21.exceptions.FHIRException;
/**
* A booking of a healthcare event among patient(s), practitioner(s), related person(s) and/or device(s) for a specific date/time. This may result in one or more Encounter(s).
*/
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/AppointmentResponse.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/AppointmentResponse.java
similarity index 97%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/AppointmentResponse.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/AppointmentResponse.java
index 2bc9db590ac..0c36bf9458e 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/AppointmentResponse.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/AppointmentResponse.java
@@ -1,4 +1,4 @@
-package org.hl7.fhir.dstu21.model;
+package org.hl7.fhir.dstu3.model;
/*
Copyright (c) 2011+, HL7, Inc.
@@ -39,8 +39,9 @@ import ca.uhn.fhir.model.api.annotation.SearchParamDefinition;
import ca.uhn.fhir.model.api.annotation.Child;
import ca.uhn.fhir.model.api.annotation.Description;
import ca.uhn.fhir.model.api.annotation.Block;
+
+import org.hl7.fhir.dstu3.exceptions.FHIRException;
import org.hl7.fhir.instance.model.api.*;
-import org.hl7.fhir.dstu21.exceptions.FHIRException;
/**
* A reply to an appointment request for a patient and/or practitioner(s), such as a confirmation or rejection.
*/
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/Attachment.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/Attachment.java
similarity index 97%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/Attachment.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/Attachment.java
index 822eeb9f2b3..606c8c34f92 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/Attachment.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/Attachment.java
@@ -1,4 +1,4 @@
-package org.hl7.fhir.dstu21.model;
+package org.hl7.fhir.dstu3.model;
/*
Copyright (c) 2011+, HL7, Inc.
@@ -34,13 +34,15 @@ package org.hl7.fhir.dstu21.model;
import java.util.*;
import org.hl7.fhir.utilities.Utilities;
-import org.hl7.fhir.dstu21.model.Enumerations.*;
+
import ca.uhn.fhir.model.api.annotation.Child;
import ca.uhn.fhir.model.api.annotation.Description;
import ca.uhn.fhir.model.api.annotation.DatatypeDef;
import ca.uhn.fhir.model.api.annotation.Block;
+
+import org.hl7.fhir.dstu3.exceptions.FHIRException;
+import org.hl7.fhir.dstu3.model.Enumerations.*;
import org.hl7.fhir.instance.model.api.*;
-import org.hl7.fhir.dstu21.exceptions.FHIRException;
/**
* For referring to data content defined in other formats.
*/
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/AuditEvent.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/AuditEvent.java
similarity index 97%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/AuditEvent.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/AuditEvent.java
index 07101771bf6..4fac75fa9d6 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/AuditEvent.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/AuditEvent.java
@@ -1,4 +1,4 @@
-package org.hl7.fhir.dstu21.model;
+package org.hl7.fhir.dstu3.model;
/*
Copyright (c) 2011+, HL7, Inc.
@@ -34,14 +34,16 @@ package org.hl7.fhir.dstu21.model;
import java.util.*;
import org.hl7.fhir.utilities.Utilities;
-import org.hl7.fhir.dstu21.model.Enumerations.*;
+
import ca.uhn.fhir.model.api.annotation.ResourceDef;
import ca.uhn.fhir.model.api.annotation.SearchParamDefinition;
import ca.uhn.fhir.model.api.annotation.Child;
import ca.uhn.fhir.model.api.annotation.Description;
import ca.uhn.fhir.model.api.annotation.Block;
+
+import org.hl7.fhir.dstu3.exceptions.FHIRException;
+import org.hl7.fhir.dstu3.model.Enumerations.*;
import org.hl7.fhir.instance.model.api.*;
-import org.hl7.fhir.dstu21.exceptions.FHIRException;
/**
* A record of an event made for purposes of maintaining a security log. Typical uses include detection of intrusion attempts and monitoring for inappropriate usage.
*/
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/BackboneElement.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/BackboneElement.java
similarity index 97%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/BackboneElement.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/BackboneElement.java
index 943bbe77418..dc4924e0230 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/BackboneElement.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/BackboneElement.java
@@ -1,4 +1,4 @@
-package org.hl7.fhir.dstu21.model;
+package org.hl7.fhir.dstu3.model;
/*
Copyright (c) 2011+, HL7, Inc.
@@ -37,8 +37,9 @@ import ca.uhn.fhir.model.api.annotation.Child;
import ca.uhn.fhir.model.api.annotation.Description;
import ca.uhn.fhir.model.api.annotation.DatatypeDef;
import ca.uhn.fhir.model.api.annotation.Block;
+
+import org.hl7.fhir.dstu3.exceptions.FHIRException;
import org.hl7.fhir.instance.model.api.*;
-import org.hl7.fhir.dstu21.exceptions.FHIRException;
/**
* Base definition for all elements that are defined inside a resource - but not those in a data type.
*/
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/Base.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/Base.java
similarity index 96%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/Base.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/Base.java
index 889127ac089..33b80652800 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/Base.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/Base.java
@@ -1,4 +1,4 @@
-package org.hl7.fhir.dstu21.model;
+package org.hl7.fhir.dstu3.model;
import java.io.Serializable;
import java.util.ArrayList;
@@ -6,7 +6,7 @@ import java.util.HashMap;
import java.util.List;
import java.util.Map;
-import org.hl7.fhir.dstu21.exceptions.FHIRException;
+import org.hl7.fhir.dstu3.exceptions.FHIRException;
import org.hl7.fhir.instance.model.api.IBase;
import org.hl7.fhir.utilities.xhtml.XhtmlNode;
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/Base64BinaryType.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/Base64BinaryType.java
similarity index 95%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/Base64BinaryType.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/Base64BinaryType.java
index 84d98027dcf..c21dbe398fb 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/Base64BinaryType.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/Base64BinaryType.java
@@ -26,7 +26,7 @@ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.
*/
-package org.hl7.fhir.dstu21.model;
+package org.hl7.fhir.dstu3.model;
import org.apache.commons.codec.binary.Base64;
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/BaseBinary.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/BaseBinary.java
similarity index 93%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/BaseBinary.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/BaseBinary.java
index 08d0eedab16..0e93a94ef69 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/BaseBinary.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/BaseBinary.java
@@ -1,4 +1,4 @@
-package org.hl7.fhir.dstu21.model;
+package org.hl7.fhir.dstu3.model;
import org.hl7.fhir.instance.model.api.IBaseBinary;
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/BaseDateTimeType.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/BaseDateTimeType.java
similarity index 98%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/BaseDateTimeType.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/BaseDateTimeType.java
index 74345103c65..625e70459b3 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/BaseDateTimeType.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/BaseDateTimeType.java
@@ -1,8 +1,8 @@
-package org.hl7.fhir.dstu21.model;
+package org.hl7.fhir.dstu3.model;
-import static org.hl7.fhir.dstu21.model.TemporalPrecisionEnum.DAY;
-import static org.hl7.fhir.dstu21.model.TemporalPrecisionEnum.MONTH;
-import static org.hl7.fhir.dstu21.model.TemporalPrecisionEnum.YEAR;
+import static org.hl7.fhir.dstu3.model.TemporalPrecisionEnum.DAY;
+import static org.hl7.fhir.dstu3.model.TemporalPrecisionEnum.MONTH;
+import static org.hl7.fhir.dstu3.model.TemporalPrecisionEnum.YEAR;
import java.text.ParseException;
import java.util.ArrayList;
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/BaseExtension.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/BaseExtension.java
similarity index 93%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/BaseExtension.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/BaseExtension.java
index b42f25e59b1..4530c139df0 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/BaseExtension.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/BaseExtension.java
@@ -1,4 +1,4 @@
-package org.hl7.fhir.dstu21.model;
+package org.hl7.fhir.dstu3.model;
import org.hl7.fhir.instance.model.api.IBaseDatatype;
import org.hl7.fhir.instance.model.api.IBaseExtension;
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/BaseNarrative.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/BaseNarrative.java
similarity index 96%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/BaseNarrative.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/BaseNarrative.java
index 6e82dda01f6..25d1b7f9cc9 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/BaseNarrative.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/BaseNarrative.java
@@ -1,4 +1,4 @@
-package org.hl7.fhir.dstu21.model;
+package org.hl7.fhir.dstu3.model;
import org.apache.commons.lang3.StringUtils;
import org.hl7.fhir.instance.model.api.INarrative;
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/BaseReference.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/BaseReference.java
similarity index 98%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/BaseReference.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/BaseReference.java
index 28bd7a1b2e0..90aea76bd17 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/BaseReference.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/BaseReference.java
@@ -1,4 +1,4 @@
-package org.hl7.fhir.dstu21.model;
+package org.hl7.fhir.dstu3.model;
import org.hl7.fhir.instance.model.api.IAnyResource;
import org.hl7.fhir.instance.model.api.IBaseReference;
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/BaseResource.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/BaseResource.java
similarity index 95%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/BaseResource.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/BaseResource.java
index e45a4265e9c..5c5fd08beaf 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/BaseResource.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/BaseResource.java
@@ -1,4 +1,4 @@
-package org.hl7.fhir.dstu21.model;
+package org.hl7.fhir.dstu3.model;
import org.hl7.fhir.instance.model.api.IAnyResource;
import org.hl7.fhir.instance.model.api.IIdType;
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/Basic.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/Basic.java
similarity index 97%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/Basic.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/Basic.java
index 585469777aa..cfe1be531e3 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/Basic.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/Basic.java
@@ -1,4 +1,4 @@
-package org.hl7.fhir.dstu21.model;
+package org.hl7.fhir.dstu3.model;
/*
Copyright (c) 2011+, HL7, Inc.
@@ -38,8 +38,9 @@ import ca.uhn.fhir.model.api.annotation.SearchParamDefinition;
import ca.uhn.fhir.model.api.annotation.Child;
import ca.uhn.fhir.model.api.annotation.Description;
import ca.uhn.fhir.model.api.annotation.Block;
+
+import org.hl7.fhir.dstu3.exceptions.FHIRException;
import org.hl7.fhir.instance.model.api.*;
-import org.hl7.fhir.dstu21.exceptions.FHIRException;
/**
* Basic is used for handling concepts not yet defined in FHIR, narrative-only resources that don't map to an existing resource, and custom resources not appropriate for inclusion in the FHIR specification.
*/
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/Binary.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/Binary.java
similarity index 96%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/Binary.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/Binary.java
index 185ecadc63c..2021d4de134 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/Binary.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/Binary.java
@@ -1,4 +1,4 @@
-package org.hl7.fhir.dstu21.model;
+package org.hl7.fhir.dstu3.model;
/*
Copyright (c) 2011+, HL7, Inc.
@@ -34,14 +34,16 @@ package org.hl7.fhir.dstu21.model;
import java.util.*;
import org.hl7.fhir.utilities.Utilities;
-import org.hl7.fhir.dstu21.model.Enumerations.*;
+
import ca.uhn.fhir.model.api.annotation.ResourceDef;
import ca.uhn.fhir.model.api.annotation.SearchParamDefinition;
import ca.uhn.fhir.model.api.annotation.Child;
import ca.uhn.fhir.model.api.annotation.Description;
import ca.uhn.fhir.model.api.annotation.Block;
+
+import org.hl7.fhir.dstu3.exceptions.FHIRException;
+import org.hl7.fhir.dstu3.model.Enumerations.*;
import org.hl7.fhir.instance.model.api.*;
-import org.hl7.fhir.dstu21.exceptions.FHIRException;
/**
* A binary resource can contain any content, whether text, image, pdf, zip archive, etc.
*/
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/BodySite.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/BodySite.java
similarity index 96%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/BodySite.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/BodySite.java
index 944c3670c09..ad422413515 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/BodySite.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/BodySite.java
@@ -1,4 +1,4 @@
-package org.hl7.fhir.dstu21.model;
+package org.hl7.fhir.dstu3.model;
/*
Copyright (c) 2011+, HL7, Inc.
@@ -39,8 +39,9 @@ import ca.uhn.fhir.model.api.annotation.SearchParamDefinition;
import ca.uhn.fhir.model.api.annotation.Child;
import ca.uhn.fhir.model.api.annotation.Description;
import ca.uhn.fhir.model.api.annotation.Block;
+
+import org.hl7.fhir.dstu3.exceptions.FHIRException;
import org.hl7.fhir.instance.model.api.*;
-import org.hl7.fhir.dstu21.exceptions.FHIRException;
/**
* Record details about the anatomical location of a specimen or body part. This resource may be used when a coded concept does not provide the necessary detail needed for the use case.
*/
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/BooleanType.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/BooleanType.java
similarity index 95%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/BooleanType.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/BooleanType.java
index 001f34877a8..d73cff1fe64 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/BooleanType.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/BooleanType.java
@@ -29,7 +29,7 @@ POSSIBILITY OF SUCH DAMAGE.
/**
*
*/
-package org.hl7.fhir.dstu21.model;
+package org.hl7.fhir.dstu3.model;
import org.hl7.fhir.instance.model.api.IBaseBooleanDatatype;
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/Bundle.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/Bundle.java
similarity index 97%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/Bundle.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/Bundle.java
index 78e76c8548e..44506819364 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/Bundle.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/Bundle.java
@@ -1,4 +1,4 @@
-package org.hl7.fhir.dstu21.model;
+package org.hl7.fhir.dstu3.model;
/*
Copyright (c) 2011+, HL7, Inc.
@@ -40,8 +40,9 @@ import ca.uhn.fhir.model.api.annotation.SearchParamDefinition;
import ca.uhn.fhir.model.api.annotation.Child;
import ca.uhn.fhir.model.api.annotation.Description;
import ca.uhn.fhir.model.api.annotation.Block;
+
+import org.hl7.fhir.dstu3.exceptions.FHIRException;
import org.hl7.fhir.instance.model.api.*;
-import org.hl7.fhir.dstu21.exceptions.FHIRException;
/**
* A container for a collection of resources.
*/
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/CarePlan.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/CarePlan.java
similarity index 97%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/CarePlan.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/CarePlan.java
index b2e459e5aeb..d118deefb77 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/CarePlan.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/CarePlan.java
@@ -1,4 +1,4 @@
-package org.hl7.fhir.dstu21.model;
+package org.hl7.fhir.dstu3.model;
/*
Copyright (c) 2011+, HL7, Inc.
@@ -39,8 +39,9 @@ import ca.uhn.fhir.model.api.annotation.SearchParamDefinition;
import ca.uhn.fhir.model.api.annotation.Child;
import ca.uhn.fhir.model.api.annotation.Description;
import ca.uhn.fhir.model.api.annotation.Block;
+
+import org.hl7.fhir.dstu3.exceptions.FHIRException;
import org.hl7.fhir.instance.model.api.*;
-import org.hl7.fhir.dstu21.exceptions.FHIRException;
/**
* Describes the intention of how one or more practitioners intend to deliver care for a particular patient, group or community for a period of time, possibly limited to care for a specific condition or set of conditions.
*/
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/Claim.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/Claim.java
similarity index 97%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/Claim.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/Claim.java
index 4303b65f0a9..df6d3449f2e 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/Claim.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/Claim.java
@@ -1,4 +1,4 @@
-package org.hl7.fhir.dstu21.model;
+package org.hl7.fhir.dstu3.model;
/*
Copyright (c) 2011+, HL7, Inc.
@@ -35,14 +35,16 @@ import java.util.*;
import java.math.*;
import org.hl7.fhir.utilities.Utilities;
-import org.hl7.fhir.dstu21.model.Enumerations.*;
+
import ca.uhn.fhir.model.api.annotation.ResourceDef;
import ca.uhn.fhir.model.api.annotation.SearchParamDefinition;
import ca.uhn.fhir.model.api.annotation.Child;
import ca.uhn.fhir.model.api.annotation.Description;
import ca.uhn.fhir.model.api.annotation.Block;
+
+import org.hl7.fhir.dstu3.exceptions.FHIRException;
+import org.hl7.fhir.dstu3.model.Enumerations.*;
import org.hl7.fhir.instance.model.api.*;
-import org.hl7.fhir.dstu21.exceptions.FHIRException;
/**
* A provider issued list of services and products provided, or to be provided, to a patient which is provided to an insurer for payment recovery.
*/
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/ClaimResponse.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/ClaimResponse.java
similarity index 97%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/ClaimResponse.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/ClaimResponse.java
index 71d726c9c60..841bcef0554 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/ClaimResponse.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/ClaimResponse.java
@@ -1,4 +1,4 @@
-package org.hl7.fhir.dstu21.model;
+package org.hl7.fhir.dstu3.model;
/*
Copyright (c) 2011+, HL7, Inc.
@@ -35,14 +35,16 @@ import java.util.*;
import java.math.*;
import org.hl7.fhir.utilities.Utilities;
-import org.hl7.fhir.dstu21.model.Enumerations.*;
+
import ca.uhn.fhir.model.api.annotation.ResourceDef;
import ca.uhn.fhir.model.api.annotation.SearchParamDefinition;
import ca.uhn.fhir.model.api.annotation.Child;
import ca.uhn.fhir.model.api.annotation.Description;
import ca.uhn.fhir.model.api.annotation.Block;
+
+import org.hl7.fhir.dstu3.exceptions.FHIRException;
+import org.hl7.fhir.dstu3.model.Enumerations.*;
import org.hl7.fhir.instance.model.api.*;
-import org.hl7.fhir.dstu21.exceptions.FHIRException;
/**
* This resource provides the adjudication details from the processing of a Claim resource.
*/
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/ClinicalImpression.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/ClinicalImpression.java
similarity index 97%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/ClinicalImpression.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/ClinicalImpression.java
index 5975d37d647..ed5f8b4bff0 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/ClinicalImpression.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/ClinicalImpression.java
@@ -1,4 +1,4 @@
-package org.hl7.fhir.dstu21.model;
+package org.hl7.fhir.dstu3.model;
/*
Copyright (c) 2011+, HL7, Inc.
@@ -39,8 +39,9 @@ import ca.uhn.fhir.model.api.annotation.SearchParamDefinition;
import ca.uhn.fhir.model.api.annotation.Child;
import ca.uhn.fhir.model.api.annotation.Description;
import ca.uhn.fhir.model.api.annotation.Block;
+
+import org.hl7.fhir.dstu3.exceptions.FHIRException;
import org.hl7.fhir.instance.model.api.*;
-import org.hl7.fhir.dstu21.exceptions.FHIRException;
/**
* A record of a clinical assessment performed to determine what problem(s) may affect the patient and before planning the treatments or management strategies that are best to manage a patient's condition. Assessments are often 1:1 with a clinical consultation / encounter, but this varies greatly depending on the clinical workflow. This resource is called "ClinicalImpression" rather than "ClinicalAssessment" to avoid confusion with the recording of assessment tools such as Apgar score.
*/
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/CodeSystem.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/CodeSystem.java
similarity index 97%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/CodeSystem.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/CodeSystem.java
index b3daeb75589..a1561978264 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/CodeSystem.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/CodeSystem.java
@@ -1,4 +1,4 @@
-package org.hl7.fhir.dstu21.model;
+package org.hl7.fhir.dstu3.model;
/*
Copyright (c) 2011+, HL7, Inc.
@@ -34,14 +34,16 @@ package org.hl7.fhir.dstu21.model;
import java.util.*;
import org.hl7.fhir.utilities.Utilities;
-import org.hl7.fhir.dstu21.model.Enumerations.*;
+
import ca.uhn.fhir.model.api.annotation.ResourceDef;
import ca.uhn.fhir.model.api.annotation.SearchParamDefinition;
import ca.uhn.fhir.model.api.annotation.Child;
import ca.uhn.fhir.model.api.annotation.Description;
import ca.uhn.fhir.model.api.annotation.Block;
+
+import org.hl7.fhir.dstu3.exceptions.FHIRException;
+import org.hl7.fhir.dstu3.model.Enumerations.*;
import org.hl7.fhir.instance.model.api.*;
-import org.hl7.fhir.dstu21.exceptions.FHIRException;
/**
* A code system specifies a set of codes drawn from one or more code systems.
*/
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/CodeType.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/CodeType.java
similarity index 95%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/CodeType.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/CodeType.java
index 0a30f5ad358..29ad0a8a7cf 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/CodeType.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/CodeType.java
@@ -26,7 +26,7 @@ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.
*/
-package org.hl7.fhir.dstu21.model;
+package org.hl7.fhir.dstu3.model;
import static org.apache.commons.lang3.StringUtils.defaultString;
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/CodeableConcept.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/CodeableConcept.java
similarity index 96%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/CodeableConcept.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/CodeableConcept.java
index 29d0663a7e1..e444ea5e74e 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/CodeableConcept.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/CodeableConcept.java
@@ -1,4 +1,4 @@
-package org.hl7.fhir.dstu21.model;
+package org.hl7.fhir.dstu3.model;
/*
Copyright (c) 2011+, HL7, Inc.
@@ -38,8 +38,9 @@ import ca.uhn.fhir.model.api.annotation.Child;
import ca.uhn.fhir.model.api.annotation.Description;
import ca.uhn.fhir.model.api.annotation.DatatypeDef;
import ca.uhn.fhir.model.api.annotation.Block;
+
+import org.hl7.fhir.dstu3.exceptions.FHIRException;
import org.hl7.fhir.instance.model.api.*;
-import org.hl7.fhir.dstu21.exceptions.FHIRException;
/**
* A concept that may be defined by a formal reference to a terminology or ontology or may be provided by text.
*/
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/Coding.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/Coding.java
similarity index 97%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/Coding.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/Coding.java
index 870ba7386de..6ce625afba1 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/Coding.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/Coding.java
@@ -1,4 +1,4 @@
-package org.hl7.fhir.dstu21.model;
+package org.hl7.fhir.dstu3.model;
/*
Copyright (c) 2011+, HL7, Inc.
@@ -38,8 +38,9 @@ import ca.uhn.fhir.model.api.annotation.Child;
import ca.uhn.fhir.model.api.annotation.Description;
import ca.uhn.fhir.model.api.annotation.DatatypeDef;
import ca.uhn.fhir.model.api.annotation.Block;
+
+import org.hl7.fhir.dstu3.exceptions.FHIRException;
import org.hl7.fhir.instance.model.api.*;
-import org.hl7.fhir.dstu21.exceptions.FHIRException;
/**
* A reference to a code defined by a terminology system.
*/
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/Communication.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/Communication.java
similarity index 97%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/Communication.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/Communication.java
index 9bb8a0dabe4..6b247727e0e 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/Communication.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/Communication.java
@@ -1,4 +1,4 @@
-package org.hl7.fhir.dstu21.model;
+package org.hl7.fhir.dstu3.model;
/*
Copyright (c) 2011+, HL7, Inc.
@@ -39,8 +39,9 @@ import ca.uhn.fhir.model.api.annotation.SearchParamDefinition;
import ca.uhn.fhir.model.api.annotation.Child;
import ca.uhn.fhir.model.api.annotation.Description;
import ca.uhn.fhir.model.api.annotation.Block;
+
+import org.hl7.fhir.dstu3.exceptions.FHIRException;
import org.hl7.fhir.instance.model.api.*;
-import org.hl7.fhir.dstu21.exceptions.FHIRException;
/**
* An occurrence of information being transmitted; e.g. an alert that was sent to a responsible provider, a public health agency was notified about a reportable condition.
*/
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/CommunicationRequest.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/CommunicationRequest.java
similarity index 97%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/CommunicationRequest.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/CommunicationRequest.java
index d2270e76c49..f2485a70dc8 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/CommunicationRequest.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/CommunicationRequest.java
@@ -1,4 +1,4 @@
-package org.hl7.fhir.dstu21.model;
+package org.hl7.fhir.dstu3.model;
/*
Copyright (c) 2011+, HL7, Inc.
@@ -39,8 +39,9 @@ import ca.uhn.fhir.model.api.annotation.SearchParamDefinition;
import ca.uhn.fhir.model.api.annotation.Child;
import ca.uhn.fhir.model.api.annotation.Description;
import ca.uhn.fhir.model.api.annotation.Block;
+
+import org.hl7.fhir.dstu3.exceptions.FHIRException;
import org.hl7.fhir.instance.model.api.*;
-import org.hl7.fhir.dstu21.exceptions.FHIRException;
/**
* A request to convey information; e.g. the CDS system proposes that an alert be sent to a responsible provider, the CDS system proposes that the public health agency be notified about a reportable condition.
*/
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/Comparison.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/Comparison.java
similarity index 94%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/Comparison.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/Comparison.java
index a092e8d4471..c3494d3ad8f 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/Comparison.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/Comparison.java
@@ -1,9 +1,9 @@
-package org.hl7.fhir.dstu21.model;
+package org.hl7.fhir.dstu3.model;
import java.util.List;
import org.apache.commons.lang3.NotImplementedException;
-import org.hl7.fhir.dstu21.exceptions.FHIRException;
+import org.hl7.fhir.dstu3.exceptions.FHIRException;
import org.hl7.fhir.utilities.Utilities;
/**
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/Composition.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/Composition.java
similarity index 97%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/Composition.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/Composition.java
index 37b1e12be40..1f024bf1263 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/Composition.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/Composition.java
@@ -1,4 +1,4 @@
-package org.hl7.fhir.dstu21.model;
+package org.hl7.fhir.dstu3.model;
/*
Copyright (c) 2011+, HL7, Inc.
@@ -39,8 +39,9 @@ import ca.uhn.fhir.model.api.annotation.SearchParamDefinition;
import ca.uhn.fhir.model.api.annotation.Child;
import ca.uhn.fhir.model.api.annotation.Description;
import ca.uhn.fhir.model.api.annotation.Block;
+
+import org.hl7.fhir.dstu3.exceptions.FHIRException;
import org.hl7.fhir.instance.model.api.*;
-import org.hl7.fhir.dstu21.exceptions.FHIRException;
/**
* A set of healthcare-related information that is assembled together into a single logical document that provides a single coherent statement of meaning, establishes its own context and that has clinical attestation with regard to who is making the statement. While a Composition defines the structure, it does not actually contain the content: rather the full content of a document is contained in a Bundle, of which the Composition is the first resource contained.
*/
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/ConceptMap.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/ConceptMap.java
similarity index 97%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/ConceptMap.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/ConceptMap.java
index 2faa3ee577e..c777f90cd12 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/ConceptMap.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/ConceptMap.java
@@ -1,4 +1,4 @@
-package org.hl7.fhir.dstu21.model;
+package org.hl7.fhir.dstu3.model;
/*
Copyright (c) 2011+, HL7, Inc.
@@ -34,14 +34,16 @@ package org.hl7.fhir.dstu21.model;
import java.util.*;
import org.hl7.fhir.utilities.Utilities;
-import org.hl7.fhir.dstu21.model.Enumerations.*;
+
import ca.uhn.fhir.model.api.annotation.ResourceDef;
import ca.uhn.fhir.model.api.annotation.SearchParamDefinition;
import ca.uhn.fhir.model.api.annotation.Child;
import ca.uhn.fhir.model.api.annotation.Description;
import ca.uhn.fhir.model.api.annotation.Block;
+
+import org.hl7.fhir.dstu3.exceptions.FHIRException;
+import org.hl7.fhir.dstu3.model.Enumerations.*;
import org.hl7.fhir.instance.model.api.*;
-import org.hl7.fhir.dstu21.exceptions.FHIRException;
/**
* A statement of relationships from one set of concepts to one or more other concepts - either code systems or data elements, or classes in class models.
*/
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/Condition.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/Condition.java
similarity index 97%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/Condition.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/Condition.java
index c9f8b66875a..d529b481566 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/Condition.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/Condition.java
@@ -1,4 +1,4 @@
-package org.hl7.fhir.dstu21.model;
+package org.hl7.fhir.dstu3.model;
/*
Copyright (c) 2011+, HL7, Inc.
@@ -39,8 +39,9 @@ import ca.uhn.fhir.model.api.annotation.SearchParamDefinition;
import ca.uhn.fhir.model.api.annotation.Child;
import ca.uhn.fhir.model.api.annotation.Description;
import ca.uhn.fhir.model.api.annotation.Block;
+
+import org.hl7.fhir.dstu3.exceptions.FHIRException;
import org.hl7.fhir.instance.model.api.*;
-import org.hl7.fhir.dstu21.exceptions.FHIRException;
/**
* Use to record detailed information about conditions, problems or diagnoses recognized by a clinician. There are many uses including: recording a diagnosis during an encounter; populating a problem list or a summary statement, such as a discharge summary.
*/
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/Configuration.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/Configuration.java
similarity index 96%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/Configuration.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/Configuration.java
index 863bc2d383c..355ae6a80a2 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/Configuration.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/Configuration.java
@@ -1,4 +1,4 @@
-package org.hl7.fhir.dstu21.model;
+package org.hl7.fhir.dstu3.model;
/*
Copyright (c) 2011+, HL7, Inc.
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/Conformance.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/Conformance.java
similarity index 97%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/Conformance.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/Conformance.java
index e7000bb2527..826016c5733 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/Conformance.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/Conformance.java
@@ -1,4 +1,4 @@
-package org.hl7.fhir.dstu21.model;
+package org.hl7.fhir.dstu3.model;
/*
Copyright (c) 2011+, HL7, Inc.
@@ -34,14 +34,16 @@ package org.hl7.fhir.dstu21.model;
import java.util.*;
import org.hl7.fhir.utilities.Utilities;
-import org.hl7.fhir.dstu21.model.Enumerations.*;
+
import ca.uhn.fhir.model.api.annotation.ResourceDef;
import ca.uhn.fhir.model.api.annotation.SearchParamDefinition;
import ca.uhn.fhir.model.api.annotation.Child;
import ca.uhn.fhir.model.api.annotation.Description;
import ca.uhn.fhir.model.api.annotation.Block;
+
+import org.hl7.fhir.dstu3.exceptions.FHIRException;
+import org.hl7.fhir.dstu3.model.Enumerations.*;
import org.hl7.fhir.instance.model.api.*;
-import org.hl7.fhir.dstu21.exceptions.FHIRException;
/**
* A conformance statement is a set of capabilities of a FHIR Server that may be used as a statement of actual server functionality or a statement of required or desired server implementation.
*/
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/Constants.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/Constants.java
similarity index 96%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/Constants.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/Constants.java
index 96973477aa0..ff413b275d1 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/Constants.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/Constants.java
@@ -1,4 +1,4 @@
-package org.hl7.fhir.dstu21.model;
+package org.hl7.fhir.dstu3.model;
/*
Copyright (c) 2011+, HL7, Inc.
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/ContactPoint.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/ContactPoint.java
similarity index 97%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/ContactPoint.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/ContactPoint.java
index 8cc38be161b..fc74c2b14c1 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/ContactPoint.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/ContactPoint.java
@@ -1,4 +1,4 @@
-package org.hl7.fhir.dstu21.model;
+package org.hl7.fhir.dstu3.model;
/*
Copyright (c) 2011+, HL7, Inc.
@@ -38,8 +38,9 @@ import ca.uhn.fhir.model.api.annotation.Child;
import ca.uhn.fhir.model.api.annotation.Description;
import ca.uhn.fhir.model.api.annotation.DatatypeDef;
import ca.uhn.fhir.model.api.annotation.Block;
+
+import org.hl7.fhir.dstu3.exceptions.FHIRException;
import org.hl7.fhir.instance.model.api.*;
-import org.hl7.fhir.dstu21.exceptions.FHIRException;
/**
* Details for all kinds of technology mediated contact points for a person or organization, including telephone, email, etc.
*/
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/Contract.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/Contract.java
similarity index 97%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/Contract.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/Contract.java
index 090217437d5..4364cbf764b 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/Contract.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/Contract.java
@@ -1,4 +1,4 @@
-package org.hl7.fhir.dstu21.model;
+package org.hl7.fhir.dstu3.model;
/*
Copyright (c) 2011+, HL7, Inc.
@@ -40,8 +40,9 @@ import ca.uhn.fhir.model.api.annotation.SearchParamDefinition;
import ca.uhn.fhir.model.api.annotation.Child;
import ca.uhn.fhir.model.api.annotation.Description;
import ca.uhn.fhir.model.api.annotation.Block;
+
+import org.hl7.fhir.dstu3.exceptions.FHIRException;
import org.hl7.fhir.instance.model.api.*;
-import org.hl7.fhir.dstu21.exceptions.FHIRException;
/**
* A formal agreement between parties regarding the conduct of business, exchange of information or other matters.
*/
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/Count.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/Count.java
similarity index 95%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/Count.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/Count.java
index 0c45c809c2d..98bb6a9ea07 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/Count.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/Count.java
@@ -1,4 +1,4 @@
-package org.hl7.fhir.dstu21.model;
+package org.hl7.fhir.dstu3.model;
/*
Copyright (c) 2011+, HL7, Inc.
@@ -33,8 +33,9 @@ package org.hl7.fhir.dstu21.model;
import ca.uhn.fhir.model.api.annotation.DatatypeDef;
import ca.uhn.fhir.model.api.annotation.Block;
+
+import org.hl7.fhir.dstu3.exceptions.FHIRException;
import org.hl7.fhir.instance.model.api.*;
-import org.hl7.fhir.dstu21.exceptions.FHIRException;
/**
* A measured amount (or an amount that can potentially be measured). Note that measured amounts include amounts that are not precisely quantified, including amounts involving arbitrary units and floating currencies.
*/
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/Coverage.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/Coverage.java
similarity index 97%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/Coverage.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/Coverage.java
index 2e0b157f067..4de2c65cca0 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/Coverage.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/Coverage.java
@@ -1,4 +1,4 @@
-package org.hl7.fhir.dstu21.model;
+package org.hl7.fhir.dstu3.model;
/*
Copyright (c) 2011+, HL7, Inc.
@@ -39,8 +39,9 @@ import ca.uhn.fhir.model.api.annotation.SearchParamDefinition;
import ca.uhn.fhir.model.api.annotation.Child;
import ca.uhn.fhir.model.api.annotation.Description;
import ca.uhn.fhir.model.api.annotation.Block;
+
+import org.hl7.fhir.dstu3.exceptions.FHIRException;
import org.hl7.fhir.instance.model.api.*;
-import org.hl7.fhir.dstu21.exceptions.FHIRException;
/**
* Financial instrument which may be used to pay for or reimburse health care products and services.
*/
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/DataElement.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/DataElement.java
similarity index 97%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/DataElement.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/DataElement.java
index 1f022622eaa..7cec4722596 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/DataElement.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/DataElement.java
@@ -1,4 +1,4 @@
-package org.hl7.fhir.dstu21.model;
+package org.hl7.fhir.dstu3.model;
/*
Copyright (c) 2011+, HL7, Inc.
@@ -34,14 +34,16 @@ package org.hl7.fhir.dstu21.model;
import java.util.*;
import org.hl7.fhir.utilities.Utilities;
-import org.hl7.fhir.dstu21.model.Enumerations.*;
+
import ca.uhn.fhir.model.api.annotation.ResourceDef;
import ca.uhn.fhir.model.api.annotation.SearchParamDefinition;
import ca.uhn.fhir.model.api.annotation.Child;
import ca.uhn.fhir.model.api.annotation.Description;
import ca.uhn.fhir.model.api.annotation.Block;
+
+import org.hl7.fhir.dstu3.exceptions.FHIRException;
+import org.hl7.fhir.dstu3.model.Enumerations.*;
import org.hl7.fhir.instance.model.api.*;
-import org.hl7.fhir.dstu21.exceptions.FHIRException;
/**
* The formal description of a single piece of information that can be gathered and reported.
*/
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/DateTimeType.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/DateTimeType.java
similarity index 96%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/DateTimeType.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/DateTimeType.java
index f5ae4faac0d..7860ef9b4ec 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/DateTimeType.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/DateTimeType.java
@@ -27,7 +27,7 @@ POSSIBILITY OF SUCH DAMAGE.
*/
-package org.hl7.fhir.dstu21.model;
+package org.hl7.fhir.dstu3.model;
import java.util.Calendar;
import java.util.Date;
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/DateType.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/DateType.java
similarity index 96%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/DateType.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/DateType.java
index e84076d1fbd..ae6b7eb2aa8 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/DateType.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/DateType.java
@@ -27,7 +27,7 @@ POSSIBILITY OF SUCH DAMAGE.
*/
-package org.hl7.fhir.dstu21.model;
+package org.hl7.fhir.dstu3.model;
import java.util.Calendar;
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/DecimalType.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/DecimalType.java
similarity index 95%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/DecimalType.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/DecimalType.java
index b64d8911509..daab918558d 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/DecimalType.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/DecimalType.java
@@ -29,7 +29,7 @@ POSSIBILITY OF SUCH DAMAGE.
/**
*
*/
-package org.hl7.fhir.dstu21.model;
+package org.hl7.fhir.dstu3.model;
import java.math.BigDecimal;
import java.math.MathContext;
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/DecisionSupportRule.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/DecisionSupportRule.java
similarity index 97%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/DecisionSupportRule.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/DecisionSupportRule.java
index c625ed3f3c1..0104e482c0f 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/DecisionSupportRule.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/DecisionSupportRule.java
@@ -1,4 +1,4 @@
-package org.hl7.fhir.dstu21.model;
+package org.hl7.fhir.dstu3.model;
/*
Copyright (c) 2011+, HL7, Inc.
@@ -39,8 +39,9 @@ import ca.uhn.fhir.model.api.annotation.SearchParamDefinition;
import ca.uhn.fhir.model.api.annotation.Child;
import ca.uhn.fhir.model.api.annotation.Description;
import ca.uhn.fhir.model.api.annotation.Block;
+
+import org.hl7.fhir.dstu3.exceptions.FHIRException;
import org.hl7.fhir.instance.model.api.*;
-import org.hl7.fhir.dstu21.exceptions.FHIRException;
/**
* This resource defines a decision support rule of the form [on Event] if Condition then Action.
*/
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/DecisionSupportServiceModule.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/DecisionSupportServiceModule.java
similarity index 98%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/DecisionSupportServiceModule.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/DecisionSupportServiceModule.java
index 3be5322e790..1cf1af48885 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/DecisionSupportServiceModule.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/DecisionSupportServiceModule.java
@@ -1,4 +1,4 @@
-package org.hl7.fhir.dstu21.model;
+package org.hl7.fhir.dstu3.model;
/*
Copyright (c) 2011+, HL7, Inc.
@@ -39,8 +39,9 @@ import ca.uhn.fhir.model.api.annotation.SearchParamDefinition;
import ca.uhn.fhir.model.api.annotation.Child;
import ca.uhn.fhir.model.api.annotation.Description;
import ca.uhn.fhir.model.api.annotation.Block;
+
+import org.hl7.fhir.dstu3.exceptions.FHIRException;
import org.hl7.fhir.instance.model.api.*;
-import org.hl7.fhir.dstu21.exceptions.FHIRException;
/**
* The DecisionSupportServiceModule resource describes decision support functionality that is available as a service.
*/
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/DetectedIssue.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/DetectedIssue.java
similarity index 97%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/DetectedIssue.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/DetectedIssue.java
index 2a3c15c7a51..be60edaa299 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/DetectedIssue.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/DetectedIssue.java
@@ -1,4 +1,4 @@
-package org.hl7.fhir.dstu21.model;
+package org.hl7.fhir.dstu3.model;
/*
Copyright (c) 2011+, HL7, Inc.
@@ -39,8 +39,9 @@ import ca.uhn.fhir.model.api.annotation.SearchParamDefinition;
import ca.uhn.fhir.model.api.annotation.Child;
import ca.uhn.fhir.model.api.annotation.Description;
import ca.uhn.fhir.model.api.annotation.Block;
+
+import org.hl7.fhir.dstu3.exceptions.FHIRException;
import org.hl7.fhir.instance.model.api.*;
-import org.hl7.fhir.dstu21.exceptions.FHIRException;
/**
* Indicates an actual or potential clinical issue with or between one or more active or proposed clinical actions for a patient; e.g. Drug-drug interaction, Ineffective treatment frequency, Procedure-condition conflict, etc.
*/
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/Device.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/Device.java
similarity index 97%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/Device.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/Device.java
index 860861b005a..50660ba7d9d 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/Device.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/Device.java
@@ -1,4 +1,4 @@
-package org.hl7.fhir.dstu21.model;
+package org.hl7.fhir.dstu3.model;
/*
Copyright (c) 2011+, HL7, Inc.
@@ -39,8 +39,9 @@ import ca.uhn.fhir.model.api.annotation.SearchParamDefinition;
import ca.uhn.fhir.model.api.annotation.Child;
import ca.uhn.fhir.model.api.annotation.Description;
import ca.uhn.fhir.model.api.annotation.Block;
+
+import org.hl7.fhir.dstu3.exceptions.FHIRException;
import org.hl7.fhir.instance.model.api.*;
-import org.hl7.fhir.dstu21.exceptions.FHIRException;
/**
* This resource identifies an instance of a manufactured item that is used in the provision of healthcare without being substantially changed through that activity. The device may be a medical or non-medical device. Medical devices includes durable (reusable) medical equipment, implantable devices, as well as disposable equipment used for diagnostic, treatment, and research for healthcare and public health. Non-medical devices may include items such as a machine, cellphone, computer, application, etc.
*/
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/DeviceComponent.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/DeviceComponent.java
similarity index 97%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/DeviceComponent.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/DeviceComponent.java
index 75db504e9fb..717ba620888 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/DeviceComponent.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/DeviceComponent.java
@@ -1,4 +1,4 @@
-package org.hl7.fhir.dstu21.model;
+package org.hl7.fhir.dstu3.model;
/*
Copyright (c) 2011+, HL7, Inc.
@@ -34,14 +34,16 @@ package org.hl7.fhir.dstu21.model;
import java.util.*;
import org.hl7.fhir.utilities.Utilities;
-import org.hl7.fhir.dstu21.model.Enumerations.*;
+
import ca.uhn.fhir.model.api.annotation.ResourceDef;
import ca.uhn.fhir.model.api.annotation.SearchParamDefinition;
import ca.uhn.fhir.model.api.annotation.Child;
import ca.uhn.fhir.model.api.annotation.Description;
import ca.uhn.fhir.model.api.annotation.Block;
+
+import org.hl7.fhir.dstu3.exceptions.FHIRException;
+import org.hl7.fhir.dstu3.model.Enumerations.*;
import org.hl7.fhir.instance.model.api.*;
-import org.hl7.fhir.dstu21.exceptions.FHIRException;
/**
* Describes the characteristics, operational status and capabilities of a medical-related component of a medical device.
*/
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/DeviceMetric.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/DeviceMetric.java
similarity index 97%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/DeviceMetric.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/DeviceMetric.java
index 4ab59f1369a..7e31b8cf4c8 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/DeviceMetric.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/DeviceMetric.java
@@ -1,4 +1,4 @@
-package org.hl7.fhir.dstu21.model;
+package org.hl7.fhir.dstu3.model;
/*
Copyright (c) 2011+, HL7, Inc.
@@ -39,8 +39,9 @@ import ca.uhn.fhir.model.api.annotation.SearchParamDefinition;
import ca.uhn.fhir.model.api.annotation.Child;
import ca.uhn.fhir.model.api.annotation.Description;
import ca.uhn.fhir.model.api.annotation.Block;
+
+import org.hl7.fhir.dstu3.exceptions.FHIRException;
import org.hl7.fhir.instance.model.api.*;
-import org.hl7.fhir.dstu21.exceptions.FHIRException;
/**
* Describes a measurement, calculation or setting capability of a medical device.
*/
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/DeviceUseRequest.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/DeviceUseRequest.java
similarity index 97%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/DeviceUseRequest.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/DeviceUseRequest.java
index 0cd31dc5a2f..fc6437389ec 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/DeviceUseRequest.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/DeviceUseRequest.java
@@ -1,4 +1,4 @@
-package org.hl7.fhir.dstu21.model;
+package org.hl7.fhir.dstu3.model;
/*
Copyright (c) 2011+, HL7, Inc.
@@ -39,8 +39,9 @@ import ca.uhn.fhir.model.api.annotation.SearchParamDefinition;
import ca.uhn.fhir.model.api.annotation.Child;
import ca.uhn.fhir.model.api.annotation.Description;
import ca.uhn.fhir.model.api.annotation.Block;
+
+import org.hl7.fhir.dstu3.exceptions.FHIRException;
import org.hl7.fhir.instance.model.api.*;
-import org.hl7.fhir.dstu21.exceptions.FHIRException;
/**
* Represents a request for a patient to employ a medical device. The device may be an implantable device, or an external assistive device, such as a walker.
*/
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/DeviceUseStatement.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/DeviceUseStatement.java
similarity index 97%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/DeviceUseStatement.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/DeviceUseStatement.java
index 7a1ba443ef4..5f242fd3681 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/DeviceUseStatement.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/DeviceUseStatement.java
@@ -1,4 +1,4 @@
-package org.hl7.fhir.dstu21.model;
+package org.hl7.fhir.dstu3.model;
/*
Copyright (c) 2011+, HL7, Inc.
@@ -39,8 +39,9 @@ import ca.uhn.fhir.model.api.annotation.SearchParamDefinition;
import ca.uhn.fhir.model.api.annotation.Child;
import ca.uhn.fhir.model.api.annotation.Description;
import ca.uhn.fhir.model.api.annotation.Block;
+
+import org.hl7.fhir.dstu3.exceptions.FHIRException;
import org.hl7.fhir.instance.model.api.*;
-import org.hl7.fhir.dstu21.exceptions.FHIRException;
/**
* A record of a device being used by a patient where the record is the result of a report from the patient or another clinician.
*/
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/DiagnosticOrder.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/DiagnosticOrder.java
similarity index 97%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/DiagnosticOrder.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/DiagnosticOrder.java
index 14694116550..465bdc7bf78 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/DiagnosticOrder.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/DiagnosticOrder.java
@@ -1,4 +1,4 @@
-package org.hl7.fhir.dstu21.model;
+package org.hl7.fhir.dstu3.model;
/*
Copyright (c) 2011+, HL7, Inc.
@@ -39,8 +39,9 @@ import ca.uhn.fhir.model.api.annotation.SearchParamDefinition;
import ca.uhn.fhir.model.api.annotation.Child;
import ca.uhn.fhir.model.api.annotation.Description;
import ca.uhn.fhir.model.api.annotation.Block;
+
+import org.hl7.fhir.dstu3.exceptions.FHIRException;
import org.hl7.fhir.instance.model.api.*;
-import org.hl7.fhir.dstu21.exceptions.FHIRException;
/**
* A record of a request for a diagnostic investigation service to be performed.
*/
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/DiagnosticReport.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/DiagnosticReport.java
similarity index 97%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/DiagnosticReport.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/DiagnosticReport.java
index 49ec49762ef..291478753f4 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/DiagnosticReport.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/DiagnosticReport.java
@@ -1,4 +1,4 @@
-package org.hl7.fhir.dstu21.model;
+package org.hl7.fhir.dstu3.model;
/*
Copyright (c) 2011+, HL7, Inc.
@@ -39,8 +39,9 @@ import ca.uhn.fhir.model.api.annotation.SearchParamDefinition;
import ca.uhn.fhir.model.api.annotation.Child;
import ca.uhn.fhir.model.api.annotation.Description;
import ca.uhn.fhir.model.api.annotation.Block;
+
+import org.hl7.fhir.dstu3.exceptions.FHIRException;
import org.hl7.fhir.instance.model.api.*;
-import org.hl7.fhir.dstu21.exceptions.FHIRException;
/**
* The findings and interpretation of diagnostic tests performed on patients, groups of patients, devices, and locations, and/or specimens derived from these. The report includes clinical context such as requesting and provider information, and some mix of atomic results, images, textual and coded interpretations, and formatted representation of diagnostic reports.
*/
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/Distance.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/Distance.java
similarity index 95%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/Distance.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/Distance.java
index e605bf90adb..ab2a1c8ca5f 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/Distance.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/Distance.java
@@ -1,4 +1,4 @@
-package org.hl7.fhir.dstu21.model;
+package org.hl7.fhir.dstu3.model;
/*
Copyright (c) 2011+, HL7, Inc.
@@ -33,8 +33,9 @@ package org.hl7.fhir.dstu21.model;
import ca.uhn.fhir.model.api.annotation.DatatypeDef;
import ca.uhn.fhir.model.api.annotation.Block;
+
+import org.hl7.fhir.dstu3.exceptions.FHIRException;
import org.hl7.fhir.instance.model.api.*;
-import org.hl7.fhir.dstu21.exceptions.FHIRException;
/**
* A measured amount (or an amount that can potentially be measured). Note that measured amounts include amounts that are not precisely quantified, including amounts involving arbitrary units and floating currencies.
*/
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/DocumentManifest.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/DocumentManifest.java
similarity index 97%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/DocumentManifest.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/DocumentManifest.java
index 6b05494bf07..b8db7b643e1 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/DocumentManifest.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/DocumentManifest.java
@@ -1,4 +1,4 @@
-package org.hl7.fhir.dstu21.model;
+package org.hl7.fhir.dstu3.model;
/*
Copyright (c) 2011+, HL7, Inc.
@@ -34,14 +34,16 @@ package org.hl7.fhir.dstu21.model;
import java.util.*;
import org.hl7.fhir.utilities.Utilities;
-import org.hl7.fhir.dstu21.model.Enumerations.*;
+
import ca.uhn.fhir.model.api.annotation.ResourceDef;
import ca.uhn.fhir.model.api.annotation.SearchParamDefinition;
import ca.uhn.fhir.model.api.annotation.Child;
import ca.uhn.fhir.model.api.annotation.Description;
import ca.uhn.fhir.model.api.annotation.Block;
+
+import org.hl7.fhir.dstu3.exceptions.FHIRException;
+import org.hl7.fhir.dstu3.model.Enumerations.*;
import org.hl7.fhir.instance.model.api.*;
-import org.hl7.fhir.dstu21.exceptions.FHIRException;
/**
* A manifest that defines a set of documents.
*/
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/DocumentReference.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/DocumentReference.java
similarity index 97%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/DocumentReference.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/DocumentReference.java
index 93289491fa5..0fb70bab49d 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/DocumentReference.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/DocumentReference.java
@@ -1,4 +1,4 @@
-package org.hl7.fhir.dstu21.model;
+package org.hl7.fhir.dstu3.model;
/*
Copyright (c) 2011+, HL7, Inc.
@@ -34,14 +34,16 @@ package org.hl7.fhir.dstu21.model;
import java.util.*;
import org.hl7.fhir.utilities.Utilities;
-import org.hl7.fhir.dstu21.model.Enumerations.*;
+
import ca.uhn.fhir.model.api.annotation.ResourceDef;
import ca.uhn.fhir.model.api.annotation.SearchParamDefinition;
import ca.uhn.fhir.model.api.annotation.Child;
import ca.uhn.fhir.model.api.annotation.Description;
import ca.uhn.fhir.model.api.annotation.Block;
+
+import org.hl7.fhir.dstu3.exceptions.FHIRException;
+import org.hl7.fhir.dstu3.model.Enumerations.*;
import org.hl7.fhir.instance.model.api.*;
-import org.hl7.fhir.dstu21.exceptions.FHIRException;
/**
* A reference to a document .
*/
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/DomainResource.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/DomainResource.java
similarity index 97%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/DomainResource.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/DomainResource.java
index e862cf48cab..53b1167d731 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/DomainResource.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/DomainResource.java
@@ -1,4 +1,4 @@
-package org.hl7.fhir.dstu21.model;
+package org.hl7.fhir.dstu3.model;
/*
Copyright (c) 2011+, HL7, Inc.
@@ -38,8 +38,9 @@ import ca.uhn.fhir.model.api.annotation.SearchParamDefinition;
import ca.uhn.fhir.model.api.annotation.Child;
import ca.uhn.fhir.model.api.annotation.Description;
import ca.uhn.fhir.model.api.annotation.Block;
+
+import org.hl7.fhir.dstu3.exceptions.FHIRException;
import org.hl7.fhir.instance.model.api.*;
-import org.hl7.fhir.dstu21.exceptions.FHIRException;
/**
* A resource that includes narrative, extensions, and contained resources.
*/
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/Duration.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/Duration.java
similarity index 95%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/Duration.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/Duration.java
index 3dff1882cbe..d9f1a0801a6 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/Duration.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/Duration.java
@@ -1,4 +1,4 @@
-package org.hl7.fhir.dstu21.model;
+package org.hl7.fhir.dstu3.model;
/*
Copyright (c) 2011+, HL7, Inc.
@@ -33,8 +33,9 @@ package org.hl7.fhir.dstu21.model;
import ca.uhn.fhir.model.api.annotation.DatatypeDef;
import ca.uhn.fhir.model.api.annotation.Block;
+
+import org.hl7.fhir.dstu3.exceptions.FHIRException;
import org.hl7.fhir.instance.model.api.*;
-import org.hl7.fhir.dstu21.exceptions.FHIRException;
/**
* A measured amount (or an amount that can potentially be measured). Note that measured amounts include amounts that are not precisely quantified, including amounts involving arbitrary units and floating currencies.
*/
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/Element.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/Element.java
similarity index 96%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/Element.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/Element.java
index bfa14ee2655..72e6d9cb7e3 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/Element.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/Element.java
@@ -1,4 +1,4 @@
-package org.hl7.fhir.dstu21.model;
+package org.hl7.fhir.dstu3.model;
/*
Copyright (c) 2011+, HL7, Inc.
@@ -38,8 +38,9 @@ import ca.uhn.fhir.model.api.annotation.Child;
import ca.uhn.fhir.model.api.annotation.Description;
import ca.uhn.fhir.model.api.annotation.DatatypeDef;
import ca.uhn.fhir.model.api.annotation.Block;
+
+import org.hl7.fhir.dstu3.exceptions.FHIRException;
import org.hl7.fhir.instance.model.api.*;
-import org.hl7.fhir.dstu21.exceptions.FHIRException;
/**
* Base definition for all elements in a resource.
*/
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/ElementDefinition.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/ElementDefinition.java
similarity index 97%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/ElementDefinition.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/ElementDefinition.java
index 880fcf8f9b0..08bc1f04e15 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/ElementDefinition.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/ElementDefinition.java
@@ -1,4 +1,4 @@
-package org.hl7.fhir.dstu21.model;
+package org.hl7.fhir.dstu3.model;
/*
Copyright (c) 2011+, HL7, Inc.
@@ -34,13 +34,15 @@ package org.hl7.fhir.dstu21.model;
import java.util.*;
import org.hl7.fhir.utilities.Utilities;
-import org.hl7.fhir.dstu21.model.Enumerations.*;
+
import ca.uhn.fhir.model.api.annotation.Child;
import ca.uhn.fhir.model.api.annotation.Description;
import ca.uhn.fhir.model.api.annotation.DatatypeDef;
import ca.uhn.fhir.model.api.annotation.Block;
+
+import org.hl7.fhir.dstu3.exceptions.FHIRException;
+import org.hl7.fhir.dstu3.model.Enumerations.*;
import org.hl7.fhir.instance.model.api.*;
-import org.hl7.fhir.dstu21.exceptions.FHIRException;
/**
* Captures constraints on each element within the resource, profile, or extension.
*/
@@ -2284,7 +2286,7 @@ public class ElementDefinition extends Type implements ICompositeType {
*/
@Child(name = "defaultValue", type = {}, order=16, min=0, max=1, modifier=false, summary=true)
@Description(shortDefinition="Specified value it missing from instance", formalDefinition="The value that should be used if there is no value stated in the instance (e.g. 'if not otherwise specified, the abstract is false')." )
- protected org.hl7.fhir.dstu21.model.Type defaultValue;
+ protected org.hl7.fhir.dstu3.model.Type defaultValue;
/**
* The Implicit meaning that is to be understood when this element is missing (e.g. 'when this element is missing, the period is ongoing'.
@@ -2298,35 +2300,35 @@ public class ElementDefinition extends Type implements ICompositeType {
*/
@Child(name = "fixed", type = {}, order=18, min=0, max=1, modifier=false, summary=true)
@Description(shortDefinition="Value must be exactly this", formalDefinition="Specifies a value that SHALL be exactly the value for this element in the instance. For purposes of comparison, non-significant whitespace is ignored, and all values must be an exact match (case and accent sensitive). Missing elements/attributes must also be missing." )
- protected org.hl7.fhir.dstu21.model.Type fixed;
+ protected org.hl7.fhir.dstu3.model.Type fixed;
/**
* Specifies a value that the value in the instance SHALL follow - that is, any value in the pattern must be found in the instance. Other additional values may be found too. This is effectively constraint by example. The values of elements present in the pattern must match exactly (case-sensitive, accent-sensitive, etc.).
*/
@Child(name = "pattern", type = {}, order=19, min=0, max=1, modifier=false, summary=true)
@Description(shortDefinition="Value must have at least these property values", formalDefinition="Specifies a value that the value in the instance SHALL follow - that is, any value in the pattern must be found in the instance. Other additional values may be found too. This is effectively constraint by example. The values of elements present in the pattern must match exactly (case-sensitive, accent-sensitive, etc.)." )
- protected org.hl7.fhir.dstu21.model.Type pattern;
+ protected org.hl7.fhir.dstu3.model.Type pattern;
/**
* A sample value for this element demonstrating the type of information that would typically be captured.
*/
@Child(name = "example", type = {}, order=20, min=0, max=1, modifier=false, summary=true)
@Description(shortDefinition="Example value: [as defined for type]", formalDefinition="A sample value for this element demonstrating the type of information that would typically be captured." )
- protected org.hl7.fhir.dstu21.model.Type example;
+ protected org.hl7.fhir.dstu3.model.Type example;
/**
* The minimum allowed value for the element. The value is inclusive. This is allowed for the types date, dateTime, instant, time, decimal, integer, and Quantity.
*/
@Child(name = "minValue", type = {}, order=21, min=0, max=1, modifier=false, summary=true)
@Description(shortDefinition="Minimum Allowed Value (for some types)", formalDefinition="The minimum allowed value for the element. The value is inclusive. This is allowed for the types date, dateTime, instant, time, decimal, integer, and Quantity." )
- protected org.hl7.fhir.dstu21.model.Type minValue;
+ protected org.hl7.fhir.dstu3.model.Type minValue;
/**
* The maximum allowed value for the element. The value is inclusive. This is allowed for the types date, dateTime, instant, time, decimal, integer, and Quantity.
*/
@Child(name = "maxValue", type = {}, order=22, min=0, max=1, modifier=false, summary=true)
@Description(shortDefinition="Maximum Allowed Value (for some types)", formalDefinition="The maximum allowed value for the element. The value is inclusive. This is allowed for the types date, dateTime, instant, time, decimal, integer, and Quantity." )
- protected org.hl7.fhir.dstu21.model.Type maxValue;
+ protected org.hl7.fhir.dstu3.model.Type maxValue;
/**
* Indicates the maximum length in characters that is permitted to be present in conformant instances and which is expected to be supported by conformant consumers that support the element.
@@ -3122,7 +3124,7 @@ public class ElementDefinition extends Type implements ICompositeType {
/**
* @return {@link #defaultValue} (The value that should be used if there is no value stated in the instance (e.g. 'if not otherwise specified, the abstract is false').)
*/
- public org.hl7.fhir.dstu21.model.Type getDefaultValue() {
+ public org.hl7.fhir.dstu3.model.Type getDefaultValue() {
return this.defaultValue;
}
@@ -3133,7 +3135,7 @@ public class ElementDefinition extends Type implements ICompositeType {
/**
* @param value {@link #defaultValue} (The value that should be used if there is no value stated in the instance (e.g. 'if not otherwise specified, the abstract is false').)
*/
- public ElementDefinition setDefaultValue(org.hl7.fhir.dstu21.model.Type value) {
+ public ElementDefinition setDefaultValue(org.hl7.fhir.dstu3.model.Type value) {
this.defaultValue = value;
return this;
}
@@ -3190,7 +3192,7 @@ public class ElementDefinition extends Type implements ICompositeType {
/**
* @return {@link #fixed} (Specifies a value that SHALL be exactly the value for this element in the instance. For purposes of comparison, non-significant whitespace is ignored, and all values must be an exact match (case and accent sensitive). Missing elements/attributes must also be missing.)
*/
- public org.hl7.fhir.dstu21.model.Type getFixed() {
+ public org.hl7.fhir.dstu3.model.Type getFixed() {
return this.fixed;
}
@@ -3201,7 +3203,7 @@ public class ElementDefinition extends Type implements ICompositeType {
/**
* @param value {@link #fixed} (Specifies a value that SHALL be exactly the value for this element in the instance. For purposes of comparison, non-significant whitespace is ignored, and all values must be an exact match (case and accent sensitive). Missing elements/attributes must also be missing.)
*/
- public ElementDefinition setFixed(org.hl7.fhir.dstu21.model.Type value) {
+ public ElementDefinition setFixed(org.hl7.fhir.dstu3.model.Type value) {
this.fixed = value;
return this;
}
@@ -3209,7 +3211,7 @@ public class ElementDefinition extends Type implements ICompositeType {
/**
* @return {@link #pattern} (Specifies a value that the value in the instance SHALL follow - that is, any value in the pattern must be found in the instance. Other additional values may be found too. This is effectively constraint by example. The values of elements present in the pattern must match exactly (case-sensitive, accent-sensitive, etc.).)
*/
- public org.hl7.fhir.dstu21.model.Type getPattern() {
+ public org.hl7.fhir.dstu3.model.Type getPattern() {
return this.pattern;
}
@@ -3220,7 +3222,7 @@ public class ElementDefinition extends Type implements ICompositeType {
/**
* @param value {@link #pattern} (Specifies a value that the value in the instance SHALL follow - that is, any value in the pattern must be found in the instance. Other additional values may be found too. This is effectively constraint by example. The values of elements present in the pattern must match exactly (case-sensitive, accent-sensitive, etc.).)
*/
- public ElementDefinition setPattern(org.hl7.fhir.dstu21.model.Type value) {
+ public ElementDefinition setPattern(org.hl7.fhir.dstu3.model.Type value) {
this.pattern = value;
return this;
}
@@ -3228,7 +3230,7 @@ public class ElementDefinition extends Type implements ICompositeType {
/**
* @return {@link #example} (A sample value for this element demonstrating the type of information that would typically be captured.)
*/
- public org.hl7.fhir.dstu21.model.Type getExample() {
+ public org.hl7.fhir.dstu3.model.Type getExample() {
return this.example;
}
@@ -3239,7 +3241,7 @@ public class ElementDefinition extends Type implements ICompositeType {
/**
* @param value {@link #example} (A sample value for this element demonstrating the type of information that would typically be captured.)
*/
- public ElementDefinition setExample(org.hl7.fhir.dstu21.model.Type value) {
+ public ElementDefinition setExample(org.hl7.fhir.dstu3.model.Type value) {
this.example = value;
return this;
}
@@ -3247,7 +3249,7 @@ public class ElementDefinition extends Type implements ICompositeType {
/**
* @return {@link #minValue} (The minimum allowed value for the element. The value is inclusive. This is allowed for the types date, dateTime, instant, time, decimal, integer, and Quantity.)
*/
- public org.hl7.fhir.dstu21.model.Type getMinValue() {
+ public org.hl7.fhir.dstu3.model.Type getMinValue() {
return this.minValue;
}
@@ -3258,7 +3260,7 @@ public class ElementDefinition extends Type implements ICompositeType {
/**
* @param value {@link #minValue} (The minimum allowed value for the element. The value is inclusive. This is allowed for the types date, dateTime, instant, time, decimal, integer, and Quantity.)
*/
- public ElementDefinition setMinValue(org.hl7.fhir.dstu21.model.Type value) {
+ public ElementDefinition setMinValue(org.hl7.fhir.dstu3.model.Type value) {
this.minValue = value;
return this;
}
@@ -3266,7 +3268,7 @@ public class ElementDefinition extends Type implements ICompositeType {
/**
* @return {@link #maxValue} (The maximum allowed value for the element. The value is inclusive. This is allowed for the types date, dateTime, instant, time, decimal, integer, and Quantity.)
*/
- public org.hl7.fhir.dstu21.model.Type getMaxValue() {
+ public org.hl7.fhir.dstu3.model.Type getMaxValue() {
return this.maxValue;
}
@@ -3277,7 +3279,7 @@ public class ElementDefinition extends Type implements ICompositeType {
/**
* @param value {@link #maxValue} (The maximum allowed value for the element. The value is inclusive. This is allowed for the types date, dateTime, instant, time, decimal, integer, and Quantity.)
*/
- public ElementDefinition setMaxValue(org.hl7.fhir.dstu21.model.Type value) {
+ public ElementDefinition setMaxValue(org.hl7.fhir.dstu3.model.Type value) {
this.maxValue = value;
return this;
}
@@ -3690,19 +3692,19 @@ public class ElementDefinition extends Type implements ICompositeType {
else if (name.equals("nameReference"))
this.nameReference = castToString(value); // StringType
else if (name.equals("defaultValue[x]"))
- this.defaultValue = (org.hl7.fhir.dstu21.model.Type) value; // org.hl7.fhir.dstu21.model.Type
+ this.defaultValue = (org.hl7.fhir.dstu3.model.Type) value; // org.hl7.fhir.dstu3.model.Type
else if (name.equals("meaningWhenMissing"))
this.meaningWhenMissing = castToMarkdown(value); // MarkdownType
else if (name.equals("fixed[x]"))
- this.fixed = (org.hl7.fhir.dstu21.model.Type) value; // org.hl7.fhir.dstu21.model.Type
+ this.fixed = (org.hl7.fhir.dstu3.model.Type) value; // org.hl7.fhir.dstu3.model.Type
else if (name.equals("pattern[x]"))
- this.pattern = (org.hl7.fhir.dstu21.model.Type) value; // org.hl7.fhir.dstu21.model.Type
+ this.pattern = (org.hl7.fhir.dstu3.model.Type) value; // org.hl7.fhir.dstu3.model.Type
else if (name.equals("example[x]"))
- this.example = (org.hl7.fhir.dstu21.model.Type) value; // org.hl7.fhir.dstu21.model.Type
+ this.example = (org.hl7.fhir.dstu3.model.Type) value; // org.hl7.fhir.dstu3.model.Type
else if (name.equals("minValue[x]"))
- this.minValue = (org.hl7.fhir.dstu21.model.Type) value; // org.hl7.fhir.dstu21.model.Type
+ this.minValue = (org.hl7.fhir.dstu3.model.Type) value; // org.hl7.fhir.dstu3.model.Type
else if (name.equals("maxValue[x]"))
- this.maxValue = (org.hl7.fhir.dstu21.model.Type) value; // org.hl7.fhir.dstu21.model.Type
+ this.maxValue = (org.hl7.fhir.dstu3.model.Type) value; // org.hl7.fhir.dstu3.model.Type
else if (name.equals("maxLength"))
this.maxLength = castToInteger(value); // IntegerType
else if (name.equals("condition"))
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/EligibilityRequest.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/EligibilityRequest.java
similarity index 97%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/EligibilityRequest.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/EligibilityRequest.java
index b6da49483a9..a852c8e2def 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/EligibilityRequest.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/EligibilityRequest.java
@@ -1,4 +1,4 @@
-package org.hl7.fhir.dstu21.model;
+package org.hl7.fhir.dstu3.model;
/*
Copyright (c) 2011+, HL7, Inc.
@@ -34,14 +34,16 @@ package org.hl7.fhir.dstu21.model;
import java.util.*;
import org.hl7.fhir.utilities.Utilities;
-import org.hl7.fhir.dstu21.model.Enumerations.*;
+
import ca.uhn.fhir.model.api.annotation.ResourceDef;
import ca.uhn.fhir.model.api.annotation.SearchParamDefinition;
import ca.uhn.fhir.model.api.annotation.Child;
import ca.uhn.fhir.model.api.annotation.Description;
import ca.uhn.fhir.model.api.annotation.Block;
+
+import org.hl7.fhir.dstu3.exceptions.FHIRException;
+import org.hl7.fhir.dstu3.model.Enumerations.*;
import org.hl7.fhir.instance.model.api.*;
-import org.hl7.fhir.dstu21.exceptions.FHIRException;
/**
* This resource provides the insurance eligibility details from the insurer regarding a specified coverage and optionally some class of service.
*/
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/EligibilityResponse.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/EligibilityResponse.java
similarity index 97%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/EligibilityResponse.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/EligibilityResponse.java
index 0b06ad68024..130efdbcd11 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/EligibilityResponse.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/EligibilityResponse.java
@@ -1,4 +1,4 @@
-package org.hl7.fhir.dstu21.model;
+package org.hl7.fhir.dstu3.model;
/*
Copyright (c) 2011+, HL7, Inc.
@@ -34,14 +34,16 @@ package org.hl7.fhir.dstu21.model;
import java.util.*;
import org.hl7.fhir.utilities.Utilities;
-import org.hl7.fhir.dstu21.model.Enumerations.*;
+
import ca.uhn.fhir.model.api.annotation.ResourceDef;
import ca.uhn.fhir.model.api.annotation.SearchParamDefinition;
import ca.uhn.fhir.model.api.annotation.Child;
import ca.uhn.fhir.model.api.annotation.Description;
import ca.uhn.fhir.model.api.annotation.Block;
+
+import org.hl7.fhir.dstu3.exceptions.FHIRException;
+import org.hl7.fhir.dstu3.model.Enumerations.*;
import org.hl7.fhir.instance.model.api.*;
-import org.hl7.fhir.dstu21.exceptions.FHIRException;
/**
* This resource provides eligibility and plan details from the processing of an Eligibility resource.
*/
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/Encounter.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/Encounter.java
similarity index 97%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/Encounter.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/Encounter.java
index 6cbe2b2612a..ea4293f2eff 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/Encounter.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/Encounter.java
@@ -1,4 +1,4 @@
-package org.hl7.fhir.dstu21.model;
+package org.hl7.fhir.dstu3.model;
/*
Copyright (c) 2011+, HL7, Inc.
@@ -39,8 +39,9 @@ import ca.uhn.fhir.model.api.annotation.SearchParamDefinition;
import ca.uhn.fhir.model.api.annotation.Child;
import ca.uhn.fhir.model.api.annotation.Description;
import ca.uhn.fhir.model.api.annotation.Block;
+
+import org.hl7.fhir.dstu3.exceptions.FHIRException;
import org.hl7.fhir.instance.model.api.*;
-import org.hl7.fhir.dstu21.exceptions.FHIRException;
/**
* An interaction between a patient and healthcare provider(s) for the purpose of providing healthcare service(s) or assessing the health status of a patient.
*/
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/EnrollmentRequest.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/EnrollmentRequest.java
similarity index 97%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/EnrollmentRequest.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/EnrollmentRequest.java
index a8733c1f211..32e85ab75cc 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/EnrollmentRequest.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/EnrollmentRequest.java
@@ -1,4 +1,4 @@
-package org.hl7.fhir.dstu21.model;
+package org.hl7.fhir.dstu3.model;
/*
Copyright (c) 2011+, HL7, Inc.
@@ -33,14 +33,15 @@ package org.hl7.fhir.dstu21.model;
import java.util.*;
-import org.hl7.fhir.dstu21.model.Enumerations.*;
import ca.uhn.fhir.model.api.annotation.ResourceDef;
import ca.uhn.fhir.model.api.annotation.SearchParamDefinition;
import ca.uhn.fhir.model.api.annotation.Child;
import ca.uhn.fhir.model.api.annotation.Description;
import ca.uhn.fhir.model.api.annotation.Block;
+
+import org.hl7.fhir.dstu3.exceptions.FHIRException;
+import org.hl7.fhir.dstu3.model.Enumerations.*;
import org.hl7.fhir.instance.model.api.*;
-import org.hl7.fhir.dstu21.exceptions.FHIRException;
/**
* This resource provides the insurance enrollment details to the insurer regarding a specified coverage.
*/
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/EnrollmentResponse.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/EnrollmentResponse.java
similarity index 97%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/EnrollmentResponse.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/EnrollmentResponse.java
index ece505fb33c..f9509e1d6d9 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/EnrollmentResponse.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/EnrollmentResponse.java
@@ -1,4 +1,4 @@
-package org.hl7.fhir.dstu21.model;
+package org.hl7.fhir.dstu3.model;
/*
Copyright (c) 2011+, HL7, Inc.
@@ -34,14 +34,16 @@ package org.hl7.fhir.dstu21.model;
import java.util.*;
import org.hl7.fhir.utilities.Utilities;
-import org.hl7.fhir.dstu21.model.Enumerations.*;
+
import ca.uhn.fhir.model.api.annotation.ResourceDef;
import ca.uhn.fhir.model.api.annotation.SearchParamDefinition;
import ca.uhn.fhir.model.api.annotation.Child;
import ca.uhn.fhir.model.api.annotation.Description;
import ca.uhn.fhir.model.api.annotation.Block;
+
+import org.hl7.fhir.dstu3.exceptions.FHIRException;
+import org.hl7.fhir.dstu3.model.Enumerations.*;
import org.hl7.fhir.instance.model.api.*;
-import org.hl7.fhir.dstu21.exceptions.FHIRException;
/**
* This resource provides enrollment and plan details from the processing of an Enrollment resource.
*/
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/EnumFactory.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/EnumFactory.java
similarity index 96%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/EnumFactory.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/EnumFactory.java
index 9195733bfd5..30f105cc6b4 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/EnumFactory.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/EnumFactory.java
@@ -1,4 +1,4 @@
-package org.hl7.fhir.dstu21.model;
+package org.hl7.fhir.dstu3.model;
import org.hl7.fhir.instance.model.api.IBaseEnumFactory;
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/Enumeration.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/Enumeration.java
similarity index 95%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/Enumeration.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/Enumeration.java
index b91b6fda585..9c871ff97d6 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/Enumeration.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/Enumeration.java
@@ -1,4 +1,4 @@
-package org.hl7.fhir.dstu21.model;
+package org.hl7.fhir.dstu3.model;
import org.hl7.fhir.instance.model.api.IBaseEnumeration;
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/Enumerations.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/Enumerations.java
similarity index 98%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/Enumerations.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/Enumerations.java
index d3b24bfa688..9faf19eb4b0 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/Enumerations.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/Enumerations.java
@@ -1,4 +1,6 @@
-package org.hl7.fhir.dstu21.model;
+package org.hl7.fhir.dstu3.model;
+
+import org.hl7.fhir.dstu3.exceptions.FHIRException;
/*
Copyright (c) 2011+, HL7, Inc.
@@ -33,7 +35,6 @@ package org.hl7.fhir.dstu21.model;
import org.hl7.fhir.instance.model.api.*;
-import org.hl7.fhir.dstu21.exceptions.FHIRException;
public class Enumerations {
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/EpisodeOfCare.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/EpisodeOfCare.java
similarity index 97%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/EpisodeOfCare.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/EpisodeOfCare.java
index 0ea1506ef67..fb60b681243 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/EpisodeOfCare.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/EpisodeOfCare.java
@@ -1,4 +1,4 @@
-package org.hl7.fhir.dstu21.model;
+package org.hl7.fhir.dstu3.model;
/*
Copyright (c) 2011+, HL7, Inc.
@@ -39,8 +39,9 @@ import ca.uhn.fhir.model.api.annotation.SearchParamDefinition;
import ca.uhn.fhir.model.api.annotation.Child;
import ca.uhn.fhir.model.api.annotation.Description;
import ca.uhn.fhir.model.api.annotation.Block;
+
+import org.hl7.fhir.dstu3.exceptions.FHIRException;
import org.hl7.fhir.instance.model.api.*;
-import org.hl7.fhir.dstu21.exceptions.FHIRException;
/**
* An association between a patient and an organization / healthcare provider(s) during which time encounters may occur. The managing organization assumes a level of responsibility for the patient during this time.
*/
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/ExpansionProfile.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/ExpansionProfile.java
similarity index 97%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/ExpansionProfile.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/ExpansionProfile.java
index 573d8bf1cb2..01816286356 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/ExpansionProfile.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/ExpansionProfile.java
@@ -1,4 +1,4 @@
-package org.hl7.fhir.dstu21.model;
+package org.hl7.fhir.dstu3.model;
/*
Copyright (c) 2011+, HL7, Inc.
@@ -34,14 +34,16 @@ package org.hl7.fhir.dstu21.model;
import java.util.*;
import org.hl7.fhir.utilities.Utilities;
-import org.hl7.fhir.dstu21.model.Enumerations.*;
+
import ca.uhn.fhir.model.api.annotation.ResourceDef;
import ca.uhn.fhir.model.api.annotation.SearchParamDefinition;
import ca.uhn.fhir.model.api.annotation.Child;
import ca.uhn.fhir.model.api.annotation.Description;
import ca.uhn.fhir.model.api.annotation.Block;
+
+import org.hl7.fhir.dstu3.exceptions.FHIRException;
+import org.hl7.fhir.dstu3.model.Enumerations.*;
import org.hl7.fhir.instance.model.api.*;
-import org.hl7.fhir.dstu21.exceptions.FHIRException;
/**
* Resource to define constraints on the Expansion of a FHIR ValueSet.
*/
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/ExplanationOfBenefit.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/ExplanationOfBenefit.java
similarity index 97%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/ExplanationOfBenefit.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/ExplanationOfBenefit.java
index 5415a11b486..cd43aee2a20 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/ExplanationOfBenefit.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/ExplanationOfBenefit.java
@@ -1,4 +1,4 @@
-package org.hl7.fhir.dstu21.model;
+package org.hl7.fhir.dstu3.model;
/*
Copyright (c) 2011+, HL7, Inc.
@@ -35,14 +35,16 @@ import java.util.*;
import java.math.*;
import org.hl7.fhir.utilities.Utilities;
-import org.hl7.fhir.dstu21.model.Enumerations.*;
+
import ca.uhn.fhir.model.api.annotation.ResourceDef;
import ca.uhn.fhir.model.api.annotation.SearchParamDefinition;
import ca.uhn.fhir.model.api.annotation.Child;
import ca.uhn.fhir.model.api.annotation.Description;
import ca.uhn.fhir.model.api.annotation.Block;
+
+import org.hl7.fhir.dstu3.exceptions.FHIRException;
+import org.hl7.fhir.dstu3.model.Enumerations.*;
import org.hl7.fhir.instance.model.api.*;
-import org.hl7.fhir.dstu21.exceptions.FHIRException;
/**
* This resource provides: the claim details; adjudication details from the processing of a Claim; and optionally account balance information, for informing the subscriber of the benefits provided.
*/
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/ExpressionNode.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/ExpressionNode.java
similarity index 95%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/ExpressionNode.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/ExpressionNode.java
index 94fe0166db6..1b51a61e69b 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/ExpressionNode.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/ExpressionNode.java
@@ -1,4 +1,4 @@
-package org.hl7.fhir.dstu21.model;
+package org.hl7.fhir.dstu3.model;
import java.util.ArrayList;
import java.util.List;
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/Extension.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/Extension.java
similarity index 94%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/Extension.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/Extension.java
index c00faee831f..6598ebb5cb2 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/Extension.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/Extension.java
@@ -1,4 +1,4 @@
-package org.hl7.fhir.dstu21.model;
+package org.hl7.fhir.dstu3.model;
/*
Copyright (c) 2011+, HL7, Inc.
@@ -38,8 +38,9 @@ import ca.uhn.fhir.model.api.annotation.Child;
import ca.uhn.fhir.model.api.annotation.Description;
import ca.uhn.fhir.model.api.annotation.DatatypeDef;
import ca.uhn.fhir.model.api.annotation.Block;
+
+import org.hl7.fhir.dstu3.exceptions.FHIRException;
import org.hl7.fhir.instance.model.api.*;
-import org.hl7.fhir.dstu21.exceptions.FHIRException;
/**
* Optional Extensions Element - found in all resources.
*/
@@ -58,7 +59,7 @@ public class Extension extends BaseExtension implements IBaseExtension {
+
+ public Additionalmaterials fromCode(String codeString) throws IllegalArgumentException {
+ if (codeString == null || "".equals(codeString))
+ return null;
+ if ("xray".equals(codeString))
+ return Additionalmaterials.XRAY;
+ if ("image".equals(codeString))
+ return Additionalmaterials.IMAGE;
+ if ("email".equals(codeString))
+ return Additionalmaterials.EMAIL;
+ if ("model".equals(codeString))
+ return Additionalmaterials.MODEL;
+ if ("document".equals(codeString))
+ return Additionalmaterials.DOCUMENT;
+ if ("other".equals(codeString))
+ return Additionalmaterials.OTHER;
+ throw new IllegalArgumentException("Unknown Additionalmaterials code '"+codeString+"'");
+ }
+
+ public String toCode(Additionalmaterials code) {
+ if (code == Additionalmaterials.XRAY)
+ return "xray";
+ if (code == Additionalmaterials.IMAGE)
+ return "image";
+ if (code == Additionalmaterials.EMAIL)
+ return "email";
+ if (code == Additionalmaterials.MODEL)
+ return "model";
+ if (code == Additionalmaterials.DOCUMENT)
+ return "document";
+ if (code == Additionalmaterials.OTHER)
+ return "other";
+ return "?";
+ }
+
+ public String toSystem(Additionalmaterials code) {
+ return code.getSystem();
+ }
+
+}
+
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/Adjudication.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/Adjudication.java
similarity index 93%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/Adjudication.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/Adjudication.java
index e1b22b26654..33d5c35a8bf 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/Adjudication.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/Adjudication.java
@@ -1,6 +1,6 @@
-package org.hl7.fhir.dstu21.model.valuesets;
+package org.hl7.fhir.dstu3.model.valuesets;
-import org.hl7.fhir.dstu21.exceptions.FHIRException;
+import org.hl7.fhir.dstu3.exceptions.FHIRException;
public enum Adjudication {
diff --git a/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/AdjudicationEnumFactory.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/AdjudicationEnumFactory.java
new file mode 100644
index 00000000000..107742bffa4
--- /dev/null
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/AdjudicationEnumFactory.java
@@ -0,0 +1,50 @@
+package org.hl7.fhir.dstu3.model.valuesets;
+
+import org.hl7.fhir.dstu3.model.EnumFactory;
+
+public class AdjudicationEnumFactory implements EnumFactory {
+
+ public Adjudication fromCode(String codeString) throws IllegalArgumentException {
+ if (codeString == null || "".equals(codeString))
+ return null;
+ if ("total".equals(codeString))
+ return Adjudication.TOTAL;
+ if ("copay".equals(codeString))
+ return Adjudication.COPAY;
+ if ("eligible".equals(codeString))
+ return Adjudication.ELIGIBLE;
+ if ("deductible".equals(codeString))
+ return Adjudication.DEDUCTIBLE;
+ if ("eligpercent".equals(codeString))
+ return Adjudication.ELIGPERCENT;
+ if ("tax".equals(codeString))
+ return Adjudication.TAX;
+ if ("benefit".equals(codeString))
+ return Adjudication.BENEFIT;
+ throw new IllegalArgumentException("Unknown Adjudication code '"+codeString+"'");
+ }
+
+ public String toCode(Adjudication code) {
+ if (code == Adjudication.TOTAL)
+ return "total";
+ if (code == Adjudication.COPAY)
+ return "copay";
+ if (code == Adjudication.ELIGIBLE)
+ return "eligible";
+ if (code == Adjudication.DEDUCTIBLE)
+ return "deductible";
+ if (code == Adjudication.ELIGPERCENT)
+ return "eligpercent";
+ if (code == Adjudication.TAX)
+ return "tax";
+ if (code == Adjudication.BENEFIT)
+ return "benefit";
+ return "?";
+ }
+
+ public String toSystem(Adjudication code) {
+ return code.getSystem();
+ }
+
+}
+
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/AdjudicationError.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/AdjudicationError.java
similarity index 90%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/AdjudicationError.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/AdjudicationError.java
index ffa198f5c05..ed81fc3c13e 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/AdjudicationError.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/AdjudicationError.java
@@ -1,6 +1,6 @@
-package org.hl7.fhir.dstu21.model.valuesets;
+package org.hl7.fhir.dstu3.model.valuesets;
-import org.hl7.fhir.dstu21.exceptions.FHIRException;
+import org.hl7.fhir.dstu3.exceptions.FHIRException;
public enum AdjudicationError {
diff --git a/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/AdjudicationErrorEnumFactory.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/AdjudicationErrorEnumFactory.java
new file mode 100644
index 00000000000..dacc627157c
--- /dev/null
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/AdjudicationErrorEnumFactory.java
@@ -0,0 +1,30 @@
+package org.hl7.fhir.dstu3.model.valuesets;
+
+import org.hl7.fhir.dstu3.model.EnumFactory;
+
+public class AdjudicationErrorEnumFactory implements EnumFactory {
+
+ public AdjudicationError fromCode(String codeString) throws IllegalArgumentException {
+ if (codeString == null || "".equals(codeString))
+ return null;
+ if ("a001".equals(codeString))
+ return AdjudicationError.A001;
+ if ("a002".equals(codeString))
+ return AdjudicationError.A002;
+ throw new IllegalArgumentException("Unknown AdjudicationError code '"+codeString+"'");
+ }
+
+ public String toCode(AdjudicationError code) {
+ if (code == AdjudicationError.A001)
+ return "a001";
+ if (code == AdjudicationError.A002)
+ return "a002";
+ return "?";
+ }
+
+ public String toSystem(AdjudicationError code) {
+ return code.getSystem();
+ }
+
+}
+
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/AdjudicationReason.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/AdjudicationReason.java
similarity index 90%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/AdjudicationReason.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/AdjudicationReason.java
index db5027fb8f0..9f6b27b0f95 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/AdjudicationReason.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/AdjudicationReason.java
@@ -1,6 +1,6 @@
-package org.hl7.fhir.dstu21.model.valuesets;
+package org.hl7.fhir.dstu3.model.valuesets;
-import org.hl7.fhir.dstu21.exceptions.FHIRException;
+import org.hl7.fhir.dstu3.exceptions.FHIRException;
public enum AdjudicationReason {
diff --git a/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/AdjudicationReasonEnumFactory.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/AdjudicationReasonEnumFactory.java
new file mode 100644
index 00000000000..478ae52c91d
--- /dev/null
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/AdjudicationReasonEnumFactory.java
@@ -0,0 +1,30 @@
+package org.hl7.fhir.dstu3.model.valuesets;
+
+import org.hl7.fhir.dstu3.model.EnumFactory;
+
+public class AdjudicationReasonEnumFactory implements EnumFactory {
+
+ public AdjudicationReason fromCode(String codeString) throws IllegalArgumentException {
+ if (codeString == null || "".equals(codeString))
+ return null;
+ if ("ar001".equals(codeString))
+ return AdjudicationReason.AR001;
+ if ("ar002".equals(codeString))
+ return AdjudicationReason.AR002;
+ throw new IllegalArgumentException("Unknown AdjudicationReason code '"+codeString+"'");
+ }
+
+ public String toCode(AdjudicationReason code) {
+ if (code == AdjudicationReason.AR001)
+ return "ar001";
+ if (code == AdjudicationReason.AR002)
+ return "ar002";
+ return "?";
+ }
+
+ public String toSystem(AdjudicationReason code) {
+ return code.getSystem();
+ }
+
+}
+
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/AnimalBreeds.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/AnimalBreeds.java
similarity index 91%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/AnimalBreeds.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/AnimalBreeds.java
index a7a224c934c..7d65f79420d 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/AnimalBreeds.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/AnimalBreeds.java
@@ -1,6 +1,6 @@
-package org.hl7.fhir.dstu21.model.valuesets;
+package org.hl7.fhir.dstu3.model.valuesets;
-import org.hl7.fhir.dstu21.exceptions.FHIRException;
+import org.hl7.fhir.dstu3.exceptions.FHIRException;
public enum AnimalBreeds {
diff --git a/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/AnimalBreedsEnumFactory.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/AnimalBreedsEnumFactory.java
new file mode 100644
index 00000000000..86d9e2c61a0
--- /dev/null
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/AnimalBreedsEnumFactory.java
@@ -0,0 +1,38 @@
+package org.hl7.fhir.dstu3.model.valuesets;
+
+import org.hl7.fhir.dstu3.model.EnumFactory;
+
+public class AnimalBreedsEnumFactory implements EnumFactory {
+
+ public AnimalBreeds fromCode(String codeString) throws IllegalArgumentException {
+ if (codeString == null || "".equals(codeString))
+ return null;
+ if ("gsd".equals(codeString))
+ return AnimalBreeds.GSD;
+ if ("irt".equals(codeString))
+ return AnimalBreeds.IRT;
+ if ("tibmas".equals(codeString))
+ return AnimalBreeds.TIBMAS;
+ if ("gret".equals(codeString))
+ return AnimalBreeds.GRET;
+ throw new IllegalArgumentException("Unknown AnimalBreeds code '"+codeString+"'");
+ }
+
+ public String toCode(AnimalBreeds code) {
+ if (code == AnimalBreeds.GSD)
+ return "gsd";
+ if (code == AnimalBreeds.IRT)
+ return "irt";
+ if (code == AnimalBreeds.TIBMAS)
+ return "tibmas";
+ if (code == AnimalBreeds.GRET)
+ return "gret";
+ return "?";
+ }
+
+ public String toSystem(AnimalBreeds code) {
+ return code.getSystem();
+ }
+
+}
+
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/AnimalGenderstatus.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/AnimalGenderstatus.java
similarity index 92%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/AnimalGenderstatus.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/AnimalGenderstatus.java
index c04a7f588e9..c9a7bfd8d6d 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/AnimalGenderstatus.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/AnimalGenderstatus.java
@@ -1,6 +1,6 @@
-package org.hl7.fhir.dstu21.model.valuesets;
+package org.hl7.fhir.dstu3.model.valuesets;
-import org.hl7.fhir.dstu21.exceptions.FHIRException;
+import org.hl7.fhir.dstu3.exceptions.FHIRException;
public enum AnimalGenderstatus {
diff --git a/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/AnimalGenderstatusEnumFactory.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/AnimalGenderstatusEnumFactory.java
new file mode 100644
index 00000000000..e667f8e6763
--- /dev/null
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/AnimalGenderstatusEnumFactory.java
@@ -0,0 +1,34 @@
+package org.hl7.fhir.dstu3.model.valuesets;
+
+import org.hl7.fhir.dstu3.model.EnumFactory;
+
+public class AnimalGenderstatusEnumFactory implements EnumFactory {
+
+ public AnimalGenderstatus fromCode(String codeString) throws IllegalArgumentException {
+ if (codeString == null || "".equals(codeString))
+ return null;
+ if ("neutered".equals(codeString))
+ return AnimalGenderstatus.NEUTERED;
+ if ("intact".equals(codeString))
+ return AnimalGenderstatus.INTACT;
+ if ("unknown".equals(codeString))
+ return AnimalGenderstatus.UNKNOWN;
+ throw new IllegalArgumentException("Unknown AnimalGenderstatus code '"+codeString+"'");
+ }
+
+ public String toCode(AnimalGenderstatus code) {
+ if (code == AnimalGenderstatus.NEUTERED)
+ return "neutered";
+ if (code == AnimalGenderstatus.INTACT)
+ return "intact";
+ if (code == AnimalGenderstatus.UNKNOWN)
+ return "unknown";
+ return "?";
+ }
+
+ public String toSystem(AnimalGenderstatus code) {
+ return code.getSystem();
+ }
+
+}
+
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/AnimalSpecies.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/AnimalSpecies.java
similarity index 91%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/AnimalSpecies.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/AnimalSpecies.java
index 561e6e1e589..cf42e38176c 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/AnimalSpecies.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/AnimalSpecies.java
@@ -1,6 +1,6 @@
-package org.hl7.fhir.dstu21.model.valuesets;
+package org.hl7.fhir.dstu3.model.valuesets;
-import org.hl7.fhir.dstu21.exceptions.FHIRException;
+import org.hl7.fhir.dstu3.exceptions.FHIRException;
public enum AnimalSpecies {
diff --git a/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/AnimalSpeciesEnumFactory.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/AnimalSpeciesEnumFactory.java
new file mode 100644
index 00000000000..5151bfeab01
--- /dev/null
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/AnimalSpeciesEnumFactory.java
@@ -0,0 +1,34 @@
+package org.hl7.fhir.dstu3.model.valuesets;
+
+import org.hl7.fhir.dstu3.model.EnumFactory;
+
+public class AnimalSpeciesEnumFactory implements EnumFactory {
+
+ public AnimalSpecies fromCode(String codeString) throws IllegalArgumentException {
+ if (codeString == null || "".equals(codeString))
+ return null;
+ if ("canislf".equals(codeString))
+ return AnimalSpecies.CANISLF;
+ if ("ovisa".equals(codeString))
+ return AnimalSpecies.OVISA;
+ if ("serinuscd".equals(codeString))
+ return AnimalSpecies.SERINUSCD;
+ throw new IllegalArgumentException("Unknown AnimalSpecies code '"+codeString+"'");
+ }
+
+ public String toCode(AnimalSpecies code) {
+ if (code == AnimalSpecies.CANISLF)
+ return "canislf";
+ if (code == AnimalSpecies.OVISA)
+ return "ovisa";
+ if (code == AnimalSpecies.SERINUSCD)
+ return "serinuscd";
+ return "?";
+ }
+
+ public String toSystem(AnimalSpecies code) {
+ return code.getSystem();
+ }
+
+}
+
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/AnzscoOccupations.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/AnzscoOccupations.java
similarity index 97%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/AnzscoOccupations.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/AnzscoOccupations.java
index 4e683d9cb25..16ee85c4f43 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/AnzscoOccupations.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/AnzscoOccupations.java
@@ -1,6 +1,6 @@
-package org.hl7.fhir.dstu21.model.valuesets;
+package org.hl7.fhir.dstu3.model.valuesets;
-import org.hl7.fhir.dstu21.exceptions.FHIRException;
+import org.hl7.fhir.dstu3.exceptions.FHIRException;
public enum AnzscoOccupations {
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/AnzscoOccupationsEnumFactory.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/AnzscoOccupationsEnumFactory.java
similarity index 96%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/AnzscoOccupationsEnumFactory.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/AnzscoOccupationsEnumFactory.java
index d29ee684723..4490d99cb60 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/AnzscoOccupationsEnumFactory.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/AnzscoOccupationsEnumFactory.java
@@ -1,38 +1,6 @@
-package org.hl7.fhir.dstu21.model.valuesets;
+package org.hl7.fhir.dstu3.model.valuesets;
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
+import org.hl7.fhir.dstu3.model.EnumFactory;
public class AnzscoOccupationsEnumFactory implements EnumFactory {
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/AuditSourceType.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/AuditSourceType.java
similarity index 94%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/AuditSourceType.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/AuditSourceType.java
index 532233cc222..40b0a3048ee 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/AuditSourceType.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/AuditSourceType.java
@@ -1,6 +1,6 @@
-package org.hl7.fhir.dstu21.model.valuesets;
+package org.hl7.fhir.dstu3.model.valuesets;
-import org.hl7.fhir.dstu21.exceptions.FHIRException;
+import org.hl7.fhir.dstu3.exceptions.FHIRException;
public enum AuditSourceType {
diff --git a/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/AuditSourceTypeEnumFactory.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/AuditSourceTypeEnumFactory.java
new file mode 100644
index 00000000000..b371acc2d9d
--- /dev/null
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/AuditSourceTypeEnumFactory.java
@@ -0,0 +1,58 @@
+package org.hl7.fhir.dstu3.model.valuesets;
+
+import org.hl7.fhir.dstu3.model.EnumFactory;
+
+public class AuditSourceTypeEnumFactory implements EnumFactory {
+
+ public AuditSourceType fromCode(String codeString) throws IllegalArgumentException {
+ if (codeString == null || "".equals(codeString))
+ return null;
+ if ("1".equals(codeString))
+ return AuditSourceType._1;
+ if ("2".equals(codeString))
+ return AuditSourceType._2;
+ if ("3".equals(codeString))
+ return AuditSourceType._3;
+ if ("4".equals(codeString))
+ return AuditSourceType._4;
+ if ("5".equals(codeString))
+ return AuditSourceType._5;
+ if ("6".equals(codeString))
+ return AuditSourceType._6;
+ if ("7".equals(codeString))
+ return AuditSourceType._7;
+ if ("8".equals(codeString))
+ return AuditSourceType._8;
+ if ("9".equals(codeString))
+ return AuditSourceType._9;
+ throw new IllegalArgumentException("Unknown AuditSourceType code '"+codeString+"'");
+ }
+
+ public String toCode(AuditSourceType code) {
+ if (code == AuditSourceType._1)
+ return "1";
+ if (code == AuditSourceType._2)
+ return "2";
+ if (code == AuditSourceType._3)
+ return "3";
+ if (code == AuditSourceType._4)
+ return "4";
+ if (code == AuditSourceType._5)
+ return "5";
+ if (code == AuditSourceType._6)
+ return "6";
+ if (code == AuditSourceType._7)
+ return "7";
+ if (code == AuditSourceType._8)
+ return "8";
+ if (code == AuditSourceType._9)
+ return "9";
+ return "?";
+ }
+
+ public String toSystem(AuditSourceType code) {
+ return code.getSystem();
+ }
+
+}
+
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/BasicResourceType.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/BasicResourceType.java
similarity index 96%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/BasicResourceType.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/BasicResourceType.java
index 09300c6ef5b..0230903f923 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/BasicResourceType.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/BasicResourceType.java
@@ -1,6 +1,6 @@
-package org.hl7.fhir.dstu21.model.valuesets;
+package org.hl7.fhir.dstu3.model.valuesets;
-import org.hl7.fhir.dstu21.exceptions.FHIRException;
+import org.hl7.fhir.dstu3.exceptions.FHIRException;
public enum BasicResourceType {
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/BasicResourceTypeEnumFactory.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/BasicResourceTypeEnumFactory.java
similarity index 61%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/BasicResourceTypeEnumFactory.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/BasicResourceTypeEnumFactory.java
index 51b5e7d3f62..2703bdc2f30 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/BasicResourceTypeEnumFactory.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/BasicResourceTypeEnumFactory.java
@@ -1,38 +1,6 @@
-package org.hl7.fhir.dstu21.model.valuesets;
+package org.hl7.fhir.dstu3.model.valuesets;
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
+import org.hl7.fhir.dstu3.model.EnumFactory;
public class BasicResourceTypeEnumFactory implements EnumFactory {
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/BenefitCategory.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/BenefitCategory.java
similarity index 92%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/BenefitCategory.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/BenefitCategory.java
index 4805736a453..49dedecb69b 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/BenefitCategory.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/BenefitCategory.java
@@ -1,6 +1,6 @@
-package org.hl7.fhir.dstu21.model.valuesets;
+package org.hl7.fhir.dstu3.model.valuesets;
-import org.hl7.fhir.dstu21.exceptions.FHIRException;
+import org.hl7.fhir.dstu3.exceptions.FHIRException;
public enum BenefitCategory {
diff --git a/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/BenefitCategoryEnumFactory.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/BenefitCategoryEnumFactory.java
new file mode 100644
index 00000000000..03e784812db
--- /dev/null
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/BenefitCategoryEnumFactory.java
@@ -0,0 +1,38 @@
+package org.hl7.fhir.dstu3.model.valuesets;
+
+import org.hl7.fhir.dstu3.model.EnumFactory;
+
+public class BenefitCategoryEnumFactory implements EnumFactory {
+
+ public BenefitCategory fromCode(String codeString) throws IllegalArgumentException {
+ if (codeString == null || "".equals(codeString))
+ return null;
+ if ("oral".equals(codeString))
+ return BenefitCategory.ORAL;
+ if ("vision".equals(codeString))
+ return BenefitCategory.VISION;
+ if ("medical".equals(codeString))
+ return BenefitCategory.MEDICAL;
+ if ("pharmacy".equals(codeString))
+ return BenefitCategory.PHARMACY;
+ throw new IllegalArgumentException("Unknown BenefitCategory code '"+codeString+"'");
+ }
+
+ public String toCode(BenefitCategory code) {
+ if (code == BenefitCategory.ORAL)
+ return "oral";
+ if (code == BenefitCategory.VISION)
+ return "vision";
+ if (code == BenefitCategory.MEDICAL)
+ return "medical";
+ if (code == BenefitCategory.PHARMACY)
+ return "pharmacy";
+ return "?";
+ }
+
+ public String toSystem(BenefitCategory code) {
+ return code.getSystem();
+ }
+
+}
+
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/BenefitNetwork.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/BenefitNetwork.java
similarity index 90%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/BenefitNetwork.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/BenefitNetwork.java
index 40ea4590a34..192418be7fb 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/BenefitNetwork.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/BenefitNetwork.java
@@ -1,6 +1,6 @@
-package org.hl7.fhir.dstu21.model.valuesets;
+package org.hl7.fhir.dstu3.model.valuesets;
-import org.hl7.fhir.dstu21.exceptions.FHIRException;
+import org.hl7.fhir.dstu3.exceptions.FHIRException;
public enum BenefitNetwork {
diff --git a/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/BenefitNetworkEnumFactory.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/BenefitNetworkEnumFactory.java
new file mode 100644
index 00000000000..ea20c661f2f
--- /dev/null
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/BenefitNetworkEnumFactory.java
@@ -0,0 +1,30 @@
+package org.hl7.fhir.dstu3.model.valuesets;
+
+import org.hl7.fhir.dstu3.model.EnumFactory;
+
+public class BenefitNetworkEnumFactory implements EnumFactory {
+
+ public BenefitNetwork fromCode(String codeString) throws IllegalArgumentException {
+ if (codeString == null || "".equals(codeString))
+ return null;
+ if ("in".equals(codeString))
+ return BenefitNetwork.IN;
+ if ("out".equals(codeString))
+ return BenefitNetwork.OUT;
+ throw new IllegalArgumentException("Unknown BenefitNetwork code '"+codeString+"'");
+ }
+
+ public String toCode(BenefitNetwork code) {
+ if (code == BenefitNetwork.IN)
+ return "in";
+ if (code == BenefitNetwork.OUT)
+ return "out";
+ return "?";
+ }
+
+ public String toSystem(BenefitNetwork code) {
+ return code.getSystem();
+ }
+
+}
+
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/BenefitSubcategory.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/BenefitSubcategory.java
similarity index 94%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/BenefitSubcategory.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/BenefitSubcategory.java
index 79859554b33..4ec31087772 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/BenefitSubcategory.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/BenefitSubcategory.java
@@ -1,6 +1,6 @@
-package org.hl7.fhir.dstu21.model.valuesets;
+package org.hl7.fhir.dstu3.model.valuesets;
-import org.hl7.fhir.dstu21.exceptions.FHIRException;
+import org.hl7.fhir.dstu3.exceptions.FHIRException;
public enum BenefitSubcategory {
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/BenefitSubcategoryEnumFactory.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/BenefitSubcategoryEnumFactory.java
similarity index 51%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/BenefitSubcategoryEnumFactory.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/BenefitSubcategoryEnumFactory.java
index dcbf27a1a62..eaf3568f541 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/BenefitSubcategoryEnumFactory.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/BenefitSubcategoryEnumFactory.java
@@ -1,38 +1,6 @@
-package org.hl7.fhir.dstu21.model.valuesets;
+package org.hl7.fhir.dstu3.model.valuesets;
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
+import org.hl7.fhir.dstu3.model.EnumFactory;
public class BenefitSubcategoryEnumFactory implements EnumFactory {
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/BenefitTerm.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/BenefitTerm.java
similarity index 90%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/BenefitTerm.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/BenefitTerm.java
index fcfa6f91b3d..5bf97553a43 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/BenefitTerm.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/BenefitTerm.java
@@ -1,6 +1,6 @@
-package org.hl7.fhir.dstu21.model.valuesets;
+package org.hl7.fhir.dstu3.model.valuesets;
-import org.hl7.fhir.dstu21.exceptions.FHIRException;
+import org.hl7.fhir.dstu3.exceptions.FHIRException;
public enum BenefitTerm {
diff --git a/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/BenefitTermEnumFactory.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/BenefitTermEnumFactory.java
new file mode 100644
index 00000000000..2c61c5a49e3
--- /dev/null
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/BenefitTermEnumFactory.java
@@ -0,0 +1,30 @@
+package org.hl7.fhir.dstu3.model.valuesets;
+
+import org.hl7.fhir.dstu3.model.EnumFactory;
+
+public class BenefitTermEnumFactory implements EnumFactory {
+
+ public BenefitTerm fromCode(String codeString) throws IllegalArgumentException {
+ if (codeString == null || "".equals(codeString))
+ return null;
+ if ("annual".equals(codeString))
+ return BenefitTerm.ANNUAL;
+ if ("lifetime".equals(codeString))
+ return BenefitTerm.LIFETIME;
+ throw new IllegalArgumentException("Unknown BenefitTerm code '"+codeString+"'");
+ }
+
+ public String toCode(BenefitTerm code) {
+ if (code == BenefitTerm.ANNUAL)
+ return "annual";
+ if (code == BenefitTerm.LIFETIME)
+ return "lifetime";
+ return "?";
+ }
+
+ public String toSystem(BenefitTerm code) {
+ return code.getSystem();
+ }
+
+}
+
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/BenefitType.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/BenefitType.java
similarity index 94%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/BenefitType.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/BenefitType.java
index 7c8394d93cc..95e0260d058 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/BenefitType.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/BenefitType.java
@@ -1,6 +1,6 @@
-package org.hl7.fhir.dstu21.model.valuesets;
+package org.hl7.fhir.dstu3.model.valuesets;
-import org.hl7.fhir.dstu21.exceptions.FHIRException;
+import org.hl7.fhir.dstu3.exceptions.FHIRException;
public enum BenefitType {
diff --git a/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/BenefitTypeEnumFactory.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/BenefitTypeEnumFactory.java
new file mode 100644
index 00000000000..bb4aac32a67
--- /dev/null
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/BenefitTypeEnumFactory.java
@@ -0,0 +1,54 @@
+package org.hl7.fhir.dstu3.model.valuesets;
+
+import org.hl7.fhir.dstu3.model.EnumFactory;
+
+public class BenefitTypeEnumFactory implements EnumFactory {
+
+ public BenefitType fromCode(String codeString) throws IllegalArgumentException {
+ if (codeString == null || "".equals(codeString))
+ return null;
+ if ("deductable".equals(codeString))
+ return BenefitType.DEDUCTABLE;
+ if ("visit".equals(codeString))
+ return BenefitType.VISIT;
+ if ("copay".equals(codeString))
+ return BenefitType.COPAY;
+ if ("vision-exam".equals(codeString))
+ return BenefitType.VISIONEXAM;
+ if ("vision-glasses".equals(codeString))
+ return BenefitType.VISIONGLASSES;
+ if ("vision-contacts".equals(codeString))
+ return BenefitType.VISIONCONTACTS;
+ if ("medical-primarycare".equals(codeString))
+ return BenefitType.MEDICALPRIMARYCARE;
+ if ("pharmacy-dispense".equals(codeString))
+ return BenefitType.PHARMACYDISPENSE;
+ throw new IllegalArgumentException("Unknown BenefitType code '"+codeString+"'");
+ }
+
+ public String toCode(BenefitType code) {
+ if (code == BenefitType.DEDUCTABLE)
+ return "deductable";
+ if (code == BenefitType.VISIT)
+ return "visit";
+ if (code == BenefitType.COPAY)
+ return "copay";
+ if (code == BenefitType.VISIONEXAM)
+ return "vision-exam";
+ if (code == BenefitType.VISIONGLASSES)
+ return "vision-glasses";
+ if (code == BenefitType.VISIONCONTACTS)
+ return "vision-contacts";
+ if (code == BenefitType.MEDICALPRIMARYCARE)
+ return "medical-primarycare";
+ if (code == BenefitType.PHARMACYDISPENSE)
+ return "pharmacy-dispense";
+ return "?";
+ }
+
+ public String toSystem(BenefitType code) {
+ return code.getSystem();
+ }
+
+}
+
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/BenefitUnit.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/BenefitUnit.java
similarity index 90%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/BenefitUnit.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/BenefitUnit.java
index 59374bf4008..c61066e33f1 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/BenefitUnit.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/BenefitUnit.java
@@ -1,6 +1,6 @@
-package org.hl7.fhir.dstu21.model.valuesets;
+package org.hl7.fhir.dstu3.model.valuesets;
-import org.hl7.fhir.dstu21.exceptions.FHIRException;
+import org.hl7.fhir.dstu3.exceptions.FHIRException;
public enum BenefitUnit {
diff --git a/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/BenefitUnitEnumFactory.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/BenefitUnitEnumFactory.java
new file mode 100644
index 00000000000..ea1704de7ce
--- /dev/null
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/BenefitUnitEnumFactory.java
@@ -0,0 +1,30 @@
+package org.hl7.fhir.dstu3.model.valuesets;
+
+import org.hl7.fhir.dstu3.model.EnumFactory;
+
+public class BenefitUnitEnumFactory implements EnumFactory {
+
+ public BenefitUnit fromCode(String codeString) throws IllegalArgumentException {
+ if (codeString == null || "".equals(codeString))
+ return null;
+ if ("individual".equals(codeString))
+ return BenefitUnit.INDIVIDUAL;
+ if ("family".equals(codeString))
+ return BenefitUnit.FAMILY;
+ throw new IllegalArgumentException("Unknown BenefitUnit code '"+codeString+"'");
+ }
+
+ public String toCode(BenefitUnit code) {
+ if (code == BenefitUnit.INDIVIDUAL)
+ return "individual";
+ if (code == BenefitUnit.FAMILY)
+ return "family";
+ return "?";
+ }
+
+ public String toSystem(BenefitUnit code) {
+ return code.getSystem();
+ }
+
+}
+
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/CarePlanActivityCategory.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/CarePlanActivityCategory.java
similarity index 94%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/CarePlanActivityCategory.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/CarePlanActivityCategory.java
index 8ebcc917daa..d6eae65b296 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/CarePlanActivityCategory.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/CarePlanActivityCategory.java
@@ -1,6 +1,6 @@
-package org.hl7.fhir.dstu21.model.valuesets;
+package org.hl7.fhir.dstu3.model.valuesets;
-import org.hl7.fhir.dstu21.exceptions.FHIRException;
+import org.hl7.fhir.dstu3.exceptions.FHIRException;
public enum CarePlanActivityCategory {
diff --git a/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/CarePlanActivityCategoryEnumFactory.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/CarePlanActivityCategoryEnumFactory.java
new file mode 100644
index 00000000000..f4e2d0a58e5
--- /dev/null
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/CarePlanActivityCategoryEnumFactory.java
@@ -0,0 +1,50 @@
+package org.hl7.fhir.dstu3.model.valuesets;
+
+import org.hl7.fhir.dstu3.model.EnumFactory;
+
+public class CarePlanActivityCategoryEnumFactory implements EnumFactory {
+
+ public CarePlanActivityCategory fromCode(String codeString) throws IllegalArgumentException {
+ if (codeString == null || "".equals(codeString))
+ return null;
+ if ("diet".equals(codeString))
+ return CarePlanActivityCategory.DIET;
+ if ("drug".equals(codeString))
+ return CarePlanActivityCategory.DRUG;
+ if ("encounter".equals(codeString))
+ return CarePlanActivityCategory.ENCOUNTER;
+ if ("observation".equals(codeString))
+ return CarePlanActivityCategory.OBSERVATION;
+ if ("procedure".equals(codeString))
+ return CarePlanActivityCategory.PROCEDURE;
+ if ("supply".equals(codeString))
+ return CarePlanActivityCategory.SUPPLY;
+ if ("other".equals(codeString))
+ return CarePlanActivityCategory.OTHER;
+ throw new IllegalArgumentException("Unknown CarePlanActivityCategory code '"+codeString+"'");
+ }
+
+ public String toCode(CarePlanActivityCategory code) {
+ if (code == CarePlanActivityCategory.DIET)
+ return "diet";
+ if (code == CarePlanActivityCategory.DRUG)
+ return "drug";
+ if (code == CarePlanActivityCategory.ENCOUNTER)
+ return "encounter";
+ if (code == CarePlanActivityCategory.OBSERVATION)
+ return "observation";
+ if (code == CarePlanActivityCategory.PROCEDURE)
+ return "procedure";
+ if (code == CarePlanActivityCategory.SUPPLY)
+ return "supply";
+ if (code == CarePlanActivityCategory.OTHER)
+ return "other";
+ return "?";
+ }
+
+ public String toSystem(CarePlanActivityCategory code) {
+ return code.getSystem();
+ }
+
+}
+
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ChoiceListOrientation.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/ChoiceListOrientation.java
similarity index 90%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ChoiceListOrientation.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/ChoiceListOrientation.java
index b510ee7fe01..6fc70643af0 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ChoiceListOrientation.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/ChoiceListOrientation.java
@@ -1,6 +1,6 @@
-package org.hl7.fhir.dstu21.model.valuesets;
+package org.hl7.fhir.dstu3.model.valuesets;
-import org.hl7.fhir.dstu21.exceptions.FHIRException;
+import org.hl7.fhir.dstu3.exceptions.FHIRException;
public enum ChoiceListOrientation {
diff --git a/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/ChoiceListOrientationEnumFactory.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/ChoiceListOrientationEnumFactory.java
new file mode 100644
index 00000000000..3b4e25c0ca0
--- /dev/null
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/ChoiceListOrientationEnumFactory.java
@@ -0,0 +1,30 @@
+package org.hl7.fhir.dstu3.model.valuesets;
+
+import org.hl7.fhir.dstu3.model.EnumFactory;
+
+public class ChoiceListOrientationEnumFactory implements EnumFactory {
+
+ public ChoiceListOrientation fromCode(String codeString) throws IllegalArgumentException {
+ if (codeString == null || "".equals(codeString))
+ return null;
+ if ("horizontal".equals(codeString))
+ return ChoiceListOrientation.HORIZONTAL;
+ if ("vertical".equals(codeString))
+ return ChoiceListOrientation.VERTICAL;
+ throw new IllegalArgumentException("Unknown ChoiceListOrientation code '"+codeString+"'");
+ }
+
+ public String toCode(ChoiceListOrientation code) {
+ if (code == ChoiceListOrientation.HORIZONTAL)
+ return "horizontal";
+ if (code == ChoiceListOrientation.VERTICAL)
+ return "vertical";
+ return "?";
+ }
+
+ public String toSystem(ChoiceListOrientation code) {
+ return code.getSystem();
+ }
+
+}
+
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ClaimException.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/ClaimException.java
similarity index 90%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ClaimException.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/ClaimException.java
index 86af7e3f007..864e84e45f4 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ClaimException.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/ClaimException.java
@@ -1,6 +1,6 @@
-package org.hl7.fhir.dstu21.model.valuesets;
+package org.hl7.fhir.dstu3.model.valuesets;
-import org.hl7.fhir.dstu21.exceptions.FHIRException;
+import org.hl7.fhir.dstu3.exceptions.FHIRException;
public enum ClaimException {
diff --git a/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/ClaimExceptionEnumFactory.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/ClaimExceptionEnumFactory.java
new file mode 100644
index 00000000000..bf3ee539d40
--- /dev/null
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/ClaimExceptionEnumFactory.java
@@ -0,0 +1,30 @@
+package org.hl7.fhir.dstu3.model.valuesets;
+
+import org.hl7.fhir.dstu3.model.EnumFactory;
+
+public class ClaimExceptionEnumFactory implements EnumFactory {
+
+ public ClaimException fromCode(String codeString) throws IllegalArgumentException {
+ if (codeString == null || "".equals(codeString))
+ return null;
+ if ("student".equals(codeString))
+ return ClaimException.STUDENT;
+ if ("disabled".equals(codeString))
+ return ClaimException.DISABLED;
+ throw new IllegalArgumentException("Unknown ClaimException code '"+codeString+"'");
+ }
+
+ public String toCode(ClaimException code) {
+ if (code == ClaimException.STUDENT)
+ return "student";
+ if (code == ClaimException.DISABLED)
+ return "disabled";
+ return "?";
+ }
+
+ public String toSystem(ClaimException code) {
+ return code.getSystem();
+ }
+
+}
+
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ClaimModifiers.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/ClaimModifiers.java
similarity index 92%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ClaimModifiers.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/ClaimModifiers.java
index 1ecd9fc304d..641032df116 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ClaimModifiers.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/ClaimModifiers.java
@@ -1,6 +1,6 @@
-package org.hl7.fhir.dstu21.model.valuesets;
+package org.hl7.fhir.dstu3.model.valuesets;
-import org.hl7.fhir.dstu21.exceptions.FHIRException;
+import org.hl7.fhir.dstu3.exceptions.FHIRException;
public enum ClaimModifiers {
diff --git a/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/ClaimModifiersEnumFactory.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/ClaimModifiersEnumFactory.java
new file mode 100644
index 00000000000..778f8533905
--- /dev/null
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/ClaimModifiersEnumFactory.java
@@ -0,0 +1,42 @@
+package org.hl7.fhir.dstu3.model.valuesets;
+
+import org.hl7.fhir.dstu3.model.EnumFactory;
+
+public class ClaimModifiersEnumFactory implements EnumFactory {
+
+ public ClaimModifiers fromCode(String codeString) throws IllegalArgumentException {
+ if (codeString == null || "".equals(codeString))
+ return null;
+ if ("A".equals(codeString))
+ return ClaimModifiers.A;
+ if ("B".equals(codeString))
+ return ClaimModifiers.B;
+ if ("C".equals(codeString))
+ return ClaimModifiers.C;
+ if ("E".equals(codeString))
+ return ClaimModifiers.E;
+ if ("X".equals(codeString))
+ return ClaimModifiers.X;
+ throw new IllegalArgumentException("Unknown ClaimModifiers code '"+codeString+"'");
+ }
+
+ public String toCode(ClaimModifiers code) {
+ if (code == ClaimModifiers.A)
+ return "A";
+ if (code == ClaimModifiers.B)
+ return "B";
+ if (code == ClaimModifiers.C)
+ return "C";
+ if (code == ClaimModifiers.E)
+ return "E";
+ if (code == ClaimModifiers.X)
+ return "X";
+ return "?";
+ }
+
+ public String toSystem(ClaimModifiers code) {
+ return code.getSystem();
+ }
+
+}
+
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ClassificationOrContext.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/ClassificationOrContext.java
similarity index 92%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ClassificationOrContext.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/ClassificationOrContext.java
index 80284701664..a144807e46c 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ClassificationOrContext.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/ClassificationOrContext.java
@@ -1,6 +1,6 @@
-package org.hl7.fhir.dstu21.model.valuesets;
+package org.hl7.fhir.dstu3.model.valuesets;
-import org.hl7.fhir.dstu21.exceptions.FHIRException;
+import org.hl7.fhir.dstu3.exceptions.FHIRException;
public enum ClassificationOrContext {
diff --git a/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/ClassificationOrContextEnumFactory.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/ClassificationOrContextEnumFactory.java
new file mode 100644
index 00000000000..7584d564bf2
--- /dev/null
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/ClassificationOrContextEnumFactory.java
@@ -0,0 +1,30 @@
+package org.hl7.fhir.dstu3.model.valuesets;
+
+import org.hl7.fhir.dstu3.model.EnumFactory;
+
+public class ClassificationOrContextEnumFactory implements EnumFactory {
+
+ public ClassificationOrContext fromCode(String codeString) throws IllegalArgumentException {
+ if (codeString == null || "".equals(codeString))
+ return null;
+ if ("classification".equals(codeString))
+ return ClassificationOrContext.CLASSIFICATION;
+ if ("context".equals(codeString))
+ return ClassificationOrContext.CONTEXT;
+ throw new IllegalArgumentException("Unknown ClassificationOrContext code '"+codeString+"'");
+ }
+
+ public String toCode(ClassificationOrContext code) {
+ if (code == ClassificationOrContext.CLASSIFICATION)
+ return "classification";
+ if (code == ClassificationOrContext.CONTEXT)
+ return "context";
+ return "?";
+ }
+
+ public String toSystem(ClassificationOrContext code) {
+ return code.getSystem();
+ }
+
+}
+
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ConditionCategory.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/ConditionCategory.java
similarity index 93%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ConditionCategory.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/ConditionCategory.java
index d52e592a82d..6dced39a8d7 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ConditionCategory.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/ConditionCategory.java
@@ -1,6 +1,6 @@
-package org.hl7.fhir.dstu21.model.valuesets;
+package org.hl7.fhir.dstu3.model.valuesets;
-import org.hl7.fhir.dstu21.exceptions.FHIRException;
+import org.hl7.fhir.dstu3.exceptions.FHIRException;
public enum ConditionCategory {
diff --git a/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/ConditionCategoryEnumFactory.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/ConditionCategoryEnumFactory.java
new file mode 100644
index 00000000000..b298a3e0db3
--- /dev/null
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/ConditionCategoryEnumFactory.java
@@ -0,0 +1,38 @@
+package org.hl7.fhir.dstu3.model.valuesets;
+
+import org.hl7.fhir.dstu3.model.EnumFactory;
+
+public class ConditionCategoryEnumFactory implements EnumFactory {
+
+ public ConditionCategory fromCode(String codeString) throws IllegalArgumentException {
+ if (codeString == null || "".equals(codeString))
+ return null;
+ if ("complaint".equals(codeString))
+ return ConditionCategory.COMPLAINT;
+ if ("symptom".equals(codeString))
+ return ConditionCategory.SYMPTOM;
+ if ("finding".equals(codeString))
+ return ConditionCategory.FINDING;
+ if ("diagnosis".equals(codeString))
+ return ConditionCategory.DIAGNOSIS;
+ throw new IllegalArgumentException("Unknown ConditionCategory code '"+codeString+"'");
+ }
+
+ public String toCode(ConditionCategory code) {
+ if (code == ConditionCategory.COMPLAINT)
+ return "complaint";
+ if (code == ConditionCategory.SYMPTOM)
+ return "symptom";
+ if (code == ConditionCategory.FINDING)
+ return "finding";
+ if (code == ConditionCategory.DIAGNOSIS)
+ return "diagnosis";
+ return "?";
+ }
+
+ public String toSystem(ConditionCategory code) {
+ return code.getSystem();
+ }
+
+}
+
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ConditionClinical.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/ConditionClinical.java
similarity index 94%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ConditionClinical.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/ConditionClinical.java
index d94d3d7e397..8dcd2651dd4 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ConditionClinical.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/ConditionClinical.java
@@ -1,6 +1,6 @@
-package org.hl7.fhir.dstu21.model.valuesets;
+package org.hl7.fhir.dstu3.model.valuesets;
-import org.hl7.fhir.dstu21.exceptions.FHIRException;
+import org.hl7.fhir.dstu3.exceptions.FHIRException;
public enum ConditionClinical {
diff --git a/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/ConditionClinicalEnumFactory.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/ConditionClinicalEnumFactory.java
new file mode 100644
index 00000000000..ce9afca80f9
--- /dev/null
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/ConditionClinicalEnumFactory.java
@@ -0,0 +1,38 @@
+package org.hl7.fhir.dstu3.model.valuesets;
+
+import org.hl7.fhir.dstu3.model.EnumFactory;
+
+public class ConditionClinicalEnumFactory implements EnumFactory {
+
+ public ConditionClinical fromCode(String codeString) throws IllegalArgumentException {
+ if (codeString == null || "".equals(codeString))
+ return null;
+ if ("active".equals(codeString))
+ return ConditionClinical.ACTIVE;
+ if ("relapse".equals(codeString))
+ return ConditionClinical.RELAPSE;
+ if ("remission".equals(codeString))
+ return ConditionClinical.REMISSION;
+ if ("resolved".equals(codeString))
+ return ConditionClinical.RESOLVED;
+ throw new IllegalArgumentException("Unknown ConditionClinical code '"+codeString+"'");
+ }
+
+ public String toCode(ConditionClinical code) {
+ if (code == ConditionClinical.ACTIVE)
+ return "active";
+ if (code == ConditionClinical.RELAPSE)
+ return "relapse";
+ if (code == ConditionClinical.REMISSION)
+ return "remission";
+ if (code == ConditionClinical.RESOLVED)
+ return "resolved";
+ return "?";
+ }
+
+ public String toSystem(ConditionClinical code) {
+ return code.getSystem();
+ }
+
+}
+
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ConditionState.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/ConditionState.java
similarity index 91%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ConditionState.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/ConditionState.java
index 82a5a77eff5..c571bf47931 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ConditionState.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/ConditionState.java
@@ -1,6 +1,6 @@
-package org.hl7.fhir.dstu21.model.valuesets;
+package org.hl7.fhir.dstu3.model.valuesets;
-import org.hl7.fhir.dstu21.exceptions.FHIRException;
+import org.hl7.fhir.dstu3.exceptions.FHIRException;
public enum ConditionState {
diff --git a/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/ConditionStateEnumFactory.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/ConditionStateEnumFactory.java
new file mode 100644
index 00000000000..5570d38b0a9
--- /dev/null
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/ConditionStateEnumFactory.java
@@ -0,0 +1,34 @@
+package org.hl7.fhir.dstu3.model.valuesets;
+
+import org.hl7.fhir.dstu3.model.EnumFactory;
+
+public class ConditionStateEnumFactory implements EnumFactory {
+
+ public ConditionState fromCode(String codeString) throws IllegalArgumentException {
+ if (codeString == null || "".equals(codeString))
+ return null;
+ if ("active".equals(codeString))
+ return ConditionState.ACTIVE;
+ if ("inactive".equals(codeString))
+ return ConditionState.INACTIVE;
+ if ("resolved".equals(codeString))
+ return ConditionState.RESOLVED;
+ throw new IllegalArgumentException("Unknown ConditionState code '"+codeString+"'");
+ }
+
+ public String toCode(ConditionState code) {
+ if (code == ConditionState.ACTIVE)
+ return "active";
+ if (code == ConditionState.INACTIVE)
+ return "inactive";
+ if (code == ConditionState.RESOLVED)
+ return "resolved";
+ return "?";
+ }
+
+ public String toSystem(ConditionState code) {
+ return code.getSystem();
+ }
+
+}
+
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ConformanceExpectation.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/ConformanceExpectation.java
similarity index 94%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ConformanceExpectation.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/ConformanceExpectation.java
index 13479a96bba..7af2e74896c 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ConformanceExpectation.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/ConformanceExpectation.java
@@ -1,6 +1,6 @@
-package org.hl7.fhir.dstu21.model.valuesets;
+package org.hl7.fhir.dstu3.model.valuesets;
-import org.hl7.fhir.dstu21.exceptions.FHIRException;
+import org.hl7.fhir.dstu3.exceptions.FHIRException;
public enum ConformanceExpectation {
diff --git a/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/ConformanceExpectationEnumFactory.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/ConformanceExpectationEnumFactory.java
new file mode 100644
index 00000000000..c4849debf07
--- /dev/null
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/ConformanceExpectationEnumFactory.java
@@ -0,0 +1,38 @@
+package org.hl7.fhir.dstu3.model.valuesets;
+
+import org.hl7.fhir.dstu3.model.EnumFactory;
+
+public class ConformanceExpectationEnumFactory implements EnumFactory {
+
+ public ConformanceExpectation fromCode(String codeString) throws IllegalArgumentException {
+ if (codeString == null || "".equals(codeString))
+ return null;
+ if ("SHALL".equals(codeString))
+ return ConformanceExpectation.SHALL;
+ if ("SHOULD".equals(codeString))
+ return ConformanceExpectation.SHOULD;
+ if ("MAY".equals(codeString))
+ return ConformanceExpectation.MAY;
+ if ("SHOULD-NOT".equals(codeString))
+ return ConformanceExpectation.SHOULDNOT;
+ throw new IllegalArgumentException("Unknown ConformanceExpectation code '"+codeString+"'");
+ }
+
+ public String toCode(ConformanceExpectation code) {
+ if (code == ConformanceExpectation.SHALL)
+ return "SHALL";
+ if (code == ConformanceExpectation.SHOULD)
+ return "SHOULD";
+ if (code == ConformanceExpectation.MAY)
+ return "MAY";
+ if (code == ConformanceExpectation.SHOULDNOT)
+ return "SHOULD-NOT";
+ return "?";
+ }
+
+ public String toSystem(ConformanceExpectation code) {
+ return code.getSystem();
+ }
+
+}
+
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ContactentityType.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/ContactentityType.java
similarity index 94%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ContactentityType.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/ContactentityType.java
index 9e775763e1c..f930b310d1b 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ContactentityType.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/ContactentityType.java
@@ -1,6 +1,6 @@
-package org.hl7.fhir.dstu21.model.valuesets;
+package org.hl7.fhir.dstu3.model.valuesets;
-import org.hl7.fhir.dstu21.exceptions.FHIRException;
+import org.hl7.fhir.dstu3.exceptions.FHIRException;
public enum ContactentityType {
diff --git a/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/ContactentityTypeEnumFactory.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/ContactentityTypeEnumFactory.java
new file mode 100644
index 00000000000..33d7ebbb63e
--- /dev/null
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/ContactentityTypeEnumFactory.java
@@ -0,0 +1,46 @@
+package org.hl7.fhir.dstu3.model.valuesets;
+
+import org.hl7.fhir.dstu3.model.EnumFactory;
+
+public class ContactentityTypeEnumFactory implements EnumFactory {
+
+ public ContactentityType fromCode(String codeString) throws IllegalArgumentException {
+ if (codeString == null || "".equals(codeString))
+ return null;
+ if ("BILL".equals(codeString))
+ return ContactentityType.BILL;
+ if ("ADMIN".equals(codeString))
+ return ContactentityType.ADMIN;
+ if ("HR".equals(codeString))
+ return ContactentityType.HR;
+ if ("PAYOR".equals(codeString))
+ return ContactentityType.PAYOR;
+ if ("PATINF".equals(codeString))
+ return ContactentityType.PATINF;
+ if ("PRESS".equals(codeString))
+ return ContactentityType.PRESS;
+ throw new IllegalArgumentException("Unknown ContactentityType code '"+codeString+"'");
+ }
+
+ public String toCode(ContactentityType code) {
+ if (code == ContactentityType.BILL)
+ return "BILL";
+ if (code == ContactentityType.ADMIN)
+ return "ADMIN";
+ if (code == ContactentityType.HR)
+ return "HR";
+ if (code == ContactentityType.PAYOR)
+ return "PAYOR";
+ if (code == ContactentityType.PATINF)
+ return "PATINF";
+ if (code == ContactentityType.PRESS)
+ return "PRESS";
+ return "?";
+ }
+
+ public String toSystem(ContactentityType code) {
+ return code.getSystem();
+ }
+
+}
+
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ContractAction.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/ContractAction.java
similarity index 89%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ContractAction.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/ContractAction.java
index ac60e75efb0..97edd03e73c 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ContractAction.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/ContractAction.java
@@ -1,6 +1,6 @@
-package org.hl7.fhir.dstu21.model.valuesets;
+package org.hl7.fhir.dstu3.model.valuesets;
-import org.hl7.fhir.dstu21.exceptions.FHIRException;
+import org.hl7.fhir.dstu3.exceptions.FHIRException;
public enum ContractAction {
diff --git a/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/ContractActionEnumFactory.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/ContractActionEnumFactory.java
new file mode 100644
index 00000000000..69b0de630fc
--- /dev/null
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/ContractActionEnumFactory.java
@@ -0,0 +1,30 @@
+package org.hl7.fhir.dstu3.model.valuesets;
+
+import org.hl7.fhir.dstu3.model.EnumFactory;
+
+public class ContractActionEnumFactory implements EnumFactory {
+
+ public ContractAction fromCode(String codeString) throws IllegalArgumentException {
+ if (codeString == null || "".equals(codeString))
+ return null;
+ if ("action-a".equals(codeString))
+ return ContractAction.ACTIONA;
+ if ("action-b".equals(codeString))
+ return ContractAction.ACTIONB;
+ throw new IllegalArgumentException("Unknown ContractAction code '"+codeString+"'");
+ }
+
+ public String toCode(ContractAction code) {
+ if (code == ContractAction.ACTIONA)
+ return "action-a";
+ if (code == ContractAction.ACTIONB)
+ return "action-b";
+ return "?";
+ }
+
+ public String toSystem(ContractAction code) {
+ return code.getSystem();
+ }
+
+}
+
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ContractActorrole.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/ContractActorrole.java
similarity index 90%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ContractActorrole.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/ContractActorrole.java
index f0ac990cdc8..28b9abb8908 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ContractActorrole.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/ContractActorrole.java
@@ -1,6 +1,6 @@
-package org.hl7.fhir.dstu21.model.valuesets;
+package org.hl7.fhir.dstu3.model.valuesets;
-import org.hl7.fhir.dstu21.exceptions.FHIRException;
+import org.hl7.fhir.dstu3.exceptions.FHIRException;
public enum ContractActorrole {
diff --git a/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/ContractActorroleEnumFactory.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/ContractActorroleEnumFactory.java
new file mode 100644
index 00000000000..189317653c0
--- /dev/null
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/ContractActorroleEnumFactory.java
@@ -0,0 +1,30 @@
+package org.hl7.fhir.dstu3.model.valuesets;
+
+import org.hl7.fhir.dstu3.model.EnumFactory;
+
+public class ContractActorroleEnumFactory implements EnumFactory {
+
+ public ContractActorrole fromCode(String codeString) throws IllegalArgumentException {
+ if (codeString == null || "".equals(codeString))
+ return null;
+ if ("practitioner".equals(codeString))
+ return ContractActorrole.PRACTITIONER;
+ if ("patient".equals(codeString))
+ return ContractActorrole.PATIENT;
+ throw new IllegalArgumentException("Unknown ContractActorrole code '"+codeString+"'");
+ }
+
+ public String toCode(ContractActorrole code) {
+ if (code == ContractActorrole.PRACTITIONER)
+ return "practitioner";
+ if (code == ContractActorrole.PATIENT)
+ return "patient";
+ return "?";
+ }
+
+ public String toSystem(ContractActorrole code) {
+ return code.getSystem();
+ }
+
+}
+
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ContractSignerType.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/ContractSignerType.java
similarity index 98%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ContractSignerType.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/ContractSignerType.java
index 876c13b6529..28d94fbf71e 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ContractSignerType.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/ContractSignerType.java
@@ -1,6 +1,6 @@
-package org.hl7.fhir.dstu21.model.valuesets;
+package org.hl7.fhir.dstu3.model.valuesets;
-import org.hl7.fhir.dstu21.exceptions.FHIRException;
+import org.hl7.fhir.dstu3.exceptions.FHIRException;
public enum ContractSignerType {
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ContractSignerTypeEnumFactory.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/ContractSignerTypeEnumFactory.java
similarity index 69%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ContractSignerTypeEnumFactory.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/ContractSignerTypeEnumFactory.java
index 35d87cbf225..96eaf7534cc 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ContractSignerTypeEnumFactory.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/ContractSignerTypeEnumFactory.java
@@ -1,38 +1,6 @@
-package org.hl7.fhir.dstu21.model.valuesets;
+package org.hl7.fhir.dstu3.model.valuesets;
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
+import org.hl7.fhir.dstu3.model.EnumFactory;
public class ContractSignerTypeEnumFactory implements EnumFactory {
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ContractSubtype.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/ContractSubtype.java
similarity index 90%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ContractSubtype.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/ContractSubtype.java
index 4326ee0aeab..bd0ef8eac0e 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ContractSubtype.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/ContractSubtype.java
@@ -1,6 +1,6 @@
-package org.hl7.fhir.dstu21.model.valuesets;
+package org.hl7.fhir.dstu3.model.valuesets;
-import org.hl7.fhir.dstu21.exceptions.FHIRException;
+import org.hl7.fhir.dstu3.exceptions.FHIRException;
public enum ContractSubtype {
diff --git a/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/ContractSubtypeEnumFactory.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/ContractSubtypeEnumFactory.java
new file mode 100644
index 00000000000..d00b60b61f6
--- /dev/null
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/ContractSubtypeEnumFactory.java
@@ -0,0 +1,30 @@
+package org.hl7.fhir.dstu3.model.valuesets;
+
+import org.hl7.fhir.dstu3.model.EnumFactory;
+
+public class ContractSubtypeEnumFactory implements EnumFactory {
+
+ public ContractSubtype fromCode(String codeString) throws IllegalArgumentException {
+ if (codeString == null || "".equals(codeString))
+ return null;
+ if ("disclosure-CA".equals(codeString))
+ return ContractSubtype.DISCLOSURECA;
+ if ("disclosure-US".equals(codeString))
+ return ContractSubtype.DISCLOSUREUS;
+ throw new IllegalArgumentException("Unknown ContractSubtype code '"+codeString+"'");
+ }
+
+ public String toCode(ContractSubtype code) {
+ if (code == ContractSubtype.DISCLOSURECA)
+ return "disclosure-CA";
+ if (code == ContractSubtype.DISCLOSUREUS)
+ return "disclosure-US";
+ return "?";
+ }
+
+ public String toSystem(ContractSubtype code) {
+ return code.getSystem();
+ }
+
+}
+
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ContractTermSubtype.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/ContractTermSubtype.java
similarity index 91%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ContractTermSubtype.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/ContractTermSubtype.java
index 3f5087a91e9..920a087a74b 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ContractTermSubtype.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/ContractTermSubtype.java
@@ -1,6 +1,6 @@
-package org.hl7.fhir.dstu21.model.valuesets;
+package org.hl7.fhir.dstu3.model.valuesets;
-import org.hl7.fhir.dstu21.exceptions.FHIRException;
+import org.hl7.fhir.dstu3.exceptions.FHIRException;
public enum ContractTermSubtype {
diff --git a/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/ContractTermSubtypeEnumFactory.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/ContractTermSubtypeEnumFactory.java
new file mode 100644
index 00000000000..a35964d843c
--- /dev/null
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/ContractTermSubtypeEnumFactory.java
@@ -0,0 +1,34 @@
+package org.hl7.fhir.dstu3.model.valuesets;
+
+import org.hl7.fhir.dstu3.model.EnumFactory;
+
+public class ContractTermSubtypeEnumFactory implements EnumFactory {
+
+ public ContractTermSubtype fromCode(String codeString) throws IllegalArgumentException {
+ if (codeString == null || "".equals(codeString))
+ return null;
+ if ("OralHealth-Basic".equals(codeString))
+ return ContractTermSubtype.ORALHEALTHBASIC;
+ if ("OralHealth-Major".equals(codeString))
+ return ContractTermSubtype.ORALHEALTHMAJOR;
+ if ("OralHealth-Orthodontic".equals(codeString))
+ return ContractTermSubtype.ORALHEALTHORTHODONTIC;
+ throw new IllegalArgumentException("Unknown ContractTermSubtype code '"+codeString+"'");
+ }
+
+ public String toCode(ContractTermSubtype code) {
+ if (code == ContractTermSubtype.ORALHEALTHBASIC)
+ return "OralHealth-Basic";
+ if (code == ContractTermSubtype.ORALHEALTHMAJOR)
+ return "OralHealth-Major";
+ if (code == ContractTermSubtype.ORALHEALTHORTHODONTIC)
+ return "OralHealth-Orthodontic";
+ return "?";
+ }
+
+ public String toSystem(ContractTermSubtype code) {
+ return code.getSystem();
+ }
+
+}
+
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ContractTermType.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/ContractTermType.java
similarity index 89%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ContractTermType.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/ContractTermType.java
index f3bb3ec90cb..37bafec0bc6 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ContractTermType.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/ContractTermType.java
@@ -1,6 +1,6 @@
-package org.hl7.fhir.dstu21.model.valuesets;
+package org.hl7.fhir.dstu3.model.valuesets;
-import org.hl7.fhir.dstu21.exceptions.FHIRException;
+import org.hl7.fhir.dstu3.exceptions.FHIRException;
public enum ContractTermType {
diff --git a/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/ContractTermTypeEnumFactory.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/ContractTermTypeEnumFactory.java
new file mode 100644
index 00000000000..7ec6111f83c
--- /dev/null
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/ContractTermTypeEnumFactory.java
@@ -0,0 +1,30 @@
+package org.hl7.fhir.dstu3.model.valuesets;
+
+import org.hl7.fhir.dstu3.model.EnumFactory;
+
+public class ContractTermTypeEnumFactory implements EnumFactory {
+
+ public ContractTermType fromCode(String codeString) throws IllegalArgumentException {
+ if (codeString == null || "".equals(codeString))
+ return null;
+ if ("OralHealth".equals(codeString))
+ return ContractTermType.ORALHEALTH;
+ if ("Vision".equals(codeString))
+ return ContractTermType.VISION;
+ throw new IllegalArgumentException("Unknown ContractTermType code '"+codeString+"'");
+ }
+
+ public String toCode(ContractTermType code) {
+ if (code == ContractTermType.ORALHEALTH)
+ return "OralHealth";
+ if (code == ContractTermType.VISION)
+ return "Vision";
+ return "?";
+ }
+
+ public String toSystem(ContractTermType code) {
+ return code.getSystem();
+ }
+
+}
+
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ContractType.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/ContractType.java
similarity index 89%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ContractType.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/ContractType.java
index ebf1643860b..052b196767a 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ContractType.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/ContractType.java
@@ -1,6 +1,6 @@
-package org.hl7.fhir.dstu21.model.valuesets;
+package org.hl7.fhir.dstu3.model.valuesets;
-import org.hl7.fhir.dstu21.exceptions.FHIRException;
+import org.hl7.fhir.dstu3.exceptions.FHIRException;
public enum ContractType {
diff --git a/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/ContractTypeEnumFactory.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/ContractTypeEnumFactory.java
new file mode 100644
index 00000000000..55560dbd14e
--- /dev/null
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/ContractTypeEnumFactory.java
@@ -0,0 +1,30 @@
+package org.hl7.fhir.dstu3.model.valuesets;
+
+import org.hl7.fhir.dstu3.model.EnumFactory;
+
+public class ContractTypeEnumFactory implements EnumFactory {
+
+ public ContractType fromCode(String codeString) throws IllegalArgumentException {
+ if (codeString == null || "".equals(codeString))
+ return null;
+ if ("privacy".equals(codeString))
+ return ContractType.PRIVACY;
+ if ("disclosure".equals(codeString))
+ return ContractType.DISCLOSURE;
+ throw new IllegalArgumentException("Unknown ContractType code '"+codeString+"'");
+ }
+
+ public String toCode(ContractType code) {
+ if (code == ContractType.PRIVACY)
+ return "privacy";
+ if (code == ContractType.DISCLOSURE)
+ return "disclosure";
+ return "?";
+ }
+
+ public String toSystem(ContractType code) {
+ return code.getSystem();
+ }
+
+}
+
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/DeviceAction.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/DeviceAction.java
similarity index 92%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/DeviceAction.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/DeviceAction.java
index cdba26fea90..822fd68d9b3 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/DeviceAction.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/DeviceAction.java
@@ -1,6 +1,6 @@
-package org.hl7.fhir.dstu21.model.valuesets;
+package org.hl7.fhir.dstu3.model.valuesets;
-import org.hl7.fhir.dstu21.exceptions.FHIRException;
+import org.hl7.fhir.dstu3.exceptions.FHIRException;
public enum DeviceAction {
diff --git a/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/DeviceActionEnumFactory.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/DeviceActionEnumFactory.java
new file mode 100644
index 00000000000..adfc719c01b
--- /dev/null
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/DeviceActionEnumFactory.java
@@ -0,0 +1,34 @@
+package org.hl7.fhir.dstu3.model.valuesets;
+
+import org.hl7.fhir.dstu3.model.EnumFactory;
+
+public class DeviceActionEnumFactory implements EnumFactory {
+
+ public DeviceAction fromCode(String codeString) throws IllegalArgumentException {
+ if (codeString == null || "".equals(codeString))
+ return null;
+ if ("implanted".equals(codeString))
+ return DeviceAction.IMPLANTED;
+ if ("explanted".equals(codeString))
+ return DeviceAction.EXPLANTED;
+ if ("manipulated".equals(codeString))
+ return DeviceAction.MANIPULATED;
+ throw new IllegalArgumentException("Unknown DeviceAction code '"+codeString+"'");
+ }
+
+ public String toCode(DeviceAction code) {
+ if (code == DeviceAction.IMPLANTED)
+ return "implanted";
+ if (code == DeviceAction.EXPLANTED)
+ return "explanted";
+ if (code == DeviceAction.MANIPULATED)
+ return "manipulated";
+ return "?";
+ }
+
+ public String toSystem(DeviceAction code) {
+ return code.getSystem();
+ }
+
+}
+
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/EncounterAdmitSource.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/EncounterAdmitSource.java
similarity index 93%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/EncounterAdmitSource.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/EncounterAdmitSource.java
index 6da8776cee0..01779e37b09 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/EncounterAdmitSource.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/EncounterAdmitSource.java
@@ -1,6 +1,6 @@
-package org.hl7.fhir.dstu21.model.valuesets;
+package org.hl7.fhir.dstu3.model.valuesets;
-import org.hl7.fhir.dstu21.exceptions.FHIRException;
+import org.hl7.fhir.dstu3.exceptions.FHIRException;
public enum EncounterAdmitSource {
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/EncounterAdmitSourceEnumFactory.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/EncounterAdmitSourceEnumFactory.java
similarity index 51%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/EncounterAdmitSourceEnumFactory.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/EncounterAdmitSourceEnumFactory.java
index 36ba737b2af..81128e12717 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/EncounterAdmitSourceEnumFactory.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/EncounterAdmitSourceEnumFactory.java
@@ -1,38 +1,6 @@
-package org.hl7.fhir.dstu21.model.valuesets;
+package org.hl7.fhir.dstu3.model.valuesets;
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
+import org.hl7.fhir.dstu3.model.EnumFactory;
public class EncounterAdmitSourceEnumFactory implements EnumFactory {
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/EncounterDiet.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/EncounterDiet.java
similarity index 94%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/EncounterDiet.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/EncounterDiet.java
index 6e7dc088ce1..5f49ee78a41 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/EncounterDiet.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/EncounterDiet.java
@@ -1,6 +1,6 @@
-package org.hl7.fhir.dstu21.model.valuesets;
+package org.hl7.fhir.dstu3.model.valuesets;
-import org.hl7.fhir.dstu21.exceptions.FHIRException;
+import org.hl7.fhir.dstu3.exceptions.FHIRException;
public enum EncounterDiet {
diff --git a/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/EncounterDietEnumFactory.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/EncounterDietEnumFactory.java
new file mode 100644
index 00000000000..638548e01ce
--- /dev/null
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/EncounterDietEnumFactory.java
@@ -0,0 +1,50 @@
+package org.hl7.fhir.dstu3.model.valuesets;
+
+import org.hl7.fhir.dstu3.model.EnumFactory;
+
+public class EncounterDietEnumFactory implements EnumFactory {
+
+ public EncounterDiet fromCode(String codeString) throws IllegalArgumentException {
+ if (codeString == null || "".equals(codeString))
+ return null;
+ if ("vegetarian".equals(codeString))
+ return EncounterDiet.VEGETARIAN;
+ if ("dairy-free".equals(codeString))
+ return EncounterDiet.DAIRYFREE;
+ if ("nut-free".equals(codeString))
+ return EncounterDiet.NUTFREE;
+ if ("gluten-free".equals(codeString))
+ return EncounterDiet.GLUTENFREE;
+ if ("vegan".equals(codeString))
+ return EncounterDiet.VEGAN;
+ if ("halal".equals(codeString))
+ return EncounterDiet.HALAL;
+ if ("kosher".equals(codeString))
+ return EncounterDiet.KOSHER;
+ throw new IllegalArgumentException("Unknown EncounterDiet code '"+codeString+"'");
+ }
+
+ public String toCode(EncounterDiet code) {
+ if (code == EncounterDiet.VEGETARIAN)
+ return "vegetarian";
+ if (code == EncounterDiet.DAIRYFREE)
+ return "dairy-free";
+ if (code == EncounterDiet.NUTFREE)
+ return "nut-free";
+ if (code == EncounterDiet.GLUTENFREE)
+ return "gluten-free";
+ if (code == EncounterDiet.VEGAN)
+ return "vegan";
+ if (code == EncounterDiet.HALAL)
+ return "halal";
+ if (code == EncounterDiet.KOSHER)
+ return "kosher";
+ return "?";
+ }
+
+ public String toSystem(EncounterDiet code) {
+ return code.getSystem();
+ }
+
+}
+
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/EncounterDischargeDisposition.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/EncounterDischargeDisposition.java
similarity index 93%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/EncounterDischargeDisposition.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/EncounterDischargeDisposition.java
index cebc56e0df6..52eb6d34d10 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/EncounterDischargeDisposition.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/EncounterDischargeDisposition.java
@@ -1,6 +1,6 @@
-package org.hl7.fhir.dstu21.model.valuesets;
+package org.hl7.fhir.dstu3.model.valuesets;
-import org.hl7.fhir.dstu21.exceptions.FHIRException;
+import org.hl7.fhir.dstu3.exceptions.FHIRException;
public enum EncounterDischargeDisposition {
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/EncounterDischargeDispositionEnumFactory.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/EncounterDischargeDispositionEnumFactory.java
similarity index 52%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/EncounterDischargeDispositionEnumFactory.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/EncounterDischargeDispositionEnumFactory.java
index 103d5e253ec..4caf190fce1 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/EncounterDischargeDispositionEnumFactory.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/EncounterDischargeDispositionEnumFactory.java
@@ -1,38 +1,6 @@
-package org.hl7.fhir.dstu21.model.valuesets;
+package org.hl7.fhir.dstu3.model.valuesets;
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
+import org.hl7.fhir.dstu3.model.EnumFactory;
public class EncounterDischargeDispositionEnumFactory implements EnumFactory {
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/EncounterPriority.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/EncounterPriority.java
similarity index 92%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/EncounterPriority.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/EncounterPriority.java
index a434b974a68..a4d05bfe132 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/EncounterPriority.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/EncounterPriority.java
@@ -1,6 +1,6 @@
-package org.hl7.fhir.dstu21.model.valuesets;
+package org.hl7.fhir.dstu3.model.valuesets;
-import org.hl7.fhir.dstu21.exceptions.FHIRException;
+import org.hl7.fhir.dstu3.exceptions.FHIRException;
public enum EncounterPriority {
diff --git a/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/EncounterPriorityEnumFactory.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/EncounterPriorityEnumFactory.java
new file mode 100644
index 00000000000..a2fd3218b82
--- /dev/null
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/EncounterPriorityEnumFactory.java
@@ -0,0 +1,42 @@
+package org.hl7.fhir.dstu3.model.valuesets;
+
+import org.hl7.fhir.dstu3.model.EnumFactory;
+
+public class EncounterPriorityEnumFactory implements EnumFactory {
+
+ public EncounterPriority fromCode(String codeString) throws IllegalArgumentException {
+ if (codeString == null || "".equals(codeString))
+ return null;
+ if ("imm".equals(codeString))
+ return EncounterPriority.IMM;
+ if ("emg".equals(codeString))
+ return EncounterPriority.EMG;
+ if ("urg".equals(codeString))
+ return EncounterPriority.URG;
+ if ("s-urg".equals(codeString))
+ return EncounterPriority.SURG;
+ if ("no-urg".equals(codeString))
+ return EncounterPriority.NOURG;
+ throw new IllegalArgumentException("Unknown EncounterPriority code '"+codeString+"'");
+ }
+
+ public String toCode(EncounterPriority code) {
+ if (code == EncounterPriority.IMM)
+ return "imm";
+ if (code == EncounterPriority.EMG)
+ return "emg";
+ if (code == EncounterPriority.URG)
+ return "urg";
+ if (code == EncounterPriority.SURG)
+ return "s-urg";
+ if (code == EncounterPriority.NOURG)
+ return "no-urg";
+ return "?";
+ }
+
+ public String toSystem(EncounterPriority code) {
+ return code.getSystem();
+ }
+
+}
+
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/EncounterSpecialArrangements.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/EncounterSpecialArrangements.java
similarity index 91%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/EncounterSpecialArrangements.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/EncounterSpecialArrangements.java
index fce99cff13c..282392202b4 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/EncounterSpecialArrangements.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/EncounterSpecialArrangements.java
@@ -1,6 +1,6 @@
-package org.hl7.fhir.dstu21.model.valuesets;
+package org.hl7.fhir.dstu3.model.valuesets;
-import org.hl7.fhir.dstu21.exceptions.FHIRException;
+import org.hl7.fhir.dstu3.exceptions.FHIRException;
public enum EncounterSpecialArrangements {
diff --git a/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/EncounterSpecialArrangementsEnumFactory.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/EncounterSpecialArrangementsEnumFactory.java
new file mode 100644
index 00000000000..35a7465668a
--- /dev/null
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/EncounterSpecialArrangementsEnumFactory.java
@@ -0,0 +1,42 @@
+package org.hl7.fhir.dstu3.model.valuesets;
+
+import org.hl7.fhir.dstu3.model.EnumFactory;
+
+public class EncounterSpecialArrangementsEnumFactory implements EnumFactory {
+
+ public EncounterSpecialArrangements fromCode(String codeString) throws IllegalArgumentException {
+ if (codeString == null || "".equals(codeString))
+ return null;
+ if ("wheel".equals(codeString))
+ return EncounterSpecialArrangements.WHEEL;
+ if ("stret".equals(codeString))
+ return EncounterSpecialArrangements.STRET;
+ if ("int".equals(codeString))
+ return EncounterSpecialArrangements.INT;
+ if ("att".equals(codeString))
+ return EncounterSpecialArrangements.ATT;
+ if ("dog".equals(codeString))
+ return EncounterSpecialArrangements.DOG;
+ throw new IllegalArgumentException("Unknown EncounterSpecialArrangements code '"+codeString+"'");
+ }
+
+ public String toCode(EncounterSpecialArrangements code) {
+ if (code == EncounterSpecialArrangements.WHEEL)
+ return "wheel";
+ if (code == EncounterSpecialArrangements.STRET)
+ return "stret";
+ if (code == EncounterSpecialArrangements.INT)
+ return "int";
+ if (code == EncounterSpecialArrangements.ATT)
+ return "att";
+ if (code == EncounterSpecialArrangements.DOG)
+ return "dog";
+ return "?";
+ }
+
+ public String toSystem(EncounterSpecialArrangements code) {
+ return code.getSystem();
+ }
+
+}
+
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/EncounterType.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/EncounterType.java
similarity index 91%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/EncounterType.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/EncounterType.java
index 3e412376f5d..ebfc4cc14fe 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/EncounterType.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/EncounterType.java
@@ -1,6 +1,6 @@
-package org.hl7.fhir.dstu21.model.valuesets;
+package org.hl7.fhir.dstu3.model.valuesets;
-import org.hl7.fhir.dstu21.exceptions.FHIRException;
+import org.hl7.fhir.dstu3.exceptions.FHIRException;
public enum EncounterType {
diff --git a/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/EncounterTypeEnumFactory.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/EncounterTypeEnumFactory.java
new file mode 100644
index 00000000000..06b629340e9
--- /dev/null
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/EncounterTypeEnumFactory.java
@@ -0,0 +1,38 @@
+package org.hl7.fhir.dstu3.model.valuesets;
+
+import org.hl7.fhir.dstu3.model.EnumFactory;
+
+public class EncounterTypeEnumFactory implements EnumFactory {
+
+ public EncounterType fromCode(String codeString) throws IllegalArgumentException {
+ if (codeString == null || "".equals(codeString))
+ return null;
+ if ("ADMS".equals(codeString))
+ return EncounterType.ADMS;
+ if ("BD/BM-clin".equals(codeString))
+ return EncounterType.BD_BMCLIN;
+ if ("CCS60".equals(codeString))
+ return EncounterType.CCS60;
+ if ("OKI".equals(codeString))
+ return EncounterType.OKI;
+ throw new IllegalArgumentException("Unknown EncounterType code '"+codeString+"'");
+ }
+
+ public String toCode(EncounterType code) {
+ if (code == EncounterType.ADMS)
+ return "ADMS";
+ if (code == EncounterType.BD_BMCLIN)
+ return "BD/BM-clin";
+ if (code == EncounterType.CCS60)
+ return "CCS60";
+ if (code == EncounterType.OKI)
+ return "OKI";
+ return "?";
+ }
+
+ public String toSystem(EncounterType code) {
+ return code.getSystem();
+ }
+
+}
+
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/EntformulaAdditive.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/EntformulaAdditive.java
similarity index 92%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/EntformulaAdditive.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/EntformulaAdditive.java
index c7c3c1a2ecf..f09e3ed95f8 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/EntformulaAdditive.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/EntformulaAdditive.java
@@ -1,6 +1,6 @@
-package org.hl7.fhir.dstu21.model.valuesets;
+package org.hl7.fhir.dstu3.model.valuesets;
-import org.hl7.fhir.dstu21.exceptions.FHIRException;
+import org.hl7.fhir.dstu3.exceptions.FHIRException;
public enum EntformulaAdditive {
diff --git a/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/EntformulaAdditiveEnumFactory.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/EntformulaAdditiveEnumFactory.java
new file mode 100644
index 00000000000..ff67dd1e827
--- /dev/null
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/EntformulaAdditiveEnumFactory.java
@@ -0,0 +1,42 @@
+package org.hl7.fhir.dstu3.model.valuesets;
+
+import org.hl7.fhir.dstu3.model.EnumFactory;
+
+public class EntformulaAdditiveEnumFactory implements EnumFactory {
+
+ public EntformulaAdditive fromCode(String codeString) throws IllegalArgumentException {
+ if (codeString == null || "".equals(codeString))
+ return null;
+ if ("lipid".equals(codeString))
+ return EntformulaAdditive.LIPID;
+ if ("protein".equals(codeString))
+ return EntformulaAdditive.PROTEIN;
+ if ("carbohydrate".equals(codeString))
+ return EntformulaAdditive.CARBOHYDRATE;
+ if ("fiber".equals(codeString))
+ return EntformulaAdditive.FIBER;
+ if ("water".equals(codeString))
+ return EntformulaAdditive.WATER;
+ throw new IllegalArgumentException("Unknown EntformulaAdditive code '"+codeString+"'");
+ }
+
+ public String toCode(EntformulaAdditive code) {
+ if (code == EntformulaAdditive.LIPID)
+ return "lipid";
+ if (code == EntformulaAdditive.PROTEIN)
+ return "protein";
+ if (code == EntformulaAdditive.CARBOHYDRATE)
+ return "carbohydrate";
+ if (code == EntformulaAdditive.FIBER)
+ return "fiber";
+ if (code == EntformulaAdditive.WATER)
+ return "water";
+ return "?";
+ }
+
+ public String toSystem(EntformulaAdditive code) {
+ return code.getSystem();
+ }
+
+}
+
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/FlagCategory.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/FlagCategory.java
similarity index 93%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/FlagCategory.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/FlagCategory.java
index f5c4c205b7f..54a62ac0707 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/FlagCategory.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/FlagCategory.java
@@ -1,6 +1,6 @@
-package org.hl7.fhir.dstu21.model.valuesets;
+package org.hl7.fhir.dstu3.model.valuesets;
-import org.hl7.fhir.dstu21.exceptions.FHIRException;
+import org.hl7.fhir.dstu3.exceptions.FHIRException;
public enum FlagCategory {
diff --git a/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/FlagCategoryEnumFactory.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/FlagCategoryEnumFactory.java
new file mode 100644
index 00000000000..f65fdcca919
--- /dev/null
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/FlagCategoryEnumFactory.java
@@ -0,0 +1,42 @@
+package org.hl7.fhir.dstu3.model.valuesets;
+
+import org.hl7.fhir.dstu3.model.EnumFactory;
+
+public class FlagCategoryEnumFactory implements EnumFactory {
+
+ public FlagCategory fromCode(String codeString) throws IllegalArgumentException {
+ if (codeString == null || "".equals(codeString))
+ return null;
+ if ("diet".equals(codeString))
+ return FlagCategory.DIET;
+ if ("drug".equals(codeString))
+ return FlagCategory.DRUG;
+ if ("lab".equals(codeString))
+ return FlagCategory.LAB;
+ if ("admin".equals(codeString))
+ return FlagCategory.ADMIN;
+ if ("contact".equals(codeString))
+ return FlagCategory.CONTACT;
+ throw new IllegalArgumentException("Unknown FlagCategory code '"+codeString+"'");
+ }
+
+ public String toCode(FlagCategory code) {
+ if (code == FlagCategory.DIET)
+ return "diet";
+ if (code == FlagCategory.DRUG)
+ return "drug";
+ if (code == FlagCategory.LAB)
+ return "lab";
+ if (code == FlagCategory.ADMIN)
+ return "admin";
+ if (code == FlagCategory.CONTACT)
+ return "contact";
+ return "?";
+ }
+
+ public String toSystem(FlagCategory code) {
+ return code.getSystem();
+ }
+
+}
+
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/FlagPriority.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/FlagPriority.java
similarity index 91%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/FlagPriority.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/FlagPriority.java
index 3e99ee1f3d8..d5e0bfa2c2d 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/FlagPriority.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/FlagPriority.java
@@ -1,6 +1,6 @@
-package org.hl7.fhir.dstu21.model.valuesets;
+package org.hl7.fhir.dstu3.model.valuesets;
-import org.hl7.fhir.dstu21.exceptions.FHIRException;
+import org.hl7.fhir.dstu3.exceptions.FHIRException;
public enum FlagPriority {
diff --git a/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/FlagPriorityEnumFactory.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/FlagPriorityEnumFactory.java
new file mode 100644
index 00000000000..e7f16d165fa
--- /dev/null
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/FlagPriorityEnumFactory.java
@@ -0,0 +1,38 @@
+package org.hl7.fhir.dstu3.model.valuesets;
+
+import org.hl7.fhir.dstu3.model.EnumFactory;
+
+public class FlagPriorityEnumFactory implements EnumFactory {
+
+ public FlagPriority fromCode(String codeString) throws IllegalArgumentException {
+ if (codeString == null || "".equals(codeString))
+ return null;
+ if ("PN".equals(codeString))
+ return FlagPriority.PN;
+ if ("PL".equals(codeString))
+ return FlagPriority.PL;
+ if ("PM".equals(codeString))
+ return FlagPriority.PM;
+ if ("PH".equals(codeString))
+ return FlagPriority.PH;
+ throw new IllegalArgumentException("Unknown FlagPriority code '"+codeString+"'");
+ }
+
+ public String toCode(FlagPriority code) {
+ if (code == FlagPriority.PN)
+ return "PN";
+ if (code == FlagPriority.PL)
+ return "PL";
+ if (code == FlagPriority.PM)
+ return "PM";
+ if (code == FlagPriority.PH)
+ return "PH";
+ return "?";
+ }
+
+ public String toSystem(FlagPriority code) {
+ return code.getSystem();
+ }
+
+}
+
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/FmConditions.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/FmConditions.java
similarity index 88%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/FmConditions.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/FmConditions.java
index 5037afbbcd2..c35177b4005 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/FmConditions.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/FmConditions.java
@@ -1,6 +1,6 @@
-package org.hl7.fhir.dstu21.model.valuesets;
+package org.hl7.fhir.dstu3.model.valuesets;
-import org.hl7.fhir.dstu21.exceptions.FHIRException;
+import org.hl7.fhir.dstu3.exceptions.FHIRException;
public enum FmConditions {
diff --git a/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/FmConditionsEnumFactory.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/FmConditionsEnumFactory.java
new file mode 100644
index 00000000000..de7c03540ab
--- /dev/null
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/FmConditionsEnumFactory.java
@@ -0,0 +1,26 @@
+package org.hl7.fhir.dstu3.model.valuesets;
+
+import org.hl7.fhir.dstu3.model.EnumFactory;
+
+public class FmConditionsEnumFactory implements EnumFactory {
+
+ public FmConditions fromCode(String codeString) throws IllegalArgumentException {
+ if (codeString == null || "".equals(codeString))
+ return null;
+ if ("123987".equals(codeString))
+ return FmConditions._123987;
+ throw new IllegalArgumentException("Unknown FmConditions code '"+codeString+"'");
+ }
+
+ public String toCode(FmConditions code) {
+ if (code == FmConditions._123987)
+ return "123987";
+ return "?";
+ }
+
+ public String toSystem(FmConditions code) {
+ return code.getSystem();
+ }
+
+}
+
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/Forms.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/Forms.java
similarity index 88%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/Forms.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/Forms.java
index d332eb084f2..c3e61e26510 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/Forms.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/Forms.java
@@ -1,6 +1,6 @@
-package org.hl7.fhir.dstu21.model.valuesets;
+package org.hl7.fhir.dstu3.model.valuesets;
-import org.hl7.fhir.dstu21.exceptions.FHIRException;
+import org.hl7.fhir.dstu3.exceptions.FHIRException;
public enum Forms {
diff --git a/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/FormsEnumFactory.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/FormsEnumFactory.java
new file mode 100644
index 00000000000..551f69cb43c
--- /dev/null
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/FormsEnumFactory.java
@@ -0,0 +1,30 @@
+package org.hl7.fhir.dstu3.model.valuesets;
+
+import org.hl7.fhir.dstu3.model.EnumFactory;
+
+public class FormsEnumFactory implements EnumFactory {
+
+ public Forms fromCode(String codeString) throws IllegalArgumentException {
+ if (codeString == null || "".equals(codeString))
+ return null;
+ if ("1".equals(codeString))
+ return Forms._1;
+ if ("2".equals(codeString))
+ return Forms._2;
+ throw new IllegalArgumentException("Unknown Forms code '"+codeString+"'");
+ }
+
+ public String toCode(Forms code) {
+ if (code == Forms._1)
+ return "1";
+ if (code == Forms._2)
+ return "2";
+ return "?";
+ }
+
+ public String toSystem(Forms code) {
+ return code.getSystem();
+ }
+
+}
+
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/Fundsreserve.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/Fundsreserve.java
similarity index 90%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/Fundsreserve.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/Fundsreserve.java
index 2c6dc4f93a2..c3bbf316ee3 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/Fundsreserve.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/Fundsreserve.java
@@ -1,6 +1,6 @@
-package org.hl7.fhir.dstu21.model.valuesets;
+package org.hl7.fhir.dstu3.model.valuesets;
-import org.hl7.fhir.dstu21.exceptions.FHIRException;
+import org.hl7.fhir.dstu3.exceptions.FHIRException;
public enum Fundsreserve {
diff --git a/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/FundsreserveEnumFactory.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/FundsreserveEnumFactory.java
new file mode 100644
index 00000000000..c13c4d67aa8
--- /dev/null
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/FundsreserveEnumFactory.java
@@ -0,0 +1,34 @@
+package org.hl7.fhir.dstu3.model.valuesets;
+
+import org.hl7.fhir.dstu3.model.EnumFactory;
+
+public class FundsreserveEnumFactory implements EnumFactory {
+
+ public Fundsreserve fromCode(String codeString) throws IllegalArgumentException {
+ if (codeString == null || "".equals(codeString))
+ return null;
+ if ("patient".equals(codeString))
+ return Fundsreserve.PATIENT;
+ if ("provider".equals(codeString))
+ return Fundsreserve.PROVIDER;
+ if ("none".equals(codeString))
+ return Fundsreserve.NONE;
+ throw new IllegalArgumentException("Unknown Fundsreserve code '"+codeString+"'");
+ }
+
+ public String toCode(Fundsreserve code) {
+ if (code == Fundsreserve.PATIENT)
+ return "patient";
+ if (code == Fundsreserve.PROVIDER)
+ return "provider";
+ if (code == Fundsreserve.NONE)
+ return "none";
+ return "?";
+ }
+
+ public String toSystem(Fundsreserve code) {
+ return code.getSystem();
+ }
+
+}
+
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/GoalAcceptanceStatus.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/GoalAcceptanceStatus.java
similarity index 92%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/GoalAcceptanceStatus.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/GoalAcceptanceStatus.java
index 716c3125ad4..53edb0fe4d2 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/GoalAcceptanceStatus.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/GoalAcceptanceStatus.java
@@ -1,6 +1,6 @@
-package org.hl7.fhir.dstu21.model.valuesets;
+package org.hl7.fhir.dstu3.model.valuesets;
-import org.hl7.fhir.dstu21.exceptions.FHIRException;
+import org.hl7.fhir.dstu3.exceptions.FHIRException;
public enum GoalAcceptanceStatus {
diff --git a/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/GoalAcceptanceStatusEnumFactory.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/GoalAcceptanceStatusEnumFactory.java
new file mode 100644
index 00000000000..32026214ad5
--- /dev/null
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/GoalAcceptanceStatusEnumFactory.java
@@ -0,0 +1,34 @@
+package org.hl7.fhir.dstu3.model.valuesets;
+
+import org.hl7.fhir.dstu3.model.EnumFactory;
+
+public class GoalAcceptanceStatusEnumFactory implements EnumFactory {
+
+ public GoalAcceptanceStatus fromCode(String codeString) throws IllegalArgumentException {
+ if (codeString == null || "".equals(codeString))
+ return null;
+ if ("agree".equals(codeString))
+ return GoalAcceptanceStatus.AGREE;
+ if ("disagree".equals(codeString))
+ return GoalAcceptanceStatus.DISAGREE;
+ if ("pending".equals(codeString))
+ return GoalAcceptanceStatus.PENDING;
+ throw new IllegalArgumentException("Unknown GoalAcceptanceStatus code '"+codeString+"'");
+ }
+
+ public String toCode(GoalAcceptanceStatus code) {
+ if (code == GoalAcceptanceStatus.AGREE)
+ return "agree";
+ if (code == GoalAcceptanceStatus.DISAGREE)
+ return "disagree";
+ if (code == GoalAcceptanceStatus.PENDING)
+ return "pending";
+ return "?";
+ }
+
+ public String toSystem(GoalAcceptanceStatus code) {
+ return code.getSystem();
+ }
+
+}
+
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/GoalCategory.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/GoalCategory.java
similarity index 93%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/GoalCategory.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/GoalCategory.java
index 39857da17cc..b06a13ea4ba 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/GoalCategory.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/GoalCategory.java
@@ -1,6 +1,6 @@
-package org.hl7.fhir.dstu21.model.valuesets;
+package org.hl7.fhir.dstu3.model.valuesets;
-import org.hl7.fhir.dstu21.exceptions.FHIRException;
+import org.hl7.fhir.dstu3.exceptions.FHIRException;
public enum GoalCategory {
diff --git a/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/GoalCategoryEnumFactory.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/GoalCategoryEnumFactory.java
new file mode 100644
index 00000000000..f60dbbed23f
--- /dev/null
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/GoalCategoryEnumFactory.java
@@ -0,0 +1,42 @@
+package org.hl7.fhir.dstu3.model.valuesets;
+
+import org.hl7.fhir.dstu3.model.EnumFactory;
+
+public class GoalCategoryEnumFactory implements EnumFactory {
+
+ public GoalCategory fromCode(String codeString) throws IllegalArgumentException {
+ if (codeString == null || "".equals(codeString))
+ return null;
+ if ("dietary".equals(codeString))
+ return GoalCategory.DIETARY;
+ if ("safety".equals(codeString))
+ return GoalCategory.SAFETY;
+ if ("behavioral".equals(codeString))
+ return GoalCategory.BEHAVIORAL;
+ if ("nursing".equals(codeString))
+ return GoalCategory.NURSING;
+ if ("physiotherapy".equals(codeString))
+ return GoalCategory.PHYSIOTHERAPY;
+ throw new IllegalArgumentException("Unknown GoalCategory code '"+codeString+"'");
+ }
+
+ public String toCode(GoalCategory code) {
+ if (code == GoalCategory.DIETARY)
+ return "dietary";
+ if (code == GoalCategory.SAFETY)
+ return "safety";
+ if (code == GoalCategory.BEHAVIORAL)
+ return "behavioral";
+ if (code == GoalCategory.NURSING)
+ return "nursing";
+ if (code == GoalCategory.PHYSIOTHERAPY)
+ return "physiotherapy";
+ return "?";
+ }
+
+ public String toSystem(GoalCategory code) {
+ return code.getSystem();
+ }
+
+}
+
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/GoalPriority.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/GoalPriority.java
similarity index 93%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/GoalPriority.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/GoalPriority.java
index 61ad4115703..e04eedaf147 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/GoalPriority.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/GoalPriority.java
@@ -1,6 +1,6 @@
-package org.hl7.fhir.dstu21.model.valuesets;
+package org.hl7.fhir.dstu3.model.valuesets;
-import org.hl7.fhir.dstu21.exceptions.FHIRException;
+import org.hl7.fhir.dstu3.exceptions.FHIRException;
public enum GoalPriority {
diff --git a/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/GoalPriorityEnumFactory.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/GoalPriorityEnumFactory.java
new file mode 100644
index 00000000000..77bcd1a8e4e
--- /dev/null
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/GoalPriorityEnumFactory.java
@@ -0,0 +1,34 @@
+package org.hl7.fhir.dstu3.model.valuesets;
+
+import org.hl7.fhir.dstu3.model.EnumFactory;
+
+public class GoalPriorityEnumFactory implements EnumFactory {
+
+ public GoalPriority fromCode(String codeString) throws IllegalArgumentException {
+ if (codeString == null || "".equals(codeString))
+ return null;
+ if ("high".equals(codeString))
+ return GoalPriority.HIGH;
+ if ("medium".equals(codeString))
+ return GoalPriority.MEDIUM;
+ if ("low".equals(codeString))
+ return GoalPriority.LOW;
+ throw new IllegalArgumentException("Unknown GoalPriority code '"+codeString+"'");
+ }
+
+ public String toCode(GoalPriority code) {
+ if (code == GoalPriority.HIGH)
+ return "high";
+ if (code == GoalPriority.MEDIUM)
+ return "medium";
+ if (code == GoalPriority.LOW)
+ return "low";
+ return "?";
+ }
+
+ public String toSystem(GoalPriority code) {
+ return code.getSystem();
+ }
+
+}
+
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/GoalRelationshipType.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/GoalRelationshipType.java
similarity index 94%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/GoalRelationshipType.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/GoalRelationshipType.java
index a56943f9c88..eea04ef66da 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/GoalRelationshipType.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/GoalRelationshipType.java
@@ -1,6 +1,6 @@
-package org.hl7.fhir.dstu21.model.valuesets;
+package org.hl7.fhir.dstu3.model.valuesets;
-import org.hl7.fhir.dstu21.exceptions.FHIRException;
+import org.hl7.fhir.dstu3.exceptions.FHIRException;
public enum GoalRelationshipType {
diff --git a/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/GoalRelationshipTypeEnumFactory.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/GoalRelationshipTypeEnumFactory.java
new file mode 100644
index 00000000000..d99725c6200
--- /dev/null
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/GoalRelationshipTypeEnumFactory.java
@@ -0,0 +1,42 @@
+package org.hl7.fhir.dstu3.model.valuesets;
+
+import org.hl7.fhir.dstu3.model.EnumFactory;
+
+public class GoalRelationshipTypeEnumFactory implements EnumFactory {
+
+ public GoalRelationshipType fromCode(String codeString) throws IllegalArgumentException {
+ if (codeString == null || "".equals(codeString))
+ return null;
+ if ("predecessor".equals(codeString))
+ return GoalRelationshipType.PREDECESSOR;
+ if ("successor".equals(codeString))
+ return GoalRelationshipType.SUCCESSOR;
+ if ("replacement".equals(codeString))
+ return GoalRelationshipType.REPLACEMENT;
+ if ("component".equals(codeString))
+ return GoalRelationshipType.COMPONENT;
+ if ("other".equals(codeString))
+ return GoalRelationshipType.OTHER;
+ throw new IllegalArgumentException("Unknown GoalRelationshipType code '"+codeString+"'");
+ }
+
+ public String toCode(GoalRelationshipType code) {
+ if (code == GoalRelationshipType.PREDECESSOR)
+ return "predecessor";
+ if (code == GoalRelationshipType.SUCCESSOR)
+ return "successor";
+ if (code == GoalRelationshipType.REPLACEMENT)
+ return "replacement";
+ if (code == GoalRelationshipType.COMPONENT)
+ return "component";
+ if (code == GoalRelationshipType.OTHER)
+ return "other";
+ return "?";
+ }
+
+ public String toSystem(GoalRelationshipType code) {
+ return code.getSystem();
+ }
+
+}
+
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/GoalStatusReason.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/GoalStatusReason.java
similarity index 93%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/GoalStatusReason.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/GoalStatusReason.java
index ab1c785e784..ef6c89bb3dc 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/GoalStatusReason.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/GoalStatusReason.java
@@ -1,6 +1,6 @@
-package org.hl7.fhir.dstu21.model.valuesets;
+package org.hl7.fhir.dstu3.model.valuesets;
-import org.hl7.fhir.dstu21.exceptions.FHIRException;
+import org.hl7.fhir.dstu3.exceptions.FHIRException;
public enum GoalStatusReason {
diff --git a/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/GoalStatusReasonEnumFactory.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/GoalStatusReasonEnumFactory.java
new file mode 100644
index 00000000000..0a8db718528
--- /dev/null
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/GoalStatusReasonEnumFactory.java
@@ -0,0 +1,38 @@
+package org.hl7.fhir.dstu3.model.valuesets;
+
+import org.hl7.fhir.dstu3.model.EnumFactory;
+
+public class GoalStatusReasonEnumFactory implements EnumFactory {
+
+ public GoalStatusReason fromCode(String codeString) throws IllegalArgumentException {
+ if (codeString == null || "".equals(codeString))
+ return null;
+ if ("surgery".equals(codeString))
+ return GoalStatusReason.SURGERY;
+ if ("life-event".equals(codeString))
+ return GoalStatusReason.LIFEEVENT;
+ if ("replaced".equals(codeString))
+ return GoalStatusReason.REPLACED;
+ if ("patient-request".equals(codeString))
+ return GoalStatusReason.PATIENTREQUEST;
+ throw new IllegalArgumentException("Unknown GoalStatusReason code '"+codeString+"'");
+ }
+
+ public String toCode(GoalStatusReason code) {
+ if (code == GoalStatusReason.SURGERY)
+ return "surgery";
+ if (code == GoalStatusReason.LIFEEVENT)
+ return "life-event";
+ if (code == GoalStatusReason.REPLACED)
+ return "replaced";
+ if (code == GoalStatusReason.PATIENTREQUEST)
+ return "patient-request";
+ return "?";
+ }
+
+ public String toSystem(GoalStatusReason code) {
+ return code.getSystem();
+ }
+
+}
+
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ImmunizationRecommendationDateCriterion.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/ImmunizationRecommendationDateCriterion.java
similarity index 93%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ImmunizationRecommendationDateCriterion.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/ImmunizationRecommendationDateCriterion.java
index ef5a589c789..d1d5b4a0651 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ImmunizationRecommendationDateCriterion.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/ImmunizationRecommendationDateCriterion.java
@@ -1,6 +1,6 @@
-package org.hl7.fhir.dstu21.model.valuesets;
+package org.hl7.fhir.dstu3.model.valuesets;
-import org.hl7.fhir.dstu21.exceptions.FHIRException;
+import org.hl7.fhir.dstu3.exceptions.FHIRException;
public enum ImmunizationRecommendationDateCriterion {
diff --git a/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/ImmunizationRecommendationDateCriterionEnumFactory.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/ImmunizationRecommendationDateCriterionEnumFactory.java
new file mode 100644
index 00000000000..865768ae7f3
--- /dev/null
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/ImmunizationRecommendationDateCriterionEnumFactory.java
@@ -0,0 +1,42 @@
+package org.hl7.fhir.dstu3.model.valuesets;
+
+import org.hl7.fhir.dstu3.model.EnumFactory;
+
+public class ImmunizationRecommendationDateCriterionEnumFactory implements EnumFactory {
+
+ public ImmunizationRecommendationDateCriterion fromCode(String codeString) throws IllegalArgumentException {
+ if (codeString == null || "".equals(codeString))
+ return null;
+ if ("due".equals(codeString))
+ return ImmunizationRecommendationDateCriterion.DUE;
+ if ("recommended".equals(codeString))
+ return ImmunizationRecommendationDateCriterion.RECOMMENDED;
+ if ("earliest".equals(codeString))
+ return ImmunizationRecommendationDateCriterion.EARLIEST;
+ if ("overdue".equals(codeString))
+ return ImmunizationRecommendationDateCriterion.OVERDUE;
+ if ("latest".equals(codeString))
+ return ImmunizationRecommendationDateCriterion.LATEST;
+ throw new IllegalArgumentException("Unknown ImmunizationRecommendationDateCriterion code '"+codeString+"'");
+ }
+
+ public String toCode(ImmunizationRecommendationDateCriterion code) {
+ if (code == ImmunizationRecommendationDateCriterion.DUE)
+ return "due";
+ if (code == ImmunizationRecommendationDateCriterion.RECOMMENDED)
+ return "recommended";
+ if (code == ImmunizationRecommendationDateCriterion.EARLIEST)
+ return "earliest";
+ if (code == ImmunizationRecommendationDateCriterion.OVERDUE)
+ return "overdue";
+ if (code == ImmunizationRecommendationDateCriterion.LATEST)
+ return "latest";
+ return "?";
+ }
+
+ public String toSystem(ImmunizationRecommendationDateCriterion code) {
+ return code.getSystem();
+ }
+
+}
+
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ImmunizationRecommendationStatus.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/ImmunizationRecommendationStatus.java
similarity index 91%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ImmunizationRecommendationStatus.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/ImmunizationRecommendationStatus.java
index 9299e6e88f3..86d1d92c7c7 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ImmunizationRecommendationStatus.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/ImmunizationRecommendationStatus.java
@@ -1,6 +1,6 @@
-package org.hl7.fhir.dstu21.model.valuesets;
+package org.hl7.fhir.dstu3.model.valuesets;
-import org.hl7.fhir.dstu21.exceptions.FHIRException;
+import org.hl7.fhir.dstu3.exceptions.FHIRException;
public enum ImmunizationRecommendationStatus {
diff --git a/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/ImmunizationRecommendationStatusEnumFactory.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/ImmunizationRecommendationStatusEnumFactory.java
new file mode 100644
index 00000000000..05664c45e39
--- /dev/null
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/ImmunizationRecommendationStatusEnumFactory.java
@@ -0,0 +1,30 @@
+package org.hl7.fhir.dstu3.model.valuesets;
+
+import org.hl7.fhir.dstu3.model.EnumFactory;
+
+public class ImmunizationRecommendationStatusEnumFactory implements EnumFactory {
+
+ public ImmunizationRecommendationStatus fromCode(String codeString) throws IllegalArgumentException {
+ if (codeString == null || "".equals(codeString))
+ return null;
+ if ("due".equals(codeString))
+ return ImmunizationRecommendationStatus.DUE;
+ if ("overdue".equals(codeString))
+ return ImmunizationRecommendationStatus.OVERDUE;
+ throw new IllegalArgumentException("Unknown ImmunizationRecommendationStatus code '"+codeString+"'");
+ }
+
+ public String toCode(ImmunizationRecommendationStatus code) {
+ if (code == ImmunizationRecommendationStatus.DUE)
+ return "due";
+ if (code == ImmunizationRecommendationStatus.OVERDUE)
+ return "overdue";
+ return "?";
+ }
+
+ public String toSystem(ImmunizationRecommendationStatus code) {
+ return code.getSystem();
+ }
+
+}
+
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/Intervention.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/Intervention.java
similarity index 89%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/Intervention.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/Intervention.java
index bf94e953c26..9b9233abf15 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/Intervention.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/Intervention.java
@@ -1,6 +1,6 @@
-package org.hl7.fhir.dstu21.model.valuesets;
+package org.hl7.fhir.dstu3.model.valuesets;
-import org.hl7.fhir.dstu21.exceptions.FHIRException;
+import org.hl7.fhir.dstu3.exceptions.FHIRException;
public enum Intervention {
diff --git a/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/InterventionEnumFactory.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/InterventionEnumFactory.java
new file mode 100644
index 00000000000..117b03080ad
--- /dev/null
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/InterventionEnumFactory.java
@@ -0,0 +1,30 @@
+package org.hl7.fhir.dstu3.model.valuesets;
+
+import org.hl7.fhir.dstu3.model.EnumFactory;
+
+public class InterventionEnumFactory implements EnumFactory {
+
+ public Intervention fromCode(String codeString) throws IllegalArgumentException {
+ if (codeString == null || "".equals(codeString))
+ return null;
+ if ("unknown".equals(codeString))
+ return Intervention.UNKNOWN;
+ if ("other".equals(codeString))
+ return Intervention.OTHER;
+ throw new IllegalArgumentException("Unknown Intervention code '"+codeString+"'");
+ }
+
+ public String toCode(Intervention code) {
+ if (code == Intervention.UNKNOWN)
+ return "unknown";
+ if (code == Intervention.OTHER)
+ return "other";
+ return "?";
+ }
+
+ public String toSystem(Intervention code) {
+ return code.getSystem();
+ }
+
+}
+
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/LOINC480020Answerlist.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/LOINC480020Answerlist.java
similarity index 93%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/LOINC480020Answerlist.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/LOINC480020Answerlist.java
index 88a39845768..77d4b257a24 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/LOINC480020Answerlist.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/LOINC480020Answerlist.java
@@ -1,6 +1,6 @@
-package org.hl7.fhir.dstu21.model.valuesets;
+package org.hl7.fhir.dstu3.model.valuesets;
-import org.hl7.fhir.dstu21.exceptions.FHIRException;
+import org.hl7.fhir.dstu3.exceptions.FHIRException;
public enum LOINC480020Answerlist {
diff --git a/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/LOINC480020AnswerlistEnumFactory.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/LOINC480020AnswerlistEnumFactory.java
new file mode 100644
index 00000000000..5ec19f9fd24
--- /dev/null
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/LOINC480020AnswerlistEnumFactory.java
@@ -0,0 +1,50 @@
+package org.hl7.fhir.dstu3.model.valuesets;
+
+import org.hl7.fhir.dstu3.model.EnumFactory;
+
+public class LOINC480020AnswerlistEnumFactory implements EnumFactory {
+
+ public LOINC480020Answerlist fromCode(String codeString) throws IllegalArgumentException {
+ if (codeString == null || "".equals(codeString))
+ return null;
+ if ("LA6683-2".equals(codeString))
+ return LOINC480020Answerlist.LA66832;
+ if ("LA6684-0".equals(codeString))
+ return LOINC480020Answerlist.LA66840;
+ if ("LA6685-7".equals(codeString))
+ return LOINC480020Answerlist.LA66857;
+ if ("LA18194-3".equals(codeString))
+ return LOINC480020Answerlist.LA181943;
+ if ("LA18195-0".equals(codeString))
+ return LOINC480020Answerlist.LA181950;
+ if ("LA18196-8".equals(codeString))
+ return LOINC480020Answerlist.LA181968;
+ if ("LA18197-6".equals(codeString))
+ return LOINC480020Answerlist.LA181976;
+ throw new IllegalArgumentException("Unknown LOINC480020Answerlist code '"+codeString+"'");
+ }
+
+ public String toCode(LOINC480020Answerlist code) {
+ if (code == LOINC480020Answerlist.LA66832)
+ return "LA6683-2";
+ if (code == LOINC480020Answerlist.LA66840)
+ return "LA6684-0";
+ if (code == LOINC480020Answerlist.LA66857)
+ return "LA6685-7";
+ if (code == LOINC480020Answerlist.LA181943)
+ return "LA18194-3";
+ if (code == LOINC480020Answerlist.LA181950)
+ return "LA18195-0";
+ if (code == LOINC480020Answerlist.LA181968)
+ return "LA18196-8";
+ if (code == LOINC480020Answerlist.LA181976)
+ return "LA18197-6";
+ return "?";
+ }
+
+ public String toSystem(LOINC480020Answerlist code) {
+ return code.getSystem();
+ }
+
+}
+
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/LOINC480194Answerlist.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/LOINC480194Answerlist.java
similarity index 93%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/LOINC480194Answerlist.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/LOINC480194Answerlist.java
index 08b5a165b3b..8b437b80aa4 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/LOINC480194Answerlist.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/LOINC480194Answerlist.java
@@ -1,6 +1,6 @@
-package org.hl7.fhir.dstu21.model.valuesets;
+package org.hl7.fhir.dstu3.model.valuesets;
-import org.hl7.fhir.dstu21.exceptions.FHIRException;
+import org.hl7.fhir.dstu3.exceptions.FHIRException;
public enum LOINC480194Answerlist {
diff --git a/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/LOINC480194AnswerlistEnumFactory.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/LOINC480194AnswerlistEnumFactory.java
new file mode 100644
index 00000000000..23f02f16577
--- /dev/null
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/LOINC480194AnswerlistEnumFactory.java
@@ -0,0 +1,50 @@
+package org.hl7.fhir.dstu3.model.valuesets;
+
+import org.hl7.fhir.dstu3.model.EnumFactory;
+
+public class LOINC480194AnswerlistEnumFactory implements EnumFactory {
+
+ public LOINC480194Answerlist fromCode(String codeString) throws IllegalArgumentException {
+ if (codeString == null || "".equals(codeString))
+ return null;
+ if ("LA9658-1".equals(codeString))
+ return LOINC480194Answerlist.LA96581;
+ if ("LA6692-3".equals(codeString))
+ return LOINC480194Answerlist.LA66923;
+ if ("LA6686-5".equals(codeString))
+ return LOINC480194Answerlist.LA66865;
+ if ("LA6687-3".equals(codeString))
+ return LOINC480194Answerlist.LA66873;
+ if ("LA6688-1".equals(codeString))
+ return LOINC480194Answerlist.LA66881;
+ if ("LA6689-9".equals(codeString))
+ return LOINC480194Answerlist.LA66899;
+ if ("LA6690-7".equals(codeString))
+ return LOINC480194Answerlist.LA66907;
+ throw new IllegalArgumentException("Unknown LOINC480194Answerlist code '"+codeString+"'");
+ }
+
+ public String toCode(LOINC480194Answerlist code) {
+ if (code == LOINC480194Answerlist.LA96581)
+ return "LA9658-1";
+ if (code == LOINC480194Answerlist.LA66923)
+ return "LA6692-3";
+ if (code == LOINC480194Answerlist.LA66865)
+ return "LA6686-5";
+ if (code == LOINC480194Answerlist.LA66873)
+ return "LA6687-3";
+ if (code == LOINC480194Answerlist.LA66881)
+ return "LA6688-1";
+ if (code == LOINC480194Answerlist.LA66899)
+ return "LA6689-9";
+ if (code == LOINC480194Answerlist.LA66907)
+ return "LA6690-7";
+ return "?";
+ }
+
+ public String toSystem(LOINC480194Answerlist code) {
+ return code.getSystem();
+ }
+
+}
+
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/LOINC530345Answerlist.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/LOINC530345Answerlist.java
similarity index 92%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/LOINC530345Answerlist.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/LOINC530345Answerlist.java
index ceb555b98be..7e25908a211 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/LOINC530345Answerlist.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/LOINC530345Answerlist.java
@@ -1,6 +1,6 @@
-package org.hl7.fhir.dstu21.model.valuesets;
+package org.hl7.fhir.dstu3.model.valuesets;
-import org.hl7.fhir.dstu21.exceptions.FHIRException;
+import org.hl7.fhir.dstu3.exceptions.FHIRException;
public enum LOINC530345Answerlist {
diff --git a/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/LOINC530345AnswerlistEnumFactory.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/LOINC530345AnswerlistEnumFactory.java
new file mode 100644
index 00000000000..fe73562a1c2
--- /dev/null
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/LOINC530345AnswerlistEnumFactory.java
@@ -0,0 +1,42 @@
+package org.hl7.fhir.dstu3.model.valuesets;
+
+import org.hl7.fhir.dstu3.model.EnumFactory;
+
+public class LOINC530345AnswerlistEnumFactory implements EnumFactory {
+
+ public LOINC530345Answerlist fromCode(String codeString) throws IllegalArgumentException {
+ if (codeString == null || "".equals(codeString))
+ return null;
+ if ("LA6703-8".equals(codeString))
+ return LOINC530345Answerlist.LA67038;
+ if ("LA6704-6".equals(codeString))
+ return LOINC530345Answerlist.LA67046;
+ if ("LA6705-3".equals(codeString))
+ return LOINC530345Answerlist.LA67053;
+ if ("LA6706-1".equals(codeString))
+ return LOINC530345Answerlist.LA67061;
+ if ("LA6707-9".equals(codeString))
+ return LOINC530345Answerlist.LA67079;
+ throw new IllegalArgumentException("Unknown LOINC530345Answerlist code '"+codeString+"'");
+ }
+
+ public String toCode(LOINC530345Answerlist code) {
+ if (code == LOINC530345Answerlist.LA67038)
+ return "LA6703-8";
+ if (code == LOINC530345Answerlist.LA67046)
+ return "LA6704-6";
+ if (code == LOINC530345Answerlist.LA67053)
+ return "LA6705-3";
+ if (code == LOINC530345Answerlist.LA67061)
+ return "LA6706-1";
+ if (code == LOINC530345Answerlist.LA67079)
+ return "LA6707-9";
+ return "?";
+ }
+
+ public String toSystem(LOINC530345Answerlist code) {
+ return code.getSystem();
+ }
+
+}
+
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/LOINC530378Answerlist.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/LOINC530378Answerlist.java
similarity index 92%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/LOINC530378Answerlist.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/LOINC530378Answerlist.java
index 15480010210..55e05e043c1 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/LOINC530378Answerlist.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/LOINC530378Answerlist.java
@@ -1,6 +1,6 @@
-package org.hl7.fhir.dstu21.model.valuesets;
+package org.hl7.fhir.dstu3.model.valuesets;
-import org.hl7.fhir.dstu21.exceptions.FHIRException;
+import org.hl7.fhir.dstu3.exceptions.FHIRException;
public enum LOINC530378Answerlist {
diff --git a/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/LOINC530378AnswerlistEnumFactory.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/LOINC530378AnswerlistEnumFactory.java
new file mode 100644
index 00000000000..1b13a64f5c4
--- /dev/null
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/LOINC530378AnswerlistEnumFactory.java
@@ -0,0 +1,42 @@
+package org.hl7.fhir.dstu3.model.valuesets;
+
+import org.hl7.fhir.dstu3.model.EnumFactory;
+
+public class LOINC530378AnswerlistEnumFactory implements EnumFactory {
+
+ public LOINC530378Answerlist fromCode(String codeString) throws IllegalArgumentException {
+ if (codeString == null || "".equals(codeString))
+ return null;
+ if ("LA6668-3".equals(codeString))
+ return LOINC530378Answerlist.LA66683;
+ if ("LA6669-1".equals(codeString))
+ return LOINC530378Answerlist.LA66691;
+ if ("LA6682-4".equals(codeString))
+ return LOINC530378Answerlist.LA66824;
+ if ("LA6675-8".equals(codeString))
+ return LOINC530378Answerlist.LA66758;
+ if ("LA6674-1".equals(codeString))
+ return LOINC530378Answerlist.LA66741;
+ throw new IllegalArgumentException("Unknown LOINC530378Answerlist code '"+codeString+"'");
+ }
+
+ public String toCode(LOINC530378Answerlist code) {
+ if (code == LOINC530378Answerlist.LA66683)
+ return "LA6668-3";
+ if (code == LOINC530378Answerlist.LA66691)
+ return "LA6669-1";
+ if (code == LOINC530378Answerlist.LA66824)
+ return "LA6682-4";
+ if (code == LOINC530378Answerlist.LA66758)
+ return "LA6675-8";
+ if (code == LOINC530378Answerlist.LA66741)
+ return "LA6674-1";
+ return "?";
+ }
+
+ public String toSystem(LOINC530378Answerlist code) {
+ return code.getSystem();
+ }
+
+}
+
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ListEmptyReason.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/ListEmptyReason.java
similarity index 96%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ListEmptyReason.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/ListEmptyReason.java
index 5a582724815..8a2b2c79ef2 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ListEmptyReason.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/ListEmptyReason.java
@@ -1,6 +1,6 @@
-package org.hl7.fhir.dstu21.model.valuesets;
+package org.hl7.fhir.dstu3.model.valuesets;
-import org.hl7.fhir.dstu21.exceptions.FHIRException;
+import org.hl7.fhir.dstu3.exceptions.FHIRException;
public enum ListEmptyReason {
diff --git a/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/ListEmptyReasonEnumFactory.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/ListEmptyReasonEnumFactory.java
new file mode 100644
index 00000000000..166ccca7819
--- /dev/null
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/ListEmptyReasonEnumFactory.java
@@ -0,0 +1,46 @@
+package org.hl7.fhir.dstu3.model.valuesets;
+
+import org.hl7.fhir.dstu3.model.EnumFactory;
+
+public class ListEmptyReasonEnumFactory implements EnumFactory {
+
+ public ListEmptyReason fromCode(String codeString) throws IllegalArgumentException {
+ if (codeString == null || "".equals(codeString))
+ return null;
+ if ("nilknown".equals(codeString))
+ return ListEmptyReason.NILKNOWN;
+ if ("notasked".equals(codeString))
+ return ListEmptyReason.NOTASKED;
+ if ("withheld".equals(codeString))
+ return ListEmptyReason.WITHHELD;
+ if ("unavailable".equals(codeString))
+ return ListEmptyReason.UNAVAILABLE;
+ if ("notstarted".equals(codeString))
+ return ListEmptyReason.NOTSTARTED;
+ if ("closed".equals(codeString))
+ return ListEmptyReason.CLOSED;
+ throw new IllegalArgumentException("Unknown ListEmptyReason code '"+codeString+"'");
+ }
+
+ public String toCode(ListEmptyReason code) {
+ if (code == ListEmptyReason.NILKNOWN)
+ return "nilknown";
+ if (code == ListEmptyReason.NOTASKED)
+ return "notasked";
+ if (code == ListEmptyReason.WITHHELD)
+ return "withheld";
+ if (code == ListEmptyReason.UNAVAILABLE)
+ return "unavailable";
+ if (code == ListEmptyReason.NOTSTARTED)
+ return "notstarted";
+ if (code == ListEmptyReason.CLOSED)
+ return "closed";
+ return "?";
+ }
+
+ public String toSystem(ListEmptyReason code) {
+ return code.getSystem();
+ }
+
+}
+
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ListExampleCodes.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/ListExampleCodes.java
similarity index 95%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ListExampleCodes.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/ListExampleCodes.java
index 6aabb1f710d..702b31d9715 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ListExampleCodes.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/ListExampleCodes.java
@@ -1,6 +1,6 @@
-package org.hl7.fhir.dstu21.model.valuesets;
+package org.hl7.fhir.dstu3.model.valuesets;
-import org.hl7.fhir.dstu21.exceptions.FHIRException;
+import org.hl7.fhir.dstu3.exceptions.FHIRException;
public enum ListExampleCodes {
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ListExampleCodesEnumFactory.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/ListExampleCodesEnumFactory.java
similarity index 50%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ListExampleCodesEnumFactory.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/ListExampleCodesEnumFactory.java
index 7d8d639775f..3aa06d92540 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ListExampleCodesEnumFactory.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/ListExampleCodesEnumFactory.java
@@ -1,38 +1,6 @@
-package org.hl7.fhir.dstu21.model.valuesets;
+package org.hl7.fhir.dstu3.model.valuesets;
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
+import org.hl7.fhir.dstu3.model.EnumFactory;
public class ListExampleCodesEnumFactory implements EnumFactory {
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ListItemFlag.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/ListItemFlag.java
similarity index 96%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ListItemFlag.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/ListItemFlag.java
index 81410416881..570a88536c8 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ListItemFlag.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/ListItemFlag.java
@@ -1,6 +1,6 @@
-package org.hl7.fhir.dstu21.model.valuesets;
+package org.hl7.fhir.dstu3.model.valuesets;
-import org.hl7.fhir.dstu21.exceptions.FHIRException;
+import org.hl7.fhir.dstu3.exceptions.FHIRException;
public enum ListItemFlag {
diff --git a/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/ListItemFlagEnumFactory.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/ListItemFlagEnumFactory.java
new file mode 100644
index 00000000000..937270e3c80
--- /dev/null
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/ListItemFlagEnumFactory.java
@@ -0,0 +1,46 @@
+package org.hl7.fhir.dstu3.model.valuesets;
+
+import org.hl7.fhir.dstu3.model.EnumFactory;
+
+public class ListItemFlagEnumFactory implements EnumFactory {
+
+ public ListItemFlag fromCode(String codeString) throws IllegalArgumentException {
+ if (codeString == null || "".equals(codeString))
+ return null;
+ if ("01".equals(codeString))
+ return ListItemFlag._01;
+ if ("02".equals(codeString))
+ return ListItemFlag._02;
+ if ("03".equals(codeString))
+ return ListItemFlag._03;
+ if ("04".equals(codeString))
+ return ListItemFlag._04;
+ if ("05".equals(codeString))
+ return ListItemFlag._05;
+ if ("06".equals(codeString))
+ return ListItemFlag._06;
+ throw new IllegalArgumentException("Unknown ListItemFlag code '"+codeString+"'");
+ }
+
+ public String toCode(ListItemFlag code) {
+ if (code == ListItemFlag._01)
+ return "01";
+ if (code == ListItemFlag._02)
+ return "02";
+ if (code == ListItemFlag._03)
+ return "03";
+ if (code == ListItemFlag._04)
+ return "04";
+ if (code == ListItemFlag._05)
+ return "05";
+ if (code == ListItemFlag._06)
+ return "06";
+ return "?";
+ }
+
+ public String toSystem(ListItemFlag code) {
+ return code.getSystem();
+ }
+
+}
+
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ListOrder.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/ListOrder.java
similarity index 95%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ListOrder.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/ListOrder.java
index cf5bd9a2881..97e0ae44514 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ListOrder.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/ListOrder.java
@@ -1,6 +1,6 @@
-package org.hl7.fhir.dstu21.model.valuesets;
+package org.hl7.fhir.dstu3.model.valuesets;
-import org.hl7.fhir.dstu21.exceptions.FHIRException;
+import org.hl7.fhir.dstu3.exceptions.FHIRException;
public enum ListOrder {
diff --git a/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/ListOrderEnumFactory.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/ListOrderEnumFactory.java
new file mode 100644
index 00000000000..38a9012f3a7
--- /dev/null
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/ListOrderEnumFactory.java
@@ -0,0 +1,54 @@
+package org.hl7.fhir.dstu3.model.valuesets;
+
+import org.hl7.fhir.dstu3.model.EnumFactory;
+
+public class ListOrderEnumFactory implements EnumFactory {
+
+ public ListOrder fromCode(String codeString) throws IllegalArgumentException {
+ if (codeString == null || "".equals(codeString))
+ return null;
+ if ("user".equals(codeString))
+ return ListOrder.USER;
+ if ("system".equals(codeString))
+ return ListOrder.SYSTEM;
+ if ("event-date".equals(codeString))
+ return ListOrder.EVENTDATE;
+ if ("entry-date".equals(codeString))
+ return ListOrder.ENTRYDATE;
+ if ("priority".equals(codeString))
+ return ListOrder.PRIORITY;
+ if ("alphabetic".equals(codeString))
+ return ListOrder.ALPHABETIC;
+ if ("category".equals(codeString))
+ return ListOrder.CATEGORY;
+ if ("patient".equals(codeString))
+ return ListOrder.PATIENT;
+ throw new IllegalArgumentException("Unknown ListOrder code '"+codeString+"'");
+ }
+
+ public String toCode(ListOrder code) {
+ if (code == ListOrder.USER)
+ return "user";
+ if (code == ListOrder.SYSTEM)
+ return "system";
+ if (code == ListOrder.EVENTDATE)
+ return "event-date";
+ if (code == ListOrder.ENTRYDATE)
+ return "entry-date";
+ if (code == ListOrder.PRIORITY)
+ return "priority";
+ if (code == ListOrder.ALPHABETIC)
+ return "alphabetic";
+ if (code == ListOrder.CATEGORY)
+ return "category";
+ if (code == ListOrder.PATIENT)
+ return "patient";
+ return "?";
+ }
+
+ public String toSystem(ListOrder code) {
+ return code.getSystem();
+ }
+
+}
+
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/LocationPhysicalType.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/LocationPhysicalType.java
similarity index 95%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/LocationPhysicalType.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/LocationPhysicalType.java
index 1ca5a75361c..bd18768102a 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/LocationPhysicalType.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/LocationPhysicalType.java
@@ -1,6 +1,6 @@
-package org.hl7.fhir.dstu21.model.valuesets;
+package org.hl7.fhir.dstu3.model.valuesets;
-import org.hl7.fhir.dstu21.exceptions.FHIRException;
+import org.hl7.fhir.dstu3.exceptions.FHIRException;
public enum LocationPhysicalType {
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/LocationPhysicalTypeEnumFactory.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/LocationPhysicalTypeEnumFactory.java
similarity index 53%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/LocationPhysicalTypeEnumFactory.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/LocationPhysicalTypeEnumFactory.java
index aaef87d590f..93af307096d 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/LocationPhysicalTypeEnumFactory.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/LocationPhysicalTypeEnumFactory.java
@@ -1,38 +1,6 @@
-package org.hl7.fhir.dstu21.model.valuesets;
+package org.hl7.fhir.dstu3.model.valuesets;
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
+import org.hl7.fhir.dstu3.model.EnumFactory;
public class LocationPhysicalTypeEnumFactory implements EnumFactory {
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/MessageReasonEncounter.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/MessageReasonEncounter.java
similarity index 93%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/MessageReasonEncounter.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/MessageReasonEncounter.java
index a90834ea218..5a6f92b9687 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/MessageReasonEncounter.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/MessageReasonEncounter.java
@@ -1,6 +1,6 @@
-package org.hl7.fhir.dstu21.model.valuesets;
+package org.hl7.fhir.dstu3.model.valuesets;
-import org.hl7.fhir.dstu21.exceptions.FHIRException;
+import org.hl7.fhir.dstu3.exceptions.FHIRException;
public enum MessageReasonEncounter {
diff --git a/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/MessageReasonEncounterEnumFactory.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/MessageReasonEncounterEnumFactory.java
new file mode 100644
index 00000000000..77effd94fd3
--- /dev/null
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/MessageReasonEncounterEnumFactory.java
@@ -0,0 +1,46 @@
+package org.hl7.fhir.dstu3.model.valuesets;
+
+import org.hl7.fhir.dstu3.model.EnumFactory;
+
+public class MessageReasonEncounterEnumFactory implements EnumFactory {
+
+ public MessageReasonEncounter fromCode(String codeString) throws IllegalArgumentException {
+ if (codeString == null || "".equals(codeString))
+ return null;
+ if ("admit".equals(codeString))
+ return MessageReasonEncounter.ADMIT;
+ if ("discharge".equals(codeString))
+ return MessageReasonEncounter.DISCHARGE;
+ if ("absent".equals(codeString))
+ return MessageReasonEncounter.ABSENT;
+ if ("return".equals(codeString))
+ return MessageReasonEncounter.RETURN;
+ if ("moved".equals(codeString))
+ return MessageReasonEncounter.MOVED;
+ if ("edit".equals(codeString))
+ return MessageReasonEncounter.EDIT;
+ throw new IllegalArgumentException("Unknown MessageReasonEncounter code '"+codeString+"'");
+ }
+
+ public String toCode(MessageReasonEncounter code) {
+ if (code == MessageReasonEncounter.ADMIT)
+ return "admit";
+ if (code == MessageReasonEncounter.DISCHARGE)
+ return "discharge";
+ if (code == MessageReasonEncounter.ABSENT)
+ return "absent";
+ if (code == MessageReasonEncounter.RETURN)
+ return "return";
+ if (code == MessageReasonEncounter.MOVED)
+ return "moved";
+ if (code == MessageReasonEncounter.EDIT)
+ return "edit";
+ return "?";
+ }
+
+ public String toSystem(MessageReasonEncounter code) {
+ return code.getSystem();
+ }
+
+}
+
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/MessageTransport.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/MessageTransport.java
similarity index 92%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/MessageTransport.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/MessageTransport.java
index 1a10e97020d..2c79ec73171 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/MessageTransport.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/MessageTransport.java
@@ -1,6 +1,6 @@
-package org.hl7.fhir.dstu21.model.valuesets;
+package org.hl7.fhir.dstu3.model.valuesets;
-import org.hl7.fhir.dstu21.exceptions.FHIRException;
+import org.hl7.fhir.dstu3.exceptions.FHIRException;
public enum MessageTransport {
diff --git a/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/MessageTransportEnumFactory.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/MessageTransportEnumFactory.java
new file mode 100644
index 00000000000..4d6248ff371
--- /dev/null
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/MessageTransportEnumFactory.java
@@ -0,0 +1,34 @@
+package org.hl7.fhir.dstu3.model.valuesets;
+
+import org.hl7.fhir.dstu3.model.EnumFactory;
+
+public class MessageTransportEnumFactory implements EnumFactory {
+
+ public MessageTransport fromCode(String codeString) throws IllegalArgumentException {
+ if (codeString == null || "".equals(codeString))
+ return null;
+ if ("http".equals(codeString))
+ return MessageTransport.HTTP;
+ if ("ftp".equals(codeString))
+ return MessageTransport.FTP;
+ if ("mllp".equals(codeString))
+ return MessageTransport.MLLP;
+ throw new IllegalArgumentException("Unknown MessageTransport code '"+codeString+"'");
+ }
+
+ public String toCode(MessageTransport code) {
+ if (code == MessageTransport.HTTP)
+ return "http";
+ if (code == MessageTransport.FTP)
+ return "ftp";
+ if (code == MessageTransport.MLLP)
+ return "mllp";
+ return "?";
+ }
+
+ public String toSystem(MessageTransport code) {
+ return code.getSystem();
+ }
+
+}
+
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/MissingToothReason.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/MissingToothReason.java
similarity index 90%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/MissingToothReason.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/MissingToothReason.java
index 34e06cc2257..56e5e78d1e0 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/MissingToothReason.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/MissingToothReason.java
@@ -1,6 +1,6 @@
-package org.hl7.fhir.dstu21.model.valuesets;
+package org.hl7.fhir.dstu3.model.valuesets;
-import org.hl7.fhir.dstu21.exceptions.FHIRException;
+import org.hl7.fhir.dstu3.exceptions.FHIRException;
public enum MissingToothReason {
diff --git a/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/MissingToothReasonEnumFactory.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/MissingToothReasonEnumFactory.java
new file mode 100644
index 00000000000..6d6fb552816
--- /dev/null
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/MissingToothReasonEnumFactory.java
@@ -0,0 +1,38 @@
+package org.hl7.fhir.dstu3.model.valuesets;
+
+import org.hl7.fhir.dstu3.model.EnumFactory;
+
+public class MissingToothReasonEnumFactory implements EnumFactory {
+
+ public MissingToothReason fromCode(String codeString) throws IllegalArgumentException {
+ if (codeString == null || "".equals(codeString))
+ return null;
+ if ("E".equals(codeString))
+ return MissingToothReason.E;
+ if ("C".equals(codeString))
+ return MissingToothReason.C;
+ if ("U".equals(codeString))
+ return MissingToothReason.U;
+ if ("O".equals(codeString))
+ return MissingToothReason.O;
+ throw new IllegalArgumentException("Unknown MissingToothReason code '"+codeString+"'");
+ }
+
+ public String toCode(MissingToothReason code) {
+ if (code == MissingToothReason.E)
+ return "E";
+ if (code == MissingToothReason.C)
+ return "C";
+ if (code == MissingToothReason.U)
+ return "U";
+ if (code == MissingToothReason.O)
+ return "O";
+ return "?";
+ }
+
+ public String toSystem(MissingToothReason code) {
+ return code.getSystem();
+ }
+
+}
+
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ObjectLifecycle.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/ObjectLifecycle.java
similarity index 94%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ObjectLifecycle.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/ObjectLifecycle.java
index 38db5857ed4..e2709a6413d 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ObjectLifecycle.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/ObjectLifecycle.java
@@ -1,6 +1,6 @@
-package org.hl7.fhir.dstu21.model.valuesets;
+package org.hl7.fhir.dstu3.model.valuesets;
-import org.hl7.fhir.dstu21.exceptions.FHIRException;
+import org.hl7.fhir.dstu3.exceptions.FHIRException;
public enum ObjectLifecycle {
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ObjectLifecycleEnumFactory.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/ObjectLifecycleEnumFactory.java
similarity index 55%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ObjectLifecycleEnumFactory.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/ObjectLifecycleEnumFactory.java
index 0f9ea027ab3..88257aff447 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ObjectLifecycleEnumFactory.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/ObjectLifecycleEnumFactory.java
@@ -1,38 +1,6 @@
-package org.hl7.fhir.dstu21.model.valuesets;
+package org.hl7.fhir.dstu3.model.valuesets;
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
+import org.hl7.fhir.dstu3.model.EnumFactory;
public class ObjectLifecycleEnumFactory implements EnumFactory {
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ObjectRole.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/ObjectRole.java
similarity index 97%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ObjectRole.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/ObjectRole.java
index a8ff4d0e18a..b02d254fd92 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ObjectRole.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/ObjectRole.java
@@ -1,6 +1,6 @@
-package org.hl7.fhir.dstu21.model.valuesets;
+package org.hl7.fhir.dstu3.model.valuesets;
-import org.hl7.fhir.dstu21.exceptions.FHIRException;
+import org.hl7.fhir.dstu3.exceptions.FHIRException;
public enum ObjectRole {
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ObjectRoleEnumFactory.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/ObjectRoleEnumFactory.java
similarity index 62%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ObjectRoleEnumFactory.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/ObjectRoleEnumFactory.java
index 35b408bf92e..1d3a910b0c0 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ObjectRoleEnumFactory.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/ObjectRoleEnumFactory.java
@@ -1,38 +1,6 @@
-package org.hl7.fhir.dstu21.model.valuesets;
+package org.hl7.fhir.dstu3.model.valuesets;
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
+import org.hl7.fhir.dstu3.model.EnumFactory;
public class ObjectRoleEnumFactory implements EnumFactory {
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ObjectType.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/ObjectType.java
similarity index 91%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ObjectType.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/ObjectType.java
index 33dbe27d014..d415fe0e7c5 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ObjectType.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/ObjectType.java
@@ -1,6 +1,6 @@
-package org.hl7.fhir.dstu21.model.valuesets;
+package org.hl7.fhir.dstu3.model.valuesets;
-import org.hl7.fhir.dstu21.exceptions.FHIRException;
+import org.hl7.fhir.dstu3.exceptions.FHIRException;
public enum ObjectType {
diff --git a/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/ObjectTypeEnumFactory.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/ObjectTypeEnumFactory.java
new file mode 100644
index 00000000000..62b5543f407
--- /dev/null
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/ObjectTypeEnumFactory.java
@@ -0,0 +1,38 @@
+package org.hl7.fhir.dstu3.model.valuesets;
+
+import org.hl7.fhir.dstu3.model.EnumFactory;
+
+public class ObjectTypeEnumFactory implements EnumFactory {
+
+ public ObjectType fromCode(String codeString) throws IllegalArgumentException {
+ if (codeString == null || "".equals(codeString))
+ return null;
+ if ("1".equals(codeString))
+ return ObjectType._1;
+ if ("2".equals(codeString))
+ return ObjectType._2;
+ if ("3".equals(codeString))
+ return ObjectType._3;
+ if ("4".equals(codeString))
+ return ObjectType._4;
+ throw new IllegalArgumentException("Unknown ObjectType code '"+codeString+"'");
+ }
+
+ public String toCode(ObjectType code) {
+ if (code == ObjectType._1)
+ return "1";
+ if (code == ObjectType._2)
+ return "2";
+ if (code == ObjectType._3)
+ return "3";
+ if (code == ObjectType._4)
+ return "4";
+ return "?";
+ }
+
+ public String toSystem(ObjectType code) {
+ return code.getSystem();
+ }
+
+}
+
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ObservationCategory.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/ObservationCategory.java
similarity index 97%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ObservationCategory.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/ObservationCategory.java
index 20bc9760325..f7a7c920e0c 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/ObservationCategory.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/ObservationCategory.java
@@ -1,6 +1,6 @@
-package org.hl7.fhir.dstu21.model.valuesets;
+package org.hl7.fhir.dstu3.model.valuesets;
-import org.hl7.fhir.dstu21.exceptions.FHIRException;
+import org.hl7.fhir.dstu3.exceptions.FHIRException;
public enum ObservationCategory {
diff --git a/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/ObservationCategoryEnumFactory.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/ObservationCategoryEnumFactory.java
new file mode 100644
index 00000000000..52e1738820d
--- /dev/null
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/ObservationCategoryEnumFactory.java
@@ -0,0 +1,54 @@
+package org.hl7.fhir.dstu3.model.valuesets;
+
+import org.hl7.fhir.dstu3.model.EnumFactory;
+
+public class ObservationCategoryEnumFactory implements EnumFactory {
+
+ public ObservationCategory fromCode(String codeString) throws IllegalArgumentException {
+ if (codeString == null || "".equals(codeString))
+ return null;
+ if ("social-history".equals(codeString))
+ return ObservationCategory.SOCIALHISTORY;
+ if ("vital-signs".equals(codeString))
+ return ObservationCategory.VITALSIGNS;
+ if ("imaging".equals(codeString))
+ return ObservationCategory.IMAGING;
+ if ("laboratory".equals(codeString))
+ return ObservationCategory.LABORATORY;
+ if ("procedure".equals(codeString))
+ return ObservationCategory.PROCEDURE;
+ if ("survey".equals(codeString))
+ return ObservationCategory.SURVEY;
+ if ("exam".equals(codeString))
+ return ObservationCategory.EXAM;
+ if ("therapy".equals(codeString))
+ return ObservationCategory.THERAPY;
+ throw new IllegalArgumentException("Unknown ObservationCategory code '"+codeString+"'");
+ }
+
+ public String toCode(ObservationCategory code) {
+ if (code == ObservationCategory.SOCIALHISTORY)
+ return "social-history";
+ if (code == ObservationCategory.VITALSIGNS)
+ return "vital-signs";
+ if (code == ObservationCategory.IMAGING)
+ return "imaging";
+ if (code == ObservationCategory.LABORATORY)
+ return "laboratory";
+ if (code == ObservationCategory.PROCEDURE)
+ return "procedure";
+ if (code == ObservationCategory.SURVEY)
+ return "survey";
+ if (code == ObservationCategory.EXAM)
+ return "exam";
+ if (code == ObservationCategory.THERAPY)
+ return "therapy";
+ return "?";
+ }
+
+ public String toSystem(ObservationCategory code) {
+ return code.getSystem();
+ }
+
+}
+
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/OperationOutcome.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/OperationOutcome.java
similarity index 96%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/OperationOutcome.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/OperationOutcome.java
index 2531129a4af..f0473091f29 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/OperationOutcome.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/OperationOutcome.java
@@ -1,6 +1,6 @@
-package org.hl7.fhir.dstu21.model.valuesets;
+package org.hl7.fhir.dstu3.model.valuesets;
-import org.hl7.fhir.dstu21.exceptions.FHIRException;
+import org.hl7.fhir.dstu3.exceptions.FHIRException;
public enum OperationOutcome {
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/OperationOutcomeEnumFactory.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/OperationOutcomeEnumFactory.java
similarity index 82%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/OperationOutcomeEnumFactory.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/OperationOutcomeEnumFactory.java
index 31ab12b28a7..47dd6f55084 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/OperationOutcomeEnumFactory.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/OperationOutcomeEnumFactory.java
@@ -1,38 +1,6 @@
-package org.hl7.fhir.dstu21.model.valuesets;
+package org.hl7.fhir.dstu3.model.valuesets;
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
+import org.hl7.fhir.dstu3.model.EnumFactory;
public class OperationOutcomeEnumFactory implements EnumFactory {
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/OralProsthodonticMaterial.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/OralProsthodonticMaterial.java
similarity index 91%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/OralProsthodonticMaterial.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/OralProsthodonticMaterial.java
index e7433e03e36..3269b2eec38 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/OralProsthodonticMaterial.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/OralProsthodonticMaterial.java
@@ -1,6 +1,6 @@
-package org.hl7.fhir.dstu21.model.valuesets;
+package org.hl7.fhir.dstu3.model.valuesets;
-import org.hl7.fhir.dstu21.exceptions.FHIRException;
+import org.hl7.fhir.dstu3.exceptions.FHIRException;
public enum OralProsthodonticMaterial {
diff --git a/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/OralProsthodonticMaterialEnumFactory.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/OralProsthodonticMaterialEnumFactory.java
new file mode 100644
index 00000000000..dd0b9191a8b
--- /dev/null
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/OralProsthodonticMaterialEnumFactory.java
@@ -0,0 +1,38 @@
+package org.hl7.fhir.dstu3.model.valuesets;
+
+import org.hl7.fhir.dstu3.model.EnumFactory;
+
+public class OralProsthodonticMaterialEnumFactory implements EnumFactory {
+
+ public OralProsthodonticMaterial fromCode(String codeString) throws IllegalArgumentException {
+ if (codeString == null || "".equals(codeString))
+ return null;
+ if ("1".equals(codeString))
+ return OralProsthodonticMaterial._1;
+ if ("2".equals(codeString))
+ return OralProsthodonticMaterial._2;
+ if ("3".equals(codeString))
+ return OralProsthodonticMaterial._3;
+ if ("4".equals(codeString))
+ return OralProsthodonticMaterial._4;
+ throw new IllegalArgumentException("Unknown OralProsthodonticMaterial code '"+codeString+"'");
+ }
+
+ public String toCode(OralProsthodonticMaterial code) {
+ if (code == OralProsthodonticMaterial._1)
+ return "1";
+ if (code == OralProsthodonticMaterial._2)
+ return "2";
+ if (code == OralProsthodonticMaterial._3)
+ return "3";
+ if (code == OralProsthodonticMaterial._4)
+ return "4";
+ return "?";
+ }
+
+ public String toSystem(OralProsthodonticMaterial code) {
+ return code.getSystem();
+ }
+
+}
+
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/OrganizationType.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/OrganizationType.java
similarity index 95%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/OrganizationType.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/OrganizationType.java
index e16fd2e2a1e..3748dba230a 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/OrganizationType.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/OrganizationType.java
@@ -1,6 +1,6 @@
-package org.hl7.fhir.dstu21.model.valuesets;
+package org.hl7.fhir.dstu3.model.valuesets;
-import org.hl7.fhir.dstu21.exceptions.FHIRException;
+import org.hl7.fhir.dstu3.exceptions.FHIRException;
public enum OrganizationType {
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/OrganizationTypeEnumFactory.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/OrganizationTypeEnumFactory.java
similarity index 51%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/OrganizationTypeEnumFactory.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/OrganizationTypeEnumFactory.java
index 7a21281041f..1fed745ceb7 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/OrganizationTypeEnumFactory.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/OrganizationTypeEnumFactory.java
@@ -1,38 +1,6 @@
-package org.hl7.fhir.dstu21.model.valuesets;
+package org.hl7.fhir.dstu3.model.valuesets;
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
+import org.hl7.fhir.dstu3.model.EnumFactory;
public class OrganizationTypeEnumFactory implements EnumFactory {
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/PatientContactRelationship.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/PatientContactRelationship.java
similarity index 94%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/PatientContactRelationship.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/PatientContactRelationship.java
index 5b772d72aab..6d0c248eb85 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/PatientContactRelationship.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/PatientContactRelationship.java
@@ -1,6 +1,6 @@
-package org.hl7.fhir.dstu21.model.valuesets;
+package org.hl7.fhir.dstu3.model.valuesets;
-import org.hl7.fhir.dstu21.exceptions.FHIRException;
+import org.hl7.fhir.dstu3.exceptions.FHIRException;
public enum PatientContactRelationship {
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/PatientContactRelationshipEnumFactory.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/PatientContactRelationshipEnumFactory.java
similarity index 56%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/PatientContactRelationshipEnumFactory.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/PatientContactRelationshipEnumFactory.java
index 0af889ed690..437677b719a 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/PatientContactRelationshipEnumFactory.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/PatientContactRelationshipEnumFactory.java
@@ -1,38 +1,6 @@
-package org.hl7.fhir.dstu21.model.valuesets;
+package org.hl7.fhir.dstu3.model.valuesets;
-/*
- Copyright (c) 2011+, HL7, Inc.
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without modification,
- are permitted provided that the following conditions are met:
-
- * Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
- * Neither the name of HL7 nor the names of its contributors may be used to
- endorse or promote products derived from this software without specific
- prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- POSSIBILITY OF SUCH DAMAGE.
-
-*/
-
-// Generated on Mon, Dec 21, 2015 20:18-0500 for FHIR v1.2.0
-
-
-import org.hl7.fhir.dstu21.model.EnumFactory;
+import org.hl7.fhir.dstu3.model.EnumFactory;
public class PatientContactRelationshipEnumFactory implements EnumFactory {
diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/PatientMpiMatch.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/PatientMpiMatch.java
similarity index 94%
rename from hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/PatientMpiMatch.java
rename to hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/PatientMpiMatch.java
index 13b5b648054..aaea6b8c8d8 100644
--- a/hapi-fhir-structures-dstu2.1/src/main/java/org/hl7/fhir/dstu21/model/valuesets/PatientMpiMatch.java
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/PatientMpiMatch.java
@@ -1,6 +1,6 @@
-package org.hl7.fhir.dstu21.model.valuesets;
+package org.hl7.fhir.dstu3.model.valuesets;
-import org.hl7.fhir.dstu21.exceptions.FHIRException;
+import org.hl7.fhir.dstu3.exceptions.FHIRException;
public enum PatientMpiMatch {
diff --git a/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/PatientMpiMatchEnumFactory.java b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/PatientMpiMatchEnumFactory.java
new file mode 100644
index 00000000000..8343f1520b3
--- /dev/null
+++ b/hapi-fhir-structures-dstu3/src/main/java/org/hl7/fhir/dstu3/model/valuesets/PatientMpiMatchEnumFactory.java
@@ -0,0 +1,38 @@
+package org.hl7.fhir.dstu3.model.valuesets;
+
+import org.hl7.fhir.dstu3.model.EnumFactory;
+
+public class PatientMpiMatchEnumFactory implements EnumFactory