diff --git a/hapi-fhir-base/src/main/java/ca/uhn/fhir/validation/FhirValidator.java b/hapi-fhir-base/src/main/java/ca/uhn/fhir/validation/FhirValidator.java
index c8ee78032ec..525fdd16573 100644
--- a/hapi-fhir-base/src/main/java/ca/uhn/fhir/validation/FhirValidator.java
+++ b/hapi-fhir-base/src/main/java/ca/uhn/fhir/validation/FhirValidator.java
@@ -143,7 +143,7 @@ public class FhirValidator {
public void validate(Bundle theBundle) {
Validate.notNull(theBundle, "theBundle must not be null");
- ValidationContext ctx = ValidationContext.forBundle(myContext, theBundle);
+ IValidationContext ctx = ValidationContext.forBundle(myContext, theBundle);
for (IValidator next : myValidators) {
next.validateBundle(ctx);
@@ -184,7 +184,7 @@ public class FhirValidator {
public ValidationResult validateWithResult(Bundle theBundle) {
Validate.notNull(theBundle, "theBundle must not be null");
- ValidationContext ctx = ValidationContext.forBundle(myContext, theBundle);
+ IValidationContext ctx = ValidationContext.forBundle(myContext, theBundle);
for (IValidator next : myValidators) {
next.validateBundle(ctx);
@@ -204,7 +204,7 @@ public class FhirValidator {
public ValidationResult validateWithResult(IBaseResource theResource) {
Validate.notNull(theResource, "theResource must not be null");
- ValidationContext ctx = ValidationContext.forResource(myContext, theResource);
+ IValidationContext ctx = ValidationContext.forResource(myContext, theResource);
for (IValidator next : myValidators) {
next.validateResource(ctx);
diff --git a/hapi-fhir-base/src/main/java/ca/uhn/fhir/validation/IValidationContext.java b/hapi-fhir-base/src/main/java/ca/uhn/fhir/validation/IValidationContext.java
new file mode 100644
index 00000000000..6e51e7e0c07
--- /dev/null
+++ b/hapi-fhir-base/src/main/java/ca/uhn/fhir/validation/IValidationContext.java
@@ -0,0 +1,17 @@
+package ca.uhn.fhir.validation;
+
+import org.hl7.fhir.instance.model.api.IBaseOperationOutcome;
+
+import ca.uhn.fhir.context.FhirContext;
+
+interface IValidationContext {
+
+ public abstract FhirContext getFhirContext();
+
+ public abstract IBaseOperationOutcome getOperationOutcome();
+
+ public abstract T getResource();
+
+ public abstract String getXmlEncodedResource();
+
+}
\ No newline at end of file
diff --git a/hapi-fhir-base/src/main/java/ca/uhn/fhir/validation/IValidator.java b/hapi-fhir-base/src/main/java/ca/uhn/fhir/validation/IValidator.java
index 46c974e3ad6..6113ce3a5cf 100644
--- a/hapi-fhir-base/src/main/java/ca/uhn/fhir/validation/IValidator.java
+++ b/hapi-fhir-base/src/main/java/ca/uhn/fhir/validation/IValidator.java
@@ -4,6 +4,7 @@ import org.hl7.fhir.instance.model.api.IBaseResource;
import ca.uhn.fhir.model.api.Bundle;
+
/*
* #%L
* HAPI FHIR - Core Library
@@ -24,11 +25,13 @@ import ca.uhn.fhir.model.api.Bundle;
* #L%
*/
+/**
+ * Registers
+ */
+public interface IValidator {
-interface IValidator {
+ void validateResource(IValidationContext theCtx);
- void validateResource(ValidationContext theCtx);
-
- void validateBundle(ValidationContext theContext);
+ void validateBundle(IValidationContext theContext);
}
diff --git a/hapi-fhir-base/src/main/java/ca/uhn/fhir/validation/SchemaBaseValidator.java b/hapi-fhir-base/src/main/java/ca/uhn/fhir/validation/SchemaBaseValidator.java
index e2cf184bfe0..eb38ed64782 100644
--- a/hapi-fhir-base/src/main/java/ca/uhn/fhir/validation/SchemaBaseValidator.java
+++ b/hapi-fhir-base/src/main/java/ca/uhn/fhir/validation/SchemaBaseValidator.java
@@ -49,7 +49,6 @@ import ca.uhn.fhir.context.ConfigurationException;
import ca.uhn.fhir.context.FhirContext;
import ca.uhn.fhir.context.FhirVersionEnum;
import ca.uhn.fhir.model.api.Bundle;
-import ca.uhn.fhir.model.base.resource.BaseOperationOutcome.BaseIssue;
import ca.uhn.fhir.rest.server.exceptions.InternalErrorException;
import ca.uhn.fhir.util.OperationOutcomeUtil;
@@ -77,7 +76,7 @@ class SchemaBaseValidator implements IValidator {
myCtx = theContext;
}
- private void doValidate(ValidationContext> theContext, String schemaName) {
+ private void doValidate(IValidationContext> theContext, String schemaName) {
Schema schema = loadSchema("dstu", schemaName);
try {
@@ -148,7 +147,7 @@ class SchemaBaseValidator implements IValidator {
}
@Override
- public void validateBundle(ValidationContext theContext) {
+ public void validateBundle(IValidationContext theContext) {
if (myCtx.getVersion().getVersion().isNewerThan(FhirVersionEnum.DSTU1)) {
doValidate(theContext, "fhir-single.xsd");
} else {
@@ -157,15 +156,15 @@ class SchemaBaseValidator implements IValidator {
}
@Override
- public void validateResource(ValidationContext theContext) {
+ public void validateResource(IValidationContext theContext) {
doValidate(theContext, "fhir-single.xsd");
}
private static class MyErrorHandler implements org.xml.sax.ErrorHandler {
- private ValidationContext> myContext;
+ private IValidationContext> myContext;
- public MyErrorHandler(ValidationContext> theContext) {
+ public MyErrorHandler(IValidationContext> theContext) {
myContext = theContext;
}
diff --git a/hapi-fhir-base/src/main/java/ca/uhn/fhir/validation/SchematronBaseValidator.java b/hapi-fhir-base/src/main/java/ca/uhn/fhir/validation/SchematronBaseValidator.java
index 98f5dd41575..353826d0d70 100644
--- a/hapi-fhir-base/src/main/java/ca/uhn/fhir/validation/SchematronBaseValidator.java
+++ b/hapi-fhir-base/src/main/java/ca/uhn/fhir/validation/SchematronBaseValidator.java
@@ -53,7 +53,7 @@ public class SchematronBaseValidator implements IValidator {
}
@Override
- public void validateResource(ValidationContext theCtx) {
+ public void validateResource(IValidationContext theCtx) {
ISchematronResource sch = getSchematron(theCtx);
StreamSource source = new StreamSource(new StringReader(theCtx.getXmlEncodedResource()));
@@ -93,14 +93,14 @@ public class SchematronBaseValidator implements IValidator {
}
- private ISchematronResource getSchematron(ValidationContext theCtx) {
+ private ISchematronResource getSchematron(IValidationContext theCtx) {
Class extends IBaseResource> resource = theCtx.getResource().getClass();
Class extends IBaseResource> baseResourceClass = theCtx.getFhirContext().getResourceDefinition(resource).getBaseDefinition().getImplementingClass();
return getSchematronAndCache(theCtx, "dstu", baseResourceClass);
}
- private ISchematronResource getSchematronAndCache(ValidationContext theCtx, String theVersion, Class extends IBaseResource> theClass) {
+ private ISchematronResource getSchematronAndCache(IValidationContext theCtx, String theVersion, Class extends IBaseResource> theClass) {
synchronized (myClassToSchematron) {
ISchematronResource retVal = myClassToSchematron.get(theClass);
if (retVal != null) {
@@ -122,10 +122,10 @@ public class SchematronBaseValidator implements IValidator {
}
@Override
- public void validateBundle(ValidationContext theContext) {
+ public void validateBundle(IValidationContext theContext) {
for (BundleEntry next : theContext.getResource().getEntries()) {
if (next.getResource() != null) {
- ValidationContext ctx = ValidationContext.newChild(theContext, next.getResource());
+ IValidationContext ctx = ValidationContext.newChild(theContext, next.getResource());
validateResource(ctx);
}
}
diff --git a/hapi-fhir-base/src/main/java/ca/uhn/fhir/validation/ValidationContext.java b/hapi-fhir-base/src/main/java/ca/uhn/fhir/validation/ValidationContext.java
index 5fa2efd43b0..7f7485f5d7b 100644
--- a/hapi-fhir-base/src/main/java/ca/uhn/fhir/validation/ValidationContext.java
+++ b/hapi-fhir-base/src/main/java/ca/uhn/fhir/validation/ValidationContext.java
@@ -27,24 +27,33 @@ import ca.uhn.fhir.context.FhirContext;
import ca.uhn.fhir.model.api.Bundle;
import ca.uhn.fhir.rest.server.exceptions.InternalErrorException;
-class ValidationContext {
+class ValidationContext implements IValidationContext {
+ private static final org.slf4j.Logger ourLog = org.slf4j.LoggerFactory.getLogger(ValidationContext.class);
private final IEncoder myEncoder;
private final FhirContext myFhirContext;
private IBaseOperationOutcome myOperationOutcome;
private final T myResource;
private String myXmlEncodedResource;
-private static final org.slf4j.Logger ourLog = org.slf4j.LoggerFactory.getLogger(ValidationContext.class);
+
private ValidationContext(FhirContext theContext, T theResource, IEncoder theEncoder) {
myFhirContext = theContext;
myResource = theResource;
myEncoder = theEncoder;
}
+ /* (non-Javadoc)
+ * @see ca.uhn.fhir.validation.IValidationContext#getFhirContext()
+ */
+ @Override
public FhirContext getFhirContext() {
return myFhirContext;
}
+ /* (non-Javadoc)
+ * @see ca.uhn.fhir.validation.IValidationContext#getOperationOutcome()
+ */
+ @Override
public IBaseOperationOutcome getOperationOutcome() {
if (myOperationOutcome == null) {
try {
@@ -57,10 +66,18 @@ private static final org.slf4j.Logger ourLog = org.slf4j.LoggerFactory.getLogger
return myOperationOutcome;
}
+ /* (non-Javadoc)
+ * @see ca.uhn.fhir.validation.IValidationContext#getResource()
+ */
+ @Override
public T getResource() {
return myResource;
}
+ /* (non-Javadoc)
+ * @see ca.uhn.fhir.validation.IValidationContext#getXmlEncodedResource()
+ */
+ @Override
public String getXmlEncodedResource() {
if (myXmlEncodedResource == null) {
myXmlEncodedResource = myEncoder.encode();
@@ -68,7 +85,7 @@ private static final org.slf4j.Logger ourLog = org.slf4j.LoggerFactory.getLogger
return myXmlEncodedResource;
}
- public static ValidationContext forBundle(final FhirContext theContext, final Bundle theBundle) {
+ public static IValidationContext forBundle(final FhirContext theContext, final Bundle theBundle) {
return new ValidationContext(theContext, theBundle, new IEncoder() {
@Override
public String encode() {
@@ -77,7 +94,7 @@ private static final org.slf4j.Logger ourLog = org.slf4j.LoggerFactory.getLogger
});
}
- public static ValidationContext forResource(final FhirContext theContext, final T theResource) {
+ public static IValidationContext forResource(final FhirContext theContext, final T theResource) {
return new ValidationContext(theContext, theResource, new IEncoder() {
@Override
public String encode() {
@@ -86,8 +103,8 @@ private static final org.slf4j.Logger ourLog = org.slf4j.LoggerFactory.getLogger
});
}
- public static ValidationContext newChild(ValidationContext theContext, IBaseResource theResource) {
- ValidationContext retVal = forResource(theContext.getFhirContext(), theResource);
+ public static IValidationContext newChild(IValidationContext theContext, IBaseResource theResource) {
+ ValidationContext retVal = (ValidationContext) forResource(theContext.getFhirContext(), theResource);
retVal.myOperationOutcome = theContext.getOperationOutcome();
return retVal;
}
diff --git a/hapi-fhir-structures-dstu/src/test/java/ca/uhn/fhir/rest/server/CreateTest.java b/hapi-fhir-structures-dstu/src/test/java/ca/uhn/fhir/rest/server/CreateTest.java
index 22483bd2be4..4a0c5c710f1 100644
--- a/hapi-fhir-structures-dstu/src/test/java/ca/uhn/fhir/rest/server/CreateTest.java
+++ b/hapi-fhir-structures-dstu/src/test/java/ca/uhn/fhir/rest/server/CreateTest.java
@@ -91,6 +91,50 @@ public class CreateTest {
}
+ @Test
+ public void testCreateWithWrongContentTypeXml() throws Exception {
+
+ Patient patient = new Patient();
+ patient.addIdentifier().setValue("001");
+ patient.addIdentifier().setValue("002");
+
+ HttpPost httpPost = new HttpPost("http://localhost:" + ourPort + "/Patient");
+ String inputString = ourCtx.newJsonParser().encodeResourceToString(patient);
+ ContentType inputCt = ContentType.create(Constants.CT_FHIR_XML, "UTF-8");
+ httpPost.setEntity(new StringEntity(inputString, inputCt));
+
+ HttpResponse status = ourClient.execute(httpPost);
+
+ String responseContent = IOUtils.toString(status.getEntity().getContent());
+ IOUtils.closeQuietly(status.getEntity().getContent());
+ ourLog.info("Response was:\n{}", responseContent);
+
+ assertEquals(500, status.getStatusLine().getStatusCode());
+ assertThat(responseContent, containsString("Unexpected character"));
+ }
+
+ @Test
+ public void testCreateWithWrongContentTypeJson() throws Exception {
+
+ Patient patient = new Patient();
+ patient.addIdentifier().setValue("001");
+ patient.addIdentifier().setValue("002");
+
+ HttpPost httpPost = new HttpPost("http://localhost:" + ourPort + "/Patient");
+ String inputString = ourCtx.newXmlParser().encodeResourceToString(patient);
+ ContentType inputCt = ContentType.create(Constants.CT_FHIR_JSON, "UTF-8");
+ httpPost.setEntity(new StringEntity(inputString, inputCt));
+
+ HttpResponse status = ourClient.execute(httpPost);
+
+ String responseContent = IOUtils.toString(status.getEntity().getContent());
+ IOUtils.closeQuietly(status.getEntity().getContent());
+ ourLog.info("Response was:\n{}", responseContent);
+
+ assertEquals(500, status.getStatusLine().getStatusCode());
+ assertThat(responseContent, containsString("Unexpected char"));
+ }
+
@Test
public void testCreateById() throws Exception {
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/ca/uhn/fhir/rest/server/provider/dstu2hl7org/Dstu2Hl7OrgBundleFactory.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/ca/uhn/fhir/rest/server/provider/dstu2hl7org/Dstu2Hl7OrgBundleFactory.java
index 1cd30a8c063..878cdbe8264 100644
--- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/ca/uhn/fhir/rest/server/provider/dstu2hl7org/Dstu2Hl7OrgBundleFactory.java
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/ca/uhn/fhir/rest/server/provider/dstu2hl7org/Dstu2Hl7OrgBundleFactory.java
@@ -20,7 +20,8 @@ package ca.uhn.fhir.rest.server.provider.dstu2hl7org;
* #L%
*/
-import static org.apache.commons.lang3.StringUtils.*;
+import static org.apache.commons.lang3.StringUtils.isBlank;
+import static org.apache.commons.lang3.StringUtils.isNotBlank;
import java.util.ArrayList;
import java.util.Collections;
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/formats/JsonParser.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/formats/JsonParser.java
new file mode 100644
index 00000000000..a320f1ab19e
--- /dev/null
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/formats/JsonParser.java
@@ -0,0 +1,12 @@
+package org.hl7.fhir.instance.formats;
+
+import org.hl7.fhir.instance.model.Type;
+
+public class JsonParser {
+
+ public String composeString(Type theValue, Object theObject) {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+}
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Account.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Account.java
new file mode 100644
index 00000000000..d21a98ca4d0
--- /dev/null
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Account.java
@@ -0,0 +1,705 @@
+package org.hl7.fhir.instance.model;
+
+/*
+ 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 Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
+
+import java.util.*;
+
+import org.hl7.fhir.utilities.Utilities;
+import org.hl7.fhir.instance.model.annotations.ResourceDef;
+import org.hl7.fhir.instance.model.annotations.SearchParamDefinition;
+import org.hl7.fhir.instance.model.annotations.Child;
+import org.hl7.fhir.instance.model.annotations.Description;
+import org.hl7.fhir.instance.model.annotations.Block;
+import org.hl7.fhir.instance.model.api.*;
+/**
+ * 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.
+ */
+@ResourceDef(name="Account", profile="http://hl7.org/fhir/Profile/Account")
+public class Account extends DomainResource {
+
+ public enum AccountStatus {
+ /**
+ * This account is active and may be used
+ */
+ ACTIVE,
+ /**
+ * This account is inactive and should not be used to track financial information
+ */
+ INACTIVE,
+ /**
+ * added to help the parsers
+ */
+ NULL;
+ public static AccountStatus fromCode(String codeString) throws Exception {
+ if (codeString == null || "".equals(codeString))
+ return null;
+ if ("active".equals(codeString))
+ return ACTIVE;
+ if ("inactive".equals(codeString))
+ return INACTIVE;
+ throw new Exception("Unknown AccountStatus code '"+codeString+"'");
+ }
+ public String toCode() {
+ switch (this) {
+ case ACTIVE: return "active";
+ case INACTIVE: return "inactive";
+ default: return "?";
+ }
+ }
+ public String getSystem() {
+ switch (this) {
+ case ACTIVE: return "http://hl7.org/fhir/account-status";
+ case INACTIVE: return "http://hl7.org/fhir/account-status";
+ default: return "?";
+ }
+ }
+ public String getDefinition() {
+ switch (this) {
+ case ACTIVE: return "This account is active and may be used";
+ case INACTIVE: return "This account is inactive and should not be used to track financial information";
+ default: return "?";
+ }
+ }
+ public String getDisplay() {
+ switch (this) {
+ case ACTIVE: return "Active";
+ case INACTIVE: return "Inactive";
+ default: return "?";
+ }
+ }
+ }
+
+ public static class AccountStatusEnumFactory implements EnumFactory {
+ public AccountStatus fromCode(String codeString) throws IllegalArgumentException {
+ if (codeString == null || "".equals(codeString))
+ if (codeString == null || "".equals(codeString))
+ return null;
+ if ("active".equals(codeString))
+ return AccountStatus.ACTIVE;
+ if ("inactive".equals(codeString))
+ return AccountStatus.INACTIVE;
+ throw new IllegalArgumentException("Unknown AccountStatus code '"+codeString+"'");
+ }
+ public String toCode(AccountStatus code) {
+ if (code == AccountStatus.ACTIVE)
+ return "active";
+ if (code == AccountStatus.INACTIVE)
+ return "inactive";
+ return "?";
+ }
+ }
+
+ /**
+ * Unique identifier used to reference the account. May or may not be intended for human use. (E.g. credit card number).
+ */
+ @Child(name = "identifier", type = {Identifier.class}, order=0, min=0, max=Child.MAX_UNLIMITED)
+ @Description(shortDefinition="Account number", formalDefinition="Unique identifier used to reference the account. May or may not be intended for human use. (E.g. credit card number)." )
+ protected List identifier;
+
+ /**
+ * Name used for the account when displaying it to humans in reports, etc.
+ */
+ @Child(name = "name", type = {StringType.class}, order=1, min=0, max=1)
+ @Description(shortDefinition="Human-readable label", formalDefinition="Name used for the account when displaying it to humans in reports, etc." )
+ protected StringType name;
+
+ /**
+ * Categorizes the account for reporting and searching purposes.
+ */
+ @Child(name = "type", type = {CodeableConcept.class}, order=2, min=0, max=1)
+ @Description(shortDefinition="E.g. patient, expense, depreciation", formalDefinition="Categorizes the account for reporting and searching purposes." )
+ protected CodeableConcept type;
+
+ /**
+ * Indicates whether the account is presently used/useable or not.
+ */
+ @Child(name = "status", type = {CodeType.class}, order=3, min=0, max=1)
+ @Description(shortDefinition="active | inactive", formalDefinition="Indicates whether the account is presently used/useable or not." )
+ protected Enumeration status;
+
+ /**
+ * Indicates the period of time over which the account is allowed.
+ */
+ @Child(name = "activePeriod", type = {Period.class}, order=4, min=0, max=1)
+ @Description(shortDefinition="Valid from..to", formalDefinition="Indicates the period of time over which the account is allowed." )
+ protected Period activePeriod;
+
+ /**
+ * Identifies the currency to which transactions must be converted when crediting or debiting the account.
+ */
+ @Child(name = "currency", type = {Coding.class}, order=5, min=0, max=1)
+ @Description(shortDefinition="Base currency in which balance is tracked", formalDefinition="Identifies the currency to which transactions must be converted when crediting or debiting the account." )
+ protected Coding currency;
+
+ /**
+ * Represents the sum of all credits less all debits associated with the account. Might be positive, zero or negative.
+ */
+ @Child(name = "balance", type = {Money.class}, order=6, min=0, max=1)
+ @Description(shortDefinition="How much is in account?", formalDefinition="Represents the sum of all credits less all debits associated with the account. Might be positive, zero or negative." )
+ protected Money balance;
+
+ /**
+ * Identifies the period of time the account applies to. E.g. accounts created per fiscal year, quarter, etc.
+ */
+ @Child(name = "coveragePeriod", type = {Period.class}, order=7, min=0, max=1)
+ @Description(shortDefinition="Transaction window", formalDefinition="Identifies the period of time the account applies to. E.g. accounts created per fiscal year, quarter, etc." )
+ protected Period coveragePeriod;
+
+ /**
+ * Identifies the patient, device, practitioner, location or other object the account is associated with.
+ */
+ @Child(name = "subject", type = {Patient.class, Device.class, Practitioner.class, Location.class, HealthcareService.class, Organization.class}, order=8, min=0, max=1)
+ @Description(shortDefinition="What is account tied to?", formalDefinition="Identifies the patient, device, practitioner, location or other object the account is associated with." )
+ protected Reference subject;
+
+ /**
+ * The actual object that is the target of the reference (Identifies the patient, device, practitioner, location or other object the account is associated with.)
+ */
+ protected Resource subjectTarget;
+
+ /**
+ * Indicates the organization, department, etc. with responsibility for the account.
+ */
+ @Child(name = "owner", type = {Organization.class}, order=9, min=0, max=1)
+ @Description(shortDefinition="Who is responsible?", formalDefinition="Indicates the organization, department, etc. with responsibility for the account." )
+ protected Reference owner;
+
+ /**
+ * The actual object that is the target of the reference (Indicates the organization, department, etc. with responsibility for the account.)
+ */
+ protected Organization ownerTarget;
+
+ /**
+ * Provides additional information about what the account tracks and how it is used.
+ */
+ @Child(name = "description", type = {StringType.class}, order=10, min=0, max=1)
+ @Description(shortDefinition="Explanation of purpose/use", formalDefinition="Provides additional information about what the account tracks and how it is used." )
+ protected StringType description;
+
+ private static final long serialVersionUID = -1926153194L;
+
+ /*
+ * Constructor
+ */
+ public Account() {
+ super();
+ }
+
+ /**
+ * @return {@link #identifier} (Unique identifier used to reference the account. May or may not be intended for human use. (E.g. credit card number).)
+ */
+ public List getIdentifier() {
+ if (this.identifier == null)
+ this.identifier = new ArrayList();
+ return this.identifier;
+ }
+
+ public boolean hasIdentifier() {
+ if (this.identifier == null)
+ return false;
+ for (Identifier item : this.identifier)
+ if (!item.isEmpty())
+ return true;
+ return false;
+ }
+
+ /**
+ * @return {@link #identifier} (Unique identifier used to reference the account. May or may not be intended for human use. (E.g. credit card number).)
+ */
+ // syntactic sugar
+ public Identifier addIdentifier() { //3
+ Identifier t = new Identifier();
+ if (this.identifier == null)
+ this.identifier = new ArrayList();
+ this.identifier.add(t);
+ return t;
+ }
+
+ // syntactic sugar
+ public Account addIdentifier(Identifier t) { //3
+ if (t == null)
+ return this;
+ if (this.identifier == null)
+ this.identifier = new ArrayList();
+ this.identifier.add(t);
+ return this;
+ }
+
+ /**
+ * @return {@link #name} (Name used for the account when displaying it to humans in reports, etc.). This is the underlying object with id, value and extensions. The accessor "getName" gives direct access to the value
+ */
+ public StringType getNameElement() {
+ if (this.name == null)
+ if (Configuration.errorOnAutoCreate())
+ throw new Error("Attempt to auto-create Account.name");
+ else if (Configuration.doAutoCreate())
+ this.name = new StringType(); // bb
+ return this.name;
+ }
+
+ public boolean hasNameElement() {
+ return this.name != null && !this.name.isEmpty();
+ }
+
+ public boolean hasName() {
+ return this.name != null && !this.name.isEmpty();
+ }
+
+ /**
+ * @param value {@link #name} (Name used for the account when displaying it to humans in reports, etc.). This is the underlying object with id, value and extensions. The accessor "getName" gives direct access to the value
+ */
+ public Account setNameElement(StringType value) {
+ this.name = value;
+ return this;
+ }
+
+ /**
+ * @return Name used for the account when displaying it to humans in reports, etc.
+ */
+ public String getName() {
+ return this.name == null ? null : this.name.getValue();
+ }
+
+ /**
+ * @param value Name used for the account when displaying it to humans in reports, etc.
+ */
+ public Account setName(String value) {
+ if (Utilities.noString(value))
+ this.name = null;
+ else {
+ if (this.name == null)
+ this.name = new StringType();
+ this.name.setValue(value);
+ }
+ return this;
+ }
+
+ /**
+ * @return {@link #type} (Categorizes the account for reporting and searching purposes.)
+ */
+ public CodeableConcept getType() {
+ if (this.type == null)
+ if (Configuration.errorOnAutoCreate())
+ throw new Error("Attempt to auto-create Account.type");
+ else if (Configuration.doAutoCreate())
+ this.type = new CodeableConcept(); // cc
+ return this.type;
+ }
+
+ public boolean hasType() {
+ return this.type != null && !this.type.isEmpty();
+ }
+
+ /**
+ * @param value {@link #type} (Categorizes the account for reporting and searching purposes.)
+ */
+ public Account setType(CodeableConcept value) {
+ this.type = value;
+ return this;
+ }
+
+ /**
+ * @return {@link #status} (Indicates whether the account is presently used/useable or not.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value
+ */
+ public Enumeration getStatusElement() {
+ if (this.status == null)
+ if (Configuration.errorOnAutoCreate())
+ throw new Error("Attempt to auto-create Account.status");
+ else if (Configuration.doAutoCreate())
+ this.status = new Enumeration(new AccountStatusEnumFactory()); // bb
+ return this.status;
+ }
+
+ public boolean hasStatusElement() {
+ return this.status != null && !this.status.isEmpty();
+ }
+
+ public boolean hasStatus() {
+ return this.status != null && !this.status.isEmpty();
+ }
+
+ /**
+ * @param value {@link #status} (Indicates whether the account is presently used/useable or not.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value
+ */
+ public Account setStatusElement(Enumeration value) {
+ this.status = value;
+ return this;
+ }
+
+ /**
+ * @return Indicates whether the account is presently used/useable or not.
+ */
+ public AccountStatus getStatus() {
+ return this.status == null ? null : this.status.getValue();
+ }
+
+ /**
+ * @param value Indicates whether the account is presently used/useable or not.
+ */
+ public Account setStatus(AccountStatus value) {
+ if (value == null)
+ this.status = null;
+ else {
+ if (this.status == null)
+ this.status = new Enumeration(new AccountStatusEnumFactory());
+ this.status.setValue(value);
+ }
+ return this;
+ }
+
+ /**
+ * @return {@link #activePeriod} (Indicates the period of time over which the account is allowed.)
+ */
+ public Period getActivePeriod() {
+ if (this.activePeriod == null)
+ if (Configuration.errorOnAutoCreate())
+ throw new Error("Attempt to auto-create Account.activePeriod");
+ else if (Configuration.doAutoCreate())
+ this.activePeriod = new Period(); // cc
+ return this.activePeriod;
+ }
+
+ public boolean hasActivePeriod() {
+ return this.activePeriod != null && !this.activePeriod.isEmpty();
+ }
+
+ /**
+ * @param value {@link #activePeriod} (Indicates the period of time over which the account is allowed.)
+ */
+ public Account setActivePeriod(Period value) {
+ this.activePeriod = value;
+ return this;
+ }
+
+ /**
+ * @return {@link #currency} (Identifies the currency to which transactions must be converted when crediting or debiting the account.)
+ */
+ public Coding getCurrency() {
+ if (this.currency == null)
+ if (Configuration.errorOnAutoCreate())
+ throw new Error("Attempt to auto-create Account.currency");
+ else if (Configuration.doAutoCreate())
+ this.currency = new Coding(); // cc
+ return this.currency;
+ }
+
+ public boolean hasCurrency() {
+ return this.currency != null && !this.currency.isEmpty();
+ }
+
+ /**
+ * @param value {@link #currency} (Identifies the currency to which transactions must be converted when crediting or debiting the account.)
+ */
+ public Account setCurrency(Coding value) {
+ this.currency = value;
+ return this;
+ }
+
+ /**
+ * @return {@link #balance} (Represents the sum of all credits less all debits associated with the account. Might be positive, zero or negative.)
+ */
+ public Money getBalance() {
+ if (this.balance == null)
+ if (Configuration.errorOnAutoCreate())
+ throw new Error("Attempt to auto-create Account.balance");
+ else if (Configuration.doAutoCreate())
+ this.balance = new Money(); // cc
+ return this.balance;
+ }
+
+ public boolean hasBalance() {
+ return this.balance != null && !this.balance.isEmpty();
+ }
+
+ /**
+ * @param value {@link #balance} (Represents the sum of all credits less all debits associated with the account. Might be positive, zero or negative.)
+ */
+ public Account setBalance(Money value) {
+ this.balance = value;
+ return this;
+ }
+
+ /**
+ * @return {@link #coveragePeriod} (Identifies the period of time the account applies to. E.g. accounts created per fiscal year, quarter, etc.)
+ */
+ public Period getCoveragePeriod() {
+ if (this.coveragePeriod == null)
+ if (Configuration.errorOnAutoCreate())
+ throw new Error("Attempt to auto-create Account.coveragePeriod");
+ else if (Configuration.doAutoCreate())
+ this.coveragePeriod = new Period(); // cc
+ return this.coveragePeriod;
+ }
+
+ public boolean hasCoveragePeriod() {
+ return this.coveragePeriod != null && !this.coveragePeriod.isEmpty();
+ }
+
+ /**
+ * @param value {@link #coveragePeriod} (Identifies the period of time the account applies to. E.g. accounts created per fiscal year, quarter, etc.)
+ */
+ public Account setCoveragePeriod(Period value) {
+ this.coveragePeriod = value;
+ return this;
+ }
+
+ /**
+ * @return {@link #subject} (Identifies the patient, device, practitioner, location or other object the account is associated with.)
+ */
+ public Reference getSubject() {
+ if (this.subject == null)
+ if (Configuration.errorOnAutoCreate())
+ throw new Error("Attempt to auto-create Account.subject");
+ else if (Configuration.doAutoCreate())
+ this.subject = new Reference(); // cc
+ return this.subject;
+ }
+
+ public boolean hasSubject() {
+ return this.subject != null && !this.subject.isEmpty();
+ }
+
+ /**
+ * @param value {@link #subject} (Identifies the patient, device, practitioner, location or other object the account is associated with.)
+ */
+ public Account setSubject(Reference value) {
+ this.subject = value;
+ return this;
+ }
+
+ /**
+ * @return {@link #subject} The actual object that is the target of the reference. The reference library doesn't populate this, but you can use it to hold the resource if you resolve it. (Identifies the patient, device, practitioner, location or other object the account is associated with.)
+ */
+ public Resource getSubjectTarget() {
+ return this.subjectTarget;
+ }
+
+ /**
+ * @param value {@link #subject} The actual object that is the target of the reference. The reference library doesn't use these, but you can use it to hold the resource if you resolve it. (Identifies the patient, device, practitioner, location or other object the account is associated with.)
+ */
+ public Account setSubjectTarget(Resource value) {
+ this.subjectTarget = value;
+ return this;
+ }
+
+ /**
+ * @return {@link #owner} (Indicates the organization, department, etc. with responsibility for the account.)
+ */
+ public Reference getOwner() {
+ if (this.owner == null)
+ if (Configuration.errorOnAutoCreate())
+ throw new Error("Attempt to auto-create Account.owner");
+ else if (Configuration.doAutoCreate())
+ this.owner = new Reference(); // cc
+ return this.owner;
+ }
+
+ public boolean hasOwner() {
+ return this.owner != null && !this.owner.isEmpty();
+ }
+
+ /**
+ * @param value {@link #owner} (Indicates the organization, department, etc. with responsibility for the account.)
+ */
+ public Account setOwner(Reference value) {
+ this.owner = value;
+ return this;
+ }
+
+ /**
+ * @return {@link #owner} The actual object that is the target of the reference. The reference library doesn't populate this, but you can use it to hold the resource if you resolve it. (Indicates the organization, department, etc. with responsibility for the account.)
+ */
+ public Organization getOwnerTarget() {
+ if (this.ownerTarget == null)
+ if (Configuration.errorOnAutoCreate())
+ throw new Error("Attempt to auto-create Account.owner");
+ else if (Configuration.doAutoCreate())
+ this.ownerTarget = new Organization(); // aa
+ return this.ownerTarget;
+ }
+
+ /**
+ * @param value {@link #owner} The actual object that is the target of the reference. The reference library doesn't use these, but you can use it to hold the resource if you resolve it. (Indicates the organization, department, etc. with responsibility for the account.)
+ */
+ public Account setOwnerTarget(Organization value) {
+ this.ownerTarget = value;
+ return this;
+ }
+
+ /**
+ * @return {@link #description} (Provides additional information about what the account tracks and how it is used.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value
+ */
+ public StringType getDescriptionElement() {
+ if (this.description == null)
+ if (Configuration.errorOnAutoCreate())
+ throw new Error("Attempt to auto-create Account.description");
+ else if (Configuration.doAutoCreate())
+ this.description = new StringType(); // bb
+ return this.description;
+ }
+
+ public boolean hasDescriptionElement() {
+ return this.description != null && !this.description.isEmpty();
+ }
+
+ public boolean hasDescription() {
+ return this.description != null && !this.description.isEmpty();
+ }
+
+ /**
+ * @param value {@link #description} (Provides additional information about what the account tracks and how it is used.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value
+ */
+ public Account setDescriptionElement(StringType value) {
+ this.description = value;
+ return this;
+ }
+
+ /**
+ * @return Provides additional information about what the account tracks and how it is used.
+ */
+ public String getDescription() {
+ return this.description == null ? null : this.description.getValue();
+ }
+
+ /**
+ * @param value Provides additional information about what the account tracks and how it is used.
+ */
+ public Account setDescription(String value) {
+ if (Utilities.noString(value))
+ this.description = null;
+ else {
+ if (this.description == null)
+ this.description = new StringType();
+ this.description.setValue(value);
+ }
+ return this;
+ }
+
+ protected void listChildren(List childrenList) {
+ super.listChildren(childrenList);
+ childrenList.add(new Property("identifier", "Identifier", "Unique identifier used to reference the account. May or may not be intended for human use. (E.g. credit card number).", 0, java.lang.Integer.MAX_VALUE, identifier));
+ childrenList.add(new Property("name", "string", "Name used for the account when displaying it to humans in reports, etc.", 0, java.lang.Integer.MAX_VALUE, name));
+ childrenList.add(new Property("type", "CodeableConcept", "Categorizes the account for reporting and searching purposes.", 0, java.lang.Integer.MAX_VALUE, type));
+ childrenList.add(new Property("status", "code", "Indicates whether the account is presently used/useable or not.", 0, java.lang.Integer.MAX_VALUE, status));
+ childrenList.add(new Property("activePeriod", "Period", "Indicates the period of time over which the account is allowed.", 0, java.lang.Integer.MAX_VALUE, activePeriod));
+ childrenList.add(new Property("currency", "Coding", "Identifies the currency to which transactions must be converted when crediting or debiting the account.", 0, java.lang.Integer.MAX_VALUE, currency));
+ childrenList.add(new Property("balance", "Money", "Represents the sum of all credits less all debits associated with the account. Might be positive, zero or negative.", 0, java.lang.Integer.MAX_VALUE, balance));
+ childrenList.add(new Property("coveragePeriod", "Period", "Identifies the period of time the account applies to. E.g. accounts created per fiscal year, quarter, etc.", 0, java.lang.Integer.MAX_VALUE, coveragePeriod));
+ childrenList.add(new Property("subject", "Reference(Patient|Device|Practitioner|Location|HealthcareService|Organization)", "Identifies the patient, device, practitioner, location or other object the account is associated with.", 0, java.lang.Integer.MAX_VALUE, subject));
+ childrenList.add(new Property("owner", "Reference(Organization)", "Indicates the organization, department, etc. with responsibility for the account.", 0, java.lang.Integer.MAX_VALUE, owner));
+ childrenList.add(new Property("description", "string", "Provides additional information about what the account tracks and how it is used.", 0, java.lang.Integer.MAX_VALUE, description));
+ }
+
+ public Account copy() {
+ Account dst = new Account();
+ copyValues(dst);
+ if (identifier != null) {
+ dst.identifier = new ArrayList();
+ for (Identifier i : identifier)
+ dst.identifier.add(i.copy());
+ };
+ dst.name = name == null ? null : name.copy();
+ dst.type = type == null ? null : type.copy();
+ dst.status = status == null ? null : status.copy();
+ dst.activePeriod = activePeriod == null ? null : activePeriod.copy();
+ dst.currency = currency == null ? null : currency.copy();
+ dst.balance = balance == null ? null : balance.copy();
+ dst.coveragePeriod = coveragePeriod == null ? null : coveragePeriod.copy();
+ dst.subject = subject == null ? null : subject.copy();
+ dst.owner = owner == null ? null : owner.copy();
+ dst.description = description == null ? null : description.copy();
+ return dst;
+ }
+
+ protected Account typedCopy() {
+ return copy();
+ }
+
+ @Override
+ public boolean equalsDeep(Base other) {
+ if (!super.equalsDeep(other))
+ return false;
+ if (!(other instanceof Account))
+ return false;
+ Account o = (Account) other;
+ return compareDeep(identifier, o.identifier, true) && compareDeep(name, o.name, true) && compareDeep(type, o.type, true)
+ && compareDeep(status, o.status, true) && compareDeep(activePeriod, o.activePeriod, true) && compareDeep(currency, o.currency, true)
+ && compareDeep(balance, o.balance, true) && compareDeep(coveragePeriod, o.coveragePeriod, true)
+ && compareDeep(subject, o.subject, true) && compareDeep(owner, o.owner, true) && compareDeep(description, o.description, true)
+ ;
+ }
+
+ @Override
+ public boolean equalsShallow(Base other) {
+ if (!super.equalsShallow(other))
+ return false;
+ if (!(other instanceof Account))
+ return false;
+ Account o = (Account) other;
+ return compareValues(name, o.name, true) && compareValues(status, o.status, true) && compareValues(description, o.description, true)
+ ;
+ }
+
+ public boolean isEmpty() {
+ return super.isEmpty() && (identifier == null || identifier.isEmpty()) && (name == null || name.isEmpty())
+ && (type == null || type.isEmpty()) && (status == null || status.isEmpty()) && (activePeriod == null || activePeriod.isEmpty())
+ && (currency == null || currency.isEmpty()) && (balance == null || balance.isEmpty()) && (coveragePeriod == null || coveragePeriod.isEmpty())
+ && (subject == null || subject.isEmpty()) && (owner == null || owner.isEmpty()) && (description == null || description.isEmpty())
+ ;
+ }
+
+ @Override
+ public ResourceType getResourceType() {
+ return ResourceType.Account;
+ }
+
+ @SearchParamDefinition(name="owner", path="Account.owner", description="Who is responsible?", type="reference" )
+ public static final String SP_OWNER = "owner";
+ @SearchParamDefinition(name="identifier", path="Account.identifier", description="Account number", type="token" )
+ public static final String SP_IDENTIFIER = "identifier";
+ @SearchParamDefinition(name="period", path="Account.coveragePeriod", description="Transaction window", type="date" )
+ public static final String SP_PERIOD = "period";
+ @SearchParamDefinition(name="balance", path="Account.balance", description="How much is in account?", type="number" )
+ public static final String SP_BALANCE = "balance";
+ @SearchParamDefinition(name="subject", path="Account.subject", description="What is account tied to?", type="reference" )
+ public static final String SP_SUBJECT = "subject";
+ @SearchParamDefinition(name="patient", path="Account.subject", description="What is account tied to?", type="reference" )
+ public static final String SP_PATIENT = "patient";
+ @SearchParamDefinition(name="name", path="Account.name", description="Human-readable label", type="string" )
+ public static final String SP_NAME = "name";
+ @SearchParamDefinition(name="type", path="Account.type", description="E.g. patient, expense, depreciation", type="token" )
+ public static final String SP_TYPE = "type";
+ @SearchParamDefinition(name="status", path="Account.status", description="active | inactive", type="token" )
+ public static final String SP_STATUS = "status";
+
+}
+
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Address.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Address.java
index b7147bea8d8..9577601ea66 100644
--- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Address.java
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Address.java
@@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
*/
-// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
+// Generated on Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
import java.util.*;
@@ -90,10 +90,10 @@ public class Address extends Type implements ICompositeType {
}
public String getSystem() {
switch (this) {
- case HOME: return "http://hl7.org.fhir/address-use";
- case WORK: return "http://hl7.org.fhir/address-use";
- case TEMP: return "http://hl7.org.fhir/address-use";
- case OLD: return "http://hl7.org.fhir/address-use";
+ case HOME: return "http://hl7.org/fhir/address-use";
+ case WORK: return "http://hl7.org/fhir/address-use";
+ case TEMP: return "http://hl7.org/fhir/address-use";
+ case OLD: return "http://hl7.org/fhir/address-use";
default: return "?";
}
}
@@ -110,8 +110,8 @@ public class Address extends Type implements ICompositeType {
switch (this) {
case HOME: return "Home";
case WORK: return "Work";
- case TEMP: return "Temp";
- case OLD: return "Old";
+ case TEMP: return "Temporary";
+ case OLD: return "Old / Incorrect";
default: return "?";
}
}
@@ -145,6 +145,92 @@ public class Address extends Type implements ICompositeType {
}
}
+ public enum AddressType {
+ /**
+ * Mailing addresses - PO Boxes and care-of addresses
+ */
+ POSTAL,
+ /**
+ * A physical address that can be visited
+ */
+ PHYSICAL,
+ /**
+ * An address that is both physical and postal
+ */
+ BOTH,
+ /**
+ * added to help the parsers
+ */
+ NULL;
+ public static AddressType fromCode(String codeString) throws Exception {
+ if (codeString == null || "".equals(codeString))
+ return null;
+ if ("postal".equals(codeString))
+ return POSTAL;
+ if ("physical".equals(codeString))
+ return PHYSICAL;
+ if ("both".equals(codeString))
+ return BOTH;
+ throw new Exception("Unknown AddressType code '"+codeString+"'");
+ }
+ public String toCode() {
+ switch (this) {
+ case POSTAL: return "postal";
+ case PHYSICAL: return "physical";
+ case BOTH: return "both";
+ default: return "?";
+ }
+ }
+ public String getSystem() {
+ switch (this) {
+ case POSTAL: return "http://hl7.org/fhir/address-type";
+ case PHYSICAL: return "http://hl7.org/fhir/address-type";
+ case BOTH: return "http://hl7.org/fhir/address-type";
+ default: return "?";
+ }
+ }
+ public String getDefinition() {
+ switch (this) {
+ case POSTAL: return "Mailing addresses - PO Boxes and care-of addresses";
+ case PHYSICAL: return "A physical address that can be visited";
+ case BOTH: return "An address that is both physical and postal";
+ default: return "?";
+ }
+ }
+ public String getDisplay() {
+ switch (this) {
+ case POSTAL: return "Postal";
+ case PHYSICAL: return "Physical";
+ case BOTH: return "Postal & Physical";
+ default: return "?";
+ }
+ }
+ }
+
+ public static class AddressTypeEnumFactory implements EnumFactory {
+ public AddressType fromCode(String codeString) throws IllegalArgumentException {
+ if (codeString == null || "".equals(codeString))
+ if (codeString == null || "".equals(codeString))
+ return null;
+ if ("postal".equals(codeString))
+ return AddressType.POSTAL;
+ if ("physical".equals(codeString))
+ return AddressType.PHYSICAL;
+ if ("both".equals(codeString))
+ return AddressType.BOTH;
+ throw new IllegalArgumentException("Unknown AddressType code '"+codeString+"'");
+ }
+ public String toCode(AddressType code) {
+ if (code == AddressType.POSTAL)
+ return "postal";
+ if (code == AddressType.PHYSICAL)
+ return "physical";
+ if (code == AddressType.BOTH)
+ return "both";
+ return "?";
+ }
+ }
+
/**
* The purpose of this address.
*/
@@ -152,10 +238,17 @@ public class Address extends Type implements ICompositeType {
@Description(shortDefinition="home | work | temp | old - purpose of this address", formalDefinition="The purpose of this address." )
protected Enumeration use;
+ /**
+ * Distinguishes between physical addresses (those you can visit) and mailing addresses (e.g. PO Boxes and care-of addresses). Most addresses are both.
+ */
+ @Child(name = "type", type = {CodeType.class}, order=1, min=0, max=1)
+ @Description(shortDefinition="postal | physical | both", formalDefinition="Distinguishes between physical addresses (those you can visit) and mailing addresses (e.g. PO Boxes and care-of addresses). Most addresses are both." )
+ protected Enumeration type;
+
/**
* A full text representation of the address.
*/
- @Child(name = "text", type = {StringType.class}, order=1, min=0, max=1)
+ @Child(name = "text", type = {StringType.class}, order=2, min=0, max=1)
@Description(shortDefinition="Text representation of the address", formalDefinition="A full text representation of the address." )
protected StringType text;
@@ -163,46 +256,46 @@ public class Address extends Type implements ICompositeType {
* This component contains the house number, apartment number, street name, street direction,
P.O. Box number, delivery hints, and similar address information.
*/
- @Child(name = "line", type = {StringType.class}, order=2, min=0, max=Child.MAX_UNLIMITED)
+ @Child(name = "line", type = {StringType.class}, order=3, min=0, max=Child.MAX_UNLIMITED)
@Description(shortDefinition="Street name, number, direction & P.O. Box etc", formalDefinition="This component contains the house number, apartment number, street name, street direction, \nP.O. Box number, delivery hints, and similar address information." )
protected List line;
/**
* The name of the city, town, village or other community or delivery center.
*/
- @Child(name = "city", type = {StringType.class}, order=3, min=0, max=1)
+ @Child(name = "city", type = {StringType.class}, order=4, min=0, max=1)
@Description(shortDefinition="Name of city, town etc.", formalDefinition="The name of the city, town, village or other community or delivery center." )
protected StringType city;
/**
* Sub-unit of a country with limited sovereignty in a federally organized country. A code may be used if codes are in common use (i.e. US 2 letter state codes).
*/
- @Child(name = "state", type = {StringType.class}, order=4, min=0, max=1)
+ @Child(name = "state", type = {StringType.class}, order=5, min=0, max=1)
@Description(shortDefinition="Sub-unit of country (abreviations ok)", formalDefinition="Sub-unit of a country with limited sovereignty in a federally organized country. A code may be used if codes are in common use (i.e. US 2 letter state codes)." )
protected StringType state;
/**
* A postal code designating a region defined by the postal service.
*/
- @Child(name = "postalCode", type = {StringType.class}, order=5, min=0, max=1)
+ @Child(name = "postalCode", type = {StringType.class}, order=6, min=0, max=1)
@Description(shortDefinition="Postal code for area", formalDefinition="A postal code designating a region defined by the postal service." )
protected StringType postalCode;
/**
* Country - a nation as commonly understood or generally accepted.
*/
- @Child(name = "country", type = {StringType.class}, order=6, min=0, max=1)
+ @Child(name = "country", type = {StringType.class}, order=7, min=0, max=1)
@Description(shortDefinition="Country (can be ISO 3166 3 letter code)", formalDefinition="Country - a nation as commonly understood or generally accepted." )
protected StringType country;
/**
* Time period when address was/is in use.
*/
- @Child(name = "period", type = {Period.class}, order=7, min=0, max=1)
+ @Child(name = "period", type = {Period.class}, order=8, min=0, max=1)
@Description(shortDefinition="Time period when address was/is in use", formalDefinition="Time period when address was/is in use." )
protected Period period;
- private static final long serialVersionUID = -470351694L;
+ private static final long serialVersionUID = 1890613287L;
/*
* Constructor
@@ -260,6 +353,55 @@ P.O. Box number, delivery hints, and similar address information.
return this;
}
+ /**
+ * @return {@link #type} (Distinguishes between physical addresses (those you can visit) and mailing addresses (e.g. PO Boxes and care-of addresses). Most addresses are both.). This is the underlying object with id, value and extensions. The accessor "getType" gives direct access to the value
+ */
+ public Enumeration getTypeElement() {
+ if (this.type == null)
+ if (Configuration.errorOnAutoCreate())
+ throw new Error("Attempt to auto-create Address.type");
+ else if (Configuration.doAutoCreate())
+ this.type = new Enumeration(new AddressTypeEnumFactory()); // bb
+ return this.type;
+ }
+
+ public boolean hasTypeElement() {
+ return this.type != null && !this.type.isEmpty();
+ }
+
+ public boolean hasType() {
+ return this.type != null && !this.type.isEmpty();
+ }
+
+ /**
+ * @param value {@link #type} (Distinguishes between physical addresses (those you can visit) and mailing addresses (e.g. PO Boxes and care-of addresses). Most addresses are both.). This is the underlying object with id, value and extensions. The accessor "getType" gives direct access to the value
+ */
+ public Address setTypeElement(Enumeration value) {
+ this.type = value;
+ return this;
+ }
+
+ /**
+ * @return Distinguishes between physical addresses (those you can visit) and mailing addresses (e.g. PO Boxes and care-of addresses). Most addresses are both.
+ */
+ public AddressType getType() {
+ return this.type == null ? null : this.type.getValue();
+ }
+
+ /**
+ * @param value Distinguishes between physical addresses (those you can visit) and mailing addresses (e.g. PO Boxes and care-of addresses). Most addresses are both.
+ */
+ public Address setType(AddressType value) {
+ if (value == null)
+ this.type = null;
+ else {
+ if (this.type == null)
+ this.type = new Enumeration(new AddressTypeEnumFactory());
+ this.type.setValue(value);
+ }
+ return this;
+ }
+
/**
* @return {@link #text} (A full text representation of the address.). This is the underlying object with id, value and extensions. The accessor "getText" gives direct access to the value
*/
@@ -590,6 +732,7 @@ P.O. Box number, delivery hints, and similar address information.)
protected void listChildren(List childrenList) {
super.listChildren(childrenList);
childrenList.add(new Property("use", "code", "The purpose of this address.", 0, java.lang.Integer.MAX_VALUE, use));
+ childrenList.add(new Property("type", "code", "Distinguishes between physical addresses (those you can visit) and mailing addresses (e.g. PO Boxes and care-of addresses). Most addresses are both.", 0, java.lang.Integer.MAX_VALUE, type));
childrenList.add(new Property("text", "string", "A full text representation of the address.", 0, java.lang.Integer.MAX_VALUE, text));
childrenList.add(new Property("line", "string", "This component contains the house number, apartment number, street name, street direction, \nP.O. Box number, delivery hints, and similar address information.", 0, java.lang.Integer.MAX_VALUE, line));
childrenList.add(new Property("city", "string", "The name of the city, town, village or other community or delivery center.", 0, java.lang.Integer.MAX_VALUE, city));
@@ -603,6 +746,7 @@ P.O. Box number, delivery hints, and similar address information.)
Address dst = new Address();
copyValues(dst);
dst.use = use == null ? null : use.copy();
+ dst.type = type == null ? null : type.copy();
dst.text = text == null ? null : text.copy();
if (line != null) {
dst.line = new ArrayList();
@@ -628,9 +772,10 @@ P.O. Box number, delivery hints, and similar address information.)
if (!(other instanceof Address))
return false;
Address o = (Address) other;
- return compareDeep(use, o.use, true) && compareDeep(text, o.text, true) && compareDeep(line, o.line, true)
- && compareDeep(city, o.city, true) && compareDeep(state, o.state, true) && compareDeep(postalCode, o.postalCode, true)
- && compareDeep(country, o.country, true) && compareDeep(period, o.period, true);
+ return compareDeep(use, o.use, true) && compareDeep(type, o.type, true) && compareDeep(text, o.text, true)
+ && compareDeep(line, o.line, true) && compareDeep(city, o.city, true) && compareDeep(state, o.state, true)
+ && compareDeep(postalCode, o.postalCode, true) && compareDeep(country, o.country, true) && compareDeep(period, o.period, true)
+ ;
}
@Override
@@ -640,15 +785,15 @@ P.O. Box number, delivery hints, and similar address information.)
if (!(other instanceof Address))
return false;
Address o = (Address) other;
- return compareValues(use, o.use, true) && compareValues(text, o.text, true) && compareValues(line, o.line, true)
- && compareValues(city, o.city, true) && compareValues(state, o.state, true) && compareValues(postalCode, o.postalCode, true)
- && compareValues(country, o.country, true);
+ return compareValues(use, o.use, true) && compareValues(type, o.type, true) && compareValues(text, o.text, true)
+ && compareValues(line, o.line, true) && compareValues(city, o.city, true) && compareValues(state, o.state, true)
+ && compareValues(postalCode, o.postalCode, true) && compareValues(country, o.country, true);
}
public boolean isEmpty() {
- return super.isEmpty() && (use == null || use.isEmpty()) && (text == null || text.isEmpty())
- && (line == null || line.isEmpty()) && (city == null || city.isEmpty()) && (state == null || state.isEmpty())
- && (postalCode == null || postalCode.isEmpty()) && (country == null || country.isEmpty())
+ return super.isEmpty() && (use == null || use.isEmpty()) && (type == null || type.isEmpty())
+ && (text == null || text.isEmpty()) && (line == null || line.isEmpty()) && (city == null || city.isEmpty())
+ && (state == null || state.isEmpty()) && (postalCode == null || postalCode.isEmpty()) && (country == null || country.isEmpty())
&& (period == null || period.isEmpty());
}
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Age.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Age.java
index 776eecc77aa..6ad0c29e724 100644
--- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Age.java
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Age.java
@@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
*/
-// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
+// Generated on Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
import org.hl7.fhir.instance.model.annotations.DatatypeDef;
import org.hl7.fhir.instance.model.annotations.Block;
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/AllergyIntolerance.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/AllergyIntolerance.java
index b1762cedd01..c0b419de82e 100644
--- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/AllergyIntolerance.java
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/AllergyIntolerance.java
@@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
*/
-// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
+// Generated on Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
import java.util.*;
@@ -98,11 +98,11 @@ public class AllergyIntolerance extends DomainResource {
}
public String getSystem() {
switch (this) {
- case UNCONFIRMED: return "http://hl7.org.fhir/allergy-intolerance-status";
- case CONFIRMED: return "http://hl7.org.fhir/allergy-intolerance-status";
- case RESOLVED: return "http://hl7.org.fhir/allergy-intolerance-status";
- case REFUTED: return "http://hl7.org.fhir/allergy-intolerance-status";
- case ENTEREDINERROR: return "http://hl7.org.fhir/allergy-intolerance-status";
+ case UNCONFIRMED: return "http://hl7.org/fhir/allergy-intolerance-status";
+ case CONFIRMED: return "http://hl7.org/fhir/allergy-intolerance-status";
+ case RESOLVED: return "http://hl7.org/fhir/allergy-intolerance-status";
+ case REFUTED: return "http://hl7.org/fhir/allergy-intolerance-status";
+ case ENTEREDINERROR: return "http://hl7.org/fhir/allergy-intolerance-status";
default: return "?";
}
}
@@ -198,9 +198,9 @@ public class AllergyIntolerance extends DomainResource {
}
public String getSystem() {
switch (this) {
- case LOW: return "http://hl7.org.fhir/allergy-intolerance-criticality";
- case HIGH: return "http://hl7.org.fhir/allergy-intolerance-criticality";
- case UNASSESSIBLE: return "http://hl7.org.fhir/allergy-intolerance-criticality";
+ case LOW: return "http://hl7.org/fhir/allergy-intolerance-criticality";
+ case HIGH: return "http://hl7.org/fhir/allergy-intolerance-criticality";
+ case UNASSESSIBLE: return "http://hl7.org/fhir/allergy-intolerance-criticality";
default: return "?";
}
}
@@ -277,8 +277,8 @@ public class AllergyIntolerance extends DomainResource {
}
public String getSystem() {
switch (this) {
- case IMMUNE: return "http://hl7.org.fhir/allergy-intolerance-type";
- case NONIMMUNE: return "http://hl7.org.fhir/allergy-intolerance-type";
+ case IMMUNE: return "http://hl7.org/fhir/allergy-intolerance-type";
+ case NONIMMUNE: return "http://hl7.org/fhir/allergy-intolerance-type";
default: return "?";
}
}
@@ -356,9 +356,9 @@ public class AllergyIntolerance extends DomainResource {
}
public String getSystem() {
switch (this) {
- case FOOD: return "http://hl7.org.fhir/allergy-intolerance-category";
- case MEDICATION: return "http://hl7.org.fhir/allergy-intolerance-category";
- case ENVIRONMENT: return "http://hl7.org.fhir/allergy-intolerance-category";
+ case FOOD: return "http://hl7.org/fhir/allergy-intolerance-category";
+ case MEDICATION: return "http://hl7.org/fhir/allergy-intolerance-category";
+ case ENVIRONMENT: return "http://hl7.org/fhir/allergy-intolerance-category";
default: return "?";
}
}
@@ -442,9 +442,9 @@ public class AllergyIntolerance extends DomainResource {
}
public String getSystem() {
switch (this) {
- case UNLIKELY: return "http://hl7.org.fhir/reaction-event-certainty";
- case LIKELY: return "http://hl7.org.fhir/reaction-event-certainty";
- case CONFIRMED: return "http://hl7.org.fhir/reaction-event-certainty";
+ case UNLIKELY: return "http://hl7.org/fhir/reaction-event-certainty";
+ case LIKELY: return "http://hl7.org/fhir/reaction-event-certainty";
+ case CONFIRMED: return "http://hl7.org/fhir/reaction-event-certainty";
default: return "?";
}
}
@@ -528,9 +528,9 @@ public class AllergyIntolerance extends DomainResource {
}
public String getSystem() {
switch (this) {
- case MILD: return "http://hl7.org.fhir/reaction-event-severity";
- case MODERATE: return "http://hl7.org.fhir/reaction-event-severity";
- case SEVERE: return "http://hl7.org.fhir/reaction-event-severity";
+ case MILD: return "http://hl7.org/fhir/reaction-event-severity";
+ case MODERATE: return "http://hl7.org/fhir/reaction-event-severity";
+ case SEVERE: return "http://hl7.org/fhir/reaction-event-severity";
default: return "?";
}
}
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Annotation.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Annotation.java
new file mode 100644
index 00000000000..867c84378dc
--- /dev/null
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Annotation.java
@@ -0,0 +1,273 @@
+package org.hl7.fhir.instance.model;
+
+/*
+ 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 Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
+
+import java.util.*;
+
+import org.hl7.fhir.utilities.Utilities;
+import org.hl7.fhir.instance.model.annotations.Child;
+import org.hl7.fhir.instance.model.annotations.Description;
+import org.hl7.fhir.instance.model.annotations.DatatypeDef;
+import org.hl7.fhir.instance.model.annotations.Block;
+import org.hl7.fhir.instance.model.api.*;
+/**
+ * A text note which also contains information about who made the statement and when.
+ */
+@DatatypeDef(name="Annotation")
+public class Annotation extends Type implements ICompositeType {
+
+ /**
+ * The individual responsible for making the annotation.
+ */
+ @Child(name = "author", type = {Practitioner.class, Patient.class, RelatedPerson.class, StringType.class}, order=0, min=0, max=1)
+ @Description(shortDefinition="Individual responsible for the annotation", formalDefinition="The individual responsible for making the annotation." )
+ protected Type author;
+
+ /**
+ * Indicates when this particular annotation was made.
+ */
+ @Child(name = "time", type = {DateTimeType.class}, order=1, min=0, max=1)
+ @Description(shortDefinition="When the annotation was made", formalDefinition="Indicates when this particular annotation was made." )
+ protected DateTimeType time;
+
+ /**
+ * The text of the annotation.
+ */
+ @Child(name = "text", type = {StringType.class}, order=2, min=1, max=1)
+ @Description(shortDefinition="The annotation - text content", formalDefinition="The text of the annotation." )
+ protected StringType text;
+
+ private static final long serialVersionUID = -575590381L;
+
+ /*
+ * Constructor
+ */
+ public Annotation() {
+ super();
+ }
+
+ /*
+ * Constructor
+ */
+ public Annotation(StringType text) {
+ super();
+ this.text = text;
+ }
+
+ /**
+ * @return {@link #author} (The individual responsible for making the annotation.)
+ */
+ public Type getAuthor() {
+ return this.author;
+ }
+
+ /**
+ * @return {@link #author} (The individual responsible for making the annotation.)
+ */
+ public Reference getAuthorReference() throws Exception {
+ if (!(this.author instanceof Reference))
+ throw new Exception("Type mismatch: the type Reference was expected, but "+this.author.getClass().getName()+" was encountered");
+ return (Reference) this.author;
+ }
+
+ public boolean hasAuthorReference() throws Exception {
+ return this.author instanceof Reference;
+ }
+
+ /**
+ * @return {@link #author} (The individual responsible for making the annotation.)
+ */
+ public StringType getAuthorStringType() throws Exception {
+ if (!(this.author instanceof StringType))
+ throw new Exception("Type mismatch: the type StringType was expected, but "+this.author.getClass().getName()+" was encountered");
+ return (StringType) this.author;
+ }
+
+ public boolean hasAuthorStringType() throws Exception {
+ return this.author instanceof StringType;
+ }
+
+ public boolean hasAuthor() {
+ return this.author != null && !this.author.isEmpty();
+ }
+
+ /**
+ * @param value {@link #author} (The individual responsible for making the annotation.)
+ */
+ public Annotation setAuthor(Type value) {
+ this.author = value;
+ return this;
+ }
+
+ /**
+ * @return {@link #time} (Indicates when this particular annotation was made.). This is the underlying object with id, value and extensions. The accessor "getTime" gives direct access to the value
+ */
+ public DateTimeType getTimeElement() {
+ if (this.time == null)
+ if (Configuration.errorOnAutoCreate())
+ throw new Error("Attempt to auto-create Annotation.time");
+ else if (Configuration.doAutoCreate())
+ this.time = new DateTimeType(); // bb
+ return this.time;
+ }
+
+ public boolean hasTimeElement() {
+ return this.time != null && !this.time.isEmpty();
+ }
+
+ public boolean hasTime() {
+ return this.time != null && !this.time.isEmpty();
+ }
+
+ /**
+ * @param value {@link #time} (Indicates when this particular annotation was made.). This is the underlying object with id, value and extensions. The accessor "getTime" gives direct access to the value
+ */
+ public Annotation setTimeElement(DateTimeType value) {
+ this.time = value;
+ return this;
+ }
+
+ /**
+ * @return Indicates when this particular annotation was made.
+ */
+ public Date getTime() {
+ return this.time == null ? null : this.time.getValue();
+ }
+
+ /**
+ * @param value Indicates when this particular annotation was made.
+ */
+ public Annotation setTime(Date value) {
+ if (value == null)
+ this.time = null;
+ else {
+ if (this.time == null)
+ this.time = new DateTimeType();
+ this.time.setValue(value);
+ }
+ return this;
+ }
+
+ /**
+ * @return {@link #text} (The text of the annotation.). This is the underlying object with id, value and extensions. The accessor "getText" gives direct access to the value
+ */
+ public StringType getTextElement() {
+ if (this.text == null)
+ if (Configuration.errorOnAutoCreate())
+ throw new Error("Attempt to auto-create Annotation.text");
+ else if (Configuration.doAutoCreate())
+ this.text = new StringType(); // bb
+ return this.text;
+ }
+
+ public boolean hasTextElement() {
+ return this.text != null && !this.text.isEmpty();
+ }
+
+ public boolean hasText() {
+ return this.text != null && !this.text.isEmpty();
+ }
+
+ /**
+ * @param value {@link #text} (The text of the annotation.). This is the underlying object with id, value and extensions. The accessor "getText" gives direct access to the value
+ */
+ public Annotation setTextElement(StringType value) {
+ this.text = value;
+ return this;
+ }
+
+ /**
+ * @return The text of the annotation.
+ */
+ public String getText() {
+ return this.text == null ? null : this.text.getValue();
+ }
+
+ /**
+ * @param value The text of the annotation.
+ */
+ public Annotation setText(String value) {
+ if (this.text == null)
+ this.text = new StringType();
+ this.text.setValue(value);
+ return this;
+ }
+
+ protected void listChildren(List childrenList) {
+ super.listChildren(childrenList);
+ childrenList.add(new Property("author[x]", "Reference(Practitioner|Patient|RelatedPerson)|string", "The individual responsible for making the annotation.", 0, java.lang.Integer.MAX_VALUE, author));
+ childrenList.add(new Property("time", "dateTime", "Indicates when this particular annotation was made.", 0, java.lang.Integer.MAX_VALUE, time));
+ childrenList.add(new Property("text", "string", "The text of the annotation.", 0, java.lang.Integer.MAX_VALUE, text));
+ }
+
+ public Annotation copy() {
+ Annotation dst = new Annotation();
+ copyValues(dst);
+ dst.author = author == null ? null : author.copy();
+ dst.time = time == null ? null : time.copy();
+ dst.text = text == null ? null : text.copy();
+ return dst;
+ }
+
+ protected Annotation typedCopy() {
+ return copy();
+ }
+
+ @Override
+ public boolean equalsDeep(Base other) {
+ if (!super.equalsDeep(other))
+ return false;
+ if (!(other instanceof Annotation))
+ return false;
+ Annotation o = (Annotation) other;
+ return compareDeep(author, o.author, true) && compareDeep(time, o.time, true) && compareDeep(text, o.text, true)
+ ;
+ }
+
+ @Override
+ public boolean equalsShallow(Base other) {
+ if (!super.equalsShallow(other))
+ return false;
+ if (!(other instanceof Annotation))
+ return false;
+ Annotation o = (Annotation) other;
+ return compareValues(time, o.time, true) && compareValues(text, o.text, true);
+ }
+
+ public boolean isEmpty() {
+ return super.isEmpty() && (author == null || author.isEmpty()) && (time == null || time.isEmpty())
+ && (text == null || text.isEmpty());
+ }
+
+
+}
+
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Appointment.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Appointment.java
index 174980dcd54..1a635edcecb 100644
--- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Appointment.java
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Appointment.java
@@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
*/
-// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
+// Generated on Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
import java.util.*;
@@ -105,12 +105,12 @@ public class Appointment extends DomainResource {
}
public String getSystem() {
switch (this) {
- case PENDING: return "http://hl7.org.fhir/appointmentstatus";
- case BOOKED: return "http://hl7.org.fhir/appointmentstatus";
- case ARRIVED: return "http://hl7.org.fhir/appointmentstatus";
- case FULFILLED: return "http://hl7.org.fhir/appointmentstatus";
- case CANCELLED: return "http://hl7.org.fhir/appointmentstatus";
- case NOSHOW: return "http://hl7.org.fhir/appointmentstatus";
+ case PENDING: return "http://hl7.org/fhir/appointmentstatus";
+ case BOOKED: return "http://hl7.org/fhir/appointmentstatus";
+ case ARRIVED: return "http://hl7.org/fhir/appointmentstatus";
+ case FULFILLED: return "http://hl7.org/fhir/appointmentstatus";
+ case CANCELLED: return "http://hl7.org/fhir/appointmentstatus";
+ case NOSHOW: return "http://hl7.org/fhir/appointmentstatus";
default: return "?";
}
}
@@ -212,9 +212,9 @@ public class Appointment extends DomainResource {
}
public String getSystem() {
switch (this) {
- case REQUIRED: return "http://hl7.org.fhir/participantrequired";
- case OPTIONAL: return "http://hl7.org.fhir/participantrequired";
- case INFORMATIONONLY: return "http://hl7.org.fhir/participantrequired";
+ case REQUIRED: return "http://hl7.org/fhir/participantrequired";
+ case OPTIONAL: return "http://hl7.org/fhir/participantrequired";
+ case INFORMATIONONLY: return "http://hl7.org/fhir/participantrequired";
default: return "?";
}
}
@@ -305,10 +305,10 @@ public class Appointment extends DomainResource {
}
public String getSystem() {
switch (this) {
- case ACCEPTED: return "http://hl7.org.fhir/participationstatus";
- case DECLINED: return "http://hl7.org.fhir/participationstatus";
- case TENTATIVE: return "http://hl7.org.fhir/participationstatus";
- case NEEDSACTION: return "http://hl7.org.fhir/participationstatus";
+ case ACCEPTED: return "http://hl7.org/fhir/participationstatus";
+ case DECLINED: return "http://hl7.org/fhir/participationstatus";
+ case TENTATIVE: return "http://hl7.org/fhir/participationstatus";
+ case NEEDSACTION: return "http://hl7.org/fhir/participationstatus";
default: return "?";
}
}
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/AppointmentResponse.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/AppointmentResponse.java
index b01f1776e76..5e4a302118d 100644
--- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/AppointmentResponse.java
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/AppointmentResponse.java
@@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
*/
-// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
+// Generated on Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
import java.util.*;
@@ -105,12 +105,12 @@ public class AppointmentResponse extends DomainResource {
}
public String getSystem() {
switch (this) {
- case ACCEPTED: return "http://hl7.org.fhir/participantstatus";
- case DECLINED: return "http://hl7.org.fhir/participantstatus";
- case TENTATIVE: return "http://hl7.org.fhir/participantstatus";
- case INPROCESS: return "http://hl7.org.fhir/participantstatus";
- case COMPLETED: return "http://hl7.org.fhir/participantstatus";
- case NEEDSACTION: return "http://hl7.org.fhir/participantstatus";
+ case ACCEPTED: return "http://hl7.org/fhir/participantstatus";
+ case DECLINED: return "http://hl7.org/fhir/participantstatus";
+ case TENTATIVE: return "http://hl7.org/fhir/participantstatus";
+ case INPROCESS: return "http://hl7.org/fhir/participantstatus";
+ case COMPLETED: return "http://hl7.org/fhir/participantstatus";
+ case NEEDSACTION: return "http://hl7.org/fhir/participantstatus";
default: return "?";
}
}
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Attachment.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Attachment.java
index 4bc1a919bed..c5b73994363 100644
--- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Attachment.java
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Attachment.java
@@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
*/
-// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
+// Generated on Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
import java.util.*;
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/AuditEvent.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/AuditEvent.java
index a0b3e39cc59..b721c927b31 100644
--- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/AuditEvent.java
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/AuditEvent.java
@@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
*/
-// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
+// Generated on Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
import java.util.*;
@@ -98,11 +98,11 @@ public class AuditEvent extends DomainResource {
}
public String getSystem() {
switch (this) {
- case C: return "http://hl7.org.fhir/audit-event-action";
- case R: return "http://hl7.org.fhir/audit-event-action";
- case U: return "http://hl7.org.fhir/audit-event-action";
- case D: return "http://hl7.org.fhir/audit-event-action";
- case E: return "http://hl7.org.fhir/audit-event-action";
+ case C: return "http://hl7.org/fhir/audit-event-action";
+ case R: return "http://hl7.org/fhir/audit-event-action";
+ case U: return "http://hl7.org/fhir/audit-event-action";
+ case D: return "http://hl7.org/fhir/audit-event-action";
+ case E: return "http://hl7.org/fhir/audit-event-action";
default: return "?";
}
}
@@ -205,10 +205,10 @@ public class AuditEvent extends DomainResource {
}
public String getSystem() {
switch (this) {
- case _0: return "http://hl7.org.fhir/audit-event-outcome";
- case _4: return "http://hl7.org.fhir/audit-event-outcome";
- case _8: return "http://hl7.org.fhir/audit-event-outcome";
- case _12: return "http://hl7.org.fhir/audit-event-outcome";
+ case _0: return "http://hl7.org/fhir/audit-event-outcome";
+ case _4: return "http://hl7.org/fhir/audit-event-outcome";
+ case _8: return "http://hl7.org/fhir/audit-event-outcome";
+ case _12: return "http://hl7.org/fhir/audit-event-outcome";
default: return "?";
}
}
@@ -312,11 +312,11 @@ public class AuditEvent extends DomainResource {
}
public String getSystem() {
switch (this) {
- case _1: return "http://hl7.org.fhir/network-type";
- case _2: return "http://hl7.org.fhir/network-type";
- case _3: return "http://hl7.org.fhir/network-type";
- case _4: return "http://hl7.org.fhir/network-type";
- case _5: return "http://hl7.org.fhir/network-type";
+ case _1: return "http://hl7.org/fhir/network-type";
+ case _2: return "http://hl7.org/fhir/network-type";
+ case _3: return "http://hl7.org/fhir/network-type";
+ case _4: return "http://hl7.org/fhir/network-type";
+ case _5: return "http://hl7.org/fhir/network-type";
default: return "?";
}
}
@@ -332,11 +332,11 @@ public class AuditEvent extends DomainResource {
}
public String getDisplay() {
switch (this) {
- case _1: return " ";
- case _2: return " ";
- case _3: return " ";
- case _4: return " ";
- case _5: return " ";
+ case _1: return "Machine Name";
+ case _2: return "IP Address";
+ case _3: return "Telephone Number";
+ case _4: return "Email address";
+ case _5: return "URI";
default: return "?";
}
}
@@ -419,10 +419,10 @@ public class AuditEvent extends DomainResource {
}
public String getSystem() {
switch (this) {
- case _1: return "http://hl7.org.fhir/object-type";
- case _2: return "http://hl7.org.fhir/object-type";
- case _3: return "http://hl7.org.fhir/object-type";
- case _4: return "http://hl7.org.fhir/object-type";
+ case _1: return "http://hl7.org/fhir/object-type";
+ case _2: return "http://hl7.org/fhir/object-type";
+ case _3: return "http://hl7.org/fhir/object-type";
+ case _4: return "http://hl7.org/fhir/object-type";
default: return "?";
}
}
@@ -437,10 +437,10 @@ public class AuditEvent extends DomainResource {
}
public String getDisplay() {
switch (this) {
- case _1: return " ";
- case _2: return " ";
- case _3: return " ";
- case _4: return " ";
+ case _1: return "Person";
+ case _2: return "System Object";
+ case _3: return "Organization";
+ case _4: return "Other";
default: return "?";
}
}
@@ -659,30 +659,30 @@ public class AuditEvent extends DomainResource {
}
public String getSystem() {
switch (this) {
- case _1: return "http://hl7.org.fhir/object-role";
- case _2: return "http://hl7.org.fhir/object-role";
- case _3: return "http://hl7.org.fhir/object-role";
- case _4: return "http://hl7.org.fhir/object-role";
- case _5: return "http://hl7.org.fhir/object-role";
- case _6: return "http://hl7.org.fhir/object-role";
- case _7: return "http://hl7.org.fhir/object-role";
- case _8: return "http://hl7.org.fhir/object-role";
- case _9: return "http://hl7.org.fhir/object-role";
- case _10: return "http://hl7.org.fhir/object-role";
- case _11: return "http://hl7.org.fhir/object-role";
- case _12: return "http://hl7.org.fhir/object-role";
- case _13: return "http://hl7.org.fhir/object-role";
- case _14: return "http://hl7.org.fhir/object-role";
- case _15: return "http://hl7.org.fhir/object-role";
- case _16: return "http://hl7.org.fhir/object-role";
- case _17: return "http://hl7.org.fhir/object-role";
- case _18: return "http://hl7.org.fhir/object-role";
- case _19: return "http://hl7.org.fhir/object-role";
- case _20: return "http://hl7.org.fhir/object-role";
- case _21: return "http://hl7.org.fhir/object-role";
- case _22: return "http://hl7.org.fhir/object-role";
- case _23: return "http://hl7.org.fhir/object-role";
- case _24: return "http://hl7.org.fhir/object-role";
+ case _1: return "http://hl7.org/fhir/object-role";
+ case _2: return "http://hl7.org/fhir/object-role";
+ case _3: return "http://hl7.org/fhir/object-role";
+ case _4: return "http://hl7.org/fhir/object-role";
+ case _5: return "http://hl7.org/fhir/object-role";
+ case _6: return "http://hl7.org/fhir/object-role";
+ case _7: return "http://hl7.org/fhir/object-role";
+ case _8: return "http://hl7.org/fhir/object-role";
+ case _9: return "http://hl7.org/fhir/object-role";
+ case _10: return "http://hl7.org/fhir/object-role";
+ case _11: return "http://hl7.org/fhir/object-role";
+ case _12: return "http://hl7.org/fhir/object-role";
+ case _13: return "http://hl7.org/fhir/object-role";
+ case _14: return "http://hl7.org/fhir/object-role";
+ case _15: return "http://hl7.org/fhir/object-role";
+ case _16: return "http://hl7.org/fhir/object-role";
+ case _17: return "http://hl7.org/fhir/object-role";
+ case _18: return "http://hl7.org/fhir/object-role";
+ case _19: return "http://hl7.org/fhir/object-role";
+ case _20: return "http://hl7.org/fhir/object-role";
+ case _21: return "http://hl7.org/fhir/object-role";
+ case _22: return "http://hl7.org/fhir/object-role";
+ case _23: return "http://hl7.org/fhir/object-role";
+ case _24: return "http://hl7.org/fhir/object-role";
default: return "?";
}
}
@@ -976,21 +976,21 @@ public class AuditEvent extends DomainResource {
}
public String getSystem() {
switch (this) {
- case _1: return "http://hl7.org.fhir/object-lifecycle";
- case _2: return "http://hl7.org.fhir/object-lifecycle";
- case _3: return "http://hl7.org.fhir/object-lifecycle";
- case _4: return "http://hl7.org.fhir/object-lifecycle";
- case _5: return "http://hl7.org.fhir/object-lifecycle";
- case _6: return "http://hl7.org.fhir/object-lifecycle";
- case _7: return "http://hl7.org.fhir/object-lifecycle";
- case _8: return "http://hl7.org.fhir/object-lifecycle";
- case _9: return "http://hl7.org.fhir/object-lifecycle";
- case _10: return "http://hl7.org.fhir/object-lifecycle";
- case _11: return "http://hl7.org.fhir/object-lifecycle";
- case _12: return "http://hl7.org.fhir/object-lifecycle";
- case _13: return "http://hl7.org.fhir/object-lifecycle";
- case _14: return "http://hl7.org.fhir/object-lifecycle";
- case _15: return "http://hl7.org.fhir/object-lifecycle";
+ case _1: return "http://hl7.org/fhir/object-lifecycle";
+ case _2: return "http://hl7.org/fhir/object-lifecycle";
+ case _3: return "http://hl7.org/fhir/object-lifecycle";
+ case _4: return "http://hl7.org/fhir/object-lifecycle";
+ case _5: return "http://hl7.org/fhir/object-lifecycle";
+ case _6: return "http://hl7.org/fhir/object-lifecycle";
+ case _7: return "http://hl7.org/fhir/object-lifecycle";
+ case _8: return "http://hl7.org/fhir/object-lifecycle";
+ case _9: return "http://hl7.org/fhir/object-lifecycle";
+ case _10: return "http://hl7.org/fhir/object-lifecycle";
+ case _11: return "http://hl7.org/fhir/object-lifecycle";
+ case _12: return "http://hl7.org/fhir/object-lifecycle";
+ case _13: return "http://hl7.org/fhir/object-lifecycle";
+ case _14: return "http://hl7.org/fhir/object-lifecycle";
+ case _15: return "http://hl7.org/fhir/object-lifecycle";
default: return "?";
}
}
@@ -1016,21 +1016,21 @@ public class AuditEvent extends DomainResource {
}
public String getDisplay() {
switch (this) {
- case _1: return " ";
- case _2: return " ";
- case _3: return " ";
- case _4: return " ";
- case _5: return " ";
- case _6: return " ";
- case _7: return " ";
- case _8: return " ";
- case _9: return " ";
- case _10: return " ";
- case _11: return " ";
- case _12: return " ";
- case _13: return " ";
- case _14: return " ";
- case _15: return " ";
+ case _1: return "Origination / Creation";
+ case _2: return "Import / Copy from original";
+ case _3: return "Amendment";
+ case _4: return "Verification";
+ case _5: return "Translation";
+ case _6: return "Access / Use";
+ case _7: return "De-identification";
+ case _8: return "Aggregation, summarization, derivation";
+ case _9: return "Report";
+ case _10: return "Export / Copy to target";
+ case _11: return "Disclosure";
+ case _12: return "Receipt of disclosure";
+ case _13: return "Archiving";
+ case _14: return "Logical deletion";
+ case _15: return "Permanent erasure / Physical destruction";
default: return "?";
}
}
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/BackboneElement.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/BackboneElement.java
index 73db47d58fd..4dee3dc6d09 100644
--- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/BackboneElement.java
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/BackboneElement.java
@@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
*/
-// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
+// Generated on Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
import java.util.*;
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Base.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Base.java
index 7affb41b4b2..a674765dbe6 100644
--- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Base.java
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Base.java
@@ -54,6 +54,12 @@ private Map userData;
return (String) getUserData(name);
}
+ public int getUserInt(String name) {
+ if (!hasUserData(name))
+ return 0;
+ return (Integer) getUserData(name);
+ }
+
public boolean hasFormatComment() {
return (formatComments != null && !formatComments.isEmpty());
}
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/BaseReference.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/BaseReference.java
index 0ca2cbd5c4f..39c575880b9 100644
--- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/BaseReference.java
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/BaseReference.java
@@ -1,10 +1,10 @@
package org.hl7.fhir.instance.model;
+import org.hl7.fhir.instance.model.api.IAnyResource;
import org.hl7.fhir.instance.model.api.IBaseReference;
import org.hl7.fhir.instance.model.api.IBaseResource;
import org.hl7.fhir.instance.model.api.ICompositeType;
import org.hl7.fhir.instance.model.api.IIdType;
-import org.hl7.fhir.instance.model.api.IAnyResource;
public abstract class BaseReference extends Type implements IBaseReference, ICompositeType {
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Basic.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Basic.java
index a6c68bf7351..ff8c57ab0f6 100644
--- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Basic.java
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Basic.java
@@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
*/
-// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
+// Generated on Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
import java.util.*;
@@ -63,7 +63,7 @@ public class Basic extends DomainResource {
* Identifies the patient, practitioner, device or any other resource that is the "focus" of this resoruce.
*/
@Child(name = "subject", type = {}, order=2, min=0, max=1)
- @Description(shortDefinition="Identifies the", formalDefinition="Identifies the patient, practitioner, device or any other resource that is the 'focus' of this resoruce." )
+ @Description(shortDefinition="Identifies the focus of this resource", formalDefinition="Identifies the patient, practitioner, device or any other resource that is the 'focus' of this resoruce." )
protected Reference subject;
/**
@@ -360,11 +360,11 @@ public class Basic extends DomainResource {
@SearchParamDefinition(name="code", path="Basic.code", description="Kind of Resource", type="token" )
public static final String SP_CODE = "code";
- @SearchParamDefinition(name="subject", path="Basic.subject", description="Identifies the", type="reference" )
+ @SearchParamDefinition(name="subject", path="Basic.subject", description="Identifies the focus of this resource", type="reference" )
public static final String SP_SUBJECT = "subject";
@SearchParamDefinition(name="created", path="Basic.created", description="When created", type="date" )
public static final String SP_CREATED = "created";
- @SearchParamDefinition(name="patient", path="Basic.subject", description="Identifies the", type="reference" )
+ @SearchParamDefinition(name="patient", path="Basic.subject", description="Identifies the focus of this resource", type="reference" )
public static final String SP_PATIENT = "patient";
@SearchParamDefinition(name="author", path="Basic.author", description="Who created", type="reference" )
public static final String SP_AUTHOR = "author";
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Binary.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Binary.java
index d6a5e89a6bf..998ee0b5e18 100644
--- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Binary.java
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Binary.java
@@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
*/
-// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
+// Generated on Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
import java.util.*;
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/BodySite.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/BodySite.java
index 5be82cabf61..dbf4e239322 100644
--- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/BodySite.java
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/BodySite.java
@@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
*/
-// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
+// Generated on Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
import java.util.*;
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Bundle.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Bundle.java
index 353e5ac7545..4d0d931c040 100644
--- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Bundle.java
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Bundle.java
@@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
*/
-// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
+// Generated on Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
import java.util.*;
@@ -113,13 +113,13 @@ public class Bundle extends Resource implements IBaseBundle {
}
public String getSystem() {
switch (this) {
- case DOCUMENT: return "http://hl7.org.fhir/bundle-type";
- case MESSAGE: return "http://hl7.org.fhir/bundle-type";
- case TRANSACTION: return "http://hl7.org.fhir/bundle-type";
- case TRANSACTIONRESPONSE: return "http://hl7.org.fhir/bundle-type";
- case HISTORY: return "http://hl7.org.fhir/bundle-type";
- case SEARCHSET: return "http://hl7.org.fhir/bundle-type";
- case COLLECTION: return "http://hl7.org.fhir/bundle-type";
+ case DOCUMENT: return "http://hl7.org/fhir/bundle-type";
+ case MESSAGE: return "http://hl7.org/fhir/bundle-type";
+ case TRANSACTION: return "http://hl7.org/fhir/bundle-type";
+ case TRANSACTIONRESPONSE: return "http://hl7.org/fhir/bundle-type";
+ case HISTORY: return "http://hl7.org/fhir/bundle-type";
+ case SEARCHSET: return "http://hl7.org/fhir/bundle-type";
+ case COLLECTION: return "http://hl7.org/fhir/bundle-type";
default: return "?";
}
}
@@ -198,6 +198,10 @@ public class Bundle extends Resource implements IBaseBundle {
* This resource is returned because it is referred to from another resource in the search set
*/
INCLUDE,
+ /**
+ * An OperationOutcome that provides additional information about the processing of a search
+ */
+ OUTCOME,
/**
* added to help the parsers
*/
@@ -209,19 +213,23 @@ public class Bundle extends Resource implements IBaseBundle {
return MATCH;
if ("include".equals(codeString))
return INCLUDE;
+ if ("outcome".equals(codeString))
+ return OUTCOME;
throw new Exception("Unknown SearchEntryMode code '"+codeString+"'");
}
public String toCode() {
switch (this) {
case MATCH: return "match";
case INCLUDE: return "include";
+ case OUTCOME: return "outcome";
default: return "?";
}
}
public String getSystem() {
switch (this) {
- case MATCH: return "http://hl7.org.fhir/search-entry-mode";
- case INCLUDE: return "http://hl7.org.fhir/search-entry-mode";
+ case MATCH: return "http://hl7.org/fhir/search-entry-mode";
+ case INCLUDE: return "http://hl7.org/fhir/search-entry-mode";
+ case OUTCOME: return "http://hl7.org/fhir/search-entry-mode";
default: return "?";
}
}
@@ -229,6 +237,7 @@ public class Bundle extends Resource implements IBaseBundle {
switch (this) {
case MATCH: return "This resource matched the search specification";
case INCLUDE: return "This resource is returned because it is referred to from another resource in the search set";
+ case OUTCOME: return "An OperationOutcome that provides additional information about the processing of a search";
default: return "?";
}
}
@@ -236,6 +245,7 @@ public class Bundle extends Resource implements IBaseBundle {
switch (this) {
case MATCH: return "match";
case INCLUDE: return "include";
+ case OUTCOME: return "outcome";
default: return "?";
}
}
@@ -250,6 +260,8 @@ public class Bundle extends Resource implements IBaseBundle {
return SearchEntryMode.MATCH;
if ("include".equals(codeString))
return SearchEntryMode.INCLUDE;
+ if ("outcome".equals(codeString))
+ return SearchEntryMode.OUTCOME;
throw new IllegalArgumentException("Unknown SearchEntryMode code '"+codeString+"'");
}
public String toCode(SearchEntryMode code) {
@@ -257,6 +269,8 @@ public class Bundle extends Resource implements IBaseBundle {
return "match";
if (code == SearchEntryMode.INCLUDE)
return "include";
+ if (code == SearchEntryMode.OUTCOME)
+ return "outcome";
return "?";
}
}
@@ -306,10 +320,10 @@ public class Bundle extends Resource implements IBaseBundle {
}
public String getSystem() {
switch (this) {
- case GET: return "http://hl7.org.fhir/http-verb";
- case POST: return "http://hl7.org.fhir/http-verb";
- case PUT: return "http://hl7.org.fhir/http-verb";
- case DELETE: return "http://hl7.org.fhir/http-verb";
+ case GET: return "http://hl7.org/fhir/http-verb";
+ case POST: return "http://hl7.org/fhir/http-verb";
+ case PUT: return "http://hl7.org/fhir/http-verb";
+ case DELETE: return "http://hl7.org/fhir/http-verb";
default: return "?";
}
}
@@ -546,7 +560,7 @@ public class Bundle extends Resource implements IBaseBundle {
* The Resources for the entry.
*/
@Child(name = "resource", type = {Resource.class}, order=3, min=0, max=1)
- @Description(shortDefinition="Resources in this bundle", formalDefinition="The Resources for the entry." )
+ @Description(shortDefinition="A resource in the bundle", formalDefinition="The Resources for the entry." )
protected Resource resource;
/**
@@ -821,7 +835,7 @@ public class Bundle extends Resource implements IBaseBundle {
* Why this entry is in the result set - whether it's included as a match or because of an _include requirement.
*/
@Child(name = "mode", type = {CodeType.class}, order=1, min=0, max=1)
- @Description(shortDefinition="match | include - why this is in the result set", formalDefinition="Why this entry is in the result set - whether it's included as a match or because of an _include requirement." )
+ @Description(shortDefinition="match | include | outcome - why this is in the result set", formalDefinition="Why this entry is in the result set - whether it's included as a match or because of an _include requirement." )
protected Enumeration mode;
/**
@@ -989,10 +1003,10 @@ public class Bundle extends Resource implements IBaseBundle {
protected Enumeration method;
/**
- * A search URL for this resource that specifies how the resource is matched to an existing resource when processing a transaction (see transaction documentation).
+ * The URL for this entry, relative to the root.
*/
@Child(name = "url", type = {UriType.class}, order=2, min=1, max=1)
- @Description(shortDefinition="The URL for the transaction", formalDefinition="A search URL for this resource that specifies how the resource is matched to an existing resource when processing a transaction (see transaction documentation)." )
+ @Description(shortDefinition="URL for HTTP equivalent of this entry", formalDefinition="The URL for this entry, relative to the root." )
protected UriType url;
/**
@@ -1087,7 +1101,7 @@ public class Bundle extends Resource implements IBaseBundle {
}
/**
- * @return {@link #url} (A search URL for this resource that specifies how the resource is matched to an existing resource when processing a transaction (see transaction documentation).). This is the underlying object with id, value and extensions. The accessor "getUrl" gives direct access to the value
+ * @return {@link #url} (The URL for this entry, relative to the root.). This is the underlying object with id, value and extensions. The accessor "getUrl" gives direct access to the value
*/
public UriType getUrlElement() {
if (this.url == null)
@@ -1107,7 +1121,7 @@ public class Bundle extends Resource implements IBaseBundle {
}
/**
- * @param value {@link #url} (A search URL for this resource that specifies how the resource is matched to an existing resource when processing a transaction (see transaction documentation).). This is the underlying object with id, value and extensions. The accessor "getUrl" gives direct access to the value
+ * @param value {@link #url} (The URL for this entry, relative to the root.). This is the underlying object with id, value and extensions. The accessor "getUrl" gives direct access to the value
*/
public BundleEntryTransactionComponent setUrlElement(UriType value) {
this.url = value;
@@ -1115,14 +1129,14 @@ public class Bundle extends Resource implements IBaseBundle {
}
/**
- * @return A search URL for this resource that specifies how the resource is matched to an existing resource when processing a transaction (see transaction documentation).
+ * @return The URL for this entry, relative to the root.
*/
public String getUrl() {
return this.url == null ? null : this.url.getValue();
}
/**
- * @param value A search URL for this resource that specifies how the resource is matched to an existing resource when processing a transaction (see transaction documentation).
+ * @param value The URL for this entry, relative to the root.
*/
public BundleEntryTransactionComponent setUrl(String value) {
if (this.url == null)
@@ -1330,7 +1344,7 @@ public class Bundle extends Resource implements IBaseBundle {
protected void listChildren(List childrenList) {
super.listChildren(childrenList);
childrenList.add(new Property("method", "code", "The HTTP verb for this entry in either a update history, or a transaction/ transaction response.", 0, java.lang.Integer.MAX_VALUE, method));
- childrenList.add(new Property("url", "uri", "A search URL for this resource that specifies how the resource is matched to an existing resource when processing a transaction (see transaction documentation).", 0, java.lang.Integer.MAX_VALUE, url));
+ childrenList.add(new Property("url", "uri", "The URL for this entry, relative to the root.", 0, java.lang.Integer.MAX_VALUE, url));
childrenList.add(new Property("ifNoneMatch", "string", "If the ETag values match, return a 304 Not modified status. See the read/vread interaction documentation.", 0, java.lang.Integer.MAX_VALUE, ifNoneMatch));
childrenList.add(new Property("ifMatch", "string", "Only perform the operation if the Etag value matches. For more information, see the API section 'Managing Resource Contention'.", 0, java.lang.Integer.MAX_VALUE, ifMatch));
childrenList.add(new Property("ifModifiedSince", "instant", "Only perform the operation if the last updated date matches. For more information, see the API section 'Managing Resource Contention'.", 0, java.lang.Integer.MAX_VALUE, ifModifiedSince));
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/CarePlan.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/CarePlan.java
index f168c4b0ca2..cc3238a9de1 100644
--- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/CarePlan.java
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/CarePlan.java
@@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
*/
-// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
+// Generated on Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
import java.util.*;
@@ -84,9 +84,9 @@ public class CarePlan extends DomainResource {
}
public String getSystem() {
switch (this) {
- case PLANNED: return "http://hl7.org.fhir/care-plan-status";
- case ACTIVE: return "http://hl7.org.fhir/care-plan-status";
- case COMPLETED: return "http://hl7.org.fhir/care-plan-status";
+ case PLANNED: return "http://hl7.org/fhir/care-plan-status";
+ case ACTIVE: return "http://hl7.org/fhir/care-plan-status";
+ case COMPLETED: return "http://hl7.org/fhir/care-plan-status";
default: return "?";
}
}
@@ -198,13 +198,13 @@ public class CarePlan extends DomainResource {
}
public String getSystem() {
switch (this) {
- case DIET: return "http://hl7.org.fhir/care-plan-activity-category";
- case DRUG: return "http://hl7.org.fhir/care-plan-activity-category";
- case ENCOUNTER: return "http://hl7.org.fhir/care-plan-activity-category";
- case OBSERVATION: return "http://hl7.org.fhir/care-plan-activity-category";
- case PROCEDURE: return "http://hl7.org.fhir/care-plan-activity-category";
- case SUPPLY: return "http://hl7.org.fhir/care-plan-activity-category";
- case OTHER: return "http://hl7.org.fhir/care-plan-activity-category";
+ case DIET: return "http://hl7.org/fhir/care-plan-activity-category";
+ case DRUG: return "http://hl7.org/fhir/care-plan-activity-category";
+ case ENCOUNTER: return "http://hl7.org/fhir/care-plan-activity-category";
+ case OBSERVATION: return "http://hl7.org/fhir/care-plan-activity-category";
+ case PROCEDURE: return "http://hl7.org/fhir/care-plan-activity-category";
+ case SUPPLY: return "http://hl7.org/fhir/care-plan-activity-category";
+ case OTHER: return "http://hl7.org/fhir/care-plan-activity-category";
default: return "?";
}
}
@@ -333,12 +333,12 @@ public class CarePlan extends DomainResource {
}
public String getSystem() {
switch (this) {
- case NOTSTARTED: return "http://hl7.org.fhir/care-plan-activity-status";
- case SCHEDULED: return "http://hl7.org.fhir/care-plan-activity-status";
- case INPROGRESS: return "http://hl7.org.fhir/care-plan-activity-status";
- case ONHOLD: return "http://hl7.org.fhir/care-plan-activity-status";
- case COMPLETED: return "http://hl7.org.fhir/care-plan-activity-status";
- case CANCELLED: return "http://hl7.org.fhir/care-plan-activity-status";
+ case NOTSTARTED: return "http://hl7.org/fhir/care-plan-activity-status";
+ case SCHEDULED: return "http://hl7.org/fhir/care-plan-activity-status";
+ case INPROGRESS: return "http://hl7.org/fhir/care-plan-activity-status";
+ case ONHOLD: return "http://hl7.org/fhir/care-plan-activity-status";
+ case COMPLETED: return "http://hl7.org/fhir/care-plan-activity-status";
+ case CANCELLED: return "http://hl7.org/fhir/care-plan-activity-status";
default: return "?";
}
}
@@ -1027,6 +1027,10 @@ public class CarePlan extends DomainResource {
return (CodeableConcept) this.reason;
}
+ public boolean hasReasonCodeableConcept() throws Exception {
+ return this.reason instanceof CodeableConcept;
+ }
+
/**
* @return {@link #reason} (Provides the health condition(s) or other rationale that drove the inclusion of this particular activity as part of the plan.)
*/
@@ -1036,6 +1040,10 @@ public class CarePlan extends DomainResource {
return (Reference) this.reason;
}
+ public boolean hasReasonReference() throws Exception {
+ return this.reason instanceof Reference;
+ }
+
public boolean hasReason() {
return this.reason != null && !this.reason.isEmpty();
}
@@ -1243,6 +1251,10 @@ public class CarePlan extends DomainResource {
return (Timing) this.scheduled;
}
+ public boolean hasScheduledTiming() throws Exception {
+ return this.scheduled instanceof Timing;
+ }
+
/**
* @return {@link #scheduled} (The period, timing or frequency upon which the described activity is to occur.)
*/
@@ -1252,6 +1264,10 @@ public class CarePlan extends DomainResource {
return (Period) this.scheduled;
}
+ public boolean hasScheduledPeriod() throws Exception {
+ return this.scheduled instanceof Period;
+ }
+
/**
* @return {@link #scheduled} (The period, timing or frequency upon which the described activity is to occur.)
*/
@@ -1261,6 +1277,10 @@ public class CarePlan extends DomainResource {
return (StringType) this.scheduled;
}
+ public boolean hasScheduledStringType() throws Exception {
+ return this.scheduled instanceof StringType;
+ }
+
public boolean hasScheduled() {
return this.scheduled != null && !this.scheduled.isEmpty();
}
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Claim.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Claim.java
index 6c2055ad2d1..db0a4de6782 100644
--- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Claim.java
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Claim.java
@@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
*/
-// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
+// Generated on Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
import java.util.*;
@@ -100,11 +100,11 @@ public class Claim extends DomainResource {
}
public String getSystem() {
switch (this) {
- case INSTITUTIONAL: return "http://hl7.org.fhir/type-link";
- case ORAL: return "http://hl7.org.fhir/type-link";
- case PHARMACY: return "http://hl7.org.fhir/type-link";
- case PROFESSIONAL: return "http://hl7.org.fhir/type-link";
- case VISION: return "http://hl7.org.fhir/type-link";
+ case INSTITUTIONAL: return "http://hl7.org/fhir/type-link";
+ case ORAL: return "http://hl7.org/fhir/type-link";
+ case PHARMACY: return "http://hl7.org/fhir/type-link";
+ case PROFESSIONAL: return "http://hl7.org/fhir/type-link";
+ case VISION: return "http://hl7.org/fhir/type-link";
default: return "?";
}
}
@@ -207,10 +207,10 @@ public class Claim extends DomainResource {
}
public String getSystem() {
switch (this) {
- case COMPLETE: return "http://hl7.org.fhir/use-link";
- case PROPOSED: return "http://hl7.org.fhir/use-link";
- case EXPLORATORY: return "http://hl7.org.fhir/use-link";
- case OTHER: return "http://hl7.org.fhir/use-link";
+ case COMPLETE: return "http://hl7.org/fhir/use-link";
+ case PROPOSED: return "http://hl7.org/fhir/use-link";
+ case EXPLORATORY: return "http://hl7.org/fhir/use-link";
+ case OTHER: return "http://hl7.org/fhir/use-link";
default: return "?";
}
}
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/ClaimResponse.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/ClaimResponse.java
index 22866e94ecf..b4eeb6d922a 100644
--- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/ClaimResponse.java
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/ClaimResponse.java
@@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
*/
-// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
+// Generated on Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
import java.util.*;
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/ClinicalImpression.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/ClinicalImpression.java
index adabdf2fe9d..31357a19adf 100644
--- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/ClinicalImpression.java
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/ClinicalImpression.java
@@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
*/
-// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
+// Generated on Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
import java.util.*;
@@ -84,9 +84,9 @@ public class ClinicalImpression extends DomainResource {
}
public String getSystem() {
switch (this) {
- case INPROGRESS: return "http://hl7.org.fhir/clinical-impression-status";
- case COMPLETED: return "http://hl7.org.fhir/clinical-impression-status";
- case ENTEREDINERROR: return "http://hl7.org.fhir/clinical-impression-status";
+ case INPROGRESS: return "http://hl7.org/fhir/clinical-impression-status";
+ case COMPLETED: return "http://hl7.org/fhir/clinical-impression-status";
+ case ENTEREDINERROR: return "http://hl7.org/fhir/clinical-impression-status";
default: return "?";
}
}
@@ -1089,6 +1089,10 @@ public class ClinicalImpression extends DomainResource {
return (CodeableConcept) this.trigger;
}
+ public boolean hasTriggerCodeableConcept() throws Exception {
+ return this.trigger instanceof CodeableConcept;
+ }
+
/**
* @return {@link #trigger} (The request or event that necessitated this assessment. This may be a diagnosis, a Care Plan, a Request Referral, or some other resource.)
*/
@@ -1098,6 +1102,10 @@ public class ClinicalImpression extends DomainResource {
return (Reference) this.trigger;
}
+ public boolean hasTriggerReference() throws Exception {
+ return this.trigger instanceof Reference;
+ }
+
public boolean hasTrigger() {
return this.trigger != null && !this.trigger.isEmpty();
}
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/CodeableConcept.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/CodeableConcept.java
index 1b26edc79fd..dee9561853e 100644
--- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/CodeableConcept.java
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/CodeableConcept.java
@@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
*/
-// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
+// Generated on Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
import java.util.*;
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Coding.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Coding.java
index 43a2ed2f670..e30f231f65c 100644
--- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Coding.java
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Coding.java
@@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
*/
-// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
+// Generated on Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
import java.util.*;
@@ -74,13 +74,13 @@ public class Coding extends Type implements IBaseCoding, ICompositeType {
protected StringType display;
/**
- * Indicates that this code was chosen by a user directly - i.e. off a pick list of available items (codes or displays).
+ * Indicates that this coding was chosen by a user directly - i.e. off a pick list of available items (codes or displays).
*/
- @Child(name = "primary", type = {BooleanType.class}, order=4, min=0, max=1)
- @Description(shortDefinition="If this code was chosen directly by the user", formalDefinition="Indicates that this code was chosen by a user directly - i.e. off a pick list of available items (codes or displays)." )
- protected BooleanType primary;
+ @Child(name = "userSelected", type = {BooleanType.class}, order=4, min=0, max=1)
+ @Description(shortDefinition="If this coding was chosen directly by the user", formalDefinition="Indicates that this coding was chosen by a user directly - i.e. off a pick list of available items (codes or displays)." )
+ protected BooleanType userSelected;
- private static final long serialVersionUID = 2019442517L;
+ private static final long serialVersionUID = -1417514061L;
/*
* Constructor
@@ -286,47 +286,47 @@ public class Coding extends Type implements IBaseCoding, ICompositeType {
}
/**
- * @return {@link #primary} (Indicates that this code was chosen by a user directly - i.e. off a pick list of available items (codes or displays).). This is the underlying object with id, value and extensions. The accessor "getPrimary" gives direct access to the value
+ * @return {@link #userSelected} (Indicates that this coding was chosen by a user directly - i.e. off a pick list of available items (codes or displays).). This is the underlying object with id, value and extensions. The accessor "getUserSelected" gives direct access to the value
*/
- public BooleanType getPrimaryElement() {
- if (this.primary == null)
+ public BooleanType getUserSelectedElement() {
+ if (this.userSelected == null)
if (Configuration.errorOnAutoCreate())
- throw new Error("Attempt to auto-create Coding.primary");
+ throw new Error("Attempt to auto-create Coding.userSelected");
else if (Configuration.doAutoCreate())
- this.primary = new BooleanType(); // bb
- return this.primary;
+ this.userSelected = new BooleanType(); // bb
+ return this.userSelected;
}
- public boolean hasPrimaryElement() {
- return this.primary != null && !this.primary.isEmpty();
+ public boolean hasUserSelectedElement() {
+ return this.userSelected != null && !this.userSelected.isEmpty();
}
- public boolean hasPrimary() {
- return this.primary != null && !this.primary.isEmpty();
+ public boolean hasUserSelected() {
+ return this.userSelected != null && !this.userSelected.isEmpty();
}
/**
- * @param value {@link #primary} (Indicates that this code was chosen by a user directly - i.e. off a pick list of available items (codes or displays).). This is the underlying object with id, value and extensions. The accessor "getPrimary" gives direct access to the value
+ * @param value {@link #userSelected} (Indicates that this coding was chosen by a user directly - i.e. off a pick list of available items (codes or displays).). This is the underlying object with id, value and extensions. The accessor "getUserSelected" gives direct access to the value
*/
- public Coding setPrimaryElement(BooleanType value) {
- this.primary = value;
+ public Coding setUserSelectedElement(BooleanType value) {
+ this.userSelected = value;
return this;
}
/**
- * @return Indicates that this code was chosen by a user directly - i.e. off a pick list of available items (codes or displays).
+ * @return Indicates that this coding was chosen by a user directly - i.e. off a pick list of available items (codes or displays).
*/
- public boolean getPrimary() {
- return this.primary == null || this.primary.isEmpty() ? false : this.primary.getValue();
+ public boolean getUserSelected() {
+ return this.userSelected == null || this.userSelected.isEmpty() ? false : this.userSelected.getValue();
}
/**
- * @param value Indicates that this code was chosen by a user directly - i.e. off a pick list of available items (codes or displays).
+ * @param value Indicates that this coding was chosen by a user directly - i.e. off a pick list of available items (codes or displays).
*/
- public Coding setPrimary(boolean value) {
- if (this.primary == null)
- this.primary = new BooleanType();
- this.primary.setValue(value);
+ public Coding setUserSelected(boolean value) {
+ if (this.userSelected == null)
+ this.userSelected = new BooleanType();
+ this.userSelected.setValue(value);
return this;
}
@@ -336,7 +336,7 @@ public class Coding extends Type implements IBaseCoding, ICompositeType {
childrenList.add(new Property("version", "string", "The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured. and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.", 0, java.lang.Integer.MAX_VALUE, version));
childrenList.add(new Property("code", "code", "A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).", 0, java.lang.Integer.MAX_VALUE, code));
childrenList.add(new Property("display", "string", "A representation of the meaning of the code in the system, following the rules of the system.", 0, java.lang.Integer.MAX_VALUE, display));
- childrenList.add(new Property("primary", "boolean", "Indicates that this code was chosen by a user directly - i.e. off a pick list of available items (codes or displays).", 0, java.lang.Integer.MAX_VALUE, primary));
+ childrenList.add(new Property("userSelected", "boolean", "Indicates that this coding was chosen by a user directly - i.e. off a pick list of available items (codes or displays).", 0, java.lang.Integer.MAX_VALUE, userSelected));
}
public Coding copy() {
@@ -346,7 +346,7 @@ public class Coding extends Type implements IBaseCoding, ICompositeType {
dst.version = version == null ? null : version.copy();
dst.code = code == null ? null : code.copy();
dst.display = display == null ? null : display.copy();
- dst.primary = primary == null ? null : primary.copy();
+ dst.userSelected = userSelected == null ? null : userSelected.copy();
return dst;
}
@@ -362,7 +362,7 @@ public class Coding extends Type implements IBaseCoding, ICompositeType {
return false;
Coding o = (Coding) other;
return compareDeep(system, o.system, true) && compareDeep(version, o.version, true) && compareDeep(code, o.code, true)
- && compareDeep(display, o.display, true) && compareDeep(primary, o.primary, true);
+ && compareDeep(display, o.display, true) && compareDeep(userSelected, o.userSelected, true);
}
@Override
@@ -373,12 +373,12 @@ public class Coding extends Type implements IBaseCoding, ICompositeType {
return false;
Coding o = (Coding) other;
return compareValues(system, o.system, true) && compareValues(version, o.version, true) && compareValues(code, o.code, true)
- && compareValues(display, o.display, true) && compareValues(primary, o.primary, true);
+ && compareValues(display, o.display, true) && compareValues(userSelected, o.userSelected, true);
}
public boolean isEmpty() {
return super.isEmpty() && (system == null || system.isEmpty()) && (version == null || version.isEmpty())
- && (code == null || code.isEmpty()) && (display == null || display.isEmpty()) && (primary == null || primary.isEmpty())
+ && (code == null || code.isEmpty()) && (display == null || display.isEmpty()) && (userSelected == null || userSelected.isEmpty())
;
}
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Communication.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Communication.java
index dd6aea812c2..28a4a014456 100644
--- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Communication.java
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Communication.java
@@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
*/
-// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
+// Generated on Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
import java.util.*;
@@ -98,11 +98,11 @@ public class Communication extends DomainResource {
}
public String getSystem() {
switch (this) {
- case INPROGRESS: return "http://hl7.org.fhir/communication-status";
- case COMPLETED: return "http://hl7.org.fhir/communication-status";
- case SUSPENDED: return "http://hl7.org.fhir/communication-status";
- case REJECTED: return "http://hl7.org.fhir/communication-status";
- case FAILED: return "http://hl7.org.fhir/communication-status";
+ case INPROGRESS: return "http://hl7.org/fhir/communication-status";
+ case COMPLETED: return "http://hl7.org/fhir/communication-status";
+ case SUSPENDED: return "http://hl7.org/fhir/communication-status";
+ case REJECTED: return "http://hl7.org/fhir/communication-status";
+ case FAILED: return "http://hl7.org/fhir/communication-status";
default: return "?";
}
}
@@ -202,6 +202,10 @@ public class Communication extends DomainResource {
return (StringType) this.content;
}
+ public boolean hasContentStringType() throws Exception {
+ return this.content instanceof StringType;
+ }
+
/**
* @return {@link #content} (An individual message part for multi-part messages.)
*/
@@ -211,6 +215,10 @@ public class Communication extends DomainResource {
return (Attachment) this.content;
}
+ public boolean hasContentAttachment() throws Exception {
+ return this.content instanceof Attachment;
+ }
+
/**
* @return {@link #content} (An individual message part for multi-part messages.)
*/
@@ -220,6 +228,10 @@ public class Communication extends DomainResource {
return (Reference) this.content;
}
+ public boolean hasContentReference() throws Exception {
+ return this.content instanceof Reference;
+ }
+
public boolean hasContent() {
return this.content != null && !this.content.isEmpty();
}
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/CommunicationRequest.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/CommunicationRequest.java
index a86ef121179..6e7e293e1d8 100644
--- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/CommunicationRequest.java
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/CommunicationRequest.java
@@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
*/
-// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
+// Generated on Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
import java.util.*;
@@ -133,16 +133,16 @@ public class CommunicationRequest extends DomainResource {
}
public String getSystem() {
switch (this) {
- case PROPOSED: return "http://hl7.org.fhir/communication-request-status";
- case PLANNED: return "http://hl7.org.fhir/communication-request-status";
- case REQUESTED: return "http://hl7.org.fhir/communication-request-status";
- case RECEIVED: return "http://hl7.org.fhir/communication-request-status";
- case ACCEPTED: return "http://hl7.org.fhir/communication-request-status";
- case INPROGRESS: return "http://hl7.org.fhir/communication-request-status";
- case COMPLETED: return "http://hl7.org.fhir/communication-request-status";
- case SUSPENDED: return "http://hl7.org.fhir/communication-request-status";
- case REJECTED: return "http://hl7.org.fhir/communication-request-status";
- case FAILED: return "http://hl7.org.fhir/communication-request-status";
+ case PROPOSED: return "http://hl7.org/fhir/communication-request-status";
+ case PLANNED: return "http://hl7.org/fhir/communication-request-status";
+ case REQUESTED: return "http://hl7.org/fhir/communication-request-status";
+ case RECEIVED: return "http://hl7.org/fhir/communication-request-status";
+ case ACCEPTED: return "http://hl7.org/fhir/communication-request-status";
+ case INPROGRESS: return "http://hl7.org/fhir/communication-request-status";
+ case COMPLETED: return "http://hl7.org/fhir/communication-request-status";
+ case SUSPENDED: return "http://hl7.org/fhir/communication-request-status";
+ case REJECTED: return "http://hl7.org/fhir/communication-request-status";
+ case FAILED: return "http://hl7.org/fhir/communication-request-status";
default: return "?";
}
}
@@ -272,6 +272,10 @@ public class CommunicationRequest extends DomainResource {
return (StringType) this.content;
}
+ public boolean hasContentStringType() throws Exception {
+ return this.content instanceof StringType;
+ }
+
/**
* @return {@link #content} (An individual message part for multi-part messages.)
*/
@@ -281,6 +285,10 @@ public class CommunicationRequest extends DomainResource {
return (Attachment) this.content;
}
+ public boolean hasContentAttachment() throws Exception {
+ return this.content instanceof Attachment;
+ }
+
/**
* @return {@link #content} (An individual message part for multi-part messages.)
*/
@@ -290,6 +298,10 @@ public class CommunicationRequest extends DomainResource {
return (Reference) this.content;
}
+ public boolean hasContentReference() throws Exception {
+ return this.content instanceof Reference;
+ }
+
public boolean hasContent() {
return this.content != null && !this.content.isEmpty();
}
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Composition.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Composition.java
index 96a89623280..995d23b588c 100644
--- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Composition.java
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Composition.java
@@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
*/
-// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
+// Generated on Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
import java.util.*;
@@ -98,11 +98,11 @@ public class Composition extends DomainResource {
}
public String getSystem() {
switch (this) {
- case PRELIMINARY: return "http://hl7.org.fhir/composition-status";
- case FINAL: return "http://hl7.org.fhir/composition-status";
- case APPENDED: return "http://hl7.org.fhir/composition-status";
- case AMENDED: return "http://hl7.org.fhir/composition-status";
- case ENTEREDINERROR: return "http://hl7.org.fhir/composition-status";
+ case PRELIMINARY: return "http://hl7.org/fhir/composition-status";
+ case FINAL: return "http://hl7.org/fhir/composition-status";
+ case APPENDED: return "http://hl7.org/fhir/composition-status";
+ case AMENDED: return "http://hl7.org/fhir/composition-status";
+ case ENTEREDINERROR: return "http://hl7.org/fhir/composition-status";
default: return "?";
}
}
@@ -205,10 +205,10 @@ public class Composition extends DomainResource {
}
public String getSystem() {
switch (this) {
- case PERSONAL: return "http://hl7.org.fhir/composition-attestation-mode";
- case PROFESSIONAL: return "http://hl7.org.fhir/composition-attestation-mode";
- case LEGAL: return "http://hl7.org.fhir/composition-attestation-mode";
- case OFFICIAL: return "http://hl7.org.fhir/composition-attestation-mode";
+ case PERSONAL: return "http://hl7.org/fhir/composition-attestation-mode";
+ case PROFESSIONAL: return "http://hl7.org/fhir/composition-attestation-mode";
+ case LEGAL: return "http://hl7.org/fhir/composition-attestation-mode";
+ case OFFICIAL: return "http://hl7.org/fhir/composition-attestation-mode";
default: return "?";
}
}
@@ -964,7 +964,7 @@ public class Composition extends DomainResource {
/**
* A categorization for the type of the composition. This may be implied by or derived from the code specified in the Composition Type.
*/
- @Child(name = "class", type = {CodeableConcept.class}, order=3, min=0, max=1)
+ @Child(name = "class_", type = {CodeableConcept.class}, order=3, min=0, max=1)
@Description(shortDefinition="Categorization of Composition", formalDefinition="A categorization for the type of the composition. This may be implied by or derived from the code specified in the Composition Type." )
protected CodeableConcept class_;
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/ConceptMap.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/ConceptMap.java
index 0570cb6e1dc..42067abc17d 100644
--- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/ConceptMap.java
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/ConceptMap.java
@@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
*/
-// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
+// Generated on Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
import java.util.*;
@@ -207,12 +207,12 @@ public class ConceptMap extends DomainResource {
}
@Block()
- public static class ConceptMapElementComponent extends BackboneElement implements IBaseBackboneElement {
+ public static class SourceElementComponent extends BackboneElement implements IBaseBackboneElement {
/**
- * An absolute URI that identifies the Code System (if the source is a value value set that crosses more than one code system).
+ * An absolute URI that identifies the Code System (if the source is a value set that crosses more than one code system).
*/
@Child(name = "codeSystem", type = {UriType.class}, order=1, min=0, max=1)
- @Description(shortDefinition="Code System (if value set crosses code systems)", formalDefinition="An absolute URI that identifies the Code System (if the source is a value value set that crosses more than one code system)." )
+ @Description(shortDefinition="Code System (if value set crosses code systems)", formalDefinition="An absolute URI that identifies the Code System (if the source is a value set that crosses more than one code system)." )
protected UriType codeSystem;
/**
@@ -222,36 +222,29 @@ public class ConceptMap extends DomainResource {
@Description(shortDefinition="Identifies element being mapped", formalDefinition="Identity (code or path) or the element/item being mapped." )
protected CodeType code;
- /**
- * A set of additional dependencies for this mapping to hold. This mapping is only applicable if the specified element can be resolved, and it has the specified value.
- */
- @Child(name = "dependsOn", type = {}, order=3, min=0, max=Child.MAX_UNLIMITED)
- @Description(shortDefinition="Other elements required for this mapping (from context)", formalDefinition="A set of additional dependencies for this mapping to hold. This mapping is only applicable if the specified element can be resolved, and it has the specified value." )
- protected List dependsOn;
-
/**
* A concept from the target value set that this concept maps to.
*/
- @Child(name = "map", type = {}, order=4, min=0, max=Child.MAX_UNLIMITED)
- @Description(shortDefinition="Target of this map", formalDefinition="A concept from the target value set that this concept maps to." )
- protected List map;
+ @Child(name = "target", type = {}, order=3, min=0, max=Child.MAX_UNLIMITED)
+ @Description(shortDefinition="Concept in target system for element", formalDefinition="A concept from the target value set that this concept maps to." )
+ protected List target;
- private static final long serialVersionUID = 2079040744L;
+ private static final long serialVersionUID = -458143877L;
/*
* Constructor
*/
- public ConceptMapElementComponent() {
+ public SourceElementComponent() {
super();
}
/**
- * @return {@link #codeSystem} (An absolute URI that identifies the Code System (if the source is a value value set that crosses more than one code system).). This is the underlying object with id, value and extensions. The accessor "getCodeSystem" gives direct access to the value
+ * @return {@link #codeSystem} (An absolute URI that identifies the Code System (if the source is a value set that crosses more than one code system).). This is the underlying object with id, value and extensions. The accessor "getCodeSystem" gives direct access to the value
*/
public UriType getCodeSystemElement() {
if (this.codeSystem == null)
if (Configuration.errorOnAutoCreate())
- throw new Error("Attempt to auto-create ConceptMapElementComponent.codeSystem");
+ throw new Error("Attempt to auto-create SourceElementComponent.codeSystem");
else if (Configuration.doAutoCreate())
this.codeSystem = new UriType(); // bb
return this.codeSystem;
@@ -266,24 +259,24 @@ public class ConceptMap extends DomainResource {
}
/**
- * @param value {@link #codeSystem} (An absolute URI that identifies the Code System (if the source is a value value set that crosses more than one code system).). This is the underlying object with id, value and extensions. The accessor "getCodeSystem" gives direct access to the value
+ * @param value {@link #codeSystem} (An absolute URI that identifies the Code System (if the source is a value set that crosses more than one code system).). This is the underlying object with id, value and extensions. The accessor "getCodeSystem" gives direct access to the value
*/
- public ConceptMapElementComponent setCodeSystemElement(UriType value) {
+ public SourceElementComponent setCodeSystemElement(UriType value) {
this.codeSystem = value;
return this;
}
/**
- * @return An absolute URI that identifies the Code System (if the source is a value value set that crosses more than one code system).
+ * @return An absolute URI that identifies the Code System (if the source is a value set that crosses more than one code system).
*/
public String getCodeSystem() {
return this.codeSystem == null ? null : this.codeSystem.getValue();
}
/**
- * @param value An absolute URI that identifies the Code System (if the source is a value value set that crosses more than one code system).
+ * @param value An absolute URI that identifies the Code System (if the source is a value set that crosses more than one code system).
*/
- public ConceptMapElementComponent setCodeSystem(String value) {
+ public SourceElementComponent setCodeSystem(String value) {
if (Utilities.noString(value))
this.codeSystem = null;
else {
@@ -300,7 +293,7 @@ public class ConceptMap extends DomainResource {
public CodeType getCodeElement() {
if (this.code == null)
if (Configuration.errorOnAutoCreate())
- throw new Error("Attempt to auto-create ConceptMapElementComponent.code");
+ throw new Error("Attempt to auto-create SourceElementComponent.code");
else if (Configuration.doAutoCreate())
this.code = new CodeType(); // bb
return this.code;
@@ -317,7 +310,7 @@ public class ConceptMap extends DomainResource {
/**
* @param value {@link #code} (Identity (code or path) or the element/item being mapped.). This is the underlying object with id, value and extensions. The accessor "getCode" gives direct access to the value
*/
- public ConceptMapElementComponent setCodeElement(CodeType value) {
+ public SourceElementComponent setCodeElement(CodeType value) {
this.code = value;
return this;
}
@@ -332,7 +325,7 @@ public class ConceptMap extends DomainResource {
/**
* @param value Identity (code or path) or the element/item being mapped.
*/
- public ConceptMapElementComponent setCode(String value) {
+ public SourceElementComponent setCode(String value) {
if (Utilities.noString(value))
this.code = null;
else {
@@ -343,6 +336,347 @@ public class ConceptMap extends DomainResource {
return this;
}
+ /**
+ * @return {@link #target} (A concept from the target value set that this concept maps to.)
+ */
+ public List getTarget() {
+ if (this.target == null)
+ this.target = new ArrayList();
+ return this.target;
+ }
+
+ public boolean hasTarget() {
+ if (this.target == null)
+ return false;
+ for (TargetElementComponent item : this.target)
+ if (!item.isEmpty())
+ return true;
+ return false;
+ }
+
+ /**
+ * @return {@link #target} (A concept from the target value set that this concept maps to.)
+ */
+ // syntactic sugar
+ public TargetElementComponent addTarget() { //3
+ TargetElementComponent t = new TargetElementComponent();
+ if (this.target == null)
+ this.target = new ArrayList();
+ this.target.add(t);
+ return t;
+ }
+
+ // syntactic sugar
+ public SourceElementComponent addTarget(TargetElementComponent t) { //3
+ if (t == null)
+ return this;
+ if (this.target == null)
+ this.target = new ArrayList();
+ this.target.add(t);
+ return this;
+ }
+
+ protected void listChildren(List childrenList) {
+ super.listChildren(childrenList);
+ childrenList.add(new Property("codeSystem", "uri", "An absolute URI that identifies the Code System (if the source is a value set that crosses more than one code system).", 0, java.lang.Integer.MAX_VALUE, codeSystem));
+ childrenList.add(new Property("code", "code", "Identity (code or path) or the element/item being mapped.", 0, java.lang.Integer.MAX_VALUE, code));
+ childrenList.add(new Property("target", "", "A concept from the target value set that this concept maps to.", 0, java.lang.Integer.MAX_VALUE, target));
+ }
+
+ public SourceElementComponent copy() {
+ SourceElementComponent dst = new SourceElementComponent();
+ copyValues(dst);
+ dst.codeSystem = codeSystem == null ? null : codeSystem.copy();
+ dst.code = code == null ? null : code.copy();
+ if (target != null) {
+ dst.target = new ArrayList();
+ for (TargetElementComponent i : target)
+ dst.target.add(i.copy());
+ };
+ return dst;
+ }
+
+ @Override
+ public boolean equalsDeep(Base other) {
+ if (!super.equalsDeep(other))
+ return false;
+ if (!(other instanceof SourceElementComponent))
+ return false;
+ SourceElementComponent o = (SourceElementComponent) other;
+ return compareDeep(codeSystem, o.codeSystem, true) && compareDeep(code, o.code, true) && compareDeep(target, o.target, true)
+ ;
+ }
+
+ @Override
+ public boolean equalsShallow(Base other) {
+ if (!super.equalsShallow(other))
+ return false;
+ if (!(other instanceof SourceElementComponent))
+ return false;
+ SourceElementComponent o = (SourceElementComponent) other;
+ return compareValues(codeSystem, o.codeSystem, true) && compareValues(code, o.code, true);
+ }
+
+ public boolean isEmpty() {
+ return super.isEmpty() && (codeSystem == null || codeSystem.isEmpty()) && (code == null || code.isEmpty())
+ && (target == null || target.isEmpty());
+ }
+
+ }
+
+ @Block()
+ public static class TargetElementComponent extends BackboneElement implements IBaseBackboneElement {
+ /**
+ * An absolute URI that identifies the code system of the target code (if the target is a value set that cross code systems).
+ */
+ @Child(name = "codeSystem", type = {UriType.class}, order=1, min=0, max=1)
+ @Description(shortDefinition="System of the target (if necessary)", formalDefinition="An absolute URI that identifies the code system of the target code (if the target is a value set that cross code systems)." )
+ protected UriType codeSystem;
+
+ /**
+ * Identity (code or path) or the element/item that the map refers to.
+ */
+ @Child(name = "code", type = {CodeType.class}, order=2, min=0, max=1)
+ @Description(shortDefinition="Code that identifies the target element", formalDefinition="Identity (code or path) or the element/item that the map refers to." )
+ protected CodeType code;
+
+ /**
+ * The equivalence between the source and target concepts (counting for the dependencies and products). The equivalence is read from target to source (e.g. the target is 'wider' than the source).
+ */
+ @Child(name = "equivalence", type = {CodeType.class}, order=3, min=1, max=1)
+ @Description(shortDefinition="equivalent | equal | wider | subsumes | narrower | specializes | inexact | unmatched | disjoint", formalDefinition="The equivalence between the source and target concepts (counting for the dependencies and products). The equivalence is read from target to source (e.g. the target is 'wider' than the source)." )
+ protected Enumeration equivalence;
+
+ /**
+ * A description of status/issues in mapping that conveys additional information not represented in the structured data.
+ */
+ @Child(name = "comments", type = {StringType.class}, order=4, min=0, max=1)
+ @Description(shortDefinition="Description of status/issues in mapping", formalDefinition="A description of status/issues in mapping that conveys additional information not represented in the structured data." )
+ protected StringType comments;
+
+ /**
+ * A set of additional dependencies for this mapping to hold. This mapping is only applicable if the specified element can be resolved, and it has the specified value.
+ */
+ @Child(name = "dependsOn", type = {}, order=5, min=0, max=Child.MAX_UNLIMITED)
+ @Description(shortDefinition="Other elements required for this mapping (from context)", formalDefinition="A set of additional dependencies for this mapping to hold. This mapping is only applicable if the specified element can be resolved, and it has the specified value." )
+ protected List dependsOn;
+
+ /**
+ * A set of additional outcomes from this mapping to other elements. To properly execute this mapping, the specified element must be mapped to some data element or source that is in context. The mapping may still be useful without a place for the additional data elements, but the equivalence cannot be relied on.
+ */
+ @Child(name = "product", type = {OtherElementComponent.class}, order=6, min=0, max=Child.MAX_UNLIMITED)
+ @Description(shortDefinition="Other concepts that this mapping also produces", formalDefinition="A set of additional outcomes from this mapping to other elements. To properly execute this mapping, the specified element must be mapped to some data element or source that is in context. The mapping may still be useful without a place for the additional data elements, but the equivalence cannot be relied on." )
+ protected List product;
+
+ private static final long serialVersionUID = -804990059L;
+
+ /*
+ * Constructor
+ */
+ public TargetElementComponent() {
+ super();
+ }
+
+ /*
+ * Constructor
+ */
+ public TargetElementComponent(Enumeration equivalence) {
+ super();
+ this.equivalence = equivalence;
+ }
+
+ /**
+ * @return {@link #codeSystem} (An absolute URI that identifies the code system of the target code (if the target is a value set that cross code systems).). This is the underlying object with id, value and extensions. The accessor "getCodeSystem" gives direct access to the value
+ */
+ public UriType getCodeSystemElement() {
+ if (this.codeSystem == null)
+ if (Configuration.errorOnAutoCreate())
+ throw new Error("Attempt to auto-create TargetElementComponent.codeSystem");
+ else if (Configuration.doAutoCreate())
+ this.codeSystem = new UriType(); // bb
+ return this.codeSystem;
+ }
+
+ public boolean hasCodeSystemElement() {
+ return this.codeSystem != null && !this.codeSystem.isEmpty();
+ }
+
+ public boolean hasCodeSystem() {
+ return this.codeSystem != null && !this.codeSystem.isEmpty();
+ }
+
+ /**
+ * @param value {@link #codeSystem} (An absolute URI that identifies the code system of the target code (if the target is a value set that cross code systems).). This is the underlying object with id, value and extensions. The accessor "getCodeSystem" gives direct access to the value
+ */
+ public TargetElementComponent setCodeSystemElement(UriType value) {
+ this.codeSystem = value;
+ return this;
+ }
+
+ /**
+ * @return An absolute URI that identifies the code system of the target code (if the target is a value set that cross code systems).
+ */
+ public String getCodeSystem() {
+ return this.codeSystem == null ? null : this.codeSystem.getValue();
+ }
+
+ /**
+ * @param value An absolute URI that identifies the code system of the target code (if the target is a value set that cross code systems).
+ */
+ public TargetElementComponent setCodeSystem(String value) {
+ if (Utilities.noString(value))
+ this.codeSystem = null;
+ else {
+ if (this.codeSystem == null)
+ this.codeSystem = new UriType();
+ this.codeSystem.setValue(value);
+ }
+ return this;
+ }
+
+ /**
+ * @return {@link #code} (Identity (code or path) or the element/item that the map refers to.). This is the underlying object with id, value and extensions. The accessor "getCode" gives direct access to the value
+ */
+ public CodeType getCodeElement() {
+ if (this.code == null)
+ if (Configuration.errorOnAutoCreate())
+ throw new Error("Attempt to auto-create TargetElementComponent.code");
+ else if (Configuration.doAutoCreate())
+ this.code = new CodeType(); // bb
+ return this.code;
+ }
+
+ public boolean hasCodeElement() {
+ return this.code != null && !this.code.isEmpty();
+ }
+
+ public boolean hasCode() {
+ return this.code != null && !this.code.isEmpty();
+ }
+
+ /**
+ * @param value {@link #code} (Identity (code or path) or the element/item that the map refers to.). This is the underlying object with id, value and extensions. The accessor "getCode" gives direct access to the value
+ */
+ public TargetElementComponent setCodeElement(CodeType value) {
+ this.code = value;
+ return this;
+ }
+
+ /**
+ * @return Identity (code or path) or the element/item that the map refers to.
+ */
+ public String getCode() {
+ return this.code == null ? null : this.code.getValue();
+ }
+
+ /**
+ * @param value Identity (code or path) or the element/item that the map refers to.
+ */
+ public TargetElementComponent setCode(String value) {
+ if (Utilities.noString(value))
+ this.code = null;
+ else {
+ if (this.code == null)
+ this.code = new CodeType();
+ this.code.setValue(value);
+ }
+ return this;
+ }
+
+ /**
+ * @return {@link #equivalence} (The equivalence between the source and target concepts (counting for the dependencies and products). The equivalence is read from target to source (e.g. the target is 'wider' than the source).). This is the underlying object with id, value and extensions. The accessor "getEquivalence" gives direct access to the value
+ */
+ public Enumeration getEquivalenceElement() {
+ if (this.equivalence == null)
+ if (Configuration.errorOnAutoCreate())
+ throw new Error("Attempt to auto-create TargetElementComponent.equivalence");
+ else if (Configuration.doAutoCreate())
+ this.equivalence = new Enumeration(new ConceptMapEquivalenceEnumFactory()); // bb
+ return this.equivalence;
+ }
+
+ public boolean hasEquivalenceElement() {
+ return this.equivalence != null && !this.equivalence.isEmpty();
+ }
+
+ public boolean hasEquivalence() {
+ return this.equivalence != null && !this.equivalence.isEmpty();
+ }
+
+ /**
+ * @param value {@link #equivalence} (The equivalence between the source and target concepts (counting for the dependencies and products). The equivalence is read from target to source (e.g. the target is 'wider' than the source).). This is the underlying object with id, value and extensions. The accessor "getEquivalence" gives direct access to the value
+ */
+ public TargetElementComponent setEquivalenceElement(Enumeration value) {
+ this.equivalence = value;
+ return this;
+ }
+
+ /**
+ * @return The equivalence between the source and target concepts (counting for the dependencies and products). The equivalence is read from target to source (e.g. the target is 'wider' than the source).
+ */
+ public ConceptMapEquivalence getEquivalence() {
+ return this.equivalence == null ? null : this.equivalence.getValue();
+ }
+
+ /**
+ * @param value The equivalence between the source and target concepts (counting for the dependencies and products). The equivalence is read from target to source (e.g. the target is 'wider' than the source).
+ */
+ public TargetElementComponent setEquivalence(ConceptMapEquivalence value) {
+ if (this.equivalence == null)
+ this.equivalence = new Enumeration(new ConceptMapEquivalenceEnumFactory());
+ this.equivalence.setValue(value);
+ return this;
+ }
+
+ /**
+ * @return {@link #comments} (A description of status/issues in mapping that conveys additional information not represented in the structured data.). This is the underlying object with id, value and extensions. The accessor "getComments" gives direct access to the value
+ */
+ public StringType getCommentsElement() {
+ if (this.comments == null)
+ if (Configuration.errorOnAutoCreate())
+ throw new Error("Attempt to auto-create TargetElementComponent.comments");
+ else if (Configuration.doAutoCreate())
+ this.comments = new StringType(); // bb
+ return this.comments;
+ }
+
+ public boolean hasCommentsElement() {
+ return this.comments != null && !this.comments.isEmpty();
+ }
+
+ public boolean hasComments() {
+ return this.comments != null && !this.comments.isEmpty();
+ }
+
+ /**
+ * @param value {@link #comments} (A description of status/issues in mapping that conveys additional information not represented in the structured data.). This is the underlying object with id, value and extensions. The accessor "getComments" gives direct access to the value
+ */
+ public TargetElementComponent setCommentsElement(StringType value) {
+ this.comments = value;
+ return this;
+ }
+
+ /**
+ * @return A description of status/issues in mapping that conveys additional information not represented in the structured data.
+ */
+ public String getComments() {
+ return this.comments == null ? null : this.comments.getValue();
+ }
+
+ /**
+ * @param value A description of status/issues in mapping that conveys additional information not represented in the structured data.
+ */
+ public TargetElementComponent setComments(String value) {
+ if (Utilities.noString(value))
+ this.comments = null;
+ else {
+ if (this.comments == null)
+ this.comments = new StringType();
+ this.comments.setValue(value);
+ }
+ return this;
+ }
+
/**
* @return {@link #dependsOn} (A set of additional dependencies for this mapping to hold. This mapping is only applicable if the specified element can be resolved, and it has the specified value.)
*/
@@ -374,7 +708,7 @@ public class ConceptMap extends DomainResource {
}
// syntactic sugar
- public ConceptMapElementComponent addDependsOn(OtherElementComponent t) { //3
+ public TargetElementComponent addDependsOn(OtherElementComponent t) { //3
if (t == null)
return this;
if (this.dependsOn == null)
@@ -384,67 +718,71 @@ public class ConceptMap extends DomainResource {
}
/**
- * @return {@link #map} (A concept from the target value set that this concept maps to.)
+ * @return {@link #product} (A set of additional outcomes from this mapping to other elements. To properly execute this mapping, the specified element must be mapped to some data element or source that is in context. The mapping may still be useful without a place for the additional data elements, but the equivalence cannot be relied on.)
*/
- public List getMap() {
- if (this.map == null)
- this.map = new ArrayList();
- return this.map;
+ public List getProduct() {
+ if (this.product == null)
+ this.product = new ArrayList();
+ return this.product;
}
- public boolean hasMap() {
- if (this.map == null)
+ public boolean hasProduct() {
+ if (this.product == null)
return false;
- for (ConceptMapElementMapComponent item : this.map)
+ for (OtherElementComponent item : this.product)
if (!item.isEmpty())
return true;
return false;
}
/**
- * @return {@link #map} (A concept from the target value set that this concept maps to.)
+ * @return {@link #product} (A set of additional outcomes from this mapping to other elements. To properly execute this mapping, the specified element must be mapped to some data element or source that is in context. The mapping may still be useful without a place for the additional data elements, but the equivalence cannot be relied on.)
*/
// syntactic sugar
- public ConceptMapElementMapComponent addMap() { //3
- ConceptMapElementMapComponent t = new ConceptMapElementMapComponent();
- if (this.map == null)
- this.map = new ArrayList();
- this.map.add(t);
+ public OtherElementComponent addProduct() { //3
+ OtherElementComponent t = new OtherElementComponent();
+ if (this.product == null)
+ this.product = new ArrayList();
+ this.product.add(t);
return t;
}
// syntactic sugar
- public ConceptMapElementComponent addMap(ConceptMapElementMapComponent t) { //3
+ public TargetElementComponent addProduct(OtherElementComponent t) { //3
if (t == null)
return this;
- if (this.map == null)
- this.map = new ArrayList();
- this.map.add(t);
+ if (this.product == null)
+ this.product = new ArrayList();
+ this.product.add(t);
return this;
}
protected void listChildren(List childrenList) {
super.listChildren(childrenList);
- childrenList.add(new Property("codeSystem", "uri", "An absolute URI that identifies the Code System (if the source is a value value set that crosses more than one code system).", 0, java.lang.Integer.MAX_VALUE, codeSystem));
- childrenList.add(new Property("code", "code", "Identity (code or path) or the element/item being mapped.", 0, java.lang.Integer.MAX_VALUE, code));
+ childrenList.add(new Property("codeSystem", "uri", "An absolute URI that identifies the code system of the target code (if the target is a value set that cross code systems).", 0, java.lang.Integer.MAX_VALUE, codeSystem));
+ childrenList.add(new Property("code", "code", "Identity (code or path) or the element/item that the map refers to.", 0, java.lang.Integer.MAX_VALUE, code));
+ childrenList.add(new Property("equivalence", "code", "The equivalence between the source and target concepts (counting for the dependencies and products). The equivalence is read from target to source (e.g. the target is 'wider' than the source).", 0, java.lang.Integer.MAX_VALUE, equivalence));
+ childrenList.add(new Property("comments", "string", "A description of status/issues in mapping that conveys additional information not represented in the structured data.", 0, java.lang.Integer.MAX_VALUE, comments));
childrenList.add(new Property("dependsOn", "", "A set of additional dependencies for this mapping to hold. This mapping is only applicable if the specified element can be resolved, and it has the specified value.", 0, java.lang.Integer.MAX_VALUE, dependsOn));
- childrenList.add(new Property("map", "", "A concept from the target value set that this concept maps to.", 0, java.lang.Integer.MAX_VALUE, map));
+ childrenList.add(new Property("product", "@ConceptMap.element.target.dependsOn", "A set of additional outcomes from this mapping to other elements. To properly execute this mapping, the specified element must be mapped to some data element or source that is in context. The mapping may still be useful without a place for the additional data elements, but the equivalence cannot be relied on.", 0, java.lang.Integer.MAX_VALUE, product));
}
- public ConceptMapElementComponent copy() {
- ConceptMapElementComponent dst = new ConceptMapElementComponent();
+ public TargetElementComponent copy() {
+ TargetElementComponent dst = new TargetElementComponent();
copyValues(dst);
dst.codeSystem = codeSystem == null ? null : codeSystem.copy();
dst.code = code == null ? null : code.copy();
+ dst.equivalence = equivalence == null ? null : equivalence.copy();
+ dst.comments = comments == null ? null : comments.copy();
if (dependsOn != null) {
dst.dependsOn = new ArrayList();
for (OtherElementComponent i : dependsOn)
dst.dependsOn.add(i.copy());
};
- if (map != null) {
- dst.map = new ArrayList();
- for (ConceptMapElementMapComponent i : map)
- dst.map.add(i.copy());
+ if (product != null) {
+ dst.product = new ArrayList();
+ for (OtherElementComponent i : product)
+ dst.product.add(i.copy());
};
return dst;
}
@@ -453,26 +791,29 @@ public class ConceptMap extends DomainResource {
public boolean equalsDeep(Base other) {
if (!super.equalsDeep(other))
return false;
- if (!(other instanceof ConceptMapElementComponent))
+ if (!(other instanceof TargetElementComponent))
return false;
- ConceptMapElementComponent o = (ConceptMapElementComponent) other;
- return compareDeep(codeSystem, o.codeSystem, true) && compareDeep(code, o.code, true) && compareDeep(dependsOn, o.dependsOn, true)
- && compareDeep(map, o.map, true);
+ TargetElementComponent o = (TargetElementComponent) other;
+ return compareDeep(codeSystem, o.codeSystem, true) && compareDeep(code, o.code, true) && compareDeep(equivalence, o.equivalence, true)
+ && compareDeep(comments, o.comments, true) && compareDeep(dependsOn, o.dependsOn, true) && compareDeep(product, o.product, true)
+ ;
}
@Override
public boolean equalsShallow(Base other) {
if (!super.equalsShallow(other))
return false;
- if (!(other instanceof ConceptMapElementComponent))
+ if (!(other instanceof TargetElementComponent))
return false;
- ConceptMapElementComponent o = (ConceptMapElementComponent) other;
- return compareValues(codeSystem, o.codeSystem, true) && compareValues(code, o.code, true);
+ TargetElementComponent o = (TargetElementComponent) other;
+ return compareValues(codeSystem, o.codeSystem, true) && compareValues(code, o.code, true) && compareValues(equivalence, o.equivalence, true)
+ && compareValues(comments, o.comments, true);
}
public boolean isEmpty() {
return super.isEmpty() && (codeSystem == null || codeSystem.isEmpty()) && (code == null || code.isEmpty())
- && (dependsOn == null || dependsOn.isEmpty()) && (map == null || map.isEmpty());
+ && (equivalence == null || equivalence.isEmpty()) && (comments == null || comments.isEmpty())
+ && (dependsOn == null || dependsOn.isEmpty()) && (product == null || product.isEmpty());
}
}
@@ -697,353 +1038,13 @@ public class ConceptMap extends DomainResource {
&& (code == null || code.isEmpty());
}
- }
-
- @Block()
- public static class ConceptMapElementMapComponent extends BackboneElement implements IBaseBackboneElement {
- /**
- * An absolute URI that identifies the code system of the target code (if the target is a value set that cross code systems).
- */
- @Child(name = "codeSystem", type = {UriType.class}, order=1, min=0, max=1)
- @Description(shortDefinition="System of the target (if necessary)", formalDefinition="An absolute URI that identifies the code system of the target code (if the target is a value set that cross code systems)." )
- protected UriType codeSystem;
-
- /**
- * Identity (code or path) or the element/item that the map refers to.
- */
- @Child(name = "code", type = {CodeType.class}, order=2, min=0, max=1)
- @Description(shortDefinition="Code that identifies the target element", formalDefinition="Identity (code or path) or the element/item that the map refers to." )
- protected CodeType code;
-
- /**
- * The equivalence between the source and target concepts (counting for the dependencies and products). The equivalence is read from source to target (e.g. the source is 'wider' than the target.
- */
- @Child(name = "equivalence", type = {CodeType.class}, order=3, min=1, max=1)
- @Description(shortDefinition="equivalent | equal | wider | subsumes | narrower | specialises | inexact | unmatched | disjoint", formalDefinition="The equivalence between the source and target concepts (counting for the dependencies and products). The equivalence is read from source to target (e.g. the source is 'wider' than the target." )
- protected Enumeration equivalence;
-
- /**
- * A description of status/issues in mapping that conveys additional information not represented in the structured data.
- */
- @Child(name = "comments", type = {StringType.class}, order=4, min=0, max=1)
- @Description(shortDefinition="Description of status/issues in mapping", formalDefinition="A description of status/issues in mapping that conveys additional information not represented in the structured data." )
- protected StringType comments;
-
- /**
- * A set of additional outcomes from this mapping to other elements. To properly execute this mapping, the specified element must be mapped to some data element or source that is in context. The mapping may still be useful without a place for the additional data elements, but the equivalence cannot be relied on.
- */
- @Child(name = "product", type = {OtherElementComponent.class}, order=5, min=0, max=Child.MAX_UNLIMITED)
- @Description(shortDefinition="Other concepts that this mapping also produces", formalDefinition="A set of additional outcomes from this mapping to other elements. To properly execute this mapping, the specified element must be mapped to some data element or source that is in context. The mapping may still be useful without a place for the additional data elements, but the equivalence cannot be relied on." )
- protected List product;
-
- private static final long serialVersionUID = 949452924L;
-
- /*
- * Constructor
- */
- public ConceptMapElementMapComponent() {
- super();
- }
-
- /*
- * Constructor
- */
- public ConceptMapElementMapComponent(Enumeration equivalence) {
- super();
- this.equivalence = equivalence;
- }
-
- /**
- * @return {@link #codeSystem} (An absolute URI that identifies the code system of the target code (if the target is a value set that cross code systems).). This is the underlying object with id, value and extensions. The accessor "getCodeSystem" gives direct access to the value
- */
- public UriType getCodeSystemElement() {
- if (this.codeSystem == null)
- if (Configuration.errorOnAutoCreate())
- throw new Error("Attempt to auto-create ConceptMapElementMapComponent.codeSystem");
- else if (Configuration.doAutoCreate())
- this.codeSystem = new UriType(); // bb
- return this.codeSystem;
- }
-
- public boolean hasCodeSystemElement() {
- return this.codeSystem != null && !this.codeSystem.isEmpty();
- }
-
- public boolean hasCodeSystem() {
- return this.codeSystem != null && !this.codeSystem.isEmpty();
- }
-
- /**
- * @param value {@link #codeSystem} (An absolute URI that identifies the code system of the target code (if the target is a value set that cross code systems).). This is the underlying object with id, value and extensions. The accessor "getCodeSystem" gives direct access to the value
- */
- public ConceptMapElementMapComponent setCodeSystemElement(UriType value) {
- this.codeSystem = value;
- return this;
- }
-
- /**
- * @return An absolute URI that identifies the code system of the target code (if the target is a value set that cross code systems).
- */
- public String getCodeSystem() {
- return this.codeSystem == null ? null : this.codeSystem.getValue();
- }
-
- /**
- * @param value An absolute URI that identifies the code system of the target code (if the target is a value set that cross code systems).
- */
- public ConceptMapElementMapComponent setCodeSystem(String value) {
- if (Utilities.noString(value))
- this.codeSystem = null;
- else {
- if (this.codeSystem == null)
- this.codeSystem = new UriType();
- this.codeSystem.setValue(value);
- }
- return this;
- }
-
- /**
- * @return {@link #code} (Identity (code or path) or the element/item that the map refers to.). This is the underlying object with id, value and extensions. The accessor "getCode" gives direct access to the value
- */
- public CodeType getCodeElement() {
- if (this.code == null)
- if (Configuration.errorOnAutoCreate())
- throw new Error("Attempt to auto-create ConceptMapElementMapComponent.code");
- else if (Configuration.doAutoCreate())
- this.code = new CodeType(); // bb
- return this.code;
- }
-
- public boolean hasCodeElement() {
- return this.code != null && !this.code.isEmpty();
- }
-
- public boolean hasCode() {
- return this.code != null && !this.code.isEmpty();
- }
-
- /**
- * @param value {@link #code} (Identity (code or path) or the element/item that the map refers to.). This is the underlying object with id, value and extensions. The accessor "getCode" gives direct access to the value
- */
- public ConceptMapElementMapComponent setCodeElement(CodeType value) {
- this.code = value;
- return this;
- }
-
- /**
- * @return Identity (code or path) or the element/item that the map refers to.
- */
- public String getCode() {
- return this.code == null ? null : this.code.getValue();
- }
-
- /**
- * @param value Identity (code or path) or the element/item that the map refers to.
- */
- public ConceptMapElementMapComponent setCode(String value) {
- if (Utilities.noString(value))
- this.code = null;
- else {
- if (this.code == null)
- this.code = new CodeType();
- this.code.setValue(value);
- }
- return this;
- }
-
- /**
- * @return {@link #equivalence} (The equivalence between the source and target concepts (counting for the dependencies and products). The equivalence is read from source to target (e.g. the source is 'wider' than the target.). This is the underlying object with id, value and extensions. The accessor "getEquivalence" gives direct access to the value
- */
- public Enumeration getEquivalenceElement() {
- if (this.equivalence == null)
- if (Configuration.errorOnAutoCreate())
- throw new Error("Attempt to auto-create ConceptMapElementMapComponent.equivalence");
- else if (Configuration.doAutoCreate())
- this.equivalence = new Enumeration(new ConceptMapEquivalenceEnumFactory()); // bb
- return this.equivalence;
- }
-
- public boolean hasEquivalenceElement() {
- return this.equivalence != null && !this.equivalence.isEmpty();
- }
-
- public boolean hasEquivalence() {
- return this.equivalence != null && !this.equivalence.isEmpty();
- }
-
- /**
- * @param value {@link #equivalence} (The equivalence between the source and target concepts (counting for the dependencies and products). The equivalence is read from source to target (e.g. the source is 'wider' than the target.). This is the underlying object with id, value and extensions. The accessor "getEquivalence" gives direct access to the value
- */
- public ConceptMapElementMapComponent setEquivalenceElement(Enumeration value) {
- this.equivalence = value;
- return this;
- }
-
- /**
- * @return The equivalence between the source and target concepts (counting for the dependencies and products). The equivalence is read from source to target (e.g. the source is 'wider' than the target.
- */
- public ConceptMapEquivalence getEquivalence() {
- return this.equivalence == null ? null : this.equivalence.getValue();
- }
-
- /**
- * @param value The equivalence between the source and target concepts (counting for the dependencies and products). The equivalence is read from source to target (e.g. the source is 'wider' than the target.
- */
- public ConceptMapElementMapComponent setEquivalence(ConceptMapEquivalence value) {
- if (this.equivalence == null)
- this.equivalence = new Enumeration(new ConceptMapEquivalenceEnumFactory());
- this.equivalence.setValue(value);
- return this;
- }
-
- /**
- * @return {@link #comments} (A description of status/issues in mapping that conveys additional information not represented in the structured data.). This is the underlying object with id, value and extensions. The accessor "getComments" gives direct access to the value
- */
- public StringType getCommentsElement() {
- if (this.comments == null)
- if (Configuration.errorOnAutoCreate())
- throw new Error("Attempt to auto-create ConceptMapElementMapComponent.comments");
- else if (Configuration.doAutoCreate())
- this.comments = new StringType(); // bb
- return this.comments;
- }
-
- public boolean hasCommentsElement() {
- return this.comments != null && !this.comments.isEmpty();
- }
-
- public boolean hasComments() {
- return this.comments != null && !this.comments.isEmpty();
- }
-
- /**
- * @param value {@link #comments} (A description of status/issues in mapping that conveys additional information not represented in the structured data.). This is the underlying object with id, value and extensions. The accessor "getComments" gives direct access to the value
- */
- public ConceptMapElementMapComponent setCommentsElement(StringType value) {
- this.comments = value;
- return this;
- }
-
- /**
- * @return A description of status/issues in mapping that conveys additional information not represented in the structured data.
- */
- public String getComments() {
- return this.comments == null ? null : this.comments.getValue();
- }
-
- /**
- * @param value A description of status/issues in mapping that conveys additional information not represented in the structured data.
- */
- public ConceptMapElementMapComponent setComments(String value) {
- if (Utilities.noString(value))
- this.comments = null;
- else {
- if (this.comments == null)
- this.comments = new StringType();
- this.comments.setValue(value);
- }
- return this;
- }
-
- /**
- * @return {@link #product} (A set of additional outcomes from this mapping to other elements. To properly execute this mapping, the specified element must be mapped to some data element or source that is in context. The mapping may still be useful without a place for the additional data elements, but the equivalence cannot be relied on.)
- */
- public List getProduct() {
- if (this.product == null)
- this.product = new ArrayList();
- return this.product;
- }
-
- public boolean hasProduct() {
- if (this.product == null)
- return false;
- for (OtherElementComponent item : this.product)
- if (!item.isEmpty())
- return true;
- return false;
- }
-
- /**
- * @return {@link #product} (A set of additional outcomes from this mapping to other elements. To properly execute this mapping, the specified element must be mapped to some data element or source that is in context. The mapping may still be useful without a place for the additional data elements, but the equivalence cannot be relied on.)
- */
- // syntactic sugar
- public OtherElementComponent addProduct() { //3
- OtherElementComponent t = new OtherElementComponent();
- if (this.product == null)
- this.product = new ArrayList();
- this.product.add(t);
- return t;
- }
-
- // syntactic sugar
- public ConceptMapElementMapComponent addProduct(OtherElementComponent t) { //3
- if (t == null)
- return this;
- if (this.product == null)
- this.product = new ArrayList();
- this.product.add(t);
- return this;
- }
-
- protected void listChildren(List childrenList) {
- super.listChildren(childrenList);
- childrenList.add(new Property("codeSystem", "uri", "An absolute URI that identifies the code system of the target code (if the target is a value set that cross code systems).", 0, java.lang.Integer.MAX_VALUE, codeSystem));
- childrenList.add(new Property("code", "code", "Identity (code or path) or the element/item that the map refers to.", 0, java.lang.Integer.MAX_VALUE, code));
- childrenList.add(new Property("equivalence", "code", "The equivalence between the source and target concepts (counting for the dependencies and products). The equivalence is read from source to target (e.g. the source is 'wider' than the target.", 0, java.lang.Integer.MAX_VALUE, equivalence));
- childrenList.add(new Property("comments", "string", "A description of status/issues in mapping that conveys additional information not represented in the structured data.", 0, java.lang.Integer.MAX_VALUE, comments));
- childrenList.add(new Property("product", "@ConceptMap.element.dependsOn", "A set of additional outcomes from this mapping to other elements. To properly execute this mapping, the specified element must be mapped to some data element or source that is in context. The mapping may still be useful without a place for the additional data elements, but the equivalence cannot be relied on.", 0, java.lang.Integer.MAX_VALUE, product));
- }
-
- public ConceptMapElementMapComponent copy() {
- ConceptMapElementMapComponent dst = new ConceptMapElementMapComponent();
- copyValues(dst);
- dst.codeSystem = codeSystem == null ? null : codeSystem.copy();
- dst.code = code == null ? null : code.copy();
- dst.equivalence = equivalence == null ? null : equivalence.copy();
- dst.comments = comments == null ? null : comments.copy();
- if (product != null) {
- dst.product = new ArrayList();
- for (OtherElementComponent i : product)
- dst.product.add(i.copy());
- };
- return dst;
- }
-
- @Override
- public boolean equalsDeep(Base other) {
- if (!super.equalsDeep(other))
- return false;
- if (!(other instanceof ConceptMapElementMapComponent))
- return false;
- ConceptMapElementMapComponent o = (ConceptMapElementMapComponent) other;
- return compareDeep(codeSystem, o.codeSystem, true) && compareDeep(code, o.code, true) && compareDeep(equivalence, o.equivalence, true)
- && compareDeep(comments, o.comments, true) && compareDeep(product, o.product, true);
- }
-
- @Override
- public boolean equalsShallow(Base other) {
- if (!super.equalsShallow(other))
- return false;
- if (!(other instanceof ConceptMapElementMapComponent))
- return false;
- ConceptMapElementMapComponent o = (ConceptMapElementMapComponent) other;
- return compareValues(codeSystem, o.codeSystem, true) && compareValues(code, o.code, true) && compareValues(equivalence, o.equivalence, true)
- && compareValues(comments, o.comments, true);
- }
-
- public boolean isEmpty() {
- return super.isEmpty() && (codeSystem == null || codeSystem.isEmpty()) && (code == null || code.isEmpty())
- && (equivalence == null || equivalence.isEmpty()) && (comments == null || comments.isEmpty())
- && (product == null || product.isEmpty());
- }
-
}
/**
- * An absolute uri that is used to identify this concept map when it is referenced in a specification, model, design or an instance (should be globally unique URI, and an be urn:uuid: or urn:oid:).
+ * An absolute uri that is used to identify this concept map when it is referenced in a specification, model, design or an instance (should be globally unique URI, and can be urn:uuid: or urn:oid:).
*/
@Child(name = "url", type = {UriType.class}, order=0, min=0, max=1)
- @Description(shortDefinition="Globally unique logical id for concept map", formalDefinition="An absolute uri that is used to identify this concept map when it is referenced in a specification, model, design or an instance (should be globally unique URI, and an be urn:uuid: or urn:oid:)." )
+ @Description(shortDefinition="Globally unique logical id for concept map", formalDefinition="An absolute uri that is used to identify this concept map when it is referenced in a specification, model, design or an instance (should be globally unique URI, and can be urn:uuid: or urn:oid:)." )
protected UriType url;
/**
@@ -1149,9 +1150,9 @@ public class ConceptMap extends DomainResource {
*/
@Child(name = "element", type = {}, order=15, min=0, max=Child.MAX_UNLIMITED)
@Description(shortDefinition="Mappings for a concept from the source set", formalDefinition="Mappings for an individual concept in the source to one or more concepts in the target." )
- protected List element;
+ protected List element;
- private static final long serialVersionUID = 729155675L;
+ private static final long serialVersionUID = -1713063390L;
/*
* Constructor
@@ -1171,7 +1172,7 @@ public class ConceptMap extends DomainResource {
}
/**
- * @return {@link #url} (An absolute uri that is used to identify this concept map when it is referenced in a specification, model, design or an instance (should be globally unique URI, and an be urn:uuid: or urn:oid:).). This is the underlying object with id, value and extensions. The accessor "getUrl" gives direct access to the value
+ * @return {@link #url} (An absolute uri that is used to identify this concept map when it is referenced in a specification, model, design or an instance (should be globally unique URI, and can be urn:uuid: or urn:oid:).). This is the underlying object with id, value and extensions. The accessor "getUrl" gives direct access to the value
*/
public UriType getUrlElement() {
if (this.url == null)
@@ -1191,7 +1192,7 @@ public class ConceptMap extends DomainResource {
}
/**
- * @param value {@link #url} (An absolute uri that is used to identify this concept map when it is referenced in a specification, model, design or an instance (should be globally unique URI, and an be urn:uuid: or urn:oid:).). This is the underlying object with id, value and extensions. The accessor "getUrl" gives direct access to the value
+ * @param value {@link #url} (An absolute uri that is used to identify this concept map when it is referenced in a specification, model, design or an instance (should be globally unique URI, and can be urn:uuid: or urn:oid:).). This is the underlying object with id, value and extensions. The accessor "getUrl" gives direct access to the value
*/
public ConceptMap setUrlElement(UriType value) {
this.url = value;
@@ -1199,14 +1200,14 @@ public class ConceptMap extends DomainResource {
}
/**
- * @return An absolute uri that is used to identify this concept map when it is referenced in a specification, model, design or an instance (should be globally unique URI, and an be urn:uuid: or urn:oid:).
+ * @return An absolute uri that is used to identify this concept map when it is referenced in a specification, model, design or an instance (should be globally unique URI, and can be urn:uuid: or urn:oid:).
*/
public String getUrl() {
return this.url == null ? null : this.url.getValue();
}
/**
- * @param value An absolute uri that is used to identify this concept map when it is referenced in a specification, model, design or an instance (should be globally unique URI, and an be urn:uuid: or urn:oid:).
+ * @param value An absolute uri that is used to identify this concept map when it is referenced in a specification, model, design or an instance (should be globally unique URI, and can be urn:uuid: or urn:oid:).
*/
public ConceptMap setUrl(String value) {
if (Utilities.noString(value))
@@ -1772,6 +1773,10 @@ public class ConceptMap extends DomainResource {
return (UriType) this.source;
}
+ public boolean hasSourceUriType() throws Exception {
+ return this.source instanceof UriType;
+ }
+
/**
* @return {@link #source} (The source value set that specifies the concepts that are being mapped.)
*/
@@ -1781,6 +1786,10 @@ public class ConceptMap extends DomainResource {
return (Reference) this.source;
}
+ public boolean hasSourceReference() throws Exception {
+ return this.source instanceof Reference;
+ }
+
public boolean hasSource() {
return this.source != null && !this.source.isEmpty();
}
@@ -1809,6 +1818,10 @@ public class ConceptMap extends DomainResource {
return (UriType) this.target;
}
+ public boolean hasTargetUriType() throws Exception {
+ return this.target instanceof UriType;
+ }
+
/**
* @return {@link #target} (The target value set provides context to the mappings. Note that the mapping is made between concepts, not between value sets, but the value set provides important context about how the concept mapping choices are made.)
*/
@@ -1818,6 +1831,10 @@ public class ConceptMap extends DomainResource {
return (Reference) this.target;
}
+ public boolean hasTargetReference() throws Exception {
+ return this.target instanceof Reference;
+ }
+
public boolean hasTarget() {
return this.target != null && !this.target.isEmpty();
}
@@ -1833,16 +1850,16 @@ public class ConceptMap extends DomainResource {
/**
* @return {@link #element} (Mappings for an individual concept in the source to one or more concepts in the target.)
*/
- public List getElement() {
+ public List getElement() {
if (this.element == null)
- this.element = new ArrayList();
+ this.element = new ArrayList();
return this.element;
}
public boolean hasElement() {
if (this.element == null)
return false;
- for (ConceptMapElementComponent item : this.element)
+ for (SourceElementComponent item : this.element)
if (!item.isEmpty())
return true;
return false;
@@ -1852,27 +1869,27 @@ public class ConceptMap extends DomainResource {
* @return {@link #element} (Mappings for an individual concept in the source to one or more concepts in the target.)
*/
// syntactic sugar
- public ConceptMapElementComponent addElement() { //3
- ConceptMapElementComponent t = new ConceptMapElementComponent();
+ public SourceElementComponent addElement() { //3
+ SourceElementComponent t = new SourceElementComponent();
if (this.element == null)
- this.element = new ArrayList();
+ this.element = new ArrayList();
this.element.add(t);
return t;
}
// syntactic sugar
- public ConceptMap addElement(ConceptMapElementComponent t) { //3
+ public ConceptMap addElement(SourceElementComponent t) { //3
if (t == null)
return this;
if (this.element == null)
- this.element = new ArrayList();
+ this.element = new ArrayList();
this.element.add(t);
return this;
}
protected void listChildren(List childrenList) {
super.listChildren(childrenList);
- childrenList.add(new Property("url", "uri", "An absolute uri that is used to identify this concept map when it is referenced in a specification, model, design or an instance (should be globally unique URI, and an be urn:uuid: or urn:oid:).", 0, java.lang.Integer.MAX_VALUE, url));
+ childrenList.add(new Property("url", "uri", "An absolute uri that is used to identify this concept map when it is referenced in a specification, model, design or an instance (should be globally unique URI, and can be urn:uuid: or urn:oid:).", 0, java.lang.Integer.MAX_VALUE, url));
childrenList.add(new Property("identifier", "Identifier", "Formal identifier that is used to identify this concept map when it is represented in other formats, or referenced in a specification, model, design or an instance.", 0, java.lang.Integer.MAX_VALUE, identifier));
childrenList.add(new Property("version", "string", "The identifier that is used to identify this version of the concept map when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the profile author manually and the value should be a timestamp.", 0, java.lang.Integer.MAX_VALUE, version));
childrenList.add(new Property("name", "string", "A free text natural language name describing the concept map.", 0, java.lang.Integer.MAX_VALUE, name));
@@ -1917,8 +1934,8 @@ public class ConceptMap extends DomainResource {
dst.source = source == null ? null : source.copy();
dst.target = target == null ? null : target.copy();
if (element != null) {
- dst.element = new ArrayList();
- for (ConceptMapElementComponent i : element)
+ dst.element = new ArrayList();
+ for (SourceElementComponent i : element)
dst.element.add(i.copy());
};
return dst;
@@ -1975,28 +1992,34 @@ public class ConceptMap extends DomainResource {
public static final String SP_DATE = "date";
@SearchParamDefinition(name="identifier", path="ConceptMap.identifier", description="Additional identifier for the concept map", type="token" )
public static final String SP_IDENTIFIER = "identifier";
- @SearchParamDefinition(name="product", path="ConceptMap.element.map.product.element", description="Reference to element/field/valueset mapping depends on", type="uri" )
+ @SearchParamDefinition(name="product", path="ConceptMap.element.target.product.element", description="Reference to element/field/valueset mapping depends on", type="uri" )
public static final String SP_PRODUCT = "product";
- @SearchParamDefinition(name="dependson", path="ConceptMap.element.dependsOn.element", description="Reference to element/field/valueset mapping depends on", type="uri" )
+ @SearchParamDefinition(name="dependson", path="ConceptMap.element.target.dependsOn.element", description="Reference to element/field/valueset mapping depends on", type="uri" )
public static final String SP_DEPENDSON = "dependson";
@SearchParamDefinition(name="description", path="ConceptMap.description", description="Text search in the description of the concept map", type="string" )
public static final String SP_DESCRIPTION = "description";
+ @SearchParamDefinition(name="targetsystem", path="ConceptMap.element.target.codeSystem", description="System of the target (if necessary)", type="uri" )
+ public static final String SP_TARGETSYSTEM = "targetsystem";
@SearchParamDefinition(name="source", path="ConceptMap.source[x]", description="The system for any concepts mapped by this concept map", type="reference" )
public static final String SP_SOURCE = "source";
@SearchParamDefinition(name="version", path="ConceptMap.version", description="The version identifier of the concept map", type="token" )
public static final String SP_VERSION = "version";
+ @SearchParamDefinition(name="sourcesystem", path="ConceptMap.element.codeSystem", description="Code System (if value set crosses code systems)", type="uri" )
+ public static final String SP_SOURCESYSTEM = "sourcesystem";
@SearchParamDefinition(name="url", path="ConceptMap.url", description="The url of the concept map", type="uri" )
public static final String SP_URL = "url";
@SearchParamDefinition(name="target", path="ConceptMap.target[x]", description="Provides context to the mappings", type="reference" )
public static final String SP_TARGET = "target";
- @SearchParamDefinition(name="system", path="ConceptMap.element.map.codeSystem", description="The system for any destination concepts mapped by this map", type="uri" )
- public static final String SP_SYSTEM = "system";
+ @SearchParamDefinition(name="sourcecode", path="ConceptMap.element.code", description="Identifies element being mapped", type="token" )
+ public static final String SP_SOURCECODE = "sourcecode";
@SearchParamDefinition(name="name", path="ConceptMap.name", description="Name of the concept map", type="string" )
public static final String SP_NAME = "name";
@SearchParamDefinition(name="context", path="ConceptMap.useContext", description="A use context assigned to the concept map", type="token" )
public static final String SP_CONTEXT = "context";
@SearchParamDefinition(name="publisher", path="ConceptMap.publisher", description="Name of the publisher of the concept map", type="string" )
public static final String SP_PUBLISHER = "publisher";
+ @SearchParamDefinition(name="targetcode", path="ConceptMap.element.target.code", description="Code that identifies the target element", type="token" )
+ public static final String SP_TARGETCODE = "targetcode";
@SearchParamDefinition(name="status", path="ConceptMap.status", description="Status of the concept map", type="token" )
public static final String SP_STATUS = "status";
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Condition.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Condition.java
index 1462a91fc53..962cb989d50 100644
--- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Condition.java
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Condition.java
@@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
*/
-// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
+// Generated on Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
import java.util.*;
@@ -105,12 +105,12 @@ public class Condition extends DomainResource {
}
public String getSystem() {
switch (this) {
- case PROVISIONAL: return "http://hl7.org.fhir/condition-status";
- case WORKING: return "http://hl7.org.fhir/condition-status";
- case CONFIRMED: return "http://hl7.org.fhir/condition-status";
- case REFUTED: return "http://hl7.org.fhir/condition-status";
- case ENTEREDINERROR: return "http://hl7.org.fhir/condition-status";
- case UNKNOWN: return "http://hl7.org.fhir/condition-status";
+ case PROVISIONAL: return "http://hl7.org/fhir/condition-status";
+ case WORKING: return "http://hl7.org/fhir/condition-status";
+ case CONFIRMED: return "http://hl7.org/fhir/condition-status";
+ case REFUTED: return "http://hl7.org/fhir/condition-status";
+ case ENTEREDINERROR: return "http://hl7.org/fhir/condition-status";
+ case UNKNOWN: return "http://hl7.org/fhir/condition-status";
default: return "?";
}
}
@@ -504,6 +504,10 @@ public class Condition extends DomainResource {
return (CodeableConcept) this.site;
}
+ public boolean hasSiteCodeableConcept() throws Exception {
+ return this.site instanceof CodeableConcept;
+ }
+
/**
* @return {@link #site} (Code that identifies the structural location.)
*/
@@ -513,6 +517,10 @@ public class Condition extends DomainResource {
return (Reference) this.site;
}
+ public boolean hasSiteReference() throws Exception {
+ return this.site instanceof Reference;
+ }
+
public boolean hasSite() {
return this.site != null && !this.site.isEmpty();
}
@@ -1333,6 +1341,10 @@ public class Condition extends DomainResource {
return (DateTimeType) this.onset;
}
+ public boolean hasOnsetDateTimeType() throws Exception {
+ return this.onset instanceof DateTimeType;
+ }
+
/**
* @return {@link #onset} (Estimated or actual date or date-time the condition began, in the opinion of the clinician.)
*/
@@ -1342,6 +1354,10 @@ public class Condition extends DomainResource {
return (Age) this.onset;
}
+ public boolean hasOnsetAge() throws Exception {
+ return this.onset instanceof Age;
+ }
+
/**
* @return {@link #onset} (Estimated or actual date or date-time the condition began, in the opinion of the clinician.)
*/
@@ -1351,6 +1367,10 @@ public class Condition extends DomainResource {
return (Period) this.onset;
}
+ public boolean hasOnsetPeriod() throws Exception {
+ return this.onset instanceof Period;
+ }
+
/**
* @return {@link #onset} (Estimated or actual date or date-time the condition began, in the opinion of the clinician.)
*/
@@ -1360,6 +1380,10 @@ public class Condition extends DomainResource {
return (Range) this.onset;
}
+ public boolean hasOnsetRange() throws Exception {
+ return this.onset instanceof Range;
+ }
+
/**
* @return {@link #onset} (Estimated or actual date or date-time the condition began, in the opinion of the clinician.)
*/
@@ -1369,6 +1393,10 @@ public class Condition extends DomainResource {
return (StringType) this.onset;
}
+ public boolean hasOnsetStringType() throws Exception {
+ return this.onset instanceof StringType;
+ }
+
public boolean hasOnset() {
return this.onset != null && !this.onset.isEmpty();
}
@@ -1397,6 +1425,10 @@ public class Condition extends DomainResource {
return (DateType) this.abatement;
}
+ public boolean hasAbatementDateType() throws Exception {
+ return this.abatement instanceof DateType;
+ }
+
/**
* @return {@link #abatement} (The date or estimated date that the condition resolved or went into remission. This is called "abatement" because of the many overloaded connotations associated with "remission" or "resolution" - Conditions are never really resolved, but they can abate.)
*/
@@ -1406,6 +1438,10 @@ public class Condition extends DomainResource {
return (Age) this.abatement;
}
+ public boolean hasAbatementAge() throws Exception {
+ return this.abatement instanceof Age;
+ }
+
/**
* @return {@link #abatement} (The date or estimated date that the condition resolved or went into remission. This is called "abatement" because of the many overloaded connotations associated with "remission" or "resolution" - Conditions are never really resolved, but they can abate.)
*/
@@ -1415,6 +1451,10 @@ public class Condition extends DomainResource {
return (BooleanType) this.abatement;
}
+ public boolean hasAbatementBooleanType() throws Exception {
+ return this.abatement instanceof BooleanType;
+ }
+
/**
* @return {@link #abatement} (The date or estimated date that the condition resolved or went into remission. This is called "abatement" because of the many overloaded connotations associated with "remission" or "resolution" - Conditions are never really resolved, but they can abate.)
*/
@@ -1424,6 +1464,10 @@ public class Condition extends DomainResource {
return (Period) this.abatement;
}
+ public boolean hasAbatementPeriod() throws Exception {
+ return this.abatement instanceof Period;
+ }
+
/**
* @return {@link #abatement} (The date or estimated date that the condition resolved or went into remission. This is called "abatement" because of the many overloaded connotations associated with "remission" or "resolution" - Conditions are never really resolved, but they can abate.)
*/
@@ -1433,6 +1477,10 @@ public class Condition extends DomainResource {
return (Range) this.abatement;
}
+ public boolean hasAbatementRange() throws Exception {
+ return this.abatement instanceof Range;
+ }
+
/**
* @return {@link #abatement} (The date or estimated date that the condition resolved or went into remission. This is called "abatement" because of the many overloaded connotations associated with "remission" or "resolution" - Conditions are never really resolved, but they can abate.)
*/
@@ -1442,6 +1490,10 @@ public class Condition extends DomainResource {
return (StringType) this.abatement;
}
+ public boolean hasAbatementStringType() throws Exception {
+ return this.abatement instanceof StringType;
+ }
+
public boolean hasAbatement() {
return this.abatement != null && !this.abatement.isEmpty();
}
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Conformance.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Conformance.java
index f2036b6a80a..0fa8ad3cea7 100644
--- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Conformance.java
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Conformance.java
@@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
*/
-// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
+// Generated on Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
import java.util.*;
@@ -78,8 +78,8 @@ public class Conformance extends DomainResource implements IBaseConformance {
}
public String getSystem() {
switch (this) {
- case CLIENT: return "http://hl7.org.fhir/restful-conformance-mode";
- case SERVER: return "http://hl7.org.fhir/restful-conformance-mode";
+ case CLIENT: return "http://hl7.org/fhir/restful-conformance-mode";
+ case SERVER: return "http://hl7.org/fhir/restful-conformance-mode";
default: return "?";
}
}
@@ -327,9 +327,9 @@ public class Conformance extends DomainResource implements IBaseConformance {
}
public String getSystem() {
switch (this) {
- case NOVERSION: return "http://hl7.org.fhir/versioning-policy";
- case VERSIONED: return "http://hl7.org.fhir/versioning-policy";
- case VERSIONEDUPDATE: return "http://hl7.org.fhir/versioning-policy";
+ case NOVERSION: return "http://hl7.org/fhir/versioning-policy";
+ case VERSIONED: return "http://hl7.org/fhir/versioning-policy";
+ case VERSIONEDUPDATE: return "http://hl7.org/fhir/versioning-policy";
default: return "?";
}
}
@@ -499,9 +499,9 @@ public class Conformance extends DomainResource implements IBaseConformance {
}
public String getSystem() {
switch (this) {
- case CONSEQUENCE: return "http://hl7.org.fhir/message-significance-category";
- case CURRENCY: return "http://hl7.org.fhir/message-significance-category";
- case NOTIFICATION: return "http://hl7.org.fhir/message-significance-category";
+ case CONSEQUENCE: return "http://hl7.org/fhir/message-significance-category";
+ case CURRENCY: return "http://hl7.org/fhir/message-significance-category";
+ case NOTIFICATION: return "http://hl7.org/fhir/message-significance-category";
default: return "?";
}
}
@@ -578,8 +578,8 @@ public class Conformance extends DomainResource implements IBaseConformance {
}
public String getSystem() {
switch (this) {
- case SENDER: return "http://hl7.org.fhir/message-conformance-event-mode";
- case RECEIVER: return "http://hl7.org.fhir/message-conformance-event-mode";
+ case SENDER: return "http://hl7.org/fhir/message-conformance-event-mode";
+ case RECEIVER: return "http://hl7.org/fhir/message-conformance-event-mode";
default: return "?";
}
}
@@ -650,8 +650,8 @@ public class Conformance extends DomainResource implements IBaseConformance {
}
public String getSystem() {
switch (this) {
- case PRODUCER: return "http://hl7.org.fhir/document-mode";
- case CONSUMER: return "http://hl7.org.fhir/document-mode";
+ case PRODUCER: return "http://hl7.org/fhir/document-mode";
+ case CONSUMER: return "http://hl7.org/fhir/document-mode";
default: return "?";
}
}
@@ -1759,7 +1759,7 @@ public class Conformance extends DomainResource implements IBaseConformance {
* Types of security services are supported/required by the system.
*/
@Child(name = "service", type = {CodeableConcept.class}, order=2, min=0, max=Child.MAX_UNLIMITED)
- @Description(shortDefinition="OAuth | OAuth2 | NTLM | Basic | Kerberos", formalDefinition="Types of security services are supported/required by the system." )
+ @Description(shortDefinition="OAuth | SMART-on-FHIR | NTLM | Basic | Kerberos | Certificates", formalDefinition="Types of security services are supported/required by the system." )
protected List service;
/**
@@ -2188,14 +2188,14 @@ public class Conformance extends DomainResource implements IBaseConformance {
protected CodeType type;
/**
- * A specification of the profile that describes the solution's support for the resource, including any constraints on cardinality, bindings, lengths or other limitations.
+ * A specification of the profile that describes the solution's support for the resource, including any constraints on cardinality, bindings, lengths or other limitations. See further discussion in [Using Profiles]{profiling.html#profile-uses.
*/
@Child(name = "profile", type = {StructureDefinition.class}, order=2, min=0, max=1)
- @Description(shortDefinition="What structural features are supported", formalDefinition="A specification of the profile that describes the solution's support for the resource, including any constraints on cardinality, bindings, lengths or other limitations." )
+ @Description(shortDefinition="What structural features are supported", formalDefinition="A specification of the profile that describes the solution's support for the resource, including any constraints on cardinality, bindings, lengths or other limitations. See further discussion in [Using Profiles]{profiling.html#profile-uses." )
protected Reference profile;
/**
- * The actual object that is the target of the reference (A specification of the profile that describes the solution's support for the resource, including any constraints on cardinality, bindings, lengths or other limitations.)
+ * The actual object that is the target of the reference (A specification of the profile that describes the solution's support for the resource, including any constraints on cardinality, bindings, lengths or other limitations. See further discussion in [Using Profiles]{profiling.html#profile-uses.)
*/
protected StructureDefinition profileTarget;
@@ -2325,7 +2325,7 @@ public class Conformance extends DomainResource implements IBaseConformance {
}
/**
- * @return {@link #profile} (A specification of the profile that describes the solution's support for the resource, including any constraints on cardinality, bindings, lengths or other limitations.)
+ * @return {@link #profile} (A specification of the profile that describes the solution's support for the resource, including any constraints on cardinality, bindings, lengths or other limitations. See further discussion in [Using Profiles]{profiling.html#profile-uses.)
*/
public Reference getProfile() {
if (this.profile == null)
@@ -2341,7 +2341,7 @@ public class Conformance extends DomainResource implements IBaseConformance {
}
/**
- * @param value {@link #profile} (A specification of the profile that describes the solution's support for the resource, including any constraints on cardinality, bindings, lengths or other limitations.)
+ * @param value {@link #profile} (A specification of the profile that describes the solution's support for the resource, including any constraints on cardinality, bindings, lengths or other limitations. See further discussion in [Using Profiles]{profiling.html#profile-uses.)
*/
public ConformanceRestResourceComponent setProfile(Reference value) {
this.profile = value;
@@ -2349,7 +2349,7 @@ public class Conformance extends DomainResource implements IBaseConformance {
}
/**
- * @return {@link #profile} The actual object that is the target of the reference. The reference library doesn't populate this, but you can use it to hold the resource if you resolve it. (A specification of the profile that describes the solution's support for the resource, including any constraints on cardinality, bindings, lengths or other limitations.)
+ * @return {@link #profile} The actual object that is the target of the reference. The reference library doesn't populate this, but you can use it to hold the resource if you resolve it. (A specification of the profile that describes the solution's support for the resource, including any constraints on cardinality, bindings, lengths or other limitations. See further discussion in [Using Profiles]{profiling.html#profile-uses.)
*/
public StructureDefinition getProfileTarget() {
if (this.profileTarget == null)
@@ -2361,7 +2361,7 @@ public class Conformance extends DomainResource implements IBaseConformance {
}
/**
- * @param value {@link #profile} The actual object that is the target of the reference. The reference library doesn't use these, but you can use it to hold the resource if you resolve it. (A specification of the profile that describes the solution's support for the resource, including any constraints on cardinality, bindings, lengths or other limitations.)
+ * @param value {@link #profile} The actual object that is the target of the reference. The reference library doesn't use these, but you can use it to hold the resource if you resolve it. (A specification of the profile that describes the solution's support for the resource, including any constraints on cardinality, bindings, lengths or other limitations. See further discussion in [Using Profiles]{profiling.html#profile-uses.)
*/
public ConformanceRestResourceComponent setProfileTarget(StructureDefinition value) {
this.profileTarget = value;
@@ -2779,7 +2779,7 @@ public class Conformance extends DomainResource implements IBaseConformance {
protected void listChildren(List childrenList) {
super.listChildren(childrenList);
childrenList.add(new Property("type", "code", "A type of resource exposed via the restful interface.", 0, java.lang.Integer.MAX_VALUE, type));
- childrenList.add(new Property("profile", "Reference(StructureDefinition)", "A specification of the profile that describes the solution's support for the resource, including any constraints on cardinality, bindings, lengths or other limitations.", 0, java.lang.Integer.MAX_VALUE, profile));
+ childrenList.add(new Property("profile", "Reference(StructureDefinition)", "A specification of the profile that describes the solution's support for the resource, including any constraints on cardinality, bindings, lengths or other limitations. See further discussion in [Using Profiles]{profiling.html#profile-uses.", 0, java.lang.Integer.MAX_VALUE, profile));
childrenList.add(new Property("interaction", "", "Identifies a restful operation supported by the solution.", 0, java.lang.Integer.MAX_VALUE, interaction));
childrenList.add(new Property("versioning", "code", "Thi field is set to true to specify that the system does not support (server) or use (client) versioning for this resource type. If this is not set to true, the server must at least correctly track and populate the versionId meta-property on resources.", 0, java.lang.Integer.MAX_VALUE, versioning));
childrenList.add(new Property("readHistory", "boolean", "A flag for whether the server is able to return past versions as part of the vRead operation.", 0, java.lang.Integer.MAX_VALUE, readHistory));
@@ -4779,10 +4779,10 @@ public class Conformance extends DomainResource implements IBaseConformance {
}
/**
- * An absolute uri that is used to identify this conformance statement when it is referenced in a specification, model, design or an instance (should be globally unique URI, and an be urn:uuid: or urn:oid:).
+ * An absolute uri that is used to identify this conformance statement when it is referenced in a specification, model, design or an instance (should be globally unique URI, and can be urn:uuid: or urn:oid:).
*/
@Child(name = "url", type = {UriType.class}, order=0, min=0, max=1)
- @Description(shortDefinition="Logical uri to reference this statement", formalDefinition="An absolute uri that is used to identify this conformance statement when it is referenced in a specification, model, design or an instance (should be globally unique URI, and an be urn:uuid: or urn:oid:)." )
+ @Description(shortDefinition="Logical uri to reference this statement", formalDefinition="An absolute uri that is used to identify this conformance statement when it is referenced in a specification, model, design or an instance (should be globally unique URI, and can be urn:uuid: or urn:oid:)." )
protected UriType url;
/**
@@ -4891,13 +4891,13 @@ public class Conformance extends DomainResource implements IBaseConformance {
protected List format;
/**
- * A list of profiles supported by the system. For a server, "supported by the system" means the system hosts/produces a set of resources, conformant to a particular profile, and allows its clients to search using this profile and to find appropriate data. For a client, it means the system will search by this profile and process data according to the guidance implicit in the profile.
+ * A list of profiles supported by the system. For a server, "supported by the system" means the system hosts/produces a set of resources, conformant to a particular profile, and allows its clients to search using this profile and to find appropriate data. For a client, it means the system will search by this profile and process data according to the guidance implicit in the profile. See further discussion in [Using Profiles]{profiling.html#profile-uses}.
*/
@Child(name = "profile", type = {StructureDefinition.class}, order=16, min=0, max=Child.MAX_UNLIMITED)
- @Description(shortDefinition="Profiles supported by the system", formalDefinition="A list of profiles supported by the system. For a server, 'supported by the system' means the system hosts/produces a set of resources, conformant to a particular profile, and allows its clients to search using this profile and to find appropriate data. For a client, it means the system will search by this profile and process data according to the guidance implicit in the profile." )
+ @Description(shortDefinition="Profiles supported by the system", formalDefinition="A list of profiles supported by the system. For a server, 'supported by the system' means the system hosts/produces a set of resources, conformant to a particular profile, and allows its clients to search using this profile and to find appropriate data. For a client, it means the system will search by this profile and process data according to the guidance implicit in the profile. See further discussion in [Using Profiles]{profiling.html#profile-uses}." )
protected List profile;
/**
- * The actual objects that are the target of the reference (A list of profiles supported by the system. For a server, "supported by the system" means the system hosts/produces a set of resources, conformant to a particular profile, and allows its clients to search using this profile and to find appropriate data. For a client, it means the system will search by this profile and process data according to the guidance implicit in the profile.)
+ * The actual objects that are the target of the reference (A list of profiles supported by the system. For a server, "supported by the system" means the system hosts/produces a set of resources, conformant to a particular profile, and allows its clients to search using this profile and to find appropriate data. For a client, it means the system will search by this profile and process data according to the guidance implicit in the profile. See further discussion in [Using Profiles]{profiling.html#profile-uses}.)
*/
protected List profileTarget;
@@ -4943,7 +4943,7 @@ public class Conformance extends DomainResource implements IBaseConformance {
}
/**
- * @return {@link #url} (An absolute uri that is used to identify this conformance statement when it is referenced in a specification, model, design or an instance (should be globally unique URI, and an be urn:uuid: or urn:oid:).). This is the underlying object with id, value and extensions. The accessor "getUrl" gives direct access to the value
+ * @return {@link #url} (An absolute uri that is used to identify this conformance statement when it is referenced in a specification, model, design or an instance (should be globally unique URI, and can be urn:uuid: or urn:oid:).). This is the underlying object with id, value and extensions. The accessor "getUrl" gives direct access to the value
*/
public UriType getUrlElement() {
if (this.url == null)
@@ -4963,7 +4963,7 @@ public class Conformance extends DomainResource implements IBaseConformance {
}
/**
- * @param value {@link #url} (An absolute uri that is used to identify this conformance statement when it is referenced in a specification, model, design or an instance (should be globally unique URI, and an be urn:uuid: or urn:oid:).). This is the underlying object with id, value and extensions. The accessor "getUrl" gives direct access to the value
+ * @param value {@link #url} (An absolute uri that is used to identify this conformance statement when it is referenced in a specification, model, design or an instance (should be globally unique URI, and can be urn:uuid: or urn:oid:).). This is the underlying object with id, value and extensions. The accessor "getUrl" gives direct access to the value
*/
public Conformance setUrlElement(UriType value) {
this.url = value;
@@ -4971,14 +4971,14 @@ public class Conformance extends DomainResource implements IBaseConformance {
}
/**
- * @return An absolute uri that is used to identify this conformance statement when it is referenced in a specification, model, design or an instance (should be globally unique URI, and an be urn:uuid: or urn:oid:).
+ * @return An absolute uri that is used to identify this conformance statement when it is referenced in a specification, model, design or an instance (should be globally unique URI, and can be urn:uuid: or urn:oid:).
*/
public String getUrl() {
return this.url == null ? null : this.url.getValue();
}
/**
- * @param value An absolute uri that is used to identify this conformance statement when it is referenced in a specification, model, design or an instance (should be globally unique URI, and an be urn:uuid: or urn:oid:).
+ * @param value An absolute uri that is used to identify this conformance statement when it is referenced in a specification, model, design or an instance (should be globally unique URI, and can be urn:uuid: or urn:oid:).
*/
public Conformance setUrl(String value) {
if (Utilities.noString(value))
@@ -5657,7 +5657,7 @@ public class Conformance extends DomainResource implements IBaseConformance {
}
/**
- * @return {@link #profile} (A list of profiles supported by the system. For a server, "supported by the system" means the system hosts/produces a set of resources, conformant to a particular profile, and allows its clients to search using this profile and to find appropriate data. For a client, it means the system will search by this profile and process data according to the guidance implicit in the profile.)
+ * @return {@link #profile} (A list of profiles supported by the system. For a server, "supported by the system" means the system hosts/produces a set of resources, conformant to a particular profile, and allows its clients to search using this profile and to find appropriate data. For a client, it means the system will search by this profile and process data according to the guidance implicit in the profile. See further discussion in [Using Profiles]{profiling.html#profile-uses}.)
*/
public List getProfile() {
if (this.profile == null)
@@ -5675,7 +5675,7 @@ public class Conformance extends DomainResource implements IBaseConformance {
}
/**
- * @return {@link #profile} (A list of profiles supported by the system. For a server, "supported by the system" means the system hosts/produces a set of resources, conformant to a particular profile, and allows its clients to search using this profile and to find appropriate data. For a client, it means the system will search by this profile and process data according to the guidance implicit in the profile.)
+ * @return {@link #profile} (A list of profiles supported by the system. For a server, "supported by the system" means the system hosts/produces a set of resources, conformant to a particular profile, and allows its clients to search using this profile and to find appropriate data. For a client, it means the system will search by this profile and process data according to the guidance implicit in the profile. See further discussion in [Using Profiles]{profiling.html#profile-uses}.)
*/
// syntactic sugar
public Reference addProfile() { //3
@@ -5697,7 +5697,7 @@ public class Conformance extends DomainResource implements IBaseConformance {
}
/**
- * @return {@link #profile} (The actual objects that are the target of the reference. The reference library doesn't populate this, but you can use this to hold the resources if you resolvethemt. A list of profiles supported by the system. For a server, "supported by the system" means the system hosts/produces a set of resources, conformant to a particular profile, and allows its clients to search using this profile and to find appropriate data. For a client, it means the system will search by this profile and process data according to the guidance implicit in the profile.)
+ * @return {@link #profile} (The actual objects that are the target of the reference. The reference library doesn't populate this, but you can use this to hold the resources if you resolvethemt. A list of profiles supported by the system. For a server, "supported by the system" means the system hosts/produces a set of resources, conformant to a particular profile, and allows its clients to search using this profile and to find appropriate data. For a client, it means the system will search by this profile and process data according to the guidance implicit in the profile. See further discussion in [Using Profiles]{profiling.html#profile-uses}.)
*/
public List getProfileTarget() {
if (this.profileTarget == null)
@@ -5707,7 +5707,7 @@ public class Conformance extends DomainResource implements IBaseConformance {
// syntactic sugar
/**
- * @return {@link #profile} (Add an actual object that is the target of the reference. The reference library doesn't use these, but you can use this to hold the resources if you resolvethemt. A list of profiles supported by the system. For a server, "supported by the system" means the system hosts/produces a set of resources, conformant to a particular profile, and allows its clients to search using this profile and to find appropriate data. For a client, it means the system will search by this profile and process data according to the guidance implicit in the profile.)
+ * @return {@link #profile} (Add an actual object that is the target of the reference. The reference library doesn't use these, but you can use this to hold the resources if you resolvethemt. A list of profiles supported by the system. For a server, "supported by the system" means the system hosts/produces a set of resources, conformant to a particular profile, and allows its clients to search using this profile and to find appropriate data. For a client, it means the system will search by this profile and process data according to the guidance implicit in the profile. See further discussion in [Using Profiles]{profiling.html#profile-uses}.)
*/
public StructureDefinition addProfileTarget() {
StructureDefinition r = new StructureDefinition();
@@ -5839,7 +5839,7 @@ public class Conformance extends DomainResource implements IBaseConformance {
protected void listChildren(List childrenList) {
super.listChildren(childrenList);
- childrenList.add(new Property("url", "uri", "An absolute uri that is used to identify this conformance statement when it is referenced in a specification, model, design or an instance (should be globally unique URI, and an be urn:uuid: or urn:oid:).", 0, java.lang.Integer.MAX_VALUE, url));
+ childrenList.add(new Property("url", "uri", "An absolute uri that is used to identify this conformance statement when it is referenced in a specification, model, design or an instance (should be globally unique URI, and can be urn:uuid: or urn:oid:).", 0, java.lang.Integer.MAX_VALUE, url));
childrenList.add(new Property("version", "string", "The identifier that is used to identify this version of the conformance statement when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the profile author manually and the value should be a timestamp.", 0, java.lang.Integer.MAX_VALUE, version));
childrenList.add(new Property("name", "string", "A free text natural language name identifying the conformance statement.", 0, java.lang.Integer.MAX_VALUE, name));
childrenList.add(new Property("publisher", "string", "The name of the individual or organization that published the conformance.", 0, java.lang.Integer.MAX_VALUE, publisher));
@@ -5855,7 +5855,7 @@ public class Conformance extends DomainResource implements IBaseConformance {
childrenList.add(new Property("fhirVersion", "id", "The version of the FHIR specification on which this conformance statement is based.", 0, java.lang.Integer.MAX_VALUE, fhirVersion));
childrenList.add(new Property("acceptUnknown", "boolean", "A flag that indicates whether the application accepts unknown elements as part of a resource.", 0, java.lang.Integer.MAX_VALUE, acceptUnknown));
childrenList.add(new Property("format", "code", "A list of the formats supported by this implementation using their content types.", 0, java.lang.Integer.MAX_VALUE, format));
- childrenList.add(new Property("profile", "Reference(StructureDefinition)", "A list of profiles supported by the system. For a server, 'supported by the system' means the system hosts/produces a set of resources, conformant to a particular profile, and allows its clients to search using this profile and to find appropriate data. For a client, it means the system will search by this profile and process data according to the guidance implicit in the profile.", 0, java.lang.Integer.MAX_VALUE, profile));
+ childrenList.add(new Property("profile", "Reference(StructureDefinition)", "A list of profiles supported by the system. For a server, 'supported by the system' means the system hosts/produces a set of resources, conformant to a particular profile, and allows its clients to search using this profile and to find appropriate data. For a client, it means the system will search by this profile and process data according to the guidance implicit in the profile. See further discussion in [Using Profiles]{profiling.html#profile-uses}.", 0, java.lang.Integer.MAX_VALUE, profile));
childrenList.add(new Property("rest", "", "A definition of the restful capabilities of the solution, if any.", 0, java.lang.Integer.MAX_VALUE, rest));
childrenList.add(new Property("messaging", "", "A description of the messaging capabilities of the solution.", 0, java.lang.Integer.MAX_VALUE, messaging));
childrenList.add(new Property("document", "", "A document definition.", 0, java.lang.Integer.MAX_VALUE, document));
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Constants.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Constants.java
index 2e8831d43d9..fb9d2dc7cfb 100644
--- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Constants.java
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Constants.java
@@ -29,12 +29,12 @@ package org.hl7.fhir.instance.model;
*/
-// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
+// Generated on Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
public class Constants {
public final static String VERSION = "0.5.0";
- public final static String REVISION = "5320";
- public final static String DATE = "Sun May 31 15:45:19 EDT 2015";
+ public final static String REVISION = "5780";
+ public final static String DATE = "Wed Jul 08 17:35:37 EDT 2015";
}
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/ContactPoint.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/ContactPoint.java
index 03de65e24a5..70e806ee862 100644
--- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/ContactPoint.java
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/ContactPoint.java
@@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
*/
-// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
+// Generated on Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
import java.util.*;
@@ -90,10 +90,10 @@ public class ContactPoint extends Type implements ICompositeType {
}
public String getSystem() {
switch (this) {
- case PHONE: return "http://hl7.org.fhir/contact-point-system";
- case FAX: return "http://hl7.org.fhir/contact-point-system";
- case EMAIL: return "http://hl7.org.fhir/contact-point-system";
- case URL: return "http://hl7.org.fhir/contact-point-system";
+ case PHONE: return "http://hl7.org/fhir/contact-point-system";
+ case FAX: return "http://hl7.org/fhir/contact-point-system";
+ case EMAIL: return "http://hl7.org/fhir/contact-point-system";
+ case URL: return "http://hl7.org/fhir/contact-point-system";
default: return "?";
}
}
@@ -197,11 +197,11 @@ public class ContactPoint extends Type implements ICompositeType {
}
public String getSystem() {
switch (this) {
- case HOME: return "http://hl7.org.fhir/contact-point-use";
- case WORK: return "http://hl7.org.fhir/contact-point-use";
- case TEMP: return "http://hl7.org.fhir/contact-point-use";
- case OLD: return "http://hl7.org.fhir/contact-point-use";
- case MOBILE: return "http://hl7.org.fhir/contact-point-use";
+ case HOME: return "http://hl7.org/fhir/contact-point-use";
+ case WORK: return "http://hl7.org/fhir/contact-point-use";
+ case TEMP: return "http://hl7.org/fhir/contact-point-use";
+ case OLD: return "http://hl7.org/fhir/contact-point-use";
+ case MOBILE: return "http://hl7.org/fhir/contact-point-use";
default: return "?";
}
}
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Contract.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Contract.java
index d8472cca3f1..7283cfc5cd2 100644
--- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Contract.java
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Contract.java
@@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
*/
-// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
+// Generated on Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
import java.util.*;
@@ -292,6 +292,10 @@ public class Contract extends DomainResource {
return (CodeableConcept) this.entity;
}
+ public boolean hasEntityCodeableConcept() throws Exception {
+ return this.entity instanceof CodeableConcept;
+ }
+
/**
* @return {@link #entity} (Specific type of Contract Valued Item that may be priced.)
*/
@@ -301,6 +305,10 @@ public class Contract extends DomainResource {
return (Reference) this.entity;
}
+ public boolean hasEntityReference() throws Exception {
+ return this.entity instanceof Reference;
+ }
+
public boolean hasEntity() {
return this.entity != null && !this.entity.isEmpty();
}
@@ -1679,6 +1687,10 @@ public class Contract extends DomainResource {
return (CodeableConcept) this.entity;
}
+ public boolean hasEntityCodeableConcept() throws Exception {
+ return this.entity instanceof CodeableConcept;
+ }
+
/**
* @return {@link #entity} (Specific type of Contract Provision Valued Item that may be priced.)
*/
@@ -1688,6 +1700,10 @@ public class Contract extends DomainResource {
return (Reference) this.entity;
}
+ public boolean hasEntityReference() throws Exception {
+ return this.entity instanceof Reference;
+ }
+
public boolean hasEntity() {
return this.entity != null && !this.entity.isEmpty();
}
@@ -2043,6 +2059,10 @@ public class Contract extends DomainResource {
return (Attachment) this.content;
}
+ public boolean hasContentAttachment() throws Exception {
+ return this.content instanceof Attachment;
+ }
+
/**
* @return {@link #content} (Human readable rendering of this Contract in a format and representation intended to enhance comprehension and ensure understandability.)
*/
@@ -2052,6 +2072,10 @@ public class Contract extends DomainResource {
return (Reference) this.content;
}
+ public boolean hasContentReference() throws Exception {
+ return this.content instanceof Reference;
+ }
+
public boolean hasContent() {
return this.content != null && !this.content.isEmpty();
}
@@ -2144,6 +2168,10 @@ public class Contract extends DomainResource {
return (Attachment) this.content;
}
+ public boolean hasContentAttachment() throws Exception {
+ return this.content instanceof Attachment;
+ }
+
/**
* @return {@link #content} (Contract legal text in human renderable form.)
*/
@@ -2153,6 +2181,10 @@ public class Contract extends DomainResource {
return (Reference) this.content;
}
+ public boolean hasContentReference() throws Exception {
+ return this.content instanceof Reference;
+ }
+
public boolean hasContent() {
return this.content != null && !this.content.isEmpty();
}
@@ -2245,6 +2277,10 @@ public class Contract extends DomainResource {
return (Attachment) this.content;
}
+ public boolean hasContentAttachment() throws Exception {
+ return this.content instanceof Attachment;
+ }
+
/**
* @return {@link #content} (Computable Contract conveyed using a policy rule language (e.g. XACML, DKAL, SecPal).)
*/
@@ -2254,6 +2290,10 @@ public class Contract extends DomainResource {
return (Reference) this.content;
}
+ public boolean hasContentReference() throws Exception {
+ return this.content instanceof Reference;
+ }
+
public boolean hasContent() {
return this.content != null && !this.content.isEmpty();
}
@@ -3042,6 +3082,10 @@ public class Contract extends DomainResource {
return (Attachment) this.binding;
}
+ public boolean hasBindingAttachment() throws Exception {
+ return this.binding instanceof Attachment;
+ }
+
/**
* @return {@link #binding} (Legally binding Contract: This is the signed and legally recognized representation of the Contract, which is considered the "source of truth" and which would be the basis for legal action related to enforcement of this Contract.)
*/
@@ -3051,6 +3095,10 @@ public class Contract extends DomainResource {
return (Reference) this.binding;
}
+ public boolean hasBindingReference() throws Exception {
+ return this.binding instanceof Reference;
+ }
+
public boolean hasBinding() {
return this.binding != null && !this.binding.isEmpty();
}
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Contraindication.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Contraindication.java
index aab683f8c03..621072d24d6 100644
--- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Contraindication.java
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Contraindication.java
@@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
*/
-// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
+// Generated on Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
import java.util.*;
@@ -46,6 +46,92 @@ import org.hl7.fhir.instance.model.api.*;
@ResourceDef(name="Contraindication", profile="http://hl7.org/fhir/Profile/Contraindication")
public class Contraindication extends DomainResource {
+ public enum ContraindicationSeverity {
+ /**
+ * null
+ */
+ HIGH,
+ /**
+ * null
+ */
+ MODERATE,
+ /**
+ * null
+ */
+ LOW,
+ /**
+ * added to help the parsers
+ */
+ NULL;
+ public static ContraindicationSeverity fromCode(String codeString) throws Exception {
+ if (codeString == null || "".equals(codeString))
+ return null;
+ if ("high".equals(codeString))
+ return HIGH;
+ if ("moderate".equals(codeString))
+ return MODERATE;
+ if ("low".equals(codeString))
+ return LOW;
+ throw new Exception("Unknown ContraindicationSeverity code '"+codeString+"'");
+ }
+ public String toCode() {
+ switch (this) {
+ case HIGH: return "high";
+ case MODERATE: return "moderate";
+ case LOW: return "low";
+ default: return "?";
+ }
+ }
+ public String getSystem() {
+ switch (this) {
+ case HIGH: return "High";
+ case MODERATE: return "Moderate";
+ case LOW: return "Low";
+ default: return "?";
+ }
+ }
+ public String getDefinition() {
+ switch (this) {
+ case HIGH: return "";
+ case MODERATE: return "";
+ case LOW: return "";
+ default: return "?";
+ }
+ }
+ public String getDisplay() {
+ switch (this) {
+ case HIGH: return "high";
+ case MODERATE: return "moderate";
+ case LOW: return "low";
+ default: return "?";
+ }
+ }
+ }
+
+ public static class ContraindicationSeverityEnumFactory implements EnumFactory {
+ public ContraindicationSeverity fromCode(String codeString) throws IllegalArgumentException {
+ if (codeString == null || "".equals(codeString))
+ if (codeString == null || "".equals(codeString))
+ return null;
+ if ("high".equals(codeString))
+ return ContraindicationSeverity.HIGH;
+ if ("moderate".equals(codeString))
+ return ContraindicationSeverity.MODERATE;
+ if ("low".equals(codeString))
+ return ContraindicationSeverity.LOW;
+ throw new IllegalArgumentException("Unknown ContraindicationSeverity code '"+codeString+"'");
+ }
+ public String toCode(ContraindicationSeverity code) {
+ if (code == ContraindicationSeverity.HIGH)
+ return "high";
+ if (code == ContraindicationSeverity.MODERATE)
+ return "moderate";
+ if (code == ContraindicationSeverity.LOW)
+ return "low";
+ return "?";
+ }
+ }
+
@Block()
public static class ContraindicationMitigationComponent extends BackboneElement implements IBaseBackboneElement {
/**
@@ -275,8 +361,8 @@ public class Contraindication extends DomainResource {
* Indicates the degree of importance associated with the identified issue based on the potential impact on the patient.
*/
@Child(name = "severity", type = {CodeType.class}, order=2, min=0, max=1)
- @Description(shortDefinition="high | medium | low", formalDefinition="Indicates the degree of importance associated with the identified issue based on the potential impact on the patient." )
- protected CodeType severity;
+ @Description(shortDefinition="high | moderate | low", formalDefinition="Indicates the degree of importance associated with the identified issue based on the potential impact on the patient." )
+ protected Enumeration severity;
/**
* Indicates the resource representing the current activity or proposed activity that.
@@ -331,13 +417,13 @@ public class Contraindication extends DomainResource {
protected UriType reference;
/**
- * Indicates an action that has been taken or is committed to to reduce or eliminate the likelihood of the risk identified by the contraindicaiton from manifesting. Can also reflect an observation of known mitigating factors that may reduce/eliminate the need for any action.
+ * Indicates an action that has been taken or is committed to to reduce or eliminate the likelihood of the risk identified by the contraindication from manifesting. Can also reflect an observation of known mitigating factors that may reduce/eliminate the need for any action.
*/
@Child(name = "mitigation", type = {}, order=9, min=0, max=Child.MAX_UNLIMITED)
- @Description(shortDefinition="Step taken to address", formalDefinition="Indicates an action that has been taken or is committed to to reduce or eliminate the likelihood of the risk identified by the contraindicaiton from manifesting. Can also reflect an observation of known mitigating factors that may reduce/eliminate the need for any action." )
+ @Description(shortDefinition="Step taken to address", formalDefinition="Indicates an action that has been taken or is committed to to reduce or eliminate the likelihood of the risk identified by the contraindication from manifesting. Can also reflect an observation of known mitigating factors that may reduce/eliminate the need for any action." )
protected List mitigation;
- private static final long serialVersionUID = 528603336L;
+ private static final long serialVersionUID = -1915322652L;
/*
* Constructor
@@ -417,12 +503,12 @@ public class Contraindication extends DomainResource {
/**
* @return {@link #severity} (Indicates the degree of importance associated with the identified issue based on the potential impact on the patient.). This is the underlying object with id, value and extensions. The accessor "getSeverity" gives direct access to the value
*/
- public CodeType getSeverityElement() {
+ public Enumeration getSeverityElement() {
if (this.severity == null)
if (Configuration.errorOnAutoCreate())
throw new Error("Attempt to auto-create Contraindication.severity");
else if (Configuration.doAutoCreate())
- this.severity = new CodeType(); // bb
+ this.severity = new Enumeration(new ContraindicationSeverityEnumFactory()); // bb
return this.severity;
}
@@ -437,7 +523,7 @@ public class Contraindication extends DomainResource {
/**
* @param value {@link #severity} (Indicates the degree of importance associated with the identified issue based on the potential impact on the patient.). This is the underlying object with id, value and extensions. The accessor "getSeverity" gives direct access to the value
*/
- public Contraindication setSeverityElement(CodeType value) {
+ public Contraindication setSeverityElement(Enumeration value) {
this.severity = value;
return this;
}
@@ -445,19 +531,19 @@ public class Contraindication extends DomainResource {
/**
* @return Indicates the degree of importance associated with the identified issue based on the potential impact on the patient.
*/
- public String getSeverity() {
+ public ContraindicationSeverity getSeverity() {
return this.severity == null ? null : this.severity.getValue();
}
/**
* @param value Indicates the degree of importance associated with the identified issue based on the potential impact on the patient.
*/
- public Contraindication setSeverity(String value) {
- if (Utilities.noString(value))
+ public Contraindication setSeverity(ContraindicationSeverity value) {
+ if (value == null)
this.severity = null;
else {
if (this.severity == null)
- this.severity = new CodeType();
+ this.severity = new Enumeration(new ContraindicationSeverityEnumFactory());
this.severity.setValue(value);
}
return this;
@@ -723,7 +809,7 @@ public class Contraindication extends DomainResource {
}
/**
- * @return {@link #mitigation} (Indicates an action that has been taken or is committed to to reduce or eliminate the likelihood of the risk identified by the contraindicaiton from manifesting. Can also reflect an observation of known mitigating factors that may reduce/eliminate the need for any action.)
+ * @return {@link #mitigation} (Indicates an action that has been taken or is committed to to reduce or eliminate the likelihood of the risk identified by the contraindication from manifesting. Can also reflect an observation of known mitigating factors that may reduce/eliminate the need for any action.)
*/
public List getMitigation() {
if (this.mitigation == null)
@@ -741,7 +827,7 @@ public class Contraindication extends DomainResource {
}
/**
- * @return {@link #mitigation} (Indicates an action that has been taken or is committed to to reduce or eliminate the likelihood of the risk identified by the contraindicaiton from manifesting. Can also reflect an observation of known mitigating factors that may reduce/eliminate the need for any action.)
+ * @return {@link #mitigation} (Indicates an action that has been taken or is committed to to reduce or eliminate the likelihood of the risk identified by the contraindication from manifesting. Can also reflect an observation of known mitigating factors that may reduce/eliminate the need for any action.)
*/
// syntactic sugar
public ContraindicationMitigationComponent addMitigation() { //3
@@ -773,7 +859,7 @@ public class Contraindication extends DomainResource {
childrenList.add(new Property("author", "Reference(Practitioner|Device)", "Identifies the provider or software that identified the.", 0, java.lang.Integer.MAX_VALUE, author));
childrenList.add(new Property("identifier", "Identifier", "Business identifier associated with the contraindication record.", 0, java.lang.Integer.MAX_VALUE, identifier));
childrenList.add(new Property("reference", "uri", "The literature, knowledge-base or similar reference that describes the propensity for the contraindication identified.", 0, java.lang.Integer.MAX_VALUE, reference));
- childrenList.add(new Property("mitigation", "", "Indicates an action that has been taken or is committed to to reduce or eliminate the likelihood of the risk identified by the contraindicaiton from manifesting. Can also reflect an observation of known mitigating factors that may reduce/eliminate the need for any action.", 0, java.lang.Integer.MAX_VALUE, mitigation));
+ childrenList.add(new Property("mitigation", "", "Indicates an action that has been taken or is committed to to reduce or eliminate the likelihood of the risk identified by the contraindication from manifesting. Can also reflect an observation of known mitigating factors that may reduce/eliminate the need for any action.", 0, java.lang.Integer.MAX_VALUE, mitigation));
}
public Contraindication copy() {
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Count.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Count.java
index db07a15ea3e..9c3dedcd828 100644
--- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Count.java
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Count.java
@@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
*/
-// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
+// Generated on Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
import org.hl7.fhir.instance.model.annotations.DatatypeDef;
import org.hl7.fhir.instance.model.annotations.Block;
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Coverage.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Coverage.java
index cbd1000ad15..d03c4252a21 100644
--- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Coverage.java
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Coverage.java
@@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
*/
-// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
+// Generated on Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
import java.util.*;
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/DataElement.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/DataElement.java
index 6a49eece552..de31d5851a4 100644
--- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/DataElement.java
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/DataElement.java
@@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
*/
-// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
+// Generated on Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
import java.util.*;
@@ -106,12 +106,12 @@ public class DataElement extends DomainResource {
}
public String getSystem() {
switch (this) {
- case COMPARABLE: return "http://hl7.org.fhir/dataelement-specificity";
- case FULLYSPECIFIED: return "http://hl7.org.fhir/dataelement-specificity";
- case EQUIVALENT: return "http://hl7.org.fhir/dataelement-specificity";
- case CONVERTABLE: return "http://hl7.org.fhir/dataelement-specificity";
- case SCALEABLE: return "http://hl7.org.fhir/dataelement-specificity";
- case FLEXIBLE: return "http://hl7.org.fhir/dataelement-specificity";
+ case COMPARABLE: return "http://hl7.org/fhir/dataelement-specificity";
+ case FULLYSPECIFIED: return "http://hl7.org/fhir/dataelement-specificity";
+ case EQUIVALENT: return "http://hl7.org/fhir/dataelement-specificity";
+ case CONVERTABLE: return "http://hl7.org/fhir/dataelement-specificity";
+ case SCALEABLE: return "http://hl7.org/fhir/dataelement-specificity";
+ case FLEXIBLE: return "http://hl7.org/fhir/dataelement-specificity";
default: return "?";
}
}
@@ -621,10 +621,10 @@ public class DataElement extends DomainResource {
}
/**
- * An absolute uri that is used to identify this element when it is referenced in a specification, model, design or an instance (should be globally unique URI, and an be urn:uuid: or urn:oid:).
+ * An absolute uri that is used to identify this element when it is referenced in a specification, model, design or an instance (should be globally unique URI, and can be urn:uuid: or urn:oid:).
*/
@Child(name = "url", type = {UriType.class}, order=0, min=0, max=1)
- @Description(shortDefinition="Globally unique logical id for data element", formalDefinition="An absolute uri that is used to identify this element when it is referenced in a specification, model, design or an instance (should be globally unique URI, and an be urn:uuid: or urn:oid:)." )
+ @Description(shortDefinition="Globally unique logical id for data element", formalDefinition="An absolute uri that is used to identify this element when it is referenced in a specification, model, design or an instance (should be globally unique URI, and can be urn:uuid: or urn:oid:)." )
protected UriType url;
/**
@@ -736,7 +736,7 @@ public class DataElement extends DomainResource {
}
/**
- * @return {@link #url} (An absolute uri that is used to identify this element when it is referenced in a specification, model, design or an instance (should be globally unique URI, and an be urn:uuid: or urn:oid:).). This is the underlying object with id, value and extensions. The accessor "getUrl" gives direct access to the value
+ * @return {@link #url} (An absolute uri that is used to identify this element when it is referenced in a specification, model, design or an instance (should be globally unique URI, and can be urn:uuid: or urn:oid:).). This is the underlying object with id, value and extensions. The accessor "getUrl" gives direct access to the value
*/
public UriType getUrlElement() {
if (this.url == null)
@@ -756,7 +756,7 @@ public class DataElement extends DomainResource {
}
/**
- * @param value {@link #url} (An absolute uri that is used to identify this element when it is referenced in a specification, model, design or an instance (should be globally unique URI, and an be urn:uuid: or urn:oid:).). This is the underlying object with id, value and extensions. The accessor "getUrl" gives direct access to the value
+ * @param value {@link #url} (An absolute uri that is used to identify this element when it is referenced in a specification, model, design or an instance (should be globally unique URI, and can be urn:uuid: or urn:oid:).). This is the underlying object with id, value and extensions. The accessor "getUrl" gives direct access to the value
*/
public DataElement setUrlElement(UriType value) {
this.url = value;
@@ -764,14 +764,14 @@ public class DataElement extends DomainResource {
}
/**
- * @return An absolute uri that is used to identify this element when it is referenced in a specification, model, design or an instance (should be globally unique URI, and an be urn:uuid: or urn:oid:).
+ * @return An absolute uri that is used to identify this element when it is referenced in a specification, model, design or an instance (should be globally unique URI, and can be urn:uuid: or urn:oid:).
*/
public String getUrl() {
return this.url == null ? null : this.url.getValue();
}
/**
- * @param value An absolute uri that is used to identify this element when it is referenced in a specification, model, design or an instance (should be globally unique URI, and an be urn:uuid: or urn:oid:).
+ * @param value An absolute uri that is used to identify this element when it is referenced in a specification, model, design or an instance (should be globally unique URI, and can be urn:uuid: or urn:oid:).
*/
public DataElement setUrl(String value) {
if (Utilities.noString(value))
@@ -1354,7 +1354,7 @@ public class DataElement extends DomainResource {
protected void listChildren(List childrenList) {
super.listChildren(childrenList);
- childrenList.add(new Property("url", "uri", "An absolute uri that is used to identify this element when it is referenced in a specification, model, design or an instance (should be globally unique URI, and an be urn:uuid: or urn:oid:).", 0, java.lang.Integer.MAX_VALUE, url));
+ childrenList.add(new Property("url", "uri", "An absolute uri that is used to identify this element when it is referenced in a specification, model, design or an instance (should be globally unique URI, and can be urn:uuid: or urn:oid:).", 0, java.lang.Integer.MAX_VALUE, url));
childrenList.add(new Property("identifier", "Identifier", "Formal identifier that is used to identify this data element when it is represented in other formats, or referenced in a specification, model, design or an instance.", 0, java.lang.Integer.MAX_VALUE, identifier));
childrenList.add(new Property("version", "string", "The identifier that is used to identify this version of the data element when it is referenced in a StructureDefinition, Questionnaire or instance. This is an arbitrary value managed by the definition author manually.", 0, java.lang.Integer.MAX_VALUE, version));
childrenList.add(new Property("name", "string", "The term used by humans to refer to the data element. Should ideally be unique within the context in which the data element is expected to be used.", 0, java.lang.Integer.MAX_VALUE, name));
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Device.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Device.java
index be2c5c2500f..08abbe9dd9c 100644
--- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Device.java
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Device.java
@@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
*/
-// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
+// Generated on Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
import java.util.*;
@@ -84,9 +84,9 @@ public class Device extends DomainResource {
}
public String getSystem() {
switch (this) {
- case AVAILABLE: return "http://hl7.org.fhir/devicestatus";
- case NOTAVAILABLE: return "http://hl7.org.fhir/devicestatus";
- case ENTEREDINERROR: return "http://hl7.org.fhir/devicestatus";
+ case AVAILABLE: return "http://hl7.org/fhir/devicestatus";
+ case NOTAVAILABLE: return "http://hl7.org/fhir/devicestatus";
+ case ENTEREDINERROR: return "http://hl7.org/fhir/devicestatus";
default: return "?";
}
}
@@ -146,66 +146,73 @@ public class Device extends DomainResource {
@Description(shortDefinition="What kind of device this is", formalDefinition="Code or identifier to identify a kind of device." )
protected CodeableConcept type;
+ /**
+ * Descriptive information, usage information or implantation information that is not captured in an existing element.
+ */
+ @Child(name = "note", type = {Annotation.class}, order=2, min=0, max=Child.MAX_UNLIMITED)
+ @Description(shortDefinition="Device notes and comments", formalDefinition="Descriptive information, usage information or implantation information that is not captured in an existing element." )
+ protected List note;
+
/**
* Status of the Device availability.
*/
- @Child(name = "status", type = {CodeType.class}, order=2, min=0, max=1)
+ @Child(name = "status", type = {CodeType.class}, order=3, min=0, max=1)
@Description(shortDefinition="available | not-available | entered-in-error", formalDefinition="Status of the Device availability." )
protected Enumeration status;
/**
* A name of the manufacturer.
*/
- @Child(name = "manufacturer", type = {StringType.class}, order=3, min=0, max=1)
+ @Child(name = "manufacturer", type = {StringType.class}, order=4, min=0, max=1)
@Description(shortDefinition="Name of device manufacturer", formalDefinition="A name of the manufacturer." )
protected StringType manufacturer;
/**
* The "model" - an identifier assigned by the manufacturer to identify the product by its type. This number is shared by the all devices sold as the same type.
*/
- @Child(name = "model", type = {StringType.class}, order=4, min=0, max=1)
+ @Child(name = "model", type = {StringType.class}, order=5, min=0, max=1)
@Description(shortDefinition="Model id assigned by the manufacturer", formalDefinition="The 'model' - an identifier assigned by the manufacturer to identify the product by its type. This number is shared by the all devices sold as the same type." )
protected StringType model;
/**
* The version of the device, if the device has multiple releases under the same model, or if the device is software or carries firmware.
*/
- @Child(name = "version", type = {StringType.class}, order=5, min=0, max=1)
+ @Child(name = "version", type = {StringType.class}, order=6, min=0, max=1)
@Description(shortDefinition="Version number (i.e. software)", formalDefinition="The version of the device, if the device has multiple releases under the same model, or if the device is software or carries firmware." )
protected StringType version;
/**
* The Date and time when the device was manufactured.
*/
- @Child(name = "manufactureDate", type = {DateTimeType.class}, order=6, min=0, max=1)
+ @Child(name = "manufactureDate", type = {DateTimeType.class}, order=7, min=0, max=1)
@Description(shortDefinition="Manufacture date", formalDefinition="The Date and time when the device was manufactured." )
protected DateTimeType manufactureDate;
/**
* The date and time beyond which this device is no longer valid or should not be used (if applicable).
*/
- @Child(name = "expiry", type = {DateTimeType.class}, order=7, min=0, max=1)
+ @Child(name = "expiry", type = {DateTimeType.class}, order=8, min=0, max=1)
@Description(shortDefinition="Date and time of expiry of this device (if applicable)", formalDefinition="The date and time beyond which this device is no longer valid or should not be used (if applicable)." )
protected DateTimeType expiry;
/**
* United States Food and Drug Administration mandated Unique Device Identifier (UDI). Use the human readable information (the content that the user sees, which is sometimes different to the exact syntax represented in the barcode) - see http://www.fda.gov/MedicalDevices/DeviceRegulationandGuidance/UniqueDeviceIdentification/default.htm.
*/
- @Child(name = "udi", type = {StringType.class}, order=8, min=0, max=1)
+ @Child(name = "udi", type = {StringType.class}, order=9, min=0, max=1)
@Description(shortDefinition="FDA Mandated Unique Device Identifier", formalDefinition="United States Food and Drug Administration mandated Unique Device Identifier (UDI). Use the human readable information (the content that the user sees, which is sometimes different to the exact syntax represented in the barcode) - see http://www.fda.gov/MedicalDevices/DeviceRegulationandGuidance/UniqueDeviceIdentification/default.htm." )
protected StringType udi;
/**
* Lot number assigned by the manufacturer.
*/
- @Child(name = "lotNumber", type = {StringType.class}, order=9, min=0, max=1)
+ @Child(name = "lotNumber", type = {StringType.class}, order=10, min=0, max=1)
@Description(shortDefinition="Lot number of manufacture", formalDefinition="Lot number assigned by the manufacturer." )
protected StringType lotNumber;
/**
* An organization that is responsible for the provision and ongoing maintenance of the device.
*/
- @Child(name = "owner", type = {Organization.class}, order=10, min=0, max=1)
+ @Child(name = "owner", type = {Organization.class}, order=11, min=0, max=1)
@Description(shortDefinition="Organization responsible for device", formalDefinition="An organization that is responsible for the provision and ongoing maintenance of the device." )
protected Reference owner;
@@ -217,7 +224,7 @@ public class Device extends DomainResource {
/**
* The resource may be found in a literal location (i.e. GPS coordinates), a logical place (i.e. "in/with the patient"), or a coded location.
*/
- @Child(name = "location", type = {Location.class}, order=11, min=0, max=1)
+ @Child(name = "location", type = {Location.class}, order=12, min=0, max=1)
@Description(shortDefinition="Where the resource is found", formalDefinition="The resource may be found in a literal location (i.e. GPS coordinates), a logical place (i.e. 'in/with the patient'), or a coded location." )
protected Reference location;
@@ -229,7 +236,7 @@ public class Device extends DomainResource {
/**
* Patient information, if the resource is affixed to a person.
*/
- @Child(name = "patient", type = {Patient.class}, order=12, min=0, max=1)
+ @Child(name = "patient", type = {Patient.class}, order=13, min=0, max=1)
@Description(shortDefinition="If the resource is affixed to a person", formalDefinition="Patient information, if the resource is affixed to a person." )
protected Reference patient;
@@ -241,18 +248,18 @@ public class Device extends DomainResource {
/**
* Contact details for an organization or a particular human that is responsible for the device.
*/
- @Child(name = "contact", type = {ContactPoint.class}, order=13, min=0, max=Child.MAX_UNLIMITED)
+ @Child(name = "contact", type = {ContactPoint.class}, order=14, min=0, max=Child.MAX_UNLIMITED)
@Description(shortDefinition="Details for human/organization for support", formalDefinition="Contact details for an organization or a particular human that is responsible for the device." )
protected List contact;
/**
* A network address on which the device may be contacted directly.
*/
- @Child(name = "url", type = {UriType.class}, order=14, min=0, max=1)
+ @Child(name = "url", type = {UriType.class}, order=15, min=0, max=1)
@Description(shortDefinition="Network address to contact device", formalDefinition="A network address on which the device may be contacted directly." )
protected UriType url;
- private static final long serialVersionUID = -612440681L;
+ private static final long serialVersionUID = 366690094L;
/*
* Constructor
@@ -333,6 +340,46 @@ public class Device extends DomainResource {
return this;
}
+ /**
+ * @return {@link #note} (Descriptive information, usage information or implantation information that is not captured in an existing element.)
+ */
+ public List getNote() {
+ if (this.note == null)
+ this.note = new ArrayList();
+ return this.note;
+ }
+
+ public boolean hasNote() {
+ if (this.note == null)
+ return false;
+ for (Annotation item : this.note)
+ if (!item.isEmpty())
+ return true;
+ return false;
+ }
+
+ /**
+ * @return {@link #note} (Descriptive information, usage information or implantation information that is not captured in an existing element.)
+ */
+ // syntactic sugar
+ public Annotation addNote() { //3
+ Annotation t = new Annotation();
+ if (this.note == null)
+ this.note = new ArrayList();
+ this.note.add(t);
+ return t;
+ }
+
+ // syntactic sugar
+ public Device addNote(Annotation t) { //3
+ if (t == null)
+ return this;
+ if (this.note == null)
+ this.note = new ArrayList();
+ this.note.add(t);
+ return this;
+ }
+
/**
* @return {@link #status} (Status of the Device availability.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value
*/
@@ -950,6 +997,7 @@ public class Device extends DomainResource {
super.listChildren(childrenList);
childrenList.add(new Property("identifier", "Identifier", "Unique instance identifiers assigned to a device by organizations like manufacturers or owners . If the identifier identifies the type of device, Device.type should be used.", 0, java.lang.Integer.MAX_VALUE, identifier));
childrenList.add(new Property("type", "CodeableConcept", "Code or identifier to identify a kind of device.", 0, java.lang.Integer.MAX_VALUE, type));
+ childrenList.add(new Property("note", "Annotation", "Descriptive information, usage information or implantation information that is not captured in an existing element.", 0, java.lang.Integer.MAX_VALUE, note));
childrenList.add(new Property("status", "code", "Status of the Device availability.", 0, java.lang.Integer.MAX_VALUE, status));
childrenList.add(new Property("manufacturer", "string", "A name of the manufacturer.", 0, java.lang.Integer.MAX_VALUE, manufacturer));
childrenList.add(new Property("model", "string", "The 'model' - an identifier assigned by the manufacturer to identify the product by its type. This number is shared by the all devices sold as the same type.", 0, java.lang.Integer.MAX_VALUE, model));
@@ -974,6 +1022,11 @@ public class Device extends DomainResource {
dst.identifier.add(i.copy());
};
dst.type = type == null ? null : type.copy();
+ if (note != null) {
+ dst.note = new ArrayList();
+ for (Annotation i : note)
+ dst.note.add(i.copy());
+ };
dst.status = status == null ? null : status.copy();
dst.manufacturer = manufacturer == null ? null : manufacturer.copy();
dst.model = model == null ? null : model.copy();
@@ -1005,12 +1058,12 @@ public class Device extends DomainResource {
if (!(other instanceof Device))
return false;
Device o = (Device) other;
- return compareDeep(identifier, o.identifier, true) && compareDeep(type, o.type, true) && compareDeep(status, o.status, true)
- && compareDeep(manufacturer, o.manufacturer, true) && compareDeep(model, o.model, true) && compareDeep(version, o.version, true)
- && compareDeep(manufactureDate, o.manufactureDate, true) && compareDeep(expiry, o.expiry, true)
- && compareDeep(udi, o.udi, true) && compareDeep(lotNumber, o.lotNumber, true) && compareDeep(owner, o.owner, true)
- && compareDeep(location, o.location, true) && compareDeep(patient, o.patient, true) && compareDeep(contact, o.contact, true)
- && compareDeep(url, o.url, true);
+ return compareDeep(identifier, o.identifier, true) && compareDeep(type, o.type, true) && compareDeep(note, o.note, true)
+ && compareDeep(status, o.status, true) && compareDeep(manufacturer, o.manufacturer, true) && compareDeep(model, o.model, true)
+ && compareDeep(version, o.version, true) && compareDeep(manufactureDate, o.manufactureDate, true)
+ && compareDeep(expiry, o.expiry, true) && compareDeep(udi, o.udi, true) && compareDeep(lotNumber, o.lotNumber, true)
+ && compareDeep(owner, o.owner, true) && compareDeep(location, o.location, true) && compareDeep(patient, o.patient, true)
+ && compareDeep(contact, o.contact, true) && compareDeep(url, o.url, true);
}
@Override
@@ -1028,7 +1081,7 @@ public class Device extends DomainResource {
public boolean isEmpty() {
return super.isEmpty() && (identifier == null || identifier.isEmpty()) && (type == null || type.isEmpty())
- && (status == null || status.isEmpty()) && (manufacturer == null || manufacturer.isEmpty())
+ && (note == null || note.isEmpty()) && (status == null || status.isEmpty()) && (manufacturer == null || manufacturer.isEmpty())
&& (model == null || model.isEmpty()) && (version == null || version.isEmpty()) && (manufactureDate == null || manufactureDate.isEmpty())
&& (expiry == null || expiry.isEmpty()) && (udi == null || udi.isEmpty()) && (lotNumber == null || lotNumber.isEmpty())
&& (owner == null || owner.isEmpty()) && (location == null || location.isEmpty()) && (patient == null || patient.isEmpty())
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/DeviceComponent.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/DeviceComponent.java
index 56dbe54382e..e76d19e1bce 100644
--- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/DeviceComponent.java
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/DeviceComponent.java
@@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
*/
-// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
+// Generated on Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
import java.util.*;
@@ -140,17 +140,17 @@ public class DeviceComponent extends DomainResource {
}
public String getSystem() {
switch (this) {
- case OTHER: return "http://hl7.org.fhir/measurement-principle";
- case CHEMICAL: return "http://hl7.org.fhir/measurement-principle";
- case ELECTRICAL: return "http://hl7.org.fhir/measurement-principle";
- case IMPEDANCE: return "http://hl7.org.fhir/measurement-principle";
- case NUCLEAR: return "http://hl7.org.fhir/measurement-principle";
- case OPTICAL: return "http://hl7.org.fhir/measurement-principle";
- case THERMAL: return "http://hl7.org.fhir/measurement-principle";
- case BIOLOGICAL: return "http://hl7.org.fhir/measurement-principle";
- case MECHANICAL: return "http://hl7.org.fhir/measurement-principle";
- case ACOUSTICAL: return "http://hl7.org.fhir/measurement-principle";
- case MANUAL: return "http://hl7.org.fhir/measurement-principle";
+ case OTHER: return "http://hl7.org/fhir/measurement-principle";
+ case CHEMICAL: return "http://hl7.org/fhir/measurement-principle";
+ case ELECTRICAL: return "http://hl7.org/fhir/measurement-principle";
+ case IMPEDANCE: return "http://hl7.org/fhir/measurement-principle";
+ case NUCLEAR: return "http://hl7.org/fhir/measurement-principle";
+ case OPTICAL: return "http://hl7.org/fhir/measurement-principle";
+ case THERMAL: return "http://hl7.org/fhir/measurement-principle";
+ case BIOLOGICAL: return "http://hl7.org/fhir/measurement-principle";
+ case MECHANICAL: return "http://hl7.org/fhir/measurement-principle";
+ case ACOUSTICAL: return "http://hl7.org/fhir/measurement-principle";
+ case MANUAL: return "http://hl7.org/fhir/measurement-principle";
default: return "?";
}
}
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/DeviceMetric.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/DeviceMetric.java
index b25e48e833c..253fd1ae430 100644
--- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/DeviceMetric.java
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/DeviceMetric.java
@@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
*/
-// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
+// Generated on Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
import java.util.*;
@@ -84,9 +84,9 @@ public class DeviceMetric extends DomainResource {
}
public String getSystem() {
switch (this) {
- case ON: return "http://hl7.org.fhir/metric-operational-status";
- case OFF: return "http://hl7.org.fhir/metric-operational-status";
- case STANDBY: return "http://hl7.org.fhir/metric-operational-status";
+ case ON: return "http://hl7.org/fhir/metric-operational-status";
+ case OFF: return "http://hl7.org/fhir/metric-operational-status";
+ case STANDBY: return "http://hl7.org/fhir/metric-operational-status";
default: return "?";
}
}
@@ -205,14 +205,14 @@ public class DeviceMetric extends DomainResource {
}
public String getSystem() {
switch (this) {
- case BLACK: return "http://hl7.org.fhir/metric-color";
- case RED: return "http://hl7.org.fhir/metric-color";
- case GREEN: return "http://hl7.org.fhir/metric-color";
- case YELLOW: return "http://hl7.org.fhir/metric-color";
- case BLUE: return "http://hl7.org.fhir/metric-color";
- case MAGENTA: return "http://hl7.org.fhir/metric-color";
- case CYAN: return "http://hl7.org.fhir/metric-color";
- case WHITE: return "http://hl7.org.fhir/metric-color";
+ case BLACK: return "http://hl7.org/fhir/metric-color";
+ case RED: return "http://hl7.org/fhir/metric-color";
+ case GREEN: return "http://hl7.org/fhir/metric-color";
+ case YELLOW: return "http://hl7.org/fhir/metric-color";
+ case BLUE: return "http://hl7.org/fhir/metric-color";
+ case MAGENTA: return "http://hl7.org/fhir/metric-color";
+ case CYAN: return "http://hl7.org/fhir/metric-color";
+ case WHITE: return "http://hl7.org/fhir/metric-color";
default: return "?";
}
}
@@ -333,10 +333,10 @@ public class DeviceMetric extends DomainResource {
}
public String getSystem() {
switch (this) {
- case MEASUREMENT: return "http://hl7.org.fhir/metric-category";
- case SETTING: return "http://hl7.org.fhir/metric-category";
- case CALCULATION: return "http://hl7.org.fhir/metric-category";
- case UNSPECIFIED: return "http://hl7.org.fhir/metric-category";
+ case MEASUREMENT: return "http://hl7.org/fhir/metric-category";
+ case SETTING: return "http://hl7.org/fhir/metric-category";
+ case CALCULATION: return "http://hl7.org/fhir/metric-category";
+ case UNSPECIFIED: return "http://hl7.org/fhir/metric-category";
default: return "?";
}
}
@@ -433,10 +433,10 @@ public class DeviceMetric extends DomainResource {
}
public String getSystem() {
switch (this) {
- case UNSPECIFIED: return "http://hl7.org.fhir/metric-calibration-type";
- case OFFSET: return "http://hl7.org.fhir/metric-calibration-type";
- case GAIN: return "http://hl7.org.fhir/metric-calibration-type";
- case TWOPOINT: return "http://hl7.org.fhir/metric-calibration-type";
+ case UNSPECIFIED: return "http://hl7.org/fhir/metric-calibration-type";
+ case OFFSET: return "http://hl7.org/fhir/metric-calibration-type";
+ case GAIN: return "http://hl7.org/fhir/metric-calibration-type";
+ case TWOPOINT: return "http://hl7.org/fhir/metric-calibration-type";
default: return "?";
}
}
@@ -533,10 +533,10 @@ public class DeviceMetric extends DomainResource {
}
public String getSystem() {
switch (this) {
- case NOTCALIBRATED: return "http://hl7.org.fhir/metric-calibration-state";
- case CALIBRATIONREQUIRED: return "http://hl7.org.fhir/metric-calibration-state";
- case CALIBRATED: return "http://hl7.org.fhir/metric-calibration-state";
- case UNSPECIFIED: return "http://hl7.org.fhir/metric-calibration-state";
+ case NOTCALIBRATED: return "http://hl7.org/fhir/metric-calibration-state";
+ case CALIBRATIONREQUIRED: return "http://hl7.org/fhir/metric-calibration-state";
+ case CALIBRATED: return "http://hl7.org/fhir/metric-calibration-state";
+ case UNSPECIFIED: return "http://hl7.org/fhir/metric-calibration-state";
default: return "?";
}
}
@@ -868,10 +868,10 @@ An example would be a DeviceComponent that represents a Channel. This reference
protected Enumeration operationalStatus;
/**
- * Describes the typical color of the representation of observations that have been generated for this DeviceMetric.
+ * Describes the color representation for the metric. This is often used to aid clinicians to track and identify parameter types by color. In practice, consider a Patient Monitor that has ECG/HR and Pleth for example; the parameters are displayed in different characteristic colors, such as HR-blue, BP-green, and PR and SpO2- magenta.
*/
@Child(name = "color", type = {CodeType.class}, order=6, min=0, max=1)
- @Description(shortDefinition="black | red | green | yellow | blue | magenta | cyan | white", formalDefinition="Describes the typical color of the representation of observations that have been generated for this DeviceMetric." )
+ @Description(shortDefinition="black | red | green | yellow | blue | magenta | cyan | white", formalDefinition="Describes the color representation for the metric. This is often used to aid clinicians to track and identify parameter types by color. In practice, consider a Patient Monitor that has ECG/HR and Pleth for example; the parameters are displayed in different characteristic colors, such as HR-blue, BP-green, and PR and SpO2- magenta." )
protected Enumeration color;
/**
@@ -882,12 +882,12 @@ An example would be a DeviceComponent that represents a Channel. This reference
protected Enumeration category;
/**
- * Describes the measurement repetition time. This is not
-necessarily the same as the update
-period.
+ * Describes the measurement repetition time. This is not necessarily the same as the update period.
+The measurement repetition time can range from milliseconds up to hours. An example for a measurement repetition time in the range of milliseconds is the sampling rate of an ECG. An example for a measurement repetition time in the range of hours is a NIBP that is triggered automatically every hour.
+The update period may be different than the measurement repetition time, if the device does not update the published observed value with the same frequency as it was measured.
*/
@Child(name = "measurementPeriod", type = {Timing.class}, order=8, min=0, max=1)
- @Description(shortDefinition="Describes the measurement repetition time", formalDefinition="Describes the measurement repetition time. This is not\nnecessarily the same as the update\nperiod." )
+ @Description(shortDefinition="Describes the measurement repetition time", formalDefinition="Describes the measurement repetition time. This is not necessarily the same as the update period.\nThe measurement repetition time can range from milliseconds up to hours. An example for a measurement repetition time in the range of milliseconds is the sampling rate of an ECG. An example for a measurement repetition time in the range of hours is a NIBP that is triggered automatically every hour.\nThe update period may be different than the measurement repetition time, if the device does not update the published observed value with the same frequency as it was measured." )
protected Timing measurementPeriod;
/**
@@ -1132,7 +1132,7 @@ An example would be a DeviceComponent that represents a Channel. This reference
}
/**
- * @return {@link #color} (Describes the typical color of the representation of observations that have been generated for this DeviceMetric.). This is the underlying object with id, value and extensions. The accessor "getColor" gives direct access to the value
+ * @return {@link #color} (Describes the color representation for the metric. This is often used to aid clinicians to track and identify parameter types by color. In practice, consider a Patient Monitor that has ECG/HR and Pleth for example; the parameters are displayed in different characteristic colors, such as HR-blue, BP-green, and PR and SpO2- magenta.). This is the underlying object with id, value and extensions. The accessor "getColor" gives direct access to the value
*/
public Enumeration getColorElement() {
if (this.color == null)
@@ -1152,7 +1152,7 @@ An example would be a DeviceComponent that represents a Channel. This reference
}
/**
- * @param value {@link #color} (Describes the typical color of the representation of observations that have been generated for this DeviceMetric.). This is the underlying object with id, value and extensions. The accessor "getColor" gives direct access to the value
+ * @param value {@link #color} (Describes the color representation for the metric. This is often used to aid clinicians to track and identify parameter types by color. In practice, consider a Patient Monitor that has ECG/HR and Pleth for example; the parameters are displayed in different characteristic colors, such as HR-blue, BP-green, and PR and SpO2- magenta.). This is the underlying object with id, value and extensions. The accessor "getColor" gives direct access to the value
*/
public DeviceMetric setColorElement(Enumeration value) {
this.color = value;
@@ -1160,14 +1160,14 @@ An example would be a DeviceComponent that represents a Channel. This reference
}
/**
- * @return Describes the typical color of the representation of observations that have been generated for this DeviceMetric.
+ * @return Describes the color representation for the metric. This is often used to aid clinicians to track and identify parameter types by color. In practice, consider a Patient Monitor that has ECG/HR and Pleth for example; the parameters are displayed in different characteristic colors, such as HR-blue, BP-green, and PR and SpO2- magenta.
*/
public DeviceMetricColor getColor() {
return this.color == null ? null : this.color.getValue();
}
/**
- * @param value Describes the typical color of the representation of observations that have been generated for this DeviceMetric.
+ * @param value Describes the color representation for the metric. This is often used to aid clinicians to track and identify parameter types by color. In practice, consider a Patient Monitor that has ECG/HR and Pleth for example; the parameters are displayed in different characteristic colors, such as HR-blue, BP-green, and PR and SpO2- magenta.
*/
public DeviceMetric setColor(DeviceMetricColor value) {
if (value == null)
@@ -1226,9 +1226,9 @@ An example would be a DeviceComponent that represents a Channel. This reference
}
/**
- * @return {@link #measurementPeriod} (Describes the measurement repetition time. This is not
-necessarily the same as the update
-period.)
+ * @return {@link #measurementPeriod} (Describes the measurement repetition time. This is not necessarily the same as the update period.
+The measurement repetition time can range from milliseconds up to hours. An example for a measurement repetition time in the range of milliseconds is the sampling rate of an ECG. An example for a measurement repetition time in the range of hours is a NIBP that is triggered automatically every hour.
+The update period may be different than the measurement repetition time, if the device does not update the published observed value with the same frequency as it was measured.)
*/
public Timing getMeasurementPeriod() {
if (this.measurementPeriod == null)
@@ -1244,9 +1244,9 @@ period.)
}
/**
- * @param value {@link #measurementPeriod} (Describes the measurement repetition time. This is not
-necessarily the same as the update
-period.)
+ * @param value {@link #measurementPeriod} (Describes the measurement repetition time. This is not necessarily the same as the update period.
+The measurement repetition time can range from milliseconds up to hours. An example for a measurement repetition time in the range of milliseconds is the sampling rate of an ECG. An example for a measurement repetition time in the range of hours is a NIBP that is triggered automatically every hour.
+The update period may be different than the measurement repetition time, if the device does not update the published observed value with the same frequency as it was measured.)
*/
public DeviceMetric setMeasurementPeriod(Timing value) {
this.measurementPeriod = value;
@@ -1301,9 +1301,9 @@ period.)
childrenList.add(new Property("source", "Reference(Device)", "Describes the link to the Device that this DeviceMetric belongs to and that contains administrative device information such as manufacture, serial number, etc.", 0, java.lang.Integer.MAX_VALUE, source));
childrenList.add(new Property("parent", "Reference(DeviceComponent)", "Describes the link to the DeviceComponent that this DeviceMetric belongs to and that provide information about the location of this DeviceMetric in the containment structure of the parent Device.\nAn example would be a DeviceComponent that represents a Channel. This reference can be used by a client application to distinguish DeviceMetrics that have the same type, but should be interpreted based on their containment location.", 0, java.lang.Integer.MAX_VALUE, parent));
childrenList.add(new Property("operationalStatus", "code", "Indicates current operational state of the device. For example: On, Off, Standby, etc.", 0, java.lang.Integer.MAX_VALUE, operationalStatus));
- childrenList.add(new Property("color", "code", "Describes the typical color of the representation of observations that have been generated for this DeviceMetric.", 0, java.lang.Integer.MAX_VALUE, color));
+ childrenList.add(new Property("color", "code", "Describes the color representation for the metric. This is often used to aid clinicians to track and identify parameter types by color. In practice, consider a Patient Monitor that has ECG/HR and Pleth for example; the parameters are displayed in different characteristic colors, such as HR-blue, BP-green, and PR and SpO2- magenta.", 0, java.lang.Integer.MAX_VALUE, color));
childrenList.add(new Property("category", "code", "Indicates the category of the observation generation process. A DeviceMetric can be for example a setting, measurement, or calculation.", 0, java.lang.Integer.MAX_VALUE, category));
- childrenList.add(new Property("measurementPeriod", "Timing", "Describes the measurement repetition time. This is not\nnecessarily the same as the update\nperiod.", 0, java.lang.Integer.MAX_VALUE, measurementPeriod));
+ childrenList.add(new Property("measurementPeriod", "Timing", "Describes the measurement repetition time. This is not necessarily the same as the update period.\nThe measurement repetition time can range from milliseconds up to hours. An example for a measurement repetition time in the range of milliseconds is the sampling rate of an ECG. An example for a measurement repetition time in the range of hours is a NIBP that is triggered automatically every hour.\nThe update period may be different than the measurement repetition time, if the device does not update the published observed value with the same frequency as it was measured.", 0, java.lang.Integer.MAX_VALUE, measurementPeriod));
childrenList.add(new Property("calibration", "", "Describes the calibrations that have been performed or that are required to be performed.", 0, java.lang.Integer.MAX_VALUE, calibration));
}
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/DeviceUseRequest.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/DeviceUseRequest.java
index caa22d9e665..7e476704ad1 100644
--- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/DeviceUseRequest.java
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/DeviceUseRequest.java
@@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
*/
-// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
+// Generated on Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
import java.util.*;
@@ -133,16 +133,16 @@ public class DeviceUseRequest extends DomainResource {
}
public String getSystem() {
switch (this) {
- case PROPOSED: return "http://hl7.org.fhir/device-use-request-status";
- case PLANNED: return "http://hl7.org.fhir/device-use-request-status";
- case REQUESTED: return "http://hl7.org.fhir/device-use-request-status";
- case RECEIVED: return "http://hl7.org.fhir/device-use-request-status";
- case ACCEPTED: return "http://hl7.org.fhir/device-use-request-status";
- case INPROGRESS: return "http://hl7.org.fhir/device-use-request-status";
- case COMPLETED: return "http://hl7.org.fhir/device-use-request-status";
- case SUSPENDED: return "http://hl7.org.fhir/device-use-request-status";
- case REJECTED: return "http://hl7.org.fhir/device-use-request-status";
- case ABORTED: return "http://hl7.org.fhir/device-use-request-status";
+ case PROPOSED: return "http://hl7.org/fhir/device-use-request-status";
+ case PLANNED: return "http://hl7.org/fhir/device-use-request-status";
+ case REQUESTED: return "http://hl7.org/fhir/device-use-request-status";
+ case RECEIVED: return "http://hl7.org/fhir/device-use-request-status";
+ case ACCEPTED: return "http://hl7.org/fhir/device-use-request-status";
+ case INPROGRESS: return "http://hl7.org/fhir/device-use-request-status";
+ case COMPLETED: return "http://hl7.org/fhir/device-use-request-status";
+ case SUSPENDED: return "http://hl7.org/fhir/device-use-request-status";
+ case REJECTED: return "http://hl7.org/fhir/device-use-request-status";
+ case ABORTED: return "http://hl7.org/fhir/device-use-request-status";
default: return "?";
}
}
@@ -275,10 +275,10 @@ public class DeviceUseRequest extends DomainResource {
}
public String getSystem() {
switch (this) {
- case ROUTINE: return "http://hl7.org.fhir/device-use-request-priority";
- case URGENT: return "http://hl7.org.fhir/device-use-request-priority";
- case STAT: return "http://hl7.org.fhir/device-use-request-priority";
- case ASAP: return "http://hl7.org.fhir/device-use-request-priority";
+ case ROUTINE: return "http://hl7.org/fhir/device-use-request-priority";
+ case URGENT: return "http://hl7.org/fhir/device-use-request-priority";
+ case STAT: return "http://hl7.org/fhir/device-use-request-priority";
+ case ASAP: return "http://hl7.org/fhir/device-use-request-priority";
default: return "?";
}
}
@@ -470,6 +470,10 @@ public class DeviceUseRequest extends DomainResource {
return (CodeableConcept) this.bodySite;
}
+ public boolean hasBodySiteCodeableConcept() throws Exception {
+ return this.bodySite instanceof CodeableConcept;
+ }
+
/**
* @return {@link #bodySite} (Indicates the site on the subject's body where the device should be used ( i.e. the target site).)
*/
@@ -479,6 +483,10 @@ public class DeviceUseRequest extends DomainResource {
return (Reference) this.bodySite;
}
+ public boolean hasBodySiteReference() throws Exception {
+ return this.bodySite instanceof Reference;
+ }
+
public boolean hasBodySite() {
return this.bodySite != null && !this.bodySite.isEmpty();
}
@@ -960,6 +968,10 @@ public class DeviceUseRequest extends DomainResource {
return (Timing) this.timing;
}
+ public boolean hasTimingTiming() throws Exception {
+ return this.timing instanceof Timing;
+ }
+
/**
* @return {@link #timing} (The timing schedule for the use of the device The Schedule data type allows many different expressions, for example. "Every 8 hours"; "Three times a day"; "1/2 an hour before breakfast for 10 days from 23-Dec 2011:"; "15 Oct 2013, 17 Oct 2013 and 1 Nov 2013".)
*/
@@ -969,6 +981,10 @@ public class DeviceUseRequest extends DomainResource {
return (Period) this.timing;
}
+ public boolean hasTimingPeriod() throws Exception {
+ return this.timing instanceof Period;
+ }
+
/**
* @return {@link #timing} (The timing schedule for the use of the device The Schedule data type allows many different expressions, for example. "Every 8 hours"; "Three times a day"; "1/2 an hour before breakfast for 10 days from 23-Dec 2011:"; "15 Oct 2013, 17 Oct 2013 and 1 Nov 2013".)
*/
@@ -978,6 +994,10 @@ public class DeviceUseRequest extends DomainResource {
return (DateTimeType) this.timing;
}
+ public boolean hasTimingDateTimeType() throws Exception {
+ return this.timing instanceof DateTimeType;
+ }
+
public boolean hasTiming() {
return this.timing != null && !this.timing.isEmpty();
}
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/DeviceUseStatement.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/DeviceUseStatement.java
index 8a7a9b1260a..ad6766525fe 100644
--- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/DeviceUseStatement.java
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/DeviceUseStatement.java
@@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
*/
-// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
+// Generated on Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
import java.util.*;
@@ -153,6 +153,10 @@ public class DeviceUseStatement extends DomainResource {
return (CodeableConcept) this.bodySite;
}
+ public boolean hasBodySiteCodeableConcept() throws Exception {
+ return this.bodySite instanceof CodeableConcept;
+ }
+
/**
* @return {@link #bodySite} (Indicates the site on the subject's body where the device was used ( i.e. the target site).)
*/
@@ -162,6 +166,10 @@ public class DeviceUseStatement extends DomainResource {
return (Reference) this.bodySite;
}
+ public boolean hasBodySiteReference() throws Exception {
+ return this.bodySite instanceof Reference;
+ }
+
public boolean hasBodySite() {
return this.bodySite != null && !this.bodySite.isEmpty();
}
@@ -485,6 +493,10 @@ public class DeviceUseStatement extends DomainResource {
return (Timing) this.timing;
}
+ public boolean hasTimingTiming() throws Exception {
+ return this.timing instanceof Timing;
+ }
+
/**
* @return {@link #timing} (How often the device was used.)
*/
@@ -494,6 +506,10 @@ public class DeviceUseStatement extends DomainResource {
return (Period) this.timing;
}
+ public boolean hasTimingPeriod() throws Exception {
+ return this.timing instanceof Period;
+ }
+
/**
* @return {@link #timing} (How often the device was used.)
*/
@@ -503,6 +519,10 @@ public class DeviceUseStatement extends DomainResource {
return (DateTimeType) this.timing;
}
+ public boolean hasTimingDateTimeType() throws Exception {
+ return this.timing instanceof DateTimeType;
+ }
+
public boolean hasTiming() {
return this.timing != null && !this.timing.isEmpty();
}
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/DiagnosticOrder.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/DiagnosticOrder.java
index 4b8e275c7a3..468bc8fe18f 100644
--- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/DiagnosticOrder.java
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/DiagnosticOrder.java
@@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
*/
-// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
+// Generated on Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
import java.util.*;
@@ -154,19 +154,19 @@ public class DiagnosticOrder extends DomainResource {
}
public String getSystem() {
switch (this) {
- case PROPOSED: return "http://hl7.org.fhir/diagnostic-order-status";
- case DRAFT: return "http://hl7.org.fhir/diagnostic-order-status";
- case PLANNED: return "http://hl7.org.fhir/diagnostic-order-status";
- case REQUESTED: return "http://hl7.org.fhir/diagnostic-order-status";
- case RECEIVED: return "http://hl7.org.fhir/diagnostic-order-status";
- case ACCEPTED: return "http://hl7.org.fhir/diagnostic-order-status";
- case INPROGRESS: return "http://hl7.org.fhir/diagnostic-order-status";
- case REVIEW: return "http://hl7.org.fhir/diagnostic-order-status";
- case COMPLETED: return "http://hl7.org.fhir/diagnostic-order-status";
- case CANCELLED: return "http://hl7.org.fhir/diagnostic-order-status";
- case SUSPENDED: return "http://hl7.org.fhir/diagnostic-order-status";
- case REJECTED: return "http://hl7.org.fhir/diagnostic-order-status";
- case FAILED: return "http://hl7.org.fhir/diagnostic-order-status";
+ case PROPOSED: return "http://hl7.org/fhir/diagnostic-order-status";
+ case DRAFT: return "http://hl7.org/fhir/diagnostic-order-status";
+ case PLANNED: return "http://hl7.org/fhir/diagnostic-order-status";
+ case REQUESTED: return "http://hl7.org/fhir/diagnostic-order-status";
+ case RECEIVED: return "http://hl7.org/fhir/diagnostic-order-status";
+ case ACCEPTED: return "http://hl7.org/fhir/diagnostic-order-status";
+ case INPROGRESS: return "http://hl7.org/fhir/diagnostic-order-status";
+ case REVIEW: return "http://hl7.org/fhir/diagnostic-order-status";
+ case COMPLETED: return "http://hl7.org/fhir/diagnostic-order-status";
+ case CANCELLED: return "http://hl7.org/fhir/diagnostic-order-status";
+ case SUSPENDED: return "http://hl7.org/fhir/diagnostic-order-status";
+ case REJECTED: return "http://hl7.org/fhir/diagnostic-order-status";
+ case FAILED: return "http://hl7.org/fhir/diagnostic-order-status";
default: return "?";
}
}
@@ -317,10 +317,10 @@ public class DiagnosticOrder extends DomainResource {
}
public String getSystem() {
switch (this) {
- case ROUTINE: return "http://hl7.org.fhir/diagnostic-order-priority";
- case URGENT: return "http://hl7.org.fhir/diagnostic-order-priority";
- case STAT: return "http://hl7.org.fhir/diagnostic-order-priority";
- case ASAP: return "http://hl7.org.fhir/diagnostic-order-priority";
+ case ROUTINE: return "http://hl7.org/fhir/diagnostic-order-priority";
+ case URGENT: return "http://hl7.org/fhir/diagnostic-order-priority";
+ case STAT: return "http://hl7.org/fhir/diagnostic-order-priority";
+ case ASAP: return "http://hl7.org/fhir/diagnostic-order-priority";
default: return "?";
}
}
@@ -784,6 +784,10 @@ public class DiagnosticOrder extends DomainResource {
return (CodeableConcept) this.bodySite;
}
+ public boolean hasBodySiteCodeableConcept() throws Exception {
+ return this.bodySite instanceof CodeableConcept;
+ }
+
/**
* @return {@link #bodySite} (Anatomical location where the request test should be performed. This is the target site.)
*/
@@ -793,6 +797,10 @@ public class DiagnosticOrder extends DomainResource {
return (Reference) this.bodySite;
}
+ public boolean hasBodySiteReference() throws Exception {
+ return this.bodySite instanceof Reference;
+ }
+
public boolean hasBodySite() {
return this.bodySite != null && !this.bodySite.isEmpty();
}
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/DiagnosticReport.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/DiagnosticReport.java
index e2400eb8886..0dd033a1217 100644
--- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/DiagnosticReport.java
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/DiagnosticReport.java
@@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
*/
-// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
+// Generated on Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
import java.util.*;
@@ -112,13 +112,13 @@ public class DiagnosticReport extends DomainResource {
}
public String getSystem() {
switch (this) {
- case REGISTERED: return "http://hl7.org.fhir/diagnostic-report-status";
- case PARTIAL: return "http://hl7.org.fhir/diagnostic-report-status";
- case FINAL: return "http://hl7.org.fhir/diagnostic-report-status";
- case CORRECTED: return "http://hl7.org.fhir/diagnostic-report-status";
- case APPENDED: return "http://hl7.org.fhir/diagnostic-report-status";
- case CANCELLED: return "http://hl7.org.fhir/diagnostic-report-status";
- case ENTEREDINERROR: return "http://hl7.org.fhir/diagnostic-report-status";
+ case REGISTERED: return "http://hl7.org/fhir/diagnostic-report-status";
+ case PARTIAL: return "http://hl7.org/fhir/diagnostic-report-status";
+ case FINAL: return "http://hl7.org/fhir/diagnostic-report-status";
+ case CORRECTED: return "http://hl7.org/fhir/diagnostic-report-status";
+ case APPENDED: return "http://hl7.org/fhir/diagnostic-report-status";
+ case CANCELLED: return "http://hl7.org/fhir/diagnostic-report-status";
+ case ENTEREDINERROR: return "http://hl7.org/fhir/diagnostic-report-status";
default: return "?";
}
}
@@ -363,9 +363,9 @@ public class DiagnosticReport extends DomainResource {
/**
* A code or name that describes this diagnostic report.
*/
- @Child(name = "name", type = {CodeableConcept.class}, order=0, min=1, max=1)
+ @Child(name = "code", type = {CodeableConcept.class}, order=0, min=1, max=1)
@Description(shortDefinition="Name/Code for this diagnostic report", formalDefinition="A code or name that describes this diagnostic report." )
- protected CodeableConcept name;
+ protected CodeableConcept code;
/**
* The status of the diagnostic report as a whole.
@@ -477,13 +477,13 @@ public class DiagnosticReport extends DomainResource {
/**
* One or more links to full details of any imaging performed during the diagnostic investigation. Typically, this is imaging performed by DICOM enabled modalities, but this is not required. A fully enabled PACS viewer can use this information to provide views of the source images.
*/
- @Child(name = "imagingStudy", type = {ImagingStudy.class}, order=12, min=0, max=Child.MAX_UNLIMITED)
+ @Child(name = "imagingStudy", type = {ImagingStudy.class, ImagingObjectSelection.class}, order=12, min=0, max=Child.MAX_UNLIMITED)
@Description(shortDefinition="Reference to full details of imaging associated with the diagnostic report", formalDefinition="One or more links to full details of any imaging performed during the diagnostic investigation. Typically, this is imaging performed by DICOM enabled modalities, but this is not required. A fully enabled PACS viewer can use this information to provide views of the source images." )
protected List imagingStudy;
/**
* The actual objects that are the target of the reference (One or more links to full details of any imaging performed during the diagnostic investigation. Typically, this is imaging performed by DICOM enabled modalities, but this is not required. A fully enabled PACS viewer can use this information to provide views of the source images.)
*/
- protected List imagingStudyTarget;
+ protected List imagingStudyTarget;
/**
@@ -514,7 +514,7 @@ public class DiagnosticReport extends DomainResource {
@Description(shortDefinition="Entire Report as issued", formalDefinition="Rich text representation of the entire result as issued by the diagnostic service. Multiple formats are allowed but they SHALL be semantically equivalent." )
protected List presentedForm;
- private static final long serialVersionUID = 486295410L;
+ private static final long serialVersionUID = 14484749L;
/*
* Constructor
@@ -526,9 +526,9 @@ public class DiagnosticReport extends DomainResource {
/*
* Constructor
*/
- public DiagnosticReport(CodeableConcept name, Enumeration status, InstantType issued, Reference subject, Reference performer, Type effective) {
+ public DiagnosticReport(CodeableConcept code, Enumeration status, InstantType issued, Reference subject, Reference performer, Type effective) {
super();
- this.name = name;
+ this.code = code;
this.status = status;
this.issued = issued;
this.subject = subject;
@@ -537,26 +537,26 @@ public class DiagnosticReport extends DomainResource {
}
/**
- * @return {@link #name} (A code or name that describes this diagnostic report.)
+ * @return {@link #code} (A code or name that describes this diagnostic report.)
*/
- public CodeableConcept getName() {
- if (this.name == null)
+ public CodeableConcept getCode() {
+ if (this.code == null)
if (Configuration.errorOnAutoCreate())
- throw new Error("Attempt to auto-create DiagnosticReport.name");
+ throw new Error("Attempt to auto-create DiagnosticReport.code");
else if (Configuration.doAutoCreate())
- this.name = new CodeableConcept(); // cc
- return this.name;
+ this.code = new CodeableConcept(); // cc
+ return this.code;
}
- public boolean hasName() {
- return this.name != null && !this.name.isEmpty();
+ public boolean hasCode() {
+ return this.code != null && !this.code.isEmpty();
}
/**
- * @param value {@link #name} (A code or name that describes this diagnostic report.)
+ * @param value {@link #code} (A code or name that describes this diagnostic report.)
*/
- public DiagnosticReport setName(CodeableConcept value) {
- this.name = value;
+ public DiagnosticReport setCode(CodeableConcept value) {
+ this.code = value;
return this;
}
@@ -913,6 +913,10 @@ public class DiagnosticReport extends DomainResource {
return (DateTimeType) this.effective;
}
+ public boolean hasEffectiveDateTimeType() throws Exception {
+ return this.effective instanceof DateTimeType;
+ }
+
/**
* @return {@link #effective} (The time or time-period the observed values are related to. When the subject of the report is a patient, this is usually either the time of the procedure or of specimen collection(s), but very often the source of the date/time is not known, only the date/time itself.)
*/
@@ -922,6 +926,10 @@ public class DiagnosticReport extends DomainResource {
return (Period) this.effective;
}
+ public boolean hasEffectivePeriod() throws Exception {
+ return this.effective instanceof Period;
+ }
+
public boolean hasEffective() {
return this.effective != null && !this.effective.isEmpty();
}
@@ -1099,24 +1107,12 @@ public class DiagnosticReport extends DomainResource {
/**
* @return {@link #imagingStudy} (The actual objects that are the target of the reference. The reference library doesn't populate this, but you can use this to hold the resources if you resolvethemt. One or more links to full details of any imaging performed during the diagnostic investigation. Typically, this is imaging performed by DICOM enabled modalities, but this is not required. A fully enabled PACS viewer can use this information to provide views of the source images.)
*/
- public List getImagingStudyTarget() {
+ public List getImagingStudyTarget() {
if (this.imagingStudyTarget == null)
- this.imagingStudyTarget = new ArrayList();
+ this.imagingStudyTarget = new ArrayList();
return this.imagingStudyTarget;
}
- // syntactic sugar
- /**
- * @return {@link #imagingStudy} (Add an actual object that is the target of the reference. The reference library doesn't use these, but you can use this to hold the resources if you resolvethemt. One or more links to full details of any imaging performed during the diagnostic investigation. Typically, this is imaging performed by DICOM enabled modalities, but this is not required. A fully enabled PACS viewer can use this information to provide views of the source images.)
- */
- public ImagingStudy addImagingStudyTarget() {
- ImagingStudy r = new ImagingStudy();
- if (this.imagingStudyTarget == null)
- this.imagingStudyTarget = new ArrayList();
- this.imagingStudyTarget.add(r);
- return r;
- }
-
/**
* @return {@link #image} (A list of key images associated with this report. The images are generally created during the diagnostic process, and may be directly of the patient, or of treated specimens (i.e. slides of interest).)
*/
@@ -1288,7 +1284,7 @@ public class DiagnosticReport extends DomainResource {
protected void listChildren(List childrenList) {
super.listChildren(childrenList);
- childrenList.add(new Property("name", "CodeableConcept", "A code or name that describes this diagnostic report.", 0, java.lang.Integer.MAX_VALUE, name));
+ childrenList.add(new Property("code", "CodeableConcept", "A code or name that describes this diagnostic report.", 0, java.lang.Integer.MAX_VALUE, code));
childrenList.add(new Property("status", "code", "The status of the diagnostic report as a whole.", 0, java.lang.Integer.MAX_VALUE, status));
childrenList.add(new Property("issued", "instant", "The date and time that this version of the report was released from the source diagnostic service.", 0, java.lang.Integer.MAX_VALUE, issued));
childrenList.add(new Property("subject", "Reference(Patient|Group|Device|Location)", "The subject of the report. Usually, but not always, this is a patient. However diagnostic services also perform analyses on specimens collected from a variety of other sources.", 0, java.lang.Integer.MAX_VALUE, subject));
@@ -1300,7 +1296,7 @@ public class DiagnosticReport extends DomainResource {
childrenList.add(new Property("effective[x]", "dateTime|Period", "The time or time-period the observed values are related to. When the subject of the report is a patient, this is usually either the time of the procedure or of specimen collection(s), but very often the source of the date/time is not known, only the date/time itself.", 0, java.lang.Integer.MAX_VALUE, effective));
childrenList.add(new Property("specimen", "Reference(Specimen)", "Details about the specimens on which this diagnostic report is based.", 0, java.lang.Integer.MAX_VALUE, specimen));
childrenList.add(new Property("result", "Reference(Observation)", "Observations that are part of this diagnostic report. Observations can be simple name/value pairs (e.g. 'atomic' results), or they can be grouping observations that include references to other members of the group (e.g. 'panels').", 0, java.lang.Integer.MAX_VALUE, result));
- childrenList.add(new Property("imagingStudy", "Reference(ImagingStudy)", "One or more links to full details of any imaging performed during the diagnostic investigation. Typically, this is imaging performed by DICOM enabled modalities, but this is not required. A fully enabled PACS viewer can use this information to provide views of the source images.", 0, java.lang.Integer.MAX_VALUE, imagingStudy));
+ childrenList.add(new Property("imagingStudy", "Reference(ImagingStudy|ImagingObjectSelection)", "One or more links to full details of any imaging performed during the diagnostic investigation. Typically, this is imaging performed by DICOM enabled modalities, but this is not required. A fully enabled PACS viewer can use this information to provide views of the source images.", 0, java.lang.Integer.MAX_VALUE, imagingStudy));
childrenList.add(new Property("image", "", "A list of key images associated with this report. The images are generally created during the diagnostic process, and may be directly of the patient, or of treated specimens (i.e. slides of interest).", 0, java.lang.Integer.MAX_VALUE, image));
childrenList.add(new Property("conclusion", "string", "Concise and clinically contextualized narrative interpretation of the diagnostic report.", 0, java.lang.Integer.MAX_VALUE, conclusion));
childrenList.add(new Property("codedDiagnosis", "CodeableConcept", "Codes for the conclusion.", 0, java.lang.Integer.MAX_VALUE, codedDiagnosis));
@@ -1310,7 +1306,7 @@ public class DiagnosticReport extends DomainResource {
public DiagnosticReport copy() {
DiagnosticReport dst = new DiagnosticReport();
copyValues(dst);
- dst.name = name == null ? null : name.copy();
+ dst.code = code == null ? null : code.copy();
dst.status = status == null ? null : status.copy();
dst.issued = issued == null ? null : issued.copy();
dst.subject = subject == null ? null : subject.copy();
@@ -1373,7 +1369,7 @@ public class DiagnosticReport extends DomainResource {
if (!(other instanceof DiagnosticReport))
return false;
DiagnosticReport o = (DiagnosticReport) other;
- return compareDeep(name, o.name, true) && compareDeep(status, o.status, true) && compareDeep(issued, o.issued, true)
+ return compareDeep(code, o.code, true) && compareDeep(status, o.status, true) && compareDeep(issued, o.issued, true)
&& compareDeep(subject, o.subject, true) && compareDeep(performer, o.performer, true) && compareDeep(encounter, o.encounter, true)
&& compareDeep(identifier, o.identifier, true) && compareDeep(requestDetail, o.requestDetail, true)
&& compareDeep(serviceCategory, o.serviceCategory, true) && compareDeep(effective, o.effective, true)
@@ -1394,7 +1390,7 @@ public class DiagnosticReport extends DomainResource {
}
public boolean isEmpty() {
- return super.isEmpty() && (name == null || name.isEmpty()) && (status == null || status.isEmpty())
+ return super.isEmpty() && (code == null || code.isEmpty()) && (status == null || status.isEmpty())
&& (issued == null || issued.isEmpty()) && (subject == null || subject.isEmpty()) && (performer == null || performer.isEmpty())
&& (encounter == null || encounter.isEmpty()) && (identifier == null || identifier.isEmpty())
&& (requestDetail == null || requestDetail.isEmpty()) && (serviceCategory == null || serviceCategory.isEmpty())
@@ -1419,6 +1415,8 @@ public class DiagnosticReport extends DomainResource {
public static final String SP_REQUEST = "request";
@SearchParamDefinition(name="performer", path="DiagnosticReport.performer", description="Who was the source of the report (organization)", type="reference" )
public static final String SP_PERFORMER = "performer";
+ @SearchParamDefinition(name="code", path="DiagnosticReport.code", description="The code for the report as a whole, as opposed to codes for the atomic results, which are the names on the observation resource referred to from the result", type="token" )
+ public static final String SP_CODE = "code";
@SearchParamDefinition(name="subject", path="DiagnosticReport.subject", description="The subject of the report", type="reference" )
public static final String SP_SUBJECT = "subject";
@SearchParamDefinition(name="diagnosis", path="DiagnosticReport.codedDiagnosis", description="A coded diagnosis on the report", type="token" )
@@ -1433,8 +1431,6 @@ public class DiagnosticReport extends DomainResource {
public static final String SP_PATIENT = "patient";
@SearchParamDefinition(name="specimen", path="DiagnosticReport.specimen", description="The specimen details", type="reference" )
public static final String SP_SPECIMEN = "specimen";
- @SearchParamDefinition(name="name", path="DiagnosticReport.name", description="The name of the report (e.g. the code for the report as a whole, as opposed to codes for the atomic results, which are the names on the observation resource referred to from the result)", type="token" )
- public static final String SP_NAME = "name";
@SearchParamDefinition(name="issued", path="DiagnosticReport.issued", description="When the report was issued", type="date" )
public static final String SP_ISSUED = "issued";
@SearchParamDefinition(name="status", path="DiagnosticReport.status", description="The status of the report", type="token" )
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Distance.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Distance.java
index cd1df9bd6cc..e17df5ea0b1 100644
--- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Distance.java
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Distance.java
@@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
*/
-// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
+// Generated on Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
import org.hl7.fhir.instance.model.annotations.DatatypeDef;
import org.hl7.fhir.instance.model.annotations.Block;
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/DocumentManifest.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/DocumentManifest.java
index 242af24c107..6e1fcaa0340 100644
--- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/DocumentManifest.java
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/DocumentManifest.java
@@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
*/
-// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
+// Generated on Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
import java.util.*;
@@ -89,6 +89,10 @@ public class DocumentManifest extends DomainResource {
return (Attachment) this.p;
}
+ public boolean hasPAttachment() throws Exception {
+ return this.p instanceof Attachment;
+ }
+
/**
* @return {@link #p} (The list of DocumentReference or Media Resources, or Attachment that consist of the parts of this document manifest. Usually, these would be document references, but direct references to Media or Attachments are also allowed.)
*/
@@ -98,6 +102,10 @@ public class DocumentManifest extends DomainResource {
return (Reference) this.p;
}
+ public boolean hasPReference() throws Exception {
+ return this.p instanceof Reference;
+ }
+
public boolean hasP() {
return this.p != null && !this.p.isEmpty();
}
@@ -357,7 +365,7 @@ public class DocumentManifest extends DomainResource {
* The status of this document manifest.
*/
@Child(name = "status", type = {CodeType.class}, order=8, min=1, max=1)
- @Description(shortDefinition="current | superceded | entered-in-error", formalDefinition="The status of this document manifest." )
+ @Description(shortDefinition="current | superseded | entered-in-error", formalDefinition="The status of this document manifest." )
protected Enumeration status;
/**
@@ -1013,7 +1021,7 @@ public class DocumentManifest extends DomainResource {
public static final String SP_PATIENT = "patient";
@SearchParamDefinition(name="recipient", path="DocumentManifest.recipient", description="Intended to get notified about this set of documents", type="reference" )
public static final String SP_RECIPIENT = "recipient";
- @SearchParamDefinition(name="status", path="DocumentManifest.status", description="current | superceded | entered-in-error", type="token" )
+ @SearchParamDefinition(name="status", path="DocumentManifest.status", description="current | superseded | entered-in-error", type="token" )
public static final String SP_STATUS = "status";
@SearchParamDefinition(name="contentref", path="DocumentManifest.content.pReference", description="Contents of this set of documents", type="reference" )
public static final String SP_CONTENTREF = "contentref";
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/DocumentReference.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/DocumentReference.java
index c55268af026..28dce35f3c1 100644
--- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/DocumentReference.java
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/DocumentReference.java
@@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
*/
-// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
+// Generated on Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
import java.util.*;
@@ -49,7 +49,7 @@ public class DocumentReference extends DomainResource {
public enum DocumentRelationshipType {
/**
- * This document logically replaces or supercedes the target document
+ * This document logically replaces or supersedes the target document
*/
REPLACES,
/**
@@ -92,16 +92,16 @@ public class DocumentReference extends DomainResource {
}
public String getSystem() {
switch (this) {
- case REPLACES: return "http://hl7.org.fhir/document-relationship-type";
- case TRANSFORMS: return "http://hl7.org.fhir/document-relationship-type";
- case SIGNS: return "http://hl7.org.fhir/document-relationship-type";
- case APPENDS: return "http://hl7.org.fhir/document-relationship-type";
+ case REPLACES: return "http://hl7.org/fhir/document-relationship-type";
+ case TRANSFORMS: return "http://hl7.org/fhir/document-relationship-type";
+ case SIGNS: return "http://hl7.org/fhir/document-relationship-type";
+ case APPENDS: return "http://hl7.org/fhir/document-relationship-type";
default: return "?";
}
}
public String getDefinition() {
switch (this) {
- case REPLACES: return "This document logically replaces or supercedes the target document";
+ case REPLACES: return "This document logically replaces or supersedes the target document";
case TRANSFORMS: return "This document was generated by transforming the target document (e.g. format or language conversion)";
case SIGNS: return "This document is a signature of the target document";
case APPENDS: return "This document adds additional information to the target document";
@@ -801,7 +801,7 @@ public class DocumentReference extends DomainResource {
/**
* A categorization for the type of document. The class is an abstraction from the type specifying the high-level kind of document (e.g., Report, Summary, Images, Treatment Plan, Patient Preferences, Workflow) at a macro level.
*/
- @Child(name = "class", type = {CodeableConcept.class}, order=4, min=0, max=1)
+ @Child(name = "class_", type = {CodeableConcept.class}, order=4, min=0, max=1)
@Description(shortDefinition="Categorization of document", formalDefinition="A categorization for the type of document. The class is an abstraction from the type specifying the high-level kind of document (e.g., Report, Summary, Images, Treatment Plan, Patient Preferences, Workflow) at a macro level." )
protected CodeableConcept class_;
@@ -866,7 +866,7 @@ public class DocumentReference extends DomainResource {
* The status of this document reference.
*/
@Child(name = "status", type = {CodeType.class}, order=11, min=1, max=1)
- @Description(shortDefinition="current | superceded | entered-in-error", formalDefinition="The status of this document reference." )
+ @Description(shortDefinition="current | superseded | entered-in-error", formalDefinition="The status of this document reference." )
protected Enumeration status;
/**
@@ -1788,7 +1788,7 @@ public class DocumentReference extends DomainResource {
public static final String SP_RELATESTO = "relatesto";
@SearchParamDefinition(name="facility", path="DocumentReference.context.facilityType", description="Kind of facility where patient was seen", type="token" )
public static final String SP_FACILITY = "facility";
- @SearchParamDefinition(name="status", path="DocumentReference.status", description="current | superceded | entered-in-error", type="token" )
+ @SearchParamDefinition(name="status", path="DocumentReference.status", description="current | superseded | entered-in-error", type="token" )
public static final String SP_STATUS = "status";
}
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/DomainResource.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/DomainResource.java
index 117add3f18f..81b12b98330 100644
--- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/DomainResource.java
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/DomainResource.java
@@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
*/
-// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
+// Generated on Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
import java.util.*;
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Duration.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Duration.java
index 456130b2059..6cb121084b5 100644
--- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Duration.java
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Duration.java
@@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
*/
-// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
+// Generated on Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
import org.hl7.fhir.instance.model.annotations.DatatypeDef;
import org.hl7.fhir.instance.model.annotations.Block;
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Element.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Element.java
index 79b37c7a01b..b1443582d38 100644
--- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Element.java
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Element.java
@@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
*/
-// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
+// Generated on Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
import java.util.*;
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/ElementDefinition.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/ElementDefinition.java
index 3c6fe351a28..96bbd717310 100644
--- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/ElementDefinition.java
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/ElementDefinition.java
@@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
*/
-// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
+// Generated on Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
import java.util.*;
@@ -70,7 +70,7 @@ public class ElementDefinition extends Type implements ICompositeType {
}
public String getSystem() {
switch (this) {
- case XMLATTR: return "http://hl7.org.fhir/property-representation";
+ case XMLATTR: return "http://hl7.org/fhir/property-representation";
default: return "?";
}
}
@@ -142,9 +142,9 @@ public class ElementDefinition extends Type implements ICompositeType {
}
public String getSystem() {
switch (this) {
- case CLOSED: return "http://hl7.org.fhir/resource-slicing-rules";
- case OPEN: return "http://hl7.org.fhir/resource-slicing-rules";
- case OPENATEND: return "http://hl7.org.fhir/resource-slicing-rules";
+ case CLOSED: return "http://hl7.org/fhir/resource-slicing-rules";
+ case OPEN: return "http://hl7.org/fhir/resource-slicing-rules";
+ case OPENATEND: return "http://hl7.org/fhir/resource-slicing-rules";
default: return "?";
}
}
@@ -228,9 +228,9 @@ public class ElementDefinition extends Type implements ICompositeType {
}
public String getSystem() {
switch (this) {
- case CONTAINED: return "http://hl7.org.fhir/resource-aggregation-mode";
- case REFERENCED: return "http://hl7.org.fhir/resource-aggregation-mode";
- case BUNDLED: return "http://hl7.org.fhir/resource-aggregation-mode";
+ case CONTAINED: return "http://hl7.org/fhir/resource-aggregation-mode";
+ case REFERENCED: return "http://hl7.org/fhir/resource-aggregation-mode";
+ case BUNDLED: return "http://hl7.org/fhir/resource-aggregation-mode";
default: return "?";
}
}
@@ -307,8 +307,8 @@ public class ElementDefinition extends Type implements ICompositeType {
}
public String getSystem() {
switch (this) {
- case ERROR: return "http://hl7.org.fhir/constraint-severity";
- case WARNING: return "http://hl7.org.fhir/constraint-severity";
+ case ERROR: return "http://hl7.org/fhir/constraint-severity";
+ case WARNING: return "http://hl7.org/fhir/constraint-severity";
default: return "?";
}
}
@@ -348,106 +348,6 @@ public class ElementDefinition extends Type implements ICompositeType {
}
}
- public enum BindingStrength {
- /**
- * To be conformant, instances of this element SHALL include a code from the specified value set
- */
- REQUIRED,
- /**
- * To be conformant, instances of this element SHALL include a code from the specified value set if any of the codes within the value set can apply to the concept being communicated. If the valueset does not cover the concept (based on human review), alternate codings (or, data type allowing, text) may be included instead.
- */
- EXTENSIBLE,
- /**
- * Instances are encouraged to draw from the specified codes for interoperability purposes but are not required to do so to be considered conformant
- */
- PREFERRED,
- /**
- * Instances are not expected or even encouraged to draw from the specified value set. The value set merely provides examples of the types of concepts intended to be included
- */
- EXAMPLE,
- /**
- * added to help the parsers
- */
- NULL;
- public static BindingStrength fromCode(String codeString) throws Exception {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("required".equals(codeString))
- return REQUIRED;
- if ("extensible".equals(codeString))
- return EXTENSIBLE;
- if ("preferred".equals(codeString))
- return PREFERRED;
- if ("example".equals(codeString))
- return EXAMPLE;
- throw new Exception("Unknown BindingStrength code '"+codeString+"'");
- }
- public String toCode() {
- switch (this) {
- case REQUIRED: return "required";
- case EXTENSIBLE: return "extensible";
- case PREFERRED: return "preferred";
- case EXAMPLE: return "example";
- default: return "?";
- }
- }
- public String getSystem() {
- switch (this) {
- case REQUIRED: return "http://hl7.org.fhir/binding-strength";
- case EXTENSIBLE: return "http://hl7.org.fhir/binding-strength";
- case PREFERRED: return "http://hl7.org.fhir/binding-strength";
- case EXAMPLE: return "http://hl7.org.fhir/binding-strength";
- default: return "?";
- }
- }
- public String getDefinition() {
- switch (this) {
- case REQUIRED: return "To be conformant, instances of this element SHALL include a code from the specified value set";
- case EXTENSIBLE: return "To be conformant, instances of this element SHALL include a code from the specified value set if any of the codes within the value set can apply to the concept being communicated. If the valueset does not cover the concept (based on human review), alternate codings (or, data type allowing, text) may be included instead.";
- case PREFERRED: return "Instances are encouraged to draw from the specified codes for interoperability purposes but are not required to do so to be considered conformant";
- case EXAMPLE: return "Instances are not expected or even encouraged to draw from the specified value set. The value set merely provides examples of the types of concepts intended to be included";
- default: return "?";
- }
- }
- public String getDisplay() {
- switch (this) {
- case REQUIRED: return "Required";
- case EXTENSIBLE: return "Extensible";
- case PREFERRED: return "Preferred";
- case EXAMPLE: return "Example";
- default: return "?";
- }
- }
- }
-
- public static class BindingStrengthEnumFactory implements EnumFactory {
- public BindingStrength fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- if (codeString == null || "".equals(codeString))
- return null;
- if ("required".equals(codeString))
- return BindingStrength.REQUIRED;
- if ("extensible".equals(codeString))
- return BindingStrength.EXTENSIBLE;
- if ("preferred".equals(codeString))
- return BindingStrength.PREFERRED;
- if ("example".equals(codeString))
- return BindingStrength.EXAMPLE;
- throw new IllegalArgumentException("Unknown BindingStrength code '"+codeString+"'");
- }
- public String toCode(BindingStrength code) {
- if (code == BindingStrength.REQUIRED)
- return "required";
- if (code == BindingStrength.EXTENSIBLE)
- return "extensible";
- if (code == BindingStrength.PREFERRED)
- return "preferred";
- if (code == BindingStrength.EXAMPLE)
- return "example";
- return "?";
- }
- }
-
@Block()
public static class ElementDefinitionSlicingComponent extends Element implements IBaseDatatypeElement {
/**
@@ -749,11 +649,11 @@ public class ElementDefinition extends Type implements ICompositeType {
protected CodeType code;
/**
- * Identifies a profile structure that SHALL hold for resources or datatypes referenced as the type of this element. Can be a local reference - to another structure in this profile, or a reference to a structure in another profile.
+ * Identifies a profile structure that SHALL hold for resources or datatypes referenced as the type of this element. Can be a local reference - to another structure in this profile, or a reference to a structure in another profile. When more than one profile is specified, the content must conform to all of them.
*/
- @Child(name = "profile", type = {UriType.class}, order=2, min=0, max=1)
- @Description(shortDefinition="Profile.structure to apply", formalDefinition="Identifies a profile structure that SHALL hold for resources or datatypes referenced as the type of this element. Can be a local reference - to another structure in this profile, or a reference to a structure in another profile." )
- protected UriType profile;
+ @Child(name = "profile", type = {UriType.class}, order=2, min=0, max=Child.MAX_UNLIMITED)
+ @Description(shortDefinition="Profile (StructureDefinition) to apply", formalDefinition="Identifies a profile structure that SHALL hold for resources or datatypes referenced as the type of this element. Can be a local reference - to another structure in this profile, or a reference to a structure in another profile. When more than one profile is specified, the content must conform to all of them." )
+ protected List profile;
/**
* If the type is a reference to another resource, how the resource is or can be aggreated - is it a contained resource, or a reference, and if the context is a bundle, is it included in the bundle.
@@ -762,7 +662,7 @@ public class ElementDefinition extends Type implements ICompositeType {
@Description(shortDefinition="contained | referenced | bundled - how aggregated", formalDefinition="If the type is a reference to another resource, how the resource is or can be aggreated - is it a contained resource, or a reference, and if the context is a bundle, is it included in the bundle." )
protected List> aggregation;
- private static final long serialVersionUID = -345007341L;
+ private static final long serialVersionUID = -988693373L;
/*
* Constructor
@@ -825,52 +725,57 @@ public class ElementDefinition extends Type implements ICompositeType {
}
/**
- * @return {@link #profile} (Identifies a profile structure that SHALL hold for resources or datatypes referenced as the type of this element. Can be a local reference - to another structure in this profile, or a reference to a structure in another profile.). This is the underlying object with id, value and extensions. The accessor "getProfile" gives direct access to the value
+ * @return {@link #profile} (Identifies a profile structure that SHALL hold for resources or datatypes referenced as the type of this element. Can be a local reference - to another structure in this profile, or a reference to a structure in another profile. When more than one profile is specified, the content must conform to all of them.)
*/
- public UriType getProfileElement() {
+ public List getProfile() {
if (this.profile == null)
- if (Configuration.errorOnAutoCreate())
- throw new Error("Attempt to auto-create TypeRefComponent.profile");
- else if (Configuration.doAutoCreate())
- this.profile = new UriType(); // bb
+ this.profile = new ArrayList();
return this.profile;
}
- public boolean hasProfileElement() {
- return this.profile != null && !this.profile.isEmpty();
- }
-
public boolean hasProfile() {
- return this.profile != null && !this.profile.isEmpty();
+ if (this.profile == null)
+ return false;
+ for (UriType item : this.profile)
+ if (!item.isEmpty())
+ return true;
+ return false;
}
/**
- * @param value {@link #profile} (Identifies a profile structure that SHALL hold for resources or datatypes referenced as the type of this element. Can be a local reference - to another structure in this profile, or a reference to a structure in another profile.). This is the underlying object with id, value and extensions. The accessor "getProfile" gives direct access to the value
+ * @return {@link #profile} (Identifies a profile structure that SHALL hold for resources or datatypes referenced as the type of this element. Can be a local reference - to another structure in this profile, or a reference to a structure in another profile. When more than one profile is specified, the content must conform to all of them.)
*/
- public TypeRefComponent setProfileElement(UriType value) {
- this.profile = value;
+ // syntactic sugar
+ public UriType addProfileElement() {//2
+ UriType t = new UriType();
+ if (this.profile == null)
+ this.profile = new ArrayList();
+ this.profile.add(t);
+ return t;
+ }
+
+ /**
+ * @param value {@link #profile} (Identifies a profile structure that SHALL hold for resources or datatypes referenced as the type of this element. Can be a local reference - to another structure in this profile, or a reference to a structure in another profile. When more than one profile is specified, the content must conform to all of them.)
+ */
+ public TypeRefComponent addProfile(String value) { //1
+ UriType t = new UriType();
+ t.setValue(value);
+ if (this.profile == null)
+ this.profile = new ArrayList();
+ this.profile.add(t);
return this;
}
/**
- * @return Identifies a profile structure that SHALL hold for resources or datatypes referenced as the type of this element. Can be a local reference - to another structure in this profile, or a reference to a structure in another profile.
+ * @param value {@link #profile} (Identifies a profile structure that SHALL hold for resources or datatypes referenced as the type of this element. Can be a local reference - to another structure in this profile, or a reference to a structure in another profile. When more than one profile is specified, the content must conform to all of them.)
*/
- public String getProfile() {
- return this.profile == null ? null : this.profile.getValue();
- }
-
- /**
- * @param value Identifies a profile structure that SHALL hold for resources or datatypes referenced as the type of this element. Can be a local reference - to another structure in this profile, or a reference to a structure in another profile.
- */
- public TypeRefComponent setProfile(String value) {
- if (Utilities.noString(value))
- this.profile = null;
- else {
- if (this.profile == null)
- this.profile = new UriType();
- this.profile.setValue(value);
- }
- return this;
+ public boolean hasProfile(String value) {
+ if (this.profile == null)
+ return false;
+ for (UriType v : this.profile)
+ if (v.equals(value)) // uri
+ return true;
+ return false;
}
/**
@@ -930,7 +835,7 @@ public class ElementDefinition extends Type implements ICompositeType {
protected void listChildren(List childrenList) {
super.listChildren(childrenList);
childrenList.add(new Property("code", "code", "Name of Data type or Resource that is a(or the) type used for this element.", 0, java.lang.Integer.MAX_VALUE, code));
- childrenList.add(new Property("profile", "uri", "Identifies a profile structure that SHALL hold for resources or datatypes referenced as the type of this element. Can be a local reference - to another structure in this profile, or a reference to a structure in another profile.", 0, java.lang.Integer.MAX_VALUE, profile));
+ childrenList.add(new Property("profile", "uri", "Identifies a profile structure that SHALL hold for resources or datatypes referenced as the type of this element. Can be a local reference - to another structure in this profile, or a reference to a structure in another profile. When more than one profile is specified, the content must conform to all of them.", 0, java.lang.Integer.MAX_VALUE, profile));
childrenList.add(new Property("aggregation", "code", "If the type is a reference to another resource, how the resource is or can be aggreated - is it a contained resource, or a reference, and if the context is a bundle, is it included in the bundle.", 0, java.lang.Integer.MAX_VALUE, aggregation));
}
@@ -938,7 +843,11 @@ public class ElementDefinition extends Type implements ICompositeType {
TypeRefComponent dst = new TypeRefComponent();
copyValues(dst);
dst.code = code == null ? null : code.copy();
- dst.profile = profile == null ? null : profile.copy();
+ if (profile != null) {
+ dst.profile = new ArrayList();
+ for (UriType i : profile)
+ dst.profile.add(i.copy());
+ };
if (aggregation != null) {
dst.aggregation = new ArrayList>();
for (Enumeration i : aggregation)
@@ -986,11 +895,11 @@ public class ElementDefinition extends Type implements ICompositeType {
protected IdType key;
/**
- * Used to label the constraint in OCL or in short displays incapable of displaying the full human description.
+ * Description of why this constraint is necessary or appropriate.
*/
- @Child(name = "name", type = {StringType.class}, order=2, min=0, max=1)
- @Description(shortDefinition="Short human label", formalDefinition="Used to label the constraint in OCL or in short displays incapable of displaying the full human description." )
- protected StringType name;
+ @Child(name = "requirements", type = {StringType.class}, order=2, min=0, max=1)
+ @Description(shortDefinition="Why this constraint necessary or appropriate", formalDefinition="Description of why this constraint is necessary or appropriate." )
+ protected StringType requirements;
/**
* Identifies the impact constraint violation has on the conformance of the instance.
@@ -1013,7 +922,7 @@ public class ElementDefinition extends Type implements ICompositeType {
@Description(shortDefinition="XPath expression of constraint", formalDefinition="An XPath expression of constraint that can be executed to see if this constraint is met." )
protected StringType xpath;
- private static final long serialVersionUID = -1195616532L;
+ private static final long serialVersionUID = 854521265L;
/*
* Constructor
@@ -1079,50 +988,50 @@ public class ElementDefinition extends Type implements ICompositeType {
}
/**
- * @return {@link #name} (Used to label the constraint in OCL or in short displays incapable of displaying the full human description.). This is the underlying object with id, value and extensions. The accessor "getName" gives direct access to the value
+ * @return {@link #requirements} (Description of why this constraint is necessary or appropriate.). This is the underlying object with id, value and extensions. The accessor "getRequirements" gives direct access to the value
*/
- public StringType getNameElement() {
- if (this.name == null)
+ public StringType getRequirementsElement() {
+ if (this.requirements == null)
if (Configuration.errorOnAutoCreate())
- throw new Error("Attempt to auto-create ElementDefinitionConstraintComponent.name");
+ throw new Error("Attempt to auto-create ElementDefinitionConstraintComponent.requirements");
else if (Configuration.doAutoCreate())
- this.name = new StringType(); // bb
- return this.name;
+ this.requirements = new StringType(); // bb
+ return this.requirements;
}
- public boolean hasNameElement() {
- return this.name != null && !this.name.isEmpty();
+ public boolean hasRequirementsElement() {
+ return this.requirements != null && !this.requirements.isEmpty();
}
- public boolean hasName() {
- return this.name != null && !this.name.isEmpty();
+ public boolean hasRequirements() {
+ return this.requirements != null && !this.requirements.isEmpty();
}
/**
- * @param value {@link #name} (Used to label the constraint in OCL or in short displays incapable of displaying the full human description.). This is the underlying object with id, value and extensions. The accessor "getName" gives direct access to the value
+ * @param value {@link #requirements} (Description of why this constraint is necessary or appropriate.). This is the underlying object with id, value and extensions. The accessor "getRequirements" gives direct access to the value
*/
- public ElementDefinitionConstraintComponent setNameElement(StringType value) {
- this.name = value;
+ public ElementDefinitionConstraintComponent setRequirementsElement(StringType value) {
+ this.requirements = value;
return this;
}
/**
- * @return Used to label the constraint in OCL or in short displays incapable of displaying the full human description.
+ * @return Description of why this constraint is necessary or appropriate.
*/
- public String getName() {
- return this.name == null ? null : this.name.getValue();
+ public String getRequirements() {
+ return this.requirements == null ? null : this.requirements.getValue();
}
/**
- * @param value Used to label the constraint in OCL or in short displays incapable of displaying the full human description.
+ * @param value Description of why this constraint is necessary or appropriate.
*/
- public ElementDefinitionConstraintComponent setName(String value) {
+ public ElementDefinitionConstraintComponent setRequirements(String value) {
if (Utilities.noString(value))
- this.name = null;
+ this.requirements = null;
else {
- if (this.name == null)
- this.name = new StringType();
- this.name.setValue(value);
+ if (this.requirements == null)
+ this.requirements = new StringType();
+ this.requirements.setValue(value);
}
return this;
}
@@ -1265,7 +1174,7 @@ public class ElementDefinition extends Type implements ICompositeType {
protected void listChildren(List childrenList) {
super.listChildren(childrenList);
childrenList.add(new Property("key", "id", "Allows identification of which elements have their cardinalities impacted by the constraint. Will not be referenced for constraints that do not affect cardinality.", 0, java.lang.Integer.MAX_VALUE, key));
- childrenList.add(new Property("name", "string", "Used to label the constraint in OCL or in short displays incapable of displaying the full human description.", 0, java.lang.Integer.MAX_VALUE, name));
+ childrenList.add(new Property("requirements", "string", "Description of why this constraint is necessary or appropriate.", 0, java.lang.Integer.MAX_VALUE, requirements));
childrenList.add(new Property("severity", "code", "Identifies the impact constraint violation has on the conformance of the instance.", 0, java.lang.Integer.MAX_VALUE, severity));
childrenList.add(new Property("human", "string", "Text that can be used to describe the constraint in messages identifying that the constraint has been violated.", 0, java.lang.Integer.MAX_VALUE, human));
childrenList.add(new Property("xpath", "string", "An XPath expression of constraint that can be executed to see if this constraint is met.", 0, java.lang.Integer.MAX_VALUE, xpath));
@@ -1275,7 +1184,7 @@ public class ElementDefinition extends Type implements ICompositeType {
ElementDefinitionConstraintComponent dst = new ElementDefinitionConstraintComponent();
copyValues(dst);
dst.key = key == null ? null : key.copy();
- dst.name = name == null ? null : name.copy();
+ dst.requirements = requirements == null ? null : requirements.copy();
dst.severity = severity == null ? null : severity.copy();
dst.human = human == null ? null : human.copy();
dst.xpath = xpath == null ? null : xpath.copy();
@@ -1289,7 +1198,7 @@ public class ElementDefinition extends Type implements ICompositeType {
if (!(other instanceof ElementDefinitionConstraintComponent))
return false;
ElementDefinitionConstraintComponent o = (ElementDefinitionConstraintComponent) other;
- return compareDeep(key, o.key, true) && compareDeep(name, o.name, true) && compareDeep(severity, o.severity, true)
+ return compareDeep(key, o.key, true) && compareDeep(requirements, o.requirements, true) && compareDeep(severity, o.severity, true)
&& compareDeep(human, o.human, true) && compareDeep(xpath, o.xpath, true);
}
@@ -1300,12 +1209,12 @@ public class ElementDefinition extends Type implements ICompositeType {
if (!(other instanceof ElementDefinitionConstraintComponent))
return false;
ElementDefinitionConstraintComponent o = (ElementDefinitionConstraintComponent) other;
- return compareValues(key, o.key, true) && compareValues(name, o.name, true) && compareValues(severity, o.severity, true)
+ return compareValues(key, o.key, true) && compareValues(requirements, o.requirements, true) && compareValues(severity, o.severity, true)
&& compareValues(human, o.human, true) && compareValues(xpath, o.xpath, true);
}
public boolean isEmpty() {
- return super.isEmpty() && (key == null || key.isEmpty()) && (name == null || name.isEmpty())
+ return super.isEmpty() && (key == null || key.isEmpty()) && (requirements == null || requirements.isEmpty())
&& (severity == null || severity.isEmpty()) && (human == null || human.isEmpty()) && (xpath == null || xpath.isEmpty())
;
}
@@ -1317,7 +1226,7 @@ public class ElementDefinition extends Type implements ICompositeType {
/**
* A descriptive name for this - can be useful for generating implementation artifacts.
*/
- @Child(name = "name", type = {StringType.class}, order=1, min=1, max=1)
+ @Child(name = "name", type = {StringType.class}, order=1, min=0, max=1)
@Description(shortDefinition="Descriptive Name", formalDefinition="A descriptive name for this - can be useful for generating implementation artifacts." )
protected StringType name;
@@ -1354,9 +1263,8 @@ public class ElementDefinition extends Type implements ICompositeType {
/*
* Constructor
*/
- public ElementDefinitionBindingComponent(StringType name, Enumeration strength) {
+ public ElementDefinitionBindingComponent(Enumeration strength) {
super();
- this.name = name;
this.strength = strength;
}
@@ -1399,9 +1307,13 @@ public class ElementDefinition extends Type implements ICompositeType {
* @param value A descriptive name for this - can be useful for generating implementation artifacts.
*/
public ElementDefinitionBindingComponent setName(String value) {
+ if (Utilities.noString(value))
+ this.name = null;
+ else {
if (this.name == null)
this.name = new StringType();
this.name.setValue(value);
+ }
return this;
}
@@ -1515,6 +1427,10 @@ public class ElementDefinition extends Type implements ICompositeType {
return (UriType) this.valueSet;
}
+ public boolean hasValueSetUriType() throws Exception {
+ return this.valueSet instanceof UriType;
+ }
+
/**
* @return {@link #valueSet} (Points to the value set or external definition (e.g. implicit value set) that identifies the set of codes to be used.)
*/
@@ -1524,6 +1440,10 @@ public class ElementDefinition extends Type implements ICompositeType {
return (Reference) this.valueSet;
}
+ public boolean hasValueSetReference() throws Exception {
+ return this.valueSet instanceof Reference;
+ }
+
public boolean hasValueSet() {
return this.valueSet != null && !this.valueSet.isEmpty();
}
@@ -1854,7 +1774,7 @@ public class ElementDefinition extends Type implements ICompositeType {
/**
* A concise definition that is shown in the generated XML format that summarizes profiles (used throughout the specification).
*/
- @Child(name = "short", type = {StringType.class}, order=6, min=0, max=1)
+ @Child(name = "short_", type = {StringType.class}, order=6, min=0, max=1)
@Description(shortDefinition="Concise definition for xml presentation", formalDefinition="A concise definition that is shown in the generated XML format that summarizes profiles (used throughout the specification)." )
protected StringType short_;
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/EligibilityRequest.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/EligibilityRequest.java
index bca4284444e..b73a953c311 100644
--- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/EligibilityRequest.java
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/EligibilityRequest.java
@@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
*/
-// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
+// Generated on Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
import java.util.*;
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/EligibilityResponse.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/EligibilityResponse.java
index f8a549934ea..fe3112f7994 100644
--- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/EligibilityResponse.java
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/EligibilityResponse.java
@@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
*/
-// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
+// Generated on Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
import java.util.*;
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Encounter.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Encounter.java
index 45ad269b693..d7b22824126 100644
--- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Encounter.java
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Encounter.java
@@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
*/
-// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
+// Generated on Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
import java.util.*;
@@ -105,12 +105,12 @@ public class Encounter extends DomainResource {
}
public String getSystem() {
switch (this) {
- case PLANNED: return "http://hl7.org.fhir/encounter-state";
- case ARRIVED: return "http://hl7.org.fhir/encounter-state";
- case INPROGRESS: return "http://hl7.org.fhir/encounter-state";
- case ONLEAVE: return "http://hl7.org.fhir/encounter-state";
- case FINISHED: return "http://hl7.org.fhir/encounter-state";
- case CANCELLED: return "http://hl7.org.fhir/encounter-state";
+ case PLANNED: return "http://hl7.org/fhir/encounter-state";
+ case ARRIVED: return "http://hl7.org/fhir/encounter-state";
+ case INPROGRESS: return "http://hl7.org/fhir/encounter-state";
+ case ONLEAVE: return "http://hl7.org/fhir/encounter-state";
+ case FINISHED: return "http://hl7.org/fhir/encounter-state";
+ case CANCELLED: return "http://hl7.org/fhir/encounter-state";
default: return "?";
}
}
@@ -254,15 +254,15 @@ public class Encounter extends DomainResource {
}
public String getSystem() {
switch (this) {
- case INPATIENT: return "http://hl7.org.fhir/encounter-class";
- case OUTPATIENT: return "http://hl7.org.fhir/encounter-class";
- case AMBULATORY: return "http://hl7.org.fhir/encounter-class";
- case EMERGENCY: return "http://hl7.org.fhir/encounter-class";
- case HOME: return "http://hl7.org.fhir/encounter-class";
- case FIELD: return "http://hl7.org.fhir/encounter-class";
- case DAYTIME: return "http://hl7.org.fhir/encounter-class";
- case VIRTUAL: return "http://hl7.org.fhir/encounter-class";
- case OTHER: return "http://hl7.org.fhir/encounter-class";
+ case INPATIENT: return "http://hl7.org/fhir/encounter-class";
+ case OUTPATIENT: return "http://hl7.org/fhir/encounter-class";
+ case AMBULATORY: return "http://hl7.org/fhir/encounter-class";
+ case EMERGENCY: return "http://hl7.org/fhir/encounter-class";
+ case HOME: return "http://hl7.org/fhir/encounter-class";
+ case FIELD: return "http://hl7.org/fhir/encounter-class";
+ case DAYTIME: return "http://hl7.org/fhir/encounter-class";
+ case VIRTUAL: return "http://hl7.org/fhir/encounter-class";
+ case OTHER: return "http://hl7.org/fhir/encounter-class";
default: return "?";
}
}
@@ -382,9 +382,9 @@ public class Encounter extends DomainResource {
}
public String getSystem() {
switch (this) {
- case PLANNED: return "http://hl7.org.fhir/encounter-location-status";
- case PRESENT: return "http://hl7.org.fhir/encounter-location-status";
- case RESERVED: return "http://hl7.org.fhir/encounter-location-status";
+ case PLANNED: return "http://hl7.org/fhir/encounter-location-status";
+ case PRESENT: return "http://hl7.org/fhir/encounter-location-status";
+ case RESERVED: return "http://hl7.org/fhir/encounter-location-status";
default: return "?";
}
}
@@ -790,31 +790,50 @@ public class Encounter extends DomainResource {
@Description(shortDefinition="From where patient was admitted (physician referral, transfer)", formalDefinition="From where patient was admitted (physician referral, transfer)." )
protected CodeableConcept admitSource;
+ /**
+ * The admitting Diagnosis field is used to record the diagnosis codes as reported by admitting practitioner. This could be different or in addition to the conditions reported as reason-condition(s) for the encounter.
+ */
+ @Child(name = "admittingDiagnosis", type = {Condition.class}, order=4, min=0, max=Child.MAX_UNLIMITED)
+ @Description(shortDefinition="The admitting Diagnosis as reported by admitting practitioner", formalDefinition="The admitting Diagnosis field is used to record the diagnosis codes as reported by admitting practitioner. This could be different or in addition to the conditions reported as reason-condition(s) for the encounter." )
+ protected List admittingDiagnosis;
+ /**
+ * The actual objects that are the target of the reference (The admitting Diagnosis field is used to record the diagnosis codes as reported by admitting practitioner. This could be different or in addition to the conditions reported as reason-condition(s) for the encounter.)
+ */
+ protected List admittingDiagnosisTarget;
+
+
+ /**
+ * Whether this hospitalization is a readmission and why if known.
+ */
+ @Child(name = "reAdmission", type = {CodeableConcept.class}, order=5, min=0, max=1)
+ @Description(shortDefinition="The type of hospital re-admission that has occurred (if any). If the value is absent, then this is not identified as a readmission", formalDefinition="Whether this hospitalization is a readmission and why if known." )
+ protected CodeableConcept reAdmission;
+
/**
* Diet preferences reported by the patient.
*/
- @Child(name = "dietPreference", type = {CodeableConcept.class}, order=4, min=0, max=1)
+ @Child(name = "dietPreference", type = {CodeableConcept.class}, order=6, min=0, max=Child.MAX_UNLIMITED)
@Description(shortDefinition="Diet preferences reported by the patient", formalDefinition="Diet preferences reported by the patient." )
- protected CodeableConcept dietPreference;
+ protected List dietPreference;
/**
* Special courtesies (VIP, board member).
*/
- @Child(name = "specialCourtesy", type = {CodeableConcept.class}, order=5, min=0, max=Child.MAX_UNLIMITED)
+ @Child(name = "specialCourtesy", type = {CodeableConcept.class}, order=7, min=0, max=Child.MAX_UNLIMITED)
@Description(shortDefinition="Special courtesies (VIP, board member)", formalDefinition="Special courtesies (VIP, board member)." )
protected List specialCourtesy;
/**
* Wheelchair, translator, stretcher, etc.
*/
- @Child(name = "specialArrangement", type = {CodeableConcept.class}, order=6, min=0, max=Child.MAX_UNLIMITED)
+ @Child(name = "specialArrangement", type = {CodeableConcept.class}, order=8, min=0, max=Child.MAX_UNLIMITED)
@Description(shortDefinition="Wheelchair, translator, stretcher, etc", formalDefinition="Wheelchair, translator, stretcher, etc." )
protected List specialArrangement;
/**
* Location to which the patient is discharged.
*/
- @Child(name = "destination", type = {Location.class}, order=7, min=0, max=1)
+ @Child(name = "destination", type = {Location.class}, order=9, min=0, max=1)
@Description(shortDefinition="Location to which the patient is discharged", formalDefinition="Location to which the patient is discharged." )
protected Reference destination;
@@ -826,30 +845,23 @@ public class Encounter extends DomainResource {
/**
* Category or kind of location after discharge.
*/
- @Child(name = "dischargeDisposition", type = {CodeableConcept.class}, order=8, min=0, max=1)
+ @Child(name = "dischargeDisposition", type = {CodeableConcept.class}, order=10, min=0, max=1)
@Description(shortDefinition="Category or kind of location after discharge", formalDefinition="Category or kind of location after discharge." )
protected CodeableConcept dischargeDisposition;
/**
* The final diagnosis given a patient before release from the hospital after all testing, surgery, and workup are complete.
*/
- @Child(name = "dischargeDiagnosis", type = {}, order=9, min=0, max=1)
+ @Child(name = "dischargeDiagnosis", type = {Condition.class}, order=11, min=0, max=Child.MAX_UNLIMITED)
@Description(shortDefinition="The final diagnosis given a patient before release from the hospital after all testing, surgery, and workup are complete", formalDefinition="The final diagnosis given a patient before release from the hospital after all testing, surgery, and workup are complete." )
- protected Reference dischargeDiagnosis;
-
+ protected List dischargeDiagnosis;
/**
- * The actual object that is the target of the reference (The final diagnosis given a patient before release from the hospital after all testing, surgery, and workup are complete.)
+ * The actual objects that are the target of the reference (The final diagnosis given a patient before release from the hospital after all testing, surgery, and workup are complete.)
*/
- protected Resource dischargeDiagnosisTarget;
+ protected List dischargeDiagnosisTarget;
- /**
- * Whether this hospitalization is a readmission.
- */
- @Child(name = "reAdmission", type = {BooleanType.class}, order=10, min=0, max=1)
- @Description(shortDefinition="Is this hospitalization a readmission?", formalDefinition="Whether this hospitalization is a readmission." )
- protected BooleanType reAdmission;
- private static final long serialVersionUID = -990619663L;
+ private static final long serialVersionUID = 164618034L;
/*
* Constructor
@@ -950,27 +962,128 @@ public class Encounter extends DomainResource {
return this;
}
+ /**
+ * @return {@link #admittingDiagnosis} (The admitting Diagnosis field is used to record the diagnosis codes as reported by admitting practitioner. This could be different or in addition to the conditions reported as reason-condition(s) for the encounter.)
+ */
+ public List getAdmittingDiagnosis() {
+ if (this.admittingDiagnosis == null)
+ this.admittingDiagnosis = new ArrayList();
+ return this.admittingDiagnosis;
+ }
+
+ public boolean hasAdmittingDiagnosis() {
+ if (this.admittingDiagnosis == null)
+ return false;
+ for (Reference item : this.admittingDiagnosis)
+ if (!item.isEmpty())
+ return true;
+ return false;
+ }
+
+ /**
+ * @return {@link #admittingDiagnosis} (The admitting Diagnosis field is used to record the diagnosis codes as reported by admitting practitioner. This could be different or in addition to the conditions reported as reason-condition(s) for the encounter.)
+ */
+ // syntactic sugar
+ public Reference addAdmittingDiagnosis() { //3
+ Reference t = new Reference();
+ if (this.admittingDiagnosis == null)
+ this.admittingDiagnosis = new ArrayList();
+ this.admittingDiagnosis.add(t);
+ return t;
+ }
+
+ // syntactic sugar
+ public EncounterHospitalizationComponent addAdmittingDiagnosis(Reference t) { //3
+ if (t == null)
+ return this;
+ if (this.admittingDiagnosis == null)
+ this.admittingDiagnosis = new ArrayList();
+ this.admittingDiagnosis.add(t);
+ return this;
+ }
+
+ /**
+ * @return {@link #admittingDiagnosis} (The actual objects that are the target of the reference. The reference library doesn't populate this, but you can use this to hold the resources if you resolvethemt. The admitting Diagnosis field is used to record the diagnosis codes as reported by admitting practitioner. This could be different or in addition to the conditions reported as reason-condition(s) for the encounter.)
+ */
+ public List getAdmittingDiagnosisTarget() {
+ if (this.admittingDiagnosisTarget == null)
+ this.admittingDiagnosisTarget = new ArrayList();
+ return this.admittingDiagnosisTarget;
+ }
+
+ // syntactic sugar
+ /**
+ * @return {@link #admittingDiagnosis} (Add an actual object that is the target of the reference. The reference library doesn't use these, but you can use this to hold the resources if you resolvethemt. The admitting Diagnosis field is used to record the diagnosis codes as reported by admitting practitioner. This could be different or in addition to the conditions reported as reason-condition(s) for the encounter.)
+ */
+ public Condition addAdmittingDiagnosisTarget() {
+ Condition r = new Condition();
+ if (this.admittingDiagnosisTarget == null)
+ this.admittingDiagnosisTarget = new ArrayList();
+ this.admittingDiagnosisTarget.add(r);
+ return r;
+ }
+
+ /**
+ * @return {@link #reAdmission} (Whether this hospitalization is a readmission and why if known.)
+ */
+ public CodeableConcept getReAdmission() {
+ if (this.reAdmission == null)
+ if (Configuration.errorOnAutoCreate())
+ throw new Error("Attempt to auto-create EncounterHospitalizationComponent.reAdmission");
+ else if (Configuration.doAutoCreate())
+ this.reAdmission = new CodeableConcept(); // cc
+ return this.reAdmission;
+ }
+
+ public boolean hasReAdmission() {
+ return this.reAdmission != null && !this.reAdmission.isEmpty();
+ }
+
+ /**
+ * @param value {@link #reAdmission} (Whether this hospitalization is a readmission and why if known.)
+ */
+ public EncounterHospitalizationComponent setReAdmission(CodeableConcept value) {
+ this.reAdmission = value;
+ return this;
+ }
+
/**
* @return {@link #dietPreference} (Diet preferences reported by the patient.)
*/
- public CodeableConcept getDietPreference() {
+ public List getDietPreference() {
if (this.dietPreference == null)
- if (Configuration.errorOnAutoCreate())
- throw new Error("Attempt to auto-create EncounterHospitalizationComponent.dietPreference");
- else if (Configuration.doAutoCreate())
- this.dietPreference = new CodeableConcept(); // cc
+ this.dietPreference = new ArrayList();
return this.dietPreference;
}
public boolean hasDietPreference() {
- return this.dietPreference != null && !this.dietPreference.isEmpty();
+ if (this.dietPreference == null)
+ return false;
+ for (CodeableConcept item : this.dietPreference)
+ if (!item.isEmpty())
+ return true;
+ return false;
}
/**
- * @param value {@link #dietPreference} (Diet preferences reported by the patient.)
+ * @return {@link #dietPreference} (Diet preferences reported by the patient.)
*/
- public EncounterHospitalizationComponent setDietPreference(CodeableConcept value) {
- this.dietPreference = value;
+ // syntactic sugar
+ public CodeableConcept addDietPreference() { //3
+ CodeableConcept t = new CodeableConcept();
+ if (this.dietPreference == null)
+ this.dietPreference = new ArrayList();
+ this.dietPreference.add(t);
+ return t;
+ }
+
+ // syntactic sugar
+ public EncounterHospitalizationComponent addDietPreference(CodeableConcept t) { //3
+ if (t == null)
+ return this;
+ if (this.dietPreference == null)
+ this.dietPreference = new ArrayList();
+ this.dietPreference.add(t);
return this;
}
@@ -1125,85 +1238,62 @@ public class Encounter extends DomainResource {
/**
* @return {@link #dischargeDiagnosis} (The final diagnosis given a patient before release from the hospital after all testing, surgery, and workup are complete.)
*/
- public Reference getDischargeDiagnosis() {
+ public List getDischargeDiagnosis() {
if (this.dischargeDiagnosis == null)
- if (Configuration.errorOnAutoCreate())
- throw new Error("Attempt to auto-create EncounterHospitalizationComponent.dischargeDiagnosis");
- else if (Configuration.doAutoCreate())
- this.dischargeDiagnosis = new Reference(); // cc
+ this.dischargeDiagnosis = new ArrayList();
return this.dischargeDiagnosis;
}
public boolean hasDischargeDiagnosis() {
- return this.dischargeDiagnosis != null && !this.dischargeDiagnosis.isEmpty();
+ if (this.dischargeDiagnosis == null)
+ return false;
+ for (Reference item : this.dischargeDiagnosis)
+ if (!item.isEmpty())
+ return true;
+ return false;
}
/**
- * @param value {@link #dischargeDiagnosis} (The final diagnosis given a patient before release from the hospital after all testing, surgery, and workup are complete.)
+ * @return {@link #dischargeDiagnosis} (The final diagnosis given a patient before release from the hospital after all testing, surgery, and workup are complete.)
*/
- public EncounterHospitalizationComponent setDischargeDiagnosis(Reference value) {
- this.dischargeDiagnosis = value;
+ // syntactic sugar
+ public Reference addDischargeDiagnosis() { //3
+ Reference t = new Reference();
+ if (this.dischargeDiagnosis == null)
+ this.dischargeDiagnosis = new ArrayList();
+ this.dischargeDiagnosis.add(t);
+ return t;
+ }
+
+ // syntactic sugar
+ public EncounterHospitalizationComponent addDischargeDiagnosis(Reference t) { //3
+ if (t == null)
+ return this;
+ if (this.dischargeDiagnosis == null)
+ this.dischargeDiagnosis = new ArrayList();
+ this.dischargeDiagnosis.add(t);
return this;
}
/**
- * @return {@link #dischargeDiagnosis} The actual object that is the target of the reference. The reference library doesn't populate this, but you can use it to hold the resource if you resolve it. (The final diagnosis given a patient before release from the hospital after all testing, surgery, and workup are complete.)
+ * @return {@link #dischargeDiagnosis} (The actual objects that are the target of the reference. The reference library doesn't populate this, but you can use this to hold the resources if you resolvethemt. The final diagnosis given a patient before release from the hospital after all testing, surgery, and workup are complete.)
*/
- public Resource getDischargeDiagnosisTarget() {
+ public List getDischargeDiagnosisTarget() {
+ if (this.dischargeDiagnosisTarget == null)
+ this.dischargeDiagnosisTarget = new ArrayList();
return this.dischargeDiagnosisTarget;
}
+ // syntactic sugar
/**
- * @param value {@link #dischargeDiagnosis} The actual object that is the target of the reference. The reference library doesn't use these, but you can use it to hold the resource if you resolve it. (The final diagnosis given a patient before release from the hospital after all testing, surgery, and workup are complete.)
+ * @return {@link #dischargeDiagnosis} (Add an actual object that is the target of the reference. The reference library doesn't use these, but you can use this to hold the resources if you resolvethemt. The final diagnosis given a patient before release from the hospital after all testing, surgery, and workup are complete.)
*/
- public EncounterHospitalizationComponent setDischargeDiagnosisTarget(Resource value) {
- this.dischargeDiagnosisTarget = value;
- return this;
- }
-
- /**
- * @return {@link #reAdmission} (Whether this hospitalization is a readmission.). This is the underlying object with id, value and extensions. The accessor "getReAdmission" gives direct access to the value
- */
- public BooleanType getReAdmissionElement() {
- if (this.reAdmission == null)
- if (Configuration.errorOnAutoCreate())
- throw new Error("Attempt to auto-create EncounterHospitalizationComponent.reAdmission");
- else if (Configuration.doAutoCreate())
- this.reAdmission = new BooleanType(); // bb
- return this.reAdmission;
- }
-
- public boolean hasReAdmissionElement() {
- return this.reAdmission != null && !this.reAdmission.isEmpty();
- }
-
- public boolean hasReAdmission() {
- return this.reAdmission != null && !this.reAdmission.isEmpty();
- }
-
- /**
- * @param value {@link #reAdmission} (Whether this hospitalization is a readmission.). This is the underlying object with id, value and extensions. The accessor "getReAdmission" gives direct access to the value
- */
- public EncounterHospitalizationComponent setReAdmissionElement(BooleanType value) {
- this.reAdmission = value;
- return this;
- }
-
- /**
- * @return Whether this hospitalization is a readmission.
- */
- public boolean getReAdmission() {
- return this.reAdmission == null || this.reAdmission.isEmpty() ? false : this.reAdmission.getValue();
- }
-
- /**
- * @param value Whether this hospitalization is a readmission.
- */
- public EncounterHospitalizationComponent setReAdmission(boolean value) {
- if (this.reAdmission == null)
- this.reAdmission = new BooleanType();
- this.reAdmission.setValue(value);
- return this;
+ public Condition addDischargeDiagnosisTarget() {
+ Condition r = new Condition();
+ if (this.dischargeDiagnosisTarget == null)
+ this.dischargeDiagnosisTarget = new ArrayList();
+ this.dischargeDiagnosisTarget.add(r);
+ return r;
}
protected void listChildren(List childrenList) {
@@ -1211,13 +1301,14 @@ public class Encounter extends DomainResource {
childrenList.add(new Property("preAdmissionIdentifier", "Identifier", "Pre-admission identifier.", 0, java.lang.Integer.MAX_VALUE, preAdmissionIdentifier));
childrenList.add(new Property("origin", "Reference(Location)", "The location from which the patient came before admission.", 0, java.lang.Integer.MAX_VALUE, origin));
childrenList.add(new Property("admitSource", "CodeableConcept", "From where patient was admitted (physician referral, transfer).", 0, java.lang.Integer.MAX_VALUE, admitSource));
+ childrenList.add(new Property("admittingDiagnosis", "Reference(Condition)", "The admitting Diagnosis field is used to record the diagnosis codes as reported by admitting practitioner. This could be different or in addition to the conditions reported as reason-condition(s) for the encounter.", 0, java.lang.Integer.MAX_VALUE, admittingDiagnosis));
+ childrenList.add(new Property("reAdmission", "CodeableConcept", "Whether this hospitalization is a readmission and why if known.", 0, java.lang.Integer.MAX_VALUE, reAdmission));
childrenList.add(new Property("dietPreference", "CodeableConcept", "Diet preferences reported by the patient.", 0, java.lang.Integer.MAX_VALUE, dietPreference));
childrenList.add(new Property("specialCourtesy", "CodeableConcept", "Special courtesies (VIP, board member).", 0, java.lang.Integer.MAX_VALUE, specialCourtesy));
childrenList.add(new Property("specialArrangement", "CodeableConcept", "Wheelchair, translator, stretcher, etc.", 0, java.lang.Integer.MAX_VALUE, specialArrangement));
childrenList.add(new Property("destination", "Reference(Location)", "Location to which the patient is discharged.", 0, java.lang.Integer.MAX_VALUE, destination));
childrenList.add(new Property("dischargeDisposition", "CodeableConcept", "Category or kind of location after discharge.", 0, java.lang.Integer.MAX_VALUE, dischargeDisposition));
- childrenList.add(new Property("dischargeDiagnosis", "Reference(Any)", "The final diagnosis given a patient before release from the hospital after all testing, surgery, and workup are complete.", 0, java.lang.Integer.MAX_VALUE, dischargeDiagnosis));
- childrenList.add(new Property("reAdmission", "boolean", "Whether this hospitalization is a readmission.", 0, java.lang.Integer.MAX_VALUE, reAdmission));
+ childrenList.add(new Property("dischargeDiagnosis", "Reference(Condition)", "The final diagnosis given a patient before release from the hospital after all testing, surgery, and workup are complete.", 0, java.lang.Integer.MAX_VALUE, dischargeDiagnosis));
}
public EncounterHospitalizationComponent copy() {
@@ -1226,7 +1317,17 @@ public class Encounter extends DomainResource {
dst.preAdmissionIdentifier = preAdmissionIdentifier == null ? null : preAdmissionIdentifier.copy();
dst.origin = origin == null ? null : origin.copy();
dst.admitSource = admitSource == null ? null : admitSource.copy();
- dst.dietPreference = dietPreference == null ? null : dietPreference.copy();
+ if (admittingDiagnosis != null) {
+ dst.admittingDiagnosis = new ArrayList();
+ for (Reference i : admittingDiagnosis)
+ dst.admittingDiagnosis.add(i.copy());
+ };
+ dst.reAdmission = reAdmission == null ? null : reAdmission.copy();
+ if (dietPreference != null) {
+ dst.dietPreference = new ArrayList();
+ for (CodeableConcept i : dietPreference)
+ dst.dietPreference.add(i.copy());
+ };
if (specialCourtesy != null) {
dst.specialCourtesy = new ArrayList();
for (CodeableConcept i : specialCourtesy)
@@ -1239,8 +1340,11 @@ public class Encounter extends DomainResource {
};
dst.destination = destination == null ? null : destination.copy();
dst.dischargeDisposition = dischargeDisposition == null ? null : dischargeDisposition.copy();
- dst.dischargeDiagnosis = dischargeDiagnosis == null ? null : dischargeDiagnosis.copy();
- dst.reAdmission = reAdmission == null ? null : reAdmission.copy();
+ if (dischargeDiagnosis != null) {
+ dst.dischargeDiagnosis = new ArrayList();
+ for (Reference i : dischargeDiagnosis)
+ dst.dischargeDiagnosis.add(i.copy());
+ };
return dst;
}
@@ -1252,11 +1356,11 @@ public class Encounter extends DomainResource {
return false;
EncounterHospitalizationComponent o = (EncounterHospitalizationComponent) other;
return compareDeep(preAdmissionIdentifier, o.preAdmissionIdentifier, true) && compareDeep(origin, o.origin, true)
- && compareDeep(admitSource, o.admitSource, true) && compareDeep(dietPreference, o.dietPreference, true)
+ && compareDeep(admitSource, o.admitSource, true) && compareDeep(admittingDiagnosis, o.admittingDiagnosis, true)
+ && compareDeep(reAdmission, o.reAdmission, true) && compareDeep(dietPreference, o.dietPreference, true)
&& compareDeep(specialCourtesy, o.specialCourtesy, true) && compareDeep(specialArrangement, o.specialArrangement, true)
&& compareDeep(destination, o.destination, true) && compareDeep(dischargeDisposition, o.dischargeDisposition, true)
- && compareDeep(dischargeDiagnosis, o.dischargeDiagnosis, true) && compareDeep(reAdmission, o.reAdmission, true)
- ;
+ && compareDeep(dischargeDiagnosis, o.dischargeDiagnosis, true);
}
@Override
@@ -1266,16 +1370,17 @@ public class Encounter extends DomainResource {
if (!(other instanceof EncounterHospitalizationComponent))
return false;
EncounterHospitalizationComponent o = (EncounterHospitalizationComponent) other;
- return compareValues(reAdmission, o.reAdmission, true);
+ return true;
}
public boolean isEmpty() {
return super.isEmpty() && (preAdmissionIdentifier == null || preAdmissionIdentifier.isEmpty())
&& (origin == null || origin.isEmpty()) && (admitSource == null || admitSource.isEmpty())
+ && (admittingDiagnosis == null || admittingDiagnosis.isEmpty()) && (reAdmission == null || reAdmission.isEmpty())
&& (dietPreference == null || dietPreference.isEmpty()) && (specialCourtesy == null || specialCourtesy.isEmpty())
&& (specialArrangement == null || specialArrangement.isEmpty()) && (destination == null || destination.isEmpty())
&& (dischargeDisposition == null || dischargeDisposition.isEmpty()) && (dischargeDiagnosis == null || dischargeDiagnosis.isEmpty())
- && (reAdmission == null || reAdmission.isEmpty());
+ ;
}
}
@@ -1510,7 +1615,7 @@ public class Encounter extends DomainResource {
/**
* inpatient | outpatient | ambulatory | emergency +.
*/
- @Child(name = "class", type = {CodeType.class}, order=3, min=0, max=1)
+ @Child(name = "class_", type = {CodeType.class}, order=3, min=0, max=1)
@Description(shortDefinition="inpatient | outpatient | ambulatory | emergency +", formalDefinition="inpatient | outpatient | ambulatory | emergency +." )
protected Enumeration class_;
@@ -1534,25 +1639,29 @@ public class Encounter extends DomainResource {
protected Patient patientTarget;
/**
- * Where a specific encounter should be classified as a part of a specific episode of care this field should be used. This association can facilitate grouping of related encounters together for a specific purpose, such as govt reporting, or issue tracking.
+ * Where a specific encounter should be classified as a part of a specific episode(s) of care this field should be used. This association can facilitate grouping of related encounters together for a specific purpose, such as govt reporting, issue tracking, association via a common problem.
+
+The association is recorded on the encounter as these are typically created after the episode of care, and grouped on entry rather than editing the episode of care to append another encounter to it (the episode of care could span years).
*/
- @Child(name = "episodeOfCare", type = {EpisodeOfCare.class}, order=6, min=0, max=1)
- @Description(shortDefinition="An episode of care that this encounter should be recorded against", formalDefinition="Where a specific encounter should be classified as a part of a specific episode of care this field should be used. This association can facilitate grouping of related encounters together for a specific purpose, such as govt reporting, or issue tracking." )
- protected Reference episodeOfCare;
+ @Child(name = "episodeOfCare", type = {EpisodeOfCare.class}, order=6, min=0, max=Child.MAX_UNLIMITED)
+ @Description(shortDefinition="Episode(s) of care that this encounter should be recorded against", formalDefinition="Where a specific encounter should be classified as a part of a specific episode(s) of care this field should be used. This association can facilitate grouping of related encounters together for a specific purpose, such as govt reporting, issue tracking, association via a common problem.\n\nThe association is recorded on the encounter as these are typically created after the episode of care, and grouped on entry rather than editing the episode of care to append another encounter to it (the episode of care could span years)." )
+ protected List episodeOfCare;
+ /**
+ * The actual objects that are the target of the reference (Where a specific encounter should be classified as a part of a specific episode(s) of care this field should be used. This association can facilitate grouping of related encounters together for a specific purpose, such as govt reporting, issue tracking, association via a common problem.
+
+The association is recorded on the encounter as these are typically created after the episode of care, and grouped on entry rather than editing the episode of care to append another encounter to it (the episode of care could span years).)
+ */
+ protected List episodeOfCareTarget;
+
/**
- * The actual object that is the target of the reference (Where a specific encounter should be classified as a part of a specific episode of care this field should be used. This association can facilitate grouping of related encounters together for a specific purpose, such as govt reporting, or issue tracking.)
- */
- protected EpisodeOfCare episodeOfCareTarget;
-
- /**
- * The referral request that this encounter is satisfies (incoming referral).
+ * The referral request that this encounter satisfies (incoming referral).
*/
@Child(name = "incomingReferralRequest", type = {ReferralRequest.class}, order=7, min=0, max=Child.MAX_UNLIMITED)
- @Description(shortDefinition="Incoming Referral Request", formalDefinition="The referral request that this encounter is satisfies (incoming referral)." )
+ @Description(shortDefinition="Incoming Referral Request", formalDefinition="The referral request that this encounter satisfies (incoming referral)." )
protected List incomingReferralRequest;
/**
- * The actual objects that are the target of the reference (The referral request that this encounter is satisfies (incoming referral).)
+ * The actual objects that are the target of the reference (The referral request that this encounter satisfies (incoming referral).)
*/
protected List incomingReferralRequestTarget;
@@ -1656,7 +1765,7 @@ The indication will typically be a Condition (with other resources referenced in
*/
protected Encounter partOfTarget;
- private static final long serialVersionUID = 413573588L;
+ private static final long serialVersionUID = 254412792L;
/*
* Constructor
@@ -1932,51 +2041,76 @@ The indication will typically be a Condition (with other resources referenced in
}
/**
- * @return {@link #episodeOfCare} (Where a specific encounter should be classified as a part of a specific episode of care this field should be used. This association can facilitate grouping of related encounters together for a specific purpose, such as govt reporting, or issue tracking.)
+ * @return {@link #episodeOfCare} (Where a specific encounter should be classified as a part of a specific episode(s) of care this field should be used. This association can facilitate grouping of related encounters together for a specific purpose, such as govt reporting, issue tracking, association via a common problem.
+
+The association is recorded on the encounter as these are typically created after the episode of care, and grouped on entry rather than editing the episode of care to append another encounter to it (the episode of care could span years).)
*/
- public Reference getEpisodeOfCare() {
+ public List getEpisodeOfCare() {
if (this.episodeOfCare == null)
- if (Configuration.errorOnAutoCreate())
- throw new Error("Attempt to auto-create Encounter.episodeOfCare");
- else if (Configuration.doAutoCreate())
- this.episodeOfCare = new Reference(); // cc
+ this.episodeOfCare = new ArrayList();
return this.episodeOfCare;
}
public boolean hasEpisodeOfCare() {
- return this.episodeOfCare != null && !this.episodeOfCare.isEmpty();
+ if (this.episodeOfCare == null)
+ return false;
+ for (Reference item : this.episodeOfCare)
+ if (!item.isEmpty())
+ return true;
+ return false;
}
/**
- * @param value {@link #episodeOfCare} (Where a specific encounter should be classified as a part of a specific episode of care this field should be used. This association can facilitate grouping of related encounters together for a specific purpose, such as govt reporting, or issue tracking.)
+ * @return {@link #episodeOfCare} (Where a specific encounter should be classified as a part of a specific episode(s) of care this field should be used. This association can facilitate grouping of related encounters together for a specific purpose, such as govt reporting, issue tracking, association via a common problem.
+
+The association is recorded on the encounter as these are typically created after the episode of care, and grouped on entry rather than editing the episode of care to append another encounter to it (the episode of care could span years).)
*/
- public Encounter setEpisodeOfCare(Reference value) {
- this.episodeOfCare = value;
+ // syntactic sugar
+ public Reference addEpisodeOfCare() { //3
+ Reference t = new Reference();
+ if (this.episodeOfCare == null)
+ this.episodeOfCare = new ArrayList();
+ this.episodeOfCare.add(t);
+ return t;
+ }
+
+ // syntactic sugar
+ public Encounter addEpisodeOfCare(Reference t) { //3
+ if (t == null)
+ return this;
+ if (this.episodeOfCare == null)
+ this.episodeOfCare = new ArrayList();
+ this.episodeOfCare.add(t);
return this;
}
/**
- * @return {@link #episodeOfCare} The actual object that is the target of the reference. The reference library doesn't populate this, but you can use it to hold the resource if you resolve it. (Where a specific encounter should be classified as a part of a specific episode of care this field should be used. This association can facilitate grouping of related encounters together for a specific purpose, such as govt reporting, or issue tracking.)
+ * @return {@link #episodeOfCare} (The actual objects that are the target of the reference. The reference library doesn't populate this, but you can use this to hold the resources if you resolvethemt. Where a specific encounter should be classified as a part of a specific episode(s) of care this field should be used. This association can facilitate grouping of related encounters together for a specific purpose, such as govt reporting, issue tracking, association via a common problem.
+
+The association is recorded on the encounter as these are typically created after the episode of care, and grouped on entry rather than editing the episode of care to append another encounter to it (the episode of care could span years).)
*/
- public EpisodeOfCare getEpisodeOfCareTarget() {
+ public List getEpisodeOfCareTarget() {
if (this.episodeOfCareTarget == null)
- if (Configuration.errorOnAutoCreate())
- throw new Error("Attempt to auto-create Encounter.episodeOfCare");
- else if (Configuration.doAutoCreate())
- this.episodeOfCareTarget = new EpisodeOfCare(); // aa
+ this.episodeOfCareTarget = new ArrayList();
return this.episodeOfCareTarget;
}
+ // syntactic sugar
/**
- * @param value {@link #episodeOfCare} The actual object that is the target of the reference. The reference library doesn't use these, but you can use it to hold the resource if you resolve it. (Where a specific encounter should be classified as a part of a specific episode of care this field should be used. This association can facilitate grouping of related encounters together for a specific purpose, such as govt reporting, or issue tracking.)
+ * @return {@link #episodeOfCare} (Add an actual object that is the target of the reference. The reference library doesn't use these, but you can use this to hold the resources if you resolvethemt. Where a specific encounter should be classified as a part of a specific episode(s) of care this field should be used. This association can facilitate grouping of related encounters together for a specific purpose, such as govt reporting, issue tracking, association via a common problem.
+
+The association is recorded on the encounter as these are typically created after the episode of care, and grouped on entry rather than editing the episode of care to append another encounter to it (the episode of care could span years).)
*/
- public Encounter setEpisodeOfCareTarget(EpisodeOfCare value) {
- this.episodeOfCareTarget = value;
- return this;
+ public EpisodeOfCare addEpisodeOfCareTarget() {
+ EpisodeOfCare r = new EpisodeOfCare();
+ if (this.episodeOfCareTarget == null)
+ this.episodeOfCareTarget = new ArrayList();
+ this.episodeOfCareTarget.add(r);
+ return r;
}
/**
- * @return {@link #incomingReferralRequest} (The referral request that this encounter is satisfies (incoming referral).)
+ * @return {@link #incomingReferralRequest} (The referral request that this encounter satisfies (incoming referral).)
*/
public List getIncomingReferralRequest() {
if (this.incomingReferralRequest == null)
@@ -1994,7 +2128,7 @@ The indication will typically be a Condition (with other resources referenced in
}
/**
- * @return {@link #incomingReferralRequest} (The referral request that this encounter is satisfies (incoming referral).)
+ * @return {@link #incomingReferralRequest} (The referral request that this encounter satisfies (incoming referral).)
*/
// syntactic sugar
public Reference addIncomingReferralRequest() { //3
@@ -2016,7 +2150,7 @@ The indication will typically be a Condition (with other resources referenced in
}
/**
- * @return {@link #incomingReferralRequest} (The actual objects that are the target of the reference. The reference library doesn't populate this, but you can use this to hold the resources if you resolvethemt. The referral request that this encounter is satisfies (incoming referral).)
+ * @return {@link #incomingReferralRequest} (The actual objects that are the target of the reference. The reference library doesn't populate this, but you can use this to hold the resources if you resolvethemt. The referral request that this encounter satisfies (incoming referral).)
*/
public List getIncomingReferralRequestTarget() {
if (this.incomingReferralRequestTarget == null)
@@ -2026,7 +2160,7 @@ The indication will typically be a Condition (with other resources referenced in
// syntactic sugar
/**
- * @return {@link #incomingReferralRequest} (Add an actual object that is the target of the reference. The reference library doesn't use these, but you can use this to hold the resources if you resolvethemt. The referral request that this encounter is satisfies (incoming referral).)
+ * @return {@link #incomingReferralRequest} (Add an actual object that is the target of the reference. The reference library doesn't use these, but you can use this to hold the resources if you resolvethemt. The referral request that this encounter satisfies (incoming referral).)
*/
public ReferralRequest addIncomingReferralRequestTarget() {
ReferralRequest r = new ReferralRequest();
@@ -2444,8 +2578,8 @@ The indication will typically be a Condition (with other resources referenced in
childrenList.add(new Property("class", "code", "inpatient | outpatient | ambulatory | emergency +.", 0, java.lang.Integer.MAX_VALUE, class_));
childrenList.add(new Property("type", "CodeableConcept", "Specific type of encounter (e.g. e-mail consultation, surgical day-care, skilled nursing, rehabilitation).", 0, java.lang.Integer.MAX_VALUE, type));
childrenList.add(new Property("patient", "Reference(Patient)", "The patient present at the encounter.", 0, java.lang.Integer.MAX_VALUE, patient));
- childrenList.add(new Property("episodeOfCare", "Reference(EpisodeOfCare)", "Where a specific encounter should be classified as a part of a specific episode of care this field should be used. This association can facilitate grouping of related encounters together for a specific purpose, such as govt reporting, or issue tracking.", 0, java.lang.Integer.MAX_VALUE, episodeOfCare));
- childrenList.add(new Property("incomingReferralRequest", "Reference(ReferralRequest)", "The referral request that this encounter is satisfies (incoming referral).", 0, java.lang.Integer.MAX_VALUE, incomingReferralRequest));
+ childrenList.add(new Property("episodeOfCare", "Reference(EpisodeOfCare)", "Where a specific encounter should be classified as a part of a specific episode(s) of care this field should be used. This association can facilitate grouping of related encounters together for a specific purpose, such as govt reporting, issue tracking, association via a common problem.\n\nThe association is recorded on the encounter as these are typically created after the episode of care, and grouped on entry rather than editing the episode of care to append another encounter to it (the episode of care could span years).", 0, java.lang.Integer.MAX_VALUE, episodeOfCare));
+ childrenList.add(new Property("incomingReferralRequest", "Reference(ReferralRequest)", "The referral request that this encounter satisfies (incoming referral).", 0, java.lang.Integer.MAX_VALUE, incomingReferralRequest));
childrenList.add(new Property("participant", "", "The main practitioner responsible for providing the service.", 0, java.lang.Integer.MAX_VALUE, participant));
childrenList.add(new Property("fulfills", "Reference(Appointment)", "The appointment that scheduled this encounter.", 0, java.lang.Integer.MAX_VALUE, fulfills));
childrenList.add(new Property("period", "Period", "The start and end time of the encounter.", 0, java.lang.Integer.MAX_VALUE, period));
@@ -2480,7 +2614,11 @@ The indication will typically be a Condition (with other resources referenced in
dst.type.add(i.copy());
};
dst.patient = patient == null ? null : patient.copy();
- dst.episodeOfCare = episodeOfCare == null ? null : episodeOfCare.copy();
+ if (episodeOfCare != null) {
+ dst.episodeOfCare = new ArrayList();
+ for (Reference i : episodeOfCare)
+ dst.episodeOfCare.add(i.copy());
+ };
if (incomingReferralRequest != null) {
dst.incomingReferralRequest = new ArrayList();
for (Reference i : incomingReferralRequest)
@@ -2570,7 +2708,7 @@ The indication will typically be a Condition (with other resources referenced in
public static final String SP_IDENTIFIER = "identifier";
@SearchParamDefinition(name="reason", path="Encounter.reason", description="Reason the encounter takes place (code)", type="token" )
public static final String SP_REASON = "reason";
- @SearchParamDefinition(name="episodeofcare", path="Encounter.episodeOfCare", description="An episode of care that this encounter should be recorded against", type="reference" )
+ @SearchParamDefinition(name="episodeofcare", path="Encounter.episodeOfCare", description="Episode(s) of care that this encounter should be recorded against", type="reference" )
public static final String SP_EPISODEOFCARE = "episodeofcare";
@SearchParamDefinition(name="participant-type", path="Encounter.participant.type", description="Role of participant in encounter", type="token" )
public static final String SP_PARTICIPANTTYPE = "participant-type";
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/EnrollmentRequest.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/EnrollmentRequest.java
index 7045388b312..ae09e1d9d43 100644
--- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/EnrollmentRequest.java
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/EnrollmentRequest.java
@@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
*/
-// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
+// Generated on Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
import java.util.*;
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/EnrollmentResponse.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/EnrollmentResponse.java
index f12fad39ddc..0e9586b0ee9 100644
--- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/EnrollmentResponse.java
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/EnrollmentResponse.java
@@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
*/
-// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
+// Generated on Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
import java.util.*;
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Enumerations.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Enumerations.java
index b7d73e81e25..a937dde675b 100644
--- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Enumerations.java
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Enumerations.java
@@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
*/
-// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
+// Generated on Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
import org.hl7.fhir.instance.model.api.*;
@@ -39,6 +39,7 @@ public class Enumerations {
// In here:
// AdministrativeGender: The gender of a person used for administrative purposes
// AgeUnits: A valueSet of UCUM codes for representing age value units
+// BindingStrength: Indication of the degree of conformance expectations associated with a binding
// ConceptMapEquivalence: The degree of equivalence between concepts
// ConformanceResourceStatus: The lifecycle status of a Value Set or Concept Map
// DataAbsentReason: Used to specify why the normally expected content of the data element is missing
@@ -98,10 +99,10 @@ public class Enumerations {
}
public String getSystem() {
switch (this) {
- case MALE: return "http://hl7.org.fhir/administrative-gender";
- case FEMALE: return "http://hl7.org.fhir/administrative-gender";
- case OTHER: return "http://hl7.org.fhir/administrative-gender";
- case UNKNOWN: return "http://hl7.org.fhir/administrative-gender";
+ case MALE: return "http://hl7.org/fhir/administrative-gender";
+ case FEMALE: return "http://hl7.org/fhir/administrative-gender";
+ case OTHER: return "http://hl7.org/fhir/administrative-gender";
+ case UNKNOWN: return "http://hl7.org/fhir/administrative-gender";
default: return "?";
}
}
@@ -281,6 +282,106 @@ public class Enumerations {
}
}
+ public enum BindingStrength {
+ /**
+ * To be conformant, instances of this element SHALL include a code from the specified value set
+ */
+ REQUIRED,
+ /**
+ * To be conformant, instances of this element SHALL include a code from the specified value set if any of the codes within the value set can apply to the concept being communicated. If the valueset does not cover the concept (based on human review), alternate codings (or, data type allowing, text) may be included instead.
+ */
+ EXTENSIBLE,
+ /**
+ * Instances are encouraged to draw from the specified codes for interoperability purposes but are not required to do so to be considered conformant
+ */
+ PREFERRED,
+ /**
+ * Instances are not expected or even encouraged to draw from the specified value set. The value set merely provides examples of the types of concepts intended to be included
+ */
+ EXAMPLE,
+ /**
+ * added to help the parsers
+ */
+ NULL;
+ public static BindingStrength fromCode(String codeString) throws Exception {
+ if (codeString == null || "".equals(codeString))
+ return null;
+ if ("required".equals(codeString))
+ return REQUIRED;
+ if ("extensible".equals(codeString))
+ return EXTENSIBLE;
+ if ("preferred".equals(codeString))
+ return PREFERRED;
+ if ("example".equals(codeString))
+ return EXAMPLE;
+ throw new Exception("Unknown BindingStrength code '"+codeString+"'");
+ }
+ public String toCode() {
+ switch (this) {
+ case REQUIRED: return "required";
+ case EXTENSIBLE: return "extensible";
+ case PREFERRED: return "preferred";
+ case EXAMPLE: return "example";
+ default: return "?";
+ }
+ }
+ public String getSystem() {
+ switch (this) {
+ case REQUIRED: return "http://hl7.org/fhir/binding-strength";
+ case EXTENSIBLE: return "http://hl7.org/fhir/binding-strength";
+ case PREFERRED: return "http://hl7.org/fhir/binding-strength";
+ case EXAMPLE: return "http://hl7.org/fhir/binding-strength";
+ default: return "?";
+ }
+ }
+ public String getDefinition() {
+ switch (this) {
+ case REQUIRED: return "To be conformant, instances of this element SHALL include a code from the specified value set";
+ case EXTENSIBLE: return "To be conformant, instances of this element SHALL include a code from the specified value set if any of the codes within the value set can apply to the concept being communicated. If the valueset does not cover the concept (based on human review), alternate codings (or, data type allowing, text) may be included instead.";
+ case PREFERRED: return "Instances are encouraged to draw from the specified codes for interoperability purposes but are not required to do so to be considered conformant";
+ case EXAMPLE: return "Instances are not expected or even encouraged to draw from the specified value set. The value set merely provides examples of the types of concepts intended to be included";
+ default: return "?";
+ }
+ }
+ public String getDisplay() {
+ switch (this) {
+ case REQUIRED: return "Required";
+ case EXTENSIBLE: return "Extensible";
+ case PREFERRED: return "Preferred";
+ case EXAMPLE: return "Example";
+ default: return "?";
+ }
+ }
+ }
+
+ public static class BindingStrengthEnumFactory implements EnumFactory {
+ public BindingStrength fromCode(String codeString) throws IllegalArgumentException {
+ if (codeString == null || "".equals(codeString))
+ if (codeString == null || "".equals(codeString))
+ return null;
+ if ("required".equals(codeString))
+ return BindingStrength.REQUIRED;
+ if ("extensible".equals(codeString))
+ return BindingStrength.EXTENSIBLE;
+ if ("preferred".equals(codeString))
+ return BindingStrength.PREFERRED;
+ if ("example".equals(codeString))
+ return BindingStrength.EXAMPLE;
+ throw new IllegalArgumentException("Unknown BindingStrength code '"+codeString+"'");
+ }
+ public String toCode(BindingStrength code) {
+ if (code == BindingStrength.REQUIRED)
+ return "required";
+ if (code == BindingStrength.EXTENSIBLE)
+ return "extensible";
+ if (code == BindingStrength.PREFERRED)
+ return "preferred";
+ if (code == BindingStrength.EXAMPLE)
+ return "example";
+ return "?";
+ }
+ }
+
public enum ConceptMapEquivalence {
/**
* The definitions of the concepts mean the same thing (including when structural implications of meaning are considered) (i.e. extensionally identical)
@@ -303,9 +404,9 @@ public class Enumerations {
*/
NARROWER,
/**
- * The target mapping specialises the meaning of the source concept (e.g. the target is-a source)
+ * The target mapping specializes the meaning of the source concept (e.g. the target is-a source)
*/
- SPECIALISES,
+ SPECIALIZES,
/**
* The target mapping overlaps with the source concept, but both source and target cover additional meaning, or the definitions are imprecise and it is uncertain whether they have the same boundaries to their meaning. The sense in which the mapping is narrower SHALL be described in the comments in this case, and applications should be careful when atempting to use these mappings operationally
*/
@@ -335,8 +436,8 @@ public class Enumerations {
return SUBSUMES;
if ("narrower".equals(codeString))
return NARROWER;
- if ("specialises".equals(codeString))
- return SPECIALISES;
+ if ("specializes".equals(codeString))
+ return SPECIALIZES;
if ("inexact".equals(codeString))
return INEXACT;
if ("unmatched".equals(codeString))
@@ -352,7 +453,7 @@ public class Enumerations {
case WIDER: return "wider";
case SUBSUMES: return "subsumes";
case NARROWER: return "narrower";
- case SPECIALISES: return "specialises";
+ case SPECIALIZES: return "specializes";
case INEXACT: return "inexact";
case UNMATCHED: return "unmatched";
case DISJOINT: return "disjoint";
@@ -361,15 +462,15 @@ public class Enumerations {
}
public String getSystem() {
switch (this) {
- case EQUIVALENT: return "http://hl7.org.fhir/concept-map-equivalence";
- case EQUAL: return "http://hl7.org.fhir/concept-map-equivalence";
- case WIDER: return "http://hl7.org.fhir/concept-map-equivalence";
- case SUBSUMES: return "http://hl7.org.fhir/concept-map-equivalence";
- case NARROWER: return "http://hl7.org.fhir/concept-map-equivalence";
- case SPECIALISES: return "http://hl7.org.fhir/concept-map-equivalence";
- case INEXACT: return "http://hl7.org.fhir/concept-map-equivalence";
- case UNMATCHED: return "http://hl7.org.fhir/concept-map-equivalence";
- case DISJOINT: return "http://hl7.org.fhir/concept-map-equivalence";
+ case EQUIVALENT: return "http://hl7.org/fhir/concept-map-equivalence";
+ case EQUAL: return "http://hl7.org/fhir/concept-map-equivalence";
+ case WIDER: return "http://hl7.org/fhir/concept-map-equivalence";
+ case SUBSUMES: return "http://hl7.org/fhir/concept-map-equivalence";
+ case NARROWER: return "http://hl7.org/fhir/concept-map-equivalence";
+ case SPECIALIZES: return "http://hl7.org/fhir/concept-map-equivalence";
+ case INEXACT: return "http://hl7.org/fhir/concept-map-equivalence";
+ case UNMATCHED: return "http://hl7.org/fhir/concept-map-equivalence";
+ case DISJOINT: return "http://hl7.org/fhir/concept-map-equivalence";
default: return "?";
}
}
@@ -380,7 +481,7 @@ public class Enumerations {
case WIDER: return "The target mapping is wider in meaning than the source concept";
case SUBSUMES: return "The target mapping subsumes the meaning of the source concept (e.g. the source is-a target)";
case NARROWER: return "The target mapping is narrower in meaning that the source concept. The sense in which the mapping is narrower SHALL be described in the comments in this case, and applications should be careful when atempting to use these mappings operationally";
- case SPECIALISES: return "The target mapping specialises the meaning of the source concept (e.g. the target is-a source)";
+ case SPECIALIZES: return "The target mapping specializes the meaning of the source concept (e.g. the target is-a source)";
case INEXACT: return "The target mapping overlaps with the source concept, but both source and target cover additional meaning, or the definitions are imprecise and it is uncertain whether they have the same boundaries to their meaning. The sense in which the mapping is narrower SHALL be described in the comments in this case, and applications should be careful when atempting to use these mappings operationally";
case UNMATCHED: return "There is no match for this concept in the destination concept system";
case DISJOINT: return "This is an explicit assertion that there is no mapping between the source and target concept";
@@ -394,7 +495,7 @@ public class Enumerations {
case WIDER: return "Wider";
case SUBSUMES: return "Subsumes";
case NARROWER: return "Narrower";
- case SPECIALISES: return "Specialises";
+ case SPECIALIZES: return "Specializes";
case INEXACT: return "Inexact";
case UNMATCHED: return "Unmatched";
case DISJOINT: return "Disjoint";
@@ -418,8 +519,8 @@ public class Enumerations {
return ConceptMapEquivalence.SUBSUMES;
if ("narrower".equals(codeString))
return ConceptMapEquivalence.NARROWER;
- if ("specialises".equals(codeString))
- return ConceptMapEquivalence.SPECIALISES;
+ if ("specializes".equals(codeString))
+ return ConceptMapEquivalence.SPECIALIZES;
if ("inexact".equals(codeString))
return ConceptMapEquivalence.INEXACT;
if ("unmatched".equals(codeString))
@@ -439,8 +540,8 @@ public class Enumerations {
return "subsumes";
if (code == ConceptMapEquivalence.NARROWER)
return "narrower";
- if (code == ConceptMapEquivalence.SPECIALISES)
- return "specialises";
+ if (code == ConceptMapEquivalence.SPECIALIZES)
+ return "specializes";
if (code == ConceptMapEquivalence.INEXACT)
return "inexact";
if (code == ConceptMapEquivalence.UNMATCHED)
@@ -461,7 +562,7 @@ public class Enumerations {
*/
ACTIVE,
/**
- * This resource has been withdrawn or superceded and should no longer be used
+ * This resource has been withdrawn or superseded and should no longer be used
*/
RETIRED,
/**
@@ -489,9 +590,9 @@ public class Enumerations {
}
public String getSystem() {
switch (this) {
- case DRAFT: return "http://hl7.org.fhir/conformance-resource-status";
- case ACTIVE: return "http://hl7.org.fhir/conformance-resource-status";
- case RETIRED: return "http://hl7.org.fhir/conformance-resource-status";
+ case DRAFT: return "http://hl7.org/fhir/conformance-resource-status";
+ case ACTIVE: return "http://hl7.org/fhir/conformance-resource-status";
+ case RETIRED: return "http://hl7.org/fhir/conformance-resource-status";
default: return "?";
}
}
@@ -499,7 +600,7 @@ public class Enumerations {
switch (this) {
case DRAFT: return "This resource is still under development";
case ACTIVE: return "This resource is ready for normal use";
- case RETIRED: return "This resource has been withdrawn or superceded and should no longer be used";
+ case RETIRED: return "This resource has been withdrawn or superseded and should no longer be used";
default: return "?";
}
}
@@ -610,14 +711,14 @@ public class Enumerations {
}
public String getSystem() {
switch (this) {
- case UNKNOWN: return "http://hl7.org.fhir/data-absent-reason";
- case ASKED: return "http://hl7.org.fhir/data-absent-reason";
- case TEMP: return "http://hl7.org.fhir/data-absent-reason";
- case NOTASKED: return "http://hl7.org.fhir/data-absent-reason";
- case MASKED: return "http://hl7.org.fhir/data-absent-reason";
- case UNSUPPORTED: return "http://hl7.org.fhir/data-absent-reason";
- case ASTEXT: return "http://hl7.org.fhir/data-absent-reason";
- case ERROR: return "http://hl7.org.fhir/data-absent-reason";
+ case UNKNOWN: return "http://hl7.org/fhir/data-absent-reason";
+ case ASKED: return "http://hl7.org/fhir/data-absent-reason";
+ case TEMP: return "http://hl7.org/fhir/data-absent-reason";
+ case NOTASKED: return "http://hl7.org/fhir/data-absent-reason";
+ case MASKED: return "http://hl7.org/fhir/data-absent-reason";
+ case UNSUPPORTED: return "http://hl7.org/fhir/data-absent-reason";
+ case ASTEXT: return "http://hl7.org/fhir/data-absent-reason";
+ case ERROR: return "http://hl7.org/fhir/data-absent-reason";
default: return "?";
}
}
@@ -743,9 +844,9 @@ public class Enumerations {
*/
CURRENT,
/**
- * This reference has been superceded by another reference
+ * This reference has been superseded by another reference
*/
- SUPERCEDED,
+ SUPERSEDED,
/**
* This reference was created in error
*/
@@ -759,8 +860,8 @@ public class Enumerations {
return null;
if ("current".equals(codeString))
return CURRENT;
- if ("superceded".equals(codeString))
- return SUPERCEDED;
+ if ("superseded".equals(codeString))
+ return SUPERSEDED;
if ("entered-in-error".equals(codeString))
return ENTEREDINERROR;
throw new Exception("Unknown DocumentReferenceStatus code '"+codeString+"'");
@@ -768,23 +869,23 @@ public class Enumerations {
public String toCode() {
switch (this) {
case CURRENT: return "current";
- case SUPERCEDED: return "superceded";
+ case SUPERSEDED: return "superseded";
case ENTEREDINERROR: return "entered-in-error";
default: return "?";
}
}
public String getSystem() {
switch (this) {
- case CURRENT: return "http://hl7.org.fhir/document-reference-status";
- case SUPERCEDED: return "http://hl7.org.fhir/document-reference-status";
- case ENTEREDINERROR: return "http://hl7.org.fhir/document-reference-status";
+ case CURRENT: return "http://hl7.org/fhir/document-reference-status";
+ case SUPERSEDED: return "http://hl7.org/fhir/document-reference-status";
+ case ENTEREDINERROR: return "http://hl7.org/fhir/document-reference-status";
default: return "?";
}
}
public String getDefinition() {
switch (this) {
case CURRENT: return "This is the current reference for this document";
- case SUPERCEDED: return "This reference has been superceded by another reference";
+ case SUPERSEDED: return "This reference has been superseded by another reference";
case ENTEREDINERROR: return "This reference was created in error";
default: return "?";
}
@@ -792,7 +893,7 @@ public class Enumerations {
public String getDisplay() {
switch (this) {
case CURRENT: return "Current";
- case SUPERCEDED: return "Superceded";
+ case SUPERSEDED: return "Superseded";
case ENTEREDINERROR: return "Entered In Error";
default: return "?";
}
@@ -806,8 +907,8 @@ public class Enumerations {
return null;
if ("current".equals(codeString))
return DocumentReferenceStatus.CURRENT;
- if ("superceded".equals(codeString))
- return DocumentReferenceStatus.SUPERCEDED;
+ if ("superseded".equals(codeString))
+ return DocumentReferenceStatus.SUPERSEDED;
if ("entered-in-error".equals(codeString))
return DocumentReferenceStatus.ENTEREDINERROR;
throw new IllegalArgumentException("Unknown DocumentReferenceStatus code '"+codeString+"'");
@@ -815,8 +916,8 @@ public class Enumerations {
public String toCode(DocumentReferenceStatus code) {
if (code == DocumentReferenceStatus.CURRENT)
return "current";
- if (code == DocumentReferenceStatus.SUPERCEDED)
- return "superceded";
+ if (code == DocumentReferenceStatus.SUPERSEDED)
+ return "superseded";
if (code == DocumentReferenceStatus.ENTEREDINERROR)
return "entered-in-error";
return "?";
@@ -949,9 +1050,9 @@ public class Enumerations {
}
public String getSystem() {
switch (this) {
- case DISPLAY: return "http://hl7.org.fhir/note-type";
- case PRINT: return "http://hl7.org.fhir/note-type";
- case PRINTOPER: return "http://hl7.org.fhir/note-type";
+ case DISPLAY: return "http://hl7.org/fhir/note-type";
+ case PRINT: return "http://hl7.org/fhir/note-type";
+ case PRINTOPER: return "http://hl7.org/fhir/note-type";
default: return "?";
}
}
@@ -1028,8 +1129,8 @@ public class Enumerations {
}
public String getSystem() {
switch (this) {
- case COMPLETE: return "http://hl7.org.fhir/remittance-outcome";
- case ERROR: return "http://hl7.org.fhir/remittance-outcome";
+ case COMPLETE: return "http://hl7.org/fhir/remittance-outcome";
+ case ERROR: return "http://hl7.org/fhir/remittance-outcome";
default: return "?";
}
}
@@ -1186,14 +1287,14 @@ public class Enumerations {
}
public String getSystem() {
switch (this) {
- case NUMBER: return "http://hl7.org.fhir/search-param-type";
- case DATE: return "http://hl7.org.fhir/search-param-type";
- case STRING: return "http://hl7.org.fhir/search-param-type";
- case TOKEN: return "http://hl7.org.fhir/search-param-type";
- case REFERENCE: return "http://hl7.org.fhir/search-param-type";
- case COMPOSITE: return "http://hl7.org.fhir/search-param-type";
- case QUANTITY: return "http://hl7.org.fhir/search-param-type";
- case URI: return "http://hl7.org.fhir/search-param-type";
+ case NUMBER: return "http://hl7.org/fhir/search-param-type";
+ case DATE: return "http://hl7.org/fhir/search-param-type";
+ case STRING: return "http://hl7.org/fhir/search-param-type";
+ case TOKEN: return "http://hl7.org/fhir/search-param-type";
+ case REFERENCE: return "http://hl7.org/fhir/search-param-type";
+ case COMPOSITE: return "http://hl7.org/fhir/search-param-type";
+ case QUANTITY: return "http://hl7.org/fhir/search-param-type";
+ case URI: return "http://hl7.org/fhir/search-param-type";
default: return "?";
}
}
@@ -1328,12 +1429,12 @@ public class Enumerations {
}
public String getSystem() {
switch (this) {
- case TRUE: return "http://hl7.org.fhir/special-values";
- case FALSE: return "http://hl7.org.fhir/special-values";
- case TRACE: return "http://hl7.org.fhir/special-values";
- case SUFFICIENT: return "http://hl7.org.fhir/special-values";
- case WITHDRAWN: return "http://hl7.org.fhir/special-values";
- case NILKNOWN: return "http://hl7.org.fhir/special-values";
+ case TRUE: return "http://hl7.org/fhir/special-values";
+ case FALSE: return "http://hl7.org/fhir/special-values";
+ case TRACE: return "http://hl7.org/fhir/special-values";
+ case SUFFICIENT: return "http://hl7.org/fhir/special-values";
+ case WITHDRAWN: return "http://hl7.org/fhir/special-values";
+ case NILKNOWN: return "http://hl7.org/fhir/special-values";
default: return "?";
}
}
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/EpisodeOfCare.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/EpisodeOfCare.java
index ef61b16fd76..88abdade2ca 100644
--- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/EpisodeOfCare.java
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/EpisodeOfCare.java
@@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
*/
-// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
+// Generated on Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
import java.util.*;
@@ -105,12 +105,12 @@ public class EpisodeOfCare extends DomainResource {
}
public String getSystem() {
switch (this) {
- case PLANNED: return "http://hl7.org.fhir/episode-of-care-status";
- case WAITLIST: return "http://hl7.org.fhir/episode-of-care-status";
- case ACTIVE: return "http://hl7.org.fhir/episode-of-care-status";
- case ONHOLD: return "http://hl7.org.fhir/episode-of-care-status";
- case FINISHED: return "http://hl7.org.fhir/episode-of-care-status";
- case CANCELLED: return "http://hl7.org.fhir/episode-of-care-status";
+ case PLANNED: return "http://hl7.org/fhir/episode-of-care-status";
+ case WAITLIST: return "http://hl7.org/fhir/episode-of-care-status";
+ case ACTIVE: return "http://hl7.org/fhir/episode-of-care-status";
+ case ONHOLD: return "http://hl7.org/fhir/episode-of-care-status";
+ case FINISHED: return "http://hl7.org/fhir/episode-of-care-status";
+ case CANCELLED: return "http://hl7.org/fhir/episode-of-care-status";
default: return "?";
}
}
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/ExplanationOfBenefit.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/ExplanationOfBenefit.java
index 5671e3a26d1..e052eb4106b 100644
--- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/ExplanationOfBenefit.java
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/ExplanationOfBenefit.java
@@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
*/
-// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
+// Generated on Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
import java.util.*;
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Extension.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Extension.java
index 67733da646b..5e89fe59572 100644
--- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Extension.java
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Extension.java
@@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
*/
-// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
+// Generated on Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
import java.util.*;
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/FamilyMemberHistory.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/FamilyMemberHistory.java
index 17758ac1cf1..393c6614ece 100644
--- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/FamilyMemberHistory.java
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/FamilyMemberHistory.java
@@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
*/
-// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
+// Generated on Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
import java.util.*;
@@ -158,6 +158,10 @@ public class FamilyMemberHistory extends DomainResource {
return (Age) this.onset;
}
+ public boolean hasOnsetAge() throws Exception {
+ return this.onset instanceof Age;
+ }
+
/**
* @return {@link #onset} (Either the age of onset, range of approximate age or descriptive string can be recorded. For conditions with multiple occurrences, this describes the first known occurrence.)
*/
@@ -167,6 +171,10 @@ public class FamilyMemberHistory extends DomainResource {
return (Range) this.onset;
}
+ public boolean hasOnsetRange() throws Exception {
+ return this.onset instanceof Range;
+ }
+
/**
* @return {@link #onset} (Either the age of onset, range of approximate age or descriptive string can be recorded. For conditions with multiple occurrences, this describes the first known occurrence.)
*/
@@ -176,6 +184,10 @@ public class FamilyMemberHistory extends DomainResource {
return (StringType) this.onset;
}
+ public boolean hasOnsetStringType() throws Exception {
+ return this.onset instanceof StringType;
+ }
+
public boolean hasOnset() {
return this.onset != null && !this.onset.isEmpty();
}
@@ -654,6 +666,10 @@ public class FamilyMemberHistory extends DomainResource {
return (Period) this.born;
}
+ public boolean hasBornPeriod() throws Exception {
+ return this.born instanceof Period;
+ }
+
/**
* @return {@link #born} (The actual or approximate date of birth of the relative.)
*/
@@ -663,6 +679,10 @@ public class FamilyMemberHistory extends DomainResource {
return (DateType) this.born;
}
+ public boolean hasBornDateType() throws Exception {
+ return this.born instanceof DateType;
+ }
+
/**
* @return {@link #born} (The actual or approximate date of birth of the relative.)
*/
@@ -672,6 +692,10 @@ public class FamilyMemberHistory extends DomainResource {
return (StringType) this.born;
}
+ public boolean hasBornStringType() throws Exception {
+ return this.born instanceof StringType;
+ }
+
public boolean hasBorn() {
return this.born != null && !this.born.isEmpty();
}
@@ -700,6 +724,10 @@ public class FamilyMemberHistory extends DomainResource {
return (Age) this.age;
}
+ public boolean hasAgeAge() throws Exception {
+ return this.age instanceof Age;
+ }
+
/**
* @return {@link #age} (The actual or approximate age of the relative at the time the family member history is recorded.)
*/
@@ -709,6 +737,10 @@ public class FamilyMemberHistory extends DomainResource {
return (Range) this.age;
}
+ public boolean hasAgeRange() throws Exception {
+ return this.age instanceof Range;
+ }
+
/**
* @return {@link #age} (The actual or approximate age of the relative at the time the family member history is recorded.)
*/
@@ -718,6 +750,10 @@ public class FamilyMemberHistory extends DomainResource {
return (StringType) this.age;
}
+ public boolean hasAgeStringType() throws Exception {
+ return this.age instanceof StringType;
+ }
+
public boolean hasAge() {
return this.age != null && !this.age.isEmpty();
}
@@ -746,6 +782,10 @@ public class FamilyMemberHistory extends DomainResource {
return (BooleanType) this.deceased;
}
+ public boolean hasDeceasedBooleanType() throws Exception {
+ return this.deceased instanceof BooleanType;
+ }
+
/**
* @return {@link #deceased} (The actual or approximate age of the relative at the time the family member history is recorded.)
*/
@@ -755,6 +795,10 @@ public class FamilyMemberHistory extends DomainResource {
return (Age) this.deceased;
}
+ public boolean hasDeceasedAge() throws Exception {
+ return this.deceased instanceof Age;
+ }
+
/**
* @return {@link #deceased} (The actual or approximate age of the relative at the time the family member history is recorded.)
*/
@@ -764,6 +808,10 @@ public class FamilyMemberHistory extends DomainResource {
return (Range) this.deceased;
}
+ public boolean hasDeceasedRange() throws Exception {
+ return this.deceased instanceof Range;
+ }
+
/**
* @return {@link #deceased} (The actual or approximate age of the relative at the time the family member history is recorded.)
*/
@@ -773,6 +821,10 @@ public class FamilyMemberHistory extends DomainResource {
return (DateType) this.deceased;
}
+ public boolean hasDeceasedDateType() throws Exception {
+ return this.deceased instanceof DateType;
+ }
+
/**
* @return {@link #deceased} (The actual or approximate age of the relative at the time the family member history is recorded.)
*/
@@ -782,6 +834,10 @@ public class FamilyMemberHistory extends DomainResource {
return (StringType) this.deceased;
}
+ public boolean hasDeceasedStringType() throws Exception {
+ return this.deceased instanceof StringType;
+ }
+
public boolean hasDeceased() {
return this.deceased != null && !this.deceased.isEmpty();
}
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Flag.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Flag.java
index dedc181260c..f4ec1494aa5 100644
--- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Flag.java
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Flag.java
@@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
*/
-// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
+// Generated on Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
import java.util.*;
@@ -84,9 +84,9 @@ public class Flag extends DomainResource {
}
public String getSystem() {
switch (this) {
- case ACTIVE: return "http://hl7.org.fhir/flag-status";
- case INACTIVE: return "http://hl7.org.fhir/flag-status";
- case ENTEREDINERROR: return "http://hl7.org.fhir/flag-status";
+ case ACTIVE: return "http://hl7.org/fhir/flag-status";
+ case INACTIVE: return "http://hl7.org/fhir/flag-status";
+ case ENTEREDINERROR: return "http://hl7.org/fhir/flag-status";
default: return "?";
}
}
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Goal.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Goal.java
index c5093d272d6..4d9798b8191 100644
--- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Goal.java
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Goal.java
@@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
*/
-// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
+// Generated on Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
import java.util.*;
@@ -119,14 +119,14 @@ public class Goal extends DomainResource {
}
public String getSystem() {
switch (this) {
- case PROPOSED: return "http://hl7.org.fhir/goal-status";
- case PLANNED: return "http://hl7.org.fhir/goal-status";
- case INPROGRESS: return "http://hl7.org.fhir/goal-status";
- case ACHIEVED: return "http://hl7.org.fhir/goal-status";
- case SUSTAINING: return "http://hl7.org.fhir/goal-status";
- case CANCELLED: return "http://hl7.org.fhir/goal-status";
- case ACCEPTED: return "http://hl7.org.fhir/goal-status";
- case REJECTED: return "http://hl7.org.fhir/goal-status";
+ case PROPOSED: return "http://hl7.org/fhir/goal-status";
+ case PLANNED: return "http://hl7.org/fhir/goal-status";
+ case INPROGRESS: return "http://hl7.org/fhir/goal-status";
+ case ACHIEVED: return "http://hl7.org/fhir/goal-status";
+ case SUSTAINING: return "http://hl7.org/fhir/goal-status";
+ case CANCELLED: return "http://hl7.org/fhir/goal-status";
+ case ACCEPTED: return "http://hl7.org/fhir/goal-status";
+ case REJECTED: return "http://hl7.org/fhir/goal-status";
default: return "?";
}
}
@@ -236,6 +236,10 @@ public class Goal extends DomainResource {
return (CodeableConcept) this.result;
}
+ public boolean hasResultCodeableConcept() throws Exception {
+ return this.result instanceof CodeableConcept;
+ }
+
/**
* @return {@link #result} (Details of what's changed (or not changed).)
*/
@@ -245,6 +249,10 @@ public class Goal extends DomainResource {
return (Reference) this.result;
}
+ public boolean hasResultReference() throws Exception {
+ return this.result instanceof Reference;
+ }
+
public boolean hasResult() {
return this.result != null && !this.result.isEmpty();
}
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Group.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Group.java
index 9f53a73b7c9..c7946935ab6 100644
--- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Group.java
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Group.java
@@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
*/
-// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
+// Generated on Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
import java.util.*;
@@ -105,12 +105,12 @@ public class Group extends DomainResource {
}
public String getSystem() {
switch (this) {
- case PERSON: return "http://hl7.org.fhir/group-type";
- case ANIMAL: return "http://hl7.org.fhir/group-type";
- case PRACTITIONER: return "http://hl7.org.fhir/group-type";
- case DEVICE: return "http://hl7.org.fhir/group-type";
- case MEDICATION: return "http://hl7.org.fhir/group-type";
- case SUBSTANCE: return "http://hl7.org.fhir/group-type";
+ case PERSON: return "http://hl7.org/fhir/group-type";
+ case ANIMAL: return "http://hl7.org/fhir/group-type";
+ case PRACTITIONER: return "http://hl7.org/fhir/group-type";
+ case DEVICE: return "http://hl7.org/fhir/group-type";
+ case MEDICATION: return "http://hl7.org/fhir/group-type";
+ case SUBSTANCE: return "http://hl7.org/fhir/group-type";
default: return "?";
}
}
@@ -256,6 +256,10 @@ public class Group extends DomainResource {
return (CodeableConcept) this.value;
}
+ public boolean hasValueCodeableConcept() throws Exception {
+ return this.value instanceof CodeableConcept;
+ }
+
/**
* @return {@link #value} (The value of the trait that holds (or does not hold - see 'exclude') for members of the group.)
*/
@@ -265,6 +269,10 @@ public class Group extends DomainResource {
return (BooleanType) this.value;
}
+ public boolean hasValueBooleanType() throws Exception {
+ return this.value instanceof BooleanType;
+ }
+
/**
* @return {@link #value} (The value of the trait that holds (or does not hold - see 'exclude') for members of the group.)
*/
@@ -274,6 +282,10 @@ public class Group extends DomainResource {
return (Quantity) this.value;
}
+ public boolean hasValueQuantity() throws Exception {
+ return this.value instanceof Quantity;
+ }
+
/**
* @return {@link #value} (The value of the trait that holds (or does not hold - see 'exclude') for members of the group.)
*/
@@ -283,6 +295,10 @@ public class Group extends DomainResource {
return (Range) this.value;
}
+ public boolean hasValueRange() throws Exception {
+ return this.value instanceof Range;
+ }
+
public boolean hasValue() {
return this.value != null && !this.value.isEmpty();
}
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/HealthcareService.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/HealthcareService.java
index 8b01f5e8acb..236a518e8f7 100644
--- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/HealthcareService.java
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/HealthcareService.java
@@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
*/
-// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
+// Generated on Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
import java.util.*;
@@ -112,13 +112,13 @@ public class HealthcareService extends DomainResource {
}
public String getSystem() {
switch (this) {
- case MON: return "http://hl7.org.fhir/days-of-week";
- case TUE: return "http://hl7.org.fhir/days-of-week";
- case WED: return "http://hl7.org.fhir/days-of-week";
- case THU: return "http://hl7.org.fhir/days-of-week";
- case FRI: return "http://hl7.org.fhir/days-of-week";
- case SAT: return "http://hl7.org.fhir/days-of-week";
- case SUN: return "http://hl7.org.fhir/days-of-week";
+ case MON: return "http://hl7.org/fhir/days-of-week";
+ case TUE: return "http://hl7.org/fhir/days-of-week";
+ case WED: return "http://hl7.org/fhir/days-of-week";
+ case THU: return "http://hl7.org/fhir/days-of-week";
+ case FRI: return "http://hl7.org/fhir/days-of-week";
+ case SAT: return "http://hl7.org/fhir/days-of-week";
+ case SUN: return "http://hl7.org/fhir/days-of-week";
default: return "?";
}
}
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/HumanName.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/HumanName.java
index 54715c1f978..019238eb77d 100644
--- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/HumanName.java
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/HumanName.java
@@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
*/
-// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
+// Generated on Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
import java.util.*;
@@ -111,13 +111,13 @@ public class HumanName extends Type implements ICompositeType {
}
public String getSystem() {
switch (this) {
- case USUAL: return "http://hl7.org.fhir/name-use";
- case OFFICIAL: return "http://hl7.org.fhir/name-use";
- case TEMP: return "http://hl7.org.fhir/name-use";
- case NICKNAME: return "http://hl7.org.fhir/name-use";
- case ANONYMOUS: return "http://hl7.org.fhir/name-use";
- case OLD: return "http://hl7.org.fhir/name-use";
- case MAIDEN: return "http://hl7.org.fhir/name-use";
+ case USUAL: return "http://hl7.org/fhir/name-use";
+ case OFFICIAL: return "http://hl7.org/fhir/name-use";
+ case TEMP: return "http://hl7.org/fhir/name-use";
+ case NICKNAME: return "http://hl7.org/fhir/name-use";
+ case ANONYMOUS: return "http://hl7.org/fhir/name-use";
+ case OLD: return "http://hl7.org/fhir/name-use";
+ case MAIDEN: return "http://hl7.org/fhir/name-use";
default: return "?";
}
}
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/IPrimitiveType.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/IPrimitiveType.java
new file mode 100644
index 00000000000..1d6685a2a29
--- /dev/null
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/IPrimitiveType.java
@@ -0,0 +1,36 @@
+package org.hl7.fhir.instance.model;
+
+import org.hl7.fhir.instance.model.api.IBaseDatatype;
+
+/*
+ * #%L
+ * HAPI FHIR - Core Library
+ * %%
+ * Copyright (C) 2014 - 2015 University Health Network
+ * %%
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * #L%
+ */
+
+
+public interface IPrimitiveType extends IBaseDatatype {
+
+ void setValueAsString(String theValue) throws IllegalArgumentException;
+
+ String getValueAsString();
+
+ T getValue();
+
+ IPrimitiveType setValue(T theValue) throws IllegalArgumentException;
+
+}
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/IdType.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/IdType.java
index cd61529119c..4094a674805 100644
--- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/IdType.java
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/IdType.java
@@ -44,9 +44,6 @@ import org.hl7.fhir.instance.model.api.IBaseResource;
import org.hl7.fhir.instance.model.api.IIdType;
import org.hl7.fhir.instance.model.api.IPrimitiveType;
-import ca.uhn.fhir.model.primitive.IdDt;
-import ca.uhn.fhir.parser.DataFormatException;
-
/**
* This class represents the logical identity for a resource, or as much of that
* identity is known. In FHIR, every resource must have a "logical ID" which
@@ -481,7 +478,7 @@ public final class IdType extends UriType implements IPrimitiveType, IId
*
*/
@Override
- public IdType setValue(String theValue) throws DataFormatException {
+ public IdType setValue(String theValue) {
// TODO: add validation
super.setValue(theValue);
myHaveComponentParts = false;
@@ -662,8 +659,8 @@ public final class IdType extends UriType implements IPrimitiveType, IId
* Construct a new ID with with form "urn:uuid:[UUID]" where [UUID] is a new, randomly
* created UUID generated by {@link UUID#randomUUID()}
*/
- public static IdDt newRandomUuid() {
- return new IdDt("urn:uuid:" + UUID.randomUUID().toString());
+ public static IdType newRandomUuid() {
+ return new IdType("urn:uuid:" + UUID.randomUUID().toString());
}
}
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Identifier.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Identifier.java
index a94ee716c86..0cf0a10246f 100644
--- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Identifier.java
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Identifier.java
@@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
*/
-// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
+// Generated on Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
import java.util.*;
@@ -90,10 +90,10 @@ public class Identifier extends Type implements ICompositeType {
}
public String getSystem() {
switch (this) {
- case USUAL: return "http://hl7.org.fhir/identifier-use";
- case OFFICIAL: return "http://hl7.org.fhir/identifier-use";
- case TEMP: return "http://hl7.org.fhir/identifier-use";
- case SECONDARY: return "http://hl7.org.fhir/identifier-use";
+ case USUAL: return "http://hl7.org/fhir/identifier-use";
+ case OFFICIAL: return "http://hl7.org/fhir/identifier-use";
+ case TEMP: return "http://hl7.org/fhir/identifier-use";
+ case SECONDARY: return "http://hl7.org/fhir/identifier-use";
default: return "?";
}
}
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/ImagingObjectSelection.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/ImagingObjectSelection.java
index c12c113fd94..f2c87f34b71 100644
--- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/ImagingObjectSelection.java
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/ImagingObjectSelection.java
@@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
*/
-// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
+// Generated on Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
import java.util.*;
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/ImagingStudy.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/ImagingStudy.java
index 322b6111b57..4dc362f5093 100644
--- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/ImagingStudy.java
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/ImagingStudy.java
@@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
*/
-// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
+// Generated on Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
import java.util.*;
@@ -46,554 +46,6 @@ import org.hl7.fhir.instance.model.api.*;
@ResourceDef(name="ImagingStudy", profile="http://hl7.org/fhir/Profile/ImagingStudy")
public class ImagingStudy extends DomainResource {
- public enum ImagingModality {
- /**
- * null
- */
- AR,
- /**
- * null
- */
- BMD,
- /**
- * null
- */
- BDUS,
- /**
- * null
- */
- EPS,
- /**
- * null
- */
- CR,
- /**
- * null
- */
- CT,
- /**
- * null
- */
- DX,
- /**
- * null
- */
- ECG,
- /**
- * null
- */
- ES,
- /**
- * null
- */
- XC,
- /**
- * null
- */
- GM,
- /**
- * null
- */
- HD,
- /**
- * null
- */
- IO,
- /**
- * null
- */
- IVOCT,
- /**
- * null
- */
- IVUS,
- /**
- * null
- */
- KER,
- /**
- * null
- */
- LEN,
- /**
- * null
- */
- MR,
- /**
- * null
- */
- MG,
- /**
- * null
- */
- NM,
- /**
- * null
- */
- OAM,
- /**
- * null
- */
- OCT,
- /**
- * null
- */
- OPM,
- /**
- * null
- */
- OP,
- /**
- * null
- */
- OPR,
- /**
- * null
- */
- OPT,
- /**
- * null
- */
- OPV,
- /**
- * null
- */
- PX,
- /**
- * null
- */
- PT,
- /**
- * null
- */
- RF,
- /**
- * null
- */
- RG,
- /**
- * null
- */
- SM,
- /**
- * null
- */
- SRF,
- /**
- * null
- */
- US,
- /**
- * null
- */
- VA,
- /**
- * null
- */
- XA,
- /**
- * added to help the parsers
- */
- NULL;
- public static ImagingModality fromCode(String codeString) throws Exception {
- if (codeString == null || "".equals(codeString))
- return null;
- if ("AR".equals(codeString))
- return AR;
- if ("BMD".equals(codeString))
- return BMD;
- if ("BDUS".equals(codeString))
- return BDUS;
- if ("EPS".equals(codeString))
- return EPS;
- if ("CR".equals(codeString))
- return CR;
- if ("CT".equals(codeString))
- return CT;
- if ("DX".equals(codeString))
- return DX;
- if ("ECG".equals(codeString))
- return ECG;
- if ("ES".equals(codeString))
- return ES;
- if ("XC".equals(codeString))
- return XC;
- if ("GM".equals(codeString))
- return GM;
- if ("HD".equals(codeString))
- return HD;
- if ("IO".equals(codeString))
- return IO;
- if ("IVOCT".equals(codeString))
- return IVOCT;
- if ("IVUS".equals(codeString))
- return IVUS;
- if ("KER".equals(codeString))
- return KER;
- if ("LEN".equals(codeString))
- return LEN;
- if ("MR".equals(codeString))
- return MR;
- if ("MG".equals(codeString))
- return MG;
- if ("NM".equals(codeString))
- return NM;
- if ("OAM".equals(codeString))
- return OAM;
- if ("OCT".equals(codeString))
- return OCT;
- if ("OPM".equals(codeString))
- return OPM;
- if ("OP".equals(codeString))
- return OP;
- if ("OPR".equals(codeString))
- return OPR;
- if ("OPT".equals(codeString))
- return OPT;
- if ("OPV".equals(codeString))
- return OPV;
- if ("PX".equals(codeString))
- return PX;
- if ("PT".equals(codeString))
- return PT;
- if ("RF".equals(codeString))
- return RF;
- if ("RG".equals(codeString))
- return RG;
- if ("SM".equals(codeString))
- return SM;
- if ("SRF".equals(codeString))
- return SRF;
- if ("US".equals(codeString))
- return US;
- if ("VA".equals(codeString))
- return VA;
- if ("XA".equals(codeString))
- return XA;
- throw new Exception("Unknown ImagingModality code '"+codeString+"'");
- }
- public String toCode() {
- switch (this) {
- case AR: return "AR";
- case BMD: return "BMD";
- case BDUS: return "BDUS";
- case EPS: return "EPS";
- case CR: return "CR";
- case CT: return "CT";
- case DX: return "DX";
- case ECG: return "ECG";
- case ES: return "ES";
- case XC: return "XC";
- case GM: return "GM";
- case HD: return "HD";
- case IO: return "IO";
- case IVOCT: return "IVOCT";
- case IVUS: return "IVUS";
- case KER: return "KER";
- case LEN: return "LEN";
- case MR: return "MR";
- case MG: return "MG";
- case NM: return "NM";
- case OAM: return "OAM";
- case OCT: return "OCT";
- case OPM: return "OPM";
- case OP: return "OP";
- case OPR: return "OPR";
- case OPT: return "OPT";
- case OPV: return "OPV";
- case PX: return "PX";
- case PT: return "PT";
- case RF: return "RF";
- case RG: return "RG";
- case SM: return "SM";
- case SRF: return "SRF";
- case US: return "US";
- case VA: return "VA";
- case XA: return "XA";
- default: return "?";
- }
- }
- public String getSystem() {
- switch (this) {
- case AR: return "http://nema.org/dicom/dicm";
- case BMD: return "http://nema.org/dicom/dicm";
- case BDUS: return "http://nema.org/dicom/dicm";
- case EPS: return "http://nema.org/dicom/dicm";
- case CR: return "http://nema.org/dicom/dicm";
- case CT: return "http://nema.org/dicom/dicm";
- case DX: return "http://nema.org/dicom/dicm";
- case ECG: return "http://nema.org/dicom/dicm";
- case ES: return "http://nema.org/dicom/dicm";
- case XC: return "http://nema.org/dicom/dicm";
- case GM: return "http://nema.org/dicom/dicm";
- case HD: return "http://nema.org/dicom/dicm";
- case IO: return "http://nema.org/dicom/dicm";
- case IVOCT: return "http://nema.org/dicom/dicm";
- case IVUS: return "http://nema.org/dicom/dicm";
- case KER: return "http://nema.org/dicom/dicm";
- case LEN: return "http://nema.org/dicom/dicm";
- case MR: return "http://nema.org/dicom/dicm";
- case MG: return "http://nema.org/dicom/dicm";
- case NM: return "http://nema.org/dicom/dicm";
- case OAM: return "http://nema.org/dicom/dicm";
- case OCT: return "http://nema.org/dicom/dicm";
- case OPM: return "http://nema.org/dicom/dicm";
- case OP: return "http://nema.org/dicom/dicm";
- case OPR: return "http://nema.org/dicom/dicm";
- case OPT: return "http://nema.org/dicom/dicm";
- case OPV: return "http://nema.org/dicom/dicm";
- case PX: return "http://nema.org/dicom/dicm";
- case PT: return "http://nema.org/dicom/dicm";
- case RF: return "http://nema.org/dicom/dicm";
- case RG: return "http://nema.org/dicom/dicm";
- case SM: return "http://nema.org/dicom/dicm";
- case SRF: return "http://nema.org/dicom/dicm";
- case US: return "http://nema.org/dicom/dicm";
- case VA: return "http://nema.org/dicom/dicm";
- case XA: return "http://nema.org/dicom/dicm";
- default: return "?";
- }
- }
- public String getDefinition() {
- switch (this) {
- case AR: return "";
- case BMD: return "";
- case BDUS: return "";
- case EPS: return "";
- case CR: return "";
- case CT: return "";
- case DX: return "";
- case ECG: return "";
- case ES: return "";
- case XC: return "";
- case GM: return "";
- case HD: return "";
- case IO: return "";
- case IVOCT: return "";
- case IVUS: return "";
- case KER: return "";
- case LEN: return "";
- case MR: return "";
- case MG: return "";
- case NM: return "";
- case OAM: return "";
- case OCT: return "";
- case OPM: return "";
- case OP: return "";
- case OPR: return "";
- case OPT: return "";
- case OPV: return "";
- case PX: return "";
- case PT: return "";
- case RF: return "";
- case RG: return "";
- case SM: return "";
- case SRF: return "";
- case US: return "";
- case VA: return "";
- case XA: return "";
- default: return "?";
- }
- }
- public String getDisplay() {
- switch (this) {
- case AR: return "AR";
- case BMD: return "BMD";
- case BDUS: return "BDUS";
- case EPS: return "EPS";
- case CR: return "CR";
- case CT: return "CT";
- case DX: return "DX";
- case ECG: return "ECG";
- case ES: return "ES";
- case XC: return "XC";
- case GM: return "GM";
- case HD: return "HD";
- case IO: return "IO";
- case IVOCT: return "IVOCT";
- case IVUS: return "IVUS";
- case KER: return "KER";
- case LEN: return "LEN";
- case MR: return "MR";
- case MG: return "MG";
- case NM: return "NM";
- case OAM: return "OAM";
- case OCT: return "OCT";
- case OPM: return "OPM";
- case OP: return "OP";
- case OPR: return "OPR";
- case OPT: return "OPT";
- case OPV: return "OPV";
- case PX: return "PX";
- case PT: return "PT";
- case RF: return "RF";
- case RG: return "RG";
- case SM: return "SM";
- case SRF: return "SRF";
- case US: return "US";
- case VA: return "VA";
- case XA: return "XA";
- default: return "?";
- }
- }
- }
-
- public static class ImagingModalityEnumFactory implements EnumFactory {
- public ImagingModality fromCode(String codeString) throws IllegalArgumentException {
- if (codeString == null || "".equals(codeString))
- if (codeString == null || "".equals(codeString))
- return null;
- if ("AR".equals(codeString))
- return ImagingModality.AR;
- if ("BMD".equals(codeString))
- return ImagingModality.BMD;
- if ("BDUS".equals(codeString))
- return ImagingModality.BDUS;
- if ("EPS".equals(codeString))
- return ImagingModality.EPS;
- if ("CR".equals(codeString))
- return ImagingModality.CR;
- if ("CT".equals(codeString))
- return ImagingModality.CT;
- if ("DX".equals(codeString))
- return ImagingModality.DX;
- if ("ECG".equals(codeString))
- return ImagingModality.ECG;
- if ("ES".equals(codeString))
- return ImagingModality.ES;
- if ("XC".equals(codeString))
- return ImagingModality.XC;
- if ("GM".equals(codeString))
- return ImagingModality.GM;
- if ("HD".equals(codeString))
- return ImagingModality.HD;
- if ("IO".equals(codeString))
- return ImagingModality.IO;
- if ("IVOCT".equals(codeString))
- return ImagingModality.IVOCT;
- if ("IVUS".equals(codeString))
- return ImagingModality.IVUS;
- if ("KER".equals(codeString))
- return ImagingModality.KER;
- if ("LEN".equals(codeString))
- return ImagingModality.LEN;
- if ("MR".equals(codeString))
- return ImagingModality.MR;
- if ("MG".equals(codeString))
- return ImagingModality.MG;
- if ("NM".equals(codeString))
- return ImagingModality.NM;
- if ("OAM".equals(codeString))
- return ImagingModality.OAM;
- if ("OCT".equals(codeString))
- return ImagingModality.OCT;
- if ("OPM".equals(codeString))
- return ImagingModality.OPM;
- if ("OP".equals(codeString))
- return ImagingModality.OP;
- if ("OPR".equals(codeString))
- return ImagingModality.OPR;
- if ("OPT".equals(codeString))
- return ImagingModality.OPT;
- if ("OPV".equals(codeString))
- return ImagingModality.OPV;
- if ("PX".equals(codeString))
- return ImagingModality.PX;
- if ("PT".equals(codeString))
- return ImagingModality.PT;
- if ("RF".equals(codeString))
- return ImagingModality.RF;
- if ("RG".equals(codeString))
- return ImagingModality.RG;
- if ("SM".equals(codeString))
- return ImagingModality.SM;
- if ("SRF".equals(codeString))
- return ImagingModality.SRF;
- if ("US".equals(codeString))
- return ImagingModality.US;
- if ("VA".equals(codeString))
- return ImagingModality.VA;
- if ("XA".equals(codeString))
- return ImagingModality.XA;
- throw new IllegalArgumentException("Unknown ImagingModality code '"+codeString+"'");
- }
- public String toCode(ImagingModality code) {
- if (code == ImagingModality.AR)
- return "AR";
- if (code == ImagingModality.BMD)
- return "BMD";
- if (code == ImagingModality.BDUS)
- return "BDUS";
- if (code == ImagingModality.EPS)
- return "EPS";
- if (code == ImagingModality.CR)
- return "CR";
- if (code == ImagingModality.CT)
- return "CT";
- if (code == ImagingModality.DX)
- return "DX";
- if (code == ImagingModality.ECG)
- return "ECG";
- if (code == ImagingModality.ES)
- return "ES";
- if (code == ImagingModality.XC)
- return "XC";
- if (code == ImagingModality.GM)
- return "GM";
- if (code == ImagingModality.HD)
- return "HD";
- if (code == ImagingModality.IO)
- return "IO";
- if (code == ImagingModality.IVOCT)
- return "IVOCT";
- if (code == ImagingModality.IVUS)
- return "IVUS";
- if (code == ImagingModality.KER)
- return "KER";
- if (code == ImagingModality.LEN)
- return "LEN";
- if (code == ImagingModality.MR)
- return "MR";
- if (code == ImagingModality.MG)
- return "MG";
- if (code == ImagingModality.NM)
- return "NM";
- if (code == ImagingModality.OAM)
- return "OAM";
- if (code == ImagingModality.OCT)
- return "OCT";
- if (code == ImagingModality.OPM)
- return "OPM";
- if (code == ImagingModality.OP)
- return "OP";
- if (code == ImagingModality.OPR)
- return "OPR";
- if (code == ImagingModality.OPT)
- return "OPT";
- if (code == ImagingModality.OPV)
- return "OPV";
- if (code == ImagingModality.PX)
- return "PX";
- if (code == ImagingModality.PT)
- return "PT";
- if (code == ImagingModality.RF)
- return "RF";
- if (code == ImagingModality.RG)
- return "RG";
- if (code == ImagingModality.SM)
- return "SM";
- if (code == ImagingModality.SRF)
- return "SRF";
- if (code == ImagingModality.US)
- return "US";
- if (code == ImagingModality.VA)
- return "VA";
- if (code == ImagingModality.XA)
- return "XA";
- return "?";
- }
- }
-
public enum InstanceAvailability {
/**
* null
@@ -1525,10 +977,10 @@ public class ImagingStudy extends DomainResource {
protected Enumeration availability;
/**
- * WADO-RS resource where the Series is available.
+ * URI/URL specifying the location of the referenced series using WADO-RS.
*/
@Child(name = "url", type = {UriType.class}, order=7, min=0, max=1)
- @Description(shortDefinition="Retrieve URI (0008,1115 > 0008,1190)", formalDefinition="WADO-RS resource where the Series is available." )
+ @Description(shortDefinition="Location of the referenced instance(s) (0008,1115 in 0008,1190)", formalDefinition="URI/URL specifying the location of the referenced series using WADO-RS." )
protected UriType url;
/**
@@ -1857,7 +1309,7 @@ public class ImagingStudy extends DomainResource {
}
/**
- * @return {@link #url} (WADO-RS resource where the Series is available.). This is the underlying object with id, value and extensions. The accessor "getUrl" gives direct access to the value
+ * @return {@link #url} (URI/URL specifying the location of the referenced series using WADO-RS.). This is the underlying object with id, value and extensions. The accessor "getUrl" gives direct access to the value
*/
public UriType getUrlElement() {
if (this.url == null)
@@ -1877,7 +1329,7 @@ public class ImagingStudy extends DomainResource {
}
/**
- * @param value {@link #url} (WADO-RS resource where the Series is available.). This is the underlying object with id, value and extensions. The accessor "getUrl" gives direct access to the value
+ * @param value {@link #url} (URI/URL specifying the location of the referenced series using WADO-RS.). This is the underlying object with id, value and extensions. The accessor "getUrl" gives direct access to the value
*/
public ImagingStudySeriesComponent setUrlElement(UriType value) {
this.url = value;
@@ -1885,14 +1337,14 @@ public class ImagingStudy extends DomainResource {
}
/**
- * @return WADO-RS resource where the Series is available.
+ * @return URI/URL specifying the location of the referenced series using WADO-RS.
*/
public String getUrl() {
return this.url == null ? null : this.url.getValue();
}
/**
- * @param value WADO-RS resource where the Series is available.
+ * @param value URI/URL specifying the location of the referenced series using WADO-RS.
*/
public ImagingStudySeriesComponent setUrl(String value) {
if (Utilities.noString(value))
@@ -2050,7 +1502,7 @@ public class ImagingStudy extends DomainResource {
childrenList.add(new Property("description", "string", "A description of the series.", 0, java.lang.Integer.MAX_VALUE, description));
childrenList.add(new Property("numberOfInstances", "unsignedInt", "Number of SOP Instances in Series.", 0, java.lang.Integer.MAX_VALUE, numberOfInstances));
childrenList.add(new Property("availability", "code", "Availability of series (online, offline or nearline).", 0, java.lang.Integer.MAX_VALUE, availability));
- childrenList.add(new Property("url", "uri", "WADO-RS resource where the Series is available.", 0, java.lang.Integer.MAX_VALUE, url));
+ childrenList.add(new Property("url", "uri", "URI/URL specifying the location of the referenced series using WADO-RS.", 0, java.lang.Integer.MAX_VALUE, url));
childrenList.add(new Property("bodySite", "Coding", "Body part examined. See DICOM Part 16 Annex L for the mapping from DICOM to Snomed.", 0, java.lang.Integer.MAX_VALUE, bodySite));
childrenList.add(new Property("laterality", "Coding", "Laterality if bodySite is paired anatomic structure and laterality is not pre-coordinated in bodySite code, map from (0020, 0060).", 0, java.lang.Integer.MAX_VALUE, laterality));
childrenList.add(new Property("dateTime", "dateTime", "The date and time when the series was started.", 0, java.lang.Integer.MAX_VALUE, dateTime));
@@ -2518,7 +1970,7 @@ public class ImagingStudy extends DomainResource {
* The patient imaged in the study.
*/
@Child(name = "patient", type = {Patient.class}, order=1, min=1, max=1)
- @Description(shortDefinition="Who the images are of", formalDefinition="The patient imaged in the study." )
+ @Description(shortDefinition="Who the images are of (0010/*)", formalDefinition="The patient imaged in the study." )
protected Reference patient;
/**
@@ -2534,10 +1986,11 @@ public class ImagingStudy extends DomainResource {
protected OidType uid;
/**
- * Accession Number.
+ * Accession Number is an identifier related to some aspect of imaging workflow and data management, and usage may vary across different institutions.
+See for instance [IHE Radiology Technical Framework Volume 1 Appendix A](http://www.ihe.net/uploadedFiles/Documents/Radiology/IHE_RAD_TF_Rev13.0_Vol1_FT_2014-07-30.pdf).
*/
@Child(name = "accession", type = {Identifier.class}, order=3, min=0, max=1)
- @Description(shortDefinition="Accession Number (0008,0050)", formalDefinition="Accession Number." )
+ @Description(shortDefinition="Related workflow identifier ('Accession Number') (0008,0050)", formalDefinition="Accession Number is an identifier related to some aspect of imaging workflow and data management, and usage may vary across different institutions. \nSee for instance [IHE Radiology Technical Framework Volume 1 Appendix A](http://www.ihe.net/uploadedFiles/Documents/Radiology/IHE_RAD_TF_Rev13.0_Vol1_FT_2014-07-30.pdf)." )
protected Identifier accession;
/**
@@ -2562,9 +2015,9 @@ public class ImagingStudy extends DomainResource {
/**
* A list of all the Series.ImageModality values that are actual acquisition modalities, i.e. those in the DICOM Context Group 29 (value set OID 1.2.840.10008.6.1.19).
*/
- @Child(name = "modalityList", type = {CodeType.class}, order=6, min=0, max=Child.MAX_UNLIMITED)
+ @Child(name = "modalityList", type = {Coding.class}, order=6, min=0, max=Child.MAX_UNLIMITED)
@Description(shortDefinition="All series.modality if actual acquisition modalities", formalDefinition="A list of all the Series.ImageModality values that are actual acquisition modalities, i.e. those in the DICOM Context Group 29 (value set OID 1.2.840.10008.6.1.19)." )
- protected List> modalityList;
+ protected List modalityList;
/**
* The requesting/referring physician.
@@ -2616,9 +2069,14 @@ public class ImagingStudy extends DomainResource {
/**
* Type of procedure performed.
*/
- @Child(name = "procedure", type = {Coding.class}, order=13, min=0, max=Child.MAX_UNLIMITED)
+ @Child(name = "procedure", type = {Procedure.class}, order=13, min=0, max=Child.MAX_UNLIMITED)
@Description(shortDefinition="Type of procedure performed (0008,1032)", formalDefinition="Type of procedure performed." )
- protected List procedure;
+ protected List procedure;
+ /**
+ * The actual objects that are the target of the reference (Type of procedure performed.)
+ */
+ protected List procedureTarget;
+
/**
* Who read study and interpreted the images.
@@ -2646,7 +2104,7 @@ public class ImagingStudy extends DomainResource {
@Description(shortDefinition="Each study has one or more series of instances", formalDefinition="Each study has one or more series of image instances." )
protected List series;
- private static final long serialVersionUID = 206272292L;
+ private static final long serialVersionUID = -367817262L;
/*
* Constructor
@@ -2805,7 +2263,8 @@ public class ImagingStudy extends DomainResource {
}
/**
- * @return {@link #accession} (Accession Number.)
+ * @return {@link #accession} (Accession Number is an identifier related to some aspect of imaging workflow and data management, and usage may vary across different institutions.
+See for instance [IHE Radiology Technical Framework Volume 1 Appendix A](http://www.ihe.net/uploadedFiles/Documents/Radiology/IHE_RAD_TF_Rev13.0_Vol1_FT_2014-07-30.pdf).)
*/
public Identifier getAccession() {
if (this.accession == null)
@@ -2821,7 +2280,8 @@ public class ImagingStudy extends DomainResource {
}
/**
- * @param value {@link #accession} (Accession Number.)
+ * @param value {@link #accession} (Accession Number is an identifier related to some aspect of imaging workflow and data management, and usage may vary across different institutions.
+See for instance [IHE Radiology Technical Framework Volume 1 Appendix A](http://www.ihe.net/uploadedFiles/Documents/Radiology/IHE_RAD_TF_Rev13.0_Vol1_FT_2014-07-30.pdf).)
*/
public ImagingStudy setAccession(Identifier value) {
this.accession = value;
@@ -2932,16 +2392,16 @@ public class ImagingStudy extends DomainResource {
/**
* @return {@link #modalityList} (A list of all the Series.ImageModality values that are actual acquisition modalities, i.e. those in the DICOM Context Group 29 (value set OID 1.2.840.10008.6.1.19).)
*/
- public List> getModalityList() {
+ public List getModalityList() {
if (this.modalityList == null)
- this.modalityList = new ArrayList>();
+ this.modalityList = new ArrayList();
return this.modalityList;
}
public boolean hasModalityList() {
if (this.modalityList == null)
return false;
- for (Enumeration item : this.modalityList)
+ for (Coding item : this.modalityList)
if (!item.isEmpty())
return true;
return false;
@@ -2951,38 +2411,24 @@ public class ImagingStudy extends DomainResource {
* @return {@link #modalityList} (A list of all the Series.ImageModality values that are actual acquisition modalities, i.e. those in the DICOM Context Group 29 (value set OID 1.2.840.10008.6.1.19).)
*/
// syntactic sugar
- public Enumeration addModalityListElement() {//2
- Enumeration t = new Enumeration(new ImagingModalityEnumFactory());
+ public Coding addModalityList() { //3
+ Coding t = new Coding();
if (this.modalityList == null)
- this.modalityList = new ArrayList>();
+ this.modalityList = new ArrayList();
this.modalityList.add(t);
return t;
}
- /**
- * @param value {@link #modalityList} (A list of all the Series.ImageModality values that are actual acquisition modalities, i.e. those in the DICOM Context Group 29 (value set OID 1.2.840.10008.6.1.19).)
- */
- public ImagingStudy addModalityList(ImagingModality value) { //1
- Enumeration t = new Enumeration(new ImagingModalityEnumFactory());
- t.setValue(value);
+ // syntactic sugar
+ public ImagingStudy addModalityList(Coding t) { //3
+ if (t == null)
+ return this;
if (this.modalityList == null)
- this.modalityList = new ArrayList>();
+ this.modalityList = new ArrayList();
this.modalityList.add(t);
return this;
}
- /**
- * @param value {@link #modalityList} (A list of all the Series.ImageModality values that are actual acquisition modalities, i.e. those in the DICOM Context Group 29 (value set OID 1.2.840.10008.6.1.19).)
- */
- public boolean hasModalityList(ImagingModality value) {
- if (this.modalityList == null)
- return false;
- for (Enumeration v : this.modalityList)
- if (v.equals(value)) // code
- return true;
- return false;
- }
-
/**
* @return {@link #referrer} (The requesting/referring physician.)
*/
@@ -3267,16 +2713,16 @@ public class ImagingStudy extends DomainResource {
/**
* @return {@link #procedure} (Type of procedure performed.)
*/
- public List getProcedure() {
+ public List getProcedure() {
if (this.procedure == null)
- this.procedure = new ArrayList();
+ this.procedure = new ArrayList();
return this.procedure;
}
public boolean hasProcedure() {
if (this.procedure == null)
return false;
- for (Coding item : this.procedure)
+ for (Reference item : this.procedure)
if (!item.isEmpty())
return true;
return false;
@@ -3286,24 +2732,45 @@ public class ImagingStudy extends DomainResource {
* @return {@link #procedure} (Type of procedure performed.)
*/
// syntactic sugar
- public Coding addProcedure() { //3
- Coding t = new Coding();
+ public Reference addProcedure() { //3
+ Reference t = new Reference();
if (this.procedure == null)
- this.procedure = new ArrayList();
+ this.procedure = new ArrayList();
this.procedure.add(t);
return t;
}
// syntactic sugar
- public ImagingStudy addProcedure(Coding t) { //3
+ public ImagingStudy addProcedure(Reference t) { //3
if (t == null)
return this;
if (this.procedure == null)
- this.procedure = new ArrayList();
+ this.procedure = new ArrayList();
this.procedure.add(t);
return this;
}
+ /**
+ * @return {@link #procedure} (The actual objects that are the target of the reference. The reference library doesn't populate this, but you can use this to hold the resources if you resolvethemt. Type of procedure performed.)
+ */
+ public List getProcedureTarget() {
+ if (this.procedureTarget == null)
+ this.procedureTarget = new ArrayList();
+ return this.procedureTarget;
+ }
+
+ // syntactic sugar
+ /**
+ * @return {@link #procedure} (Add an actual object that is the target of the reference. The reference library doesn't use these, but you can use this to hold the resources if you resolvethemt. Type of procedure performed.)
+ */
+ public Procedure addProcedureTarget() {
+ Procedure r = new Procedure();
+ if (this.procedureTarget == null)
+ this.procedureTarget = new ArrayList();
+ this.procedureTarget.add(r);
+ return r;
+ }
+
/**
* @return {@link #interpreter} (Who read study and interpreted the images.)
*/
@@ -3442,17 +2909,17 @@ public class ImagingStudy extends DomainResource {
childrenList.add(new Property("started", "dateTime", "Date and Time the study started. Timezone Offset From UTC.", 0, java.lang.Integer.MAX_VALUE, started));
childrenList.add(new Property("patient", "Reference(Patient)", "The patient imaged in the study.", 0, java.lang.Integer.MAX_VALUE, patient));
childrenList.add(new Property("uid", "oid", "Formal identifier for the study.", 0, java.lang.Integer.MAX_VALUE, uid));
- childrenList.add(new Property("accession", "Identifier", "Accession Number.", 0, java.lang.Integer.MAX_VALUE, accession));
+ childrenList.add(new Property("accession", "Identifier", "Accession Number is an identifier related to some aspect of imaging workflow and data management, and usage may vary across different institutions. \nSee for instance [IHE Radiology Technical Framework Volume 1 Appendix A](http://www.ihe.net/uploadedFiles/Documents/Radiology/IHE_RAD_TF_Rev13.0_Vol1_FT_2014-07-30.pdf).", 0, java.lang.Integer.MAX_VALUE, accession));
childrenList.add(new Property("identifier", "Identifier", "Other identifiers for the study.", 0, java.lang.Integer.MAX_VALUE, identifier));
childrenList.add(new Property("order", "Reference(DiagnosticOrder)", "A list of the diagnostic orders that resulted in this imaging study being performed.", 0, java.lang.Integer.MAX_VALUE, order));
- childrenList.add(new Property("modalityList", "code", "A list of all the Series.ImageModality values that are actual acquisition modalities, i.e. those in the DICOM Context Group 29 (value set OID 1.2.840.10008.6.1.19).", 0, java.lang.Integer.MAX_VALUE, modalityList));
+ childrenList.add(new Property("modalityList", "Coding", "A list of all the Series.ImageModality values that are actual acquisition modalities, i.e. those in the DICOM Context Group 29 (value set OID 1.2.840.10008.6.1.19).", 0, java.lang.Integer.MAX_VALUE, modalityList));
childrenList.add(new Property("referrer", "Reference(Practitioner)", "The requesting/referring physician.", 0, java.lang.Integer.MAX_VALUE, referrer));
childrenList.add(new Property("availability", "code", "Availability of study (online, offline or nearline).", 0, java.lang.Integer.MAX_VALUE, availability));
childrenList.add(new Property("url", "uri", "WADO-RS resource where Study is available.", 0, java.lang.Integer.MAX_VALUE, url));
childrenList.add(new Property("numberOfSeries", "unsignedInt", "Number of Series in Study.", 0, java.lang.Integer.MAX_VALUE, numberOfSeries));
childrenList.add(new Property("numberOfInstances", "unsignedInt", "Number of SOP Instances in Study.", 0, java.lang.Integer.MAX_VALUE, numberOfInstances));
childrenList.add(new Property("clinicalInformation", "string", "Diagnoses etc provided with request.", 0, java.lang.Integer.MAX_VALUE, clinicalInformation));
- childrenList.add(new Property("procedure", "Coding", "Type of procedure performed.", 0, java.lang.Integer.MAX_VALUE, procedure));
+ childrenList.add(new Property("procedure", "Reference(Procedure)", "Type of procedure performed.", 0, java.lang.Integer.MAX_VALUE, procedure));
childrenList.add(new Property("interpreter", "Reference(Practitioner)", "Who read study and interpreted the images.", 0, java.lang.Integer.MAX_VALUE, interpreter));
childrenList.add(new Property("description", "string", "Institution-generated description or classification of the Study performed.", 0, java.lang.Integer.MAX_VALUE, description));
childrenList.add(new Property("series", "", "Each study has one or more series of image instances.", 0, java.lang.Integer.MAX_VALUE, series));
@@ -3476,8 +2943,8 @@ public class ImagingStudy extends DomainResource {
dst.order.add(i.copy());
};
if (modalityList != null) {
- dst.modalityList = new ArrayList>();
- for (Enumeration i : modalityList)
+ dst.modalityList = new ArrayList();
+ for (Coding i : modalityList)
dst.modalityList.add(i.copy());
};
dst.referrer = referrer == null ? null : referrer.copy();
@@ -3487,8 +2954,8 @@ public class ImagingStudy extends DomainResource {
dst.numberOfInstances = numberOfInstances == null ? null : numberOfInstances.copy();
dst.clinicalInformation = clinicalInformation == null ? null : clinicalInformation.copy();
if (procedure != null) {
- dst.procedure = new ArrayList();
- for (Coding i : procedure)
+ dst.procedure = new ArrayList();
+ for (Reference i : procedure)
dst.procedure.add(i.copy());
};
dst.interpreter = interpreter == null ? null : interpreter.copy();
@@ -3528,10 +2995,10 @@ public class ImagingStudy extends DomainResource {
if (!(other instanceof ImagingStudy))
return false;
ImagingStudy o = (ImagingStudy) other;
- return compareValues(started, o.started, true) && compareValues(uid, o.uid, true) && compareValues(modalityList, o.modalityList, true)
- && compareValues(availability, o.availability, true) && compareValues(url, o.url, true) && compareValues(numberOfSeries, o.numberOfSeries, true)
- && compareValues(numberOfInstances, o.numberOfInstances, true) && compareValues(clinicalInformation, o.clinicalInformation, true)
- && compareValues(description, o.description, true);
+ return compareValues(started, o.started, true) && compareValues(uid, o.uid, true) && compareValues(availability, o.availability, true)
+ && compareValues(url, o.url, true) && compareValues(numberOfSeries, o.numberOfSeries, true) && compareValues(numberOfInstances, o.numberOfInstances, true)
+ && compareValues(clinicalInformation, o.clinicalInformation, true) && compareValues(description, o.description, true)
+ ;
}
public boolean isEmpty() {
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Immunization.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Immunization.java
index eac21a9f5b8..3f8cb7290b2 100644
--- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Immunization.java
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Immunization.java
@@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
*/
-// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
+// Generated on Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
import java.util.*;
@@ -902,7 +902,7 @@ public class Immunization extends DomainResource {
* Indicates if the vaccination was or was not given.
*/
@Child(name = "wasNotGiven", type = {BooleanType.class}, order=4, min=1, max=1)
- @Description(shortDefinition="Was immunization given?", formalDefinition="Indicates if the vaccination was or was not given." )
+ @Description(shortDefinition="Flag for whether immunization was given", formalDefinition="Indicates if the vaccination was or was not given." )
protected BooleanType wasNotGiven;
/**
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/ImmunizationRecommendation.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/ImmunizationRecommendation.java
index 2daaa7293d7..f656e874d50 100644
--- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/ImmunizationRecommendation.java
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/ImmunizationRecommendation.java
@@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
*/
-// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
+// Generated on Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
import java.util.*;
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/ImplementationGuide.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/ImplementationGuide.java
new file mode 100644
index 00000000000..55dfeb18f1a
--- /dev/null
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/ImplementationGuide.java
@@ -0,0 +1,2295 @@
+package org.hl7.fhir.instance.model;
+
+/*
+ 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 Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
+
+import java.util.*;
+
+import org.hl7.fhir.utilities.Utilities;
+import org.hl7.fhir.instance.model.Enumerations.*;
+import org.hl7.fhir.instance.model.annotations.ResourceDef;
+import org.hl7.fhir.instance.model.annotations.SearchParamDefinition;
+import org.hl7.fhir.instance.model.annotations.Child;
+import org.hl7.fhir.instance.model.annotations.Description;
+import org.hl7.fhir.instance.model.annotations.Block;
+import org.hl7.fhir.instance.model.api.*;
+/**
+ * A set of rules or how FHIR is used to solve a particular problem. This resource is used to gather all the parts of an implementation guide into a logical whole, and to publish a computable definition of all the parts.
+ */
+@ResourceDef(name="ImplementationGuide", profile="http://hl7.org/fhir/Profile/ImplementationGuide")
+public class ImplementationGuide extends DomainResource {
+
+ public enum PagePurpose {
+ /**
+ * The home page - the start page for the appendix
+ */
+ HOME,
+ /**
+ * Introduction material
+ */
+ INTRO,
+ /**
+ * General Content
+ */
+ CONTENT,
+ /**
+ * Security Related Page
+ */
+ SECURITY,
+ /**
+ * An appendix to the IG
+ */
+ APPENDIX,
+ /**
+ * added to help the parsers
+ */
+ NULL;
+ public static PagePurpose fromCode(String codeString) throws Exception {
+ if (codeString == null || "".equals(codeString))
+ return null;
+ if ("home".equals(codeString))
+ return HOME;
+ if ("intro".equals(codeString))
+ return INTRO;
+ if ("content".equals(codeString))
+ return CONTENT;
+ if ("security".equals(codeString))
+ return SECURITY;
+ if ("appendix".equals(codeString))
+ return APPENDIX;
+ throw new Exception("Unknown PagePurpose code '"+codeString+"'");
+ }
+ public String toCode() {
+ switch (this) {
+ case HOME: return "home";
+ case INTRO: return "intro";
+ case CONTENT: return "content";
+ case SECURITY: return "security";
+ case APPENDIX: return "appendix";
+ default: return "?";
+ }
+ }
+ public String getSystem() {
+ switch (this) {
+ case HOME: return "http://hl7.org/fhir/page-purpose";
+ case INTRO: return "http://hl7.org/fhir/page-purpose";
+ case CONTENT: return "http://hl7.org/fhir/page-purpose";
+ case SECURITY: return "http://hl7.org/fhir/page-purpose";
+ case APPENDIX: return "http://hl7.org/fhir/page-purpose";
+ default: return "?";
+ }
+ }
+ public String getDefinition() {
+ switch (this) {
+ case HOME: return "The home page - the start page for the appendix";
+ case INTRO: return "Introduction material";
+ case CONTENT: return "General Content";
+ case SECURITY: return "Security Related Page";
+ case APPENDIX: return "An appendix to the IG";
+ default: return "?";
+ }
+ }
+ public String getDisplay() {
+ switch (this) {
+ case HOME: return "Home Page";
+ case INTRO: return "Introduction";
+ case CONTENT: return "General Content";
+ case SECURITY: return "Security Page";
+ case APPENDIX: return "Appendix";
+ default: return "?";
+ }
+ }
+ }
+
+ public static class PagePurposeEnumFactory implements EnumFactory {
+ public PagePurpose fromCode(String codeString) throws IllegalArgumentException {
+ if (codeString == null || "".equals(codeString))
+ if (codeString == null || "".equals(codeString))
+ return null;
+ if ("home".equals(codeString))
+ return PagePurpose.HOME;
+ if ("intro".equals(codeString))
+ return PagePurpose.INTRO;
+ if ("content".equals(codeString))
+ return PagePurpose.CONTENT;
+ if ("security".equals(codeString))
+ return PagePurpose.SECURITY;
+ if ("appendix".equals(codeString))
+ return PagePurpose.APPENDIX;
+ throw new IllegalArgumentException("Unknown PagePurpose code '"+codeString+"'");
+ }
+ public String toCode(PagePurpose code) {
+ if (code == PagePurpose.HOME)
+ return "home";
+ if (code == PagePurpose.INTRO)
+ return "intro";
+ if (code == PagePurpose.CONTENT)
+ return "content";
+ if (code == PagePurpose.SECURITY)
+ return "security";
+ if (code == PagePurpose.APPENDIX)
+ return "appendix";
+ return "?";
+ }
+ }
+
+ @Block()
+ public static class ImplementationGuideContactComponent extends BackboneElement implements IBaseBackboneElement {
+ /**
+ * The name of an individual to contact regarding the implementation guide.
+ */
+ @Child(name = "name", type = {StringType.class}, order=1, min=0, max=1)
+ @Description(shortDefinition="Name of a individual to contact", formalDefinition="The name of an individual to contact regarding the implementation guide." )
+ protected StringType name;
+
+ /**
+ * Contact details for individual (if a name was provided) or the publisher.
+ */
+ @Child(name = "telecom", type = {ContactPoint.class}, order=2, min=0, max=Child.MAX_UNLIMITED)
+ @Description(shortDefinition="Contact details for individual or publisher", formalDefinition="Contact details for individual (if a name was provided) or the publisher." )
+ protected List telecom;
+
+ private static final long serialVersionUID = -1179697803L;
+
+ /*
+ * Constructor
+ */
+ public ImplementationGuideContactComponent() {
+ super();
+ }
+
+ /**
+ * @return {@link #name} (The name of an individual to contact regarding the implementation guide.). This is the underlying object with id, value and extensions. The accessor "getName" gives direct access to the value
+ */
+ public StringType getNameElement() {
+ if (this.name == null)
+ if (Configuration.errorOnAutoCreate())
+ throw new Error("Attempt to auto-create ImplementationGuideContactComponent.name");
+ else if (Configuration.doAutoCreate())
+ this.name = new StringType(); // bb
+ return this.name;
+ }
+
+ public boolean hasNameElement() {
+ return this.name != null && !this.name.isEmpty();
+ }
+
+ public boolean hasName() {
+ return this.name != null && !this.name.isEmpty();
+ }
+
+ /**
+ * @param value {@link #name} (The name of an individual to contact regarding the implementation guide.). This is the underlying object with id, value and extensions. The accessor "getName" gives direct access to the value
+ */
+ public ImplementationGuideContactComponent setNameElement(StringType value) {
+ this.name = value;
+ return this;
+ }
+
+ /**
+ * @return The name of an individual to contact regarding the implementation guide.
+ */
+ public String getName() {
+ return this.name == null ? null : this.name.getValue();
+ }
+
+ /**
+ * @param value The name of an individual to contact regarding the implementation guide.
+ */
+ public ImplementationGuideContactComponent setName(String value) {
+ if (Utilities.noString(value))
+ this.name = null;
+ else {
+ if (this.name == null)
+ this.name = new StringType();
+ this.name.setValue(value);
+ }
+ return this;
+ }
+
+ /**
+ * @return {@link #telecom} (Contact details for individual (if a name was provided) or the publisher.)
+ */
+ public List getTelecom() {
+ if (this.telecom == null)
+ this.telecom = new ArrayList();
+ return this.telecom;
+ }
+
+ public boolean hasTelecom() {
+ if (this.telecom == null)
+ return false;
+ for (ContactPoint item : this.telecom)
+ if (!item.isEmpty())
+ return true;
+ return false;
+ }
+
+ /**
+ * @return {@link #telecom} (Contact details for individual (if a name was provided) or the publisher.)
+ */
+ // syntactic sugar
+ public ContactPoint addTelecom() { //3
+ ContactPoint t = new ContactPoint();
+ if (this.telecom == null)
+ this.telecom = new ArrayList();
+ this.telecom.add(t);
+ return t;
+ }
+
+ // syntactic sugar
+ public ImplementationGuideContactComponent addTelecom(ContactPoint t) { //3
+ if (t == null)
+ return this;
+ if (this.telecom == null)
+ this.telecom = new ArrayList();
+ this.telecom.add(t);
+ return this;
+ }
+
+ protected void listChildren(List childrenList) {
+ super.listChildren(childrenList);
+ childrenList.add(new Property("name", "string", "The name of an individual to contact regarding the implementation guide.", 0, java.lang.Integer.MAX_VALUE, name));
+ childrenList.add(new Property("telecom", "ContactPoint", "Contact details for individual (if a name was provided) or the publisher.", 0, java.lang.Integer.MAX_VALUE, telecom));
+ }
+
+ public ImplementationGuideContactComponent copy() {
+ ImplementationGuideContactComponent dst = new ImplementationGuideContactComponent();
+ copyValues(dst);
+ dst.name = name == null ? null : name.copy();
+ if (telecom != null) {
+ dst.telecom = new ArrayList();
+ for (ContactPoint i : telecom)
+ dst.telecom.add(i.copy());
+ };
+ return dst;
+ }
+
+ @Override
+ public boolean equalsDeep(Base other) {
+ if (!super.equalsDeep(other))
+ return false;
+ if (!(other instanceof ImplementationGuideContactComponent))
+ return false;
+ ImplementationGuideContactComponent o = (ImplementationGuideContactComponent) other;
+ return compareDeep(name, o.name, true) && compareDeep(telecom, o.telecom, true);
+ }
+
+ @Override
+ public boolean equalsShallow(Base other) {
+ if (!super.equalsShallow(other))
+ return false;
+ if (!(other instanceof ImplementationGuideContactComponent))
+ return false;
+ ImplementationGuideContactComponent o = (ImplementationGuideContactComponent) other;
+ return compareValues(name, o.name, true);
+ }
+
+ public boolean isEmpty() {
+ return super.isEmpty() && (name == null || name.isEmpty()) && (telecom == null || telecom.isEmpty())
+ ;
+ }
+
+ }
+
+ @Block()
+ public static class ImplementationGuidePageComponent extends BackboneElement implements IBaseBackboneElement {
+ /**
+ * A URL that identifies the html page.
+ */
+ @Child(name = "source", type = {UriType.class}, order=1, min=1, max=1)
+ @Description(shortDefinition="Source for the page", formalDefinition="A URL that identifies the html page." )
+ protected UriType source;
+
+ /**
+ * A code that specifies how the page is used in the IG.
+ */
+ @Child(name = "purpose", type = {CodeType.class}, order=2, min=1, max=1)
+ @Description(shortDefinition="home | intro | content | security | appendix", formalDefinition="A code that specifies how the page is used in the IG." )
+ protected Enumeration purpose;
+
+ private static final long serialVersionUID = -1176194637L;
+
+ /*
+ * Constructor
+ */
+ public ImplementationGuidePageComponent() {
+ super();
+ }
+
+ /*
+ * Constructor
+ */
+ public ImplementationGuidePageComponent(UriType source, Enumeration purpose) {
+ super();
+ this.source = source;
+ this.purpose = purpose;
+ }
+
+ /**
+ * @return {@link #source} (A URL that identifies the html page.). This is the underlying object with id, value and extensions. The accessor "getSource" gives direct access to the value
+ */
+ public UriType getSourceElement() {
+ if (this.source == null)
+ if (Configuration.errorOnAutoCreate())
+ throw new Error("Attempt to auto-create ImplementationGuidePageComponent.source");
+ else if (Configuration.doAutoCreate())
+ this.source = new UriType(); // bb
+ return this.source;
+ }
+
+ public boolean hasSourceElement() {
+ return this.source != null && !this.source.isEmpty();
+ }
+
+ public boolean hasSource() {
+ return this.source != null && !this.source.isEmpty();
+ }
+
+ /**
+ * @param value {@link #source} (A URL that identifies the html page.). This is the underlying object with id, value and extensions. The accessor "getSource" gives direct access to the value
+ */
+ public ImplementationGuidePageComponent setSourceElement(UriType value) {
+ this.source = value;
+ return this;
+ }
+
+ /**
+ * @return A URL that identifies the html page.
+ */
+ public String getSource() {
+ return this.source == null ? null : this.source.getValue();
+ }
+
+ /**
+ * @param value A URL that identifies the html page.
+ */
+ public ImplementationGuidePageComponent setSource(String value) {
+ if (this.source == null)
+ this.source = new UriType();
+ this.source.setValue(value);
+ return this;
+ }
+
+ /**
+ * @return {@link #purpose} (A code that specifies how the page is used in the IG.). This is the underlying object with id, value and extensions. The accessor "getPurpose" gives direct access to the value
+ */
+ public Enumeration getPurposeElement() {
+ if (this.purpose == null)
+ if (Configuration.errorOnAutoCreate())
+ throw new Error("Attempt to auto-create ImplementationGuidePageComponent.purpose");
+ else if (Configuration.doAutoCreate())
+ this.purpose = new Enumeration(new PagePurposeEnumFactory()); // bb
+ return this.purpose;
+ }
+
+ public boolean hasPurposeElement() {
+ return this.purpose != null && !this.purpose.isEmpty();
+ }
+
+ public boolean hasPurpose() {
+ return this.purpose != null && !this.purpose.isEmpty();
+ }
+
+ /**
+ * @param value {@link #purpose} (A code that specifies how the page is used in the IG.). This is the underlying object with id, value and extensions. The accessor "getPurpose" gives direct access to the value
+ */
+ public ImplementationGuidePageComponent setPurposeElement(Enumeration value) {
+ this.purpose = value;
+ return this;
+ }
+
+ /**
+ * @return A code that specifies how the page is used in the IG.
+ */
+ public PagePurpose getPurpose() {
+ return this.purpose == null ? null : this.purpose.getValue();
+ }
+
+ /**
+ * @param value A code that specifies how the page is used in the IG.
+ */
+ public ImplementationGuidePageComponent setPurpose(PagePurpose value) {
+ if (this.purpose == null)
+ this.purpose = new Enumeration(new PagePurposeEnumFactory());
+ this.purpose.setValue(value);
+ return this;
+ }
+
+ protected void listChildren(List childrenList) {
+ super.listChildren(childrenList);
+ childrenList.add(new Property("source", "uri", "A URL that identifies the html page.", 0, java.lang.Integer.MAX_VALUE, source));
+ childrenList.add(new Property("purpose", "code", "A code that specifies how the page is used in the IG.", 0, java.lang.Integer.MAX_VALUE, purpose));
+ }
+
+ public ImplementationGuidePageComponent copy() {
+ ImplementationGuidePageComponent dst = new ImplementationGuidePageComponent();
+ copyValues(dst);
+ dst.source = source == null ? null : source.copy();
+ dst.purpose = purpose == null ? null : purpose.copy();
+ return dst;
+ }
+
+ @Override
+ public boolean equalsDeep(Base other) {
+ if (!super.equalsDeep(other))
+ return false;
+ if (!(other instanceof ImplementationGuidePageComponent))
+ return false;
+ ImplementationGuidePageComponent o = (ImplementationGuidePageComponent) other;
+ return compareDeep(source, o.source, true) && compareDeep(purpose, o.purpose, true);
+ }
+
+ @Override
+ public boolean equalsShallow(Base other) {
+ if (!super.equalsShallow(other))
+ return false;
+ if (!(other instanceof ImplementationGuidePageComponent))
+ return false;
+ ImplementationGuidePageComponent o = (ImplementationGuidePageComponent) other;
+ return compareValues(source, o.source, true) && compareValues(purpose, o.purpose, true);
+ }
+
+ public boolean isEmpty() {
+ return super.isEmpty() && (source == null || source.isEmpty()) && (purpose == null || purpose.isEmpty())
+ ;
+ }
+
+ }
+
+ @Block()
+ public static class ImplementationGuidePackageComponent extends BackboneElement implements IBaseBackboneElement {
+ /**
+ * A human readable name that introduces the item.
+ */
+ @Child(name = "name", type = {StringType.class}, order=1, min=1, max=1)
+ @Description(shortDefinition="Title of the item", formalDefinition="A human readable name that introduces the item." )
+ protected StringType name;
+
+ /**
+ * An item in the set of resources that is a section in the implementation Guide.
+ */
+ @Child(name = "item", type = {}, order=2, min=0, max=Child.MAX_UNLIMITED)
+ @Description(shortDefinition="An item in the section / package", formalDefinition="An item in the set of resources that is a section in the implementation Guide." )
+ protected List item;
+
+ /**
+ * An html page that is published with the Implementation Guide, as part of the package.
+ */
+ @Child(name = "page", type = {ImplementationGuidePageComponent.class}, order=3, min=0, max=Child.MAX_UNLIMITED)
+ @Description(shortDefinition="Page in the Implementation Guide", formalDefinition="An html page that is published with the Implementation Guide, as part of the package." )
+ protected List page;
+
+ private static final long serialVersionUID = -110143794L;
+
+ /*
+ * Constructor
+ */
+ public ImplementationGuidePackageComponent() {
+ super();
+ }
+
+ /*
+ * Constructor
+ */
+ public ImplementationGuidePackageComponent(StringType name) {
+ super();
+ this.name = name;
+ }
+
+ /**
+ * @return {@link #name} (A human readable name that introduces the item.). This is the underlying object with id, value and extensions. The accessor "getName" gives direct access to the value
+ */
+ public StringType getNameElement() {
+ if (this.name == null)
+ if (Configuration.errorOnAutoCreate())
+ throw new Error("Attempt to auto-create ImplementationGuidePackageComponent.name");
+ else if (Configuration.doAutoCreate())
+ this.name = new StringType(); // bb
+ return this.name;
+ }
+
+ public boolean hasNameElement() {
+ return this.name != null && !this.name.isEmpty();
+ }
+
+ public boolean hasName() {
+ return this.name != null && !this.name.isEmpty();
+ }
+
+ /**
+ * @param value {@link #name} (A human readable name that introduces the item.). This is the underlying object with id, value and extensions. The accessor "getName" gives direct access to the value
+ */
+ public ImplementationGuidePackageComponent setNameElement(StringType value) {
+ this.name = value;
+ return this;
+ }
+
+ /**
+ * @return A human readable name that introduces the item.
+ */
+ public String getName() {
+ return this.name == null ? null : this.name.getValue();
+ }
+
+ /**
+ * @param value A human readable name that introduces the item.
+ */
+ public ImplementationGuidePackageComponent setName(String value) {
+ if (this.name == null)
+ this.name = new StringType();
+ this.name.setValue(value);
+ return this;
+ }
+
+ /**
+ * @return {@link #item} (An item in the set of resources that is a section in the implementation Guide.)
+ */
+ public List getItem() {
+ if (this.item == null)
+ this.item = new ArrayList();
+ return this.item;
+ }
+
+ public boolean hasItem() {
+ if (this.item == null)
+ return false;
+ for (ImplementationGuidePackageItemComponent item : this.item)
+ if (!item.isEmpty())
+ return true;
+ return false;
+ }
+
+ /**
+ * @return {@link #item} (An item in the set of resources that is a section in the implementation Guide.)
+ */
+ // syntactic sugar
+ public ImplementationGuidePackageItemComponent addItem() { //3
+ ImplementationGuidePackageItemComponent t = new ImplementationGuidePackageItemComponent();
+ if (this.item == null)
+ this.item = new ArrayList();
+ this.item.add(t);
+ return t;
+ }
+
+ // syntactic sugar
+ public ImplementationGuidePackageComponent addItem(ImplementationGuidePackageItemComponent t) { //3
+ if (t == null)
+ return this;
+ if (this.item == null)
+ this.item = new ArrayList();
+ this.item.add(t);
+ return this;
+ }
+
+ /**
+ * @return {@link #page} (An html page that is published with the Implementation Guide, as part of the package.)
+ */
+ public List getPage() {
+ if (this.page == null)
+ this.page = new ArrayList();
+ return this.page;
+ }
+
+ public boolean hasPage() {
+ if (this.page == null)
+ return false;
+ for (ImplementationGuidePageComponent item : this.page)
+ if (!item.isEmpty())
+ return true;
+ return false;
+ }
+
+ /**
+ * @return {@link #page} (An html page that is published with the Implementation Guide, as part of the package.)
+ */
+ // syntactic sugar
+ public ImplementationGuidePageComponent addPage() { //3
+ ImplementationGuidePageComponent t = new ImplementationGuidePageComponent();
+ if (this.page == null)
+ this.page = new ArrayList();
+ this.page.add(t);
+ return t;
+ }
+
+ // syntactic sugar
+ public ImplementationGuidePackageComponent addPage(ImplementationGuidePageComponent t) { //3
+ if (t == null)
+ return this;
+ if (this.page == null)
+ this.page = new ArrayList();
+ this.page.add(t);
+ return this;
+ }
+
+ protected void listChildren(List childrenList) {
+ super.listChildren(childrenList);
+ childrenList.add(new Property("name", "string", "A human readable name that introduces the item.", 0, java.lang.Integer.MAX_VALUE, name));
+ childrenList.add(new Property("item", "", "An item in the set of resources that is a section in the implementation Guide.", 0, java.lang.Integer.MAX_VALUE, item));
+ childrenList.add(new Property("page", "@ImplementationGuide.page", "An html page that is published with the Implementation Guide, as part of the package.", 0, java.lang.Integer.MAX_VALUE, page));
+ }
+
+ public ImplementationGuidePackageComponent copy() {
+ ImplementationGuidePackageComponent dst = new ImplementationGuidePackageComponent();
+ copyValues(dst);
+ dst.name = name == null ? null : name.copy();
+ if (item != null) {
+ dst.item = new ArrayList();
+ for (ImplementationGuidePackageItemComponent i : item)
+ dst.item.add(i.copy());
+ };
+ if (page != null) {
+ dst.page = new ArrayList();
+ for (ImplementationGuidePageComponent i : page)
+ dst.page.add(i.copy());
+ };
+ return dst;
+ }
+
+ @Override
+ public boolean equalsDeep(Base other) {
+ if (!super.equalsDeep(other))
+ return false;
+ if (!(other instanceof ImplementationGuidePackageComponent))
+ return false;
+ ImplementationGuidePackageComponent o = (ImplementationGuidePackageComponent) other;
+ return compareDeep(name, o.name, true) && compareDeep(item, o.item, true) && compareDeep(page, o.page, true)
+ ;
+ }
+
+ @Override
+ public boolean equalsShallow(Base other) {
+ if (!super.equalsShallow(other))
+ return false;
+ if (!(other instanceof ImplementationGuidePackageComponent))
+ return false;
+ ImplementationGuidePackageComponent o = (ImplementationGuidePackageComponent) other;
+ return compareValues(name, o.name, true);
+ }
+
+ public boolean isEmpty() {
+ return super.isEmpty() && (name == null || name.isEmpty()) && (item == null || item.isEmpty())
+ && (page == null || page.isEmpty());
+ }
+
+ }
+
+ @Block()
+ public static class ImplementationGuidePackageItemComponent extends BackboneElement implements IBaseBackboneElement {
+ /**
+ * A human readable name that introduces the package.
+ */
+ @Child(name = "name", type = {StringType.class}, order=1, min=0, max=1)
+ @Description(shortDefinition="Title of the package", formalDefinition="A human readable name that introduces the package." )
+ protected StringType name;
+
+ /**
+ * A reference to a conformance resource that is part of the implementation Guide.
+ */
+ @Child(name = "content", type = {}, order=2, min=1, max=1)
+ @Description(shortDefinition="StructureDefinition, ConformanceStatement, ValueSet, DataElement etc", formalDefinition="A reference to a conformance resource that is part of the implementation Guide." )
+ protected Reference content;
+
+ /**
+ * The actual object that is the target of the reference (A reference to a conformance resource that is part of the implementation Guide.)
+ */
+ protected Resource contentTarget;
+
+ /**
+ * If the item is a structure definition, an example that conforms to the structure definition.
+ */
+ @Child(name = "example", type = {}, order=3, min=0, max=Child.MAX_UNLIMITED)
+ @Description(shortDefinition="An example (If Item is StructureDefinition)", formalDefinition="If the item is a structure definition, an example that conforms to the structure definition." )
+ protected List example;
+
+ private static final long serialVersionUID = -1640700896L;
+
+ /*
+ * Constructor
+ */
+ public ImplementationGuidePackageItemComponent() {
+ super();
+ }
+
+ /*
+ * Constructor
+ */
+ public ImplementationGuidePackageItemComponent(Reference content) {
+ super();
+ this.content = content;
+ }
+
+ /**
+ * @return {@link #name} (A human readable name that introduces the package.). This is the underlying object with id, value and extensions. The accessor "getName" gives direct access to the value
+ */
+ public StringType getNameElement() {
+ if (this.name == null)
+ if (Configuration.errorOnAutoCreate())
+ throw new Error("Attempt to auto-create ImplementationGuidePackageItemComponent.name");
+ else if (Configuration.doAutoCreate())
+ this.name = new StringType(); // bb
+ return this.name;
+ }
+
+ public boolean hasNameElement() {
+ return this.name != null && !this.name.isEmpty();
+ }
+
+ public boolean hasName() {
+ return this.name != null && !this.name.isEmpty();
+ }
+
+ /**
+ * @param value {@link #name} (A human readable name that introduces the package.). This is the underlying object with id, value and extensions. The accessor "getName" gives direct access to the value
+ */
+ public ImplementationGuidePackageItemComponent setNameElement(StringType value) {
+ this.name = value;
+ return this;
+ }
+
+ /**
+ * @return A human readable name that introduces the package.
+ */
+ public String getName() {
+ return this.name == null ? null : this.name.getValue();
+ }
+
+ /**
+ * @param value A human readable name that introduces the package.
+ */
+ public ImplementationGuidePackageItemComponent setName(String value) {
+ if (Utilities.noString(value))
+ this.name = null;
+ else {
+ if (this.name == null)
+ this.name = new StringType();
+ this.name.setValue(value);
+ }
+ return this;
+ }
+
+ /**
+ * @return {@link #content} (A reference to a conformance resource that is part of the implementation Guide.)
+ */
+ public Reference getContent() {
+ if (this.content == null)
+ if (Configuration.errorOnAutoCreate())
+ throw new Error("Attempt to auto-create ImplementationGuidePackageItemComponent.content");
+ else if (Configuration.doAutoCreate())
+ this.content = new Reference(); // cc
+ return this.content;
+ }
+
+ public boolean hasContent() {
+ return this.content != null && !this.content.isEmpty();
+ }
+
+ /**
+ * @param value {@link #content} (A reference to a conformance resource that is part of the implementation Guide.)
+ */
+ public ImplementationGuidePackageItemComponent setContent(Reference value) {
+ this.content = value;
+ return this;
+ }
+
+ /**
+ * @return {@link #content} The actual object that is the target of the reference. The reference library doesn't populate this, but you can use it to hold the resource if you resolve it. (A reference to a conformance resource that is part of the implementation Guide.)
+ */
+ public Resource getContentTarget() {
+ return this.contentTarget;
+ }
+
+ /**
+ * @param value {@link #content} The actual object that is the target of the reference. The reference library doesn't use these, but you can use it to hold the resource if you resolve it. (A reference to a conformance resource that is part of the implementation Guide.)
+ */
+ public ImplementationGuidePackageItemComponent setContentTarget(Resource value) {
+ this.contentTarget = value;
+ return this;
+ }
+
+ /**
+ * @return {@link #example} (If the item is a structure definition, an example that conforms to the structure definition.)
+ */
+ public List getExample() {
+ if (this.example == null)
+ this.example = new ArrayList();
+ return this.example;
+ }
+
+ public boolean hasExample() {
+ if (this.example == null)
+ return false;
+ for (ImplementationGuidePackageItemExampleComponent item : this.example)
+ if (!item.isEmpty())
+ return true;
+ return false;
+ }
+
+ /**
+ * @return {@link #example} (If the item is a structure definition, an example that conforms to the structure definition.)
+ */
+ // syntactic sugar
+ public ImplementationGuidePackageItemExampleComponent addExample() { //3
+ ImplementationGuidePackageItemExampleComponent t = new ImplementationGuidePackageItemExampleComponent();
+ if (this.example == null)
+ this.example = new ArrayList();
+ this.example.add(t);
+ return t;
+ }
+
+ // syntactic sugar
+ public ImplementationGuidePackageItemComponent addExample(ImplementationGuidePackageItemExampleComponent t) { //3
+ if (t == null)
+ return this;
+ if (this.example == null)
+ this.example = new ArrayList();
+ this.example.add(t);
+ return this;
+ }
+
+ protected void listChildren(List childrenList) {
+ super.listChildren(childrenList);
+ childrenList.add(new Property("name", "string", "A human readable name that introduces the package.", 0, java.lang.Integer.MAX_VALUE, name));
+ childrenList.add(new Property("content", "Reference(Any)", "A reference to a conformance resource that is part of the implementation Guide.", 0, java.lang.Integer.MAX_VALUE, content));
+ childrenList.add(new Property("example", "", "If the item is a structure definition, an example that conforms to the structure definition.", 0, java.lang.Integer.MAX_VALUE, example));
+ }
+
+ public ImplementationGuidePackageItemComponent copy() {
+ ImplementationGuidePackageItemComponent dst = new ImplementationGuidePackageItemComponent();
+ copyValues(dst);
+ dst.name = name == null ? null : name.copy();
+ dst.content = content == null ? null : content.copy();
+ if (example != null) {
+ dst.example = new ArrayList();
+ for (ImplementationGuidePackageItemExampleComponent i : example)
+ dst.example.add(i.copy());
+ };
+ return dst;
+ }
+
+ @Override
+ public boolean equalsDeep(Base other) {
+ if (!super.equalsDeep(other))
+ return false;
+ if (!(other instanceof ImplementationGuidePackageItemComponent))
+ return false;
+ ImplementationGuidePackageItemComponent o = (ImplementationGuidePackageItemComponent) other;
+ return compareDeep(name, o.name, true) && compareDeep(content, o.content, true) && compareDeep(example, o.example, true)
+ ;
+ }
+
+ @Override
+ public boolean equalsShallow(Base other) {
+ if (!super.equalsShallow(other))
+ return false;
+ if (!(other instanceof ImplementationGuidePackageItemComponent))
+ return false;
+ ImplementationGuidePackageItemComponent o = (ImplementationGuidePackageItemComponent) other;
+ return compareValues(name, o.name, true);
+ }
+
+ public boolean isEmpty() {
+ return super.isEmpty() && (name == null || name.isEmpty()) && (content == null || content.isEmpty())
+ && (example == null || example.isEmpty());
+ }
+
+ }
+
+ @Block()
+ public static class ImplementationGuidePackageItemExampleComponent extends BackboneElement implements IBaseBackboneElement {
+ /**
+ * A human readable name that introduces the example.
+ */
+ @Child(name = "name", type = {StringType.class}, order=1, min=1, max=1)
+ @Description(shortDefinition="Title of the example", formalDefinition="A human readable name that introduces the example." )
+ protected StringType name;
+
+ /**
+ * A reference to a resource that is an example for a structure definition.
+ */
+ @Child(name = "target", type = {}, order=2, min=1, max=1)
+ @Description(shortDefinition="Example for a StructureDefinition", formalDefinition="A reference to a resource that is an example for a structure definition." )
+ protected Reference target;
+
+ /**
+ * The actual object that is the target of the reference (A reference to a resource that is an example for a structure definition.)
+ */
+ protected Resource targetTarget;
+
+ /**
+ * Additional text that explains why the example was provided (e.g. what to look for in it).
+ */
+ @Child(name = "description", type = {StringType.class}, order=3, min=1, max=1)
+ @Description(shortDefinition="Explanatory Text", formalDefinition="Additional text that explains why the example was provided (e.g. what to look for in it)." )
+ protected StringType description;
+
+ private static final long serialVersionUID = -1636938221L;
+
+ /*
+ * Constructor
+ */
+ public ImplementationGuidePackageItemExampleComponent() {
+ super();
+ }
+
+ /*
+ * Constructor
+ */
+ public ImplementationGuidePackageItemExampleComponent(StringType name, Reference target, StringType description) {
+ super();
+ this.name = name;
+ this.target = target;
+ this.description = description;
+ }
+
+ /**
+ * @return {@link #name} (A human readable name that introduces the example.). This is the underlying object with id, value and extensions. The accessor "getName" gives direct access to the value
+ */
+ public StringType getNameElement() {
+ if (this.name == null)
+ if (Configuration.errorOnAutoCreate())
+ throw new Error("Attempt to auto-create ImplementationGuidePackageItemExampleComponent.name");
+ else if (Configuration.doAutoCreate())
+ this.name = new StringType(); // bb
+ return this.name;
+ }
+
+ public boolean hasNameElement() {
+ return this.name != null && !this.name.isEmpty();
+ }
+
+ public boolean hasName() {
+ return this.name != null && !this.name.isEmpty();
+ }
+
+ /**
+ * @param value {@link #name} (A human readable name that introduces the example.). This is the underlying object with id, value and extensions. The accessor "getName" gives direct access to the value
+ */
+ public ImplementationGuidePackageItemExampleComponent setNameElement(StringType value) {
+ this.name = value;
+ return this;
+ }
+
+ /**
+ * @return A human readable name that introduces the example.
+ */
+ public String getName() {
+ return this.name == null ? null : this.name.getValue();
+ }
+
+ /**
+ * @param value A human readable name that introduces the example.
+ */
+ public ImplementationGuidePackageItemExampleComponent setName(String value) {
+ if (this.name == null)
+ this.name = new StringType();
+ this.name.setValue(value);
+ return this;
+ }
+
+ /**
+ * @return {@link #target} (A reference to a resource that is an example for a structure definition.)
+ */
+ public Reference getTarget() {
+ if (this.target == null)
+ if (Configuration.errorOnAutoCreate())
+ throw new Error("Attempt to auto-create ImplementationGuidePackageItemExampleComponent.target");
+ else if (Configuration.doAutoCreate())
+ this.target = new Reference(); // cc
+ return this.target;
+ }
+
+ public boolean hasTarget() {
+ return this.target != null && !this.target.isEmpty();
+ }
+
+ /**
+ * @param value {@link #target} (A reference to a resource that is an example for a structure definition.)
+ */
+ public ImplementationGuidePackageItemExampleComponent setTarget(Reference value) {
+ this.target = value;
+ return this;
+ }
+
+ /**
+ * @return {@link #target} The actual object that is the target of the reference. The reference library doesn't populate this, but you can use it to hold the resource if you resolve it. (A reference to a resource that is an example for a structure definition.)
+ */
+ public Resource getTargetTarget() {
+ return this.targetTarget;
+ }
+
+ /**
+ * @param value {@link #target} The actual object that is the target of the reference. The reference library doesn't use these, but you can use it to hold the resource if you resolve it. (A reference to a resource that is an example for a structure definition.)
+ */
+ public ImplementationGuidePackageItemExampleComponent setTargetTarget(Resource value) {
+ this.targetTarget = value;
+ return this;
+ }
+
+ /**
+ * @return {@link #description} (Additional text that explains why the example was provided (e.g. what to look for in it).). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value
+ */
+ public StringType getDescriptionElement() {
+ if (this.description == null)
+ if (Configuration.errorOnAutoCreate())
+ throw new Error("Attempt to auto-create ImplementationGuidePackageItemExampleComponent.description");
+ else if (Configuration.doAutoCreate())
+ this.description = new StringType(); // bb
+ return this.description;
+ }
+
+ public boolean hasDescriptionElement() {
+ return this.description != null && !this.description.isEmpty();
+ }
+
+ public boolean hasDescription() {
+ return this.description != null && !this.description.isEmpty();
+ }
+
+ /**
+ * @param value {@link #description} (Additional text that explains why the example was provided (e.g. what to look for in it).). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value
+ */
+ public ImplementationGuidePackageItemExampleComponent setDescriptionElement(StringType value) {
+ this.description = value;
+ return this;
+ }
+
+ /**
+ * @return Additional text that explains why the example was provided (e.g. what to look for in it).
+ */
+ public String getDescription() {
+ return this.description == null ? null : this.description.getValue();
+ }
+
+ /**
+ * @param value Additional text that explains why the example was provided (e.g. what to look for in it).
+ */
+ public ImplementationGuidePackageItemExampleComponent setDescription(String value) {
+ if (this.description == null)
+ this.description = new StringType();
+ this.description.setValue(value);
+ return this;
+ }
+
+ protected void listChildren(List childrenList) {
+ super.listChildren(childrenList);
+ childrenList.add(new Property("name", "string", "A human readable name that introduces the example.", 0, java.lang.Integer.MAX_VALUE, name));
+ childrenList.add(new Property("target", "Reference(Any)", "A reference to a resource that is an example for a structure definition.", 0, java.lang.Integer.MAX_VALUE, target));
+ childrenList.add(new Property("description", "string", "Additional text that explains why the example was provided (e.g. what to look for in it).", 0, java.lang.Integer.MAX_VALUE, description));
+ }
+
+ public ImplementationGuidePackageItemExampleComponent copy() {
+ ImplementationGuidePackageItemExampleComponent dst = new ImplementationGuidePackageItemExampleComponent();
+ copyValues(dst);
+ dst.name = name == null ? null : name.copy();
+ dst.target = target == null ? null : target.copy();
+ dst.description = description == null ? null : description.copy();
+ return dst;
+ }
+
+ @Override
+ public boolean equalsDeep(Base other) {
+ if (!super.equalsDeep(other))
+ return false;
+ if (!(other instanceof ImplementationGuidePackageItemExampleComponent))
+ return false;
+ ImplementationGuidePackageItemExampleComponent o = (ImplementationGuidePackageItemExampleComponent) other;
+ return compareDeep(name, o.name, true) && compareDeep(target, o.target, true) && compareDeep(description, o.description, true)
+ ;
+ }
+
+ @Override
+ public boolean equalsShallow(Base other) {
+ if (!super.equalsShallow(other))
+ return false;
+ if (!(other instanceof ImplementationGuidePackageItemExampleComponent))
+ return false;
+ ImplementationGuidePackageItemExampleComponent o = (ImplementationGuidePackageItemExampleComponent) other;
+ return compareValues(name, o.name, true) && compareValues(description, o.description, true);
+ }
+
+ public boolean isEmpty() {
+ return super.isEmpty() && (name == null || name.isEmpty()) && (target == null || target.isEmpty())
+ && (description == null || description.isEmpty());
+ }
+
+ }
+
+ @Block()
+ public static class ImplementationGuideDefaultComponent extends BackboneElement implements IBaseBackboneElement {
+ /**
+ * The type of resource that this default applies to.
+ */
+ @Child(name = "type", type = {CodeType.class}, order=1, min=1, max=1)
+ @Description(shortDefinition="Type of resource default applies to", formalDefinition="The type of resource that this default applies to." )
+ protected CodeType type;
+
+ /**
+ * The profile (StructureDefinition resource) that applies by default.
+ */
+ @Child(name = "profile", type = {StructureDefinition.class}, order=2, min=1, max=1)
+ @Description(shortDefinition="StructureDefinition that applies by default", formalDefinition="The profile (StructureDefinition resource) that applies by default." )
+ protected Reference profile;
+
+ /**
+ * The actual object that is the target of the reference (The profile (StructureDefinition resource) that applies by default.)
+ */
+ protected StructureDefinition profileTarget;
+
+ private static final long serialVersionUID = 2011731959L;
+
+ /*
+ * Constructor
+ */
+ public ImplementationGuideDefaultComponent() {
+ super();
+ }
+
+ /*
+ * Constructor
+ */
+ public ImplementationGuideDefaultComponent(CodeType type, Reference profile) {
+ super();
+ this.type = type;
+ this.profile = profile;
+ }
+
+ /**
+ * @return {@link #type} (The type of resource that this default applies to.). This is the underlying object with id, value and extensions. The accessor "getType" gives direct access to the value
+ */
+ public CodeType getTypeElement() {
+ if (this.type == null)
+ if (Configuration.errorOnAutoCreate())
+ throw new Error("Attempt to auto-create ImplementationGuideDefaultComponent.type");
+ else if (Configuration.doAutoCreate())
+ this.type = new CodeType(); // bb
+ return this.type;
+ }
+
+ public boolean hasTypeElement() {
+ return this.type != null && !this.type.isEmpty();
+ }
+
+ public boolean hasType() {
+ return this.type != null && !this.type.isEmpty();
+ }
+
+ /**
+ * @param value {@link #type} (The type of resource that this default applies to.). This is the underlying object with id, value and extensions. The accessor "getType" gives direct access to the value
+ */
+ public ImplementationGuideDefaultComponent setTypeElement(CodeType value) {
+ this.type = value;
+ return this;
+ }
+
+ /**
+ * @return The type of resource that this default applies to.
+ */
+ public String getType() {
+ return this.type == null ? null : this.type.getValue();
+ }
+
+ /**
+ * @param value The type of resource that this default applies to.
+ */
+ public ImplementationGuideDefaultComponent setType(String value) {
+ if (this.type == null)
+ this.type = new CodeType();
+ this.type.setValue(value);
+ return this;
+ }
+
+ /**
+ * @return {@link #profile} (The profile (StructureDefinition resource) that applies by default.)
+ */
+ public Reference getProfile() {
+ if (this.profile == null)
+ if (Configuration.errorOnAutoCreate())
+ throw new Error("Attempt to auto-create ImplementationGuideDefaultComponent.profile");
+ else if (Configuration.doAutoCreate())
+ this.profile = new Reference(); // cc
+ return this.profile;
+ }
+
+ public boolean hasProfile() {
+ return this.profile != null && !this.profile.isEmpty();
+ }
+
+ /**
+ * @param value {@link #profile} (The profile (StructureDefinition resource) that applies by default.)
+ */
+ public ImplementationGuideDefaultComponent setProfile(Reference value) {
+ this.profile = value;
+ return this;
+ }
+
+ /**
+ * @return {@link #profile} The actual object that is the target of the reference. The reference library doesn't populate this, but you can use it to hold the resource if you resolve it. (The profile (StructureDefinition resource) that applies by default.)
+ */
+ public StructureDefinition getProfileTarget() {
+ if (this.profileTarget == null)
+ if (Configuration.errorOnAutoCreate())
+ throw new Error("Attempt to auto-create ImplementationGuideDefaultComponent.profile");
+ else if (Configuration.doAutoCreate())
+ this.profileTarget = new StructureDefinition(); // aa
+ return this.profileTarget;
+ }
+
+ /**
+ * @param value {@link #profile} The actual object that is the target of the reference. The reference library doesn't use these, but you can use it to hold the resource if you resolve it. (The profile (StructureDefinition resource) that applies by default.)
+ */
+ public ImplementationGuideDefaultComponent setProfileTarget(StructureDefinition value) {
+ this.profileTarget = value;
+ return this;
+ }
+
+ protected void listChildren(List childrenList) {
+ super.listChildren(childrenList);
+ childrenList.add(new Property("type", "code", "The type of resource that this default applies to.", 0, java.lang.Integer.MAX_VALUE, type));
+ childrenList.add(new Property("profile", "Reference(StructureDefinition)", "The profile (StructureDefinition resource) that applies by default.", 0, java.lang.Integer.MAX_VALUE, profile));
+ }
+
+ public ImplementationGuideDefaultComponent copy() {
+ ImplementationGuideDefaultComponent dst = new ImplementationGuideDefaultComponent();
+ copyValues(dst);
+ dst.type = type == null ? null : type.copy();
+ dst.profile = profile == null ? null : profile.copy();
+ return dst;
+ }
+
+ @Override
+ public boolean equalsDeep(Base other) {
+ if (!super.equalsDeep(other))
+ return false;
+ if (!(other instanceof ImplementationGuideDefaultComponent))
+ return false;
+ ImplementationGuideDefaultComponent o = (ImplementationGuideDefaultComponent) other;
+ return compareDeep(type, o.type, true) && compareDeep(profile, o.profile, true);
+ }
+
+ @Override
+ public boolean equalsShallow(Base other) {
+ if (!super.equalsShallow(other))
+ return false;
+ if (!(other instanceof ImplementationGuideDefaultComponent))
+ return false;
+ ImplementationGuideDefaultComponent o = (ImplementationGuideDefaultComponent) other;
+ return compareValues(type, o.type, true);
+ }
+
+ public boolean isEmpty() {
+ return super.isEmpty() && (type == null || type.isEmpty()) && (profile == null || profile.isEmpty())
+ ;
+ }
+
+ }
+
+ /**
+ * An absolute URL at which this Implementation Guide is (or will be) published, and which is used to reference this Implementation Guide in conformance statements.
+ */
+ @Child(name = "url", type = {UriType.class}, order=0, min=1, max=1)
+ @Description(shortDefinition="Literal URL used to reference this Implementation Guide", formalDefinition="An absolute URL at which this Implementation Guide is (or will be) published, and which is used to reference this Implementation Guide in conformance statements." )
+ protected UriType url;
+
+ /**
+ * The identifier that is used to identify this version of the Implementation Guide when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the Implementation Guide author manually.
+ */
+ @Child(name = "version", type = {StringType.class}, order=1, min=0, max=1)
+ @Description(shortDefinition="Logical id for this version of the Implementation Guide", formalDefinition="The identifier that is used to identify this version of the Implementation Guide when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the Implementation Guide author manually." )
+ protected StringType version;
+
+ /**
+ * A free text natural language name identifying the Implementation Guide.
+ */
+ @Child(name = "name", type = {StringType.class}, order=2, min=1, max=1)
+ @Description(shortDefinition="Informal name for this Implementation Guide", formalDefinition="A free text natural language name identifying the Implementation Guide." )
+ protected StringType name;
+
+ /**
+ * The content was developed with a focus and intent of supporting the contexts that are listed. These terms may be used to assist with indexing and searching of implementation guides. The most common use of this element is to represent the country / jurisdication for which this implementation guide was defined.
+ */
+ @Child(name = "useContext", type = {CodeableConcept.class}, order=3, min=0, max=Child.MAX_UNLIMITED)
+ @Description(shortDefinition="The implementation guide is intended to support these contexts", formalDefinition="The content was developed with a focus and intent of supporting the contexts that are listed. These terms may be used to assist with indexing and searching of implementation guides. The most common use of this element is to represent the country / jurisdication for which this implementation guide was defined." )
+ protected List useContext;
+
+ /**
+ * The name of the individual or organization that published the implementation guide.
+ */
+ @Child(name = "publisher", type = {StringType.class}, order=4, min=0, max=1)
+ @Description(shortDefinition="Name of the publisher (Organization or individual)", formalDefinition="The name of the individual or organization that published the implementation guide." )
+ protected StringType publisher;
+
+ /**
+ * Contacts to assist a user in finding and communicating with the publisher.
+ */
+ @Child(name = "contact", type = {}, order=5, min=0, max=Child.MAX_UNLIMITED)
+ @Description(shortDefinition="Contact details of the publisher", formalDefinition="Contacts to assist a user in finding and communicating with the publisher." )
+ protected List contact;
+
+ /**
+ * A free text natural language description of the Implementation Guide and its use.
+ */
+ @Child(name = "description", type = {StringType.class}, order=6, min=0, max=1)
+ @Description(shortDefinition="Natural language description of the Implementation Guide", formalDefinition="A free text natural language description of the Implementation Guide and its use." )
+ protected StringType description;
+
+ /**
+ * A copyright statement relating to the implementation guide and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the details of the constraints and mappings.
+ */
+ @Child(name = "copyright", type = {StringType.class}, order=7, min=0, max=1)
+ @Description(shortDefinition="Use and/or Publishing restrictions", formalDefinition="A copyright statement relating to the implementation guide and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the details of the constraints and mappings." )
+ protected StringType copyright;
+
+ /**
+ * A set of terms from external terminologies that may be used to assist with indexing and searching of templates.
+ */
+ @Child(name = "code", type = {Coding.class}, order=8, min=0, max=Child.MAX_UNLIMITED)
+ @Description(shortDefinition="Assist with indexing and finding", formalDefinition="A set of terms from external terminologies that may be used to assist with indexing and searching of templates." )
+ protected List code;
+
+ /**
+ * The status of the Implementation Guide.
+ */
+ @Child(name = "status", type = {CodeType.class}, order=9, min=1, max=1)
+ @Description(shortDefinition="draft | active | retired", formalDefinition="The status of the Implementation Guide." )
+ protected Enumeration status;
+
+ /**
+ * This Implementation Guide was authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage.
+ */
+ @Child(name = "experimental", type = {BooleanType.class}, order=10, min=0, max=1)
+ @Description(shortDefinition="If for testing purposes, not real usage", formalDefinition="This Implementation Guide was authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage." )
+ protected BooleanType experimental;
+
+ /**
+ * The date that this version of the Implementation Guide was published.
+ */
+ @Child(name = "date", type = {DateTimeType.class}, order=11, min=0, max=1)
+ @Description(shortDefinition="Date for this version of the Implementation Guide", formalDefinition="The date that this version of the Implementation Guide was published." )
+ protected DateTimeType date;
+
+ /**
+ * The version of the FHIR specification on which this ImplementationGuide is based - this is the formal version of the specification, without the revision number, e.g. [publication].[major].[minor], which is 0.5.0 for this version.
+ */
+ @Child(name = "fhirVersion", type = {IdType.class}, order=12, min=0, max=1)
+ @Description(shortDefinition="FHIR Version this Implementation Guide targets", formalDefinition="The version of the FHIR specification on which this ImplementationGuide is based - this is the formal version of the specification, without the revision number, e.g. [publication].[major].[minor], which is 0.5.0 for this version." )
+ protected IdType fhirVersion;
+
+ /**
+ * An html page that is published with the Implementation Guide.
+ */
+ @Child(name = "page", type = {}, order=13, min=0, max=Child.MAX_UNLIMITED)
+ @Description(shortDefinition="Page in the Implementation Guide", formalDefinition="An html page that is published with the Implementation Guide." )
+ protected List page;
+
+ /**
+ * A logical set of resources that is a section in the implementation Guide.
+ */
+ @Child(name = "package_", type = {}, order=14, min=1, max=Child.MAX_UNLIMITED)
+ @Description(shortDefinition="A section in the IG", formalDefinition="A logical set of resources that is a section in the implementation Guide." )
+ protected List package_;
+
+ /**
+ * A default profile that applies to a particular resource type. Whenever a resource type is referenced in any structure definition (explicitly, or by inheritance from the base specification), and no explicit profile is applied, then this default profile applies.
+ */
+ @Child(name = "default_", type = {}, order=15, min=0, max=Child.MAX_UNLIMITED)
+ @Description(shortDefinition="Applies when no explicit profile applied", formalDefinition="A default profile that applies to a particular resource type. Whenever a resource type is referenced in any structure definition (explicitly, or by inheritance from the base specification), and no explicit profile is applied, then this default profile applies." )
+ protected List default_;
+
+ private static final long serialVersionUID = 2099417617L;
+
+ /*
+ * Constructor
+ */
+ public ImplementationGuide() {
+ super();
+ }
+
+ /*
+ * Constructor
+ */
+ public ImplementationGuide(UriType url, StringType name, Enumeration status) {
+ super();
+ this.url = url;
+ this.name = name;
+ this.status = status;
+ }
+
+ /**
+ * @return {@link #url} (An absolute URL at which this Implementation Guide is (or will be) published, and which is used to reference this Implementation Guide in conformance statements.). This is the underlying object with id, value and extensions. The accessor "getUrl" gives direct access to the value
+ */
+ public UriType getUrlElement() {
+ if (this.url == null)
+ if (Configuration.errorOnAutoCreate())
+ throw new Error("Attempt to auto-create ImplementationGuide.url");
+ else if (Configuration.doAutoCreate())
+ this.url = new UriType(); // bb
+ return this.url;
+ }
+
+ public boolean hasUrlElement() {
+ return this.url != null && !this.url.isEmpty();
+ }
+
+ public boolean hasUrl() {
+ return this.url != null && !this.url.isEmpty();
+ }
+
+ /**
+ * @param value {@link #url} (An absolute URL at which this Implementation Guide is (or will be) published, and which is used to reference this Implementation Guide in conformance statements.). This is the underlying object with id, value and extensions. The accessor "getUrl" gives direct access to the value
+ */
+ public ImplementationGuide setUrlElement(UriType value) {
+ this.url = value;
+ return this;
+ }
+
+ /**
+ * @return An absolute URL at which this Implementation Guide is (or will be) published, and which is used to reference this Implementation Guide in conformance statements.
+ */
+ public String getUrl() {
+ return this.url == null ? null : this.url.getValue();
+ }
+
+ /**
+ * @param value An absolute URL at which this Implementation Guide is (or will be) published, and which is used to reference this Implementation Guide in conformance statements.
+ */
+ public ImplementationGuide setUrl(String value) {
+ if (this.url == null)
+ this.url = new UriType();
+ this.url.setValue(value);
+ return this;
+ }
+
+ /**
+ * @return {@link #version} (The identifier that is used to identify this version of the Implementation Guide when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the Implementation Guide author manually.). This is the underlying object with id, value and extensions. The accessor "getVersion" gives direct access to the value
+ */
+ public StringType getVersionElement() {
+ if (this.version == null)
+ if (Configuration.errorOnAutoCreate())
+ throw new Error("Attempt to auto-create ImplementationGuide.version");
+ else if (Configuration.doAutoCreate())
+ this.version = new StringType(); // bb
+ return this.version;
+ }
+
+ public boolean hasVersionElement() {
+ return this.version != null && !this.version.isEmpty();
+ }
+
+ public boolean hasVersion() {
+ return this.version != null && !this.version.isEmpty();
+ }
+
+ /**
+ * @param value {@link #version} (The identifier that is used to identify this version of the Implementation Guide when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the Implementation Guide author manually.). This is the underlying object with id, value and extensions. The accessor "getVersion" gives direct access to the value
+ */
+ public ImplementationGuide setVersionElement(StringType value) {
+ this.version = value;
+ return this;
+ }
+
+ /**
+ * @return The identifier that is used to identify this version of the Implementation Guide when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the Implementation Guide author manually.
+ */
+ public String getVersion() {
+ return this.version == null ? null : this.version.getValue();
+ }
+
+ /**
+ * @param value The identifier that is used to identify this version of the Implementation Guide when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the Implementation Guide author manually.
+ */
+ public ImplementationGuide setVersion(String value) {
+ if (Utilities.noString(value))
+ this.version = null;
+ else {
+ if (this.version == null)
+ this.version = new StringType();
+ this.version.setValue(value);
+ }
+ return this;
+ }
+
+ /**
+ * @return {@link #name} (A free text natural language name identifying the Implementation Guide.). This is the underlying object with id, value and extensions. The accessor "getName" gives direct access to the value
+ */
+ public StringType getNameElement() {
+ if (this.name == null)
+ if (Configuration.errorOnAutoCreate())
+ throw new Error("Attempt to auto-create ImplementationGuide.name");
+ else if (Configuration.doAutoCreate())
+ this.name = new StringType(); // bb
+ return this.name;
+ }
+
+ public boolean hasNameElement() {
+ return this.name != null && !this.name.isEmpty();
+ }
+
+ public boolean hasName() {
+ return this.name != null && !this.name.isEmpty();
+ }
+
+ /**
+ * @param value {@link #name} (A free text natural language name identifying the Implementation Guide.). This is the underlying object with id, value and extensions. The accessor "getName" gives direct access to the value
+ */
+ public ImplementationGuide setNameElement(StringType value) {
+ this.name = value;
+ return this;
+ }
+
+ /**
+ * @return A free text natural language name identifying the Implementation Guide.
+ */
+ public String getName() {
+ return this.name == null ? null : this.name.getValue();
+ }
+
+ /**
+ * @param value A free text natural language name identifying the Implementation Guide.
+ */
+ public ImplementationGuide setName(String value) {
+ if (this.name == null)
+ this.name = new StringType();
+ this.name.setValue(value);
+ return this;
+ }
+
+ /**
+ * @return {@link #useContext} (The content was developed with a focus and intent of supporting the contexts that are listed. These terms may be used to assist with indexing and searching of implementation guides. The most common use of this element is to represent the country / jurisdication for which this implementation guide was defined.)
+ */
+ public List getUseContext() {
+ if (this.useContext == null)
+ this.useContext = new ArrayList();
+ return this.useContext;
+ }
+
+ public boolean hasUseContext() {
+ if (this.useContext == null)
+ return false;
+ for (CodeableConcept item : this.useContext)
+ if (!item.isEmpty())
+ return true;
+ return false;
+ }
+
+ /**
+ * @return {@link #useContext} (The content was developed with a focus and intent of supporting the contexts that are listed. These terms may be used to assist with indexing and searching of implementation guides. The most common use of this element is to represent the country / jurisdication for which this implementation guide was defined.)
+ */
+ // syntactic sugar
+ public CodeableConcept addUseContext() { //3
+ CodeableConcept t = new CodeableConcept();
+ if (this.useContext == null)
+ this.useContext = new ArrayList();
+ this.useContext.add(t);
+ return t;
+ }
+
+ // syntactic sugar
+ public ImplementationGuide addUseContext(CodeableConcept t) { //3
+ if (t == null)
+ return this;
+ if (this.useContext == null)
+ this.useContext = new ArrayList();
+ this.useContext.add(t);
+ return this;
+ }
+
+ /**
+ * @return {@link #publisher} (The name of the individual or organization that published the implementation guide.). This is the underlying object with id, value and extensions. The accessor "getPublisher" gives direct access to the value
+ */
+ public StringType getPublisherElement() {
+ if (this.publisher == null)
+ if (Configuration.errorOnAutoCreate())
+ throw new Error("Attempt to auto-create ImplementationGuide.publisher");
+ else if (Configuration.doAutoCreate())
+ this.publisher = new StringType(); // bb
+ return this.publisher;
+ }
+
+ public boolean hasPublisherElement() {
+ return this.publisher != null && !this.publisher.isEmpty();
+ }
+
+ public boolean hasPublisher() {
+ return this.publisher != null && !this.publisher.isEmpty();
+ }
+
+ /**
+ * @param value {@link #publisher} (The name of the individual or organization that published the implementation guide.). This is the underlying object with id, value and extensions. The accessor "getPublisher" gives direct access to the value
+ */
+ public ImplementationGuide setPublisherElement(StringType value) {
+ this.publisher = value;
+ return this;
+ }
+
+ /**
+ * @return The name of the individual or organization that published the implementation guide.
+ */
+ public String getPublisher() {
+ return this.publisher == null ? null : this.publisher.getValue();
+ }
+
+ /**
+ * @param value The name of the individual or organization that published the implementation guide.
+ */
+ public ImplementationGuide setPublisher(String value) {
+ if (Utilities.noString(value))
+ this.publisher = null;
+ else {
+ if (this.publisher == null)
+ this.publisher = new StringType();
+ this.publisher.setValue(value);
+ }
+ return this;
+ }
+
+ /**
+ * @return {@link #contact} (Contacts to assist a user in finding and communicating with the publisher.)
+ */
+ public List getContact() {
+ if (this.contact == null)
+ this.contact = new ArrayList();
+ return this.contact;
+ }
+
+ public boolean hasContact() {
+ if (this.contact == null)
+ return false;
+ for (ImplementationGuideContactComponent item : this.contact)
+ if (!item.isEmpty())
+ return true;
+ return false;
+ }
+
+ /**
+ * @return {@link #contact} (Contacts to assist a user in finding and communicating with the publisher.)
+ */
+ // syntactic sugar
+ public ImplementationGuideContactComponent addContact() { //3
+ ImplementationGuideContactComponent t = new ImplementationGuideContactComponent();
+ if (this.contact == null)
+ this.contact = new ArrayList();
+ this.contact.add(t);
+ return t;
+ }
+
+ // syntactic sugar
+ public ImplementationGuide addContact(ImplementationGuideContactComponent t) { //3
+ if (t == null)
+ return this;
+ if (this.contact == null)
+ this.contact = new ArrayList();
+ this.contact.add(t);
+ return this;
+ }
+
+ /**
+ * @return {@link #description} (A free text natural language description of the Implementation Guide and its use.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value
+ */
+ public StringType getDescriptionElement() {
+ if (this.description == null)
+ if (Configuration.errorOnAutoCreate())
+ throw new Error("Attempt to auto-create ImplementationGuide.description");
+ else if (Configuration.doAutoCreate())
+ this.description = new StringType(); // bb
+ return this.description;
+ }
+
+ public boolean hasDescriptionElement() {
+ return this.description != null && !this.description.isEmpty();
+ }
+
+ public boolean hasDescription() {
+ return this.description != null && !this.description.isEmpty();
+ }
+
+ /**
+ * @param value {@link #description} (A free text natural language description of the Implementation Guide and its use.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value
+ */
+ public ImplementationGuide setDescriptionElement(StringType value) {
+ this.description = value;
+ return this;
+ }
+
+ /**
+ * @return A free text natural language description of the Implementation Guide and its use.
+ */
+ public String getDescription() {
+ return this.description == null ? null : this.description.getValue();
+ }
+
+ /**
+ * @param value A free text natural language description of the Implementation Guide and its use.
+ */
+ public ImplementationGuide setDescription(String value) {
+ if (Utilities.noString(value))
+ this.description = null;
+ else {
+ if (this.description == null)
+ this.description = new StringType();
+ this.description.setValue(value);
+ }
+ return this;
+ }
+
+ /**
+ * @return {@link #copyright} (A copyright statement relating to the implementation guide and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the details of the constraints and mappings.). This is the underlying object with id, value and extensions. The accessor "getCopyright" gives direct access to the value
+ */
+ public StringType getCopyrightElement() {
+ if (this.copyright == null)
+ if (Configuration.errorOnAutoCreate())
+ throw new Error("Attempt to auto-create ImplementationGuide.copyright");
+ else if (Configuration.doAutoCreate())
+ this.copyright = new StringType(); // bb
+ return this.copyright;
+ }
+
+ public boolean hasCopyrightElement() {
+ return this.copyright != null && !this.copyright.isEmpty();
+ }
+
+ public boolean hasCopyright() {
+ return this.copyright != null && !this.copyright.isEmpty();
+ }
+
+ /**
+ * @param value {@link #copyright} (A copyright statement relating to the implementation guide and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the details of the constraints and mappings.). This is the underlying object with id, value and extensions. The accessor "getCopyright" gives direct access to the value
+ */
+ public ImplementationGuide setCopyrightElement(StringType value) {
+ this.copyright = value;
+ return this;
+ }
+
+ /**
+ * @return A copyright statement relating to the implementation guide and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the details of the constraints and mappings.
+ */
+ public String getCopyright() {
+ return this.copyright == null ? null : this.copyright.getValue();
+ }
+
+ /**
+ * @param value A copyright statement relating to the implementation guide and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the details of the constraints and mappings.
+ */
+ public ImplementationGuide setCopyright(String value) {
+ if (Utilities.noString(value))
+ this.copyright = null;
+ else {
+ if (this.copyright == null)
+ this.copyright = new StringType();
+ this.copyright.setValue(value);
+ }
+ return this;
+ }
+
+ /**
+ * @return {@link #code} (A set of terms from external terminologies that may be used to assist with indexing and searching of templates.)
+ */
+ public List getCode() {
+ if (this.code == null)
+ this.code = new ArrayList();
+ return this.code;
+ }
+
+ public boolean hasCode() {
+ if (this.code == null)
+ return false;
+ for (Coding item : this.code)
+ if (!item.isEmpty())
+ return true;
+ return false;
+ }
+
+ /**
+ * @return {@link #code} (A set of terms from external terminologies that may be used to assist with indexing and searching of templates.)
+ */
+ // syntactic sugar
+ public Coding addCode() { //3
+ Coding t = new Coding();
+ if (this.code == null)
+ this.code = new ArrayList();
+ this.code.add(t);
+ return t;
+ }
+
+ // syntactic sugar
+ public ImplementationGuide addCode(Coding t) { //3
+ if (t == null)
+ return this;
+ if (this.code == null)
+ this.code = new ArrayList();
+ this.code.add(t);
+ return this;
+ }
+
+ /**
+ * @return {@link #status} (The status of the Implementation Guide.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value
+ */
+ public Enumeration getStatusElement() {
+ if (this.status == null)
+ if (Configuration.errorOnAutoCreate())
+ throw new Error("Attempt to auto-create ImplementationGuide.status");
+ else if (Configuration.doAutoCreate())
+ this.status = new Enumeration(new ConformanceResourceStatusEnumFactory()); // bb
+ return this.status;
+ }
+
+ public boolean hasStatusElement() {
+ return this.status != null && !this.status.isEmpty();
+ }
+
+ public boolean hasStatus() {
+ return this.status != null && !this.status.isEmpty();
+ }
+
+ /**
+ * @param value {@link #status} (The status of the Implementation Guide.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value
+ */
+ public ImplementationGuide setStatusElement(Enumeration value) {
+ this.status = value;
+ return this;
+ }
+
+ /**
+ * @return The status of the Implementation Guide.
+ */
+ public ConformanceResourceStatus getStatus() {
+ return this.status == null ? null : this.status.getValue();
+ }
+
+ /**
+ * @param value The status of the Implementation Guide.
+ */
+ public ImplementationGuide setStatus(ConformanceResourceStatus value) {
+ if (this.status == null)
+ this.status = new Enumeration(new ConformanceResourceStatusEnumFactory());
+ this.status.setValue(value);
+ return this;
+ }
+
+ /**
+ * @return {@link #experimental} (This Implementation Guide was authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage.). This is the underlying object with id, value and extensions. The accessor "getExperimental" gives direct access to the value
+ */
+ public BooleanType getExperimentalElement() {
+ if (this.experimental == null)
+ if (Configuration.errorOnAutoCreate())
+ throw new Error("Attempt to auto-create ImplementationGuide.experimental");
+ else if (Configuration.doAutoCreate())
+ this.experimental = new BooleanType(); // bb
+ return this.experimental;
+ }
+
+ public boolean hasExperimentalElement() {
+ return this.experimental != null && !this.experimental.isEmpty();
+ }
+
+ public boolean hasExperimental() {
+ return this.experimental != null && !this.experimental.isEmpty();
+ }
+
+ /**
+ * @param value {@link #experimental} (This Implementation Guide was authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage.). This is the underlying object with id, value and extensions. The accessor "getExperimental" gives direct access to the value
+ */
+ public ImplementationGuide setExperimentalElement(BooleanType value) {
+ this.experimental = value;
+ return this;
+ }
+
+ /**
+ * @return This Implementation Guide was authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage.
+ */
+ public boolean getExperimental() {
+ return this.experimental == null || this.experimental.isEmpty() ? false : this.experimental.getValue();
+ }
+
+ /**
+ * @param value This Implementation Guide was authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage.
+ */
+ public ImplementationGuide setExperimental(boolean value) {
+ if (this.experimental == null)
+ this.experimental = new BooleanType();
+ this.experimental.setValue(value);
+ return this;
+ }
+
+ /**
+ * @return {@link #date} (The date that this version of the Implementation Guide was published.). This is the underlying object with id, value and extensions. The accessor "getDate" gives direct access to the value
+ */
+ public DateTimeType getDateElement() {
+ if (this.date == null)
+ if (Configuration.errorOnAutoCreate())
+ throw new Error("Attempt to auto-create ImplementationGuide.date");
+ else if (Configuration.doAutoCreate())
+ this.date = new DateTimeType(); // bb
+ return this.date;
+ }
+
+ public boolean hasDateElement() {
+ return this.date != null && !this.date.isEmpty();
+ }
+
+ public boolean hasDate() {
+ return this.date != null && !this.date.isEmpty();
+ }
+
+ /**
+ * @param value {@link #date} (The date that this version of the Implementation Guide was published.). This is the underlying object with id, value and extensions. The accessor "getDate" gives direct access to the value
+ */
+ public ImplementationGuide setDateElement(DateTimeType value) {
+ this.date = value;
+ return this;
+ }
+
+ /**
+ * @return The date that this version of the Implementation Guide was published.
+ */
+ public Date getDate() {
+ return this.date == null ? null : this.date.getValue();
+ }
+
+ /**
+ * @param value The date that this version of the Implementation Guide was published.
+ */
+ public ImplementationGuide setDate(Date value) {
+ if (value == null)
+ this.date = null;
+ else {
+ if (this.date == null)
+ this.date = new DateTimeType();
+ this.date.setValue(value);
+ }
+ return this;
+ }
+
+ /**
+ * @return {@link #fhirVersion} (The version of the FHIR specification on which this ImplementationGuide is based - this is the formal version of the specification, without the revision number, e.g. [publication].[major].[minor], which is 0.5.0 for this version.). This is the underlying object with id, value and extensions. The accessor "getFhirVersion" gives direct access to the value
+ */
+ public IdType getFhirVersionElement() {
+ if (this.fhirVersion == null)
+ if (Configuration.errorOnAutoCreate())
+ throw new Error("Attempt to auto-create ImplementationGuide.fhirVersion");
+ else if (Configuration.doAutoCreate())
+ this.fhirVersion = new IdType(); // bb
+ return this.fhirVersion;
+ }
+
+ public boolean hasFhirVersionElement() {
+ return this.fhirVersion != null && !this.fhirVersion.isEmpty();
+ }
+
+ public boolean hasFhirVersion() {
+ return this.fhirVersion != null && !this.fhirVersion.isEmpty();
+ }
+
+ /**
+ * @param value {@link #fhirVersion} (The version of the FHIR specification on which this ImplementationGuide is based - this is the formal version of the specification, without the revision number, e.g. [publication].[major].[minor], which is 0.5.0 for this version.). This is the underlying object with id, value and extensions. The accessor "getFhirVersion" gives direct access to the value
+ */
+ public ImplementationGuide setFhirVersionElement(IdType value) {
+ this.fhirVersion = value;
+ return this;
+ }
+
+ /**
+ * @return The version of the FHIR specification on which this ImplementationGuide is based - this is the formal version of the specification, without the revision number, e.g. [publication].[major].[minor], which is 0.5.0 for this version.
+ */
+ public String getFhirVersion() {
+ return this.fhirVersion == null ? null : this.fhirVersion.getValue();
+ }
+
+ /**
+ * @param value The version of the FHIR specification on which this ImplementationGuide is based - this is the formal version of the specification, without the revision number, e.g. [publication].[major].[minor], which is 0.5.0 for this version.
+ */
+ public ImplementationGuide setFhirVersion(String value) {
+ if (Utilities.noString(value))
+ this.fhirVersion = null;
+ else {
+ if (this.fhirVersion == null)
+ this.fhirVersion = new IdType();
+ this.fhirVersion.setValue(value);
+ }
+ return this;
+ }
+
+ /**
+ * @return {@link #page} (An html page that is published with the Implementation Guide.)
+ */
+ public List getPage() {
+ if (this.page == null)
+ this.page = new ArrayList();
+ return this.page;
+ }
+
+ public boolean hasPage() {
+ if (this.page == null)
+ return false;
+ for (ImplementationGuidePageComponent item : this.page)
+ if (!item.isEmpty())
+ return true;
+ return false;
+ }
+
+ /**
+ * @return {@link #page} (An html page that is published with the Implementation Guide.)
+ */
+ // syntactic sugar
+ public ImplementationGuidePageComponent addPage() { //3
+ ImplementationGuidePageComponent t = new ImplementationGuidePageComponent();
+ if (this.page == null)
+ this.page = new ArrayList();
+ this.page.add(t);
+ return t;
+ }
+
+ // syntactic sugar
+ public ImplementationGuide addPage(ImplementationGuidePageComponent t) { //3
+ if (t == null)
+ return this;
+ if (this.page == null)
+ this.page = new ArrayList();
+ this.page.add(t);
+ return this;
+ }
+
+ /**
+ * @return {@link #package_} (A logical set of resources that is a section in the implementation Guide.)
+ */
+ public List getPackage() {
+ if (this.package_ == null)
+ this.package_ = new ArrayList();
+ return this.package_;
+ }
+
+ public boolean hasPackage() {
+ if (this.package_ == null)
+ return false;
+ for (ImplementationGuidePackageComponent item : this.package_)
+ if (!item.isEmpty())
+ return true;
+ return false;
+ }
+
+ /**
+ * @return {@link #package_} (A logical set of resources that is a section in the implementation Guide.)
+ */
+ // syntactic sugar
+ public ImplementationGuidePackageComponent addPackage() { //3
+ ImplementationGuidePackageComponent t = new ImplementationGuidePackageComponent();
+ if (this.package_ == null)
+ this.package_ = new ArrayList();
+ this.package_.add(t);
+ return t;
+ }
+
+ // syntactic sugar
+ public ImplementationGuide addPackage(ImplementationGuidePackageComponent t) { //3
+ if (t == null)
+ return this;
+ if (this.package_ == null)
+ this.package_ = new ArrayList();
+ this.package_.add(t);
+ return this;
+ }
+
+ /**
+ * @return {@link #default_} (A default profile that applies to a particular resource type. Whenever a resource type is referenced in any structure definition (explicitly, or by inheritance from the base specification), and no explicit profile is applied, then this default profile applies.)
+ */
+ public List getDefault() {
+ if (this.default_ == null)
+ this.default_ = new ArrayList();
+ return this.default_;
+ }
+
+ public boolean hasDefault() {
+ if (this.default_ == null)
+ return false;
+ for (ImplementationGuideDefaultComponent item : this.default_)
+ if (!item.isEmpty())
+ return true;
+ return false;
+ }
+
+ /**
+ * @return {@link #default_} (A default profile that applies to a particular resource type. Whenever a resource type is referenced in any structure definition (explicitly, or by inheritance from the base specification), and no explicit profile is applied, then this default profile applies.)
+ */
+ // syntactic sugar
+ public ImplementationGuideDefaultComponent addDefault() { //3
+ ImplementationGuideDefaultComponent t = new ImplementationGuideDefaultComponent();
+ if (this.default_ == null)
+ this.default_ = new ArrayList();
+ this.default_.add(t);
+ return t;
+ }
+
+ // syntactic sugar
+ public ImplementationGuide addDefault(ImplementationGuideDefaultComponent t) { //3
+ if (t == null)
+ return this;
+ if (this.default_ == null)
+ this.default_ = new ArrayList();
+ this.default_.add(t);
+ return this;
+ }
+
+ protected void listChildren(List childrenList) {
+ super.listChildren(childrenList);
+ childrenList.add(new Property("url", "uri", "An absolute URL at which this Implementation Guide is (or will be) published, and which is used to reference this Implementation Guide in conformance statements.", 0, java.lang.Integer.MAX_VALUE, url));
+ childrenList.add(new Property("version", "string", "The identifier that is used to identify this version of the Implementation Guide when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the Implementation Guide author manually.", 0, java.lang.Integer.MAX_VALUE, version));
+ childrenList.add(new Property("name", "string", "A free text natural language name identifying the Implementation Guide.", 0, java.lang.Integer.MAX_VALUE, name));
+ childrenList.add(new Property("useContext", "CodeableConcept", "The content was developed with a focus and intent of supporting the contexts that are listed. These terms may be used to assist with indexing and searching of implementation guides. The most common use of this element is to represent the country / jurisdication for which this implementation guide was defined.", 0, java.lang.Integer.MAX_VALUE, useContext));
+ childrenList.add(new Property("publisher", "string", "The name of the individual or organization that published the implementation guide.", 0, java.lang.Integer.MAX_VALUE, publisher));
+ childrenList.add(new Property("contact", "", "Contacts to assist a user in finding and communicating with the publisher.", 0, java.lang.Integer.MAX_VALUE, contact));
+ childrenList.add(new Property("description", "string", "A free text natural language description of the Implementation Guide and its use.", 0, java.lang.Integer.MAX_VALUE, description));
+ childrenList.add(new Property("copyright", "string", "A copyright statement relating to the implementation guide and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the details of the constraints and mappings.", 0, java.lang.Integer.MAX_VALUE, copyright));
+ childrenList.add(new Property("code", "Coding", "A set of terms from external terminologies that may be used to assist with indexing and searching of templates.", 0, java.lang.Integer.MAX_VALUE, code));
+ childrenList.add(new Property("status", "code", "The status of the Implementation Guide.", 0, java.lang.Integer.MAX_VALUE, status));
+ childrenList.add(new Property("experimental", "boolean", "This Implementation Guide was authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage.", 0, java.lang.Integer.MAX_VALUE, experimental));
+ childrenList.add(new Property("date", "dateTime", "The date that this version of the Implementation Guide was published.", 0, java.lang.Integer.MAX_VALUE, date));
+ childrenList.add(new Property("fhirVersion", "id", "The version of the FHIR specification on which this ImplementationGuide is based - this is the formal version of the specification, without the revision number, e.g. [publication].[major].[minor], which is 0.5.0 for this version.", 0, java.lang.Integer.MAX_VALUE, fhirVersion));
+ childrenList.add(new Property("page", "", "An html page that is published with the Implementation Guide.", 0, java.lang.Integer.MAX_VALUE, page));
+ childrenList.add(new Property("package", "", "A logical set of resources that is a section in the implementation Guide.", 0, java.lang.Integer.MAX_VALUE, package_));
+ childrenList.add(new Property("default", "", "A default profile that applies to a particular resource type. Whenever a resource type is referenced in any structure definition (explicitly, or by inheritance from the base specification), and no explicit profile is applied, then this default profile applies.", 0, java.lang.Integer.MAX_VALUE, default_));
+ }
+
+ public ImplementationGuide copy() {
+ ImplementationGuide dst = new ImplementationGuide();
+ copyValues(dst);
+ dst.url = url == null ? null : url.copy();
+ dst.version = version == null ? null : version.copy();
+ dst.name = name == null ? null : name.copy();
+ if (useContext != null) {
+ dst.useContext = new ArrayList();
+ for (CodeableConcept i : useContext)
+ dst.useContext.add(i.copy());
+ };
+ dst.publisher = publisher == null ? null : publisher.copy();
+ if (contact != null) {
+ dst.contact = new ArrayList();
+ for (ImplementationGuideContactComponent i : contact)
+ dst.contact.add(i.copy());
+ };
+ dst.description = description == null ? null : description.copy();
+ dst.copyright = copyright == null ? null : copyright.copy();
+ if (code != null) {
+ dst.code = new ArrayList();
+ for (Coding i : code)
+ dst.code.add(i.copy());
+ };
+ dst.status = status == null ? null : status.copy();
+ dst.experimental = experimental == null ? null : experimental.copy();
+ dst.date = date == null ? null : date.copy();
+ dst.fhirVersion = fhirVersion == null ? null : fhirVersion.copy();
+ if (page != null) {
+ dst.page = new ArrayList();
+ for (ImplementationGuidePageComponent i : page)
+ dst.page.add(i.copy());
+ };
+ if (package_ != null) {
+ dst.package_ = new ArrayList();
+ for (ImplementationGuidePackageComponent i : package_)
+ dst.package_.add(i.copy());
+ };
+ if (default_ != null) {
+ dst.default_ = new ArrayList();
+ for (ImplementationGuideDefaultComponent i : default_)
+ dst.default_.add(i.copy());
+ };
+ return dst;
+ }
+
+ protected ImplementationGuide typedCopy() {
+ return copy();
+ }
+
+ @Override
+ public boolean equalsDeep(Base other) {
+ if (!super.equalsDeep(other))
+ return false;
+ if (!(other instanceof ImplementationGuide))
+ return false;
+ ImplementationGuide o = (ImplementationGuide) other;
+ return compareDeep(url, o.url, true) && compareDeep(version, o.version, true) && compareDeep(name, o.name, true)
+ && compareDeep(useContext, o.useContext, true) && compareDeep(publisher, o.publisher, true) && compareDeep(contact, o.contact, true)
+ && compareDeep(description, o.description, true) && compareDeep(copyright, o.copyright, true) && compareDeep(code, o.code, true)
+ && compareDeep(status, o.status, true) && compareDeep(experimental, o.experimental, true) && compareDeep(date, o.date, true)
+ && compareDeep(fhirVersion, o.fhirVersion, true) && compareDeep(page, o.page, true) && compareDeep(package_, o.package_, true)
+ && compareDeep(default_, o.default_, true);
+ }
+
+ @Override
+ public boolean equalsShallow(Base other) {
+ if (!super.equalsShallow(other))
+ return false;
+ if (!(other instanceof ImplementationGuide))
+ return false;
+ ImplementationGuide o = (ImplementationGuide) other;
+ return compareValues(url, o.url, true) && compareValues(version, o.version, true) && compareValues(name, o.name, true)
+ && compareValues(publisher, o.publisher, true) && compareValues(description, o.description, true) && compareValues(copyright, o.copyright, true)
+ && compareValues(status, o.status, true) && compareValues(experimental, o.experimental, true) && compareValues(date, o.date, true)
+ && compareValues(fhirVersion, o.fhirVersion, true);
+ }
+
+ public boolean isEmpty() {
+ return super.isEmpty() && (url == null || url.isEmpty()) && (version == null || version.isEmpty())
+ && (name == null || name.isEmpty()) && (useContext == null || useContext.isEmpty()) && (publisher == null || publisher.isEmpty())
+ && (contact == null || contact.isEmpty()) && (description == null || description.isEmpty())
+ && (copyright == null || copyright.isEmpty()) && (code == null || code.isEmpty()) && (status == null || status.isEmpty())
+ && (experimental == null || experimental.isEmpty()) && (date == null || date.isEmpty()) && (fhirVersion == null || fhirVersion.isEmpty())
+ && (page == null || page.isEmpty()) && (package_ == null || package_.isEmpty()) && (default_ == null || default_.isEmpty())
+ ;
+ }
+
+ @Override
+ public ResourceType getResourceType() {
+ return ResourceType.ImplementationGuide;
+ }
+
+ @SearchParamDefinition(name="date", path="ImplementationGuide.date", description="The implementation guide publication date", type="date" )
+ public static final String SP_DATE = "date";
+ @SearchParamDefinition(name="code", path="ImplementationGuide.code", description="A code for the implementation guide", type="token" )
+ public static final String SP_CODE = "code";
+ @SearchParamDefinition(name="name", path="ImplementationGuide.name", description="Name of the implementation guide", type="string" )
+ public static final String SP_NAME = "name";
+ @SearchParamDefinition(name="context", path="ImplementationGuide.useContext", description="A use context assigned to the structure", type="token" )
+ public static final String SP_CONTEXT = "context";
+ @SearchParamDefinition(name="publisher", path="ImplementationGuide.publisher", description="Name of the publisher of the implementation guide", type="string" )
+ public static final String SP_PUBLISHER = "publisher";
+ @SearchParamDefinition(name="description", path="ImplementationGuide.description", description="Text search in the description of the implementation guide", type="string" )
+ public static final String SP_DESCRIPTION = "description";
+ @SearchParamDefinition(name="experimental", path="ImplementationGuide.experimental", description="If for testing purposes, not real usage", type="token" )
+ public static final String SP_EXPERIMENTAL = "experimental";
+ @SearchParamDefinition(name="version", path="ImplementationGuide.version", description="The version identifier of the implementation guide", type="token" )
+ public static final String SP_VERSION = "version";
+ @SearchParamDefinition(name="url", path="ImplementationGuide.url", description="Literal URL used to reference this Implementation Guide", type="uri" )
+ public static final String SP_URL = "url";
+ @SearchParamDefinition(name="status", path="ImplementationGuide.status", description="The current status of the implementation guide", type="token" )
+ public static final String SP_STATUS = "status";
+
+}
+
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/List_.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/List_.java
index aeff9652c93..ae1d9f888eb 100644
--- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/List_.java
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/List_.java
@@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
*/
-// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
+// Generated on Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
import java.util.*;
@@ -84,9 +84,9 @@ public class List_ extends DomainResource {
}
public String getSystem() {
switch (this) {
- case CURRENT: return "http://hl7.org.fhir/list-status";
- case RETIRED: return "http://hl7.org.fhir/list-status";
- case ENTEREDINERROR: return "http://hl7.org.fhir/list-status";
+ case CURRENT: return "http://hl7.org/fhir/list-status";
+ case RETIRED: return "http://hl7.org/fhir/list-status";
+ case ENTEREDINERROR: return "http://hl7.org/fhir/list-status";
default: return "?";
}
}
@@ -142,7 +142,7 @@ public class List_ extends DomainResource {
*/
SNAPSHOT,
/**
- * The list is prepared as a statement of changes that have been made or recommended
+ * A list that indicates where changes have been made or recommended
*/
CHANGES,
/**
@@ -170,9 +170,9 @@ public class List_ extends DomainResource {
}
public String getSystem() {
switch (this) {
- case WORKING: return "http://hl7.org.fhir/list-mode";
- case SNAPSHOT: return "http://hl7.org.fhir/list-mode";
- case CHANGES: return "http://hl7.org.fhir/list-mode";
+ case WORKING: return "http://hl7.org/fhir/list-mode";
+ case SNAPSHOT: return "http://hl7.org/fhir/list-mode";
+ case CHANGES: return "http://hl7.org/fhir/list-mode";
default: return "?";
}
}
@@ -180,7 +180,7 @@ public class List_ extends DomainResource {
switch (this) {
case WORKING: return "This list is the master list, maintained in an ongoing fashion with regular updates as the real world list it is tracking changes";
case SNAPSHOT: return "This list was prepared as a snapshot. It should not be assumed to be current";
- case CHANGES: return "The list is prepared as a statement of changes that have been made or recommended";
+ case CHANGES: return "A list that indicates where changes have been made or recommended";
default: return "?";
}
}
@@ -538,56 +538,68 @@ public class List_ extends DomainResource {
*/
protected Resource sourceTarget;
+ /**
+ * The encounter that is the context in which this list was created.
+ */
+ @Child(name = "encounter", type = {Encounter.class}, order=5, min=0, max=1)
+ @Description(shortDefinition="Context in which list created", formalDefinition="The encounter that is the context in which this list was created." )
+ protected Reference encounter;
+
+ /**
+ * The actual object that is the target of the reference (The encounter that is the context in which this list was created.)
+ */
+ protected Encounter encounterTarget;
+
/**
* Indicates the current state of this list.
*/
- @Child(name = "status", type = {CodeType.class}, order=5, min=1, max=1)
+ @Child(name = "status", type = {CodeType.class}, order=6, min=1, max=1)
@Description(shortDefinition="current | retired | entered-in-error", formalDefinition="Indicates the current state of this list." )
protected Enumeration status;
/**
* The date that the list was prepared.
*/
- @Child(name = "date", type = {DateTimeType.class}, order=6, min=0, max=1)
+ @Child(name = "date", type = {DateTimeType.class}, order=7, min=0, max=1)
@Description(shortDefinition="When the list was prepared", formalDefinition="The date that the list was prepared." )
protected DateTimeType date;
/**
* What order applies to the items in the list.
*/
- @Child(name = "orderedBy", type = {CodeableConcept.class}, order=7, min=0, max=1)
+ @Child(name = "orderedBy", type = {CodeableConcept.class}, order=8, min=0, max=1)
@Description(shortDefinition="What order the list has", formalDefinition="What order applies to the items in the list." )
protected CodeableConcept orderedBy;
/**
* How this list was prepared - whether it is a working list that is suitable for being maintained on an ongoing basis, or if it represents a snapshot of a list of items from another source, or whether it is a prepared list where items may be marked as added, modified or deleted.
*/
- @Child(name = "mode", type = {CodeType.class}, order=8, min=1, max=1)
+ @Child(name = "mode", type = {CodeType.class}, order=9, min=1, max=1)
@Description(shortDefinition="working | snapshot | changes", formalDefinition="How this list was prepared - whether it is a working list that is suitable for being maintained on an ongoing basis, or if it represents a snapshot of a list of items from another source, or whether it is a prepared list where items may be marked as added, modified or deleted." )
protected Enumeration mode;
/**
* Comments that apply to the overall list.
*/
- @Child(name = "note", type = {StringType.class}, order=9, min=0, max=1)
- @Description(shortDefinition="Comments about the note", formalDefinition="Comments that apply to the overall list." )
+ @Child(name = "note", type = {StringType.class}, order=10, min=0, max=1)
+ @Description(shortDefinition="Comments about the list", formalDefinition="Comments that apply to the overall list." )
protected StringType note;
/**
* Entries in this list.
*/
- @Child(name = "entry", type = {}, order=10, min=0, max=Child.MAX_UNLIMITED)
+ @Child(name = "entry", type = {}, order=11, min=0, max=Child.MAX_UNLIMITED)
@Description(shortDefinition="Entries in the list", formalDefinition="Entries in this list." )
protected List entry;
/**
* If the list is empty, why the list is empty.
*/
- @Child(name = "emptyReason", type = {CodeableConcept.class}, order=11, min=0, max=1)
+ @Child(name = "emptyReason", type = {CodeableConcept.class}, order=12, min=0, max=1)
@Description(shortDefinition="Why list is empty", formalDefinition="If the list is empty, why the list is empty." )
protected CodeableConcept emptyReason;
- private static final long serialVersionUID = -558571391L;
+ private static final long serialVersionUID = 1819128642L;
/*
* Constructor
@@ -796,6 +808,50 @@ public class List_ extends DomainResource {
return this;
}
+ /**
+ * @return {@link #encounter} (The encounter that is the context in which this list was created.)
+ */
+ public Reference getEncounter() {
+ if (this.encounter == null)
+ if (Configuration.errorOnAutoCreate())
+ throw new Error("Attempt to auto-create List_.encounter");
+ else if (Configuration.doAutoCreate())
+ this.encounter = new Reference(); // cc
+ return this.encounter;
+ }
+
+ public boolean hasEncounter() {
+ return this.encounter != null && !this.encounter.isEmpty();
+ }
+
+ /**
+ * @param value {@link #encounter} (The encounter that is the context in which this list was created.)
+ */
+ public List_ setEncounter(Reference value) {
+ this.encounter = value;
+ return this;
+ }
+
+ /**
+ * @return {@link #encounter} The actual object that is the target of the reference. The reference library doesn't populate this, but you can use it to hold the resource if you resolve it. (The encounter that is the context in which this list was created.)
+ */
+ public Encounter getEncounterTarget() {
+ if (this.encounterTarget == null)
+ if (Configuration.errorOnAutoCreate())
+ throw new Error("Attempt to auto-create List_.encounter");
+ else if (Configuration.doAutoCreate())
+ this.encounterTarget = new Encounter(); // aa
+ return this.encounterTarget;
+ }
+
+ /**
+ * @param value {@link #encounter} The actual object that is the target of the reference. The reference library doesn't use these, but you can use it to hold the resource if you resolve it. (The encounter that is the context in which this list was created.)
+ */
+ public List_ setEncounterTarget(Encounter value) {
+ this.encounterTarget = value;
+ return this;
+ }
+
/**
* @return {@link #status} (Indicates the current state of this list.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value
*/
@@ -1079,6 +1135,7 @@ public class List_ extends DomainResource {
childrenList.add(new Property("code", "CodeableConcept", "This code defines the purpose of the list - why it was created.", 0, java.lang.Integer.MAX_VALUE, code));
childrenList.add(new Property("subject", "Reference(Patient|Group|Device|Location)", "The common subject (or patient) of the resources that are in the list, if there is one.", 0, java.lang.Integer.MAX_VALUE, subject));
childrenList.add(new Property("source", "Reference(Practitioner|Patient|Device)", "The entity responsible for deciding what the contents of the list were.", 0, java.lang.Integer.MAX_VALUE, source));
+ childrenList.add(new Property("encounter", "Reference(Encounter)", "The encounter that is the context in which this list was created.", 0, java.lang.Integer.MAX_VALUE, encounter));
childrenList.add(new Property("status", "code", "Indicates the current state of this list.", 0, java.lang.Integer.MAX_VALUE, status));
childrenList.add(new Property("date", "dateTime", "The date that the list was prepared.", 0, java.lang.Integer.MAX_VALUE, date));
childrenList.add(new Property("orderedBy", "CodeableConcept", "What order applies to the items in the list.", 0, java.lang.Integer.MAX_VALUE, orderedBy));
@@ -1100,6 +1157,7 @@ public class List_ extends DomainResource {
dst.code = code == null ? null : code.copy();
dst.subject = subject == null ? null : subject.copy();
dst.source = source == null ? null : source.copy();
+ dst.encounter = encounter == null ? null : encounter.copy();
dst.status = status == null ? null : status.copy();
dst.date = date == null ? null : date.copy();
dst.orderedBy = orderedBy == null ? null : orderedBy.copy();
@@ -1126,10 +1184,10 @@ public class List_ extends DomainResource {
return false;
List_ o = (List_) other;
return compareDeep(identifier, o.identifier, true) && compareDeep(title, o.title, true) && compareDeep(code, o.code, true)
- && compareDeep(subject, o.subject, true) && compareDeep(source, o.source, true) && compareDeep(status, o.status, true)
- && compareDeep(date, o.date, true) && compareDeep(orderedBy, o.orderedBy, true) && compareDeep(mode, o.mode, true)
- && compareDeep(note, o.note, true) && compareDeep(entry, o.entry, true) && compareDeep(emptyReason, o.emptyReason, true)
- ;
+ && compareDeep(subject, o.subject, true) && compareDeep(source, o.source, true) && compareDeep(encounter, o.encounter, true)
+ && compareDeep(status, o.status, true) && compareDeep(date, o.date, true) && compareDeep(orderedBy, o.orderedBy, true)
+ && compareDeep(mode, o.mode, true) && compareDeep(note, o.note, true) && compareDeep(entry, o.entry, true)
+ && compareDeep(emptyReason, o.emptyReason, true);
}
@Override
@@ -1146,9 +1204,9 @@ public class List_ extends DomainResource {
public boolean isEmpty() {
return super.isEmpty() && (identifier == null || identifier.isEmpty()) && (title == null || title.isEmpty())
&& (code == null || code.isEmpty()) && (subject == null || subject.isEmpty()) && (source == null || source.isEmpty())
- && (status == null || status.isEmpty()) && (date == null || date.isEmpty()) && (orderedBy == null || orderedBy.isEmpty())
- && (mode == null || mode.isEmpty()) && (note == null || note.isEmpty()) && (entry == null || entry.isEmpty())
- && (emptyReason == null || emptyReason.isEmpty());
+ && (encounter == null || encounter.isEmpty()) && (status == null || status.isEmpty()) && (date == null || date.isEmpty())
+ && (orderedBy == null || orderedBy.isEmpty()) && (mode == null || mode.isEmpty()) && (note == null || note.isEmpty())
+ && (entry == null || entry.isEmpty()) && (emptyReason == null || emptyReason.isEmpty());
}
@Override
@@ -1164,7 +1222,7 @@ public class List_ extends DomainResource {
public static final String SP_EMPTYREASON = "empty-reason";
@SearchParamDefinition(name="code", path="List.code", description="What the purpose of this list is", type="token" )
public static final String SP_CODE = "code";
- @SearchParamDefinition(name="notes", path="List.note", description="Comments about the note", type="string" )
+ @SearchParamDefinition(name="notes", path="List.note", description="Comments about the list", type="string" )
public static final String SP_NOTES = "notes";
@SearchParamDefinition(name="subject", path="List.subject", description="If all resources have the same subject", type="reference" )
public static final String SP_SUBJECT = "subject";
@@ -1172,6 +1230,8 @@ public class List_ extends DomainResource {
public static final String SP_PATIENT = "patient";
@SearchParamDefinition(name="source", path="List.source", description="Who and/or what defined the list contents", type="reference" )
public static final String SP_SOURCE = "source";
+ @SearchParamDefinition(name="encounter", path="List.encounter", description="Context in which list created", type="reference" )
+ public static final String SP_ENCOUNTER = "encounter";
@SearchParamDefinition(name="title", path="List.title", description="Descriptive name for the list", type="string" )
public static final String SP_TITLE = "title";
@SearchParamDefinition(name="status", path="List.status", description="current | retired | entered-in-error", type="token" )
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Location.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Location.java
index 07f7c1217a5..b1eb473dc68 100644
--- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Location.java
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Location.java
@@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
*/
-// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
+// Generated on Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
import java.util.*;
@@ -78,8 +78,8 @@ public class Location extends DomainResource {
}
public String getSystem() {
switch (this) {
- case INSTANCE: return "http://hl7.org.fhir/location-mode";
- case KIND: return "http://hl7.org.fhir/location-mode";
+ case INSTANCE: return "http://hl7.org/fhir/location-mode";
+ case KIND: return "http://hl7.org/fhir/location-mode";
default: return "?";
}
}
@@ -157,9 +157,9 @@ public class Location extends DomainResource {
}
public String getSystem() {
switch (this) {
- case ACTIVE: return "http://hl7.org.fhir/location-status";
- case SUSPENDED: return "http://hl7.org.fhir/location-status";
- case INACTIVE: return "http://hl7.org.fhir/location-status";
+ case ACTIVE: return "http://hl7.org/fhir/location-status";
+ case SUSPENDED: return "http://hl7.org/fhir/location-status";
+ case INACTIVE: return "http://hl7.org/fhir/location-status";
default: return "?";
}
}
@@ -1085,14 +1085,24 @@ public class Location extends DomainResource {
public static final String SP_NEARDISTANCE = "near-distance";
@SearchParamDefinition(name="address", path="Location.address", description="A (part of the) address of the location", type="string" )
public static final String SP_ADDRESS = "address";
+ @SearchParamDefinition(name="address-state", path="Location.address.state", description="A state specified in an address", type="string" )
+ public static final String SP_ADDRESSSTATE = "address-state";
+ @SearchParamDefinition(name="type", path="Location.type", description="A code for the type of location", type="token" )
+ public static final String SP_TYPE = "type";
+ @SearchParamDefinition(name="address-postalcode", path="Location.address.postalCode", description="A postalCode specified in an address", type="string" )
+ public static final String SP_ADDRESSPOSTALCODE = "address-postalcode";
+ @SearchParamDefinition(name="address-country", path="Location.address.country", description="A country specified in an address", type="string" )
+ public static final String SP_ADDRESSCOUNTRY = "address-country";
@SearchParamDefinition(name="organization", path="Location.managingOrganization", description="Searches for locations that are managed by the provided organization", type="reference" )
public static final String SP_ORGANIZATION = "organization";
@SearchParamDefinition(name="name", path="Location.name", description="A (portion of the) name of the location", type="string" )
public static final String SP_NAME = "name";
+ @SearchParamDefinition(name="address-use", path="Location.address.use", description="A use code specified in an address", type="token" )
+ public static final String SP_ADDRESSUSE = "address-use";
@SearchParamDefinition(name="near", path="", description="The coordinates expressed as [lat],[long] (using the WGS84 datum, see notes) to find locations near to (servers may search using a square rather than a circle for efficiency)", type="token" )
public static final String SP_NEAR = "near";
- @SearchParamDefinition(name="type", path="Location.type", description="A code for the type of location", type="token" )
- public static final String SP_TYPE = "type";
+ @SearchParamDefinition(name="address-city", path="Location.address.city", description="A city specified in an address", type="string" )
+ public static final String SP_ADDRESSCITY = "address-city";
@SearchParamDefinition(name="status", path="Location.status", description="Searches for locations with a specific kind of status", type="token" )
public static final String SP_STATUS = "status";
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Media.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Media.java
index d8e328f7405..ffad4600c8c 100644
--- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Media.java
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Media.java
@@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
*/
-// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
+// Generated on Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
import java.util.*;
@@ -84,9 +84,9 @@ public class Media extends DomainResource {
}
public String getSystem() {
switch (this) {
- case PHOTO: return "http://hl7.org.fhir/digital-media-type";
- case VIDEO: return "http://hl7.org.fhir/digital-media-type";
- case AUDIO: return "http://hl7.org.fhir/digital-media-type";
+ case PHOTO: return "http://hl7.org/fhir/digital-media-type";
+ case VIDEO: return "http://hl7.org/fhir/digital-media-type";
+ case AUDIO: return "http://hl7.org/fhir/digital-media-type";
default: return "?";
}
}
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Medication.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Medication.java
index 11e35b2b018..0e3cd69e82f 100644
--- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Medication.java
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Medication.java
@@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
*/
-// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
+// Generated on Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
import java.util.*;
@@ -77,8 +77,8 @@ public class Medication extends DomainResource {
}
public String getSystem() {
switch (this) {
- case PRODUCT: return "http://hl7.org.fhir/medication-kind";
- case PACKAGE: return "http://hl7.org.fhir/medication-kind";
+ case PRODUCT: return "http://hl7.org/fhir/medication-kind";
+ case PACKAGE: return "http://hl7.org/fhir/medication-kind";
default: return "?";
}
}
@@ -945,7 +945,7 @@ public class Medication extends DomainResource {
/**
* Information that only applies to packages (not products).
*/
- @Child(name = "package", type = {}, order=6, min=0, max=1)
+ @Child(name = "package_", type = {}, order=6, min=0, max=1)
@Description(shortDefinition="Details about packaged medications", formalDefinition="Information that only applies to packages (not products)." )
protected MedicationPackageComponent package_;
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/MedicationAdministration.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/MedicationAdministration.java
index 8a8fe1670d0..2b39d1e42d0 100644
--- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/MedicationAdministration.java
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/MedicationAdministration.java
@@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
*/
-// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
+// Generated on Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
import java.util.*;
@@ -98,11 +98,11 @@ public class MedicationAdministration extends DomainResource {
}
public String getSystem() {
switch (this) {
- case INPROGRESS: return "http://hl7.org.fhir/medication-admin-status";
- case ONHOLD: return "http://hl7.org.fhir/medication-admin-status";
- case COMPLETED: return "http://hl7.org.fhir/medication-admin-status";
- case ENTEREDINERROR: return "http://hl7.org.fhir/medication-admin-status";
- case STOPPED: return "http://hl7.org.fhir/medication-admin-status";
+ case INPROGRESS: return "http://hl7.org/fhir/medication-admin-status";
+ case ONHOLD: return "http://hl7.org/fhir/medication-admin-status";
+ case COMPLETED: return "http://hl7.org/fhir/medication-admin-status";
+ case ENTEREDINERROR: return "http://hl7.org/fhir/medication-admin-status";
+ case STOPPED: return "http://hl7.org/fhir/medication-admin-status";
default: return "?";
}
}
@@ -198,10 +198,10 @@ public class MedicationAdministration extends DomainResource {
protected Quantity quantity;
/**
- * Identifies the speed with which the medication was introduced into the patient. Typically the rate for an infusion e.g. 200ml in 2 hours. May also expressed as a rate per unit of time such as 100ml per hour - the duration is then not specified, or is specified in the quantity.
+ * Identifies the speed with which the medication was introduced into the patient. Typically the rate for an infusion e.g. 200ml in 2 hours. May also be expressed as a rate per unit of time such as 100ml per hour - the duration is then not specified, or is specified in the quantity.
*/
@Child(name = "rate", type = {Ratio.class}, order=6, min=0, max=1)
- @Description(shortDefinition="Dose quantity per unit of time", formalDefinition="Identifies the speed with which the medication was introduced into the patient. Typically the rate for an infusion e.g. 200ml in 2 hours. May also expressed as a rate per unit of time such as 100ml per hour - the duration is then not specified, or is specified in the quantity." )
+ @Description(shortDefinition="Dose quantity per unit of time", formalDefinition="Identifies the speed with which the medication was introduced into the patient. Typically the rate for an infusion e.g. 200ml in 2 hours. May also be expressed as a rate per unit of time such as 100ml per hour - the duration is then not specified, or is specified in the quantity." )
protected Ratio rate;
private static final long serialVersionUID = -358534919L;
@@ -359,7 +359,7 @@ public class MedicationAdministration extends DomainResource {
}
/**
- * @return {@link #rate} (Identifies the speed with which the medication was introduced into the patient. Typically the rate for an infusion e.g. 200ml in 2 hours. May also expressed as a rate per unit of time such as 100ml per hour - the duration is then not specified, or is specified in the quantity.)
+ * @return {@link #rate} (Identifies the speed with which the medication was introduced into the patient. Typically the rate for an infusion e.g. 200ml in 2 hours. May also be expressed as a rate per unit of time such as 100ml per hour - the duration is then not specified, or is specified in the quantity.)
*/
public Ratio getRate() {
if (this.rate == null)
@@ -375,7 +375,7 @@ public class MedicationAdministration extends DomainResource {
}
/**
- * @param value {@link #rate} (Identifies the speed with which the medication was introduced into the patient. Typically the rate for an infusion e.g. 200ml in 2 hours. May also expressed as a rate per unit of time such as 100ml per hour - the duration is then not specified, or is specified in the quantity.)
+ * @param value {@link #rate} (Identifies the speed with which the medication was introduced into the patient. Typically the rate for an infusion e.g. 200ml in 2 hours. May also be expressed as a rate per unit of time such as 100ml per hour - the duration is then not specified, or is specified in the quantity.)
*/
public MedicationAdministrationDosageComponent setRate(Ratio value) {
this.rate = value;
@@ -389,7 +389,7 @@ public class MedicationAdministration extends DomainResource {
childrenList.add(new Property("route", "CodeableConcept", "A code specifying the route or physiological path of administration of a therapeutic agent into or onto the patient. E.g. topical, intravenous, etc.", 0, java.lang.Integer.MAX_VALUE, route));
childrenList.add(new Property("method", "CodeableConcept", "A coded value indicating the method by which the medication was introduced into or onto the body. Most commonly used for injections. Examples: Slow Push; Deep IV.\r\rTerminologies used often pre-coordinate this term with the route and or form of administration.", 0, java.lang.Integer.MAX_VALUE, method));
childrenList.add(new Property("quantity", "Quantity", "The amount of the medication given at one administration event. Use this value when the administration is essentially an instantaneous event such as a swallowing a tablet or giving an injection.", 0, java.lang.Integer.MAX_VALUE, quantity));
- childrenList.add(new Property("rate", "Ratio", "Identifies the speed with which the medication was introduced into the patient. Typically the rate for an infusion e.g. 200ml in 2 hours. May also expressed as a rate per unit of time such as 100ml per hour - the duration is then not specified, or is specified in the quantity.", 0, java.lang.Integer.MAX_VALUE, rate));
+ childrenList.add(new Property("rate", "Ratio", "Identifies the speed with which the medication was introduced into the patient. Typically the rate for an infusion e.g. 200ml in 2 hours. May also be expressed as a rate per unit of time such as 100ml per hour - the duration is then not specified, or is specified in the quantity.", 0, java.lang.Integer.MAX_VALUE, rate));
}
public MedicationAdministrationDosageComponent copy() {
@@ -979,6 +979,10 @@ public class MedicationAdministration extends DomainResource {
return (DateTimeType) this.effectiveTime;
}
+ public boolean hasEffectiveTimeDateTimeType() throws Exception {
+ return this.effectiveTime instanceof DateTimeType;
+ }
+
/**
* @return {@link #effectiveTime} (An interval of time during which the administration took place (or did not take place, when the 'notGiven' attribute is true). For many administrations, such as swallowing a tablet the use of dateTime is more appropriate.)
*/
@@ -988,6 +992,10 @@ public class MedicationAdministration extends DomainResource {
return (Period) this.effectiveTime;
}
+ public boolean hasEffectiveTimePeriod() throws Exception {
+ return this.effectiveTime instanceof Period;
+ }
+
public boolean hasEffectiveTime() {
return this.effectiveTime != null && !this.effectiveTime.isEmpty();
}
@@ -1016,6 +1024,10 @@ public class MedicationAdministration extends DomainResource {
return (CodeableConcept) this.medication;
}
+ public boolean hasMedicationCodeableConcept() throws Exception {
+ return this.medication instanceof CodeableConcept;
+ }
+
/**
* @return {@link #medication} (Identifies the medication that was administered. This is either a link to a resource representing the details of the medication or a simple attribute carrying a code that identifies the medication from a known list of medications.)
*/
@@ -1025,6 +1037,10 @@ public class MedicationAdministration extends DomainResource {
return (Reference) this.medication;
}
+ public boolean hasMedicationReference() throws Exception {
+ return this.medication instanceof Reference;
+ }
+
public boolean hasMedication() {
return this.medication != null && !this.medication.isEmpty();
}
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/MedicationDispense.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/MedicationDispense.java
index 75b950345a9..0eb26b97b32 100644
--- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/MedicationDispense.java
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/MedicationDispense.java
@@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
*/
-// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
+// Generated on Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
import java.util.*;
@@ -98,11 +98,11 @@ public class MedicationDispense extends DomainResource {
}
public String getSystem() {
switch (this) {
- case INPROGRESS: return "http://hl7.org.fhir/medication-dispense-status";
- case ONHOLD: return "http://hl7.org.fhir/medication-dispense-status";
- case COMPLETED: return "http://hl7.org.fhir/medication-dispense-status";
- case ENTEREDINERROR: return "http://hl7.org.fhir/medication-dispense-status";
- case STOPPED: return "http://hl7.org.fhir/medication-dispense-status";
+ case INPROGRESS: return "http://hl7.org/fhir/medication-dispense-status";
+ case ONHOLD: return "http://hl7.org/fhir/medication-dispense-status";
+ case COMPLETED: return "http://hl7.org/fhir/medication-dispense-status";
+ case ENTEREDINERROR: return "http://hl7.org/fhir/medication-dispense-status";
+ case STOPPED: return "http://hl7.org/fhir/medication-dispense-status";
default: return "?";
}
}
@@ -330,6 +330,10 @@ public class MedicationDispense extends DomainResource {
return (DateTimeType) this.schedule;
}
+ public boolean hasScheduleDateTimeType() throws Exception {
+ return this.schedule instanceof DateTimeType;
+ }
+
/**
* @return {@link #schedule} (The timing schedule for giving the medication to the patient. The Schedule data type allows many different expressions, for example. "Every 8 hours"; "Three times a day"; "1/2 an hour before breakfast for 10 days from 23-Dec 2011:"; "15 Oct 2013, 17 Oct 2013 and 1 Nov 2013".)
*/
@@ -339,6 +343,10 @@ public class MedicationDispense extends DomainResource {
return (Period) this.schedule;
}
+ public boolean hasSchedulePeriod() throws Exception {
+ return this.schedule instanceof Period;
+ }
+
/**
* @return {@link #schedule} (The timing schedule for giving the medication to the patient. The Schedule data type allows many different expressions, for example. "Every 8 hours"; "Three times a day"; "1/2 an hour before breakfast for 10 days from 23-Dec 2011:"; "15 Oct 2013, 17 Oct 2013 and 1 Nov 2013".)
*/
@@ -348,6 +356,10 @@ public class MedicationDispense extends DomainResource {
return (Timing) this.schedule;
}
+ public boolean hasScheduleTiming() throws Exception {
+ return this.schedule instanceof Timing;
+ }
+
public boolean hasSchedule() {
return this.schedule != null && !this.schedule.isEmpty();
}
@@ -376,6 +388,10 @@ public class MedicationDispense extends DomainResource {
return (BooleanType) this.asNeeded;
}
+ public boolean hasAsNeededBooleanType() throws Exception {
+ return this.asNeeded instanceof BooleanType;
+ }
+
/**
* @return {@link #asNeeded} (If set to true or if specified as a CodeableConcept, indicates that the medication is only taken when needed within the specified schedule rather than at every scheduled dose. If a CodeableConcept is present, it indicates the pre-condition for taking the Medication.)
*/
@@ -385,6 +401,10 @@ public class MedicationDispense extends DomainResource {
return (CodeableConcept) this.asNeeded;
}
+ public boolean hasAsNeededCodeableConcept() throws Exception {
+ return this.asNeeded instanceof CodeableConcept;
+ }
+
public boolean hasAsNeeded() {
return this.asNeeded != null && !this.asNeeded.isEmpty();
}
@@ -485,6 +505,10 @@ public class MedicationDispense extends DomainResource {
return (Range) this.dose;
}
+ public boolean hasDoseRange() throws Exception {
+ return this.dose instanceof Range;
+ }
+
/**
* @return {@link #dose} (The amount of therapeutic or other substance given at one administration event.)
*/
@@ -494,6 +518,10 @@ public class MedicationDispense extends DomainResource {
return (Quantity) this.dose;
}
+ public boolean hasDoseQuantity() throws Exception {
+ return this.dose instanceof Quantity;
+ }
+
public boolean hasDose() {
return this.dose != null && !this.dose.isEmpty();
}
@@ -1303,6 +1331,10 @@ public class MedicationDispense extends DomainResource {
return (CodeableConcept) this.medication;
}
+ public boolean hasMedicationCodeableConcept() throws Exception {
+ return this.medication instanceof CodeableConcept;
+ }
+
/**
* @return {@link #medication} (Identifies the medication being administered. This is either a link to a resource representing the details of the medication or a simple attribute carrying a code that identifies the medication from a known list of medications.)
*/
@@ -1312,6 +1344,10 @@ public class MedicationDispense extends DomainResource {
return (Reference) this.medication;
}
+ public boolean hasMedicationReference() throws Exception {
+ return this.medication instanceof Reference;
+ }
+
public boolean hasMedication() {
return this.medication != null && !this.medication.isEmpty();
}
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/MedicationPrescription.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/MedicationPrescription.java
index ec189142fc1..8acd2c447cc 100644
--- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/MedicationPrescription.java
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/MedicationPrescription.java
@@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
*/
-// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
+// Generated on Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
import java.util.*;
@@ -70,7 +70,7 @@ public class MedicationPrescription extends DomainResource {
/**
* The prescription was replaced by a newer one, which encompasses all the information in the previous one.
*/
- SUPERCEDED,
+ SUPERSEDED,
/**
* The prescription is not yet 'actionable', i.e. it is a work in progress, required sign-off, need to be run through decision support.
*/
@@ -92,8 +92,8 @@ public class MedicationPrescription extends DomainResource {
return ENTEREDINERROR;
if ("stopped".equals(codeString))
return STOPPED;
- if ("superceded".equals(codeString))
- return SUPERCEDED;
+ if ("superseded".equals(codeString))
+ return SUPERSEDED;
if ("draft".equals(codeString))
return DRAFT;
throw new Exception("Unknown MedicationPrescriptionStatus code '"+codeString+"'");
@@ -105,20 +105,20 @@ public class MedicationPrescription extends DomainResource {
case COMPLETED: return "completed";
case ENTEREDINERROR: return "entered-in-error";
case STOPPED: return "stopped";
- case SUPERCEDED: return "superceded";
+ case SUPERSEDED: return "superseded";
case DRAFT: return "draft";
default: return "?";
}
}
public String getSystem() {
switch (this) {
- case ACTIVE: return "http://hl7.org.fhir/medication-prescription-status";
- case ONHOLD: return "http://hl7.org.fhir/medication-prescription-status";
- case COMPLETED: return "http://hl7.org.fhir/medication-prescription-status";
- case ENTEREDINERROR: return "http://hl7.org.fhir/medication-prescription-status";
- case STOPPED: return "http://hl7.org.fhir/medication-prescription-status";
- case SUPERCEDED: return "http://hl7.org.fhir/medication-prescription-status";
- case DRAFT: return "http://hl7.org.fhir/medication-prescription-status";
+ case ACTIVE: return "http://hl7.org/fhir/medication-prescription-status";
+ case ONHOLD: return "http://hl7.org/fhir/medication-prescription-status";
+ case COMPLETED: return "http://hl7.org/fhir/medication-prescription-status";
+ case ENTEREDINERROR: return "http://hl7.org/fhir/medication-prescription-status";
+ case STOPPED: return "http://hl7.org/fhir/medication-prescription-status";
+ case SUPERSEDED: return "http://hl7.org/fhir/medication-prescription-status";
+ case DRAFT: return "http://hl7.org/fhir/medication-prescription-status";
default: return "?";
}
}
@@ -129,7 +129,7 @@ public class MedicationPrescription extends DomainResource {
case COMPLETED: return "All actions that are implied by the prescription have occurred (this will rarely be made explicit).";
case ENTEREDINERROR: return "The prescription was entered in error and therefore nullified.";
case STOPPED: return "Actions implied by the prescription have been permanently halted, before all of them occurred.";
- case SUPERCEDED: return "The prescription was replaced by a newer one, which encompasses all the information in the previous one.";
+ case SUPERSEDED: return "The prescription was replaced by a newer one, which encompasses all the information in the previous one.";
case DRAFT: return "The prescription is not yet 'actionable', i.e. it is a work in progress, required sign-off, need to be run through decision support.";
default: return "?";
}
@@ -141,7 +141,7 @@ public class MedicationPrescription extends DomainResource {
case COMPLETED: return "Completed";
case ENTEREDINERROR: return "Entered In Error";
case STOPPED: return "Stopped";
- case SUPERCEDED: return "Superceded";
+ case SUPERSEDED: return "Superseded";
case DRAFT: return "Draft";
default: return "?";
}
@@ -163,8 +163,8 @@ public class MedicationPrescription extends DomainResource {
return MedicationPrescriptionStatus.ENTEREDINERROR;
if ("stopped".equals(codeString))
return MedicationPrescriptionStatus.STOPPED;
- if ("superceded".equals(codeString))
- return MedicationPrescriptionStatus.SUPERCEDED;
+ if ("superseded".equals(codeString))
+ return MedicationPrescriptionStatus.SUPERSEDED;
if ("draft".equals(codeString))
return MedicationPrescriptionStatus.DRAFT;
throw new IllegalArgumentException("Unknown MedicationPrescriptionStatus code '"+codeString+"'");
@@ -180,8 +180,8 @@ public class MedicationPrescription extends DomainResource {
return "entered-in-error";
if (code == MedicationPrescriptionStatus.STOPPED)
return "stopped";
- if (code == MedicationPrescriptionStatus.SUPERCEDED)
- return "superceded";
+ if (code == MedicationPrescriptionStatus.SUPERSEDED)
+ return "superseded";
if (code == MedicationPrescriptionStatus.DRAFT)
return "draft";
return "?";
@@ -358,6 +358,10 @@ public class MedicationPrescription extends DomainResource {
return (DateTimeType) this.scheduled;
}
+ public boolean hasScheduledDateTimeType() throws Exception {
+ return this.scheduled instanceof DateTimeType;
+ }
+
/**
* @return {@link #scheduled} (The timing schedule for giving the medication to the patient. The Schedule data type allows many different expressions, for example. "Every 8 hours"; "Three times a day"; "1/2 an hour before breakfast for 10 days from 23-Dec 2011:"; "15 Oct 2013, 17 Oct 2013 and 1 Nov 2013".)
*/
@@ -367,6 +371,10 @@ public class MedicationPrescription extends DomainResource {
return (Period) this.scheduled;
}
+ public boolean hasScheduledPeriod() throws Exception {
+ return this.scheduled instanceof Period;
+ }
+
/**
* @return {@link #scheduled} (The timing schedule for giving the medication to the patient. The Schedule data type allows many different expressions, for example. "Every 8 hours"; "Three times a day"; "1/2 an hour before breakfast for 10 days from 23-Dec 2011:"; "15 Oct 2013, 17 Oct 2013 and 1 Nov 2013".)
*/
@@ -376,6 +384,10 @@ public class MedicationPrescription extends DomainResource {
return (Timing) this.scheduled;
}
+ public boolean hasScheduledTiming() throws Exception {
+ return this.scheduled instanceof Timing;
+ }
+
public boolean hasScheduled() {
return this.scheduled != null && !this.scheduled.isEmpty();
}
@@ -404,6 +416,10 @@ public class MedicationPrescription extends DomainResource {
return (BooleanType) this.asNeeded;
}
+ public boolean hasAsNeededBooleanType() throws Exception {
+ return this.asNeeded instanceof BooleanType;
+ }
+
/**
* @return {@link #asNeeded} (If set to true or if specified as a CodeableConcept, indicates that the medication is only taken when needed within the specified schedule rather than at every scheduled dose. If a CodeableConcept is present, it indicates the pre-condition for taking the Medication.)
*/
@@ -413,6 +429,10 @@ public class MedicationPrescription extends DomainResource {
return (CodeableConcept) this.asNeeded;
}
+ public boolean hasAsNeededCodeableConcept() throws Exception {
+ return this.asNeeded instanceof CodeableConcept;
+ }
+
public boolean hasAsNeeded() {
return this.asNeeded != null && !this.asNeeded.isEmpty();
}
@@ -513,6 +533,10 @@ public class MedicationPrescription extends DomainResource {
return (Range) this.dose;
}
+ public boolean hasDoseRange() throws Exception {
+ return this.dose instanceof Range;
+ }
+
/**
* @return {@link #dose} (The amount of therapeutic or other substance given at one administration event.)
*/
@@ -522,6 +546,10 @@ public class MedicationPrescription extends DomainResource {
return (Quantity) this.dose;
}
+ public boolean hasDoseQuantity() throws Exception {
+ return this.dose instanceof Quantity;
+ }
+
public boolean hasDose() {
return this.dose != null && !this.dose.isEmpty();
}
@@ -707,6 +735,10 @@ public class MedicationPrescription extends DomainResource {
return (CodeableConcept) this.medication;
}
+ public boolean hasMedicationCodeableConcept() throws Exception {
+ return this.medication instanceof CodeableConcept;
+ }
+
/**
* @return {@link #medication} (Identifies the medication being administered. This is a link to a resource that represents the medication which may be the details of the medication or simply an attribute carrying a code that identifies the medication from a known list of medications.)
*/
@@ -716,6 +748,10 @@ public class MedicationPrescription extends DomainResource {
return (Reference) this.medication;
}
+ public boolean hasMedicationReference() throws Exception {
+ return this.medication instanceof Reference;
+ }
+
public boolean hasMedication() {
return this.medication != null && !this.medication.isEmpty();
}
@@ -1035,7 +1071,7 @@ public class MedicationPrescription extends DomainResource {
* A code specifying the state of the order. Generally this will be active or completed state.
*/
@Child(name = "status", type = {CodeType.class}, order=2, min=0, max=1)
- @Description(shortDefinition="active | on-hold | completed | entered-in-error | stopped | superceded | draft", formalDefinition="A code specifying the state of the order. Generally this will be active or completed state." )
+ @Description(shortDefinition="active | on-hold | completed | entered-in-error | stopped | superseded | draft", formalDefinition="A code specifying the state of the order. Generally this will be active or completed state." )
protected Enumeration status;
/**
@@ -1419,6 +1455,10 @@ public class MedicationPrescription extends DomainResource {
return (CodeableConcept) this.reason;
}
+ public boolean hasReasonCodeableConcept() throws Exception {
+ return this.reason instanceof CodeableConcept;
+ }
+
/**
* @return {@link #reason} (Can be the reason or the indication for writing the prescription.)
*/
@@ -1428,6 +1468,10 @@ public class MedicationPrescription extends DomainResource {
return (Reference) this.reason;
}
+ public boolean hasReasonReference() throws Exception {
+ return this.reason instanceof Reference;
+ }
+
public boolean hasReason() {
return this.reason != null && !this.reason.isEmpty();
}
@@ -1505,6 +1549,10 @@ public class MedicationPrescription extends DomainResource {
return (CodeableConcept) this.medication;
}
+ public boolean hasMedicationCodeableConcept() throws Exception {
+ return this.medication instanceof CodeableConcept;
+ }
+
/**
* @return {@link #medication} (Identifies the medication being administered. This is a link to a resource that represents the medication which may be the details of the medication or simply an attribute carrying a code that identifies the medication from a known list of medications.)
*/
@@ -1514,6 +1562,10 @@ public class MedicationPrescription extends DomainResource {
return (Reference) this.medication;
}
+ public boolean hasMedicationReference() throws Exception {
+ return this.medication instanceof Reference;
+ }
+
public boolean hasMedication() {
return this.medication != null && !this.medication.isEmpty();
}
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/MedicationStatement.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/MedicationStatement.java
index b93034b9500..b1bbfc75c83 100644
--- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/MedicationStatement.java
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/MedicationStatement.java
@@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
*/
-// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
+// Generated on Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
import java.util.*;
@@ -84,9 +84,9 @@ public class MedicationStatement extends DomainResource {
}
public String getSystem() {
switch (this) {
- case INPROGRESS: return "http://hl7.org.fhir/medication-statement-status";
- case COMPLETED: return "http://hl7.org.fhir/medication-statement-status";
- case ENTEREDINERROR: return "http://hl7.org.fhir/medication-statement-status";
+ case INPROGRESS: return "http://hl7.org/fhir/medication-statement-status";
+ case COMPLETED: return "http://hl7.org/fhir/medication-statement-status";
+ case ENTEREDINERROR: return "http://hl7.org/fhir/medication-statement-status";
default: return "?";
}
}
@@ -295,6 +295,10 @@ public class MedicationStatement extends DomainResource {
return (BooleanType) this.asNeeded;
}
+ public boolean hasAsNeededBooleanType() throws Exception {
+ return this.asNeeded instanceof BooleanType;
+ }
+
/**
* @return {@link #asNeeded} (If set to true or if specified as a CodeableConcept, indicates that the medication is only taken when needed within the specified schedule rather than at every scheduled dose. If a CodeableConcept is present, it indicates the precondition for taking the Medication.)
*/
@@ -304,6 +308,10 @@ public class MedicationStatement extends DomainResource {
return (CodeableConcept) this.asNeeded;
}
+ public boolean hasAsNeededCodeableConcept() throws Exception {
+ return this.asNeeded instanceof CodeableConcept;
+ }
+
public boolean hasAsNeeded() {
return this.asNeeded != null && !this.asNeeded.isEmpty();
}
@@ -950,6 +958,10 @@ public class MedicationStatement extends DomainResource {
return (CodeableConcept) this.reasonForUse;
}
+ public boolean hasReasonForUseCodeableConcept() throws Exception {
+ return this.reasonForUse instanceof CodeableConcept;
+ }
+
/**
* @return {@link #reasonForUse} (A reason for why the medication is being/was taken.)
*/
@@ -959,6 +971,10 @@ public class MedicationStatement extends DomainResource {
return (Reference) this.reasonForUse;
}
+ public boolean hasReasonForUseReference() throws Exception {
+ return this.reasonForUse instanceof Reference;
+ }
+
public boolean hasReasonForUse() {
return this.reasonForUse != null && !this.reasonForUse.isEmpty();
}
@@ -987,6 +1003,10 @@ public class MedicationStatement extends DomainResource {
return (DateTimeType) this.effective;
}
+ public boolean hasEffectiveDateTimeType() throws Exception {
+ return this.effective instanceof DateTimeType;
+ }
+
/**
* @return {@link #effective} (The interval of time during which it is being asserted that the patient was taking the medication (or was not taking, when the 'wasNotGiven' attribute is true).)
*/
@@ -996,6 +1016,10 @@ public class MedicationStatement extends DomainResource {
return (Period) this.effective;
}
+ public boolean hasEffectivePeriod() throws Exception {
+ return this.effective instanceof Period;
+ }
+
public boolean hasEffective() {
return this.effective != null && !this.effective.isEmpty();
}
@@ -1073,6 +1097,10 @@ public class MedicationStatement extends DomainResource {
return (CodeableConcept) this.medication;
}
+ public boolean hasMedicationCodeableConcept() throws Exception {
+ return this.medication instanceof CodeableConcept;
+ }
+
/**
* @return {@link #medication} (Identifies the medication being administered. This is either a link to a resource representing the details of the medication or a simple attribute carrying a code that identifies the medication from a known list of medications.)
*/
@@ -1082,6 +1110,10 @@ public class MedicationStatement extends DomainResource {
return (Reference) this.medication;
}
+ public boolean hasMedicationReference() throws Exception {
+ return this.medication instanceof Reference;
+ }
+
public boolean hasMedication() {
return this.medication != null && !this.medication.isEmpty();
}
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/MessageHeader.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/MessageHeader.java
index be49017cd68..e5d64256275 100644
--- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/MessageHeader.java
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/MessageHeader.java
@@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
*/
-// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
+// Generated on Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
import java.util.*;
@@ -85,9 +85,9 @@ public class MessageHeader extends DomainResource {
}
public String getSystem() {
switch (this) {
- case OK: return "http://hl7.org.fhir/response-code";
- case TRANSIENTERROR: return "http://hl7.org.fhir/response-code";
- case FATALERROR: return "http://hl7.org.fhir/response-code";
+ case OK: return "http://hl7.org/fhir/response-code";
+ case TRANSIENTERROR: return "http://hl7.org/fhir/response-code";
+ case FATALERROR: return "http://hl7.org/fhir/response-code";
default: return "?";
}
}
@@ -919,10 +919,10 @@ public class MessageHeader extends DomainResource {
protected InstantType timestamp;
/**
- * Code that identifies the event this message represents and connects it with its definition. Events defined as part of the FHIR specification have the system value "http://hl7.org/fhir/message-type".
+ * Code that identifies the event this message represents and connects it with its definition. Events defined as part of the FHIR specification have the system value "http://hl7.org/fhir/message-events".
*/
@Child(name = "event", type = {Coding.class}, order=2, min=1, max=1)
- @Description(shortDefinition="Code for the event this message represents", formalDefinition="Code that identifies the event this message represents and connects it with its definition. Events defined as part of the FHIR specification have the system value 'http://hl7.org/fhir/message-type'." )
+ @Description(shortDefinition="Code for the event this message represents", formalDefinition="Code that identifies the event this message represents and connects it with its definition. Events defined as part of the FHIR specification have the system value 'http://hl7.org/fhir/message-events'." )
protected Coding event;
/**
@@ -1124,7 +1124,7 @@ public class MessageHeader extends DomainResource {
}
/**
- * @return {@link #event} (Code that identifies the event this message represents and connects it with its definition. Events defined as part of the FHIR specification have the system value "http://hl7.org/fhir/message-type".)
+ * @return {@link #event} (Code that identifies the event this message represents and connects it with its definition. Events defined as part of the FHIR specification have the system value "http://hl7.org/fhir/message-events".)
*/
public Coding getEvent() {
if (this.event == null)
@@ -1140,7 +1140,7 @@ public class MessageHeader extends DomainResource {
}
/**
- * @param value {@link #event} (Code that identifies the event this message represents and connects it with its definition. Events defined as part of the FHIR specification have the system value "http://hl7.org/fhir/message-type".)
+ * @param value {@link #event} (Code that identifies the event this message represents and connects it with its definition. Events defined as part of the FHIR specification have the system value "http://hl7.org/fhir/message-events".)
*/
public MessageHeader setEvent(Coding value) {
this.event = value;
@@ -1478,7 +1478,7 @@ public class MessageHeader extends DomainResource {
super.listChildren(childrenList);
childrenList.add(new Property("identifier", "id", "The identifier of this message.", 0, java.lang.Integer.MAX_VALUE, identifier));
childrenList.add(new Property("timestamp", "instant", "The time that the message was sent.", 0, java.lang.Integer.MAX_VALUE, timestamp));
- childrenList.add(new Property("event", "Coding", "Code that identifies the event this message represents and connects it with its definition. Events defined as part of the FHIR specification have the system value 'http://hl7.org/fhir/message-type'.", 0, java.lang.Integer.MAX_VALUE, event));
+ childrenList.add(new Property("event", "Coding", "Code that identifies the event this message represents and connects it with its definition. Events defined as part of the FHIR specification have the system value 'http://hl7.org/fhir/message-events'.", 0, java.lang.Integer.MAX_VALUE, event));
childrenList.add(new Property("response", "", "Information about the message that this message is a response to. Only present if this message is a response.", 0, java.lang.Integer.MAX_VALUE, response));
childrenList.add(new Property("source", "", "The source application from which this message originated.", 0, java.lang.Integer.MAX_VALUE, source));
childrenList.add(new Property("destination", "", "The destination application which the message is intended for.", 0, java.lang.Integer.MAX_VALUE, destination));
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Meta.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Meta.java
index 00fe63bafd4..ef5b2041f31 100644
--- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Meta.java
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Meta.java
@@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
*/
-// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
+// Generated on Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
import java.util.*;
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Money.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Money.java
index 93d1c2cfc69..62e3ebdd010 100644
--- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Money.java
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Money.java
@@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
*/
-// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
+// Generated on Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
import org.hl7.fhir.instance.model.annotations.DatatypeDef;
import org.hl7.fhir.instance.model.annotations.Block;
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/NamingSystem.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/NamingSystem.java
index 443938cf355..29155ec1eef 100644
--- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/NamingSystem.java
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/NamingSystem.java
@@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
*/
-// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
+// Generated on Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
import java.util.*;
@@ -85,9 +85,9 @@ public class NamingSystem extends DomainResource {
}
public String getSystem() {
switch (this) {
- case CODESYSTEM: return "http://hl7.org.fhir/namingsystem-type";
- case IDENTIFIER: return "http://hl7.org.fhir/namingsystem-type";
- case ROOT: return "http://hl7.org.fhir/namingsystem-type";
+ case CODESYSTEM: return "http://hl7.org/fhir/namingsystem-type";
+ case IDENTIFIER: return "http://hl7.org/fhir/namingsystem-type";
+ case ROOT: return "http://hl7.org/fhir/namingsystem-type";
default: return "?";
}
}
@@ -178,10 +178,10 @@ public class NamingSystem extends DomainResource {
}
public String getSystem() {
switch (this) {
- case OID: return "http://hl7.org.fhir/namingsystem-identifier-type";
- case UUID: return "http://hl7.org.fhir/namingsystem-identifier-type";
- case URI: return "http://hl7.org.fhir/namingsystem-identifier-type";
- case OTHER: return "http://hl7.org.fhir/namingsystem-identifier-type";
+ case OID: return "http://hl7.org/fhir/namingsystem-identifier-type";
+ case UUID: return "http://hl7.org/fhir/namingsystem-identifier-type";
+ case URI: return "http://hl7.org/fhir/namingsystem-identifier-type";
+ case OTHER: return "http://hl7.org/fhir/namingsystem-identifier-type";
default: return "?";
}
}
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Narrative.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Narrative.java
index 9b4ae45bdd3..f8864485dcb 100644
--- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Narrative.java
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Narrative.java
@@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
*/
-// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
+// Generated on Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
import java.util.*;
import org.hl7.fhir.utilities.xhtml.XhtmlNode;
@@ -91,10 +91,10 @@ public class Narrative extends BaseNarrative implements INarrative {
}
public String getSystem() {
switch (this) {
- case GENERATED: return "http://hl7.org.fhir/narrative-status";
- case EXTENSIONS: return "http://hl7.org.fhir/narrative-status";
- case ADDITIONAL: return "http://hl7.org.fhir/narrative-status";
- case EMPTY: return "http://hl7.org.fhir/narrative-status";
+ case GENERATED: return "http://hl7.org/fhir/narrative-status";
+ case EXTENSIONS: return "http://hl7.org/fhir/narrative-status";
+ case ADDITIONAL: return "http://hl7.org/fhir/narrative-status";
+ case EMPTY: return "http://hl7.org/fhir/narrative-status";
default: return "?";
}
}
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/NutritionOrder.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/NutritionOrder.java
index eba3f504d1f..f46f9816e76 100644
--- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/NutritionOrder.java
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/NutritionOrder.java
@@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
*/
-// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
+// Generated on Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
import java.util.*;
@@ -119,14 +119,14 @@ public class NutritionOrder extends DomainResource {
}
public String getSystem() {
switch (this) {
- case PROPOSED: return "http://hl7.org.fhir/nutrition-order-status";
- case DRAFT: return "http://hl7.org.fhir/nutrition-order-status";
- case PLANNED: return "http://hl7.org.fhir/nutrition-order-status";
- case REQUESTED: return "http://hl7.org.fhir/nutrition-order-status";
- case ACTIVE: return "http://hl7.org.fhir/nutrition-order-status";
- case ONHOLD: return "http://hl7.org.fhir/nutrition-order-status";
- case COMPLETED: return "http://hl7.org.fhir/nutrition-order-status";
- case CANCELLED: return "http://hl7.org.fhir/nutrition-order-status";
+ case PROPOSED: return "http://hl7.org/fhir/nutrition-order-status";
+ case DRAFT: return "http://hl7.org/fhir/nutrition-order-status";
+ case PLANNED: return "http://hl7.org/fhir/nutrition-order-status";
+ case REQUESTED: return "http://hl7.org/fhir/nutrition-order-status";
+ case ACTIVE: return "http://hl7.org/fhir/nutrition-order-status";
+ case ONHOLD: return "http://hl7.org/fhir/nutrition-order-status";
+ case COMPLETED: return "http://hl7.org/fhir/nutrition-order-status";
+ case CANCELLED: return "http://hl7.org/fhir/nutrition-order-status";
default: return "?";
}
}
@@ -1634,6 +1634,10 @@ public class NutritionOrder extends DomainResource {
return (Quantity) this.rate;
}
+ public boolean hasRateQuantity() throws Exception {
+ return this.rate instanceof Quantity;
+ }
+
/**
* @return {@link #rate} (The rate of administration of formula via a feeding pump, e.g., 60 mL per hour, according to the specified schedule.)
*/
@@ -1643,6 +1647,10 @@ public class NutritionOrder extends DomainResource {
return (Ratio) this.rate;
}
+ public boolean hasRateRatio() throws Exception {
+ return this.rate instanceof Ratio;
+ }
+
public boolean hasRate() {
return this.rate != null && !this.rate.isEmpty();
}
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Observation.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Observation.java
index 47985a15cd7..8a294938773 100644
--- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Observation.java
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Observation.java
@@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
*/
-// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
+// Generated on Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
import java.util.*;
@@ -112,13 +112,13 @@ public class Observation extends DomainResource {
}
public String getSystem() {
switch (this) {
- case REGISTERED: return "http://hl7.org.fhir/observation-status";
- case PRELIMINARY: return "http://hl7.org.fhir/observation-status";
- case FINAL: return "http://hl7.org.fhir/observation-status";
- case AMENDED: return "http://hl7.org.fhir/observation-status";
- case CANCELLED: return "http://hl7.org.fhir/observation-status";
- case ENTEREDINERROR: return "http://hl7.org.fhir/observation-status";
- case UNKNOWN: return "http://hl7.org.fhir/observation-status";
+ case REGISTERED: return "http://hl7.org/fhir/observation-status";
+ case PRELIMINARY: return "http://hl7.org/fhir/observation-status";
+ case FINAL: return "http://hl7.org/fhir/observation-status";
+ case AMENDED: return "http://hl7.org/fhir/observation-status";
+ case CANCELLED: return "http://hl7.org/fhir/observation-status";
+ case ENTEREDINERROR: return "http://hl7.org/fhir/observation-status";
+ case UNKNOWN: return "http://hl7.org/fhir/observation-status";
default: return "?";
}
}
@@ -254,13 +254,13 @@ public class Observation extends DomainResource {
}
public String getSystem() {
switch (this) {
- case OK: return "http://hl7.org.fhir/observation-reliability";
- case ONGOING: return "http://hl7.org.fhir/observation-reliability";
- case EARLY: return "http://hl7.org.fhir/observation-reliability";
- case QUESTIONABLE: return "http://hl7.org.fhir/observation-reliability";
- case CALIBRATING: return "http://hl7.org.fhir/observation-reliability";
- case ERROR: return "http://hl7.org.fhir/observation-reliability";
- case UNKNOWN: return "http://hl7.org.fhir/observation-reliability";
+ case OK: return "http://hl7.org/fhir/observation-reliability";
+ case ONGOING: return "http://hl7.org/fhir/observation-reliability";
+ case EARLY: return "http://hl7.org/fhir/observation-reliability";
+ case QUESTIONABLE: return "http://hl7.org/fhir/observation-reliability";
+ case CALIBRATING: return "http://hl7.org/fhir/observation-reliability";
+ case ERROR: return "http://hl7.org/fhir/observation-reliability";
+ case UNKNOWN: return "http://hl7.org/fhir/observation-reliability";
default: return "?";
}
}
@@ -335,6 +335,10 @@ public class Observation extends DomainResource {
* This observation is a group observation (e.g. a battery, a panel of tests, a set of vital sign measurements) that includes the target as a member of the group
*/
HASMEMBER,
+ /**
+ * The target resource (Observation or QuestionnaireAnswer) is part of the information from which this observation value is derived. (e.g. calculated anion gap, Apgar score) NOTE: "derived-from" is only logical choice when referencing QuestionnaireAnswer
+ */
+ DERIVEDFROM,
/**
* This observation follows the target observation (e.g. timed tests such as Glucose Tolerance Test)
*/
@@ -360,6 +364,8 @@ public class Observation extends DomainResource {
return null;
if ("has-member".equals(codeString))
return HASMEMBER;
+ if ("derived-from".equals(codeString))
+ return DERIVEDFROM;
if ("sequel-to".equals(codeString))
return SEQUELTO;
if ("replaces".equals(codeString))
@@ -373,6 +379,7 @@ public class Observation extends DomainResource {
public String toCode() {
switch (this) {
case HASMEMBER: return "has-member";
+ case DERIVEDFROM: return "derived-from";
case SEQUELTO: return "sequel-to";
case REPLACES: return "replaces";
case QUALIFIEDBY: return "qualified-by";
@@ -382,17 +389,19 @@ public class Observation extends DomainResource {
}
public String getSystem() {
switch (this) {
- case HASMEMBER: return "http://hl7.org.fhir/observation-relationshiptypes";
- case SEQUELTO: return "http://hl7.org.fhir/observation-relationshiptypes";
- case REPLACES: return "http://hl7.org.fhir/observation-relationshiptypes";
- case QUALIFIEDBY: return "http://hl7.org.fhir/observation-relationshiptypes";
- case INTERFEREDBY: return "http://hl7.org.fhir/observation-relationshiptypes";
+ case HASMEMBER: return "http://hl7.org/fhir/observation-relationshiptypes";
+ case DERIVEDFROM: return "http://hl7.org/fhir/observation-relationshiptypes";
+ case SEQUELTO: return "http://hl7.org/fhir/observation-relationshiptypes";
+ case REPLACES: return "http://hl7.org/fhir/observation-relationshiptypes";
+ case QUALIFIEDBY: return "http://hl7.org/fhir/observation-relationshiptypes";
+ case INTERFEREDBY: return "http://hl7.org/fhir/observation-relationshiptypes";
default: return "?";
}
}
public String getDefinition() {
switch (this) {
case HASMEMBER: return "This observation is a group observation (e.g. a battery, a panel of tests, a set of vital sign measurements) that includes the target as a member of the group";
+ case DERIVEDFROM: return "The target resource (Observation or QuestionnaireAnswer) is part of the information from which this observation value is derived. (e.g. calculated anion gap, Apgar score) NOTE: 'derived-from' is only logical choice when referencing QuestionnaireAnswer";
case SEQUELTO: return "This observation follows the target observation (e.g. timed tests such as Glucose Tolerance Test)";
case REPLACES: return "This observation replaces a previous observation (i.e. a revised value). The target observation is now obsolete";
case QUALIFIEDBY: return "The value of the target observation qualifies (refines) the semantics of the source observation (e.g. a lipaemia measure target from a plasma measure)";
@@ -403,6 +412,7 @@ public class Observation extends DomainResource {
public String getDisplay() {
switch (this) {
case HASMEMBER: return "Has Member";
+ case DERIVEDFROM: return "Derived From";
case SEQUELTO: return "Sequel To";
case REPLACES: return "Replaces";
case QUALIFIEDBY: return "Qualified By";
@@ -419,6 +429,8 @@ public class Observation extends DomainResource {
return null;
if ("has-member".equals(codeString))
return ObservationRelationshipType.HASMEMBER;
+ if ("derived-from".equals(codeString))
+ return ObservationRelationshipType.DERIVEDFROM;
if ("sequel-to".equals(codeString))
return ObservationRelationshipType.SEQUELTO;
if ("replaces".equals(codeString))
@@ -432,6 +444,8 @@ public class Observation extends DomainResource {
public String toCode(ObservationRelationshipType code) {
if (code == ObservationRelationshipType.HASMEMBER)
return "has-member";
+ if (code == ObservationRelationshipType.DERIVEDFROM)
+ return "derived-from";
if (code == ObservationRelationshipType.SEQUELTO)
return "sequel-to";
if (code == ObservationRelationshipType.REPLACES)
@@ -687,25 +701,25 @@ public class Observation extends DomainResource {
@Block()
public static class ObservationRelatedComponent extends BackboneElement implements IBaseBackboneElement {
/**
- * A code specifying the kind of relationship that exists with the target observation.
+ * A code specifying the kind of relationship that exists with the target resource.
*/
@Child(name = "type", type = {CodeType.class}, order=1, min=0, max=1)
- @Description(shortDefinition="has-member | sequel-to | replaces | qualified-by | interfered-by", formalDefinition="A code specifying the kind of relationship that exists with the target observation." )
+ @Description(shortDefinition="has-member | derived-from | sequel-to | replaces | qualified-by | interfered-by", formalDefinition="A code specifying the kind of relationship that exists with the target resource." )
protected Enumeration type;
/**
- * A reference to the observation that is related to this observation.
+ * A reference to the observation or questionnaireanswer that is related to this observation.
*/
- @Child(name = "target", type = {Observation.class}, order=2, min=1, max=1)
- @Description(shortDefinition="Observation that is related to this one", formalDefinition="A reference to the observation that is related to this observation." )
+ @Child(name = "target", type = {Observation.class, QuestionnaireAnswers.class}, order=2, min=1, max=1)
+ @Description(shortDefinition="Resource that is related to this one", formalDefinition="A reference to the observation or questionnaireanswer that is related to this observation." )
protected Reference target;
/**
- * The actual object that is the target of the reference (A reference to the observation that is related to this observation.)
+ * The actual object that is the target of the reference (A reference to the observation or questionnaireanswer that is related to this observation.)
*/
- protected Observation targetTarget;
+ protected Resource targetTarget;
- private static final long serialVersionUID = 1755337013L;
+ private static final long serialVersionUID = 1541802577L;
/*
* Constructor
@@ -723,7 +737,7 @@ public class Observation extends DomainResource {
}
/**
- * @return {@link #type} (A code specifying the kind of relationship that exists with the target observation.). This is the underlying object with id, value and extensions. The accessor "getType" gives direct access to the value
+ * @return {@link #type} (A code specifying the kind of relationship that exists with the target resource.). This is the underlying object with id, value and extensions. The accessor "getType" gives direct access to the value
*/
public Enumeration getTypeElement() {
if (this.type == null)
@@ -743,7 +757,7 @@ public class Observation extends DomainResource {
}
/**
- * @param value {@link #type} (A code specifying the kind of relationship that exists with the target observation.). This is the underlying object with id, value and extensions. The accessor "getType" gives direct access to the value
+ * @param value {@link #type} (A code specifying the kind of relationship that exists with the target resource.). This is the underlying object with id, value and extensions. The accessor "getType" gives direct access to the value
*/
public ObservationRelatedComponent setTypeElement(Enumeration value) {
this.type = value;
@@ -751,14 +765,14 @@ public class Observation extends DomainResource {
}
/**
- * @return A code specifying the kind of relationship that exists with the target observation.
+ * @return A code specifying the kind of relationship that exists with the target resource.
*/
public ObservationRelationshipType getType() {
return this.type == null ? null : this.type.getValue();
}
/**
- * @param value A code specifying the kind of relationship that exists with the target observation.
+ * @param value A code specifying the kind of relationship that exists with the target resource.
*/
public ObservationRelatedComponent setType(ObservationRelationshipType value) {
if (value == null)
@@ -772,7 +786,7 @@ public class Observation extends DomainResource {
}
/**
- * @return {@link #target} (A reference to the observation that is related to this observation.)
+ * @return {@link #target} (A reference to the observation or questionnaireanswer that is related to this observation.)
*/
public Reference getTarget() {
if (this.target == null)
@@ -788,7 +802,7 @@ public class Observation extends DomainResource {
}
/**
- * @param value {@link #target} (A reference to the observation that is related to this observation.)
+ * @param value {@link #target} (A reference to the observation or questionnaireanswer that is related to this observation.)
*/
public ObservationRelatedComponent setTarget(Reference value) {
this.target = value;
@@ -796,29 +810,24 @@ public class Observation extends DomainResource {
}
/**
- * @return {@link #target} The actual object that is the target of the reference. The reference library doesn't populate this, but you can use it to hold the resource if you resolve it. (A reference to the observation that is related to this observation.)
+ * @return {@link #target} The actual object that is the target of the reference. The reference library doesn't populate this, but you can use it to hold the resource if you resolve it. (A reference to the observation or questionnaireanswer that is related to this observation.)
*/
- public Observation getTargetTarget() {
- if (this.targetTarget == null)
- if (Configuration.errorOnAutoCreate())
- throw new Error("Attempt to auto-create ObservationRelatedComponent.target");
- else if (Configuration.doAutoCreate())
- this.targetTarget = new Observation(); // aa
+ public Resource getTargetTarget() {
return this.targetTarget;
}
/**
- * @param value {@link #target} The actual object that is the target of the reference. The reference library doesn't use these, but you can use it to hold the resource if you resolve it. (A reference to the observation that is related to this observation.)
+ * @param value {@link #target} The actual object that is the target of the reference. The reference library doesn't use these, but you can use it to hold the resource if you resolve it. (A reference to the observation or questionnaireanswer that is related to this observation.)
*/
- public ObservationRelatedComponent setTargetTarget(Observation value) {
+ public ObservationRelatedComponent setTargetTarget(Resource value) {
this.targetTarget = value;
return this;
}
protected void listChildren(List childrenList) {
super.listChildren(childrenList);
- childrenList.add(new Property("type", "code", "A code specifying the kind of relationship that exists with the target observation.", 0, java.lang.Integer.MAX_VALUE, type));
- childrenList.add(new Property("target", "Reference(Observation)", "A reference to the observation that is related to this observation.", 0, java.lang.Integer.MAX_VALUE, target));
+ childrenList.add(new Property("type", "code", "A code specifying the kind of relationship that exists with the target resource.", 0, java.lang.Integer.MAX_VALUE, type));
+ childrenList.add(new Property("target", "Reference(Observation|QuestionnaireAnswers)", "A reference to the observation or questionnaireanswer that is related to this observation.", 0, java.lang.Integer.MAX_VALUE, target));
}
public ObservationRelatedComponent copy() {
@@ -943,6 +952,10 @@ public class Observation extends DomainResource {
return (Quantity) this.value;
}
+ public boolean hasValueQuantity() throws Exception {
+ return this.value instanceof Quantity;
+ }
+
/**
* @return {@link #value} (The information determined as a result of making the observation, if the information has a simple value.)
*/
@@ -952,6 +965,10 @@ public class Observation extends DomainResource {
return (CodeableConcept) this.value;
}
+ public boolean hasValueCodeableConcept() throws Exception {
+ return this.value instanceof CodeableConcept;
+ }
+
/**
* @return {@link #value} (The information determined as a result of making the observation, if the information has a simple value.)
*/
@@ -961,6 +978,10 @@ public class Observation extends DomainResource {
return (StringType) this.value;
}
+ public boolean hasValueStringType() throws Exception {
+ return this.value instanceof StringType;
+ }
+
/**
* @return {@link #value} (The information determined as a result of making the observation, if the information has a simple value.)
*/
@@ -970,6 +991,10 @@ public class Observation extends DomainResource {
return (Range) this.value;
}
+ public boolean hasValueRange() throws Exception {
+ return this.value instanceof Range;
+ }
+
/**
* @return {@link #value} (The information determined as a result of making the observation, if the information has a simple value.)
*/
@@ -979,6 +1004,10 @@ public class Observation extends DomainResource {
return (Ratio) this.value;
}
+ public boolean hasValueRatio() throws Exception {
+ return this.value instanceof Ratio;
+ }
+
/**
* @return {@link #value} (The information determined as a result of making the observation, if the information has a simple value.)
*/
@@ -988,6 +1017,10 @@ public class Observation extends DomainResource {
return (SampledData) this.value;
}
+ public boolean hasValueSampledData() throws Exception {
+ return this.value instanceof SampledData;
+ }
+
/**
* @return {@link #value} (The information determined as a result of making the observation, if the information has a simple value.)
*/
@@ -997,6 +1030,10 @@ public class Observation extends DomainResource {
return (Attachment) this.value;
}
+ public boolean hasValueAttachment() throws Exception {
+ return this.value instanceof Attachment;
+ }
+
/**
* @return {@link #value} (The information determined as a result of making the observation, if the information has a simple value.)
*/
@@ -1006,6 +1043,10 @@ public class Observation extends DomainResource {
return (TimeType) this.value;
}
+ public boolean hasValueTimeType() throws Exception {
+ return this.value instanceof TimeType;
+ }
+
/**
* @return {@link #value} (The information determined as a result of making the observation, if the information has a simple value.)
*/
@@ -1015,6 +1056,10 @@ public class Observation extends DomainResource {
return (DateTimeType) this.value;
}
+ public boolean hasValueDateTimeType() throws Exception {
+ return this.value instanceof DateTimeType;
+ }
+
/**
* @return {@link #value} (The information determined as a result of making the observation, if the information has a simple value.)
*/
@@ -1024,6 +1069,10 @@ public class Observation extends DomainResource {
return (Period) this.value;
}
+ public boolean hasValuePeriod() throws Exception {
+ return this.value instanceof Period;
+ }
+
public boolean hasValue() {
return this.value != null && !this.value.isEmpty();
}
@@ -1312,32 +1361,20 @@ other observer (for example a relative or EMT), or any observation made about th
protected List referenceRange;
/**
- * A reference to a resource from which this observation value is derived. For example an Observation resource for a calculated anion gap or Apgar score Observation or a QuestionnaireAnswer resource for an Assessment Tool Observation.( 5/18/2015 EH: TODO need to get a specific example /use cases for example using something other than Observtion).
+ * A reference to another resource ( usally another Observation but could also be a QuestionnaireAnswer) whose relationship is defined by the relationship type code.
*/
- @Child(name = "derivedFrom", type = {AllergyIntolerance.class, Condition.class, FamilyMemberHistory.class, ImagingStudy.class, Immunization.class, MedicationStatement.class, Procedure.class, QuestionnaireAnswers.class, Observation.class}, order=19, min=0, max=Child.MAX_UNLIMITED)
- @Description(shortDefinition="The resource from which an observation is derived", formalDefinition="A reference to a resource from which this observation value is derived. For example an Observation resource for a calculated anion gap or Apgar score Observation or a QuestionnaireAnswer resource for an Assessment Tool Observation.( 5/18/2015 EH: TODO need to get a specific example /use cases for example using something other than Observtion)." )
- protected List derivedFrom;
- /**
- * The actual objects that are the target of the reference (A reference to a resource from which this observation value is derived. For example an Observation resource for a calculated anion gap or Apgar score Observation or a QuestionnaireAnswer resource for an Assessment Tool Observation.( 5/18/2015 EH: TODO need to get a specific example /use cases for example using something other than Observtion).)
- */
- protected List derivedFromTarget;
-
-
- /**
- * A reference to another observations whose relationship is defined by the relationship type code.
- */
- @Child(name = "related", type = {}, order=20, min=0, max=Child.MAX_UNLIMITED)
- @Description(shortDefinition="Observations related to this observation", formalDefinition="A reference to another observations whose relationship is defined by the relationship type code." )
+ @Child(name = "related", type = {}, order=19, min=0, max=Child.MAX_UNLIMITED)
+ @Description(shortDefinition="Resource related to this observation", formalDefinition="A reference to another resource ( usally another Observation but could also be a QuestionnaireAnswer) whose relationship is defined by the relationship type code." )
protected List related;
/**
* Some observations have multiple component observations. These component observations are expressed as separate code value pairs that share the same attributes. Examples include systolic and diastolic component observations for blood pressure measurement and multiple component observations for for genetics observations.
*/
- @Child(name = "component", type = {}, order=21, min=0, max=Child.MAX_UNLIMITED)
+ @Child(name = "component", type = {}, order=20, min=0, max=Child.MAX_UNLIMITED)
@Description(shortDefinition="Component results", formalDefinition="Some observations have multiple component observations. These component observations are expressed as separate code value pairs that share the same attributes. Examples include systolic and diastolic component observations for blood pressure measurement and multiple component observations for for genetics observations." )
protected List component;
- private static final long serialVersionUID = -1977481392L;
+ private static final long serialVersionUID = -83023434L;
/*
* Constructor
@@ -1419,6 +1456,10 @@ other observer (for example a relative or EMT), or any observation made about th
return (Quantity) this.value;
}
+ public boolean hasValueQuantity() throws Exception {
+ return this.value instanceof Quantity;
+ }
+
/**
* @return {@link #value} (The information determined as a result of making the observation, if the information has a simple value.)
*/
@@ -1428,6 +1469,10 @@ other observer (for example a relative or EMT), or any observation made about th
return (CodeableConcept) this.value;
}
+ public boolean hasValueCodeableConcept() throws Exception {
+ return this.value instanceof CodeableConcept;
+ }
+
/**
* @return {@link #value} (The information determined as a result of making the observation, if the information has a simple value.)
*/
@@ -1437,6 +1482,10 @@ other observer (for example a relative or EMT), or any observation made about th
return (StringType) this.value;
}
+ public boolean hasValueStringType() throws Exception {
+ return this.value instanceof StringType;
+ }
+
/**
* @return {@link #value} (The information determined as a result of making the observation, if the information has a simple value.)
*/
@@ -1446,6 +1495,10 @@ other observer (for example a relative or EMT), or any observation made about th
return (Range) this.value;
}
+ public boolean hasValueRange() throws Exception {
+ return this.value instanceof Range;
+ }
+
/**
* @return {@link #value} (The information determined as a result of making the observation, if the information has a simple value.)
*/
@@ -1455,6 +1508,10 @@ other observer (for example a relative or EMT), or any observation made about th
return (Ratio) this.value;
}
+ public boolean hasValueRatio() throws Exception {
+ return this.value instanceof Ratio;
+ }
+
/**
* @return {@link #value} (The information determined as a result of making the observation, if the information has a simple value.)
*/
@@ -1464,6 +1521,10 @@ other observer (for example a relative or EMT), or any observation made about th
return (SampledData) this.value;
}
+ public boolean hasValueSampledData() throws Exception {
+ return this.value instanceof SampledData;
+ }
+
/**
* @return {@link #value} (The information determined as a result of making the observation, if the information has a simple value.)
*/
@@ -1473,6 +1534,10 @@ other observer (for example a relative or EMT), or any observation made about th
return (Attachment) this.value;
}
+ public boolean hasValueAttachment() throws Exception {
+ return this.value instanceof Attachment;
+ }
+
/**
* @return {@link #value} (The information determined as a result of making the observation, if the information has a simple value.)
*/
@@ -1482,6 +1547,10 @@ other observer (for example a relative or EMT), or any observation made about th
return (TimeType) this.value;
}
+ public boolean hasValueTimeType() throws Exception {
+ return this.value instanceof TimeType;
+ }
+
/**
* @return {@link #value} (The information determined as a result of making the observation, if the information has a simple value.)
*/
@@ -1491,6 +1560,10 @@ other observer (for example a relative or EMT), or any observation made about th
return (DateTimeType) this.value;
}
+ public boolean hasValueDateTimeType() throws Exception {
+ return this.value instanceof DateTimeType;
+ }
+
/**
* @return {@link #value} (The information determined as a result of making the observation, if the information has a simple value.)
*/
@@ -1500,6 +1573,10 @@ other observer (for example a relative or EMT), or any observation made about th
return (Period) this.value;
}
+ public boolean hasValuePeriod() throws Exception {
+ return this.value instanceof Period;
+ }
+
public boolean hasValue() {
return this.value != null && !this.value.isEmpty();
}
@@ -1625,6 +1702,10 @@ other observer (for example a relative or EMT), or any observation made about th
return (DateTimeType) this.effective;
}
+ public boolean hasEffectiveDateTimeType() throws Exception {
+ return this.effective instanceof DateTimeType;
+ }
+
/**
* @return {@link #effective} (The time or time-period the observed value is asserted as being true. For biological subjects - e.g. human patients - this is usually called the "physiologically relevant time". This is usually either the time of the procedure or of specimen collection, but very often the source of the date/time is not known, only the date/time itself.)
*/
@@ -1634,6 +1715,10 @@ other observer (for example a relative or EMT), or any observation made about th
return (Period) this.effective;
}
+ public boolean hasEffectivePeriod() throws Exception {
+ return this.effective instanceof Period;
+ }
+
public boolean hasEffective() {
return this.effective != null && !this.effective.isEmpty();
}
@@ -1805,6 +1890,10 @@ other observer (for example a relative or EMT), or any observation made about th
return (CodeableConcept) this.bodySite;
}
+ public boolean hasBodySiteCodeableConcept() throws Exception {
+ return this.bodySite instanceof CodeableConcept;
+ }
+
/**
* @return {@link #bodySite} (Indicates the site on the subject's body where the observation was made ( i.e. the target site).)
*/
@@ -1814,6 +1903,10 @@ other observer (for example a relative or EMT), or any observation made about th
return (Reference) this.bodySite;
}
+ public boolean hasBodySiteReference() throws Exception {
+ return this.bodySite instanceof Reference;
+ }
+
public boolean hasBodySite() {
return this.bodySite != null && !this.bodySite.isEmpty();
}
@@ -2150,56 +2243,7 @@ other observer (for example a relative or EMT), or any observation made about th
}
/**
- * @return {@link #derivedFrom} (A reference to a resource from which this observation value is derived. For example an Observation resource for a calculated anion gap or Apgar score Observation or a QuestionnaireAnswer resource for an Assessment Tool Observation.( 5/18/2015 EH: TODO need to get a specific example /use cases for example using something other than Observtion).)
- */
- public List getDerivedFrom() {
- if (this.derivedFrom == null)
- this.derivedFrom = new ArrayList();
- return this.derivedFrom;
- }
-
- public boolean hasDerivedFrom() {
- if (this.derivedFrom == null)
- return false;
- for (Reference item : this.derivedFrom)
- if (!item.isEmpty())
- return true;
- return false;
- }
-
- /**
- * @return {@link #derivedFrom} (A reference to a resource from which this observation value is derived. For example an Observation resource for a calculated anion gap or Apgar score Observation or a QuestionnaireAnswer resource for an Assessment Tool Observation.( 5/18/2015 EH: TODO need to get a specific example /use cases for example using something other than Observtion).)
- */
- // syntactic sugar
- public Reference addDerivedFrom() { //3
- Reference t = new Reference();
- if (this.derivedFrom == null)
- this.derivedFrom = new ArrayList();
- this.derivedFrom.add(t);
- return t;
- }
-
- // syntactic sugar
- public Observation addDerivedFrom(Reference t) { //3
- if (t == null)
- return this;
- if (this.derivedFrom == null)
- this.derivedFrom = new ArrayList();
- this.derivedFrom.add(t);
- return this;
- }
-
- /**
- * @return {@link #derivedFrom} (The actual objects that are the target of the reference. The reference library doesn't populate this, but you can use this to hold the resources if you resolvethemt. A reference to a resource from which this observation value is derived. For example an Observation resource for a calculated anion gap or Apgar score Observation or a QuestionnaireAnswer resource for an Assessment Tool Observation.( 5/18/2015 EH: TODO need to get a specific example /use cases for example using something other than Observtion).)
- */
- public List getDerivedFromTarget() {
- if (this.derivedFromTarget == null)
- this.derivedFromTarget = new ArrayList();
- return this.derivedFromTarget;
- }
-
- /**
- * @return {@link #related} (A reference to another observations whose relationship is defined by the relationship type code.)
+ * @return {@link #related} (A reference to another resource ( usally another Observation but could also be a QuestionnaireAnswer) whose relationship is defined by the relationship type code.)
*/
public List getRelated() {
if (this.related == null)
@@ -2217,7 +2261,7 @@ other observer (for example a relative or EMT), or any observation made about th
}
/**
- * @return {@link #related} (A reference to another observations whose relationship is defined by the relationship type code.)
+ * @return {@link #related} (A reference to another resource ( usally another Observation but could also be a QuestionnaireAnswer) whose relationship is defined by the relationship type code.)
*/
// syntactic sugar
public ObservationRelatedComponent addRelated() { //3
@@ -2299,8 +2343,7 @@ other observer (for example a relative or EMT), or any observation made about th
childrenList.add(new Property("device", "Reference(Device|DeviceMetric)", "The device used to generate the observation data.", 0, java.lang.Integer.MAX_VALUE, device));
childrenList.add(new Property("encounter", "Reference(Encounter)", "The healthcare event ( e.g. a patient and healthcare provider interaction ) during which this observation is made.", 0, java.lang.Integer.MAX_VALUE, encounter));
childrenList.add(new Property("referenceRange", "", "Guidance on how to interpret the value by comparison to a normal or recommended range.", 0, java.lang.Integer.MAX_VALUE, referenceRange));
- childrenList.add(new Property("derivedFrom", "Reference(AllergyIntolerance|Condition|FamilyMemberHistory|ImagingStudy|Immunization|MedicationStatement|Procedure|QuestionnaireAnswers|Observation)", "A reference to a resource from which this observation value is derived. For example an Observation resource for a calculated anion gap or Apgar score Observation or a QuestionnaireAnswer resource for an Assessment Tool Observation.( 5/18/2015 EH: TODO need to get a specific example /use cases for example using something other than Observtion).", 0, java.lang.Integer.MAX_VALUE, derivedFrom));
- childrenList.add(new Property("related", "", "A reference to another observations whose relationship is defined by the relationship type code.", 0, java.lang.Integer.MAX_VALUE, related));
+ childrenList.add(new Property("related", "", "A reference to another resource ( usally another Observation but could also be a QuestionnaireAnswer) whose relationship is defined by the relationship type code.", 0, java.lang.Integer.MAX_VALUE, related));
childrenList.add(new Property("component", "", "Some observations have multiple component observations. These component observations are expressed as separate code value pairs that share the same attributes. Examples include systolic and diastolic component observations for blood pressure measurement and multiple component observations for for genetics observations.", 0, java.lang.Integer.MAX_VALUE, component));
}
@@ -2338,11 +2381,6 @@ other observer (for example a relative or EMT), or any observation made about th
for (ObservationReferenceRangeComponent i : referenceRange)
dst.referenceRange.add(i.copy());
};
- if (derivedFrom != null) {
- dst.derivedFrom = new ArrayList();
- for (Reference i : derivedFrom)
- dst.derivedFrom.add(i.copy());
- };
if (related != null) {
dst.related = new ArrayList();
for (ObservationRelatedComponent i : related)
@@ -2374,8 +2412,7 @@ other observer (for example a relative or EMT), or any observation made about th
&& compareDeep(method, o.method, true) && compareDeep(identifier, o.identifier, true) && compareDeep(subject, o.subject, true)
&& compareDeep(specimen, o.specimen, true) && compareDeep(performer, o.performer, true) && compareDeep(device, o.device, true)
&& compareDeep(encounter, o.encounter, true) && compareDeep(referenceRange, o.referenceRange, true)
- && compareDeep(derivedFrom, o.derivedFrom, true) && compareDeep(related, o.related, true) && compareDeep(component, o.component, true)
- ;
+ && compareDeep(related, o.related, true) && compareDeep(component, o.component, true);
}
@Override
@@ -2398,8 +2435,7 @@ other observer (for example a relative or EMT), or any observation made about th
&& (method == null || method.isEmpty()) && (identifier == null || identifier.isEmpty()) && (subject == null || subject.isEmpty())
&& (specimen == null || specimen.isEmpty()) && (performer == null || performer.isEmpty())
&& (device == null || device.isEmpty()) && (encounter == null || encounter.isEmpty()) && (referenceRange == null || referenceRange.isEmpty())
- && (derivedFrom == null || derivedFrom.isEmpty()) && (related == null || related.isEmpty())
- && (component == null || component.isEmpty());
+ && (related == null || related.isEmpty()) && (component == null || component.isEmpty());
}
@Override
@@ -2447,9 +2483,9 @@ other observer (for example a relative or EMT), or any observation made about th
public static final String SP_DATAABSENTREASON = "data-absent-reason";
@SearchParamDefinition(name="encounter", path="Observation.encounter", description="Healthcare event related to the observation", type="reference" )
public static final String SP_ENCOUNTER = "encounter";
- @SearchParamDefinition(name="related-type", path="Observation.related.type", description="has-member | sequel-to | replaces | qualified-by | interfered-by", type="token" )
+ @SearchParamDefinition(name="related-type", path="Observation.related.type", description="has-member | derived-from | sequel-to | replaces | qualified-by | interfered-by", type="token" )
public static final String SP_RELATEDTYPE = "related-type";
- @SearchParamDefinition(name="related-target", path="Observation.related.target", description="Observation that is related to this one", type="reference" )
+ @SearchParamDefinition(name="related-target", path="Observation.related.target", description="Resource that is related to this one", type="reference" )
public static final String SP_RELATEDTARGET = "related-target";
@SearchParamDefinition(name="component-value-string", path="Observation.component.valueString", description="The value of the component observation, if the value is a string, and also searches in CodeableConcept.text", type="string" )
public static final String SP_COMPONENTVALUESTRING = "component-value-string";
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/OperationDefinition.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/OperationDefinition.java
index 9e46d21b87d..6a39ef4dc92 100644
--- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/OperationDefinition.java
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/OperationDefinition.java
@@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
*/
-// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
+// Generated on Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
import java.util.*;
@@ -78,8 +78,8 @@ public class OperationDefinition extends DomainResource {
}
public String getSystem() {
switch (this) {
- case OPERATION: return "http://hl7.org.fhir/operation-kind";
- case QUERY: return "http://hl7.org.fhir/operation-kind";
+ case OPERATION: return "http://hl7.org/fhir/operation-kind";
+ case QUERY: return "http://hl7.org/fhir/operation-kind";
default: return "?";
}
}
@@ -150,8 +150,8 @@ public class OperationDefinition extends DomainResource {
}
public String getSystem() {
switch (this) {
- case IN: return "http://hl7.org.fhir/operation-parameter-use";
- case OUT: return "http://hl7.org.fhir/operation-parameter-use";
+ case IN: return "http://hl7.org/fhir/operation-parameter-use";
+ case OUT: return "http://hl7.org/fhir/operation-parameter-use";
default: return "?";
}
}
@@ -406,14 +406,21 @@ public class OperationDefinition extends DomainResource {
*/
protected StructureDefinition profileTarget;
+ /**
+ * Binds to a value set if this parameter is coded (code, Coding, CodeableConcept).
+ */
+ @Child(name = "binding", type = {}, order=8, min=0, max=1)
+ @Description(shortDefinition="ValueSet details if this is coded", formalDefinition="Binds to a value set if this parameter is coded (code, Coding, CodeableConcept)." )
+ protected OperationDefinitionParameterBindingComponent binding;
+
/**
* The parts of a Tuple Parameter.
*/
- @Child(name = "part", type = {}, order=8, min=0, max=Child.MAX_UNLIMITED)
+ @Child(name = "part", type = {OperationDefinitionParameterComponent.class}, order=9, min=0, max=Child.MAX_UNLIMITED)
@Description(shortDefinition="Parts of a Tuple Parameter", formalDefinition="The parts of a Tuple Parameter." )
- protected List part;
+ protected List part;
- private static final long serialVersionUID = 633191560L;
+ private static final long serialVersionUID = -1514145741L;
/*
* Constructor
@@ -755,19 +762,43 @@ public class OperationDefinition extends DomainResource {
return this;
}
+ /**
+ * @return {@link #binding} (Binds to a value set if this parameter is coded (code, Coding, CodeableConcept).)
+ */
+ public OperationDefinitionParameterBindingComponent getBinding() {
+ if (this.binding == null)
+ if (Configuration.errorOnAutoCreate())
+ throw new Error("Attempt to auto-create OperationDefinitionParameterComponent.binding");
+ else if (Configuration.doAutoCreate())
+ this.binding = new OperationDefinitionParameterBindingComponent(); // cc
+ return this.binding;
+ }
+
+ public boolean hasBinding() {
+ return this.binding != null && !this.binding.isEmpty();
+ }
+
+ /**
+ * @param value {@link #binding} (Binds to a value set if this parameter is coded (code, Coding, CodeableConcept).)
+ */
+ public OperationDefinitionParameterComponent setBinding(OperationDefinitionParameterBindingComponent value) {
+ this.binding = value;
+ return this;
+ }
+
/**
* @return {@link #part} (The parts of a Tuple Parameter.)
*/
- public List getPart() {
+ public List getPart() {
if (this.part == null)
- this.part = new ArrayList();
+ this.part = new ArrayList();
return this.part;
}
public boolean hasPart() {
if (this.part == null)
return false;
- for (OperationDefinitionParameterPartComponent item : this.part)
+ for (OperationDefinitionParameterComponent item : this.part)
if (!item.isEmpty())
return true;
return false;
@@ -777,20 +808,20 @@ public class OperationDefinition extends DomainResource {
* @return {@link #part} (The parts of a Tuple Parameter.)
*/
// syntactic sugar
- public OperationDefinitionParameterPartComponent addPart() { //3
- OperationDefinitionParameterPartComponent t = new OperationDefinitionParameterPartComponent();
+ public OperationDefinitionParameterComponent addPart() { //3
+ OperationDefinitionParameterComponent t = new OperationDefinitionParameterComponent();
if (this.part == null)
- this.part = new ArrayList();
+ this.part = new ArrayList();
this.part.add(t);
return t;
}
// syntactic sugar
- public OperationDefinitionParameterComponent addPart(OperationDefinitionParameterPartComponent t) { //3
+ public OperationDefinitionParameterComponent addPart(OperationDefinitionParameterComponent t) { //3
if (t == null)
return this;
if (this.part == null)
- this.part = new ArrayList();
+ this.part = new ArrayList();
this.part.add(t);
return this;
}
@@ -804,7 +835,8 @@ public class OperationDefinition extends DomainResource {
childrenList.add(new Property("documentation", "string", "Describes the meaning or use of this parameter.", 0, java.lang.Integer.MAX_VALUE, documentation));
childrenList.add(new Property("type", "code", "The type for this parameter.", 0, java.lang.Integer.MAX_VALUE, type));
childrenList.add(new Property("profile", "Reference(StructureDefinition)", "A profile the specifies the rules that this parameter must conform to.", 0, java.lang.Integer.MAX_VALUE, profile));
- childrenList.add(new Property("part", "", "The parts of a Tuple Parameter.", 0, java.lang.Integer.MAX_VALUE, part));
+ childrenList.add(new Property("binding", "", "Binds to a value set if this parameter is coded (code, Coding, CodeableConcept).", 0, java.lang.Integer.MAX_VALUE, binding));
+ childrenList.add(new Property("part", "@OperationDefinition.parameter", "The parts of a Tuple Parameter.", 0, java.lang.Integer.MAX_VALUE, part));
}
public OperationDefinitionParameterComponent copy() {
@@ -817,9 +849,10 @@ public class OperationDefinition extends DomainResource {
dst.documentation = documentation == null ? null : documentation.copy();
dst.type = type == null ? null : type.copy();
dst.profile = profile == null ? null : profile.copy();
+ dst.binding = binding == null ? null : binding.copy();
if (part != null) {
- dst.part = new ArrayList();
- for (OperationDefinitionParameterPartComponent i : part)
+ dst.part = new ArrayList();
+ for (OperationDefinitionParameterComponent i : part)
dst.part.add(i.copy());
};
return dst;
@@ -834,7 +867,8 @@ public class OperationDefinition extends DomainResource {
OperationDefinitionParameterComponent o = (OperationDefinitionParameterComponent) other;
return compareDeep(name, o.name, true) && compareDeep(use, o.use, true) && compareDeep(min, o.min, true)
&& compareDeep(max, o.max, true) && compareDeep(documentation, o.documentation, true) && compareDeep(type, o.type, true)
- && compareDeep(profile, o.profile, true) && compareDeep(part, o.part, true);
+ && compareDeep(profile, o.profile, true) && compareDeep(binding, o.binding, true) && compareDeep(part, o.part, true)
+ ;
}
@Override
@@ -852,373 +886,147 @@ public class OperationDefinition extends DomainResource {
public boolean isEmpty() {
return super.isEmpty() && (name == null || name.isEmpty()) && (use == null || use.isEmpty())
&& (min == null || min.isEmpty()) && (max == null || max.isEmpty()) && (documentation == null || documentation.isEmpty())
- && (type == null || type.isEmpty()) && (profile == null || profile.isEmpty()) && (part == null || part.isEmpty())
- ;
+ && (type == null || type.isEmpty()) && (profile == null || profile.isEmpty()) && (binding == null || binding.isEmpty())
+ && (part == null || part.isEmpty());
}
}
@Block()
- public static class OperationDefinitionParameterPartComponent extends BackboneElement implements IBaseBackboneElement {
+ public static class OperationDefinitionParameterBindingComponent extends BackboneElement implements IBaseBackboneElement {
/**
- * The name of used to identify the parameter.
+ * Indicates the degree of conformance expectations associated with this binding - that is, the degree to which the provided value set must be adhered to in the instances.
*/
- @Child(name = "name", type = {CodeType.class}, order=1, min=1, max=1)
- @Description(shortDefinition="Name of the parameter", formalDefinition="The name of used to identify the parameter." )
- protected CodeType name;
+ @Child(name = "strength", type = {CodeType.class}, order=1, min=1, max=1)
+ @Description(shortDefinition="required | extensible | preferred | example", formalDefinition="Indicates the degree of conformance expectations associated with this binding - that is, the degree to which the provided value set must be adhered to in the instances." )
+ protected Enumeration strength;
/**
- * The minimum number of times this parameter SHALL appear in the request or response.
+ * Points to the value set or external definition (e.g. implicit value set) that identifies the set of codes to be used.
*/
- @Child(name = "min", type = {UnsignedIntType.class}, order=2, min=1, max=1)
- @Description(shortDefinition="Minimum Cardinality", formalDefinition="The minimum number of times this parameter SHALL appear in the request or response." )
- protected UnsignedIntType min;
+ @Child(name = "valueSet", type = {UriType.class, ValueSet.class}, order=2, min=1, max=1)
+ @Description(shortDefinition="Source of value set", formalDefinition="Points to the value set or external definition (e.g. implicit value set) that identifies the set of codes to be used." )
+ protected Type valueSet;
- /**
- * The maximum number of times this element is permitted to appear in the request or response.
- */
- @Child(name = "max", type = {StringType.class}, order=3, min=1, max=1)
- @Description(shortDefinition="Maximum Cardinality (a number or *)", formalDefinition="The maximum number of times this element is permitted to appear in the request or response." )
- protected StringType max;
-
- /**
- * Describes the meaning or use of this parameter.
- */
- @Child(name = "documentation", type = {StringType.class}, order=4, min=0, max=1)
- @Description(shortDefinition="Description of meaning/use", formalDefinition="Describes the meaning or use of this parameter." )
- protected StringType documentation;
-
- /**
- * The type for this parameter.
- */
- @Child(name = "type", type = {CodeType.class}, order=5, min=1, max=1)
- @Description(shortDefinition="What type this parameter hs", formalDefinition="The type for this parameter." )
- protected CodeType type;
-
- /**
- * A profile the specifies the rules that this parameter must conform to.
- */
- @Child(name = "profile", type = {StructureDefinition.class}, order=6, min=0, max=1)
- @Description(shortDefinition="Profile on the type", formalDefinition="A profile the specifies the rules that this parameter must conform to." )
- protected Reference profile;
-
- /**
- * The actual object that is the target of the reference (A profile the specifies the rules that this parameter must conform to.)
- */
- protected StructureDefinition profileTarget;
-
- private static final long serialVersionUID = -856151797L;
+ private static final long serialVersionUID = 857140521L;
/*
* Constructor
*/
- public OperationDefinitionParameterPartComponent() {
+ public OperationDefinitionParameterBindingComponent() {
super();
}
/*
* Constructor
*/
- public OperationDefinitionParameterPartComponent(CodeType name, UnsignedIntType min, StringType max, CodeType type) {
+ public OperationDefinitionParameterBindingComponent(Enumeration strength, Type valueSet) {
super();
- this.name = name;
- this.min = min;
- this.max = max;
- this.type = type;
+ this.strength = strength;
+ this.valueSet = valueSet;
}
/**
- * @return {@link #name} (The name of used to identify the parameter.). This is the underlying object with id, value and extensions. The accessor "getName" gives direct access to the value
+ * @return {@link #strength} (Indicates the degree of conformance expectations associated with this binding - that is, the degree to which the provided value set must be adhered to in the instances.). This is the underlying object with id, value and extensions. The accessor "getStrength" gives direct access to the value
*/
- public CodeType getNameElement() {
- if (this.name == null)
+ public Enumeration getStrengthElement() {
+ if (this.strength == null)
if (Configuration.errorOnAutoCreate())
- throw new Error("Attempt to auto-create OperationDefinitionParameterPartComponent.name");
+ throw new Error("Attempt to auto-create OperationDefinitionParameterBindingComponent.strength");
else if (Configuration.doAutoCreate())
- this.name = new CodeType(); // bb
- return this.name;
+ this.strength = new Enumeration(new BindingStrengthEnumFactory()); // bb
+ return this.strength;
}
- public boolean hasNameElement() {
- return this.name != null && !this.name.isEmpty();
+ public boolean hasStrengthElement() {
+ return this.strength != null && !this.strength.isEmpty();
}
- public boolean hasName() {
- return this.name != null && !this.name.isEmpty();
+ public boolean hasStrength() {
+ return this.strength != null && !this.strength.isEmpty();
}
/**
- * @param value {@link #name} (The name of used to identify the parameter.). This is the underlying object with id, value and extensions. The accessor "getName" gives direct access to the value
+ * @param value {@link #strength} (Indicates the degree of conformance expectations associated with this binding - that is, the degree to which the provided value set must be adhered to in the instances.). This is the underlying object with id, value and extensions. The accessor "getStrength" gives direct access to the value
*/
- public OperationDefinitionParameterPartComponent setNameElement(CodeType value) {
- this.name = value;
+ public OperationDefinitionParameterBindingComponent setStrengthElement(Enumeration value) {
+ this.strength = value;
return this;
}
/**
- * @return The name of used to identify the parameter.
+ * @return Indicates the degree of conformance expectations associated with this binding - that is, the degree to which the provided value set must be adhered to in the instances.
*/
- public String getName() {
- return this.name == null ? null : this.name.getValue();
+ public BindingStrength getStrength() {
+ return this.strength == null ? null : this.strength.getValue();
}
/**
- * @param value The name of used to identify the parameter.
+ * @param value Indicates the degree of conformance expectations associated with this binding - that is, the degree to which the provided value set must be adhered to in the instances.
*/
- public OperationDefinitionParameterPartComponent setName(String value) {
- if (this.name == null)
- this.name = new CodeType();
- this.name.setValue(value);
+ public OperationDefinitionParameterBindingComponent setStrength(BindingStrength value) {
+ if (this.strength == null)
+ this.strength = new Enumeration(new BindingStrengthEnumFactory());
+ this.strength.setValue(value);
return this;
}
/**
- * @return {@link #min} (The minimum number of times this parameter SHALL appear in the request or response.). This is the underlying object with id, value and extensions. The accessor "getMin" gives direct access to the value
+ * @return {@link #valueSet} (Points to the value set or external definition (e.g. implicit value set) that identifies the set of codes to be used.)
*/
- public UnsignedIntType getMinElement() {
- if (this.min == null)
- if (Configuration.errorOnAutoCreate())
- throw new Error("Attempt to auto-create OperationDefinitionParameterPartComponent.min");
- else if (Configuration.doAutoCreate())
- this.min = new UnsignedIntType(); // bb
- return this.min;
- }
-
- public boolean hasMinElement() {
- return this.min != null && !this.min.isEmpty();
- }
-
- public boolean hasMin() {
- return this.min != null && !this.min.isEmpty();
+ public Type getValueSet() {
+ return this.valueSet;
}
/**
- * @param value {@link #min} (The minimum number of times this parameter SHALL appear in the request or response.). This is the underlying object with id, value and extensions. The accessor "getMin" gives direct access to the value
+ * @return {@link #valueSet} (Points to the value set or external definition (e.g. implicit value set) that identifies the set of codes to be used.)
*/
- public OperationDefinitionParameterPartComponent setMinElement(UnsignedIntType value) {
- this.min = value;
- return this;
+ public UriType getValueSetUriType() throws Exception {
+ if (!(this.valueSet instanceof UriType))
+ throw new Exception("Type mismatch: the type UriType was expected, but "+this.valueSet.getClass().getName()+" was encountered");
+ return (UriType) this.valueSet;
+ }
+
+ public boolean hasValueSetUriType() throws Exception {
+ return this.valueSet instanceof UriType;
}
/**
- * @return The minimum number of times this parameter SHALL appear in the request or response.
+ * @return {@link #valueSet} (Points to the value set or external definition (e.g. implicit value set) that identifies the set of codes to be used.)
*/
- public int getMin() {
- return this.min == null || this.min.isEmpty() ? 0 : this.min.getValue();
+ public Reference getValueSetReference() throws Exception {
+ if (!(this.valueSet instanceof Reference))
+ throw new Exception("Type mismatch: the type Reference was expected, but "+this.valueSet.getClass().getName()+" was encountered");
+ return (Reference) this.valueSet;
+ }
+
+ public boolean hasValueSetReference() throws Exception {
+ return this.valueSet instanceof Reference;
+ }
+
+ public boolean hasValueSet() {
+ return this.valueSet != null && !this.valueSet.isEmpty();
}
/**
- * @param value The minimum number of times this parameter SHALL appear in the request or response.
+ * @param value {@link #valueSet} (Points to the value set or external definition (e.g. implicit value set) that identifies the set of codes to be used.)
*/
- public OperationDefinitionParameterPartComponent setMin(int value) {
- if (this.min == null)
- this.min = new UnsignedIntType();
- this.min.setValue(value);
- return this;
- }
-
- /**
- * @return {@link #max} (The maximum number of times this element is permitted to appear in the request or response.). This is the underlying object with id, value and extensions. The accessor "getMax" gives direct access to the value
- */
- public StringType getMaxElement() {
- if (this.max == null)
- if (Configuration.errorOnAutoCreate())
- throw new Error("Attempt to auto-create OperationDefinitionParameterPartComponent.max");
- else if (Configuration.doAutoCreate())
- this.max = new StringType(); // bb
- return this.max;
- }
-
- public boolean hasMaxElement() {
- return this.max != null && !this.max.isEmpty();
- }
-
- public boolean hasMax() {
- return this.max != null && !this.max.isEmpty();
- }
-
- /**
- * @param value {@link #max} (The maximum number of times this element is permitted to appear in the request or response.). This is the underlying object with id, value and extensions. The accessor "getMax" gives direct access to the value
- */
- public OperationDefinitionParameterPartComponent setMaxElement(StringType value) {
- this.max = value;
- return this;
- }
-
- /**
- * @return The maximum number of times this element is permitted to appear in the request or response.
- */
- public String getMax() {
- return this.max == null ? null : this.max.getValue();
- }
-
- /**
- * @param value The maximum number of times this element is permitted to appear in the request or response.
- */
- public OperationDefinitionParameterPartComponent setMax(String value) {
- if (this.max == null)
- this.max = new StringType();
- this.max.setValue(value);
- return this;
- }
-
- /**
- * @return {@link #documentation} (Describes the meaning or use of this parameter.). This is the underlying object with id, value and extensions. The accessor "getDocumentation" gives direct access to the value
- */
- public StringType getDocumentationElement() {
- if (this.documentation == null)
- if (Configuration.errorOnAutoCreate())
- throw new Error("Attempt to auto-create OperationDefinitionParameterPartComponent.documentation");
- else if (Configuration.doAutoCreate())
- this.documentation = new StringType(); // bb
- return this.documentation;
- }
-
- public boolean hasDocumentationElement() {
- return this.documentation != null && !this.documentation.isEmpty();
- }
-
- public boolean hasDocumentation() {
- return this.documentation != null && !this.documentation.isEmpty();
- }
-
- /**
- * @param value {@link #documentation} (Describes the meaning or use of this parameter.). This is the underlying object with id, value and extensions. The accessor "getDocumentation" gives direct access to the value
- */
- public OperationDefinitionParameterPartComponent setDocumentationElement(StringType value) {
- this.documentation = value;
- return this;
- }
-
- /**
- * @return Describes the meaning or use of this parameter.
- */
- public String getDocumentation() {
- return this.documentation == null ? null : this.documentation.getValue();
- }
-
- /**
- * @param value Describes the meaning or use of this parameter.
- */
- public OperationDefinitionParameterPartComponent setDocumentation(String value) {
- if (Utilities.noString(value))
- this.documentation = null;
- else {
- if (this.documentation == null)
- this.documentation = new StringType();
- this.documentation.setValue(value);
- }
- return this;
- }
-
- /**
- * @return {@link #type} (The type for this parameter.). This is the underlying object with id, value and extensions. The accessor "getType" gives direct access to the value
- */
- public CodeType getTypeElement() {
- if (this.type == null)
- if (Configuration.errorOnAutoCreate())
- throw new Error("Attempt to auto-create OperationDefinitionParameterPartComponent.type");
- else if (Configuration.doAutoCreate())
- this.type = new CodeType(); // bb
- return this.type;
- }
-
- public boolean hasTypeElement() {
- return this.type != null && !this.type.isEmpty();
- }
-
- public boolean hasType() {
- return this.type != null && !this.type.isEmpty();
- }
-
- /**
- * @param value {@link #type} (The type for this parameter.). This is the underlying object with id, value and extensions. The accessor "getType" gives direct access to the value
- */
- public OperationDefinitionParameterPartComponent setTypeElement(CodeType value) {
- this.type = value;
- return this;
- }
-
- /**
- * @return The type for this parameter.
- */
- public String getType() {
- return this.type == null ? null : this.type.getValue();
- }
-
- /**
- * @param value The type for this parameter.
- */
- public OperationDefinitionParameterPartComponent setType(String value) {
- if (this.type == null)
- this.type = new CodeType();
- this.type.setValue(value);
- return this;
- }
-
- /**
- * @return {@link #profile} (A profile the specifies the rules that this parameter must conform to.)
- */
- public Reference getProfile() {
- if (this.profile == null)
- if (Configuration.errorOnAutoCreate())
- throw new Error("Attempt to auto-create OperationDefinitionParameterPartComponent.profile");
- else if (Configuration.doAutoCreate())
- this.profile = new Reference(); // cc
- return this.profile;
- }
-
- public boolean hasProfile() {
- return this.profile != null && !this.profile.isEmpty();
- }
-
- /**
- * @param value {@link #profile} (A profile the specifies the rules that this parameter must conform to.)
- */
- public OperationDefinitionParameterPartComponent setProfile(Reference value) {
- this.profile = value;
- return this;
- }
-
- /**
- * @return {@link #profile} The actual object that is the target of the reference. The reference library doesn't populate this, but you can use it to hold the resource if you resolve it. (A profile the specifies the rules that this parameter must conform to.)
- */
- public StructureDefinition getProfileTarget() {
- if (this.profileTarget == null)
- if (Configuration.errorOnAutoCreate())
- throw new Error("Attempt to auto-create OperationDefinitionParameterPartComponent.profile");
- else if (Configuration.doAutoCreate())
- this.profileTarget = new StructureDefinition(); // aa
- return this.profileTarget;
- }
-
- /**
- * @param value {@link #profile} The actual object that is the target of the reference. The reference library doesn't use these, but you can use it to hold the resource if you resolve it. (A profile the specifies the rules that this parameter must conform to.)
- */
- public OperationDefinitionParameterPartComponent setProfileTarget(StructureDefinition value) {
- this.profileTarget = value;
+ public OperationDefinitionParameterBindingComponent setValueSet(Type value) {
+ this.valueSet = value;
return this;
}
protected void listChildren(List childrenList) {
super.listChildren(childrenList);
- childrenList.add(new Property("name", "code", "The name of used to identify the parameter.", 0, java.lang.Integer.MAX_VALUE, name));
- childrenList.add(new Property("min", "unsignedInt", "The minimum number of times this parameter SHALL appear in the request or response.", 0, java.lang.Integer.MAX_VALUE, min));
- childrenList.add(new Property("max", "string", "The maximum number of times this element is permitted to appear in the request or response.", 0, java.lang.Integer.MAX_VALUE, max));
- childrenList.add(new Property("documentation", "string", "Describes the meaning or use of this parameter.", 0, java.lang.Integer.MAX_VALUE, documentation));
- childrenList.add(new Property("type", "code", "The type for this parameter.", 0, java.lang.Integer.MAX_VALUE, type));
- childrenList.add(new Property("profile", "Reference(StructureDefinition)", "A profile the specifies the rules that this parameter must conform to.", 0, java.lang.Integer.MAX_VALUE, profile));
+ childrenList.add(new Property("strength", "code", "Indicates the degree of conformance expectations associated with this binding - that is, the degree to which the provided value set must be adhered to in the instances.", 0, java.lang.Integer.MAX_VALUE, strength));
+ childrenList.add(new Property("valueSet[x]", "uri|Reference(ValueSet)", "Points to the value set or external definition (e.g. implicit value set) that identifies the set of codes to be used.", 0, java.lang.Integer.MAX_VALUE, valueSet));
}
- public OperationDefinitionParameterPartComponent copy() {
- OperationDefinitionParameterPartComponent dst = new OperationDefinitionParameterPartComponent();
+ public OperationDefinitionParameterBindingComponent copy() {
+ OperationDefinitionParameterBindingComponent dst = new OperationDefinitionParameterBindingComponent();
copyValues(dst);
- dst.name = name == null ? null : name.copy();
- dst.min = min == null ? null : min.copy();
- dst.max = max == null ? null : max.copy();
- dst.documentation = documentation == null ? null : documentation.copy();
- dst.type = type == null ? null : type.copy();
- dst.profile = profile == null ? null : profile.copy();
+ dst.strength = strength == null ? null : strength.copy();
+ dst.valueSet = valueSet == null ? null : valueSet.copy();
return dst;
}
@@ -1226,29 +1034,25 @@ public class OperationDefinition extends DomainResource {
public boolean equalsDeep(Base other) {
if (!super.equalsDeep(other))
return false;
- if (!(other instanceof OperationDefinitionParameterPartComponent))
+ if (!(other instanceof OperationDefinitionParameterBindingComponent))
return false;
- OperationDefinitionParameterPartComponent o = (OperationDefinitionParameterPartComponent) other;
- return compareDeep(name, o.name, true) && compareDeep(min, o.min, true) && compareDeep(max, o.max, true)
- && compareDeep(documentation, o.documentation, true) && compareDeep(type, o.type, true) && compareDeep(profile, o.profile, true)
- ;
+ OperationDefinitionParameterBindingComponent o = (OperationDefinitionParameterBindingComponent) other;
+ return compareDeep(strength, o.strength, true) && compareDeep(valueSet, o.valueSet, true);
}
@Override
public boolean equalsShallow(Base other) {
if (!super.equalsShallow(other))
return false;
- if (!(other instanceof OperationDefinitionParameterPartComponent))
+ if (!(other instanceof OperationDefinitionParameterBindingComponent))
return false;
- OperationDefinitionParameterPartComponent o = (OperationDefinitionParameterPartComponent) other;
- return compareValues(name, o.name, true) && compareValues(min, o.min, true) && compareValues(max, o.max, true)
- && compareValues(documentation, o.documentation, true) && compareValues(type, o.type, true);
+ OperationDefinitionParameterBindingComponent o = (OperationDefinitionParameterBindingComponent) other;
+ return compareValues(strength, o.strength, true);
}
public boolean isEmpty() {
- return super.isEmpty() && (name == null || name.isEmpty()) && (min == null || min.isEmpty())
- && (max == null || max.isEmpty()) && (documentation == null || documentation.isEmpty()) && (type == null || type.isEmpty())
- && (profile == null || profile.isEmpty());
+ return super.isEmpty() && (strength == null || strength.isEmpty()) && (valueSet == null || valueSet.isEmpty())
+ ;
}
}
@@ -1268,10 +1072,10 @@ public class OperationDefinition extends DomainResource {
protected StringType version;
/**
- * A free text natural language name identifying the Profile.
+ * A free text natural language name identifying the operation.
*/
@Child(name = "name", type = {StringType.class}, order=2, min=1, max=1)
- @Description(shortDefinition="Informal name for this profile", formalDefinition="A free text natural language name identifying the Profile." )
+ @Description(shortDefinition="Informal name for this operation", formalDefinition="A free text natural language name identifying the operation." )
protected StringType name;
/**
@@ -1512,7 +1316,7 @@ public class OperationDefinition extends DomainResource {
}
/**
- * @return {@link #name} (A free text natural language name identifying the Profile.). This is the underlying object with id, value and extensions. The accessor "getName" gives direct access to the value
+ * @return {@link #name} (A free text natural language name identifying the operation.). This is the underlying object with id, value and extensions. The accessor "getName" gives direct access to the value
*/
public StringType getNameElement() {
if (this.name == null)
@@ -1532,7 +1336,7 @@ public class OperationDefinition extends DomainResource {
}
/**
- * @param value {@link #name} (A free text natural language name identifying the Profile.). This is the underlying object with id, value and extensions. The accessor "getName" gives direct access to the value
+ * @param value {@link #name} (A free text natural language name identifying the operation.). This is the underlying object with id, value and extensions. The accessor "getName" gives direct access to the value
*/
public OperationDefinition setNameElement(StringType value) {
this.name = value;
@@ -1540,14 +1344,14 @@ public class OperationDefinition extends DomainResource {
}
/**
- * @return A free text natural language name identifying the Profile.
+ * @return A free text natural language name identifying the operation.
*/
public String getName() {
return this.name == null ? null : this.name.getValue();
}
/**
- * @param value A free text natural language name identifying the Profile.
+ * @param value A free text natural language name identifying the operation.
*/
public OperationDefinition setName(String value) {
if (this.name == null)
@@ -2298,7 +2102,7 @@ public class OperationDefinition extends DomainResource {
super.listChildren(childrenList);
childrenList.add(new Property("url", "uri", "An absolute url that is used to identify this operation definition when it is referenced in a specification, model, design or an instance (should be globally unique uri).", 0, java.lang.Integer.MAX_VALUE, url));
childrenList.add(new Property("version", "string", "The identifier that is used to identify this version of the profile when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the profile author manually and the value should be a timestamp.", 0, java.lang.Integer.MAX_VALUE, version));
- childrenList.add(new Property("name", "string", "A free text natural language name identifying the Profile.", 0, java.lang.Integer.MAX_VALUE, name));
+ childrenList.add(new Property("name", "string", "A free text natural language name identifying the operation.", 0, java.lang.Integer.MAX_VALUE, name));
childrenList.add(new Property("publisher", "string", "The name of the individual or organization that published the operation definition.", 0, java.lang.Integer.MAX_VALUE, publisher));
childrenList.add(new Property("contact", "", "Contacts to assist a user in finding and communicating with the publisher.", 0, java.lang.Integer.MAX_VALUE, contact));
childrenList.add(new Property("description", "string", "A free text natural language description of the profile and its use.", 0, java.lang.Integer.MAX_VALUE, description));
@@ -2423,7 +2227,7 @@ public class OperationDefinition extends DomainResource {
public static final String SP_URL = "url";
@SearchParamDefinition(name="system", path="OperationDefinition.system", description="Invoke at the system level?", type="token" )
public static final String SP_SYSTEM = "system";
- @SearchParamDefinition(name="name", path="OperationDefinition.name", description="Informal name for this profile", type="string" )
+ @SearchParamDefinition(name="name", path="OperationDefinition.name", description="Informal name for this operation", type="string" )
public static final String SP_NAME = "name";
@SearchParamDefinition(name="publisher", path="OperationDefinition.publisher", description="Name of the publisher (Organization or individual)", type="string" )
public static final String SP_PUBLISHER = "publisher";
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/OperationOutcome.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/OperationOutcome.java
index 0fba8f3a3c9..28159eda931 100644
--- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/OperationOutcome.java
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/OperationOutcome.java
@@ -29,18 +29,17 @@ package org.hl7.fhir.instance.model;
*/
-// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
+// Generated on Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
-import java.util.ArrayList;
-import java.util.List;
+import java.util.*;
-import org.hl7.fhir.instance.model.annotations.Block;
+import org.hl7.fhir.utilities.Utilities;
+import org.hl7.fhir.instance.model.annotations.ResourceDef;
+import org.hl7.fhir.instance.model.annotations.SearchParamDefinition;
import org.hl7.fhir.instance.model.annotations.Child;
import org.hl7.fhir.instance.model.annotations.Description;
-import org.hl7.fhir.instance.model.annotations.ResourceDef;
-import org.hl7.fhir.instance.model.api.IBaseBackboneElement;
-import org.hl7.fhir.instance.model.api.IBaseOperationOutcome;
-import org.hl7.fhir.utilities.Utilities;
+import org.hl7.fhir.instance.model.annotations.Block;
+import org.hl7.fhir.instance.model.api.*;
/**
* A collection of error, warning or information messages that result from a system action.
*/
@@ -92,10 +91,10 @@ public class OperationOutcome extends DomainResource implements IBaseOperationOu
}
public String getSystem() {
switch (this) {
- case FATAL: return "http://hl7.org.fhir/issue-severity";
- case ERROR: return "http://hl7.org.fhir/issue-severity";
- case WARNING: return "http://hl7.org.fhir/issue-severity";
- case INFORMATION: return "http://hl7.org.fhir/issue-severity";
+ case FATAL: return "http://hl7.org/fhir/issue-severity";
+ case ERROR: return "http://hl7.org/fhir/issue-severity";
+ case WARNING: return "http://hl7.org/fhir/issue-severity";
+ case INFORMATION: return "http://hl7.org/fhir/issue-severity";
default: return "?";
}
}
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Order.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Order.java
index 9dcafb216dd..dcb26ea9241 100644
--- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Order.java
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Order.java
@@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
*/
-// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
+// Generated on Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
import java.util.*;
@@ -188,14 +188,14 @@ public class Order extends DomainResource {
/**
* Who initiated the order.
*/
- @Child(name = "source", type = {Practitioner.class}, order=3, min=0, max=1)
+ @Child(name = "source", type = {Practitioner.class, Organization.class}, order=3, min=0, max=1)
@Description(shortDefinition="Who initiated the order", formalDefinition="Who initiated the order." )
protected Reference source;
/**
* The actual object that is the target of the reference (Who initiated the order.)
*/
- protected Practitioner sourceTarget;
+ protected Resource sourceTarget;
/**
* Who is intended to fulfill the order.
@@ -216,29 +216,17 @@ public class Order extends DomainResource {
@Description(shortDefinition="Text - why the order was made", formalDefinition="Text - why the order was made." )
protected Type reason;
- /**
- * If required by policy.
- */
- @Child(name = "authority", type = {}, order=6, min=0, max=1)
- @Description(shortDefinition="If required by policy", formalDefinition="If required by policy." )
- protected Reference authority;
-
- /**
- * The actual object that is the target of the reference (If required by policy.)
- */
- protected Resource authorityTarget;
-
/**
* When order should be fulfilled.
*/
- @Child(name = "when", type = {}, order=7, min=0, max=1)
+ @Child(name = "when", type = {}, order=6, min=0, max=1)
@Description(shortDefinition="When order should be fulfilled", formalDefinition="When order should be fulfilled." )
protected OrderWhenComponent when;
/**
* What action is being ordered.
*/
- @Child(name = "detail", type = {}, order=8, min=1, max=Child.MAX_UNLIMITED)
+ @Child(name = "detail", type = {}, order=7, min=1, max=Child.MAX_UNLIMITED)
@Description(shortDefinition="What action is being ordered", formalDefinition="What action is being ordered." )
protected List detail;
/**
@@ -247,7 +235,7 @@ public class Order extends DomainResource {
protected List detailTarget;
- private static final long serialVersionUID = 595782234L;
+ private static final long serialVersionUID = -1392311096L;
/*
* Constructor
@@ -411,19 +399,14 @@ public class Order extends DomainResource {
/**
* @return {@link #source} The actual object that is the target of the reference. The reference library doesn't populate this, but you can use it to hold the resource if you resolve it. (Who initiated the order.)
*/
- public Practitioner getSourceTarget() {
- if (this.sourceTarget == null)
- if (Configuration.errorOnAutoCreate())
- throw new Error("Attempt to auto-create Order.source");
- else if (Configuration.doAutoCreate())
- this.sourceTarget = new Practitioner(); // aa
+ public Resource getSourceTarget() {
return this.sourceTarget;
}
/**
* @param value {@link #source} The actual object that is the target of the reference. The reference library doesn't use these, but you can use it to hold the resource if you resolve it. (Who initiated the order.)
*/
- public Order setSourceTarget(Practitioner value) {
+ public Order setSourceTarget(Resource value) {
this.sourceTarget = value;
return this;
}
@@ -483,6 +466,10 @@ public class Order extends DomainResource {
return (CodeableConcept) this.reason;
}
+ public boolean hasReasonCodeableConcept() throws Exception {
+ return this.reason instanceof CodeableConcept;
+ }
+
/**
* @return {@link #reason} (Text - why the order was made.)
*/
@@ -492,6 +479,10 @@ public class Order extends DomainResource {
return (Reference) this.reason;
}
+ public boolean hasReasonReference() throws Exception {
+ return this.reason instanceof Reference;
+ }
+
public boolean hasReason() {
return this.reason != null && !this.reason.isEmpty();
}
@@ -504,45 +495,6 @@ public class Order extends DomainResource {
return this;
}
- /**
- * @return {@link #authority} (If required by policy.)
- */
- public Reference getAuthority() {
- if (this.authority == null)
- if (Configuration.errorOnAutoCreate())
- throw new Error("Attempt to auto-create Order.authority");
- else if (Configuration.doAutoCreate())
- this.authority = new Reference(); // cc
- return this.authority;
- }
-
- public boolean hasAuthority() {
- return this.authority != null && !this.authority.isEmpty();
- }
-
- /**
- * @param value {@link #authority} (If required by policy.)
- */
- public Order setAuthority(Reference value) {
- this.authority = value;
- return this;
- }
-
- /**
- * @return {@link #authority} The actual object that is the target of the reference. The reference library doesn't populate this, but you can use it to hold the resource if you resolve it. (If required by policy.)
- */
- public Resource getAuthorityTarget() {
- return this.authorityTarget;
- }
-
- /**
- * @param value {@link #authority} The actual object that is the target of the reference. The reference library doesn't use these, but you can use it to hold the resource if you resolve it. (If required by policy.)
- */
- public Order setAuthorityTarget(Resource value) {
- this.authorityTarget = value;
- return this;
- }
-
/**
* @return {@link #when} (When order should be fulfilled.)
*/
@@ -621,10 +573,9 @@ public class Order extends DomainResource {
childrenList.add(new Property("identifier", "Identifier", "Identifiers assigned to this order by the orderer or by the receiver.", 0, java.lang.Integer.MAX_VALUE, identifier));
childrenList.add(new Property("date", "dateTime", "When the order was made.", 0, java.lang.Integer.MAX_VALUE, date));
childrenList.add(new Property("subject", "Reference(Patient|Group|Device|Substance)", "Patient this order is about.", 0, java.lang.Integer.MAX_VALUE, subject));
- childrenList.add(new Property("source", "Reference(Practitioner)", "Who initiated the order.", 0, java.lang.Integer.MAX_VALUE, source));
+ childrenList.add(new Property("source", "Reference(Practitioner|Organization)", "Who initiated the order.", 0, java.lang.Integer.MAX_VALUE, source));
childrenList.add(new Property("target", "Reference(Organization|Device|Practitioner)", "Who is intended to fulfill the order.", 0, java.lang.Integer.MAX_VALUE, target));
childrenList.add(new Property("reason[x]", "CodeableConcept|Reference(Any)", "Text - why the order was made.", 0, java.lang.Integer.MAX_VALUE, reason));
- childrenList.add(new Property("authority", "Reference(Any)", "If required by policy.", 0, java.lang.Integer.MAX_VALUE, authority));
childrenList.add(new Property("when", "", "When order should be fulfilled.", 0, java.lang.Integer.MAX_VALUE, when));
childrenList.add(new Property("detail", "Reference(Any)", "What action is being ordered.", 0, java.lang.Integer.MAX_VALUE, detail));
}
@@ -642,7 +593,6 @@ public class Order extends DomainResource {
dst.source = source == null ? null : source.copy();
dst.target = target == null ? null : target.copy();
dst.reason = reason == null ? null : reason.copy();
- dst.authority = authority == null ? null : authority.copy();
dst.when = when == null ? null : when.copy();
if (detail != null) {
dst.detail = new ArrayList();
@@ -665,8 +615,7 @@ public class Order extends DomainResource {
Order o = (Order) other;
return compareDeep(identifier, o.identifier, true) && compareDeep(date, o.date, true) && compareDeep(subject, o.subject, true)
&& compareDeep(source, o.source, true) && compareDeep(target, o.target, true) && compareDeep(reason, o.reason, true)
- && compareDeep(authority, o.authority, true) && compareDeep(when, o.when, true) && compareDeep(detail, o.detail, true)
- ;
+ && compareDeep(when, o.when, true) && compareDeep(detail, o.detail, true);
}
@Override
@@ -682,8 +631,8 @@ public class Order extends DomainResource {
public boolean isEmpty() {
return super.isEmpty() && (identifier == null || identifier.isEmpty()) && (date == null || date.isEmpty())
&& (subject == null || subject.isEmpty()) && (source == null || source.isEmpty()) && (target == null || target.isEmpty())
- && (reason == null || reason.isEmpty()) && (authority == null || authority.isEmpty()) && (when == null || when.isEmpty())
- && (detail == null || detail.isEmpty());
+ && (reason == null || reason.isEmpty()) && (when == null || when.isEmpty()) && (detail == null || detail.isEmpty())
+ ;
}
@Override
@@ -693,12 +642,12 @@ public class Order extends DomainResource {
@SearchParamDefinition(name="date", path="Order.date", description="When the order was made", type="date" )
public static final String SP_DATE = "date";
+ @SearchParamDefinition(name="identifier", path="Order.identifier", description="Instance id fromsource, target, and/or others", type="token" )
+ public static final String SP_IDENTIFIER = "identifier";
@SearchParamDefinition(name="subject", path="Order.subject", description="Patient this order is about", type="reference" )
public static final String SP_SUBJECT = "subject";
@SearchParamDefinition(name="patient", path="Order.subject", description="Patient this order is about", type="reference" )
public static final String SP_PATIENT = "patient";
- @SearchParamDefinition(name="authority", path="Order.authority", description="If required by policy", type="reference" )
- public static final String SP_AUTHORITY = "authority";
@SearchParamDefinition(name="source", path="Order.source", description="Who initiated the order", type="reference" )
public static final String SP_SOURCE = "source";
@SearchParamDefinition(name="detail", path="Order.detail", description="What action is being ordered", type="reference" )
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/OrderResponse.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/OrderResponse.java
index b7f4b724f01..9ee515db303 100644
--- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/OrderResponse.java
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/OrderResponse.java
@@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
*/
-// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
+// Generated on Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
import java.util.*;
@@ -126,15 +126,15 @@ public class OrderResponse extends DomainResource {
}
public String getSystem() {
switch (this) {
- case PENDING: return "http://hl7.org.fhir/order-status";
- case REVIEW: return "http://hl7.org.fhir/order-status";
- case REJECTED: return "http://hl7.org.fhir/order-status";
- case ERROR: return "http://hl7.org.fhir/order-status";
- case ACCEPTED: return "http://hl7.org.fhir/order-status";
- case CANCELLED: return "http://hl7.org.fhir/order-status";
- case REPLACED: return "http://hl7.org.fhir/order-status";
- case ABORTED: return "http://hl7.org.fhir/order-status";
- case COMPLETED: return "http://hl7.org.fhir/order-status";
+ case PENDING: return "http://hl7.org/fhir/order-status";
+ case REVIEW: return "http://hl7.org/fhir/order-status";
+ case REJECTED: return "http://hl7.org/fhir/order-status";
+ case ERROR: return "http://hl7.org/fhir/order-status";
+ case ACCEPTED: return "http://hl7.org/fhir/order-status";
+ case CANCELLED: return "http://hl7.org/fhir/order-status";
+ case REPLACED: return "http://hl7.org/fhir/order-status";
+ case ABORTED: return "http://hl7.org/fhir/order-status";
+ case COMPLETED: return "http://hl7.org/fhir/order-status";
default: return "?";
}
}
@@ -254,31 +254,24 @@ public class OrderResponse extends DomainResource {
*/
protected Resource whoTarget;
- /**
- * A reference to an authority policy that is the reason for the response. Usually this is used when the order is rejected, to provide a reason for rejection.
- */
- @Child(name = "authority", type = {CodeableConcept.class}, order=4, min=0, max=1)
- @Description(shortDefinition="If required by policy", formalDefinition="A reference to an authority policy that is the reason for the response. Usually this is used when the order is rejected, to provide a reason for rejection." )
- protected Type authority;
-
/**
* What this response says about the status of the original order.
*/
- @Child(name = "orderStatus", type = {CodeType.class}, order=5, min=1, max=1)
+ @Child(name = "orderStatus", type = {CodeType.class}, order=4, min=1, max=1)
@Description(shortDefinition="pending | review | rejected | error | accepted | cancelled | replaced | aborted | completed", formalDefinition="What this response says about the status of the original order." )
protected Enumeration orderStatus;
/**
* Additional description about the response - e.g. a text description provided by a human user when making decisions about the order.
*/
- @Child(name = "description", type = {StringType.class}, order=6, min=0, max=1)
+ @Child(name = "description", type = {StringType.class}, order=5, min=0, max=1)
@Description(shortDefinition="Additional description of the response", formalDefinition="Additional description about the response - e.g. a text description provided by a human user when making decisions about the order." )
protected StringType description;
/**
* Links to resources that provide details of the outcome of performing the order. E.g. Diagnostic Reports in a response that is made to an order that referenced a diagnostic order.
*/
- @Child(name = "fulfillment", type = {}, order=7, min=0, max=Child.MAX_UNLIMITED)
+ @Child(name = "fulfillment", type = {}, order=6, min=0, max=Child.MAX_UNLIMITED)
@Description(shortDefinition="Details of the outcome of performing the order", formalDefinition="Links to resources that provide details of the outcome of performing the order. E.g. Diagnostic Reports in a response that is made to an order that referenced a diagnostic order." )
protected List fulfillment;
/**
@@ -287,7 +280,7 @@ public class OrderResponse extends DomainResource {
protected List fulfillmentTarget;
- private static final long serialVersionUID = -1983664888L;
+ private static final long serialVersionUID = -856633109L;
/*
* Constructor
@@ -477,43 +470,6 @@ public class OrderResponse extends DomainResource {
return this;
}
- /**
- * @return {@link #authority} (A reference to an authority policy that is the reason for the response. Usually this is used when the order is rejected, to provide a reason for rejection.)
- */
- public Type getAuthority() {
- return this.authority;
- }
-
- /**
- * @return {@link #authority} (A reference to an authority policy that is the reason for the response. Usually this is used when the order is rejected, to provide a reason for rejection.)
- */
- public CodeableConcept getAuthorityCodeableConcept() throws Exception {
- if (!(this.authority instanceof CodeableConcept))
- throw new Exception("Type mismatch: the type CodeableConcept was expected, but "+this.authority.getClass().getName()+" was encountered");
- return (CodeableConcept) this.authority;
- }
-
- /**
- * @return {@link #authority} (A reference to an authority policy that is the reason for the response. Usually this is used when the order is rejected, to provide a reason for rejection.)
- */
- public Reference getAuthorityReference() throws Exception {
- if (!(this.authority instanceof Reference))
- throw new Exception("Type mismatch: the type Reference was expected, but "+this.authority.getClass().getName()+" was encountered");
- return (Reference) this.authority;
- }
-
- public boolean hasAuthority() {
- return this.authority != null && !this.authority.isEmpty();
- }
-
- /**
- * @param value {@link #authority} (A reference to an authority policy that is the reason for the response. Usually this is used when the order is rejected, to provide a reason for rejection.)
- */
- public OrderResponse setAuthority(Type value) {
- this.authority = value;
- return this;
- }
-
/**
* @return {@link #orderStatus} (What this response says about the status of the original order.). This is the underlying object with id, value and extensions. The accessor "getOrderStatus" gives direct access to the value
*/
@@ -663,7 +619,6 @@ public class OrderResponse extends DomainResource {
childrenList.add(new Property("request", "Reference(Order)", "A reference to the order that this is in response to.", 0, java.lang.Integer.MAX_VALUE, request));
childrenList.add(new Property("date", "dateTime", "The date and time at which this order response was made (created/posted).", 0, java.lang.Integer.MAX_VALUE, date));
childrenList.add(new Property("who", "Reference(Practitioner|Organization|Device)", "The person, organization, or device credited with making the response.", 0, java.lang.Integer.MAX_VALUE, who));
- childrenList.add(new Property("authority[x]", "CodeableConcept|Reference(Any)", "A reference to an authority policy that is the reason for the response. Usually this is used when the order is rejected, to provide a reason for rejection.", 0, java.lang.Integer.MAX_VALUE, authority));
childrenList.add(new Property("orderStatus", "code", "What this response says about the status of the original order.", 0, java.lang.Integer.MAX_VALUE, orderStatus));
childrenList.add(new Property("description", "string", "Additional description about the response - e.g. a text description provided by a human user when making decisions about the order.", 0, java.lang.Integer.MAX_VALUE, description));
childrenList.add(new Property("fulfillment", "Reference(Any)", "Links to resources that provide details of the outcome of performing the order. E.g. Diagnostic Reports in a response that is made to an order that referenced a diagnostic order.", 0, java.lang.Integer.MAX_VALUE, fulfillment));
@@ -680,7 +635,6 @@ public class OrderResponse extends DomainResource {
dst.request = request == null ? null : request.copy();
dst.date = date == null ? null : date.copy();
dst.who = who == null ? null : who.copy();
- dst.authority = authority == null ? null : authority.copy();
dst.orderStatus = orderStatus == null ? null : orderStatus.copy();
dst.description = description == null ? null : description.copy();
if (fulfillment != null) {
@@ -703,9 +657,8 @@ public class OrderResponse extends DomainResource {
return false;
OrderResponse o = (OrderResponse) other;
return compareDeep(identifier, o.identifier, true) && compareDeep(request, o.request, true) && compareDeep(date, o.date, true)
- && compareDeep(who, o.who, true) && compareDeep(authority, o.authority, true) && compareDeep(orderStatus, o.orderStatus, true)
- && compareDeep(description, o.description, true) && compareDeep(fulfillment, o.fulfillment, true)
- ;
+ && compareDeep(who, o.who, true) && compareDeep(orderStatus, o.orderStatus, true) && compareDeep(description, o.description, true)
+ && compareDeep(fulfillment, o.fulfillment, true);
}
@Override
@@ -721,9 +674,9 @@ public class OrderResponse extends DomainResource {
public boolean isEmpty() {
return super.isEmpty() && (identifier == null || identifier.isEmpty()) && (request == null || request.isEmpty())
- && (date == null || date.isEmpty()) && (who == null || who.isEmpty()) && (authority == null || authority.isEmpty())
- && (orderStatus == null || orderStatus.isEmpty()) && (description == null || description.isEmpty())
- && (fulfillment == null || fulfillment.isEmpty());
+ && (date == null || date.isEmpty()) && (who == null || who.isEmpty()) && (orderStatus == null || orderStatus.isEmpty())
+ && (description == null || description.isEmpty()) && (fulfillment == null || fulfillment.isEmpty())
+ ;
}
@Override
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Organization.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Organization.java
index 707da913373..f2d14bcf149 100644
--- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Organization.java
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Organization.java
@@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
*/
-// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
+// Generated on Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
import java.util.*;
@@ -727,12 +727,22 @@ public class Organization extends DomainResource {
public static final String SP_PHONETIC = "phonetic";
@SearchParamDefinition(name="address", path="Organization.address", description="A (part of the) address of the Organization", type="string" )
public static final String SP_ADDRESS = "address";
+ @SearchParamDefinition(name="address-state", path="Organization.address.state", description="A state specified in an address", type="string" )
+ public static final String SP_ADDRESSSTATE = "address-state";
@SearchParamDefinition(name="name", path="Organization.name", description="A portion of the organization's name", type="string" )
public static final String SP_NAME = "name";
+ @SearchParamDefinition(name="address-use", path="Organization.address.use", description="A use code specified in an address", type="token" )
+ public static final String SP_ADDRESSUSE = "address-use";
@SearchParamDefinition(name="active", path="Organization.active", description="Whether the organization's record is active", type="token" )
public static final String SP_ACTIVE = "active";
@SearchParamDefinition(name="type", path="Organization.type", description="A code for the type of organization", type="token" )
public static final String SP_TYPE = "type";
+ @SearchParamDefinition(name="address-city", path="Organization.address.city", description="A city specified in an address", type="string" )
+ public static final String SP_ADDRESSCITY = "address-city";
+ @SearchParamDefinition(name="address-postalcode", path="Organization.address.postalCode", description="A postalCode specified in an address", type="string" )
+ public static final String SP_ADDRESSPOSTALCODE = "address-postalcode";
+ @SearchParamDefinition(name="address-country", path="Organization.address.country", description="A country specified in an address", type="string" )
+ public static final String SP_ADDRESSCOUNTRY = "address-country";
}
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Parameters.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Parameters.java
index 0200e028260..3e871003f7b 100644
--- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Parameters.java
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Parameters.java
@@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
*/
-// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
+// Generated on Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
import java.util.*;
@@ -72,11 +72,11 @@ public class Parameters extends Resource implements IBaseParameters {
/**
* A named part of a parameter. In many implementation context, a set of named parts is known as a "Tuple".
*/
- @Child(name = "part", type = {}, order=4, min=0, max=Child.MAX_UNLIMITED)
+ @Child(name = "part", type = {ParametersParameterComponent.class}, order=4, min=0, max=Child.MAX_UNLIMITED)
@Description(shortDefinition="Named part of a parameter (e.g. Tuple)", formalDefinition="A named part of a parameter. In many implementation context, a set of named parts is known as a 'Tuple'." )
- protected List part;
+ protected List part;
- private static final long serialVersionUID = 2101270343L;
+ private static final long serialVersionUID = 1129239796L;
/*
* Constructor
@@ -179,16 +179,16 @@ public class Parameters extends Resource implements IBaseParameters {
/**
* @return {@link #part} (A named part of a parameter. In many implementation context, a set of named parts is known as a "Tuple".)
*/
- public List getPart() {
+ public List getPart() {
if (this.part == null)
- this.part = new ArrayList();
+ this.part = new ArrayList();
return this.part;
}
public boolean hasPart() {
if (this.part == null)
return false;
- for (ParametersParameterPartComponent item : this.part)
+ for (ParametersParameterComponent item : this.part)
if (!item.isEmpty())
return true;
return false;
@@ -198,20 +198,20 @@ public class Parameters extends Resource implements IBaseParameters {
* @return {@link #part} (A named part of a parameter. In many implementation context, a set of named parts is known as a "Tuple".)
*/
// syntactic sugar
- public ParametersParameterPartComponent addPart() { //3
- ParametersParameterPartComponent t = new ParametersParameterPartComponent();
+ public ParametersParameterComponent addPart() { //3
+ ParametersParameterComponent t = new ParametersParameterComponent();
if (this.part == null)
- this.part = new ArrayList();
+ this.part = new ArrayList();
this.part.add(t);
return t;
}
// syntactic sugar
- public ParametersParameterComponent addPart(ParametersParameterPartComponent t) { //3
+ public ParametersParameterComponent addPart(ParametersParameterComponent t) { //3
if (t == null)
return this;
if (this.part == null)
- this.part = new ArrayList();
+ this.part = new ArrayList();
this.part.add(t);
return this;
}
@@ -221,7 +221,7 @@ public class Parameters extends Resource implements IBaseParameters {
childrenList.add(new Property("name", "string", "The name of the parameter (reference to the operation definition).", 0, java.lang.Integer.MAX_VALUE, name));
childrenList.add(new Property("value[x]", "*", "If the parameter is a data type.", 0, java.lang.Integer.MAX_VALUE, value));
childrenList.add(new Property("resource", "Resource", "If the parameter is a whole resource.", 0, java.lang.Integer.MAX_VALUE, resource));
- childrenList.add(new Property("part", "", "A named part of a parameter. In many implementation context, a set of named parts is known as a 'Tuple'.", 0, java.lang.Integer.MAX_VALUE, part));
+ childrenList.add(new Property("part", "@Parameters.parameter", "A named part of a parameter. In many implementation context, a set of named parts is known as a 'Tuple'.", 0, java.lang.Integer.MAX_VALUE, part));
}
public ParametersParameterComponent copy() {
@@ -231,8 +231,8 @@ public class Parameters extends Resource implements IBaseParameters {
dst.value = value == null ? null : value.copy();
dst.resource = resource == null ? null : resource.copy();
if (part != null) {
- dst.part = new ArrayList();
- for (ParametersParameterPartComponent i : part)
+ dst.part = new ArrayList();
+ for (ParametersParameterComponent i : part)
dst.part.add(i.copy());
};
return dst;
@@ -264,173 +264,6 @@ public class Parameters extends Resource implements IBaseParameters {
&& (resource == null || resource.isEmpty()) && (part == null || part.isEmpty());
}
- }
-
- @Block()
- public static class ParametersParameterPartComponent extends BackboneElement implements IBaseBackboneElement {
- /**
- * The name of the parameter (reference to the operation definition).
- */
- @Child(name = "name", type = {StringType.class}, order=1, min=1, max=1)
- @Description(shortDefinition="Name from the definition", formalDefinition="The name of the parameter (reference to the operation definition)." )
- protected StringType name;
-
- /**
- * The value of the parameter.
- */
- @Child(name = "value", type = {}, order=2, min=0, max=1)
- @Description(shortDefinition="Value of the part", formalDefinition="The value of the parameter." )
- protected org.hl7.fhir.instance.model.Type value;
-
- /**
- * If the parameter is a whole resource.
- */
- @Child(name = "resource", type = {Resource.class}, order=3, min=0, max=1)
- @Description(shortDefinition="If part is a whole resource", formalDefinition="If the parameter is a whole resource." )
- protected Resource resource;
-
- private static final long serialVersionUID = 1120601371L;
-
- /*
- * Constructor
- */
- public ParametersParameterPartComponent() {
- super();
- }
-
- /*
- * Constructor
- */
- public ParametersParameterPartComponent(StringType name) {
- super();
- this.name = name;
- }
-
- /**
- * @return {@link #name} (The name of the parameter (reference to the operation definition).). This is the underlying object with id, value and extensions. The accessor "getName" gives direct access to the value
- */
- public StringType getNameElement() {
- if (this.name == null)
- if (Configuration.errorOnAutoCreate())
- throw new Error("Attempt to auto-create ParametersParameterPartComponent.name");
- else if (Configuration.doAutoCreate())
- this.name = new StringType(); // bb
- return this.name;
- }
-
- public boolean hasNameElement() {
- return this.name != null && !this.name.isEmpty();
- }
-
- public boolean hasName() {
- return this.name != null && !this.name.isEmpty();
- }
-
- /**
- * @param value {@link #name} (The name of the parameter (reference to the operation definition).). This is the underlying object with id, value and extensions. The accessor "getName" gives direct access to the value
- */
- public ParametersParameterPartComponent setNameElement(StringType value) {
- this.name = value;
- return this;
- }
-
- /**
- * @return The name of the parameter (reference to the operation definition).
- */
- public String getName() {
- return this.name == null ? null : this.name.getValue();
- }
-
- /**
- * @param value The name of the parameter (reference to the operation definition).
- */
- public ParametersParameterPartComponent setName(String value) {
- if (this.name == null)
- this.name = new StringType();
- this.name.setValue(value);
- return this;
- }
-
- /**
- * @return {@link #value} (The value of the parameter.)
- */
- public org.hl7.fhir.instance.model.Type getValue() {
- return this.value;
- }
-
- public boolean hasValue() {
- return this.value != null && !this.value.isEmpty();
- }
-
- /**
- * @param value {@link #value} (The value of the parameter.)
- */
- public ParametersParameterPartComponent setValue(org.hl7.fhir.instance.model.Type value) {
- this.value = value;
- return this;
- }
-
- /**
- * @return {@link #resource} (If the parameter is a whole resource.)
- */
- public Resource getResource() {
- return this.resource;
- }
-
- public boolean hasResource() {
- return this.resource != null && !this.resource.isEmpty();
- }
-
- /**
- * @param value {@link #resource} (If the parameter is a whole resource.)
- */
- public ParametersParameterPartComponent setResource(Resource value) {
- this.resource = value;
- return this;
- }
-
- protected void listChildren(List childrenList) {
- super.listChildren(childrenList);
- childrenList.add(new Property("name", "string", "The name of the parameter (reference to the operation definition).", 0, java.lang.Integer.MAX_VALUE, name));
- childrenList.add(new Property("value[x]", "*", "The value of the parameter.", 0, java.lang.Integer.MAX_VALUE, value));
- childrenList.add(new Property("resource", "Resource", "If the parameter is a whole resource.", 0, java.lang.Integer.MAX_VALUE, resource));
- }
-
- public ParametersParameterPartComponent copy() {
- ParametersParameterPartComponent dst = new ParametersParameterPartComponent();
- copyValues(dst);
- dst.name = name == null ? null : name.copy();
- dst.value = value == null ? null : value.copy();
- dst.resource = resource == null ? null : resource.copy();
- return dst;
- }
-
- @Override
- public boolean equalsDeep(Base other) {
- if (!super.equalsDeep(other))
- return false;
- if (!(other instanceof ParametersParameterPartComponent))
- return false;
- ParametersParameterPartComponent o = (ParametersParameterPartComponent) other;
- return compareDeep(name, o.name, true) && compareDeep(value, o.value, true) && compareDeep(resource, o.resource, true)
- ;
- }
-
- @Override
- public boolean equalsShallow(Base other) {
- if (!super.equalsShallow(other))
- return false;
- if (!(other instanceof ParametersParameterPartComponent))
- return false;
- ParametersParameterPartComponent o = (ParametersParameterPartComponent) other;
- return compareValues(name, o.name, true);
- }
-
- public boolean isEmpty() {
- return super.isEmpty() && (name == null || name.isEmpty()) && (value == null || value.isEmpty())
- && (resource == null || resource.isEmpty());
- }
-
}
/**
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Patient.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Patient.java
index ae4c5fcb6fb..3fc97e4d5b1 100644
--- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Patient.java
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Patient.java
@@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
*/
-// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
+// Generated on Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
import java.util.*;
@@ -85,9 +85,9 @@ public class Patient extends DomainResource {
}
public String getSystem() {
switch (this) {
- case REPLACE: return "http://hl7.org.fhir/link-type";
- case REFER: return "http://hl7.org.fhir/link-type";
- case SEEALSO: return "http://hl7.org.fhir/link-type";
+ case REPLACE: return "http://hl7.org/fhir/link-type";
+ case REFER: return "http://hl7.org/fhir/link-type";
+ case SEEALSO: return "http://hl7.org/fhir/link-type";
default: return "?";
}
}
@@ -1052,10 +1052,10 @@ public class Patient extends DomainResource {
protected List contact;
/**
- * This element has a value if the patient is an animal.
+ * This patient is known to be an animal.
*/
@Child(name = "animal", type = {}, order=11, min=0, max=1)
- @Description(shortDefinition="If this patient is an animal (non-human)", formalDefinition="This element has a value if the patient is an animal." )
+ @Description(shortDefinition="This patient is known to be an animal (non-human)", formalDefinition="This patient is known to be an animal." )
protected AnimalComponent animal;
/**
@@ -1346,6 +1346,10 @@ public class Patient extends DomainResource {
return (BooleanType) this.deceased;
}
+ public boolean hasDeceasedBooleanType() throws Exception {
+ return this.deceased instanceof BooleanType;
+ }
+
/**
* @return {@link #deceased} (Indicates if the individual is deceased or not.)
*/
@@ -1355,6 +1359,10 @@ public class Patient extends DomainResource {
return (DateTimeType) this.deceased;
}
+ public boolean hasDeceasedDateTimeType() throws Exception {
+ return this.deceased instanceof DateTimeType;
+ }
+
public boolean hasDeceased() {
return this.deceased != null && !this.deceased.isEmpty();
}
@@ -1447,6 +1455,10 @@ public class Patient extends DomainResource {
return (BooleanType) this.multipleBirth;
}
+ public boolean hasMultipleBirthBooleanType() throws Exception {
+ return this.multipleBirth instanceof BooleanType;
+ }
+
/**
* @return {@link #multipleBirth} (Indicates whether the patient is part of a multiple or indicates the actual birth order.)
*/
@@ -1456,6 +1468,10 @@ public class Patient extends DomainResource {
return (IntegerType) this.multipleBirth;
}
+ public boolean hasMultipleBirthIntegerType() throws Exception {
+ return this.multipleBirth instanceof IntegerType;
+ }
+
public boolean hasMultipleBirth() {
return this.multipleBirth != null && !this.multipleBirth.isEmpty();
}
@@ -1549,7 +1565,7 @@ public class Patient extends DomainResource {
}
/**
- * @return {@link #animal} (This element has a value if the patient is an animal.)
+ * @return {@link #animal} (This patient is known to be an animal.)
*/
public AnimalComponent getAnimal() {
if (this.animal == null)
@@ -1565,7 +1581,7 @@ public class Patient extends DomainResource {
}
/**
- * @param value {@link #animal} (This element has a value if the patient is an animal.)
+ * @param value {@link #animal} (This patient is known to be an animal.)
*/
public Patient setAnimal(AnimalComponent value) {
this.animal = value;
@@ -1803,7 +1819,7 @@ public class Patient extends DomainResource {
childrenList.add(new Property("multipleBirth[x]", "boolean|integer", "Indicates whether the patient is part of a multiple or indicates the actual birth order.", 0, java.lang.Integer.MAX_VALUE, multipleBirth));
childrenList.add(new Property("photo", "Attachment", "Image of the patient.", 0, java.lang.Integer.MAX_VALUE, photo));
childrenList.add(new Property("contact", "", "A contact party (e.g. guardian, partner, friend) for the patient.", 0, java.lang.Integer.MAX_VALUE, contact));
- childrenList.add(new Property("animal", "", "This element has a value if the patient is an animal.", 0, java.lang.Integer.MAX_VALUE, animal));
+ childrenList.add(new Property("animal", "", "This patient is known to be an animal.", 0, java.lang.Integer.MAX_VALUE, animal));
childrenList.add(new Property("communication", "", "Languages which may be used to communicate with the patient about his or her health.", 0, java.lang.Integer.MAX_VALUE, communication));
childrenList.add(new Property("careProvider", "Reference(Organization|Practitioner)", "Patient's nominated care provider.", 0, java.lang.Integer.MAX_VALUE, careProvider));
childrenList.add(new Property("managingOrganization", "Reference(Organization)", "Organization that is the custodian of the patient record.", 0, java.lang.Integer.MAX_VALUE, managingOrganization));
@@ -1926,6 +1942,8 @@ public class Patient extends DomainResource {
public static final String SP_BIRTHDATE = "birthdate";
@SearchParamDefinition(name="deceased", path="Patient.deceased[x]", description="This patient has been marked as deceased, or as a death date entered", type="token" )
public static final String SP_DECEASED = "deceased";
+ @SearchParamDefinition(name="address-state", path="Patient.address.state", description="A state specified in an address", type="string" )
+ public static final String SP_ADDRESSSTATE = "address-state";
@SearchParamDefinition(name="gender", path="Patient.gender", description="Gender of the patient", type="token" )
public static final String SP_GENDER = "gender";
@SearchParamDefinition(name="animal-species", path="Patient.animal.species", description="The species for animal patients", type="token" )
@@ -1938,8 +1956,12 @@ public class Patient extends DomainResource {
public static final String SP_LANGUAGE = "language";
@SearchParamDefinition(name="deathdate", path="Patient.deceased[x]", description="The date of death has been provided and satisfies this search value", type="date" )
public static final String SP_DEATHDATE = "deathdate";
+ @SearchParamDefinition(name="address-postalcode", path="Patient.address.postalCode", description="A postalCode specified in an address", type="string" )
+ public static final String SP_ADDRESSPOSTALCODE = "address-postalcode";
@SearchParamDefinition(name="animal-breed", path="Patient.animal.breed", description="The breed for animal patients", type="token" )
public static final String SP_ANIMALBREED = "animal-breed";
+ @SearchParamDefinition(name="address-country", path="Patient.address.country", description="A country specified in an address", type="string" )
+ public static final String SP_ADDRESSCOUNTRY = "address-country";
@SearchParamDefinition(name="careprovider", path="Patient.careProvider", description="Patient's nominated care provider, could be a care manager, not the organization that manages the record", type="reference" )
public static final String SP_CAREPROVIDER = "careprovider";
@SearchParamDefinition(name="phonetic", path="", description="A portion of either family or given name using some kind of phonetic matching algorithm", type="string" )
@@ -1948,10 +1970,14 @@ public class Patient extends DomainResource {
public static final String SP_ORGANIZATION = "organization";
@SearchParamDefinition(name="name", path="Patient.name", description="A portion of either family or given name of the patient", type="string" )
public static final String SP_NAME = "name";
+ @SearchParamDefinition(name="address-use", path="Patient.address.use", description="A use code specified in an address", type="token" )
+ public static final String SP_ADDRESSUSE = "address-use";
@SearchParamDefinition(name="telecom", path="Patient.telecom", description="The value in any kind of telecom details of the patient", type="token" )
public static final String SP_TELECOM = "telecom";
@SearchParamDefinition(name="family", path="Patient.name.family", description="A portion of the family name of the patient", type="string" )
public static final String SP_FAMILY = "family";
+ @SearchParamDefinition(name="address-city", path="Patient.address.city", description="A city specified in an address", type="string" )
+ public static final String SP_ADDRESSCITY = "address-city";
}
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/PaymentNotice.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/PaymentNotice.java
index 8a181d6180a..a22b89073e3 100644
--- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/PaymentNotice.java
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/PaymentNotice.java
@@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
*/
-// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
+// Generated on Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
import java.util.*;
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/PaymentReconciliation.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/PaymentReconciliation.java
index b043268a6c0..030268151d1 100644
--- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/PaymentReconciliation.java
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/PaymentReconciliation.java
@@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
*/
-// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
+// Generated on Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
import java.util.*;
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Period.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Period.java
index 35358f55c58..f5305b5a560 100644
--- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Period.java
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Period.java
@@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
*/
-// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
+// Generated on Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
import java.util.*;
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Person.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Person.java
index e150fc18aa6..6a111eaa422 100644
--- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Person.java
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Person.java
@@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
*/
-// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
+// Generated on Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
import java.util.*;
@@ -92,10 +92,10 @@ public class Person extends DomainResource {
}
public String getSystem() {
switch (this) {
- case LEVEL1: return "http://hl7.org.fhir/identity-assuranceLevel";
- case LEVEL2: return "http://hl7.org.fhir/identity-assuranceLevel";
- case LEVEL3: return "http://hl7.org.fhir/identity-assuranceLevel";
- case LEVEL4: return "http://hl7.org.fhir/identity-assuranceLevel";
+ case LEVEL1: return "http://hl7.org/fhir/identity-assuranceLevel";
+ case LEVEL2: return "http://hl7.org/fhir/identity-assuranceLevel";
+ case LEVEL3: return "http://hl7.org/fhir/identity-assuranceLevel";
+ case LEVEL4: return "http://hl7.org/fhir/identity-assuranceLevel";
default: return "?";
}
}
@@ -345,9 +345,9 @@ public class Person extends DomainResource {
/**
* The birth date for the person.
*/
- @Child(name = "birthDate", type = {DateTimeType.class}, order=4, min=0, max=1)
- @Description(shortDefinition="The birth date for the person", formalDefinition="The birth date for the person." )
- protected DateTimeType birthDate;
+ @Child(name = "birthDate", type = {DateType.class}, order=4, min=0, max=1)
+ @Description(shortDefinition="The date on which the person was born", formalDefinition="The birth date for the person." )
+ protected DateType birthDate;
/**
* One or more addresses for the person.
@@ -389,7 +389,7 @@ public class Person extends DomainResource {
@Description(shortDefinition="Link to a resource that concerns the same actual person", formalDefinition="Link to a resource that concerns the same actual person." )
protected List link;
- private static final long serialVersionUID = -2072707611L;
+ private static final long serialVersionUID = -117464654L;
/*
* Constructor
@@ -570,12 +570,12 @@ public class Person extends DomainResource {
/**
* @return {@link #birthDate} (The birth date for the person.). This is the underlying object with id, value and extensions. The accessor "getBirthDate" gives direct access to the value
*/
- public DateTimeType getBirthDateElement() {
+ public DateType getBirthDateElement() {
if (this.birthDate == null)
if (Configuration.errorOnAutoCreate())
throw new Error("Attempt to auto-create Person.birthDate");
else if (Configuration.doAutoCreate())
- this.birthDate = new DateTimeType(); // bb
+ this.birthDate = new DateType(); // bb
return this.birthDate;
}
@@ -590,7 +590,7 @@ public class Person extends DomainResource {
/**
* @param value {@link #birthDate} (The birth date for the person.). This is the underlying object with id, value and extensions. The accessor "getBirthDate" gives direct access to the value
*/
- public Person setBirthDateElement(DateTimeType value) {
+ public Person setBirthDateElement(DateType value) {
this.birthDate = value;
return this;
}
@@ -610,7 +610,7 @@ public class Person extends DomainResource {
this.birthDate = null;
else {
if (this.birthDate == null)
- this.birthDate = new DateTimeType();
+ this.birthDate = new DateType();
this.birthDate.setValue(value);
}
return this;
@@ -815,7 +815,7 @@ public class Person extends DomainResource {
childrenList.add(new Property("name", "HumanName", "A name associated with the person.", 0, java.lang.Integer.MAX_VALUE, name));
childrenList.add(new Property("telecom", "ContactPoint", "A contact detail for the person, e.g. a telephone number or an email address.", 0, java.lang.Integer.MAX_VALUE, telecom));
childrenList.add(new Property("gender", "code", "Administrative Gender.", 0, java.lang.Integer.MAX_VALUE, gender));
- childrenList.add(new Property("birthDate", "dateTime", "The birth date for the person.", 0, java.lang.Integer.MAX_VALUE, birthDate));
+ childrenList.add(new Property("birthDate", "date", "The birth date for the person.", 0, java.lang.Integer.MAX_VALUE, birthDate));
childrenList.add(new Property("address", "Address", "One or more addresses for the person.", 0, java.lang.Integer.MAX_VALUE, address));
childrenList.add(new Property("photo", "Attachment", "An image that can be displayed as a thumbnail of the person to enhance the identification of the individual.", 0, java.lang.Integer.MAX_VALUE, photo));
childrenList.add(new Property("managingOrganization", "Reference(Organization)", "The Organization that is the custodian of the person record.", 0, java.lang.Integer.MAX_VALUE, managingOrganization));
@@ -901,28 +901,38 @@ public class Person extends DomainResource {
@SearchParamDefinition(name="identifier", path="Person.identifier", description="A person Identifier", type="token" )
public static final String SP_IDENTIFIER = "identifier";
- @SearchParamDefinition(name="phonetic", path="", description="A portion of name using some kind of phonetic matching algorithm", type="string" )
- public static final String SP_PHONETIC = "phonetic";
@SearchParamDefinition(name="address", path="Person.address", description="An address in any kind of address/part", type="string" )
public static final String SP_ADDRESS = "address";
@SearchParamDefinition(name="birthdate", path="Person.birthDate", description="The person's date of birth", type="date" )
public static final String SP_BIRTHDATE = "birthdate";
+ @SearchParamDefinition(name="address-state", path="Person.address.state", description="A state specified in an address", type="string" )
+ public static final String SP_ADDRESSSTATE = "address-state";
@SearchParamDefinition(name="gender", path="Person.gender", description="The gender of the person", type="token" )
public static final String SP_GENDER = "gender";
@SearchParamDefinition(name="practitioner", path="Person.link.target", description="The Person links to this Practitioner", type="reference" )
public static final String SP_PRACTITIONER = "practitioner";
+ @SearchParamDefinition(name="link", path="Person.link.target", description="Any link has this Patient, Person, RelatedPerson or Practitioner reference", type="reference" )
+ public static final String SP_LINK = "link";
+ @SearchParamDefinition(name="relatedperson", path="Person.link.target", description="The Person links to this RelatedPerson", type="reference" )
+ public static final String SP_RELATEDPERSON = "relatedperson";
+ @SearchParamDefinition(name="address-postalcode", path="Person.address.postalCode", description="A postalCode specified in an address", type="string" )
+ public static final String SP_ADDRESSPOSTALCODE = "address-postalcode";
+ @SearchParamDefinition(name="address-country", path="Person.address.country", description="A country specified in an address", type="string" )
+ public static final String SP_ADDRESSCOUNTRY = "address-country";
+ @SearchParamDefinition(name="phonetic", path="", description="A portion of name using some kind of phonetic matching algorithm", type="string" )
+ public static final String SP_PHONETIC = "phonetic";
@SearchParamDefinition(name="patient", path="Person.link.target", description="The Person links to this Patient", type="reference" )
public static final String SP_PATIENT = "patient";
@SearchParamDefinition(name="organization", path="Person.managingOrganization", description="The organization at which this person record is being managed", type="reference" )
public static final String SP_ORGANIZATION = "organization";
@SearchParamDefinition(name="name", path="Person.name", description="A portion of name in any name part", type="string" )
public static final String SP_NAME = "name";
- @SearchParamDefinition(name="link", path="Person.link.target", description="Any link has this Patient, Person, RelatedPerson or Practitioner reference", type="reference" )
- public static final String SP_LINK = "link";
+ @SearchParamDefinition(name="address-use", path="Person.address.use", description="A use code specified in an address", type="token" )
+ public static final String SP_ADDRESSUSE = "address-use";
@SearchParamDefinition(name="telecom", path="Person.telecom", description="The value in any kind of contact", type="token" )
public static final String SP_TELECOM = "telecom";
- @SearchParamDefinition(name="relatedperson", path="Person.link.target", description="The Person links to this RelatedPerson", type="reference" )
- public static final String SP_RELATEDPERSON = "relatedperson";
+ @SearchParamDefinition(name="address-city", path="Person.address.city", description="A city specified in an address", type="string" )
+ public static final String SP_ADDRESSCITY = "address-city";
}
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Practitioner.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Practitioner.java
index 2a349e523a0..4f1c126c2e0 100644
--- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Practitioner.java
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Practitioner.java
@@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
*/
-// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
+// Generated on Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
import java.util.*;
@@ -706,7 +706,7 @@ public class Practitioner extends DomainResource {
* The date of birth for the practitioner.
*/
@Child(name = "birthDate", type = {DateType.class}, order=5, min=0, max=1)
- @Description(shortDefinition="The date of birth for the practitioner", formalDefinition="The date of birth for the practitioner." )
+ @Description(shortDefinition="The date on which the practitioner was born", formalDefinition="The date of birth for the practitioner." )
protected DateType birthDate;
/**
@@ -1249,7 +1249,7 @@ public class Practitioner extends DomainResource {
@SearchParamDefinition(name="identifier", path="Practitioner.identifier", description="A practitioner's Identifier", type="token" )
public static final String SP_IDENTIFIER = "identifier";
- @SearchParamDefinition(name="given", path="Practitioner.name", description="A portion of the given name", type="string" )
+ @SearchParamDefinition(name="given", path="Practitioner.name.given", description="A portion of the given name", type="string" )
public static final String SP_GIVEN = "given";
@SearchParamDefinition(name="specialty", path="Practitioner.practitionerRole.specialty", description="The practitioner has this specailty at an organization", type="token" )
public static final String SP_SPECIALTY = "specialty";
@@ -1257,20 +1257,30 @@ public class Practitioner extends DomainResource {
public static final String SP_ADDRESS = "address";
@SearchParamDefinition(name="role", path="Practitioner.practitionerRole.role", description="The practitioner can perform this role at for the organization", type="token" )
public static final String SP_ROLE = "role";
+ @SearchParamDefinition(name="address-state", path="Practitioner.address.state", description="A state specified in an address", type="string" )
+ public static final String SP_ADDRESSSTATE = "address-state";
@SearchParamDefinition(name="gender", path="Practitioner.gender", description="Gender of the practitioner", type="token" )
public static final String SP_GENDER = "gender";
- @SearchParamDefinition(name="phonetic", path="Practitioner.name", description="A portion of either family or given name using some kind of phonetic matching algorithm", type="string" )
+ @SearchParamDefinition(name="address-postalcode", path="Practitioner.address.postalCode", description="A postalCode specified in an address", type="string" )
+ public static final String SP_ADDRESSPOSTALCODE = "address-postalcode";
+ @SearchParamDefinition(name="address-country", path="Practitioner.address.country", description="A country specified in an address", type="string" )
+ public static final String SP_ADDRESSCOUNTRY = "address-country";
+ @SearchParamDefinition(name="phonetic", path="", description="A portion of either family or given name using some kind of phonetic matching algorithm", type="string" )
public static final String SP_PHONETIC = "phonetic";
@SearchParamDefinition(name="organization", path="Practitioner.practitionerRole.managingOrganization", description="The identity of the organization the practitioner represents / acts on behalf of", type="reference" )
public static final String SP_ORGANIZATION = "organization";
@SearchParamDefinition(name="name", path="Practitioner.name", description="A portion of either family or given name", type="string" )
public static final String SP_NAME = "name";
+ @SearchParamDefinition(name="address-use", path="Practitioner.address.use", description="A use code specified in an address", type="token" )
+ public static final String SP_ADDRESSUSE = "address-use";
@SearchParamDefinition(name="telecom", path="Practitioner.telecom", description="The value in any kind of contact", type="token" )
public static final String SP_TELECOM = "telecom";
@SearchParamDefinition(name="location", path="Practitioner.practitionerRole.location", description="One of the locations at which this practitioner provides care", type="reference" )
public static final String SP_LOCATION = "location";
- @SearchParamDefinition(name="family", path="Practitioner.name", description="A portion of the family name", type="string" )
+ @SearchParamDefinition(name="family", path="Practitioner.name.family", description="A portion of the family name", type="string" )
public static final String SP_FAMILY = "family";
+ @SearchParamDefinition(name="address-city", path="Practitioner.address.city", description="A city specified in an address", type="string" )
+ public static final String SP_ADDRESSCITY = "address-city";
@SearchParamDefinition(name="communication", path="Practitioner.communication", description="One of the languages that the practitioner can communicate with", type="token" )
public static final String SP_COMMUNICATION = "communication";
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Procedure.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Procedure.java
index 6c0f87a9be7..54324d97975 100644
--- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Procedure.java
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Procedure.java
@@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
*/
-// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
+// Generated on Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
import java.util.*;
@@ -91,10 +91,10 @@ public class Procedure extends DomainResource {
}
public String getSystem() {
switch (this) {
- case INPROGRESS: return "http://hl7.org.fhir/procedure-status";
- case ABORTED: return "http://hl7.org.fhir/procedure-status";
- case COMPLETED: return "http://hl7.org.fhir/procedure-status";
- case ENTEREDINERROR: return "http://hl7.org.fhir/procedure-status";
+ case INPROGRESS: return "http://hl7.org/fhir/procedure-status";
+ case ABORTED: return "http://hl7.org/fhir/procedure-status";
+ case COMPLETED: return "http://hl7.org/fhir/procedure-status";
+ case ENTEREDINERROR: return "http://hl7.org/fhir/procedure-status";
default: return "?";
}
}
@@ -177,8 +177,8 @@ public class Procedure extends DomainResource {
}
public String getSystem() {
switch (this) {
- case CAUSEDBY: return "http://hl7.org.fhir/procedure-relationship-type";
- case BECAUSEOF: return "http://hl7.org.fhir/procedure-relationship-type";
+ case CAUSEDBY: return "http://hl7.org/fhir/procedure-relationship-type";
+ case BECAUSEOF: return "http://hl7.org/fhir/procedure-relationship-type";
default: return "?";
}
}
@@ -260,6 +260,10 @@ public class Procedure extends DomainResource {
return (CodeableConcept) this.site;
}
+ public boolean hasSiteCodeableConcept() throws Exception {
+ return this.site instanceof CodeableConcept;
+ }
+
/**
* @return {@link #site} (Detailed and structured anatomical location information. Multiple locations are allowed - e.g. multiple punch biopsies of a lesion.)
*/
@@ -269,6 +273,10 @@ public class Procedure extends DomainResource {
return (Reference) this.site;
}
+ public boolean hasSiteReference() throws Exception {
+ return this.site instanceof Reference;
+ }
+
public boolean hasSite() {
return this.site != null && !this.site.isEmpty();
}
@@ -1249,6 +1257,10 @@ public class Procedure extends DomainResource {
return (DateTimeType) this.performed;
}
+ public boolean hasPerformedDateTimeType() throws Exception {
+ return this.performed instanceof DateTimeType;
+ }
+
/**
* @return {@link #performed} (The date(time)/period over which the procedure was performed. Allows a period to support complex procedures that span more than one date, and also allows for the length of the procedure to be captured.)
*/
@@ -1258,6 +1270,10 @@ public class Procedure extends DomainResource {
return (Period) this.performed;
}
+ public boolean hasPerformedPeriod() throws Exception {
+ return this.performed instanceof Period;
+ }
+
public boolean hasPerformed() {
return this.performed != null && !this.performed.isEmpty();
}
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/ProcedureRequest.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/ProcedureRequest.java
index 561f629907c..6602659b6de 100644
--- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/ProcedureRequest.java
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/ProcedureRequest.java
@@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
*/
-// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
+// Generated on Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
import java.util.*;
@@ -133,16 +133,16 @@ public class ProcedureRequest extends DomainResource {
}
public String getSystem() {
switch (this) {
- case PROPOSED: return "http://hl7.org.fhir/procedure-request-status";
- case DRAFT: return "http://hl7.org.fhir/procedure-request-status";
- case REQUESTED: return "http://hl7.org.fhir/procedure-request-status";
- case RECEIVED: return "http://hl7.org.fhir/procedure-request-status";
- case ACCEPTED: return "http://hl7.org.fhir/procedure-request-status";
- case INPROGRESS: return "http://hl7.org.fhir/procedure-request-status";
- case COMPLETED: return "http://hl7.org.fhir/procedure-request-status";
- case SUSPENDED: return "http://hl7.org.fhir/procedure-request-status";
- case REJECTED: return "http://hl7.org.fhir/procedure-request-status";
- case ABORTED: return "http://hl7.org.fhir/procedure-request-status";
+ case PROPOSED: return "http://hl7.org/fhir/procedure-request-status";
+ case DRAFT: return "http://hl7.org/fhir/procedure-request-status";
+ case REQUESTED: return "http://hl7.org/fhir/procedure-request-status";
+ case RECEIVED: return "http://hl7.org/fhir/procedure-request-status";
+ case ACCEPTED: return "http://hl7.org/fhir/procedure-request-status";
+ case INPROGRESS: return "http://hl7.org/fhir/procedure-request-status";
+ case COMPLETED: return "http://hl7.org/fhir/procedure-request-status";
+ case SUSPENDED: return "http://hl7.org/fhir/procedure-request-status";
+ case REJECTED: return "http://hl7.org/fhir/procedure-request-status";
+ case ABORTED: return "http://hl7.org/fhir/procedure-request-status";
default: return "?";
}
}
@@ -275,10 +275,10 @@ public class ProcedureRequest extends DomainResource {
}
public String getSystem() {
switch (this) {
- case ROUTINE: return "http://hl7.org.fhir/procedure-request-priority";
- case URGENT: return "http://hl7.org.fhir/procedure-request-priority";
- case STAT: return "http://hl7.org.fhir/procedure-request-priority";
- case ASAP: return "http://hl7.org.fhir/procedure-request-priority";
+ case ROUTINE: return "http://hl7.org/fhir/procedure-request-priority";
+ case URGENT: return "http://hl7.org/fhir/procedure-request-priority";
+ case STAT: return "http://hl7.org/fhir/procedure-request-priority";
+ case ASAP: return "http://hl7.org/fhir/procedure-request-priority";
default: return "?";
}
}
@@ -372,6 +372,10 @@ public class ProcedureRequest extends DomainResource {
return (CodeableConcept) this.site;
}
+ public boolean hasSiteCodeableConcept() throws Exception {
+ return this.site instanceof CodeableConcept;
+ }
+
/**
* @return {@link #site} (Indicates the site on the subject's body where the procedure should be performed ( i.e. the target sites).)
*/
@@ -381,6 +385,10 @@ public class ProcedureRequest extends DomainResource {
return (Reference) this.site;
}
+ public boolean hasSiteReference() throws Exception {
+ return this.site instanceof Reference;
+ }
+
public boolean hasSite() {
return this.site != null && !this.site.isEmpty();
}
@@ -771,6 +779,10 @@ public class ProcedureRequest extends DomainResource {
return (DateTimeType) this.timing;
}
+ public boolean hasTimingDateTimeType() throws Exception {
+ return this.timing instanceof DateTimeType;
+ }
+
/**
* @return {@link #timing} (The timing schedule for the proposed or ordered procedure. The Schedule data type allows many different expressions, for example. "Every 8 hours"; "Three times a day"; "1/2 an hour before breakfast for 10 days from 23-Dec 2011:"; "15 Oct 2013, 17 Oct 2013 and 1 Nov 2013".)
*/
@@ -780,6 +792,10 @@ public class ProcedureRequest extends DomainResource {
return (Period) this.timing;
}
+ public boolean hasTimingPeriod() throws Exception {
+ return this.timing instanceof Period;
+ }
+
/**
* @return {@link #timing} (The timing schedule for the proposed or ordered procedure. The Schedule data type allows many different expressions, for example. "Every 8 hours"; "Three times a day"; "1/2 an hour before breakfast for 10 days from 23-Dec 2011:"; "15 Oct 2013, 17 Oct 2013 and 1 Nov 2013".)
*/
@@ -789,6 +805,10 @@ public class ProcedureRequest extends DomainResource {
return (Timing) this.timing;
}
+ public boolean hasTimingTiming() throws Exception {
+ return this.timing instanceof Timing;
+ }
+
public boolean hasTiming() {
return this.timing != null && !this.timing.isEmpty();
}
@@ -1003,6 +1023,10 @@ public class ProcedureRequest extends DomainResource {
return (BooleanType) this.asNeeded;
}
+ public boolean hasAsNeededBooleanType() throws Exception {
+ return this.asNeeded instanceof BooleanType;
+ }
+
/**
* @return {@link #asNeeded} (If a CodeableConcept is present, it indicates the pre-condition for performing the procedure.)
*/
@@ -1012,6 +1036,10 @@ public class ProcedureRequest extends DomainResource {
return (CodeableConcept) this.asNeeded;
}
+ public boolean hasAsNeededCodeableConcept() throws Exception {
+ return this.asNeeded instanceof CodeableConcept;
+ }
+
public boolean hasAsNeeded() {
return this.asNeeded != null && !this.asNeeded.isEmpty();
}
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/ProcessRequest.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/ProcessRequest.java
index 9bd70c028bb..2596a39549c 100644
--- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/ProcessRequest.java
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/ProcessRequest.java
@@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
*/
-// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
+// Generated on Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
import java.util.*;
@@ -92,10 +92,10 @@ public class ProcessRequest extends DomainResource {
}
public String getSystem() {
switch (this) {
- case CANCEL: return "http://hl7.org.fhir/actionlist";
- case POLL: return "http://hl7.org.fhir/actionlist";
- case REPROCESS: return "http://hl7.org.fhir/actionlist";
- case STATUS: return "http://hl7.org.fhir/actionlist";
+ case CANCEL: return "http://hl7.org/fhir/actionlist";
+ case POLL: return "http://hl7.org/fhir/actionlist";
+ case REPROCESS: return "http://hl7.org/fhir/actionlist";
+ case STATUS: return "http://hl7.org/fhir/actionlist";
default: return "?";
}
}
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/ProcessResponse.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/ProcessResponse.java
index 214e19cc9ff..2426f5715b0 100644
--- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/ProcessResponse.java
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/ProcessResponse.java
@@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
*/
-// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
+// Generated on Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
import java.util.*;
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Provenance.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Provenance.java
index e4efc9aa78f..e72eb1186d7 100644
--- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Provenance.java
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Provenance.java
@@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
*/
-// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
+// Generated on Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
import java.util.*;
@@ -91,10 +91,10 @@ public class Provenance extends DomainResource {
}
public String getSystem() {
switch (this) {
- case DERIVATION: return "http://hl7.org.fhir/provenance-entity-role";
- case REVISION: return "http://hl7.org.fhir/provenance-entity-role";
- case QUOTATION: return "http://hl7.org.fhir/provenance-entity-role";
- case SOURCE: return "http://hl7.org.fhir/provenance-entity-role";
+ case DERIVATION: return "http://hl7.org/fhir/provenance-entity-role";
+ case REVISION: return "http://hl7.org/fhir/provenance-entity-role";
+ case QUOTATION: return "http://hl7.org/fhir/provenance-entity-role";
+ case SOURCE: return "http://hl7.org/fhir/provenance-entity-role";
default: return "?";
}
}
@@ -156,27 +156,25 @@ public class Provenance extends DomainResource {
protected Coding role;
/**
- * The type of participation of the agent.
+ * The individual, device or organization that participated in the event.
*/
- @Child(name = "type", type = {Coding.class}, order=2, min=1, max=1)
- @Description(shortDefinition="Agent Type", formalDefinition="The type of participation of the agent." )
- protected Coding type;
+ @Child(name = "actor", type = {Practitioner.class, RelatedPerson.class, Patient.class, Device.class}, order=2, min=0, max=1)
+ @Description(shortDefinition="Individual, device or organization playing role", formalDefinition="The individual, device or organization that participated in the event." )
+ protected Reference actor;
/**
- * Identity of participant as a Resource or uri.
+ * The actual object that is the target of the reference (The individual, device or organization that participated in the event.)
*/
- @Child(name = "reference", type = {UriType.class, Practitioner.class, RelatedPerson.class, Patient.class, Device.class}, order=3, min=0, max=1)
- @Description(shortDefinition="Identity of agent", formalDefinition="Identity of participant as a Resource or uri." )
- protected Type reference;
+ protected Resource actorTarget;
/**
- * Human-readable description of the participant.
+ * The identify of the agent as known by the authorization system.
*/
- @Child(name = "display", type = {StringType.class}, order=4, min=0, max=1)
- @Description(shortDefinition="Human description of participant", formalDefinition="Human-readable description of the participant." )
- protected StringType display;
+ @Child(name = "userId", type = {Identifier.class}, order=3, min=0, max=1)
+ @Description(shortDefinition="Authorization-system identifier for the agent", formalDefinition="The identify of the agent as known by the authorization system." )
+ protected Identifier userId;
- private static final long serialVersionUID = -689391376L;
+ private static final long serialVersionUID = -1847456681L;
/*
* Constructor
@@ -188,10 +186,9 @@ public class Provenance extends DomainResource {
/*
* Constructor
*/
- public ProvenanceAgentComponent(Coding role, Coding type) {
+ public ProvenanceAgentComponent(Coding role) {
super();
this.role = role;
- this.type = type;
}
/**
@@ -219,130 +216,81 @@ public class Provenance extends DomainResource {
}
/**
- * @return {@link #type} (The type of participation of the agent.)
+ * @return {@link #actor} (The individual, device or organization that participated in the event.)
*/
- public Coding getType() {
- if (this.type == null)
+ public Reference getActor() {
+ if (this.actor == null)
if (Configuration.errorOnAutoCreate())
- throw new Error("Attempt to auto-create ProvenanceAgentComponent.type");
+ throw new Error("Attempt to auto-create ProvenanceAgentComponent.actor");
else if (Configuration.doAutoCreate())
- this.type = new Coding(); // cc
- return this.type;
+ this.actor = new Reference(); // cc
+ return this.actor;
}
- public boolean hasType() {
- return this.type != null && !this.type.isEmpty();
+ public boolean hasActor() {
+ return this.actor != null && !this.actor.isEmpty();
}
/**
- * @param value {@link #type} (The type of participation of the agent.)
+ * @param value {@link #actor} (The individual, device or organization that participated in the event.)
*/
- public ProvenanceAgentComponent setType(Coding value) {
- this.type = value;
+ public ProvenanceAgentComponent setActor(Reference value) {
+ this.actor = value;
return this;
}
/**
- * @return {@link #reference} (Identity of participant as a Resource or uri.)
+ * @return {@link #actor} The actual object that is the target of the reference. The reference library doesn't populate this, but you can use it to hold the resource if you resolve it. (The individual, device or organization that participated in the event.)
*/
- public Type getReference() {
- return this.reference;
+ public Resource getActorTarget() {
+ return this.actorTarget;
}
/**
- * @return {@link #reference} (Identity of participant as a Resource or uri.)
+ * @param value {@link #actor} The actual object that is the target of the reference. The reference library doesn't use these, but you can use it to hold the resource if you resolve it. (The individual, device or organization that participated in the event.)
*/
- public UriType getReferenceUriType() throws Exception {
- if (!(this.reference instanceof UriType))
- throw new Exception("Type mismatch: the type UriType was expected, but "+this.reference.getClass().getName()+" was encountered");
- return (UriType) this.reference;
- }
-
- /**
- * @return {@link #reference} (Identity of participant as a Resource or uri.)
- */
- public Reference getReferenceReference() throws Exception {
- if (!(this.reference instanceof Reference))
- throw new Exception("Type mismatch: the type Reference was expected, but "+this.reference.getClass().getName()+" was encountered");
- return (Reference) this.reference;
- }
-
- public boolean hasReference() {
- return this.reference != null && !this.reference.isEmpty();
- }
-
- /**
- * @param value {@link #reference} (Identity of participant as a Resource or uri.)
- */
- public ProvenanceAgentComponent setReference(Type value) {
- this.reference = value;
+ public ProvenanceAgentComponent setActorTarget(Resource value) {
+ this.actorTarget = value;
return this;
}
/**
- * @return {@link #display} (Human-readable description of the participant.). This is the underlying object with id, value and extensions. The accessor "getDisplay" gives direct access to the value
+ * @return {@link #userId} (The identify of the agent as known by the authorization system.)
*/
- public StringType getDisplayElement() {
- if (this.display == null)
+ public Identifier getUserId() {
+ if (this.userId == null)
if (Configuration.errorOnAutoCreate())
- throw new Error("Attempt to auto-create ProvenanceAgentComponent.display");
+ throw new Error("Attempt to auto-create ProvenanceAgentComponent.userId");
else if (Configuration.doAutoCreate())
- this.display = new StringType(); // bb
- return this.display;
+ this.userId = new Identifier(); // cc
+ return this.userId;
}
- public boolean hasDisplayElement() {
- return this.display != null && !this.display.isEmpty();
- }
-
- public boolean hasDisplay() {
- return this.display != null && !this.display.isEmpty();
+ public boolean hasUserId() {
+ return this.userId != null && !this.userId.isEmpty();
}
/**
- * @param value {@link #display} (Human-readable description of the participant.). This is the underlying object with id, value and extensions. The accessor "getDisplay" gives direct access to the value
+ * @param value {@link #userId} (The identify of the agent as known by the authorization system.)
*/
- public ProvenanceAgentComponent setDisplayElement(StringType value) {
- this.display = value;
- return this;
- }
-
- /**
- * @return Human-readable description of the participant.
- */
- public String getDisplay() {
- return this.display == null ? null : this.display.getValue();
- }
-
- /**
- * @param value Human-readable description of the participant.
- */
- public ProvenanceAgentComponent setDisplay(String value) {
- if (Utilities.noString(value))
- this.display = null;
- else {
- if (this.display == null)
- this.display = new StringType();
- this.display.setValue(value);
- }
+ public ProvenanceAgentComponent setUserId(Identifier value) {
+ this.userId = value;
return this;
}
protected void listChildren(List childrenList) {
super.listChildren(childrenList);
childrenList.add(new Property("role", "Coding", "The function of the agent with respect to the activity.", 0, java.lang.Integer.MAX_VALUE, role));
- childrenList.add(new Property("type", "Coding", "The type of participation of the agent.", 0, java.lang.Integer.MAX_VALUE, type));
- childrenList.add(new Property("reference[x]", "uri|Reference(Practitioner|RelatedPerson|Patient|Device)", "Identity of participant as a Resource or uri.", 0, java.lang.Integer.MAX_VALUE, reference));
- childrenList.add(new Property("display", "string", "Human-readable description of the participant.", 0, java.lang.Integer.MAX_VALUE, display));
+ childrenList.add(new Property("actor", "Reference(Practitioner|RelatedPerson|Patient|Device)", "The individual, device or organization that participated in the event.", 0, java.lang.Integer.MAX_VALUE, actor));
+ childrenList.add(new Property("userId", "Identifier", "The identify of the agent as known by the authorization system.", 0, java.lang.Integer.MAX_VALUE, userId));
}
public ProvenanceAgentComponent copy() {
ProvenanceAgentComponent dst = new ProvenanceAgentComponent();
copyValues(dst);
dst.role = role == null ? null : role.copy();
- dst.type = type == null ? null : type.copy();
- dst.reference = reference == null ? null : reference.copy();
- dst.display = display == null ? null : display.copy();
+ dst.actor = actor == null ? null : actor.copy();
+ dst.userId = userId == null ? null : userId.copy();
return dst;
}
@@ -353,8 +301,8 @@ public class Provenance extends DomainResource {
if (!(other instanceof ProvenanceAgentComponent))
return false;
ProvenanceAgentComponent o = (ProvenanceAgentComponent) other;
- return compareDeep(role, o.role, true) && compareDeep(type, o.type, true) && compareDeep(reference, o.reference, true)
- && compareDeep(display, o.display, true);
+ return compareDeep(role, o.role, true) && compareDeep(actor, o.actor, true) && compareDeep(userId, o.userId, true)
+ ;
}
@Override
@@ -364,12 +312,12 @@ public class Provenance extends DomainResource {
if (!(other instanceof ProvenanceAgentComponent))
return false;
ProvenanceAgentComponent o = (ProvenanceAgentComponent) other;
- return compareValues(display, o.display, true);
+ return true;
}
public boolean isEmpty() {
- return super.isEmpty() && (role == null || role.isEmpty()) && (type == null || type.isEmpty())
- && (reference == null || reference.isEmpty()) && (display == null || display.isEmpty());
+ return super.isEmpty() && (role == null || role.isEmpty()) && (actor == null || actor.isEmpty())
+ && (userId == null || userId.isEmpty());
}
}
@@ -1206,6 +1154,10 @@ public class Provenance extends DomainResource {
@SearchParamDefinition(name="sigtype", path="Provenance.signature.type", description="Indication of the reason the entity signed the object(s)", type="token" )
public static final String SP_SIGTYPE = "sigtype";
+ @SearchParamDefinition(name="agent", path="Provenance.agent.actor", description="Individual, device or organization playing role", type="reference" )
+ public static final String SP_AGENT = "agent";
+ @SearchParamDefinition(name="entitytype", path="Provenance.entity.reference", description="Identity of entity", type="uri" )
+ public static final String SP_ENTITYTYPE = "entitytype";
@SearchParamDefinition(name="patient", path="", description="A patient that the target resource(s) refer to", type="reference" )
public static final String SP_PATIENT = "patient";
@SearchParamDefinition(name="start", path="Provenance.period.start", description="Starting time with inclusive boundary", type="date" )
@@ -1214,10 +1166,10 @@ public class Provenance extends DomainResource {
public static final String SP_END = "end";
@SearchParamDefinition(name="location", path="Provenance.location", description="Where the activity occurred, if relevant", type="reference" )
public static final String SP_LOCATION = "location";
- @SearchParamDefinition(name="partytype", path="Provenance.agent.type", description="Agent Type", type="token" )
- public static final String SP_PARTYTYPE = "partytype";
- @SearchParamDefinition(name="party", path="Provenance.agent.reference[x]", description="Identity of agent", type="reference" )
- public static final String SP_PARTY = "party";
+ @SearchParamDefinition(name="userid", path="Provenance.agent.userId", description="Authorization-system identifier for the agent", type="token" )
+ public static final String SP_USERID = "userid";
+ @SearchParamDefinition(name="entity", path="Provenance.entity.type", description="Entity Type", type="token" )
+ public static final String SP_ENTITY = "entity";
@SearchParamDefinition(name="target", path="Provenance.target", description="Target Reference(s) (usually version specific)", type="reference" )
public static final String SP_TARGET = "target";
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Quantity.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Quantity.java
index aa43048c720..f1b66dd1ee7 100644
--- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Quantity.java
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Quantity.java
@@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
*/
-// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
+// Generated on Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
import java.util.*;
@@ -91,10 +91,10 @@ public class Quantity extends Type implements ICompositeType {
}
public String getSystem() {
switch (this) {
- case LESS_THAN: return "http://hl7.org.fhir/quantity-comparator";
- case LESS_OR_EQUAL: return "http://hl7.org.fhir/quantity-comparator";
- case GREATER_OR_EQUAL: return "http://hl7.org.fhir/quantity-comparator";
- case GREATER_THAN: return "http://hl7.org.fhir/quantity-comparator";
+ case LESS_THAN: return "http://hl7.org/fhir/quantity-comparator";
+ case LESS_OR_EQUAL: return "http://hl7.org/fhir/quantity-comparator";
+ case GREATER_OR_EQUAL: return "http://hl7.org/fhir/quantity-comparator";
+ case GREATER_THAN: return "http://hl7.org/fhir/quantity-comparator";
default: return "?";
}
}
@@ -109,10 +109,10 @@ public class Quantity extends Type implements ICompositeType {
}
public String getDisplay() {
switch (this) {
- case LESS_THAN: return " ";
- case LESS_OR_EQUAL: return " ";
- case GREATER_OR_EQUAL: return " ";
- case GREATER_THAN: return " ";
+ case LESS_THAN: return "Less than";
+ case LESS_OR_EQUAL: return "Less or Equal to";
+ case GREATER_OR_EQUAL: return "Greater or Equal to";
+ case GREATER_THAN: return "Greater than";
default: return "?";
}
}
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Questionnaire.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Questionnaire.java
index c9844e0874d..b8e0b409b24 100644
--- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Questionnaire.java
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Questionnaire.java
@@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
*/
-// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
+// Generated on Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
import java.util.*;
@@ -84,9 +84,9 @@ public class Questionnaire extends DomainResource {
}
public String getSystem() {
switch (this) {
- case DRAFT: return "http://hl7.org.fhir/questionnaire-status";
- case PUBLISHED: return "http://hl7.org.fhir/questionnaire-status";
- case RETIRED: return "http://hl7.org.fhir/questionnaire-status";
+ case DRAFT: return "http://hl7.org/fhir/questionnaire-status";
+ case PUBLISHED: return "http://hl7.org/fhir/questionnaire-status";
+ case RETIRED: return "http://hl7.org/fhir/questionnaire-status";
default: return "?";
}
}
@@ -254,21 +254,21 @@ public class Questionnaire extends DomainResource {
}
public String getSystem() {
switch (this) {
- case BOOLEAN: return "http://hl7.org.fhir/answer-format";
- case DECIMAL: return "http://hl7.org.fhir/answer-format";
- case INTEGER: return "http://hl7.org.fhir/answer-format";
- case DATE: return "http://hl7.org.fhir/answer-format";
- case DATETIME: return "http://hl7.org.fhir/answer-format";
- case INSTANT: return "http://hl7.org.fhir/answer-format";
- case TIME: return "http://hl7.org.fhir/answer-format";
- case STRING: return "http://hl7.org.fhir/answer-format";
- case TEXT: return "http://hl7.org.fhir/answer-format";
- case URL: return "http://hl7.org.fhir/answer-format";
- case CHOICE: return "http://hl7.org.fhir/answer-format";
- case OPENCHOICE: return "http://hl7.org.fhir/answer-format";
- case ATTACHMENT: return "http://hl7.org.fhir/answer-format";
- case REFERENCE: return "http://hl7.org.fhir/answer-format";
- case QUANTITY: return "http://hl7.org.fhir/answer-format";
+ case BOOLEAN: return "http://hl7.org/fhir/answer-format";
+ case DECIMAL: return "http://hl7.org/fhir/answer-format";
+ case INTEGER: return "http://hl7.org/fhir/answer-format";
+ case DATE: return "http://hl7.org/fhir/answer-format";
+ case DATETIME: return "http://hl7.org/fhir/answer-format";
+ case INSTANT: return "http://hl7.org/fhir/answer-format";
+ case TIME: return "http://hl7.org/fhir/answer-format";
+ case STRING: return "http://hl7.org/fhir/answer-format";
+ case TEXT: return "http://hl7.org/fhir/answer-format";
+ case URL: return "http://hl7.org/fhir/answer-format";
+ case CHOICE: return "http://hl7.org/fhir/answer-format";
+ case OPENCHOICE: return "http://hl7.org/fhir/answer-format";
+ case ATTACHMENT: return "http://hl7.org/fhir/answer-format";
+ case REFERENCE: return "http://hl7.org/fhir/answer-format";
+ case QUANTITY: return "http://hl7.org/fhir/answer-format";
default: return "?";
}
}
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/QuestionnaireAnswers.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/QuestionnaireAnswers.java
index 60435aa5af7..a9270570c28 100644
--- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/QuestionnaireAnswers.java
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/QuestionnaireAnswers.java
@@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
*/
-// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
+// Generated on Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
import java.util.*;
@@ -84,9 +84,9 @@ public class QuestionnaireAnswers extends DomainResource {
}
public String getSystem() {
switch (this) {
- case INPROGRESS: return "http://hl7.org.fhir/questionnaire-answers-status";
- case COMPLETED: return "http://hl7.org.fhir/questionnaire-answers-status";
- case AMENDED: return "http://hl7.org.fhir/questionnaire-answers-status";
+ case INPROGRESS: return "http://hl7.org/fhir/questionnaire-answers-status";
+ case COMPLETED: return "http://hl7.org/fhir/questionnaire-answers-status";
+ case AMENDED: return "http://hl7.org/fhir/questionnaire-answers-status";
default: return "?";
}
}
@@ -822,6 +822,10 @@ public class QuestionnaireAnswers extends DomainResource {
return (BooleanType) this.value;
}
+ public boolean hasValueBooleanType() throws Exception {
+ return this.value instanceof BooleanType;
+ }
+
/**
* @return {@link #value} (The answer (or one of the answers) provided by the respondant to the question.)
*/
@@ -831,6 +835,10 @@ public class QuestionnaireAnswers extends DomainResource {
return (DecimalType) this.value;
}
+ public boolean hasValueDecimalType() throws Exception {
+ return this.value instanceof DecimalType;
+ }
+
/**
* @return {@link #value} (The answer (or one of the answers) provided by the respondant to the question.)
*/
@@ -840,6 +848,10 @@ public class QuestionnaireAnswers extends DomainResource {
return (IntegerType) this.value;
}
+ public boolean hasValueIntegerType() throws Exception {
+ return this.value instanceof IntegerType;
+ }
+
/**
* @return {@link #value} (The answer (or one of the answers) provided by the respondant to the question.)
*/
@@ -849,6 +861,10 @@ public class QuestionnaireAnswers extends DomainResource {
return (DateType) this.value;
}
+ public boolean hasValueDateType() throws Exception {
+ return this.value instanceof DateType;
+ }
+
/**
* @return {@link #value} (The answer (or one of the answers) provided by the respondant to the question.)
*/
@@ -858,6 +874,10 @@ public class QuestionnaireAnswers extends DomainResource {
return (DateTimeType) this.value;
}
+ public boolean hasValueDateTimeType() throws Exception {
+ return this.value instanceof DateTimeType;
+ }
+
/**
* @return {@link #value} (The answer (or one of the answers) provided by the respondant to the question.)
*/
@@ -867,6 +887,10 @@ public class QuestionnaireAnswers extends DomainResource {
return (InstantType) this.value;
}
+ public boolean hasValueInstantType() throws Exception {
+ return this.value instanceof InstantType;
+ }
+
/**
* @return {@link #value} (The answer (or one of the answers) provided by the respondant to the question.)
*/
@@ -876,6 +900,10 @@ public class QuestionnaireAnswers extends DomainResource {
return (TimeType) this.value;
}
+ public boolean hasValueTimeType() throws Exception {
+ return this.value instanceof TimeType;
+ }
+
/**
* @return {@link #value} (The answer (or one of the answers) provided by the respondant to the question.)
*/
@@ -885,6 +913,10 @@ public class QuestionnaireAnswers extends DomainResource {
return (StringType) this.value;
}
+ public boolean hasValueStringType() throws Exception {
+ return this.value instanceof StringType;
+ }
+
/**
* @return {@link #value} (The answer (or one of the answers) provided by the respondant to the question.)
*/
@@ -894,6 +926,10 @@ public class QuestionnaireAnswers extends DomainResource {
return (UriType) this.value;
}
+ public boolean hasValueUriType() throws Exception {
+ return this.value instanceof UriType;
+ }
+
/**
* @return {@link #value} (The answer (or one of the answers) provided by the respondant to the question.)
*/
@@ -903,6 +939,10 @@ public class QuestionnaireAnswers extends DomainResource {
return (Attachment) this.value;
}
+ public boolean hasValueAttachment() throws Exception {
+ return this.value instanceof Attachment;
+ }
+
/**
* @return {@link #value} (The answer (or one of the answers) provided by the respondant to the question.)
*/
@@ -912,6 +952,10 @@ public class QuestionnaireAnswers extends DomainResource {
return (Coding) this.value;
}
+ public boolean hasValueCoding() throws Exception {
+ return this.value instanceof Coding;
+ }
+
/**
* @return {@link #value} (The answer (or one of the answers) provided by the respondant to the question.)
*/
@@ -921,6 +965,10 @@ public class QuestionnaireAnswers extends DomainResource {
return (Quantity) this.value;
}
+ public boolean hasValueQuantity() throws Exception {
+ return this.value instanceof Quantity;
+ }
+
/**
* @return {@link #value} (The answer (or one of the answers) provided by the respondant to the question.)
*/
@@ -930,6 +978,10 @@ public class QuestionnaireAnswers extends DomainResource {
return (Reference) this.value;
}
+ public boolean hasValueReference() throws Exception {
+ return this.value instanceof Reference;
+ }
+
public boolean hasValue() {
return this.value != null && !this.value.isEmpty();
}
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Range.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Range.java
index 518ae7a32b3..56dda6c2233 100644
--- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Range.java
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Range.java
@@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
*/
-// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
+// Generated on Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
import java.util.*;
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Ratio.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Ratio.java
index 85abb34281e..0e8f38d2f7f 100644
--- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Ratio.java
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Ratio.java
@@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
*/
-// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
+// Generated on Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
import java.util.*;
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Reference.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Reference.java
index f13cd948691..cd391ceb0a2 100644
--- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Reference.java
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Reference.java
@@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
*/
-// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
+// Generated on Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
import java.util.*;
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/ReferralRequest.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/ReferralRequest.java
index 7816d41f508..64eca5f13a0 100644
--- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/ReferralRequest.java
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/ReferralRequest.java
@@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
*/
-// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
+// Generated on Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
import java.util.*;
@@ -112,13 +112,13 @@ public class ReferralRequest extends DomainResource {
}
public String getSystem() {
switch (this) {
- case DRAFT: return "http://hl7.org.fhir/referralstatus";
- case REQUESTED: return "http://hl7.org.fhir/referralstatus";
- case ACTIVE: return "http://hl7.org.fhir/referralstatus";
- case CANCELLED: return "http://hl7.org.fhir/referralstatus";
- case ACCEPTED: return "http://hl7.org.fhir/referralstatus";
- case REJECTED: return "http://hl7.org.fhir/referralstatus";
- case COMPLETED: return "http://hl7.org.fhir/referralstatus";
+ case DRAFT: return "http://hl7.org/fhir/referralstatus";
+ case REQUESTED: return "http://hl7.org/fhir/referralstatus";
+ case ACTIVE: return "http://hl7.org/fhir/referralstatus";
+ case CANCELLED: return "http://hl7.org/fhir/referralstatus";
+ case ACCEPTED: return "http://hl7.org/fhir/referralstatus";
+ case REJECTED: return "http://hl7.org/fhir/referralstatus";
+ case COMPLETED: return "http://hl7.org/fhir/referralstatus";
default: return "?";
}
}
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/RelatedPerson.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/RelatedPerson.java
index 1b7cca05b6d..5c8c7989cc3 100644
--- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/RelatedPerson.java
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/RelatedPerson.java
@@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
*/
-// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
+// Generated on Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
import java.util.*;
@@ -94,28 +94,35 @@ public class RelatedPerson extends DomainResource {
@Description(shortDefinition="male | female | other | unknown", formalDefinition="Administrative Gender - the gender that the person is considered to have for administration and record keeping purposes." )
protected Enumeration gender;
+ /**
+ * The date on which the related person was born.
+ */
+ @Child(name = "birthDate", type = {DateType.class}, order=6, min=0, max=1)
+ @Description(shortDefinition="The date on which the related person was born", formalDefinition="The date on which the related person was born." )
+ protected DateType birthDate;
+
/**
* Address where the related person can be contacted or visited.
*/
- @Child(name = "address", type = {Address.class}, order=6, min=0, max=1)
+ @Child(name = "address", type = {Address.class}, order=7, min=0, max=1)
@Description(shortDefinition="Address where the related person can be contacted or visited", formalDefinition="Address where the related person can be contacted or visited." )
protected Address address;
/**
* Image of the person.
*/
- @Child(name = "photo", type = {Attachment.class}, order=7, min=0, max=Child.MAX_UNLIMITED)
+ @Child(name = "photo", type = {Attachment.class}, order=8, min=0, max=Child.MAX_UNLIMITED)
@Description(shortDefinition="Image of the person", formalDefinition="Image of the person." )
protected List photo;
/**
* The period of time that this relationship is considered to be valid. If there are no dates defined, then the interval is unknown.
*/
- @Child(name = "period", type = {Period.class}, order=8, min=0, max=1)
+ @Child(name = "period", type = {Period.class}, order=9, min=0, max=1)
@Description(shortDefinition="Period of time that this relationship is considered valid", formalDefinition="The period of time that this relationship is considered to be valid. If there are no dates defined, then the interval is unknown." )
protected Period period;
- private static final long serialVersionUID = 1871047258L;
+ private static final long serialVersionUID = 1434295859L;
/*
* Constructor
@@ -353,6 +360,55 @@ public class RelatedPerson extends DomainResource {
return this;
}
+ /**
+ * @return {@link #birthDate} (The date on which the related person was born.). This is the underlying object with id, value and extensions. The accessor "getBirthDate" gives direct access to the value
+ */
+ public DateType getBirthDateElement() {
+ if (this.birthDate == null)
+ if (Configuration.errorOnAutoCreate())
+ throw new Error("Attempt to auto-create RelatedPerson.birthDate");
+ else if (Configuration.doAutoCreate())
+ this.birthDate = new DateType(); // bb
+ return this.birthDate;
+ }
+
+ public boolean hasBirthDateElement() {
+ return this.birthDate != null && !this.birthDate.isEmpty();
+ }
+
+ public boolean hasBirthDate() {
+ return this.birthDate != null && !this.birthDate.isEmpty();
+ }
+
+ /**
+ * @param value {@link #birthDate} (The date on which the related person was born.). This is the underlying object with id, value and extensions. The accessor "getBirthDate" gives direct access to the value
+ */
+ public RelatedPerson setBirthDateElement(DateType value) {
+ this.birthDate = value;
+ return this;
+ }
+
+ /**
+ * @return The date on which the related person was born.
+ */
+ public Date getBirthDate() {
+ return this.birthDate == null ? null : this.birthDate.getValue();
+ }
+
+ /**
+ * @param value The date on which the related person was born.
+ */
+ public RelatedPerson setBirthDate(Date value) {
+ if (value == null)
+ this.birthDate = null;
+ else {
+ if (this.birthDate == null)
+ this.birthDate = new DateType();
+ this.birthDate.setValue(value);
+ }
+ return this;
+ }
+
/**
* @return {@link #address} (Address where the related person can be contacted or visited.)
*/
@@ -449,6 +505,7 @@ public class RelatedPerson extends DomainResource {
childrenList.add(new Property("name", "HumanName", "A name associated with the person.", 0, java.lang.Integer.MAX_VALUE, name));
childrenList.add(new Property("telecom", "ContactPoint", "A contact detail for the person, e.g. a telephone number or an email address.", 0, java.lang.Integer.MAX_VALUE, telecom));
childrenList.add(new Property("gender", "code", "Administrative Gender - the gender that the person is considered to have for administration and record keeping purposes.", 0, java.lang.Integer.MAX_VALUE, gender));
+ childrenList.add(new Property("birthDate", "date", "The date on which the related person was born.", 0, java.lang.Integer.MAX_VALUE, birthDate));
childrenList.add(new Property("address", "Address", "Address where the related person can be contacted or visited.", 0, java.lang.Integer.MAX_VALUE, address));
childrenList.add(new Property("photo", "Attachment", "Image of the person.", 0, java.lang.Integer.MAX_VALUE, photo));
childrenList.add(new Property("period", "Period", "The period of time that this relationship is considered to be valid. If there are no dates defined, then the interval is unknown.", 0, java.lang.Integer.MAX_VALUE, period));
@@ -471,6 +528,7 @@ public class RelatedPerson extends DomainResource {
dst.telecom.add(i.copy());
};
dst.gender = gender == null ? null : gender.copy();
+ dst.birthDate = birthDate == null ? null : birthDate.copy();
dst.address = address == null ? null : address.copy();
if (photo != null) {
dst.photo = new ArrayList();
@@ -494,8 +552,8 @@ public class RelatedPerson extends DomainResource {
RelatedPerson o = (RelatedPerson) other;
return compareDeep(identifier, o.identifier, true) && compareDeep(patient, o.patient, true) && compareDeep(relationship, o.relationship, true)
&& compareDeep(name, o.name, true) && compareDeep(telecom, o.telecom, true) && compareDeep(gender, o.gender, true)
- && compareDeep(address, o.address, true) && compareDeep(photo, o.photo, true) && compareDeep(period, o.period, true)
- ;
+ && compareDeep(birthDate, o.birthDate, true) && compareDeep(address, o.address, true) && compareDeep(photo, o.photo, true)
+ && compareDeep(period, o.period, true);
}
@Override
@@ -505,14 +563,14 @@ public class RelatedPerson extends DomainResource {
if (!(other instanceof RelatedPerson))
return false;
RelatedPerson o = (RelatedPerson) other;
- return compareValues(gender, o.gender, true);
+ return compareValues(gender, o.gender, true) && compareValues(birthDate, o.birthDate, true);
}
public boolean isEmpty() {
return super.isEmpty() && (identifier == null || identifier.isEmpty()) && (patient == null || patient.isEmpty())
&& (relationship == null || relationship.isEmpty()) && (name == null || name.isEmpty()) && (telecom == null || telecom.isEmpty())
- && (gender == null || gender.isEmpty()) && (address == null || address.isEmpty()) && (photo == null || photo.isEmpty())
- && (period == null || period.isEmpty());
+ && (gender == null || gender.isEmpty()) && (birthDate == null || birthDate.isEmpty()) && (address == null || address.isEmpty())
+ && (photo == null || photo.isEmpty()) && (period == null || period.isEmpty());
}
@Override
@@ -522,18 +580,30 @@ public class RelatedPerson extends DomainResource {
@SearchParamDefinition(name="identifier", path="RelatedPerson.identifier", description="A patient Identifier", type="token" )
public static final String SP_IDENTIFIER = "identifier";
- @SearchParamDefinition(name="phonetic", path="", description="A portion of name using some kind of phonetic matching algorithm", type="string" )
- public static final String SP_PHONETIC = "phonetic";
@SearchParamDefinition(name="address", path="RelatedPerson.address", description="An address in any kind of address/part", type="string" )
public static final String SP_ADDRESS = "address";
+ @SearchParamDefinition(name="birthdate", path="RelatedPerson.birthDate", description="The Related Person's date of birth", type="date" )
+ public static final String SP_BIRTHDATE = "birthdate";
+ @SearchParamDefinition(name="address-state", path="RelatedPerson.address.state", description="A state specified in an address", type="string" )
+ public static final String SP_ADDRESSSTATE = "address-state";
@SearchParamDefinition(name="gender", path="RelatedPerson.gender", description="Gender of the person", type="token" )
public static final String SP_GENDER = "gender";
+ @SearchParamDefinition(name="address-postalcode", path="RelatedPerson.address.postalCode", description="A postalCode specified in an address", type="string" )
+ public static final String SP_ADDRESSPOSTALCODE = "address-postalcode";
+ @SearchParamDefinition(name="address-country", path="RelatedPerson.address.country", description="A country specified in an address", type="string" )
+ public static final String SP_ADDRESSCOUNTRY = "address-country";
+ @SearchParamDefinition(name="phonetic", path="", description="A portion of name using some kind of phonetic matching algorithm", type="string" )
+ public static final String SP_PHONETIC = "phonetic";
@SearchParamDefinition(name="patient", path="RelatedPerson.patient", description="The patient this person is related to", type="reference" )
public static final String SP_PATIENT = "patient";
@SearchParamDefinition(name="name", path="RelatedPerson.name", description="A portion of name in any name part", type="string" )
public static final String SP_NAME = "name";
+ @SearchParamDefinition(name="address-use", path="RelatedPerson.address.use", description="A use code specified in an address", type="token" )
+ public static final String SP_ADDRESSUSE = "address-use";
@SearchParamDefinition(name="telecom", path="RelatedPerson.telecom", description="The value in any kind of contact", type="token" )
public static final String SP_TELECOM = "telecom";
+ @SearchParamDefinition(name="address-city", path="RelatedPerson.address.city", description="A city specified in an address", type="string" )
+ public static final String SP_ADDRESSCITY = "address-city";
}
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Resource.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Resource.java
index 92aaabd7bb3..97ce6545f2b 100644
--- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Resource.java
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Resource.java
@@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
*/
-// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
+// Generated on Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
import java.util.*;
@@ -47,10 +47,10 @@ import org.hl7.fhir.instance.model.api.*;
public abstract class Resource extends BaseResource implements IAnyResource {
/**
- * The logical id of the resource, as used in the url for the resoure. Once assigned, this value never changes.
+ * The logical id of the resource, as used in the url for the resource. Once assigned, this value never changes.
*/
@Child(name = "id", type = {IdType.class}, order=0, min=0, max=1)
- @Description(shortDefinition="Logical id of this artefact", formalDefinition="The logical id of the resource, as used in the url for the resoure. Once assigned, this value never changes." )
+ @Description(shortDefinition="Logical id of this artifact", formalDefinition="The logical id of the resource, as used in the url for the resource. Once assigned, this value never changes." )
protected IdType id;
/**
@@ -84,7 +84,7 @@ public abstract class Resource extends BaseResource implements IAnyResource {
}
/**
- * @return {@link #id} (The logical id of the resource, as used in the url for the resoure. Once assigned, this value never changes.). This is the underlying object with id, value and extensions. The accessor "getId" gives direct access to the value
+ * @return {@link #id} (The logical id of the resource, as used in the url for the resource. Once assigned, this value never changes.). This is the underlying object with id, value and extensions. The accessor "getId" gives direct access to the value
*/
public IdType getIdElement() {
if (this.id == null)
@@ -104,7 +104,7 @@ public abstract class Resource extends BaseResource implements IAnyResource {
}
/**
- * @param value {@link #id} (The logical id of the resource, as used in the url for the resoure. Once assigned, this value never changes.). This is the underlying object with id, value and extensions. The accessor "getId" gives direct access to the value
+ * @param value {@link #id} (The logical id of the resource, as used in the url for the resource. Once assigned, this value never changes.). This is the underlying object with id, value and extensions. The accessor "getId" gives direct access to the value
*/
public Resource setIdElement(IdType value) {
this.id = value;
@@ -112,14 +112,14 @@ public abstract class Resource extends BaseResource implements IAnyResource {
}
/**
- * @return The logical id of the resource, as used in the url for the resoure. Once assigned, this value never changes.
+ * @return The logical id of the resource, as used in the url for the resource. Once assigned, this value never changes.
*/
public String getId() {
return this.id == null ? null : this.id.getValue();
}
/**
- * @param value The logical id of the resource, as used in the url for the resoure. Once assigned, this value never changes.
+ * @param value The logical id of the resource, as used in the url for the resource. Once assigned, this value never changes.
*/
public Resource setId(String value) {
if (Utilities.noString(value))
@@ -255,7 +255,7 @@ public abstract class Resource extends BaseResource implements IAnyResource {
}
protected void listChildren(List childrenList) {
- childrenList.add(new Property("id", "id", "The logical id of the resource, as used in the url for the resoure. Once assigned, this value never changes.", 0, java.lang.Integer.MAX_VALUE, id));
+ childrenList.add(new Property("id", "id", "The logical id of the resource, as used in the url for the resource. Once assigned, this value never changes.", 0, java.lang.Integer.MAX_VALUE, id));
childrenList.add(new Property("meta", "Meta", "The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content may not always be associated with version changes to the resource.", 0, java.lang.Integer.MAX_VALUE, meta));
childrenList.add(new Property("implicitRules", "uri", "A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content.", 0, java.lang.Integer.MAX_VALUE, implicitRules));
childrenList.add(new Property("language", "code", "The base language in which the resource is written.", 0, java.lang.Integer.MAX_VALUE, language));
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/ResourceFactory.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/ResourceFactory.java
index 973b60f5ae6..5cbb1a55556 100644
--- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/ResourceFactory.java
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/ResourceFactory.java
@@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
*/
-// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
+// Generated on Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
public class ResourceFactory extends Factory {
@@ -38,6 +38,8 @@ public class ResourceFactory extends Factory {
return new Appointment();
if ("ReferralRequest".equals(name))
return new ReferralRequest();
+ if ("Account".equals(name))
+ return new Account();
if ("Provenance".equals(name))
return new Provenance();
if ("Questionnaire".equals(name))
@@ -144,6 +146,8 @@ public class ResourceFactory extends Factory {
return new PaymentNotice();
if ("Organization".equals(name))
return new Organization();
+ if ("ImplementationGuide".equals(name))
+ return new ImplementationGuide();
if ("ClaimResponse".equals(name))
return new ClaimResponse();
if ("EligibilityRequest".equals(name))
@@ -229,22 +233,10 @@ public class ResourceFactory extends Factory {
return new Meta();
if ("Address".equals(name))
return new Address();
- if ("Reference".equals(name))
- return new Reference();
- if ("Quantity".equals(name))
- return new Quantity();
- if ("Period".equals(name))
- return new Period();
if ("Attachment".equals(name))
return new Attachment();
- if ("Duration".equals(name))
- return new Duration();
if ("Count".equals(name))
return new Count();
- if ("Range".equals(name))
- return new Range();
- if ("Extension".equals(name))
- return new Extension();
if ("Money".equals(name))
return new Money();
if ("HumanName".equals(name))
@@ -257,20 +249,34 @@ public class ResourceFactory extends Factory {
return new Narrative();
if ("Coding".equals(name))
return new Coding();
- if ("Signature".equals(name))
- return new Signature();
if ("SampledData".equals(name))
return new SampledData();
if ("Ratio".equals(name))
return new Ratio();
- if ("Timing".equals(name))
- return new Timing();
if ("ElementDefinition".equals(name))
return new ElementDefinition();
if ("Distance".equals(name))
return new Distance();
if ("Age".equals(name))
return new Age();
+ if ("Reference".equals(name))
+ return new Reference();
+ if ("Quantity".equals(name))
+ return new Quantity();
+ if ("Period".equals(name))
+ return new Period();
+ if ("Duration".equals(name))
+ return new Duration();
+ if ("Range".equals(name))
+ return new Range();
+ if ("Annotation".equals(name))
+ return new Annotation();
+ if ("Extension".equals(name))
+ return new Extension();
+ if ("Signature".equals(name))
+ return new Signature();
+ if ("Timing".equals(name))
+ return new Timing();
if ("CodeableConcept".equals(name))
return new CodeableConcept();
else
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/ResourceType.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/ResourceType.java
index 1eafc67587f..0dbd1b96576 100644
--- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/ResourceType.java
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/ResourceType.java
@@ -1,291 +1,297 @@
package org.hl7.fhir.instance.model;
-// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
+// Generated on Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
public enum ResourceType {
+ Account,
+ AllergyIntolerance,
Appointment,
- ReferralRequest,
+ AppointmentResponse,
+ AuditEvent,
+ Basic,
+ Binary,
+ BodySite,
+ Bundle,
+ CarePlan,
+ Claim,
+ ClaimResponse,
+ ClinicalImpression,
+ Communication,
+ CommunicationRequest,
+ Composition,
+ ConceptMap,
+ Condition,
+ Conformance,
+ Contract,
+ Contraindication,
+ Coverage,
+ DataElement,
+ Device,
+ DeviceComponent,
+ DeviceMetric,
+ DeviceUseRequest,
+ DeviceUseStatement,
+ DiagnosticOrder,
+ DiagnosticReport,
+ DocumentManifest,
+ DocumentReference,
+ EligibilityRequest,
+ EligibilityResponse,
+ Encounter,
+ EnrollmentRequest,
+ EnrollmentResponse,
+ EpisodeOfCare,
+ ExplanationOfBenefit,
+ FamilyMemberHistory,
+ Flag,
+ Goal,
+ Group,
+ HealthcareService,
+ ImagingObjectSelection,
+ ImagingStudy,
+ Immunization,
+ ImmunizationRecommendation,
+ ImplementationGuide,
+ List,
+ Location,
+ Media,
+ Medication,
+ MedicationAdministration,
+ MedicationDispense,
+ MedicationPrescription,
+ MedicationStatement,
+ MessageHeader,
+ NamingSystem,
+ NutritionOrder,
+ Observation,
+ OperationDefinition,
+ OperationOutcome,
+ Order,
+ OrderResponse,
+ Organization,
+ Parameters,
+ Patient,
+ PaymentNotice,
+ PaymentReconciliation,
+ Person,
+ Practitioner,
+ Procedure,
+ ProcedureRequest,
+ ProcessRequest,
+ ProcessResponse,
Provenance,
Questionnaire,
- ExplanationOfBenefit,
- DocumentManifest,
- Specimen,
- AllergyIntolerance,
- CarePlan,
- Goal,
- StructureDefinition,
- EnrollmentRequest,
- EpisodeOfCare,
- MedicationPrescription,
- OperationOutcome,
- Medication,
- Procedure,
- List,
- ConceptMap,
- Subscription,
- ValueSet,
- OperationDefinition,
- DocumentReference,
- Order,
- Immunization,
- Device,
- VisionPrescription,
- Media,
- Conformance,
- ProcedureRequest,
- EligibilityResponse,
- DeviceUseRequest,
- DeviceMetric,
- Flag,
- RelatedPerson,
- SupplyRequest,
- Practitioner,
- AppointmentResponse,
- Observation,
- MedicationAdministration,
- Slot,
- Contraindication,
- EnrollmentResponse,
- Binary,
- MedicationStatement,
- Contract,
- Person,
- CommunicationRequest,
- RiskAssessment,
- TestScript,
- Basic,
- Group,
- PaymentNotice,
- Organization,
- ClaimResponse,
- EligibilityRequest,
- ProcessRequest,
- MedicationDispense,
- Supply,
- DiagnosticReport,
- ImagingStudy,
- ImagingObjectSelection,
- HealthcareService,
- DataElement,
- DeviceComponent,
- FamilyMemberHistory,
QuestionnaireAnswers,
- NutritionOrder,
- Encounter,
- Substance,
- AuditEvent,
- SearchParameter,
- PaymentReconciliation,
- Communication,
- Condition,
- Composition,
- Bundle,
- DiagnosticOrder,
- Patient,
- OrderResponse,
- Coverage,
- DeviceUseStatement,
- ProcessResponse,
- NamingSystem,
+ ReferralRequest,
+ RelatedPerson,
+ RiskAssessment,
Schedule,
+ SearchParameter,
+ Slot,
+ Specimen,
+ StructureDefinition,
+ Subscription,
+ Substance,
+ Supply,
SupplyDelivery,
- ClinicalImpression,
- MessageHeader,
- Claim,
- ImmunizationRecommendation,
- Location,
- BodySite,
- Parameters;
+ SupplyRequest,
+ TestScript,
+ ValueSet,
+ VisionPrescription;
public String getPath() {;
switch (this) {
+ case Account:
+ return "account";
+ case AllergyIntolerance:
+ return "allergyintolerance";
case Appointment:
return "appointment";
- case ReferralRequest:
- return "referralrequest";
+ case AppointmentResponse:
+ return "appointmentresponse";
+ case AuditEvent:
+ return "auditevent";
+ case Basic:
+ return "basic";
+ case Binary:
+ return "binary";
+ case BodySite:
+ return "bodysite";
+ case Bundle:
+ return "bundle";
+ case CarePlan:
+ return "careplan";
+ case Claim:
+ return "claim";
+ case ClaimResponse:
+ return "claimresponse";
+ case ClinicalImpression:
+ return "clinicalimpression";
+ case Communication:
+ return "communication";
+ case CommunicationRequest:
+ return "communicationrequest";
+ case Composition:
+ return "composition";
+ case ConceptMap:
+ return "conceptmap";
+ case Condition:
+ return "condition";
+ case Conformance:
+ return "conformance";
+ case Contract:
+ return "contract";
+ case Contraindication:
+ return "contraindication";
+ case Coverage:
+ return "coverage";
+ case DataElement:
+ return "dataelement";
+ case Device:
+ return "device";
+ case DeviceComponent:
+ return "devicecomponent";
+ case DeviceMetric:
+ return "devicemetric";
+ case DeviceUseRequest:
+ return "deviceuserequest";
+ case DeviceUseStatement:
+ return "deviceusestatement";
+ case DiagnosticOrder:
+ return "diagnosticorder";
+ case DiagnosticReport:
+ return "diagnosticreport";
+ case DocumentManifest:
+ return "documentmanifest";
+ case DocumentReference:
+ return "documentreference";
+ case EligibilityRequest:
+ return "eligibilityrequest";
+ case EligibilityResponse:
+ return "eligibilityresponse";
+ case Encounter:
+ return "encounter";
+ case EnrollmentRequest:
+ return "enrollmentrequest";
+ case EnrollmentResponse:
+ return "enrollmentresponse";
+ case EpisodeOfCare:
+ return "episodeofcare";
+ case ExplanationOfBenefit:
+ return "explanationofbenefit";
+ case FamilyMemberHistory:
+ return "familymemberhistory";
+ case Flag:
+ return "flag";
+ case Goal:
+ return "goal";
+ case Group:
+ return "group";
+ case HealthcareService:
+ return "healthcareservice";
+ case ImagingObjectSelection:
+ return "imagingobjectselection";
+ case ImagingStudy:
+ return "imagingstudy";
+ case Immunization:
+ return "immunization";
+ case ImmunizationRecommendation:
+ return "immunizationrecommendation";
+ case ImplementationGuide:
+ return "implementationguide";
+ case List:
+ return "list";
+ case Location:
+ return "location";
+ case Media:
+ return "media";
+ case Medication:
+ return "medication";
+ case MedicationAdministration:
+ return "medicationadministration";
+ case MedicationDispense:
+ return "medicationdispense";
+ case MedicationPrescription:
+ return "medicationprescription";
+ case MedicationStatement:
+ return "medicationstatement";
+ case MessageHeader:
+ return "messageheader";
+ case NamingSystem:
+ return "namingsystem";
+ case NutritionOrder:
+ return "nutritionorder";
+ case Observation:
+ return "observation";
+ case OperationDefinition:
+ return "operationdefinition";
+ case OperationOutcome:
+ return "operationoutcome";
+ case Order:
+ return "order";
+ case OrderResponse:
+ return "orderresponse";
+ case Organization:
+ return "organization";
+ case Parameters:
+ return "parameters";
+ case Patient:
+ return "patient";
+ case PaymentNotice:
+ return "paymentnotice";
+ case PaymentReconciliation:
+ return "paymentreconciliation";
+ case Person:
+ return "person";
+ case Practitioner:
+ return "practitioner";
+ case Procedure:
+ return "procedure";
+ case ProcedureRequest:
+ return "procedurerequest";
+ case ProcessRequest:
+ return "processrequest";
+ case ProcessResponse:
+ return "processresponse";
case Provenance:
return "provenance";
case Questionnaire:
return "questionnaire";
- case ExplanationOfBenefit:
- return "explanationofbenefit";
- case DocumentManifest:
- return "documentmanifest";
- case Specimen:
- return "specimen";
- case AllergyIntolerance:
- return "allergyintolerance";
- case CarePlan:
- return "careplan";
- case Goal:
- return "goal";
- case StructureDefinition:
- return "structuredefinition";
- case EnrollmentRequest:
- return "enrollmentrequest";
- case EpisodeOfCare:
- return "episodeofcare";
- case MedicationPrescription:
- return "medicationprescription";
- case OperationOutcome:
- return "operationoutcome";
- case Medication:
- return "medication";
- case Procedure:
- return "procedure";
- case List:
- return "list";
- case ConceptMap:
- return "conceptmap";
- case Subscription:
- return "subscription";
- case ValueSet:
- return "valueset";
- case OperationDefinition:
- return "operationdefinition";
- case DocumentReference:
- return "documentreference";
- case Order:
- return "order";
- case Immunization:
- return "immunization";
- case Device:
- return "device";
- case VisionPrescription:
- return "visionprescription";
- case Media:
- return "media";
- case Conformance:
- return "conformance";
- case ProcedureRequest:
- return "procedurerequest";
- case EligibilityResponse:
- return "eligibilityresponse";
- case DeviceUseRequest:
- return "deviceuserequest";
- case DeviceMetric:
- return "devicemetric";
- case Flag:
- return "flag";
- case RelatedPerson:
- return "relatedperson";
- case SupplyRequest:
- return "supplyrequest";
- case Practitioner:
- return "practitioner";
- case AppointmentResponse:
- return "appointmentresponse";
- case Observation:
- return "observation";
- case MedicationAdministration:
- return "medicationadministration";
- case Slot:
- return "slot";
- case Contraindication:
- return "contraindication";
- case EnrollmentResponse:
- return "enrollmentresponse";
- case Binary:
- return "binary";
- case MedicationStatement:
- return "medicationstatement";
- case Contract:
- return "contract";
- case Person:
- return "person";
- case CommunicationRequest:
- return "communicationrequest";
- case RiskAssessment:
- return "riskassessment";
- case TestScript:
- return "testscript";
- case Basic:
- return "basic";
- case Group:
- return "group";
- case PaymentNotice:
- return "paymentnotice";
- case Organization:
- return "organization";
- case ClaimResponse:
- return "claimresponse";
- case EligibilityRequest:
- return "eligibilityrequest";
- case ProcessRequest:
- return "processrequest";
- case MedicationDispense:
- return "medicationdispense";
- case Supply:
- return "supply";
- case DiagnosticReport:
- return "diagnosticreport";
- case ImagingStudy:
- return "imagingstudy";
- case ImagingObjectSelection:
- return "imagingobjectselection";
- case HealthcareService:
- return "healthcareservice";
- case DataElement:
- return "dataelement";
- case DeviceComponent:
- return "devicecomponent";
- case FamilyMemberHistory:
- return "familymemberhistory";
case QuestionnaireAnswers:
return "questionnaireanswers";
- case NutritionOrder:
- return "nutritionorder";
- case Encounter:
- return "encounter";
- case Substance:
- return "substance";
- case AuditEvent:
- return "auditevent";
- case SearchParameter:
- return "searchparameter";
- case PaymentReconciliation:
- return "paymentreconciliation";
- case Communication:
- return "communication";
- case Condition:
- return "condition";
- case Composition:
- return "composition";
- case Bundle:
- return "bundle";
- case DiagnosticOrder:
- return "diagnosticorder";
- case Patient:
- return "patient";
- case OrderResponse:
- return "orderresponse";
- case Coverage:
- return "coverage";
- case DeviceUseStatement:
- return "deviceusestatement";
- case ProcessResponse:
- return "processresponse";
- case NamingSystem:
- return "namingsystem";
+ case ReferralRequest:
+ return "referralrequest";
+ case RelatedPerson:
+ return "relatedperson";
+ case RiskAssessment:
+ return "riskassessment";
case Schedule:
return "schedule";
+ case SearchParameter:
+ return "searchparameter";
+ case Slot:
+ return "slot";
+ case Specimen:
+ return "specimen";
+ case StructureDefinition:
+ return "structuredefinition";
+ case Subscription:
+ return "subscription";
+ case Substance:
+ return "substance";
+ case Supply:
+ return "supply";
case SupplyDelivery:
return "supplydelivery";
- case ClinicalImpression:
- return "clinicalimpression";
- case MessageHeader:
- return "messageheader";
- case Claim:
- return "claim";
- case ImmunizationRecommendation:
- return "immunizationrecommendation";
- case Location:
- return "location";
- case BodySite:
- return "bodysite";
- case Parameters:
- return "parameters";
+ case SupplyRequest:
+ return "supplyrequest";
+ case TestScript:
+ return "testscript";
+ case ValueSet:
+ return "valueset";
+ case VisionPrescription:
+ return "visionprescription";
}
return null;
}
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/RiskAssessment.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/RiskAssessment.java
index f1a637fc6d9..8645582c33f 100644
--- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/RiskAssessment.java
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/RiskAssessment.java
@@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
*/
-// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
+// Generated on Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
import java.util.*;
@@ -141,6 +141,10 @@ public class RiskAssessment extends DomainResource {
return (DecimalType) this.probability;
}
+ public boolean hasProbabilityDecimalType() throws Exception {
+ return this.probability instanceof DecimalType;
+ }
+
/**
* @return {@link #probability} (How likely is the outcome (in the specified timeframe).)
*/
@@ -150,6 +154,10 @@ public class RiskAssessment extends DomainResource {
return (Range) this.probability;
}
+ public boolean hasProbabilityRange() throws Exception {
+ return this.probability instanceof Range;
+ }
+
/**
* @return {@link #probability} (How likely is the outcome (in the specified timeframe).)
*/
@@ -159,6 +167,10 @@ public class RiskAssessment extends DomainResource {
return (CodeableConcept) this.probability;
}
+ public boolean hasProbabilityCodeableConcept() throws Exception {
+ return this.probability instanceof CodeableConcept;
+ }
+
public boolean hasProbability() {
return this.probability != null && !this.probability.isEmpty();
}
@@ -236,6 +248,10 @@ public class RiskAssessment extends DomainResource {
return (Period) this.when;
}
+ public boolean hasWhenPeriod() throws Exception {
+ return this.when instanceof Period;
+ }
+
/**
* @return {@link #when} (Indicates the period of time or age range of the subject to which the specified probability applies.)
*/
@@ -245,6 +261,10 @@ public class RiskAssessment extends DomainResource {
return (Range) this.when;
}
+ public boolean hasWhenRange() throws Exception {
+ return this.when instanceof Range;
+ }
+
public boolean hasWhen() {
return this.when != null && !this.when.isEmpty();
}
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/SampledData.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/SampledData.java
index 9d8a3d851e6..b76cbd3650f 100644
--- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/SampledData.java
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/SampledData.java
@@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
*/
-// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
+// Generated on Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
import java.util.*;
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Schedule.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Schedule.java
index efa4607291a..2bd4f7596cc 100644
--- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Schedule.java
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Schedule.java
@@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
*/
-// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
+// Generated on Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
import java.util.*;
@@ -63,7 +63,7 @@ public class Schedule extends DomainResource {
/**
* The resource this Schedule resource is providing availability information for. These are expected to usually be one of HealthcareService, Location, Practitioner, Device, Patient or RelatedPerson.
*/
- @Child(name = "actor", type = {}, order=2, min=1, max=1)
+ @Child(name = "actor", type = {Patient.class, Practitioner.class, RelatedPerson.class, Device.class, HealthcareService.class, Location.class}, order=2, min=1, max=1)
@Description(shortDefinition="The resource this Schedule resource is providing availability information for. These are expected to usually be one of HealthcareService, Location, Practitioner, Device, Patient or RelatedPerson", formalDefinition="The resource this Schedule resource is providing availability information for. These are expected to usually be one of HealthcareService, Location, Practitioner, Device, Patient or RelatedPerson." )
protected Reference actor;
@@ -299,7 +299,7 @@ public class Schedule extends DomainResource {
super.listChildren(childrenList);
childrenList.add(new Property("identifier", "Identifier", "External Ids for this item.", 0, java.lang.Integer.MAX_VALUE, identifier));
childrenList.add(new Property("type", "CodeableConcept", "The schedule type can be used for the categorization of healthcare services or other appointment types.", 0, java.lang.Integer.MAX_VALUE, type));
- childrenList.add(new Property("actor", "Reference(Any)", "The resource this Schedule resource is providing availability information for. These are expected to usually be one of HealthcareService, Location, Practitioner, Device, Patient or RelatedPerson.", 0, java.lang.Integer.MAX_VALUE, actor));
+ childrenList.add(new Property("actor", "Reference(Patient|Practitioner|RelatedPerson|Device|HealthcareService|Location)", "The resource this Schedule resource is providing availability information for. These are expected to usually be one of HealthcareService, Location, Practitioner, Device, Patient or RelatedPerson.", 0, java.lang.Integer.MAX_VALUE, actor));
childrenList.add(new Property("planningHorizon", "Period", "The period of time that the slots that are attached to this Schedule resource cover (even if none exist). These cover the amount of time that an organization's planning horizon; the interval for which they are currently accepting appointments. This does not define a 'template' for planning outside these dates.", 0, java.lang.Integer.MAX_VALUE, planningHorizon));
childrenList.add(new Property("comment", "string", "Comments on the availability to describe any extended information. Such as custom constraints on the slot(s) that may be associated.", 0, java.lang.Integer.MAX_VALUE, comment));
}
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/SearchParameter.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/SearchParameter.java
index e6dd0285e66..3cd4fa39c79 100644
--- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/SearchParameter.java
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/SearchParameter.java
@@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
*/
-// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
+// Generated on Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
import java.util.*;
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Signature.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Signature.java
index c3fb99dd444..53e0e3ec843 100644
--- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Signature.java
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Signature.java
@@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
*/
-// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
+// Generated on Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
import java.util.*;
@@ -192,6 +192,10 @@ public class Signature extends Type implements ICompositeType {
return (UriType) this.who;
}
+ public boolean hasWhoUriType() throws Exception {
+ return this.who instanceof UriType;
+ }
+
/**
* @return {@link #who} (A reference to an application-usable description of the person that signed the certificate (e.g. the signature used their private key).)
*/
@@ -201,6 +205,10 @@ public class Signature extends Type implements ICompositeType {
return (Reference) this.who;
}
+ public boolean hasWhoReference() throws Exception {
+ return this.who instanceof Reference;
+ }
+
public boolean hasWho() {
return this.who != null && !this.who.isEmpty();
}
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Slot.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Slot.java
index 87116ce8130..bb792283ca3 100644
--- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Slot.java
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Slot.java
@@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
*/
-// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
+// Generated on Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
import java.util.*;
@@ -91,10 +91,10 @@ public class Slot extends DomainResource {
}
public String getSystem() {
switch (this) {
- case BUSY: return "http://hl7.org.fhir/slotstatus";
- case FREE: return "http://hl7.org.fhir/slotstatus";
- case BUSYUNAVAILABLE: return "http://hl7.org.fhir/slotstatus";
- case BUSYTENTATIVE: return "http://hl7.org.fhir/slotstatus";
+ case BUSY: return "http://hl7.org/fhir/slotstatus";
+ case FREE: return "http://hl7.org/fhir/slotstatus";
+ case BUSYUNAVAILABLE: return "http://hl7.org/fhir/slotstatus";
+ case BUSYTENTATIVE: return "http://hl7.org/fhir/slotstatus";
default: return "?";
}
}
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Specimen.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Specimen.java
index 90cf7c70160..da699cd377e 100644
--- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Specimen.java
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Specimen.java
@@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
*/
-// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
+// Generated on Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
import java.util.*;
@@ -218,6 +218,10 @@ public class Specimen extends DomainResource {
return (DateTimeType) this.collected;
}
+ public boolean hasCollectedDateTimeType() throws Exception {
+ return this.collected instanceof DateTimeType;
+ }
+
/**
* @return {@link #collected} (Time when specimen was collected from subject - the physiologically relevant time.)
*/
@@ -227,6 +231,10 @@ public class Specimen extends DomainResource {
return (Period) this.collected;
}
+ public boolean hasCollectedPeriod() throws Exception {
+ return this.collected instanceof Period;
+ }
+
public boolean hasCollected() {
return this.collected != null && !this.collected.isEmpty();
}
@@ -303,6 +311,10 @@ public class Specimen extends DomainResource {
return (CodeableConcept) this.bodySite;
}
+ public boolean hasBodySiteCodeableConcept() throws Exception {
+ return this.bodySite instanceof CodeableConcept;
+ }
+
/**
* @return {@link #bodySite} (Anatomical location from which the specimen was collected (if subject is a patient). This is the target site. This element is not used for environmental specimens.)
*/
@@ -312,6 +324,10 @@ public class Specimen extends DomainResource {
return (Reference) this.bodySite;
}
+ public boolean hasBodySiteReference() throws Exception {
+ return this.bodySite instanceof Reference;
+ }
+
public boolean hasBodySite() {
return this.bodySite != null && !this.bodySite.isEmpty();
}
@@ -829,6 +845,10 @@ public class Specimen extends DomainResource {
return (CodeableConcept) this.additive;
}
+ public boolean hasAdditiveCodeableConcept() throws Exception {
+ return this.additive instanceof CodeableConcept;
+ }
+
/**
* @return {@link #additive} (Introduced substance to preserve, maintain or enhance the specimen. examples: Formalin, Citrate, EDTA.)
*/
@@ -838,6 +858,10 @@ public class Specimen extends DomainResource {
return (Reference) this.additive;
}
+ public boolean hasAdditiveReference() throws Exception {
+ return this.additive instanceof Reference;
+ }
+
public boolean hasAdditive() {
return this.additive != null && !this.additive.isEmpty();
}
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/StructureDefinition.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/StructureDefinition.java
index eb7bfc1a828..ca8461971a3 100644
--- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/StructureDefinition.java
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/StructureDefinition.java
@@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
*/
-// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
+// Generated on Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
import java.util.*;
@@ -92,10 +92,10 @@ public class StructureDefinition extends DomainResource {
}
public String getSystem() {
switch (this) {
- case TYPE: return "http://hl7.org.fhir/structure-definition-type";
- case RESOURCE: return "http://hl7.org.fhir/structure-definition-type";
- case CONSTRAINT: return "http://hl7.org.fhir/structure-definition-type";
- case EXTENSION: return "http://hl7.org.fhir/structure-definition-type";
+ case TYPE: return "http://hl7.org/fhir/structure-definition-type";
+ case RESOURCE: return "http://hl7.org/fhir/structure-definition-type";
+ case CONSTRAINT: return "http://hl7.org/fhir/structure-definition-type";
+ case EXTENSION: return "http://hl7.org/fhir/structure-definition-type";
default: return "?";
}
}
@@ -192,10 +192,10 @@ public class StructureDefinition extends DomainResource {
}
public String getSystem() {
switch (this) {
- case RESOURCE: return "http://hl7.org.fhir/extension-context";
- case DATATYPE: return "http://hl7.org.fhir/extension-context";
- case MAPPING: return "http://hl7.org.fhir/extension-context";
- case EXTENSION: return "http://hl7.org.fhir/extension-context";
+ case RESOURCE: return "http://hl7.org/fhir/extension-context";
+ case DATATYPE: return "http://hl7.org/fhir/extension-context";
+ case MAPPING: return "http://hl7.org/fhir/extension-context";
+ case EXTENSION: return "http://hl7.org/fhir/extension-context";
default: return "?";
}
}
@@ -893,10 +893,10 @@ public class StructureDefinition extends DomainResource {
}
/**
- * An absolute URL at which this StructureDefinition is (or will be) published, and which is used to reference this StructureDefinition in extension urls and tag values in operational FHIR systems.
+ * An absolute URL at which this StructureDefinition is (or will be) published, and which is used to reference this StructureDefinition in extension urls and meta.profile in operational FHIR systems.
*/
@Child(name = "url", type = {UriType.class}, order=0, min=1, max=1)
- @Description(shortDefinition="Literal URL used to reference this StructureDefinition", formalDefinition="An absolute URL at which this StructureDefinition is (or will be) published, and which is used to reference this StructureDefinition in extension urls and tag values in operational FHIR systems." )
+ @Description(shortDefinition="Literal URL used to reference this StructureDefinition", formalDefinition="An absolute URL at which this StructureDefinition is (or will be) published, and which is used to reference this StructureDefinition in extension urls and meta.profile in operational FHIR systems." )
protected UriType url;
/**
@@ -1021,7 +1021,7 @@ public class StructureDefinition extends DomainResource {
/**
* Whether structure this definition describes is abstract or not - that is, whether an actual exchanged item can ever be of this type.
*/
- @Child(name = "abstract", type = {BooleanType.class}, order=18, min=1, max=1)
+ @Child(name = "abstract_", type = {BooleanType.class}, order=18, min=1, max=1)
@Description(shortDefinition="Whether the structure is abstract", formalDefinition="Whether structure this definition describes is abstract or not - that is, whether an actual exchanged item can ever be of this type." )
protected BooleanType abstract_;
@@ -1082,7 +1082,7 @@ public class StructureDefinition extends DomainResource {
}
/**
- * @return {@link #url} (An absolute URL at which this StructureDefinition is (or will be) published, and which is used to reference this StructureDefinition in extension urls and tag values in operational FHIR systems.). This is the underlying object with id, value and extensions. The accessor "getUrl" gives direct access to the value
+ * @return {@link #url} (An absolute URL at which this StructureDefinition is (or will be) published, and which is used to reference this StructureDefinition in extension urls and meta.profile in operational FHIR systems.). This is the underlying object with id, value and extensions. The accessor "getUrl" gives direct access to the value
*/
public UriType getUrlElement() {
if (this.url == null)
@@ -1102,7 +1102,7 @@ public class StructureDefinition extends DomainResource {
}
/**
- * @param value {@link #url} (An absolute URL at which this StructureDefinition is (or will be) published, and which is used to reference this StructureDefinition in extension urls and tag values in operational FHIR systems.). This is the underlying object with id, value and extensions. The accessor "getUrl" gives direct access to the value
+ * @param value {@link #url} (An absolute URL at which this StructureDefinition is (or will be) published, and which is used to reference this StructureDefinition in extension urls and meta.profile in operational FHIR systems.). This is the underlying object with id, value and extensions. The accessor "getUrl" gives direct access to the value
*/
public StructureDefinition setUrlElement(UriType value) {
this.url = value;
@@ -1110,14 +1110,14 @@ public class StructureDefinition extends DomainResource {
}
/**
- * @return An absolute URL at which this StructureDefinition is (or will be) published, and which is used to reference this StructureDefinition in extension urls and tag values in operational FHIR systems.
+ * @return An absolute URL at which this StructureDefinition is (or will be) published, and which is used to reference this StructureDefinition in extension urls and meta.profile in operational FHIR systems.
*/
public String getUrl() {
return this.url == null ? null : this.url.getValue();
}
/**
- * @param value An absolute URL at which this StructureDefinition is (or will be) published, and which is used to reference this StructureDefinition in extension urls and tag values in operational FHIR systems.
+ * @param value An absolute URL at which this StructureDefinition is (or will be) published, and which is used to reference this StructureDefinition in extension urls and meta.profile in operational FHIR systems.
*/
public StructureDefinition setUrl(String value) {
if (this.url == null)
@@ -2145,7 +2145,7 @@ public class StructureDefinition extends DomainResource {
protected void listChildren(List childrenList) {
super.listChildren(childrenList);
- childrenList.add(new Property("url", "uri", "An absolute URL at which this StructureDefinition is (or will be) published, and which is used to reference this StructureDefinition in extension urls and tag values in operational FHIR systems.", 0, java.lang.Integer.MAX_VALUE, url));
+ childrenList.add(new Property("url", "uri", "An absolute URL at which this StructureDefinition is (or will be) published, and which is used to reference this StructureDefinition in extension urls and meta.profile in operational FHIR systems.", 0, java.lang.Integer.MAX_VALUE, url));
childrenList.add(new Property("identifier", "Identifier", "Formal identifier that is used to identify this StructureDefinition when it is represented in other formats, or referenced in a specification, model, design or an instance (should be globally unique OID, UUID, or URI), (if it's not possible to use the literal URI).", 0, java.lang.Integer.MAX_VALUE, identifier));
childrenList.add(new Property("version", "string", "The identifier that is used to identify this version of the StructureDefinition when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the StructureDefinition author manually.", 0, java.lang.Integer.MAX_VALUE, version));
childrenList.add(new Property("name", "string", "A free text natural language name identifying the StructureDefinition.", 0, java.lang.Integer.MAX_VALUE, name));
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Subscription.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Subscription.java
index 25ebee0b703..d21f33970b8 100644
--- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Subscription.java
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Subscription.java
@@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
*/
-// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
+// Generated on Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
import java.util.*;
@@ -91,10 +91,10 @@ public class Subscription extends DomainResource {
}
public String getSystem() {
switch (this) {
- case REQUESTED: return "http://hl7.org.fhir/subscription-status";
- case ACTIVE: return "http://hl7.org.fhir/subscription-status";
- case ERROR: return "http://hl7.org.fhir/subscription-status";
- case OFF: return "http://hl7.org.fhir/subscription-status";
+ case REQUESTED: return "http://hl7.org/fhir/subscription-status";
+ case ACTIVE: return "http://hl7.org/fhir/subscription-status";
+ case ERROR: return "http://hl7.org/fhir/subscription-status";
+ case OFF: return "http://hl7.org/fhir/subscription-status";
default: return "?";
}
}
@@ -198,11 +198,11 @@ public class Subscription extends DomainResource {
}
public String getSystem() {
switch (this) {
- case RESTHOOK: return "http://hl7.org.fhir/subscription-channel-type";
- case WEBSOCKET: return "http://hl7.org.fhir/subscription-channel-type";
- case EMAIL: return "http://hl7.org.fhir/subscription-channel-type";
- case SMS: return "http://hl7.org.fhir/subscription-channel-type";
- case MESSAGE: return "http://hl7.org.fhir/subscription-channel-type";
+ case RESTHOOK: return "http://hl7.org/fhir/subscription-channel-type";
+ case WEBSOCKET: return "http://hl7.org/fhir/subscription-channel-type";
+ case EMAIL: return "http://hl7.org/fhir/subscription-channel-type";
+ case SMS: return "http://hl7.org/fhir/subscription-channel-type";
+ case MESSAGE: return "http://hl7.org/fhir/subscription-channel-type";
default: return "?";
}
}
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Substance.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Substance.java
index e8c488a02f7..250e343f5c8 100644
--- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Substance.java
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Substance.java
@@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
*/
-// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
+// Generated on Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
import java.util.*;
@@ -366,35 +366,42 @@ public class Substance extends DomainResource {
}
+ /**
+ * Unique identifier for the substance.
+ */
+ @Child(name = "identifier", type = {Identifier.class}, order=0, min=0, max=Child.MAX_UNLIMITED)
+ @Description(shortDefinition="Unique identifier", formalDefinition="Unique identifier for the substance." )
+ protected List identifier;
+
/**
* A code (or set of codes) that identify this substance.
*/
- @Child(name = "type", type = {CodeableConcept.class}, order=0, min=1, max=1)
+ @Child(name = "type", type = {CodeableConcept.class}, order=1, min=1, max=1)
@Description(shortDefinition="What kind of substance this is", formalDefinition="A code (or set of codes) that identify this substance." )
protected CodeableConcept type;
/**
* A description of the substance - its appearance, handling requirements, and other usage notes.
*/
- @Child(name = "description", type = {StringType.class}, order=1, min=0, max=1)
+ @Child(name = "description", type = {StringType.class}, order=2, min=0, max=1)
@Description(shortDefinition="Textual description of the substance, comments", formalDefinition="A description of the substance - its appearance, handling requirements, and other usage notes." )
protected StringType description;
/**
* Substance may be used to describe a kind of substance, or a specific package/container of the substance: an instance.
*/
- @Child(name = "instance", type = {}, order=2, min=0, max=1)
+ @Child(name = "instance", type = {}, order=3, min=0, max=Child.MAX_UNLIMITED)
@Description(shortDefinition="If this describes a specific package/container of the substance", formalDefinition="Substance may be used to describe a kind of substance, or a specific package/container of the substance: an instance." )
- protected SubstanceInstanceComponent instance;
+ protected List instance;
/**
* A substance can be composed of other substances.
*/
- @Child(name = "ingredient", type = {}, order=3, min=0, max=Child.MAX_UNLIMITED)
+ @Child(name = "ingredient", type = {}, order=4, min=0, max=Child.MAX_UNLIMITED)
@Description(shortDefinition="Composition information about the substance", formalDefinition="A substance can be composed of other substances." )
protected List ingredient;
- private static final long serialVersionUID = 1881086620L;
+ private static final long serialVersionUID = 373963428L;
/*
* Constructor
@@ -411,6 +418,46 @@ public class Substance extends DomainResource {
this.type = type;
}
+ /**
+ * @return {@link #identifier} (Unique identifier for the substance.)
+ */
+ public List getIdentifier() {
+ if (this.identifier == null)
+ this.identifier = new ArrayList();
+ return this.identifier;
+ }
+
+ public boolean hasIdentifier() {
+ if (this.identifier == null)
+ return false;
+ for (Identifier item : this.identifier)
+ if (!item.isEmpty())
+ return true;
+ return false;
+ }
+
+ /**
+ * @return {@link #identifier} (Unique identifier for the substance.)
+ */
+ // syntactic sugar
+ public Identifier addIdentifier() { //3
+ Identifier t = new Identifier();
+ if (this.identifier == null)
+ this.identifier = new ArrayList();
+ this.identifier.add(t);
+ return t;
+ }
+
+ // syntactic sugar
+ public Substance addIdentifier(Identifier t) { //3
+ if (t == null)
+ return this;
+ if (this.identifier == null)
+ this.identifier = new ArrayList();
+ this.identifier.add(t);
+ return this;
+ }
+
/**
* @return {@link #type} (A code (or set of codes) that identify this substance.)
*/
@@ -487,24 +534,40 @@ public class Substance extends DomainResource {
/**
* @return {@link #instance} (Substance may be used to describe a kind of substance, or a specific package/container of the substance: an instance.)
*/
- public SubstanceInstanceComponent getInstance() {
+ public List getInstance() {
if (this.instance == null)
- if (Configuration.errorOnAutoCreate())
- throw new Error("Attempt to auto-create Substance.instance");
- else if (Configuration.doAutoCreate())
- this.instance = new SubstanceInstanceComponent(); // cc
+ this.instance = new ArrayList();
return this.instance;
}
public boolean hasInstance() {
- return this.instance != null && !this.instance.isEmpty();
+ if (this.instance == null)
+ return false;
+ for (SubstanceInstanceComponent item : this.instance)
+ if (!item.isEmpty())
+ return true;
+ return false;
}
/**
- * @param value {@link #instance} (Substance may be used to describe a kind of substance, or a specific package/container of the substance: an instance.)
+ * @return {@link #instance} (Substance may be used to describe a kind of substance, or a specific package/container of the substance: an instance.)
*/
- public Substance setInstance(SubstanceInstanceComponent value) {
- this.instance = value;
+ // syntactic sugar
+ public SubstanceInstanceComponent addInstance() { //3
+ SubstanceInstanceComponent t = new SubstanceInstanceComponent();
+ if (this.instance == null)
+ this.instance = new ArrayList();
+ this.instance.add(t);
+ return t;
+ }
+
+ // syntactic sugar
+ public Substance addInstance(SubstanceInstanceComponent t) { //3
+ if (t == null)
+ return this;
+ if (this.instance == null)
+ this.instance = new ArrayList();
+ this.instance.add(t);
return this;
}
@@ -550,6 +613,7 @@ public class Substance extends DomainResource {
protected void listChildren(List childrenList) {
super.listChildren(childrenList);
+ childrenList.add(new Property("identifier", "Identifier", "Unique identifier for the substance.", 0, java.lang.Integer.MAX_VALUE, identifier));
childrenList.add(new Property("type", "CodeableConcept", "A code (or set of codes) that identify this substance.", 0, java.lang.Integer.MAX_VALUE, type));
childrenList.add(new Property("description", "string", "A description of the substance - its appearance, handling requirements, and other usage notes.", 0, java.lang.Integer.MAX_VALUE, description));
childrenList.add(new Property("instance", "", "Substance may be used to describe a kind of substance, or a specific package/container of the substance: an instance.", 0, java.lang.Integer.MAX_VALUE, instance));
@@ -559,9 +623,18 @@ public class Substance extends DomainResource {
public Substance copy() {
Substance dst = new Substance();
copyValues(dst);
+ if (identifier != null) {
+ dst.identifier = new ArrayList();
+ for (Identifier i : identifier)
+ dst.identifier.add(i.copy());
+ };
dst.type = type == null ? null : type.copy();
dst.description = description == null ? null : description.copy();
- dst.instance = instance == null ? null : instance.copy();
+ if (instance != null) {
+ dst.instance = new ArrayList();
+ for (SubstanceInstanceComponent i : instance)
+ dst.instance.add(i.copy());
+ };
if (ingredient != null) {
dst.ingredient = new ArrayList();
for (SubstanceIngredientComponent i : ingredient)
@@ -581,8 +654,8 @@ public class Substance extends DomainResource {
if (!(other instanceof Substance))
return false;
Substance o = (Substance) other;
- return compareDeep(type, o.type, true) && compareDeep(description, o.description, true) && compareDeep(instance, o.instance, true)
- && compareDeep(ingredient, o.ingredient, true);
+ return compareDeep(identifier, o.identifier, true) && compareDeep(type, o.type, true) && compareDeep(description, o.description, true)
+ && compareDeep(instance, o.instance, true) && compareDeep(ingredient, o.ingredient, true);
}
@Override
@@ -596,9 +669,9 @@ public class Substance extends DomainResource {
}
public boolean isEmpty() {
- return super.isEmpty() && (type == null || type.isEmpty()) && (description == null || description.isEmpty())
- && (instance == null || instance.isEmpty()) && (ingredient == null || ingredient.isEmpty())
- ;
+ return super.isEmpty() && (identifier == null || identifier.isEmpty()) && (type == null || type.isEmpty())
+ && (description == null || description.isEmpty()) && (instance == null || instance.isEmpty())
+ && (ingredient == null || ingredient.isEmpty());
}
@Override
@@ -606,13 +679,15 @@ public class Substance extends DomainResource {
return ResourceType.Substance;
}
- @SearchParamDefinition(name="identifier", path="Substance.instance.identifier", description="Identifier of the package/container", type="token" )
+ @SearchParamDefinition(name="identifier", path="Substance.identifier", description="Unique identifier for the substance", type="token" )
public static final String SP_IDENTIFIER = "identifier";
+ @SearchParamDefinition(name="container-identifier", path="Substance.instance.identifier", description="Identifier of the package/container", type="token" )
+ public static final String SP_CONTAINERIDENTIFIER = "container-identifier";
@SearchParamDefinition(name="quantity", path="Substance.instance.quantity", description="Amount of substance in the package", type="number" )
public static final String SP_QUANTITY = "quantity";
@SearchParamDefinition(name="substance", path="Substance.ingredient.substance", description="A component of the substance", type="reference" )
public static final String SP_SUBSTANCE = "substance";
- @SearchParamDefinition(name="expiry", path="Substance.instance.expiry", description="When no longer valid to use", type="date" )
+ @SearchParamDefinition(name="expiry", path="Substance.instance.expiry", description="Expiry date of package or container of substance", type="date" )
public static final String SP_EXPIRY = "expiry";
@SearchParamDefinition(name="type", path="Substance.type", description="The type of the substance", type="token" )
public static final String SP_TYPE = "type";
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Supply.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Supply.java
index a8b451013ff..c29c893b754 100644
--- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Supply.java
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Supply.java
@@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
*/
-// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
+// Generated on Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
import java.util.*;
@@ -98,11 +98,11 @@ public class Supply extends DomainResource {
}
public String getSystem() {
switch (this) {
- case REQUESTED: return "http://hl7.org.fhir/valueset-supply-status";
- case DISPENSED: return "http://hl7.org.fhir/valueset-supply-status";
- case RECEIVED: return "http://hl7.org.fhir/valueset-supply-status";
- case FAILED: return "http://hl7.org.fhir/valueset-supply-status";
- case CANCELLED: return "http://hl7.org.fhir/valueset-supply-status";
+ case REQUESTED: return "http://hl7.org/fhir/valueset-supply-status";
+ case DISPENSED: return "http://hl7.org/fhir/valueset-supply-status";
+ case RECEIVED: return "http://hl7.org/fhir/valueset-supply-status";
+ case FAILED: return "http://hl7.org/fhir/valueset-supply-status";
+ case CANCELLED: return "http://hl7.org/fhir/valueset-supply-status";
default: return "?";
}
}
@@ -198,9 +198,9 @@ public class Supply extends DomainResource {
}
public String getSystem() {
switch (this) {
- case INPROGRESS: return "http://hl7.org.fhir/valueset-supply-dispense-status";
- case DISPENSED: return "http://hl7.org.fhir/valueset-supply-dispense-status";
- case ABANDONED: return "http://hl7.org.fhir/valueset-supply-dispense-status";
+ case INPROGRESS: return "http://hl7.org/fhir/valueset-supply-dispense-status";
+ case DISPENSED: return "http://hl7.org/fhir/valueset-supply-dispense-status";
+ case ABANDONED: return "http://hl7.org/fhir/valueset-supply-dispense-status";
default: return "?";
}
}
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/SupplyDelivery.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/SupplyDelivery.java
index e11100f634f..36ad3aa10fb 100644
--- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/SupplyDelivery.java
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/SupplyDelivery.java
@@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
*/
-// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
+// Generated on Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
import java.util.*;
@@ -84,9 +84,9 @@ public class SupplyDelivery extends DomainResource {
}
public String getSystem() {
switch (this) {
- case INPROGRESS: return "http://hl7.org.fhir/valueset-supplydelivery-status";
- case COMPLETED: return "http://hl7.org.fhir/valueset-supplydelivery-status";
- case ABANDONED: return "http://hl7.org.fhir/valueset-supplydelivery-status";
+ case INPROGRESS: return "http://hl7.org/fhir/valueset-supplydelivery-status";
+ case COMPLETED: return "http://hl7.org/fhir/valueset-supplydelivery-status";
+ case ABANDONED: return "http://hl7.org/fhir/valueset-supplydelivery-status";
default: return "?";
}
}
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/SupplyRequest.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/SupplyRequest.java
index ecb8b1e54fb..1dc4183aeb5 100644
--- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/SupplyRequest.java
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/SupplyRequest.java
@@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
*/
-// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
+// Generated on Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
import java.util.*;
@@ -41,7 +41,7 @@ import org.hl7.fhir.instance.model.annotations.Description;
import org.hl7.fhir.instance.model.annotations.Block;
import org.hl7.fhir.instance.model.api.*;
/**
- * A supply - a request for something.
+ * A record of a request for a medication, substance or device used in the healthcare setting.
*/
@ResourceDef(name="SupplyRequest", profile="http://hl7.org/fhir/Profile/SupplyRequest")
public class SupplyRequest extends DomainResource {
@@ -91,10 +91,10 @@ public class SupplyRequest extends DomainResource {
}
public String getSystem() {
switch (this) {
- case REQUESTED: return "http://hl7.org.fhir/valueset-supplyrequest-status";
- case COMPLETED: return "http://hl7.org.fhir/valueset-supplyrequest-status";
- case FAILED: return "http://hl7.org.fhir/valueset-supplyrequest-status";
- case CANCELLED: return "http://hl7.org.fhir/valueset-supplyrequest-status";
+ case REQUESTED: return "http://hl7.org/fhir/valueset-supplyrequest-status";
+ case COMPLETED: return "http://hl7.org/fhir/valueset-supplyrequest-status";
+ case FAILED: return "http://hl7.org/fhir/valueset-supplyrequest-status";
+ case CANCELLED: return "http://hl7.org/fhir/valueset-supplyrequest-status";
default: return "?";
}
}
@@ -146,31 +146,176 @@ public class SupplyRequest extends DomainResource {
}
}
- /**
- * Category of supply, e.g. central, non-stock, etc. This is used to support work flows associated with the supply process.
+ @Block()
+ public static class SupplyRequestWhenComponent extends BackboneElement implements IBaseBackboneElement {
+ /**
+ * Fulfilment code.
+ */
+ @Child(name = "code", type = {CodeableConcept.class}, order=1, min=0, max=1)
+ @Description(shortDefinition="Fulfilment code", formalDefinition="Fulfilment code." )
+ protected CodeableConcept code;
+
+ /**
+ * Formal fulfillment schedule.
+ */
+ @Child(name = "schedule", type = {Timing.class}, order=2, min=0, max=1)
+ @Description(shortDefinition="Formal fulfillment schedule", formalDefinition="Formal fulfillment schedule." )
+ protected Timing schedule;
+
+ private static final long serialVersionUID = 307115287L;
+
+ /*
+ * Constructor
*/
- @Child(name = "kind", type = {CodeableConcept.class}, order=0, min=0, max=1)
- @Description(shortDefinition="The kind of supply (central, non-stock, etc)", formalDefinition="Category of supply, e.g. central, non-stock, etc. This is used to support work flows associated with the supply process." )
- protected CodeableConcept kind;
+ public SupplyRequestWhenComponent() {
+ super();
+ }
+
+ /**
+ * @return {@link #code} (Fulfilment code.)
+ */
+ public CodeableConcept getCode() {
+ if (this.code == null)
+ if (Configuration.errorOnAutoCreate())
+ throw new Error("Attempt to auto-create SupplyRequestWhenComponent.code");
+ else if (Configuration.doAutoCreate())
+ this.code = new CodeableConcept(); // cc
+ return this.code;
+ }
+
+ public boolean hasCode() {
+ return this.code != null && !this.code.isEmpty();
+ }
+
+ /**
+ * @param value {@link #code} (Fulfilment code.)
+ */
+ public SupplyRequestWhenComponent setCode(CodeableConcept value) {
+ this.code = value;
+ return this;
+ }
+
+ /**
+ * @return {@link #schedule} (Formal fulfillment schedule.)
+ */
+ public Timing getSchedule() {
+ if (this.schedule == null)
+ if (Configuration.errorOnAutoCreate())
+ throw new Error("Attempt to auto-create SupplyRequestWhenComponent.schedule");
+ else if (Configuration.doAutoCreate())
+ this.schedule = new Timing(); // cc
+ return this.schedule;
+ }
+
+ public boolean hasSchedule() {
+ return this.schedule != null && !this.schedule.isEmpty();
+ }
+
+ /**
+ * @param value {@link #schedule} (Formal fulfillment schedule.)
+ */
+ public SupplyRequestWhenComponent setSchedule(Timing value) {
+ this.schedule = value;
+ return this;
+ }
+
+ protected void listChildren(List childrenList) {
+ super.listChildren(childrenList);
+ childrenList.add(new Property("code", "CodeableConcept", "Fulfilment code.", 0, java.lang.Integer.MAX_VALUE, code));
+ childrenList.add(new Property("schedule", "Timing", "Formal fulfillment schedule.", 0, java.lang.Integer.MAX_VALUE, schedule));
+ }
+
+ public SupplyRequestWhenComponent copy() {
+ SupplyRequestWhenComponent dst = new SupplyRequestWhenComponent();
+ copyValues(dst);
+ dst.code = code == null ? null : code.copy();
+ dst.schedule = schedule == null ? null : schedule.copy();
+ return dst;
+ }
+
+ @Override
+ public boolean equalsDeep(Base other) {
+ if (!super.equalsDeep(other))
+ return false;
+ if (!(other instanceof SupplyRequestWhenComponent))
+ return false;
+ SupplyRequestWhenComponent o = (SupplyRequestWhenComponent) other;
+ return compareDeep(code, o.code, true) && compareDeep(schedule, o.schedule, true);
+ }
+
+ @Override
+ public boolean equalsShallow(Base other) {
+ if (!super.equalsShallow(other))
+ return false;
+ if (!(other instanceof SupplyRequestWhenComponent))
+ return false;
+ SupplyRequestWhenComponent o = (SupplyRequestWhenComponent) other;
+ return true;
+ }
+
+ public boolean isEmpty() {
+ return super.isEmpty() && (code == null || code.isEmpty()) && (schedule == null || schedule.isEmpty())
+ ;
+ }
+
+ }
+
+ /**
+ * A link to a resource representing the person whom the ordered item is for.
+ */
+ @Child(name = "patient", type = {Patient.class}, order=0, min=0, max=1)
+ @Description(shortDefinition="Patient for whom the item is supplied", formalDefinition="A link to a resource representing the person whom the ordered item is for." )
+ protected Reference patient;
+
+ /**
+ * The actual object that is the target of the reference (A link to a resource representing the person whom the ordered item is for.)
+ */
+ protected Patient patientTarget;
+
+ /**
+ * The Practitioner , Organization or Patient who initiated this order for the Supply.
+ */
+ @Child(name = "source", type = {Practitioner.class, Organization.class, Patient.class}, order=1, min=0, max=1)
+ @Description(shortDefinition="Who initiated this order", formalDefinition="The Practitioner , Organization or Patient who initiated this order for the Supply." )
+ protected Reference source;
+
+ /**
+ * The actual object that is the target of the reference (The Practitioner , Organization or Patient who initiated this order for the Supply.)
+ */
+ protected Resource sourceTarget;
+
+ /**
+ * When the request was made.
+ */
+ @Child(name = "date", type = {DateTimeType.class}, order=2, min=0, max=1)
+ @Description(shortDefinition="When the request was made", formalDefinition="When the request was made." )
+ protected DateTimeType date;
/**
* Unique identifier for this supply request.
*/
- @Child(name = "identifier", type = {Identifier.class}, order=1, min=0, max=1)
+ @Child(name = "identifier", type = {Identifier.class}, order=3, min=0, max=1)
@Description(shortDefinition="Unique identifier", formalDefinition="Unique identifier for this supply request." )
protected Identifier identifier;
/**
* Status of the supply request.
*/
- @Child(name = "status", type = {CodeType.class}, order=2, min=0, max=1)
+ @Child(name = "status", type = {CodeType.class}, order=4, min=0, max=1)
@Description(shortDefinition="requested | completed | failed | cancelled", formalDefinition="Status of the supply request." )
protected Enumeration status;
+ /**
+ * Category of supply, e.g. central, non-stock, etc. This is used to support work flows associated with the supply process.
+ */
+ @Child(name = "kind", type = {CodeableConcept.class}, order=5, min=0, max=1)
+ @Description(shortDefinition="The kind of supply (central, non-stock, etc)", formalDefinition="Category of supply, e.g. central, non-stock, etc. This is used to support work flows associated with the supply process." )
+ protected CodeableConcept kind;
+
/**
* The item that is requested to be supplied.
*/
- @Child(name = "orderedItem", type = {Medication.class, Substance.class, Device.class}, order=3, min=0, max=1)
+ @Child(name = "orderedItem", type = {Medication.class, Substance.class, Device.class}, order=6, min=0, max=1)
@Description(shortDefinition="Medication, Substance, or Device requested to be supplied", formalDefinition="The item that is requested to be supplied." )
protected Reference orderedItem;
@@ -180,18 +325,32 @@ public class SupplyRequest extends DomainResource {
protected Resource orderedItemTarget;
/**
- * A link to a resource representing the person whom the ordered item is for.
+ * Who is intended to fulfill the request.
*/
- @Child(name = "patient", type = {Patient.class}, order=4, min=0, max=1)
- @Description(shortDefinition="Patient for whom the item is supplied", formalDefinition="A link to a resource representing the person whom the ordered item is for." )
- protected Reference patient;
+ @Child(name = "supplier", type = {Organization.class}, order=7, min=0, max=Child.MAX_UNLIMITED)
+ @Description(shortDefinition="Who is intended to fulfill the request", formalDefinition="Who is intended to fulfill the request." )
+ protected List supplier;
+ /**
+ * The actual objects that are the target of the reference (Who is intended to fulfill the request.)
+ */
+ protected List supplierTarget;
+
/**
- * The actual object that is the target of the reference (A link to a resource representing the person whom the ordered item is for.)
+ * Why the supply item was requested.
*/
- protected Patient patientTarget;
+ @Child(name = "reason", type = {CodeableConcept.class}, order=8, min=0, max=1)
+ @Description(shortDefinition="Why the supply item was requested", formalDefinition="Why the supply item was requested." )
+ protected Type reason;
- private static final long serialVersionUID = 1806725371L;
+ /**
+ * When the request should be fulfilled.
+ */
+ @Child(name = "when", type = {}, order=9, min=0, max=1)
+ @Description(shortDefinition="When the request should be fulfilled", formalDefinition="When the request should be fulfilled." )
+ protected SupplyRequestWhenComponent when;
+
+ private static final long serialVersionUID = 1649766198L;
/*
* Constructor
@@ -201,26 +360,134 @@ public class SupplyRequest extends DomainResource {
}
/**
- * @return {@link #kind} (Category of supply, e.g. central, non-stock, etc. This is used to support work flows associated with the supply process.)
+ * @return {@link #patient} (A link to a resource representing the person whom the ordered item is for.)
*/
- public CodeableConcept getKind() {
- if (this.kind == null)
+ public Reference getPatient() {
+ if (this.patient == null)
if (Configuration.errorOnAutoCreate())
- throw new Error("Attempt to auto-create SupplyRequest.kind");
+ throw new Error("Attempt to auto-create SupplyRequest.patient");
else if (Configuration.doAutoCreate())
- this.kind = new CodeableConcept(); // cc
- return this.kind;
+ this.patient = new Reference(); // cc
+ return this.patient;
}
- public boolean hasKind() {
- return this.kind != null && !this.kind.isEmpty();
+ public boolean hasPatient() {
+ return this.patient != null && !this.patient.isEmpty();
}
/**
- * @param value {@link #kind} (Category of supply, e.g. central, non-stock, etc. This is used to support work flows associated with the supply process.)
+ * @param value {@link #patient} (A link to a resource representing the person whom the ordered item is for.)
*/
- public SupplyRequest setKind(CodeableConcept value) {
- this.kind = value;
+ public SupplyRequest setPatient(Reference value) {
+ this.patient = value;
+ return this;
+ }
+
+ /**
+ * @return {@link #patient} The actual object that is the target of the reference. The reference library doesn't populate this, but you can use it to hold the resource if you resolve it. (A link to a resource representing the person whom the ordered item is for.)
+ */
+ public Patient getPatientTarget() {
+ if (this.patientTarget == null)
+ if (Configuration.errorOnAutoCreate())
+ throw new Error("Attempt to auto-create SupplyRequest.patient");
+ else if (Configuration.doAutoCreate())
+ this.patientTarget = new Patient(); // aa
+ return this.patientTarget;
+ }
+
+ /**
+ * @param value {@link #patient} The actual object that is the target of the reference. The reference library doesn't use these, but you can use it to hold the resource if you resolve it. (A link to a resource representing the person whom the ordered item is for.)
+ */
+ public SupplyRequest setPatientTarget(Patient value) {
+ this.patientTarget = value;
+ return this;
+ }
+
+ /**
+ * @return {@link #source} (The Practitioner , Organization or Patient who initiated this order for the Supply.)
+ */
+ public Reference getSource() {
+ if (this.source == null)
+ if (Configuration.errorOnAutoCreate())
+ throw new Error("Attempt to auto-create SupplyRequest.source");
+ else if (Configuration.doAutoCreate())
+ this.source = new Reference(); // cc
+ return this.source;
+ }
+
+ public boolean hasSource() {
+ return this.source != null && !this.source.isEmpty();
+ }
+
+ /**
+ * @param value {@link #source} (The Practitioner , Organization or Patient who initiated this order for the Supply.)
+ */
+ public SupplyRequest setSource(Reference value) {
+ this.source = value;
+ return this;
+ }
+
+ /**
+ * @return {@link #source} The actual object that is the target of the reference. The reference library doesn't populate this, but you can use it to hold the resource if you resolve it. (The Practitioner , Organization or Patient who initiated this order for the Supply.)
+ */
+ public Resource getSourceTarget() {
+ return this.sourceTarget;
+ }
+
+ /**
+ * @param value {@link #source} The actual object that is the target of the reference. The reference library doesn't use these, but you can use it to hold the resource if you resolve it. (The Practitioner , Organization or Patient who initiated this order for the Supply.)
+ */
+ public SupplyRequest setSourceTarget(Resource value) {
+ this.sourceTarget = value;
+ return this;
+ }
+
+ /**
+ * @return {@link #date} (When the request was made.). This is the underlying object with id, value and extensions. The accessor "getDate" gives direct access to the value
+ */
+ public DateTimeType getDateElement() {
+ if (this.date == null)
+ if (Configuration.errorOnAutoCreate())
+ throw new Error("Attempt to auto-create SupplyRequest.date");
+ else if (Configuration.doAutoCreate())
+ this.date = new DateTimeType(); // bb
+ return this.date;
+ }
+
+ public boolean hasDateElement() {
+ return this.date != null && !this.date.isEmpty();
+ }
+
+ public boolean hasDate() {
+ return this.date != null && !this.date.isEmpty();
+ }
+
+ /**
+ * @param value {@link #date} (When the request was made.). This is the underlying object with id, value and extensions. The accessor "getDate" gives direct access to the value
+ */
+ public SupplyRequest setDateElement(DateTimeType value) {
+ this.date = value;
+ return this;
+ }
+
+ /**
+ * @return When the request was made.
+ */
+ public Date getDate() {
+ return this.date == null ? null : this.date.getValue();
+ }
+
+ /**
+ * @param value When the request was made.
+ */
+ public SupplyRequest setDate(Date value) {
+ if (value == null)
+ this.date = null;
+ else {
+ if (this.date == null)
+ this.date = new DateTimeType();
+ this.date.setValue(value);
+ }
return this;
}
@@ -297,6 +564,30 @@ public class SupplyRequest extends DomainResource {
return this;
}
+ /**
+ * @return {@link #kind} (Category of supply, e.g. central, non-stock, etc. This is used to support work flows associated with the supply process.)
+ */
+ public CodeableConcept getKind() {
+ if (this.kind == null)
+ if (Configuration.errorOnAutoCreate())
+ throw new Error("Attempt to auto-create SupplyRequest.kind");
+ else if (Configuration.doAutoCreate())
+ this.kind = new CodeableConcept(); // cc
+ return this.kind;
+ }
+
+ public boolean hasKind() {
+ return this.kind != null && !this.kind.isEmpty();
+ }
+
+ /**
+ * @param value {@link #kind} (Category of supply, e.g. central, non-stock, etc. This is used to support work flows associated with the supply process.)
+ */
+ public SupplyRequest setKind(CodeableConcept value) {
+ this.kind = value;
+ return this;
+ }
+
/**
* @return {@link #orderedItem} (The item that is requested to be supplied.)
*/
@@ -337,66 +628,166 @@ public class SupplyRequest extends DomainResource {
}
/**
- * @return {@link #patient} (A link to a resource representing the person whom the ordered item is for.)
+ * @return {@link #supplier} (Who is intended to fulfill the request.)
*/
- public Reference getPatient() {
- if (this.patient == null)
- if (Configuration.errorOnAutoCreate())
- throw new Error("Attempt to auto-create SupplyRequest.patient");
- else if (Configuration.doAutoCreate())
- this.patient = new Reference(); // cc
- return this.patient;
+ public List getSupplier() {
+ if (this.supplier == null)
+ this.supplier = new ArrayList();
+ return this.supplier;
}
- public boolean hasPatient() {
- return this.patient != null && !this.patient.isEmpty();
+ public boolean hasSupplier() {
+ if (this.supplier == null)
+ return false;
+ for (Reference item : this.supplier)
+ if (!item.isEmpty())
+ return true;
+ return false;
}
/**
- * @param value {@link #patient} (A link to a resource representing the person whom the ordered item is for.)
+ * @return {@link #supplier} (Who is intended to fulfill the request.)
*/
- public SupplyRequest setPatient(Reference value) {
- this.patient = value;
+ // syntactic sugar
+ public Reference addSupplier() { //3
+ Reference t = new Reference();
+ if (this.supplier == null)
+ this.supplier = new ArrayList();
+ this.supplier.add(t);
+ return t;
+ }
+
+ // syntactic sugar
+ public SupplyRequest addSupplier(Reference t) { //3
+ if (t == null)
+ return this;
+ if (this.supplier == null)
+ this.supplier = new ArrayList();
+ this.supplier.add(t);
return this;
}
/**
- * @return {@link #patient} The actual object that is the target of the reference. The reference library doesn't populate this, but you can use it to hold the resource if you resolve it. (A link to a resource representing the person whom the ordered item is for.)
+ * @return {@link #supplier} (The actual objects that are the target of the reference. The reference library doesn't populate this, but you can use this to hold the resources if you resolvethemt. Who is intended to fulfill the request.)
*/
- public Patient getPatientTarget() {
- if (this.patientTarget == null)
- if (Configuration.errorOnAutoCreate())
- throw new Error("Attempt to auto-create SupplyRequest.patient");
- else if (Configuration.doAutoCreate())
- this.patientTarget = new Patient(); // aa
- return this.patientTarget;
+ public List getSupplierTarget() {
+ if (this.supplierTarget == null)
+ this.supplierTarget = new ArrayList();
+ return this.supplierTarget;
+ }
+
+ // syntactic sugar
+ /**
+ * @return {@link #supplier} (Add an actual object that is the target of the reference. The reference library doesn't use these, but you can use this to hold the resources if you resolvethemt. Who is intended to fulfill the request.)
+ */
+ public Organization addSupplierTarget() {
+ Organization r = new Organization();
+ if (this.supplierTarget == null)
+ this.supplierTarget = new ArrayList();
+ this.supplierTarget.add(r);
+ return r;
}
/**
- * @param value {@link #patient} The actual object that is the target of the reference. The reference library doesn't use these, but you can use it to hold the resource if you resolve it. (A link to a resource representing the person whom the ordered item is for.)
+ * @return {@link #reason} (Why the supply item was requested.)
*/
- public SupplyRequest setPatientTarget(Patient value) {
- this.patientTarget = value;
+ public Type getReason() {
+ return this.reason;
+ }
+
+ /**
+ * @return {@link #reason} (Why the supply item was requested.)
+ */
+ public CodeableConcept getReasonCodeableConcept() throws Exception {
+ if (!(this.reason instanceof CodeableConcept))
+ throw new Exception("Type mismatch: the type CodeableConcept was expected, but "+this.reason.getClass().getName()+" was encountered");
+ return (CodeableConcept) this.reason;
+ }
+
+ public boolean hasReasonCodeableConcept() throws Exception {
+ return this.reason instanceof CodeableConcept;
+ }
+
+ /**
+ * @return {@link #reason} (Why the supply item was requested.)
+ */
+ public Reference getReasonReference() throws Exception {
+ if (!(this.reason instanceof Reference))
+ throw new Exception("Type mismatch: the type Reference was expected, but "+this.reason.getClass().getName()+" was encountered");
+ return (Reference) this.reason;
+ }
+
+ public boolean hasReasonReference() throws Exception {
+ return this.reason instanceof Reference;
+ }
+
+ public boolean hasReason() {
+ return this.reason != null && !this.reason.isEmpty();
+ }
+
+ /**
+ * @param value {@link #reason} (Why the supply item was requested.)
+ */
+ public SupplyRequest setReason(Type value) {
+ this.reason = value;
+ return this;
+ }
+
+ /**
+ * @return {@link #when} (When the request should be fulfilled.)
+ */
+ public SupplyRequestWhenComponent getWhen() {
+ if (this.when == null)
+ if (Configuration.errorOnAutoCreate())
+ throw new Error("Attempt to auto-create SupplyRequest.when");
+ else if (Configuration.doAutoCreate())
+ this.when = new SupplyRequestWhenComponent(); // cc
+ return this.when;
+ }
+
+ public boolean hasWhen() {
+ return this.when != null && !this.when.isEmpty();
+ }
+
+ /**
+ * @param value {@link #when} (When the request should be fulfilled.)
+ */
+ public SupplyRequest setWhen(SupplyRequestWhenComponent value) {
+ this.when = value;
return this;
}
protected void listChildren(List childrenList) {
super.listChildren(childrenList);
- childrenList.add(new Property("kind", "CodeableConcept", "Category of supply, e.g. central, non-stock, etc. This is used to support work flows associated with the supply process.", 0, java.lang.Integer.MAX_VALUE, kind));
+ childrenList.add(new Property("patient", "Reference(Patient)", "A link to a resource representing the person whom the ordered item is for.", 0, java.lang.Integer.MAX_VALUE, patient));
+ childrenList.add(new Property("source", "Reference(Practitioner|Organization|Patient)", "The Practitioner , Organization or Patient who initiated this order for the Supply.", 0, java.lang.Integer.MAX_VALUE, source));
+ childrenList.add(new Property("date", "dateTime", "When the request was made.", 0, java.lang.Integer.MAX_VALUE, date));
childrenList.add(new Property("identifier", "Identifier", "Unique identifier for this supply request.", 0, java.lang.Integer.MAX_VALUE, identifier));
childrenList.add(new Property("status", "code", "Status of the supply request.", 0, java.lang.Integer.MAX_VALUE, status));
+ childrenList.add(new Property("kind", "CodeableConcept", "Category of supply, e.g. central, non-stock, etc. This is used to support work flows associated with the supply process.", 0, java.lang.Integer.MAX_VALUE, kind));
childrenList.add(new Property("orderedItem", "Reference(Medication|Substance|Device)", "The item that is requested to be supplied.", 0, java.lang.Integer.MAX_VALUE, orderedItem));
- childrenList.add(new Property("patient", "Reference(Patient)", "A link to a resource representing the person whom the ordered item is for.", 0, java.lang.Integer.MAX_VALUE, patient));
+ childrenList.add(new Property("supplier", "Reference(Organization)", "Who is intended to fulfill the request.", 0, java.lang.Integer.MAX_VALUE, supplier));
+ childrenList.add(new Property("reason[x]", "CodeableConcept|Reference(any)", "Why the supply item was requested.", 0, java.lang.Integer.MAX_VALUE, reason));
+ childrenList.add(new Property("when", "", "When the request should be fulfilled.", 0, java.lang.Integer.MAX_VALUE, when));
}
public SupplyRequest copy() {
SupplyRequest dst = new SupplyRequest();
copyValues(dst);
- dst.kind = kind == null ? null : kind.copy();
+ dst.patient = patient == null ? null : patient.copy();
+ dst.source = source == null ? null : source.copy();
+ dst.date = date == null ? null : date.copy();
dst.identifier = identifier == null ? null : identifier.copy();
dst.status = status == null ? null : status.copy();
+ dst.kind = kind == null ? null : kind.copy();
dst.orderedItem = orderedItem == null ? null : orderedItem.copy();
- dst.patient = patient == null ? null : patient.copy();
+ if (supplier != null) {
+ dst.supplier = new ArrayList();
+ for (Reference i : supplier)
+ dst.supplier.add(i.copy());
+ };
+ dst.reason = reason == null ? null : reason.copy();
+ dst.when = when == null ? null : when.copy();
return dst;
}
@@ -411,8 +802,10 @@ public class SupplyRequest extends DomainResource {
if (!(other instanceof SupplyRequest))
return false;
SupplyRequest o = (SupplyRequest) other;
- return compareDeep(kind, o.kind, true) && compareDeep(identifier, o.identifier, true) && compareDeep(status, o.status, true)
- && compareDeep(orderedItem, o.orderedItem, true) && compareDeep(patient, o.patient, true);
+ return compareDeep(patient, o.patient, true) && compareDeep(source, o.source, true) && compareDeep(date, o.date, true)
+ && compareDeep(identifier, o.identifier, true) && compareDeep(status, o.status, true) && compareDeep(kind, o.kind, true)
+ && compareDeep(orderedItem, o.orderedItem, true) && compareDeep(supplier, o.supplier, true) && compareDeep(reason, o.reason, true)
+ && compareDeep(when, o.when, true);
}
@Override
@@ -422,13 +815,14 @@ public class SupplyRequest extends DomainResource {
if (!(other instanceof SupplyRequest))
return false;
SupplyRequest o = (SupplyRequest) other;
- return compareValues(status, o.status, true);
+ return compareValues(date, o.date, true) && compareValues(status, o.status, true);
}
public boolean isEmpty() {
- return super.isEmpty() && (kind == null || kind.isEmpty()) && (identifier == null || identifier.isEmpty())
- && (status == null || status.isEmpty()) && (orderedItem == null || orderedItem.isEmpty())
- && (patient == null || patient.isEmpty());
+ return super.isEmpty() && (patient == null || patient.isEmpty()) && (source == null || source.isEmpty())
+ && (date == null || date.isEmpty()) && (identifier == null || identifier.isEmpty()) && (status == null || status.isEmpty())
+ && (kind == null || kind.isEmpty()) && (orderedItem == null || orderedItem.isEmpty()) && (supplier == null || supplier.isEmpty())
+ && (reason == null || reason.isEmpty()) && (when == null || when.isEmpty());
}
@Override
@@ -436,12 +830,18 @@ public class SupplyRequest extends DomainResource {
return ResourceType.SupplyRequest;
}
+ @SearchParamDefinition(name="date", path="SupplyRequest.date", description="When the request was made", type="date" )
+ public static final String SP_DATE = "date";
@SearchParamDefinition(name="identifier", path="SupplyRequest.identifier", description="Unique identifier", type="token" )
public static final String SP_IDENTIFIER = "identifier";
@SearchParamDefinition(name="kind", path="SupplyRequest.kind", description="The kind of supply (central, non-stock, etc)", type="token" )
public static final String SP_KIND = "kind";
@SearchParamDefinition(name="patient", path="SupplyRequest.patient", description="Patient for whom the item is supplied", type="reference" )
public static final String SP_PATIENT = "patient";
+ @SearchParamDefinition(name="supplier", path="SupplyRequest.supplier", description="Who is intended to fulfill the request", type="reference" )
+ public static final String SP_SUPPLIER = "supplier";
+ @SearchParamDefinition(name="source", path="SupplyRequest.source", description="Who initiated this order", type="reference" )
+ public static final String SP_SOURCE = "source";
@SearchParamDefinition(name="status", path="SupplyRequest.status", description="requested | completed | failed | cancelled", type="token" )
public static final String SP_STATUS = "status";
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/TestScript.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/TestScript.java
index 0fccaff88e1..44d09caec1c 100644
--- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/TestScript.java
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/TestScript.java
@@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
*/
-// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
+// Generated on Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
import java.util.*;
@@ -169,21 +169,21 @@ public class TestScript extends DomainResource {
}
public String getSystem() {
switch (this) {
- case READ: return "http://hl7.org.fhir/test-operation-codes";
- case VREAD: return "http://hl7.org.fhir/test-operation-codes";
- case UPDATE: return "http://hl7.org.fhir/test-operation-codes";
- case DELETE: return "http://hl7.org.fhir/test-operation-codes";
- case HISTORY: return "http://hl7.org.fhir/test-operation-codes";
- case CREATE: return "http://hl7.org.fhir/test-operation-codes";
- case SEARCH: return "http://hl7.org.fhir/test-operation-codes";
- case TRANSACTION: return "http://hl7.org.fhir/test-operation-codes";
- case CONFORMANCE: return "http://hl7.org.fhir/test-operation-codes";
- case TAGS: return "http://hl7.org.fhir/test-operation-codes";
- case MAILBOX: return "http://hl7.org.fhir/test-operation-codes";
- case DOCUMENT: return "http://hl7.org.fhir/test-operation-codes";
- case ASSERTION: return "http://hl7.org.fhir/test-operation-codes";
- case ASSERTIONFALSE: return "http://hl7.org.fhir/test-operation-codes";
- case ASSERTIONWARNING: return "http://hl7.org.fhir/test-operation-codes";
+ case READ: return "http://hl7.org/fhir/test-operation-codes";
+ case VREAD: return "http://hl7.org/fhir/test-operation-codes";
+ case UPDATE: return "http://hl7.org/fhir/test-operation-codes";
+ case DELETE: return "http://hl7.org/fhir/test-operation-codes";
+ case HISTORY: return "http://hl7.org/fhir/test-operation-codes";
+ case CREATE: return "http://hl7.org/fhir/test-operation-codes";
+ case SEARCH: return "http://hl7.org/fhir/test-operation-codes";
+ case TRANSACTION: return "http://hl7.org/fhir/test-operation-codes";
+ case CONFORMANCE: return "http://hl7.org/fhir/test-operation-codes";
+ case TAGS: return "http://hl7.org/fhir/test-operation-codes";
+ case MAILBOX: return "http://hl7.org/fhir/test-operation-codes";
+ case DOCUMENT: return "http://hl7.org/fhir/test-operation-codes";
+ case ASSERTION: return "http://hl7.org/fhir/test-operation-codes";
+ case ASSERTIONFALSE: return "http://hl7.org/fhir/test-operation-codes";
+ case ASSERTIONWARNING: return "http://hl7.org/fhir/test-operation-codes";
default: return "?";
}
}
@@ -332,8 +332,8 @@ public class TestScript extends DomainResource {
}
public String getSystem() {
switch (this) {
- case XML: return "http://hl7.org.fhir/content-type";
- case JSON: return "http://hl7.org.fhir/content-type";
+ case XML: return "http://hl7.org/fhir/content-type";
+ case JSON: return "http://hl7.org/fhir/content-type";
default: return "?";
}
}
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Timing.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Timing.java
index dc9ca00317b..66ce58793ee 100644
--- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Timing.java
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Timing.java
@@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
*/
-// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
+// Generated on Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
import java.util.*;
@@ -431,11 +431,11 @@ public class Timing extends Type implements ICompositeType {
@Block()
public static class TimingRepeatComponent extends Element implements IBaseDatatypeElement {
/**
- * Outer bounds for start and/or end limits of the timing schedule.
+ * Either a duration for the length of the timing schedule, a range of possible length, or outer bounds for start and/or end limits of the timing schedule.
*/
- @Child(name = "bounds", type = {Period.class}, order=1, min=0, max=1)
- @Description(shortDefinition="Start and/or end limits", formalDefinition="Outer bounds for start and/or end limits of the timing schedule." )
- protected Period bounds;
+ @Child(name = "bounds", type = {Duration.class, Range.class, Period.class}, order=1, min=0, max=1)
+ @Description(shortDefinition="Length/Range of lengths, or (Start and/or end) limits", formalDefinition="Either a duration for the length of the timing schedule, a range of possible length, or outer bounds for start and/or end limits of the timing schedule." )
+ protected Type bounds;
/**
* A total count of the desired number of repetitions.
@@ -451,56 +451,63 @@ public class Timing extends Type implements ICompositeType {
@Description(shortDefinition="How long when it happens", formalDefinition="How long this thing happens for when it happens." )
protected DecimalType duration;
+ /**
+ * The upper limit of how long this thing happens for when it happens.
+ */
+ @Child(name = "durationMax", type = {DecimalType.class}, order=4, min=0, max=1)
+ @Description(shortDefinition="How long when it happens (Max)", formalDefinition="The upper limit of how long this thing happens for when it happens." )
+ protected DecimalType durationMax;
+
/**
* The units of time for the duration, in UCUM units.
*/
- @Child(name = "durationUnits", type = {CodeType.class}, order=4, min=0, max=1)
+ @Child(name = "durationUnits", type = {CodeType.class}, order=5, min=0, max=1)
@Description(shortDefinition="s | min | h | d | wk | mo | a - unit of time (UCUM)", formalDefinition="The units of time for the duration, in UCUM units." )
protected Enumeration durationUnits;
/**
* The number of times to repeat the action within the specified period / period range (i.e. both period and periodMax provided).
*/
- @Child(name = "frequency", type = {IntegerType.class}, order=5, min=0, max=1)
+ @Child(name = "frequency", type = {IntegerType.class}, order=6, min=0, max=1)
@Description(shortDefinition="Event occurs frequency times per duration", formalDefinition="The number of times to repeat the action within the specified period / period range (i.e. both period and periodMax provided)." )
protected IntegerType frequency;
/**
* If present, indicates that the frequency is a range - so repeat between [frequency] and [frequencyMax] times within the period or period range.
*/
- @Child(name = "frequencyMax", type = {IntegerType.class}, order=6, min=0, max=1)
+ @Child(name = "frequencyMax", type = {IntegerType.class}, order=7, min=0, max=1)
@Description(shortDefinition="Event occurs frequency times per duration", formalDefinition="If present, indicates that the frequency is a range - so repeat between [frequency] and [frequencyMax] times within the period or period range." )
protected IntegerType frequencyMax;
/**
* Indicates the duration of time over which repetitions are to occur. E.g. to express "3 times per day", 3 would be the frequency and "1 day" would be the period.
*/
- @Child(name = "period", type = {DecimalType.class}, order=7, min=0, max=1)
+ @Child(name = "period", type = {DecimalType.class}, order=8, min=0, max=1)
@Description(shortDefinition="Event occurs frequency times per period", formalDefinition="Indicates the duration of time over which repetitions are to occur. E.g. to express '3 times per day', 3 would be the frequency and '1 day' would be the period." )
protected DecimalType period;
/**
* If present, indicates that the period is a range from [period] to [periodMax], allowing expressing concepts such as "do this once every 3-5 days.
*/
- @Child(name = "periodMax", type = {DecimalType.class}, order=8, min=0, max=1)
+ @Child(name = "periodMax", type = {DecimalType.class}, order=9, min=0, max=1)
@Description(shortDefinition="Upper limit of period (3-4 hours)", formalDefinition="If present, indicates that the period is a range from [period] to [periodMax], allowing expressing concepts such as 'do this once every 3-5 days." )
protected DecimalType periodMax;
/**
* The units of time for the period in UCUM units.
*/
- @Child(name = "periodUnits", type = {CodeType.class}, order=9, min=0, max=1)
+ @Child(name = "periodUnits", type = {CodeType.class}, order=10, min=0, max=1)
@Description(shortDefinition="s | min | h | d | wk | mo | a - unit of time (UCUM)", formalDefinition="The units of time for the period in UCUM units." )
protected Enumeration periodUnits;
/**
* A real world event that the occurrence of the event should be tied to.
*/
- @Child(name = "when", type = {CodeType.class}, order=10, min=0, max=1)
+ @Child(name = "when", type = {CodeType.class}, order=11, min=0, max=1)
@Description(shortDefinition="Regular life events the event is tied to", formalDefinition="A real world event that the occurrence of the event should be tied to." )
protected Enumeration when;
- private static final long serialVersionUID = -960490812L;
+ private static final long serialVersionUID = -585686982L;
/*
* Constructor
@@ -510,25 +517,59 @@ public class Timing extends Type implements ICompositeType {
}
/**
- * @return {@link #bounds} (Outer bounds for start and/or end limits of the timing schedule.)
+ * @return {@link #bounds} (Either a duration for the length of the timing schedule, a range of possible length, or outer bounds for start and/or end limits of the timing schedule.)
*/
- public Period getBounds() {
- if (this.bounds == null)
- if (Configuration.errorOnAutoCreate())
- throw new Error("Attempt to auto-create TimingRepeatComponent.bounds");
- else if (Configuration.doAutoCreate())
- this.bounds = new Period(); // cc
+ public Type getBounds() {
return this.bounds;
}
+ /**
+ * @return {@link #bounds} (Either a duration for the length of the timing schedule, a range of possible length, or outer bounds for start and/or end limits of the timing schedule.)
+ */
+ public Duration getBoundsDuration() throws Exception {
+ if (!(this.bounds instanceof Duration))
+ throw new Exception("Type mismatch: the type Duration was expected, but "+this.bounds.getClass().getName()+" was encountered");
+ return (Duration) this.bounds;
+ }
+
+ public boolean hasBoundsDuration() throws Exception {
+ return this.bounds instanceof Duration;
+ }
+
+ /**
+ * @return {@link #bounds} (Either a duration for the length of the timing schedule, a range of possible length, or outer bounds for start and/or end limits of the timing schedule.)
+ */
+ public Range getBoundsRange() throws Exception {
+ if (!(this.bounds instanceof Range))
+ throw new Exception("Type mismatch: the type Range was expected, but "+this.bounds.getClass().getName()+" was encountered");
+ return (Range) this.bounds;
+ }
+
+ public boolean hasBoundsRange() throws Exception {
+ return this.bounds instanceof Range;
+ }
+
+ /**
+ * @return {@link #bounds} (Either a duration for the length of the timing schedule, a range of possible length, or outer bounds for start and/or end limits of the timing schedule.)
+ */
+ public Period getBoundsPeriod() throws Exception {
+ if (!(this.bounds instanceof Period))
+ throw new Exception("Type mismatch: the type Period was expected, but "+this.bounds.getClass().getName()+" was encountered");
+ return (Period) this.bounds;
+ }
+
+ public boolean hasBoundsPeriod() throws Exception {
+ return this.bounds instanceof Period;
+ }
+
public boolean hasBounds() {
return this.bounds != null && !this.bounds.isEmpty();
}
/**
- * @param value {@link #bounds} (Outer bounds for start and/or end limits of the timing schedule.)
+ * @param value {@link #bounds} (Either a duration for the length of the timing schedule, a range of possible length, or outer bounds for start and/or end limits of the timing schedule.)
*/
- public TimingRepeatComponent setBounds(Period value) {
+ public TimingRepeatComponent setBounds(Type value) {
this.bounds = value;
return this;
}
@@ -627,6 +668,55 @@ public class Timing extends Type implements ICompositeType {
return this;
}
+ /**
+ * @return {@link #durationMax} (The upper limit of how long this thing happens for when it happens.). This is the underlying object with id, value and extensions. The accessor "getDurationMax" gives direct access to the value
+ */
+ public DecimalType getDurationMaxElement() {
+ if (this.durationMax == null)
+ if (Configuration.errorOnAutoCreate())
+ throw new Error("Attempt to auto-create TimingRepeatComponent.durationMax");
+ else if (Configuration.doAutoCreate())
+ this.durationMax = new DecimalType(); // bb
+ return this.durationMax;
+ }
+
+ public boolean hasDurationMaxElement() {
+ return this.durationMax != null && !this.durationMax.isEmpty();
+ }
+
+ public boolean hasDurationMax() {
+ return this.durationMax != null && !this.durationMax.isEmpty();
+ }
+
+ /**
+ * @param value {@link #durationMax} (The upper limit of how long this thing happens for when it happens.). This is the underlying object with id, value and extensions. The accessor "getDurationMax" gives direct access to the value
+ */
+ public TimingRepeatComponent setDurationMaxElement(DecimalType value) {
+ this.durationMax = value;
+ return this;
+ }
+
+ /**
+ * @return The upper limit of how long this thing happens for when it happens.
+ */
+ public BigDecimal getDurationMax() {
+ return this.durationMax == null ? null : this.durationMax.getValue();
+ }
+
+ /**
+ * @param value The upper limit of how long this thing happens for when it happens.
+ */
+ public TimingRepeatComponent setDurationMax(BigDecimal value) {
+ if (value == null)
+ this.durationMax = null;
+ else {
+ if (this.durationMax == null)
+ this.durationMax = new DecimalType();
+ this.durationMax.setValue(value);
+ }
+ return this;
+ }
+
/**
* @return {@link #durationUnits} (The units of time for the duration, in UCUM units.). This is the underlying object with id, value and extensions. The accessor "getDurationUnits" gives direct access to the value
*/
@@ -964,9 +1054,10 @@ public class Timing extends Type implements ICompositeType {
protected void listChildren(List childrenList) {
super.listChildren(childrenList);
- childrenList.add(new Property("bounds", "Period", "Outer bounds for start and/or end limits of the timing schedule.", 0, java.lang.Integer.MAX_VALUE, bounds));
+ childrenList.add(new Property("bounds[x]", "Duration|Range|Period", "Either a duration for the length of the timing schedule, a range of possible length, or outer bounds for start and/or end limits of the timing schedule.", 0, java.lang.Integer.MAX_VALUE, bounds));
childrenList.add(new Property("count", "integer", "A total count of the desired number of repetitions.", 0, java.lang.Integer.MAX_VALUE, count));
childrenList.add(new Property("duration", "decimal", "How long this thing happens for when it happens.", 0, java.lang.Integer.MAX_VALUE, duration));
+ childrenList.add(new Property("durationMax", "decimal", "The upper limit of how long this thing happens for when it happens.", 0, java.lang.Integer.MAX_VALUE, durationMax));
childrenList.add(new Property("durationUnits", "code", "The units of time for the duration, in UCUM units.", 0, java.lang.Integer.MAX_VALUE, durationUnits));
childrenList.add(new Property("frequency", "integer", "The number of times to repeat the action within the specified period / period range (i.e. both period and periodMax provided).", 0, java.lang.Integer.MAX_VALUE, frequency));
childrenList.add(new Property("frequencyMax", "integer", "If present, indicates that the frequency is a range - so repeat between [frequency] and [frequencyMax] times within the period or period range.", 0, java.lang.Integer.MAX_VALUE, frequencyMax));
@@ -982,6 +1073,7 @@ public class Timing extends Type implements ICompositeType {
dst.bounds = bounds == null ? null : bounds.copy();
dst.count = count == null ? null : count.copy();
dst.duration = duration == null ? null : duration.copy();
+ dst.durationMax = durationMax == null ? null : durationMax.copy();
dst.durationUnits = durationUnits == null ? null : durationUnits.copy();
dst.frequency = frequency == null ? null : frequency.copy();
dst.frequencyMax = frequencyMax == null ? null : frequencyMax.copy();
@@ -1000,9 +1092,10 @@ public class Timing extends Type implements ICompositeType {
return false;
TimingRepeatComponent o = (TimingRepeatComponent) other;
return compareDeep(bounds, o.bounds, true) && compareDeep(count, o.count, true) && compareDeep(duration, o.duration, true)
- && compareDeep(durationUnits, o.durationUnits, true) && compareDeep(frequency, o.frequency, true)
- && compareDeep(frequencyMax, o.frequencyMax, true) && compareDeep(period, o.period, true) && compareDeep(periodMax, o.periodMax, true)
- && compareDeep(periodUnits, o.periodUnits, true) && compareDeep(when, o.when, true);
+ && compareDeep(durationMax, o.durationMax, true) && compareDeep(durationUnits, o.durationUnits, true)
+ && compareDeep(frequency, o.frequency, true) && compareDeep(frequencyMax, o.frequencyMax, true)
+ && compareDeep(period, o.period, true) && compareDeep(periodMax, o.periodMax, true) && compareDeep(periodUnits, o.periodUnits, true)
+ && compareDeep(when, o.when, true);
}
@Override
@@ -1012,17 +1105,18 @@ public class Timing extends Type implements ICompositeType {
if (!(other instanceof TimingRepeatComponent))
return false;
TimingRepeatComponent o = (TimingRepeatComponent) other;
- return compareValues(count, o.count, true) && compareValues(duration, o.duration, true) && compareValues(durationUnits, o.durationUnits, true)
- && compareValues(frequency, o.frequency, true) && compareValues(frequencyMax, o.frequencyMax, true)
- && compareValues(period, o.period, true) && compareValues(periodMax, o.periodMax, true) && compareValues(periodUnits, o.periodUnits, true)
- && compareValues(when, o.when, true);
+ return compareValues(count, o.count, true) && compareValues(duration, o.duration, true) && compareValues(durationMax, o.durationMax, true)
+ && compareValues(durationUnits, o.durationUnits, true) && compareValues(frequency, o.frequency, true)
+ && compareValues(frequencyMax, o.frequencyMax, true) && compareValues(period, o.period, true) && compareValues(periodMax, o.periodMax, true)
+ && compareValues(periodUnits, o.periodUnits, true) && compareValues(when, o.when, true);
}
public boolean isEmpty() {
return super.isEmpty() && (bounds == null || bounds.isEmpty()) && (count == null || count.isEmpty())
- && (duration == null || duration.isEmpty()) && (durationUnits == null || durationUnits.isEmpty())
- && (frequency == null || frequency.isEmpty()) && (frequencyMax == null || frequencyMax.isEmpty())
- && (period == null || period.isEmpty()) && (periodMax == null || periodMax.isEmpty()) && (periodUnits == null || periodUnits.isEmpty())
+ && (duration == null || duration.isEmpty()) && (durationMax == null || durationMax.isEmpty())
+ && (durationUnits == null || durationUnits.isEmpty()) && (frequency == null || frequency.isEmpty())
+ && (frequencyMax == null || frequencyMax.isEmpty()) && (period == null || period.isEmpty())
+ && (periodMax == null || periodMax.isEmpty()) && (periodUnits == null || periodUnits.isEmpty())
&& (when == null || when.isEmpty());
}
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/ValueSet.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/ValueSet.java
index e382f722a83..bf4a967c87a 100644
--- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/ValueSet.java
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/ValueSet.java
@@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
*/
-// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
+// Generated on Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
import java.util.*;
@@ -106,12 +106,12 @@ public class ValueSet extends DomainResource {
}
public String getSystem() {
switch (this) {
- case EQUAL: return "http://hl7.org.fhir/filter-operator";
- case ISA: return "http://hl7.org.fhir/filter-operator";
- case ISNOTA: return "http://hl7.org.fhir/filter-operator";
- case REGEX: return "http://hl7.org.fhir/filter-operator";
- case IN: return "http://hl7.org.fhir/filter-operator";
- case NOTIN: return "http://hl7.org.fhir/filter-operator";
+ case EQUAL: return "http://hl7.org/fhir/filter-operator";
+ case ISA: return "http://hl7.org/fhir/filter-operator";
+ case ISNOTA: return "http://hl7.org/fhir/filter-operator";
+ case REGEX: return "http://hl7.org/fhir/filter-operator";
+ case IN: return "http://hl7.org/fhir/filter-operator";
+ case NOTIN: return "http://hl7.org/fhir/filter-operator";
default: return "?";
}
}
@@ -128,12 +128,12 @@ public class ValueSet extends DomainResource {
}
public String getDisplay() {
switch (this) {
- case EQUAL: return " ";
- case ISA: return "Is A";
- case ISNOTA: return "Is Not A";
- case REGEX: return "Regex";
- case IN: return "In";
- case NOTIN: return "Not In";
+ case EQUAL: return "Equals";
+ case ISA: return "Is A (by subsumption)";
+ case ISNOTA: return "Not (Is A) (by subsumption)";
+ case REGEX: return "Regular Expression";
+ case IN: return "In Set";
+ case NOTIN: return "Not in Set";
default: return "?";
}
}
@@ -624,7 +624,7 @@ public class ValueSet extends DomainResource {
/**
* If this code is not for use as a real concept.
*/
- @Child(name = "abstract", type = {BooleanType.class}, order=2, min=0, max=1)
+ @Child(name = "abstract_", type = {BooleanType.class}, order=2, min=0, max=1)
@Description(shortDefinition="If this code is not for use as a real concept", formalDefinition="If this code is not for use as a real concept." )
protected BooleanType abstract_;
@@ -643,10 +643,10 @@ public class ValueSet extends DomainResource {
protected StringType definition;
/**
- * Additional representations for the concept - other languages, aliases, specialised purposes, used for particular purposes, etc.
+ * Additional representations for the concept - other languages, aliases, specialized purposes, used for particular purposes, etc.
*/
@Child(name = "designation", type = {}, order=5, min=0, max=Child.MAX_UNLIMITED)
- @Description(shortDefinition="Additional representations for the concept", formalDefinition="Additional representations for the concept - other languages, aliases, specialised purposes, used for particular purposes, etc." )
+ @Description(shortDefinition="Additional representations for the concept", formalDefinition="Additional representations for the concept - other languages, aliases, specialized purposes, used for particular purposes, etc." )
protected List designation;
/**
@@ -862,7 +862,7 @@ public class ValueSet extends DomainResource {
}
/**
- * @return {@link #designation} (Additional representations for the concept - other languages, aliases, specialised purposes, used for particular purposes, etc.)
+ * @return {@link #designation} (Additional representations for the concept - other languages, aliases, specialized purposes, used for particular purposes, etc.)
*/
public List getDesignation() {
if (this.designation == null)
@@ -880,7 +880,7 @@ public class ValueSet extends DomainResource {
}
/**
- * @return {@link #designation} (Additional representations for the concept - other languages, aliases, specialised purposes, used for particular purposes, etc.)
+ * @return {@link #designation} (Additional representations for the concept - other languages, aliases, specialized purposes, used for particular purposes, etc.)
*/
// syntactic sugar
public ConceptDefinitionDesignationComponent addDesignation() { //3
@@ -947,7 +947,7 @@ public class ValueSet extends DomainResource {
childrenList.add(new Property("abstract", "boolean", "If this code is not for use as a real concept.", 0, java.lang.Integer.MAX_VALUE, abstract_));
childrenList.add(new Property("display", "string", "Text to Display to the user.", 0, java.lang.Integer.MAX_VALUE, display));
childrenList.add(new Property("definition", "string", "The formal definition of the concept. Formal definitions are not required, because of the prevalence of legacy systems without them, but they are highly recommended, as without them there is no formal meaning associated with the concept.", 0, java.lang.Integer.MAX_VALUE, definition));
- childrenList.add(new Property("designation", "", "Additional representations for the concept - other languages, aliases, specialised purposes, used for particular purposes, etc.", 0, java.lang.Integer.MAX_VALUE, designation));
+ childrenList.add(new Property("designation", "", "Additional representations for the concept - other languages, aliases, specialized purposes, used for particular purposes, etc.", 0, java.lang.Integer.MAX_VALUE, designation));
childrenList.add(new Property("concept", "@ValueSet.define.concept", "Child Concepts (is-a / contains).", 0, java.lang.Integer.MAX_VALUE, concept));
}
@@ -1009,7 +1009,7 @@ public class ValueSet extends DomainResource {
* The language this designation is defined for.
*/
@Child(name = "language", type = {CodeType.class}, order=1, min=0, max=1)
- @Description(shortDefinition="Language of the designation", formalDefinition="The language this designation is defined for." )
+ @Description(shortDefinition="Human language of the designation", formalDefinition="The language this designation is defined for." )
protected CodeType language;
/**
@@ -1210,7 +1210,7 @@ public class ValueSet extends DomainResource {
/**
* Includes the contents of the referenced value set as a part of the contents of this value set. This is an absolute URI that is a reference to ValueSet.uri.
*/
- @Child(name = "import", type = {UriType.class}, order=1, min=0, max=Child.MAX_UNLIMITED)
+ @Child(name = "import_", type = {UriType.class}, order=1, min=0, max=Child.MAX_UNLIMITED)
@Description(shortDefinition="Import the contents of another value set", formalDefinition="Includes the contents of the referenced value set as a part of the contents of this value set. This is an absolute URI that is a reference to ValueSet.uri." )
protected List import_;
@@ -1719,10 +1719,10 @@ public class ValueSet extends DomainResource {
protected StringType display;
/**
- * Additional representations for this concept when used in this value set - other languages, aliases, specialised purposes, used for particular purposes, etc.
+ * Additional representations for this concept when used in this value set - other languages, aliases, specialized purposes, used for particular purposes, etc.
*/
@Child(name = "designation", type = {ConceptDefinitionDesignationComponent.class}, order=3, min=0, max=Child.MAX_UNLIMITED)
- @Description(shortDefinition="Additional representations for this valueset", formalDefinition="Additional representations for this concept when used in this value set - other languages, aliases, specialised purposes, used for particular purposes, etc." )
+ @Description(shortDefinition="Additional representations for this valueset", formalDefinition="Additional representations for this concept when used in this value set - other languages, aliases, specialized purposes, used for particular purposes, etc." )
protected List designation;
private static final long serialVersionUID = -1513912691L;
@@ -1837,7 +1837,7 @@ public class ValueSet extends DomainResource {
}
/**
- * @return {@link #designation} (Additional representations for this concept when used in this value set - other languages, aliases, specialised purposes, used for particular purposes, etc.)
+ * @return {@link #designation} (Additional representations for this concept when used in this value set - other languages, aliases, specialized purposes, used for particular purposes, etc.)
*/
public List getDesignation() {
if (this.designation == null)
@@ -1855,7 +1855,7 @@ public class ValueSet extends DomainResource {
}
/**
- * @return {@link #designation} (Additional representations for this concept when used in this value set - other languages, aliases, specialised purposes, used for particular purposes, etc.)
+ * @return {@link #designation} (Additional representations for this concept when used in this value set - other languages, aliases, specialized purposes, used for particular purposes, etc.)
*/
// syntactic sugar
public ConceptDefinitionDesignationComponent addDesignation() { //3
@@ -1880,7 +1880,7 @@ public class ValueSet extends DomainResource {
super.listChildren(childrenList);
childrenList.add(new Property("code", "code", "Specifies a code for the concept to be included or excluded.", 0, java.lang.Integer.MAX_VALUE, code));
childrenList.add(new Property("display", "string", "The text to display to the user for this concept in the context of this valueset. If no display is provided, then applications using the value set use the display specified for the code by the system.", 0, java.lang.Integer.MAX_VALUE, display));
- childrenList.add(new Property("designation", "@ValueSet.define.concept.designation", "Additional representations for this concept when used in this value set - other languages, aliases, specialised purposes, used for particular purposes, etc.", 0, java.lang.Integer.MAX_VALUE, designation));
+ childrenList.add(new Property("designation", "@ValueSet.define.concept.designation", "Additional representations for this concept when used in this value set - other languages, aliases, specialized purposes, used for particular purposes, etc.", 0, java.lang.Integer.MAX_VALUE, designation));
}
public ConceptReferenceComponent copy() {
@@ -2162,21 +2162,35 @@ public class ValueSet extends DomainResource {
@Description(shortDefinition="Time valueset expansion happened", formalDefinition="The time at which the expansion was produced by the expanding system." )
protected DateTimeType timestamp;
+ /**
+ * The total nober of concepts in the expansion. If the number of concept nodes in this resource is less than the stated number, then the server can return more using the offset parameter.
+ */
+ @Child(name = "total", type = {IntegerType.class}, order=3, min=0, max=1)
+ @Description(shortDefinition="Total number of codes in the expansion", formalDefinition="The total nober of concepts in the expansion. If the number of concept nodes in this resource is less than the stated number, then the server can return more using the offset parameter." )
+ protected IntegerType total;
+
+ /**
+ * If paging is being used, the offset at which this resource starts - e.g. this resource is a partial view into the expansion. If paging is not being used, this element SHALL not be present.
+ */
+ @Child(name = "count", type = {IntegerType.class}, order=4, min=0, max=1)
+ @Description(shortDefinition="Offset at which this resource starts", formalDefinition="If paging is being used, the offset at which this resource starts - e.g. this resource is a partial view into the expansion. If paging is not being used, this element SHALL not be present." )
+ protected IntegerType count;
+
/**
* A Parameter that controlled the expansion process. These parameters may be used by users of expanded value sets to check whether the expansion is suitable for a particular purpose, or to pick the correct expansion.
*/
- @Child(name = "parameter", type = {}, order=3, min=0, max=Child.MAX_UNLIMITED)
+ @Child(name = "parameter", type = {}, order=5, min=0, max=Child.MAX_UNLIMITED)
@Description(shortDefinition="Parameter that controlled the expansion process", formalDefinition="A Parameter that controlled the expansion process. These parameters may be used by users of expanded value sets to check whether the expansion is suitable for a particular purpose, or to pick the correct expansion." )
protected List parameter;
/**
* The codes that are contained in the value set expansion.
*/
- @Child(name = "contains", type = {}, order=4, min=0, max=Child.MAX_UNLIMITED)
+ @Child(name = "contains", type = {}, order=6, min=0, max=Child.MAX_UNLIMITED)
@Description(shortDefinition="Codes in the value set", formalDefinition="The codes that are contained in the value set expansion." )
protected List contains;
- private static final long serialVersionUID = 148339098L;
+ private static final long serialVersionUID = -831777781L;
/*
* Constructor
@@ -2284,6 +2298,96 @@ public class ValueSet extends DomainResource {
return this;
}
+ /**
+ * @return {@link #total} (The total nober of concepts in the expansion. If the number of concept nodes in this resource is less than the stated number, then the server can return more using the offset parameter.). This is the underlying object with id, value and extensions. The accessor "getTotal" gives direct access to the value
+ */
+ public IntegerType getTotalElement() {
+ if (this.total == null)
+ if (Configuration.errorOnAutoCreate())
+ throw new Error("Attempt to auto-create ValueSetExpansionComponent.total");
+ else if (Configuration.doAutoCreate())
+ this.total = new IntegerType(); // bb
+ return this.total;
+ }
+
+ public boolean hasTotalElement() {
+ return this.total != null && !this.total.isEmpty();
+ }
+
+ public boolean hasTotal() {
+ return this.total != null && !this.total.isEmpty();
+ }
+
+ /**
+ * @param value {@link #total} (The total nober of concepts in the expansion. If the number of concept nodes in this resource is less than the stated number, then the server can return more using the offset parameter.). This is the underlying object with id, value and extensions. The accessor "getTotal" gives direct access to the value
+ */
+ public ValueSetExpansionComponent setTotalElement(IntegerType value) {
+ this.total = value;
+ return this;
+ }
+
+ /**
+ * @return The total nober of concepts in the expansion. If the number of concept nodes in this resource is less than the stated number, then the server can return more using the offset parameter.
+ */
+ public int getTotal() {
+ return this.total == null || this.total.isEmpty() ? 0 : this.total.getValue();
+ }
+
+ /**
+ * @param value The total nober of concepts in the expansion. If the number of concept nodes in this resource is less than the stated number, then the server can return more using the offset parameter.
+ */
+ public ValueSetExpansionComponent setTotal(int value) {
+ if (this.total == null)
+ this.total = new IntegerType();
+ this.total.setValue(value);
+ return this;
+ }
+
+ /**
+ * @return {@link #count} (If paging is being used, the offset at which this resource starts - e.g. this resource is a partial view into the expansion. If paging is not being used, this element SHALL not be present.). This is the underlying object with id, value and extensions. The accessor "getCount" gives direct access to the value
+ */
+ public IntegerType getCountElement() {
+ if (this.count == null)
+ if (Configuration.errorOnAutoCreate())
+ throw new Error("Attempt to auto-create ValueSetExpansionComponent.count");
+ else if (Configuration.doAutoCreate())
+ this.count = new IntegerType(); // bb
+ return this.count;
+ }
+
+ public boolean hasCountElement() {
+ return this.count != null && !this.count.isEmpty();
+ }
+
+ public boolean hasCount() {
+ return this.count != null && !this.count.isEmpty();
+ }
+
+ /**
+ * @param value {@link #count} (If paging is being used, the offset at which this resource starts - e.g. this resource is a partial view into the expansion. If paging is not being used, this element SHALL not be present.). This is the underlying object with id, value and extensions. The accessor "getCount" gives direct access to the value
+ */
+ public ValueSetExpansionComponent setCountElement(IntegerType value) {
+ this.count = value;
+ return this;
+ }
+
+ /**
+ * @return If paging is being used, the offset at which this resource starts - e.g. this resource is a partial view into the expansion. If paging is not being used, this element SHALL not be present.
+ */
+ public int getCount() {
+ return this.count == null || this.count.isEmpty() ? 0 : this.count.getValue();
+ }
+
+ /**
+ * @param value If paging is being used, the offset at which this resource starts - e.g. this resource is a partial view into the expansion. If paging is not being used, this element SHALL not be present.
+ */
+ public ValueSetExpansionComponent setCount(int value) {
+ if (this.count == null)
+ this.count = new IntegerType();
+ this.count.setValue(value);
+ return this;
+ }
+
/**
* @return {@link #parameter} (A Parameter that controlled the expansion process. These parameters may be used by users of expanded value sets to check whether the expansion is suitable for a particular purpose, or to pick the correct expansion.)
*/
@@ -2368,6 +2472,8 @@ public class ValueSet extends DomainResource {
super.listChildren(childrenList);
childrenList.add(new Property("identifier", "uri", "An identifier that uniquely identifies this expansion of the valueset. Systems may re-use the same identifier as long as the expansion and the definition remain the same, but are not required to do so.", 0, java.lang.Integer.MAX_VALUE, identifier));
childrenList.add(new Property("timestamp", "dateTime", "The time at which the expansion was produced by the expanding system.", 0, java.lang.Integer.MAX_VALUE, timestamp));
+ childrenList.add(new Property("total", "integer", "The total nober of concepts in the expansion. If the number of concept nodes in this resource is less than the stated number, then the server can return more using the offset parameter.", 0, java.lang.Integer.MAX_VALUE, total));
+ childrenList.add(new Property("count", "integer", "If paging is being used, the offset at which this resource starts - e.g. this resource is a partial view into the expansion. If paging is not being used, this element SHALL not be present.", 0, java.lang.Integer.MAX_VALUE, count));
childrenList.add(new Property("parameter", "", "A Parameter that controlled the expansion process. These parameters may be used by users of expanded value sets to check whether the expansion is suitable for a particular purpose, or to pick the correct expansion.", 0, java.lang.Integer.MAX_VALUE, parameter));
childrenList.add(new Property("contains", "", "The codes that are contained in the value set expansion.", 0, java.lang.Integer.MAX_VALUE, contains));
}
@@ -2377,6 +2483,8 @@ public class ValueSet extends DomainResource {
copyValues(dst);
dst.identifier = identifier == null ? null : identifier.copy();
dst.timestamp = timestamp == null ? null : timestamp.copy();
+ dst.total = total == null ? null : total.copy();
+ dst.count = count == null ? null : count.copy();
if (parameter != null) {
dst.parameter = new ArrayList();
for (ValueSetExpansionParameterComponent i : parameter)
@@ -2398,7 +2506,8 @@ public class ValueSet extends DomainResource {
return false;
ValueSetExpansionComponent o = (ValueSetExpansionComponent) other;
return compareDeep(identifier, o.identifier, true) && compareDeep(timestamp, o.timestamp, true)
- && compareDeep(parameter, o.parameter, true) && compareDeep(contains, o.contains, true);
+ && compareDeep(total, o.total, true) && compareDeep(count, o.count, true) && compareDeep(parameter, o.parameter, true)
+ && compareDeep(contains, o.contains, true);
}
@Override
@@ -2409,13 +2518,13 @@ public class ValueSet extends DomainResource {
return false;
ValueSetExpansionComponent o = (ValueSetExpansionComponent) other;
return compareValues(identifier, o.identifier, true) && compareValues(timestamp, o.timestamp, true)
- ;
+ && compareValues(total, o.total, true) && compareValues(count, o.count, true);
}
public boolean isEmpty() {
return super.isEmpty() && (identifier == null || identifier.isEmpty()) && (timestamp == null || timestamp.isEmpty())
- && (parameter == null || parameter.isEmpty()) && (contains == null || contains.isEmpty())
- ;
+ && (total == null || total.isEmpty()) && (count == null || count.isEmpty()) && (parameter == null || parameter.isEmpty())
+ && (contains == null || contains.isEmpty());
}
}
@@ -2433,7 +2542,7 @@ public class ValueSet extends DomainResource {
* The value of the parameter.
*/
@Child(name = "value", type = {StringType.class, BooleanType.class, IntegerType.class, DecimalType.class, UriType.class, CodeType.class}, order=2, min=0, max=1)
- @Description(shortDefinition="Value of the parameter", formalDefinition="The value of the parameter." )
+ @Description(shortDefinition="Value of the named parameter", formalDefinition="The value of the parameter." )
protected Type value;
private static final long serialVersionUID = 1172641169L;
@@ -2514,6 +2623,10 @@ public class ValueSet extends DomainResource {
return (StringType) this.value;
}
+ public boolean hasValueStringType() throws Exception {
+ return this.value instanceof StringType;
+ }
+
/**
* @return {@link #value} (The value of the parameter.)
*/
@@ -2523,6 +2636,10 @@ public class ValueSet extends DomainResource {
return (BooleanType) this.value;
}
+ public boolean hasValueBooleanType() throws Exception {
+ return this.value instanceof BooleanType;
+ }
+
/**
* @return {@link #value} (The value of the parameter.)
*/
@@ -2532,6 +2649,10 @@ public class ValueSet extends DomainResource {
return (IntegerType) this.value;
}
+ public boolean hasValueIntegerType() throws Exception {
+ return this.value instanceof IntegerType;
+ }
+
/**
* @return {@link #value} (The value of the parameter.)
*/
@@ -2541,6 +2662,10 @@ public class ValueSet extends DomainResource {
return (DecimalType) this.value;
}
+ public boolean hasValueDecimalType() throws Exception {
+ return this.value instanceof DecimalType;
+ }
+
/**
* @return {@link #value} (The value of the parameter.)
*/
@@ -2550,6 +2675,10 @@ public class ValueSet extends DomainResource {
return (UriType) this.value;
}
+ public boolean hasValueUriType() throws Exception {
+ return this.value instanceof UriType;
+ }
+
/**
* @return {@link #value} (The value of the parameter.)
*/
@@ -2559,6 +2688,10 @@ public class ValueSet extends DomainResource {
return (CodeType) this.value;
}
+ public boolean hasValueCodeType() throws Exception {
+ return this.value instanceof CodeType;
+ }
+
public boolean hasValue() {
return this.value != null && !this.value.isEmpty();
}
@@ -2624,7 +2757,7 @@ public class ValueSet extends DomainResource {
/**
* If true, this entry is included in the expansion for navigational purposes, and the user cannot select the code directly as a proper value.
*/
- @Child(name = "abstract", type = {BooleanType.class}, order=2, min=0, max=1)
+ @Child(name = "abstract_", type = {BooleanType.class}, order=2, min=0, max=1)
@Description(shortDefinition="If user cannot select this entry", formalDefinition="If true, this entry is included in the expansion for navigational purposes, and the user cannot select the code directly as a proper value." )
protected BooleanType abstract_;
@@ -3004,10 +3137,10 @@ public class ValueSet extends DomainResource {
}
/**
- * An absolute uri that is used to identify this value set when it is referenced in a specification, model, design or an instance (should be globally unique URI, and an be urn:uuid: or urn:oid:).
+ * An absolute uri that is used to identify this value set when it is referenced in a specification, model, design or an instance (should be globally unique URI, and can be urn:uuid: or urn:oid:).
*/
@Child(name = "url", type = {UriType.class}, order=0, min=0, max=1)
- @Description(shortDefinition="Globally unique logical id for value set", formalDefinition="An absolute uri that is used to identify this value set when it is referenced in a specification, model, design or an instance (should be globally unique URI, and an be urn:uuid: or urn:oid:)." )
+ @Description(shortDefinition="Globally unique logical id for value set", formalDefinition="An absolute uri that is used to identify this value set when it is referenced in a specification, model, design or an instance (should be globally unique URI, and can be urn:uuid: or urn:oid:)." )
protected UriType url;
/**
@@ -3154,7 +3287,7 @@ public class ValueSet extends DomainResource {
}
/**
- * @return {@link #url} (An absolute uri that is used to identify this value set when it is referenced in a specification, model, design or an instance (should be globally unique URI, and an be urn:uuid: or urn:oid:).). This is the underlying object with id, value and extensions. The accessor "getUrl" gives direct access to the value
+ * @return {@link #url} (An absolute uri that is used to identify this value set when it is referenced in a specification, model, design or an instance (should be globally unique URI, and can be urn:uuid: or urn:oid:).). This is the underlying object with id, value and extensions. The accessor "getUrl" gives direct access to the value
*/
public UriType getUrlElement() {
if (this.url == null)
@@ -3174,7 +3307,7 @@ public class ValueSet extends DomainResource {
}
/**
- * @param value {@link #url} (An absolute uri that is used to identify this value set when it is referenced in a specification, model, design or an instance (should be globally unique URI, and an be urn:uuid: or urn:oid:).). This is the underlying object with id, value and extensions. The accessor "getUrl" gives direct access to the value
+ * @param value {@link #url} (An absolute uri that is used to identify this value set when it is referenced in a specification, model, design or an instance (should be globally unique URI, and can be urn:uuid: or urn:oid:).). This is the underlying object with id, value and extensions. The accessor "getUrl" gives direct access to the value
*/
public ValueSet setUrlElement(UriType value) {
this.url = value;
@@ -3182,14 +3315,14 @@ public class ValueSet extends DomainResource {
}
/**
- * @return An absolute uri that is used to identify this value set when it is referenced in a specification, model, design or an instance (should be globally unique URI, and an be urn:uuid: or urn:oid:).
+ * @return An absolute uri that is used to identify this value set when it is referenced in a specification, model, design or an instance (should be globally unique URI, and can be urn:uuid: or urn:oid:).
*/
public String getUrl() {
return this.url == null ? null : this.url.getValue();
}
/**
- * @param value An absolute uri that is used to identify this value set when it is referenced in a specification, model, design or an instance (should be globally unique URI, and an be urn:uuid: or urn:oid:).
+ * @param value An absolute uri that is used to identify this value set when it is referenced in a specification, model, design or an instance (should be globally unique URI, and can be urn:uuid: or urn:oid:).
*/
public ValueSet setUrl(String value) {
if (Utilities.noString(value))
@@ -3952,7 +4085,7 @@ public class ValueSet extends DomainResource {
protected void listChildren(List childrenList) {
super.listChildren(childrenList);
- childrenList.add(new Property("url", "uri", "An absolute uri that is used to identify this value set when it is referenced in a specification, model, design or an instance (should be globally unique URI, and an be urn:uuid: or urn:oid:).", 0, java.lang.Integer.MAX_VALUE, url));
+ childrenList.add(new Property("url", "uri", "An absolute uri that is used to identify this value set when it is referenced in a specification, model, design or an instance (should be globally unique URI, and can be urn:uuid: or urn:oid:).", 0, java.lang.Integer.MAX_VALUE, url));
childrenList.add(new Property("identifier", "Identifier", "Formal identifier that is used to identify this value set when it is represented in other formats, or referenced in a specification, model, design or an instance.", 0, java.lang.Integer.MAX_VALUE, identifier));
childrenList.add(new Property("version", "string", "Used to identify this version of the value set when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the profile author manually and the value should be a timestamp.", 0, java.lang.Integer.MAX_VALUE, version));
childrenList.add(new Property("name", "string", "A free text natural language name describing the value set.", 0, java.lang.Integer.MAX_VALUE, name));
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/VisionPrescription.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/VisionPrescription.java
index 949b82cfec8..5db71f79c34 100644
--- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/VisionPrescription.java
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/VisionPrescription.java
@@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
*/
-// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
+// Generated on Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
import java.util.*;
@@ -78,8 +78,8 @@ public class VisionPrescription extends DomainResource {
}
public String getSystem() {
switch (this) {
- case RIGHT: return "http://hl7.org.fhir/eye-codes";
- case LEFT: return "http://hl7.org.fhir/eye-codes";
+ case RIGHT: return "http://hl7.org/fhir/eye-codes";
+ case LEFT: return "http://hl7.org/fhir/eye-codes";
default: return "?";
}
}
@@ -164,10 +164,10 @@ public class VisionPrescription extends DomainResource {
}
public String getSystem() {
switch (this) {
- case UP: return "http://hl7.org.fhir/base-codes";
- case DOWN: return "http://hl7.org.fhir/base-codes";
- case IN: return "http://hl7.org.fhir/base-codes";
- case OUT: return "http://hl7.org.fhir/base-codes";
+ case UP: return "http://hl7.org/fhir/base-codes";
+ case DOWN: return "http://hl7.org/fhir/base-codes";
+ case IN: return "http://hl7.org/fhir/base-codes";
+ case OUT: return "http://hl7.org/fhir/base-codes";
default: return "?";
}
}
@@ -1414,6 +1414,10 @@ public class VisionPrescription extends DomainResource {
return (CodeableConcept) this.reason;
}
+ public boolean hasReasonCodeableConcept() throws Exception {
+ return this.reason instanceof CodeableConcept;
+ }
+
/**
* @return {@link #reason} (Can be the reason or the indication for writing the prescription.)
*/
@@ -1423,6 +1427,10 @@ public class VisionPrescription extends DomainResource {
return (Reference) this.reason;
}
+ public boolean hasReasonReference() throws Exception {
+ return this.reason instanceof Reference;
+ }
+
public boolean hasReason() {
return this.reason != null && !this.reason.isEmpty();
}
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/valuesets/Additionalmaterials.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/valuesets/Additionalmaterials.java
new file mode 100644
index 00000000000..a1988968b7c
--- /dev/null
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/valuesets/Additionalmaterials.java
@@ -0,0 +1,121 @@
+package org.hl7.fhir.instance.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 Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
+
+
+public enum Additionalmaterials {
+
+ /**
+ * null
+ */
+ XRAY,
+ /**
+ * null
+ */
+ IMAGE,
+ /**
+ * null
+ */
+ EMAIL,
+ /**
+ * null
+ */
+ MODEL,
+ /**
+ * null
+ */
+ DOCUMENT,
+ /**
+ * null
+ */
+ OTHER,
+ /**
+ * added to help the parsers
+ */
+ NULL;
+ public static Additionalmaterials fromCode(String codeString) throws Exception {
+ if (codeString == null || "".equals(codeString))
+ return null;
+ if ("xray".equals(codeString))
+ return XRAY;
+ if ("image".equals(codeString))
+ return IMAGE;
+ if ("email".equals(codeString))
+ return EMAIL;
+ if ("model".equals(codeString))
+ return MODEL;
+ if ("document".equals(codeString))
+ return DOCUMENT;
+ if ("other".equals(codeString))
+ return OTHER;
+ throw new Exception("Unknown Additionalmaterials code '"+codeString+"'");
+ }
+ public String toCode() {
+ switch (this) {
+ case XRAY: return "xray";
+ case IMAGE: return "image";
+ case EMAIL: return "email";
+ case MODEL: return "model";
+ case DOCUMENT: return "document";
+ case OTHER: return "other";
+ default: return "?";
+ }
+ }
+ public String getSystem() {
+ return "http://hl7.org/fhir/additionalmaterials";
+ }
+ public String getDefinition() {
+ switch (this) {
+ case XRAY: return "";
+ case IMAGE: return "";
+ case EMAIL: return "";
+ case MODEL: return "";
+ case DOCUMENT: return "";
+ case OTHER: return "";
+ default: return "?";
+ }
+ }
+ public String getDisplay() {
+ switch (this) {
+ case XRAY: return "xray";
+ case IMAGE: return "image";
+ case EMAIL: return "email";
+ case MODEL: return "model";
+ case DOCUMENT: return "document";
+ case OTHER: return "other";
+ default: return "?";
+ }
+ }
+
+
+}
+
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/valuesets/AdditionalmaterialsEnumFactory.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/valuesets/AdditionalmaterialsEnumFactory.java
new file mode 100644
index 00000000000..7a74d519751
--- /dev/null
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/valuesets/AdditionalmaterialsEnumFactory.java
@@ -0,0 +1,75 @@
+package org.hl7.fhir.instance.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 Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
+
+
+import org.hl7.fhir.instance.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 "?";
+ }
+
+
+}
+
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/valuesets/Adjudication.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/valuesets/Adjudication.java
new file mode 100644
index 00000000000..c1e6d83e313
--- /dev/null
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/valuesets/Adjudication.java
@@ -0,0 +1,130 @@
+package org.hl7.fhir.instance.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 Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
+
+
+public enum Adjudication {
+
+ /**
+ * null
+ */
+ TOTAL,
+ /**
+ * null
+ */
+ COPAY,
+ /**
+ * null
+ */
+ ELIGIBLE,
+ /**
+ * null
+ */
+ DEDUCTABLE,
+ /**
+ * null
+ */
+ ELIGPERCENT,
+ /**
+ * null
+ */
+ TAX,
+ /**
+ * null
+ */
+ BENEFIT,
+ /**
+ * added to help the parsers
+ */
+ NULL;
+ public static Adjudication fromCode(String codeString) throws Exception {
+ if (codeString == null || "".equals(codeString))
+ return null;
+ if ("total".equals(codeString))
+ return TOTAL;
+ if ("copay".equals(codeString))
+ return COPAY;
+ if ("eligible".equals(codeString))
+ return ELIGIBLE;
+ if ("deductable".equals(codeString))
+ return DEDUCTABLE;
+ if ("eligpercent".equals(codeString))
+ return ELIGPERCENT;
+ if ("tax".equals(codeString))
+ return TAX;
+ if ("benefit".equals(codeString))
+ return BENEFIT;
+ throw new Exception("Unknown Adjudication code '"+codeString+"'");
+ }
+ public String toCode() {
+ switch (this) {
+ case TOTAL: return "total";
+ case COPAY: return "copay";
+ case ELIGIBLE: return "eligible";
+ case DEDUCTABLE: return "deductable";
+ case ELIGPERCENT: return "eligpercent";
+ case TAX: return "tax";
+ case BENEFIT: return "benefit";
+ default: return "?";
+ }
+ }
+ public String getSystem() {
+ return "http://hl7.org/fhir/adjudication";
+ }
+ public String getDefinition() {
+ switch (this) {
+ case TOTAL: return "";
+ case COPAY: return "";
+ case ELIGIBLE: return "";
+ case DEDUCTABLE: return "";
+ case ELIGPERCENT: return "";
+ case TAX: return "";
+ case BENEFIT: return "";
+ default: return "?";
+ }
+ }
+ public String getDisplay() {
+ switch (this) {
+ case TOTAL: return "total";
+ case COPAY: return "copay";
+ case ELIGIBLE: return "eligible";
+ case DEDUCTABLE: return "deductable";
+ case ELIGPERCENT: return "eligpercent";
+ case TAX: return "tax";
+ case BENEFIT: return "benefit";
+ default: return "?";
+ }
+ }
+
+
+}
+
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/valuesets/AdjudicationEnumFactory.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/valuesets/AdjudicationEnumFactory.java
new file mode 100644
index 00000000000..8f2edbb8ee0
--- /dev/null
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/valuesets/AdjudicationEnumFactory.java
@@ -0,0 +1,79 @@
+package org.hl7.fhir.instance.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 Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
+
+
+import org.hl7.fhir.instance.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 ("deductable".equals(codeString))
+ return Adjudication.DEDUCTABLE;
+ 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.DEDUCTABLE)
+ return "deductable";
+ if (code == Adjudication.ELIGPERCENT)
+ return "eligpercent";
+ if (code == Adjudication.TAX)
+ return "tax";
+ if (code == Adjudication.BENEFIT)
+ return "benefit";
+ return "?";
+ }
+
+
+}
+
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/valuesets/AdjudicationError.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/valuesets/AdjudicationError.java
new file mode 100644
index 00000000000..b49849581d2
--- /dev/null
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/valuesets/AdjudicationError.java
@@ -0,0 +1,85 @@
+package org.hl7.fhir.instance.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 Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
+
+
+public enum AdjudicationError {
+
+ /**
+ * null
+ */
+ A001,
+ /**
+ * null
+ */
+ A002,
+ /**
+ * added to help the parsers
+ */
+ NULL;
+ public static AdjudicationError fromCode(String codeString) throws Exception {
+ if (codeString == null || "".equals(codeString))
+ return null;
+ if ("A001".equals(codeString))
+ return A001;
+ if ("A002".equals(codeString))
+ return A002;
+ throw new Exception("Unknown AdjudicationError code '"+codeString+"'");
+ }
+ public String toCode() {
+ switch (this) {
+ case A001: return "A001";
+ case A002: return "A002";
+ default: return "?";
+ }
+ }
+ public String getSystem() {
+ return "http://hl7.org/fhir/adjudication-error";
+ }
+ public String getDefinition() {
+ switch (this) {
+ case A001: return "";
+ case A002: return "";
+ default: return "?";
+ }
+ }
+ public String getDisplay() {
+ switch (this) {
+ case A001: return "A001";
+ case A002: return "A002";
+ default: return "?";
+ }
+ }
+
+
+}
+
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/valuesets/AdjudicationErrorEnumFactory.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/valuesets/AdjudicationErrorEnumFactory.java
new file mode 100644
index 00000000000..8476c3c8cda
--- /dev/null
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/valuesets/AdjudicationErrorEnumFactory.java
@@ -0,0 +1,59 @@
+package org.hl7.fhir.instance.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 Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
+
+
+import org.hl7.fhir.instance.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 "?";
+ }
+
+
+}
+
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/valuesets/AdjustmentReason.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/valuesets/AdjustmentReason.java
new file mode 100644
index 00000000000..4ce95a21add
--- /dev/null
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/valuesets/AdjustmentReason.java
@@ -0,0 +1,85 @@
+package org.hl7.fhir.instance.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 Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
+
+
+public enum AdjustmentReason {
+
+ /**
+ * null
+ */
+ A001,
+ /**
+ * null
+ */
+ A002,
+ /**
+ * added to help the parsers
+ */
+ NULL;
+ public static AdjustmentReason fromCode(String codeString) throws Exception {
+ if (codeString == null || "".equals(codeString))
+ return null;
+ if ("A001".equals(codeString))
+ return A001;
+ if ("A002".equals(codeString))
+ return A002;
+ throw new Exception("Unknown AdjustmentReason code '"+codeString+"'");
+ }
+ public String toCode() {
+ switch (this) {
+ case A001: return "A001";
+ case A002: return "A002";
+ default: return "?";
+ }
+ }
+ public String getSystem() {
+ return "http://hl7.org/fhir/adjustment-reason";
+ }
+ public String getDefinition() {
+ switch (this) {
+ case A001: return "";
+ case A002: return "";
+ default: return "?";
+ }
+ }
+ public String getDisplay() {
+ switch (this) {
+ case A001: return "A001";
+ case A002: return "A002";
+ default: return "?";
+ }
+ }
+
+
+}
+
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/valuesets/AdjustmentReasonEnumFactory.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/valuesets/AdjustmentReasonEnumFactory.java
new file mode 100644
index 00000000000..6cc6afd2aca
--- /dev/null
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/valuesets/AdjustmentReasonEnumFactory.java
@@ -0,0 +1,59 @@
+package org.hl7.fhir.instance.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 Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
+
+
+import org.hl7.fhir.instance.model.EnumFactory;
+
+public class AdjustmentReasonEnumFactory implements EnumFactory {
+
+ public AdjustmentReason fromCode(String codeString) throws IllegalArgumentException {
+ if (codeString == null || "".equals(codeString))
+ return null;
+ if ("A001".equals(codeString))
+ return AdjustmentReason.A001;
+ if ("A002".equals(codeString))
+ return AdjustmentReason.A002;
+ throw new IllegalArgumentException("Unknown AdjustmentReason code '"+codeString+"'");
+ }
+
+ public String toCode(AdjustmentReason code) {
+ if (code == AdjustmentReason.A001)
+ return "A001";
+ if (code == AdjustmentReason.A002)
+ return "A002";
+ return "?";
+ }
+
+
+}
+
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/valuesets/AnimalBreeds.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/valuesets/AnimalBreeds.java
new file mode 100644
index 00000000000..5766b82a9be
--- /dev/null
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/valuesets/AnimalBreeds.java
@@ -0,0 +1,103 @@
+package org.hl7.fhir.instance.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 Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
+
+
+public enum AnimalBreeds {
+
+ /**
+ * null
+ */
+ GSD,
+ /**
+ * null
+ */
+ IRT,
+ /**
+ * null
+ */
+ TIBMAS,
+ /**
+ * null
+ */
+ GRET,
+ /**
+ * added to help the parsers
+ */
+ NULL;
+ public static AnimalBreeds fromCode(String codeString) throws Exception {
+ if (codeString == null || "".equals(codeString))
+ return null;
+ if ("gsd".equals(codeString))
+ return GSD;
+ if ("irt".equals(codeString))
+ return IRT;
+ if ("tibmas".equals(codeString))
+ return TIBMAS;
+ if ("gret".equals(codeString))
+ return GRET;
+ throw new Exception("Unknown AnimalBreeds code '"+codeString+"'");
+ }
+ public String toCode() {
+ switch (this) {
+ case GSD: return "gsd";
+ case IRT: return "irt";
+ case TIBMAS: return "tibmas";
+ case GRET: return "gret";
+ default: return "?";
+ }
+ }
+ public String getSystem() {
+ return "http://hl7.org/fhir/animal-breed";
+ }
+ public String getDefinition() {
+ switch (this) {
+ case GSD: return "";
+ case IRT: return "";
+ case TIBMAS: return "";
+ case GRET: return "";
+ default: return "?";
+ }
+ }
+ public String getDisplay() {
+ switch (this) {
+ case GSD: return "German Shepherd Dog";
+ case IRT: return "Irish Terrier";
+ case TIBMAS: return "Tibetan Mastiff";
+ case GRET: return "Golden Retriever";
+ default: return "?";
+ }
+ }
+
+
+}
+
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/valuesets/AnimalBreedsEnumFactory.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/valuesets/AnimalBreedsEnumFactory.java
new file mode 100644
index 00000000000..732d6dbad8a
--- /dev/null
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/valuesets/AnimalBreedsEnumFactory.java
@@ -0,0 +1,67 @@
+package org.hl7.fhir.instance.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 Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
+
+
+import org.hl7.fhir.instance.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 "?";
+ }
+
+
+}
+
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/valuesets/AnimalGenderstatus.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/valuesets/AnimalGenderstatus.java
new file mode 100644
index 00000000000..c73034f327b
--- /dev/null
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/valuesets/AnimalGenderstatus.java
@@ -0,0 +1,94 @@
+package org.hl7.fhir.instance.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 Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
+
+
+public enum AnimalGenderstatus {
+
+ /**
+ * The animal has been castrated and is infertile
+ */
+ NEUTERED,
+ /**
+ * The animal's reproductive organs are intact
+ */
+ INTACT,
+ /**
+ * Unable to determine whether the animal has been neutered
+ */
+ UNKNOWN,
+ /**
+ * added to help the parsers
+ */
+ NULL;
+ public static AnimalGenderstatus fromCode(String codeString) throws Exception {
+ if (codeString == null || "".equals(codeString))
+ return null;
+ if ("neutered".equals(codeString))
+ return NEUTERED;
+ if ("intact".equals(codeString))
+ return INTACT;
+ if ("unknown".equals(codeString))
+ return UNKNOWN;
+ throw new Exception("Unknown AnimalGenderstatus code '"+codeString+"'");
+ }
+ public String toCode() {
+ switch (this) {
+ case NEUTERED: return "neutered";
+ case INTACT: return "intact";
+ case UNKNOWN: return "unknown";
+ default: return "?";
+ }
+ }
+ public String getSystem() {
+ return "http://hl7.org/fhir/animal-genderstatus";
+ }
+ public String getDefinition() {
+ switch (this) {
+ case NEUTERED: return "The animal has been castrated and is infertile";
+ case INTACT: return "The animal's reproductive organs are intact";
+ case UNKNOWN: return "Unable to determine whether the animal has been neutered";
+ default: return "?";
+ }
+ }
+ public String getDisplay() {
+ switch (this) {
+ case NEUTERED: return "Neutered";
+ case INTACT: return "Intact";
+ case UNKNOWN: return "Unknown";
+ default: return "?";
+ }
+ }
+
+
+}
+
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/valuesets/AnimalGenderstatusEnumFactory.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/valuesets/AnimalGenderstatusEnumFactory.java
new file mode 100644
index 00000000000..cec5d2ad3e6
--- /dev/null
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/valuesets/AnimalGenderstatusEnumFactory.java
@@ -0,0 +1,63 @@
+package org.hl7.fhir.instance.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 Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
+
+
+import org.hl7.fhir.instance.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 "?";
+ }
+
+
+}
+
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/valuesets/AnimalSpecies.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/valuesets/AnimalSpecies.java
new file mode 100644
index 00000000000..70f22a60aa7
--- /dev/null
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/valuesets/AnimalSpecies.java
@@ -0,0 +1,94 @@
+package org.hl7.fhir.instance.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 Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
+
+
+public enum AnimalSpecies {
+
+ /**
+ * Canis lupus familiaris
+ */
+ CANISLF,
+ /**
+ * Ovis aries
+ */
+ OVISA,
+ /**
+ * Serinus canaria domestica
+ */
+ SERINUSCD,
+ /**
+ * added to help the parsers
+ */
+ NULL;
+ public static AnimalSpecies fromCode(String codeString) throws Exception {
+ if (codeString == null || "".equals(codeString))
+ return null;
+ if ("canislf".equals(codeString))
+ return CANISLF;
+ if ("ovisa".equals(codeString))
+ return OVISA;
+ if ("serinuscd".equals(codeString))
+ return SERINUSCD;
+ throw new Exception("Unknown AnimalSpecies code '"+codeString+"'");
+ }
+ public String toCode() {
+ switch (this) {
+ case CANISLF: return "canislf";
+ case OVISA: return "ovisa";
+ case SERINUSCD: return "serinuscd";
+ default: return "?";
+ }
+ }
+ public String getSystem() {
+ return "http://hl7.org/fhir/animal-species";
+ }
+ public String getDefinition() {
+ switch (this) {
+ case CANISLF: return "Canis lupus familiaris";
+ case OVISA: return "Ovis aries";
+ case SERINUSCD: return "Serinus canaria domestica";
+ default: return "?";
+ }
+ }
+ public String getDisplay() {
+ switch (this) {
+ case CANISLF: return "Dog";
+ case OVISA: return "Sheep";
+ case SERINUSCD: return "Domestic Canary";
+ default: return "?";
+ }
+ }
+
+
+}
+
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/valuesets/AnimalSpeciesEnumFactory.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/valuesets/AnimalSpeciesEnumFactory.java
new file mode 100644
index 00000000000..960700dc8b9
--- /dev/null
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/valuesets/AnimalSpeciesEnumFactory.java
@@ -0,0 +1,63 @@
+package org.hl7.fhir.instance.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 Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
+
+
+import org.hl7.fhir.instance.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 "?";
+ }
+
+
+}
+
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/valuesets/AnzscoOccupations.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/valuesets/AnzscoOccupations.java
new file mode 100644
index 00000000000..d0a64ec5929
--- /dev/null
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/valuesets/AnzscoOccupations.java
@@ -0,0 +1,12001 @@
+package org.hl7.fhir.instance.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 Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
+
+
+public enum AnzscoOccupations {
+
+ /**
+ * Managers nfd
+ */
+ _100000,
+ /**
+ * Chief Executives, General Managers and Legislators nfd
+ */
+ _111000,
+ /**
+ * Chief Executive or Managing Director
+ */
+ _111111,
+ /**
+ * General Managers nfd
+ */
+ _111200,
+ /**
+ * Corporate General Manager
+ */
+ _111211,
+ /**
+ * Defence Force Senior Officer
+ */
+ _111212,
+ /**
+ * Legislators nfd
+ */
+ _111300,
+ /**
+ * Local Government Legislator
+ */
+ _111311,
+ /**
+ * Member of Parliament
+ */
+ _111312,
+ /**
+ * Legislators nec
+ */
+ _111399,
+ /**
+ * Farmers and Farm Managers nfd
+ */
+ _121000,
+ /**
+ * Aquaculture Farmer
+ */
+ _121111,
+ /**
+ * Crop Farmers nfd
+ */
+ _121200,
+ /**
+ * Cotton Grower
+ */
+ _121211,
+ /**
+ * Flower Grower
+ */
+ _121212,
+ /**
+ * Fruit or Nut Grower
+ */
+ _121213,
+ /**
+ * Grain, Oilseed or Pasture Grower
+ */
+ _121214,
+ /**
+ * Grape Grower
+ */
+ _121215,
+ /**
+ * Mixed Crop Farmer
+ */
+ _121216,
+ /**
+ * Sugar Cane Grower
+ */
+ _121217,
+ /**
+ * Turf Grower
+ */
+ _121218,
+ /**
+ * Vegetable Grower
+ */
+ _121221,
+ /**
+ * Crop Farmers nec
+ */
+ _121299,
+ /**
+ * Livestock Farmers nfd
+ */
+ _121300,
+ /**
+ * Apiarist
+ */
+ _121311,
+ /**
+ * Beef Cattle Farmer
+ */
+ _121312,
+ /**
+ * Dairy Cattle Farmer
+ */
+ _121313,
+ /**
+ * Deer Farmer
+ */
+ _121314,
+ /**
+ * Goat Farmer
+ */
+ _121315,
+ /**
+ * Horse Breeder
+ */
+ _121316,
+ /**
+ * Mixed Livestock Farmer
+ */
+ _121317,
+ /**
+ * Pig Farmer
+ */
+ _121318,
+ /**
+ * Poultry Farmer
+ */
+ _121321,
+ /**
+ * Sheep Farmer
+ */
+ _121322,
+ /**
+ * Livestock Farmers nec
+ */
+ _121399,
+ /**
+ * Mixed Crop and Livestock Farmer
+ */
+ _121411,
+ /**
+ * Specialist Managers nfd
+ */
+ _130000,
+ /**
+ * Advertising and Sales Managers nfd
+ */
+ _131100,
+ /**
+ * Advertising and Public Relations Manager
+ */
+ _131111,
+ /**
+ * Sales and Marketing Manager
+ */
+ _131112,
+ /**
+ * Business Administration Managers nfd
+ */
+ _132000,
+ /**
+ * Corporate Services Manager
+ */
+ _132111,
+ /**
+ * Finance Manager
+ */
+ _132211,
+ /**
+ * Human Resource Manager
+ */
+ _132311,
+ /**
+ * Policy and Planning Manager
+ */
+ _132411,
+ /**
+ * Research and Development Manager
+ */
+ _132511,
+ /**
+ * Construction, Distribution and Production Managers nfd
+ */
+ _133000,
+ /**
+ * Construction Managers nfd
+ */
+ _133100,
+ /**
+ * Construction Project Manager
+ */
+ _133111,
+ /**
+ * Project Builder
+ */
+ _133112,
+ /**
+ * Engineering Manager
+ */
+ _133211,
+ /**
+ * Importers, Exporters and Wholesalers nfd
+ */
+ _133300,
+ /**
+ * Importer or Exporter
+ */
+ _133311,
+ /**
+ * Wholesaler
+ */
+ _133312,
+ /**
+ * Manufacturer
+ */
+ _133411,
+ /**
+ * Production Managers nfd
+ */
+ _133500,
+ /**
+ * Production Manager (Forestry)
+ */
+ _133511,
+ /**
+ * Production Manager (Manufacturing)
+ */
+ _133512,
+ /**
+ * Production Manager (Mining)
+ */
+ _133513,
+ /**
+ * Supply and Distribution Manager
+ */
+ _133611,
+ /**
+ * Education, Health and Welfare Services Managers nfd
+ */
+ _134000,
+ /**
+ * Child Care Centre Manager
+ */
+ _134111,
+ /**
+ * Health and Welfare Services Managers nfd
+ */
+ _134200,
+ /**
+ * Medical Administrator
+ */
+ _134211,
+ /**
+ * Nursing Clinical Director
+ */
+ _134212,
+ /**
+ * Primary Health Organization Manager
+ */
+ _134213,
+ /**
+ * Welfare Centre Manager
+ */
+ _134214,
+ /**
+ * Health and Welfare Services Managers nec
+ */
+ _134299,
+ /**
+ * School Principal
+ */
+ _134311,
+ /**
+ * Other Education Managers nfd
+ */
+ _134400,
+ /**
+ * Faculty Head
+ */
+ _134411,
+ /**
+ * Regional Education Manager
+ */
+ _134412,
+ /**
+ * Education Managers nec
+ */
+ _134499,
+ /**
+ * ICT Managers nfd
+ */
+ _135100,
+ /**
+ * Chief Information Officer
+ */
+ _135111,
+ /**
+ * ICT Project Manager
+ */
+ _135112,
+ /**
+ * ICT Managers nec
+ */
+ _135199,
+ /**
+ * Miscellaneous Specialist Managers nfd
+ */
+ _139000,
+ /**
+ * Commissioned Officers (Management) nfd
+ */
+ _139100,
+ /**
+ * Commissioned Defence Force Officer
+ */
+ _139111,
+ /**
+ * Commissioned Fire Officer
+ */
+ _139112,
+ /**
+ * Commissioned Police Officer
+ */
+ _139113,
+ /**
+ * Senior Non-commissioned Defence Force Member
+ */
+ _139211,
+ /**
+ * Other Specialist Managers nfd
+ */
+ _139900,
+ /**
+ * Arts Administrator or Manager
+ */
+ _139911,
+ /**
+ * Environmental Manager
+ */
+ _139912,
+ /**
+ * Laboratory Manager
+ */
+ _139913,
+ /**
+ * Quality Assurance Manager
+ */
+ _139914,
+ /**
+ * Sports Administrator
+ */
+ _139915,
+ /**
+ * Specialist Managers nec
+ */
+ _139999,
+ /**
+ * Hospitality, Retail and Service Managers nfd
+ */
+ _140000,
+ /**
+ * Accommodation and Hospitality Managers nfd
+ */
+ _141000,
+ /**
+ * Cafe or Restaurant Manager
+ */
+ _141111,
+ /**
+ * Caravan Park and Camping Ground Manager
+ */
+ _141211,
+ /**
+ * Hotel or Motel Manager
+ */
+ _141311,
+ /**
+ * Licensed Club Manager
+ */
+ _141411,
+ /**
+ * Other Accommodation and Hospitality Managers nfd
+ */
+ _141900,
+ /**
+ * Bed and Breakfast Operator
+ */
+ _141911,
+ /**
+ * Accommodation and Hospitality Managers nec
+ */
+ _141999,
+ /**
+ * Retail Managers nfd
+ */
+ _142100,
+ /**
+ * Retail Manager (General)
+ */
+ _142111,
+ /**
+ * Antique Dealer
+ */
+ _142112,
+ /**
+ * Betting Agency Manager
+ */
+ _142113,
+ /**
+ * Hair or Beauty Salon Manager
+ */
+ _142114,
+ /**
+ * Post Office Manager
+ */
+ _142115,
+ /**
+ * Travel Agency Manager
+ */
+ _142116,
+ /**
+ * Miscellaneous Hospitality, Retail and Service Managers nfd
+ */
+ _149000,
+ /**
+ * Amusement, Fitness and Sports Centre Managers nfd
+ */
+ _149100,
+ /**
+ * Amusement Centre Manager
+ */
+ _149111,
+ /**
+ * Fitness Centre Manager
+ */
+ _149112,
+ /**
+ * Sports Centre Manager
+ */
+ _149113,
+ /**
+ * Call or Contact Centre and Customer Service Managers nfd
+ */
+ _149200,
+ /**
+ * Call or Contact Centre Manager
+ */
+ _149211,
+ /**
+ * Customer Service Manager
+ */
+ _149212,
+ /**
+ * Conference and Event Organiser
+ */
+ _149311,
+ /**
+ * Transport Services Managers nfd
+ */
+ _149400,
+ /**
+ * Fleet Manager
+ */
+ _149411,
+ /**
+ * Railway Station Manager
+ */
+ _149412,
+ /**
+ * Transport Company Manager
+ */
+ _149413,
+ /**
+ * Other Hospitality, Retail and Service Managers nfd
+ */
+ _149900,
+ /**
+ * Boarding Kennel or Cattery Operator
+ */
+ _149911,
+ /**
+ * Cinema or Theatre Manager
+ */
+ _149912,
+ /**
+ * Facilities Manager
+ */
+ _149913,
+ /**
+ * Financial Institution Branch Manager
+ */
+ _149914,
+ /**
+ * Hospitality, Retail and Service Managers nec
+ */
+ _149999,
+ /**
+ * Professionals nfd
+ */
+ _200000,
+ /**
+ * Arts and Media Professionals nfd
+ */
+ _210000,
+ /**
+ * Arts Professionals nfd
+ */
+ _211000,
+ /**
+ * Actors, Dancers and Other Entertainers nfd
+ */
+ _211100,
+ /**
+ * Actor
+ */
+ _211111,
+ /**
+ * Dancer or Choreographer
+ */
+ _211112,
+ /**
+ * Entertainer or Variety Artist
+ */
+ _211113,
+ /**
+ * Actors, Dancers and Other Entertainers nec
+ */
+ _211199,
+ /**
+ * Music Professionals nfd
+ */
+ _211200,
+ /**
+ * Composer
+ */
+ _211211,
+ /**
+ * Music Director
+ */
+ _211212,
+ /**
+ * Musician (Instrumental)
+ */
+ _211213,
+ /**
+ * Singer
+ */
+ _211214,
+ /**
+ * Music Professionals nec
+ */
+ _211299,
+ /**
+ * Photographer
+ */
+ _211311,
+ /**
+ * Visual Arts and Crafts Professionals nfd
+ */
+ _211400,
+ /**
+ * Painter (Visual Arts)
+ */
+ _211411,
+ /**
+ * Potter or Ceramic Artist
+ */
+ _211412,
+ /**
+ * Sculptor
+ */
+ _211413,
+ /**
+ * Visual Arts and Crafts Professionals nec
+ */
+ _211499,
+ /**
+ * Media Professionals nfd
+ */
+ _212000,
+ /**
+ * Artistic Directors, and Media Producers and Presenters nfd
+ */
+ _212100,
+ /**
+ * Artistic Director
+ */
+ _212111,
+ /**
+ * Media Producer (excluding Video)
+ */
+ _212112,
+ /**
+ * Radio Presenter
+ */
+ _212113,
+ /**
+ * Television Presenter
+ */
+ _212114,
+ /**
+ * Authors, and Book and Script Editors nfd
+ */
+ _212200,
+ /**
+ * Author
+ */
+ _212211,
+ /**
+ * Book or Script Editor
+ */
+ _212212,
+ /**
+ * Film, Television, Radio and Stage Directors nfd
+ */
+ _212300,
+ /**
+ * Art Director (Film, Television or Stage)
+ */
+ _212311,
+ /**
+ * Director (Film, Television, Radio or Stage)
+ */
+ _212312,
+ /**
+ * Director of Photography
+ */
+ _212313,
+ /**
+ * Film and Video Editor
+ */
+ _212314,
+ /**
+ * Program Director (Television or Radio)
+ */
+ _212315,
+ /**
+ * Stage Manager
+ */
+ _212316,
+ /**
+ * Technical Director
+ */
+ _212317,
+ /**
+ * Video Producer
+ */
+ _212318,
+ /**
+ * Film, Television, Radio and Stage Directors nec
+ */
+ _212399,
+ /**
+ * Journalists and Other Writers nfd
+ */
+ _212400,
+ /**
+ * Copywriter
+ */
+ _212411,
+ /**
+ * Newspaper or Periodical Editor
+ */
+ _212412,
+ /**
+ * Print Journalist
+ */
+ _212413,
+ /**
+ * Radio Journalist
+ */
+ _212414,
+ /**
+ * Technical Writer
+ */
+ _212415,
+ /**
+ * Television Journalist
+ */
+ _212416,
+ /**
+ * Journalists and Other Writers nec
+ */
+ _212499,
+ /**
+ * Business, Human Resource and Marketing Professionals nfd
+ */
+ _220000,
+ /**
+ * Accountants, Auditors and Company Secretaries nfd
+ */
+ _221000,
+ /**
+ * Accountants nfd
+ */
+ _221100,
+ /**
+ * Accountant (General)
+ */
+ _221111,
+ /**
+ * Management Accountant
+ */
+ _221112,
+ /**
+ * Taxation Accountant
+ */
+ _221113,
+ /**
+ * Auditors, Company Secretaries and Corporate Treasurers nfd
+ */
+ _221200,
+ /**
+ * Company Secretary
+ */
+ _221211,
+ /**
+ * Corporate Treasurer
+ */
+ _221212,
+ /**
+ * External Auditor
+ */
+ _221213,
+ /**
+ * Internal Auditor
+ */
+ _221214,
+ /**
+ * Financial Brokers and Dealers, and Investment Advisers nfd
+ */
+ _222000,
+ /**
+ * Financial Brokers nfd
+ */
+ _222100,
+ /**
+ * Commodities Trader
+ */
+ _222111,
+ /**
+ * Finance Broker
+ */
+ _222112,
+ /**
+ * Insurance Broker
+ */
+ _222113,
+ /**
+ * Financial Brokers nec
+ */
+ _222199,
+ /**
+ * Financial Dealers nfd
+ */
+ _222200,
+ /**
+ * Financial Market Dealer
+ */
+ _222211,
+ /**
+ * Futures Trader
+ */
+ _222212,
+ /**
+ * Stockbroking Dealer
+ */
+ _222213,
+ /**
+ * Financial Dealers nec
+ */
+ _222299,
+ /**
+ * Financial Investment Advisers and Managers nfd
+ */
+ _222300,
+ /**
+ * Financial Investment Adviser
+ */
+ _222311,
+ /**
+ * Financial Investment Manager
+ */
+ _222312,
+ /**
+ * Human Resource and Training Professionals nfd
+ */
+ _223000,
+ /**
+ * Human Resource Professionals nfd
+ */
+ _223100,
+ /**
+ * Human Resource Adviser
+ */
+ _223111,
+ /**
+ * Recruitment Consultant
+ */
+ _223112,
+ /**
+ * Workplace Relations Adviser
+ */
+ _223113,
+ /**
+ * ICT Trainer
+ */
+ _223211,
+ /**
+ * Training and Development Professional
+ */
+ _223311,
+ /**
+ * Information and Organization Professionals nfd
+ */
+ _224000,
+ /**
+ * Actuaries, Mathematicians and Statisticians nfd
+ */
+ _224100,
+ /**
+ * Actuary
+ */
+ _224111,
+ /**
+ * Mathematician
+ */
+ _224112,
+ /**
+ * Statistician
+ */
+ _224113,
+ /**
+ * Archivists, Curators and Records Managers nfd
+ */
+ _224200,
+ /**
+ * Archivist
+ */
+ _224211,
+ /**
+ * Gallery or Museum Curator
+ */
+ _224212,
+ /**
+ * Health Information Manager
+ */
+ _224213,
+ /**
+ * Records Manager
+ */
+ _224214,
+ /**
+ * Economist
+ */
+ _224311,
+ /**
+ * Intelligence and Policy Analysts nfd
+ */
+ _224400,
+ /**
+ * Intelligence Officer
+ */
+ _224411,
+ /**
+ * Policy Analyst
+ */
+ _224412,
+ /**
+ * Land Economists and Valuers nfd
+ */
+ _224500,
+ /**
+ * Land Economist
+ */
+ _224511,
+ /**
+ * Valuer
+ */
+ _224512,
+ /**
+ * Librarian
+ */
+ _224611,
+ /**
+ * Management and Organization Analysts nfd
+ */
+ _224700,
+ /**
+ * Management Consultant
+ */
+ _224711,
+ /**
+ * Organization and Methods Analyst
+ */
+ _224712,
+ /**
+ * Other Information and Organization Professionals nfd
+ */
+ _224900,
+ /**
+ * Electorate Officer
+ */
+ _224911,
+ /**
+ * Liaison Officer
+ */
+ _224912,
+ /**
+ * Migration Agent
+ */
+ _224913,
+ /**
+ * Patents Examiner
+ */
+ _224914,
+ /**
+ * Information and Organization Professionals nec
+ */
+ _224999,
+ /**
+ * Sales, Marketing and Public Relations Professionals nfd
+ */
+ _225000,
+ /**
+ * Advertising and Marketing Professionals nfd
+ */
+ _225100,
+ /**
+ * Advertising Specialist
+ */
+ _225111,
+ /**
+ * Market Research Analyst
+ */
+ _225112,
+ /**
+ * Marketing Specialist
+ */
+ _225113,
+ /**
+ * ICT Sales Professionals nfd
+ */
+ _225200,
+ /**
+ * ICT Account Manager
+ */
+ _225211,
+ /**
+ * ICT Business Development Manager
+ */
+ _225212,
+ /**
+ * ICT Sales Representative
+ */
+ _225213,
+ /**
+ * Public Relations Professional
+ */
+ _225311,
+ /**
+ * Technical Sales Representatives nfd
+ */
+ _225400,
+ /**
+ * Sales Representative (Industrial Products)
+ */
+ _225411,
+ /**
+ * Sales Representative (Medical and Pharmaceutical Products)
+ */
+ _225412,
+ /**
+ * Technical Sales Representatives nec
+ */
+ _225499,
+ /**
+ * Design, Engineering, Science and Transport Professionals nfd
+ */
+ _230000,
+ /**
+ * Air and Marine Transport Professionals nfd
+ */
+ _231000,
+ /**
+ * Air Transport Professionals nfd
+ */
+ _231100,
+ /**
+ * Aeroplane Pilot
+ */
+ _231111,
+ /**
+ * Air Traffic Controller
+ */
+ _231112,
+ /**
+ * Flying Instructor
+ */
+ _231113,
+ /**
+ * Helicopter Pilot
+ */
+ _231114,
+ /**
+ * Air Transport Professionals nec
+ */
+ _231199,
+ /**
+ * Marine Transport Professionals nfd
+ */
+ _231200,
+ /**
+ * Master Fisher
+ */
+ _231211,
+ /**
+ * Ship's Engineer
+ */
+ _231212,
+ /**
+ * Ship's Master
+ */
+ _231213,
+ /**
+ * Ship's Officer
+ */
+ _231214,
+ /**
+ * Ship's Surveyor
+ */
+ _231215,
+ /**
+ * Marine Transport Professionals nec
+ */
+ _231299,
+ /**
+ * Architects, Designers, Planners and Surveyors nfd
+ */
+ _232000,
+ /**
+ * Architects and Landscape Architects nfd
+ */
+ _232100,
+ /**
+ * Architect
+ */
+ _232111,
+ /**
+ * Landscape Architect
+ */
+ _232112,
+ /**
+ * Cartographers and Surveyors nfd
+ */
+ _232200,
+ /**
+ * Cartographer
+ */
+ _232211,
+ /**
+ * Surveyor
+ */
+ _232212,
+ /**
+ * Fashion, Industrial and Jewellery Designers nfd
+ */
+ _232300,
+ /**
+ * Fashion Designer
+ */
+ _232311,
+ /**
+ * Industrial Designer
+ */
+ _232312,
+ /**
+ * Jewellery Designer
+ */
+ _232313,
+ /**
+ * Graphic and Web Designers, and Illustrators nfd
+ */
+ _232400,
+ /**
+ * Graphic Designer
+ */
+ _232411,
+ /**
+ * Illustrator
+ */
+ _232412,
+ /**
+ * Multimedia Designer
+ */
+ _232413,
+ /**
+ * Web Designer
+ */
+ _232414,
+ /**
+ * Interior Designer
+ */
+ _232511,
+ /**
+ * Urban and Regional Planner
+ */
+ _232611,
+ /**
+ * Engineering Professionals nfd
+ */
+ _233000,
+ /**
+ * Chemical and Materials Engineers nfd
+ */
+ _233100,
+ /**
+ * Chemical Engineer
+ */
+ _233111,
+ /**
+ * Materials Engineer
+ */
+ _233112,
+ /**
+ * Civil Engineering Professionals nfd
+ */
+ _233200,
+ /**
+ * Civil Engineer
+ */
+ _233211,
+ /**
+ * Geotechnical Engineer
+ */
+ _233212,
+ /**
+ * Quantity Surveyor
+ */
+ _233213,
+ /**
+ * Structural Engineer
+ */
+ _233214,
+ /**
+ * Transport Engineer
+ */
+ _233215,
+ /**
+ * Electrical Engineer
+ */
+ _233311,
+ /**
+ * Electronics Engineer
+ */
+ _233411,
+ /**
+ * Industrial, Mechanical and Production Engineers nfd
+ */
+ _233500,
+ /**
+ * Industrial Engineer
+ */
+ _233511,
+ /**
+ * Mechanical Engineer
+ */
+ _233512,
+ /**
+ * Production or Plant Engineer
+ */
+ _233513,
+ /**
+ * Mining Engineers nfd
+ */
+ _233600,
+ /**
+ * Mining Engineer (excluding Petroleum)
+ */
+ _233611,
+ /**
+ * Petroleum Engineer
+ */
+ _233612,
+ /**
+ * Other Engineering Professionals nfd
+ */
+ _233900,
+ /**
+ * Aeronautical Engineer
+ */
+ _233911,
+ /**
+ * Agricultural Engineer
+ */
+ _233912,
+ /**
+ * Biomedical Engineer
+ */
+ _233913,
+ /**
+ * Engineering Technologist
+ */
+ _233914,
+ /**
+ * Environmental Engineer
+ */
+ _233915,
+ /**
+ * Naval Architect
+ */
+ _233916,
+ /**
+ * Engineering Professionals nec
+ */
+ _233999,
+ /**
+ * Natural and Physical Science Professionals nfd
+ */
+ _234000,
+ /**
+ * Agricultural and Forestry Scientists nfd
+ */
+ _234100,
+ /**
+ * Agricultural Consultant
+ */
+ _234111,
+ /**
+ * Agricultural Scientist
+ */
+ _234112,
+ /**
+ * Forester
+ */
+ _234113,
+ /**
+ * Chemists, and Food and Wine Scientists nfd
+ */
+ _234200,
+ /**
+ * Chemist
+ */
+ _234211,
+ /**
+ * Food Technologist
+ */
+ _234212,
+ /**
+ * Wine Maker
+ */
+ _234213,
+ /**
+ * Environmental Scientists nfd
+ */
+ _234300,
+ /**
+ * Conservation Officer
+ */
+ _234311,
+ /**
+ * Environmental Consultant
+ */
+ _234312,
+ /**
+ * Environmental Research Scientist
+ */
+ _234313,
+ /**
+ * Park Ranger
+ */
+ _234314,
+ /**
+ * Environmental Scientists nec
+ */
+ _234399,
+ /**
+ * Geologists and Geophysicists nfd
+ */
+ _234400,
+ /**
+ * Geologist
+ */
+ _234411,
+ /**
+ * Geophysicist
+ */
+ _234412,
+ /**
+ * Life Scientists nfd
+ */
+ _234500,
+ /**
+ * Life Scientist (General)
+ */
+ _234511,
+ /**
+ * Anatomist or Physiologist
+ */
+ _234512,
+ /**
+ * Biochemist
+ */
+ _234513,
+ /**
+ * Biotechnologist
+ */
+ _234514,
+ /**
+ * Botanist
+ */
+ _234515,
+ /**
+ * Marine Biologist
+ */
+ _234516,
+ /**
+ * Microbiologist
+ */
+ _234517,
+ /**
+ * Zoologist
+ */
+ _234518,
+ /**
+ * Life Scientists nec
+ */
+ _234599,
+ /**
+ * Medical Laboratory Scientist
+ */
+ _234611,
+ /**
+ * Veterinarian
+ */
+ _234711,
+ /**
+ * Other Natural and Physical Science Professionals nfd
+ */
+ _234900,
+ /**
+ * Conservator
+ */
+ _234911,
+ /**
+ * Metallurgist
+ */
+ _234912,
+ /**
+ * Meteorologist
+ */
+ _234913,
+ /**
+ * Physicist
+ */
+ _234914,
+ /**
+ * Natural and Physical Science Professionals nec
+ */
+ _234999,
+ /**
+ * Education Professionals nfd
+ */
+ _240000,
+ /**
+ * School Teachers nfd
+ */
+ _241000,
+ /**
+ * Early Childhood (Pre-primary School) Teacher
+ */
+ _241111,
+ /**
+ * Primary School Teacher
+ */
+ _241213,
+ /**
+ * Middle School Teacher
+ */
+ _241311,
+ /**
+ * Secondary School Teacher
+ */
+ _241411,
+ /**
+ * Special Education Teachers nfd
+ */
+ _241500,
+ /**
+ * Special Needs Teacher
+ */
+ _241511,
+ /**
+ * Teacher of the Hearing Impaired
+ */
+ _241512,
+ /**
+ * Teacher of the Sight Impaired
+ */
+ _241513,
+ /**
+ * Special Education Teachers nec
+ */
+ _241599,
+ /**
+ * Tertiary Education Teachers nfd
+ */
+ _242000,
+ /**
+ * University Lecturers and Tutors nfd
+ */
+ _242100,
+ /**
+ * University Lecturer
+ */
+ _242111,
+ /**
+ * University Tutor
+ */
+ _242112,
+ /**
+ * Vocational Education Teacher
+ */
+ _242211,
+ /**
+ * Miscellaneous Education Professionals nfd
+ */
+ _249000,
+ /**
+ * Education Advisers and Reviewers nfd
+ */
+ _249100,
+ /**
+ * Education Adviser
+ */
+ _249111,
+ /**
+ * Education Reviewer
+ */
+ _249112,
+ /**
+ * Private Tutors and Teachers nfd
+ */
+ _249200,
+ /**
+ * Art Teacher (Private Tuition)
+ */
+ _249211,
+ /**
+ * Dance Teacher (Private Tuition)
+ */
+ _249212,
+ /**
+ * Drama Teacher (Private Tuition)
+ */
+ _249213,
+ /**
+ * Music Teacher (Private Tuition)
+ */
+ _249214,
+ /**
+ * Private Tutors and Teachers nec
+ */
+ _249299,
+ /**
+ * Teacher of English to Speakers of Other Languages
+ */
+ _249311,
+ /**
+ * Health Professionals nfd
+ */
+ _250000,
+ /**
+ * Health Diagnostic and Promotion Professionals nfd
+ */
+ _251000,
+ /**
+ * Dietitian
+ */
+ _251111,
+ /**
+ * Medical Imaging Professionals nfd
+ */
+ _251200,
+ /**
+ * Medical Diagnostic Radiographer
+ */
+ _251211,
+ /**
+ * Medical Radiation Therapist
+ */
+ _251212,
+ /**
+ * Nuclear Medicine Technologist
+ */
+ _251213,
+ /**
+ * Sonographer
+ */
+ _251214,
+ /**
+ * Occupational and Environmental Health Professionals nfd
+ */
+ _251300,
+ /**
+ * Environmental Health Officer
+ */
+ _251311,
+ /**
+ * Occupational Health and Safety Adviser
+ */
+ _251312,
+ /**
+ * Optometrists and Orthoptists nfd
+ */
+ _251400,
+ /**
+ * Optometrist
+ */
+ _251411,
+ /**
+ * Orthoptist
+ */
+ _251412,
+ /**
+ * Pharmacists nfd
+ */
+ _251500,
+ /**
+ * Hospital Pharmacist
+ */
+ _251511,
+ /**
+ * Industrial Pharmacist
+ */
+ _251512,
+ /**
+ * Retail Pharmacist
+ */
+ _251513,
+ /**
+ * Other Health Diagnostic and Promotion Professionals nfd
+ */
+ _251900,
+ /**
+ * Health Promotion Officer
+ */
+ _251911,
+ /**
+ * Orthotist or Prosthetist
+ */
+ _251912,
+ /**
+ * Health Diagnostic and Promotion Professionals nec
+ */
+ _251999,
+ /**
+ * Health Therapy Professionals nfd
+ */
+ _252000,
+ /**
+ * Chiropractors and Osteopaths nfd
+ */
+ _252100,
+ /**
+ * Chiropractor
+ */
+ _252111,
+ /**
+ * Osteopath
+ */
+ _252112,
+ /**
+ * Complementary Health Therapists nfd
+ */
+ _252200,
+ /**
+ * Acupuncturist
+ */
+ _252211,
+ /**
+ * Homoeopath
+ */
+ _252212,
+ /**
+ * Naturopath
+ */
+ _252213,
+ /**
+ * Traditional Chinese Medicine Practitioner
+ */
+ _252214,
+ /**
+ * Complementary Health Therapists nec
+ */
+ _252299,
+ /**
+ * Dental Practitioners nfd
+ */
+ _252300,
+ /**
+ * Dental Specialist
+ */
+ _252311,
+ /**
+ * Dentist
+ */
+ _252312,
+ /**
+ * Occupational Therapist
+ */
+ _252411,
+ /**
+ * Physiotherapist
+ */
+ _252511,
+ /**
+ * Podiatrist
+ */
+ _252611,
+ /**
+ * Speech Professionals and Audiologists nfd
+ */
+ _252700,
+ /**
+ * Audiologist
+ */
+ _252711,
+ /**
+ * Speech Pathologist
+ */
+ _252712,
+ /**
+ * Medical Practitioners nfd
+ */
+ _253000,
+ /**
+ * Generalist Medical Practitioners nfd
+ */
+ _253100,
+ /**
+ * General Medical Practitioner
+ */
+ _253111,
+ /**
+ * Resident Medical Officer
+ */
+ _253112,
+ /**
+ * Anaesthetist
+ */
+ _253211,
+ /**
+ * Internal Medicine Specialists nfd
+ */
+ _253300,
+ /**
+ * Specialist Physician (General Medicine)
+ */
+ _253311,
+ /**
+ * Cardiologist
+ */
+ _253312,
+ /**
+ * Clinical Haematologist
+ */
+ _253313,
+ /**
+ * Clinical Oncologist
+ */
+ _253314,
+ /**
+ * Endocrinologist
+ */
+ _253315,
+ /**
+ * Gastroenterologist
+ */
+ _253316,
+ /**
+ * Intensive Care Specialist
+ */
+ _253317,
+ /**
+ * Neurologist
+ */
+ _253318,
+ /**
+ * Paediatrician
+ */
+ _253321,
+ /**
+ * Renal Medicine Specialist
+ */
+ _253322,
+ /**
+ * Rheumatologist
+ */
+ _253323,
+ /**
+ * Thoracic Medicine Specialist
+ */
+ _253324,
+ /**
+ * Internal Medicine Specialists nec
+ */
+ _253399,
+ /**
+ * Psychiatrist
+ */
+ _253411,
+ /**
+ * Surgeons nfd
+ */
+ _253500,
+ /**
+ * Surgeon (General)
+ */
+ _253511,
+ /**
+ * Cardiothoracic Surgeon
+ */
+ _253512,
+ /**
+ * Neurosurgeon
+ */
+ _253513,
+ /**
+ * Orthopaedic Surgeon
+ */
+ _253514,
+ /**
+ * Otorhinolaryngologist
+ */
+ _253515,
+ /**
+ * Paediatric Surgeon
+ */
+ _253516,
+ /**
+ * Plastic and Reconstructive Surgeon
+ */
+ _253517,
+ /**
+ * Urologist
+ */
+ _253518,
+ /**
+ * Vascular Surgeon
+ */
+ _253521,
+ /**
+ * Other Medical Practitioners nfd
+ */
+ _253900,
+ /**
+ * Dermatologist
+ */
+ _253911,
+ /**
+ * Emergency Medicine Specialist
+ */
+ _253912,
+ /**
+ * Obstetrician and Gynaecologist
+ */
+ _253913,
+ /**
+ * Ophthalmologist
+ */
+ _253914,
+ /**
+ * Pathologist
+ */
+ _253915,
+ /**
+ * Radiologist
+ */
+ _253916,
+ /**
+ * Medical Practitioners nec
+ */
+ _253999,
+ /**
+ * Midwifery and Nursing Professionals nfd
+ */
+ _254000,
+ /**
+ * Midwife
+ */
+ _254111,
+ /**
+ * Nurse Educators and Researchers nfd
+ */
+ _254200,
+ /**
+ * Nurse Educator
+ */
+ _254211,
+ /**
+ * Nurse Researcher
+ */
+ _254212,
+ /**
+ * Nurse Manager
+ */
+ _254311,
+ /**
+ * Registered Nurses nfd
+ */
+ _254400,
+ /**
+ * Nurse Practitioner
+ */
+ _254411,
+ /**
+ * Registered Nurse (Aged Care)
+ */
+ _254412,
+ /**
+ * Registered Nurse (Child and Family Health)
+ */
+ _254413,
+ /**
+ * Registered Nurse (Community Health)
+ */
+ _254414,
+ /**
+ * Registered Nurse (Critical Care and Emergency)
+ */
+ _254415,
+ /**
+ * Registered Nurse (Developmental Disability)
+ */
+ _254416,
+ /**
+ * Registered Nurse (Disability and Rehabilitation)
+ */
+ _254417,
+ /**
+ * Registered Nurse (Medical)
+ */
+ _254418,
+ /**
+ * Registered Nurse (Medical Practice)
+ */
+ _254421,
+ /**
+ * Registered Nurse (Mental Health)
+ */
+ _254422,
+ /**
+ * Registered Nurse (Perioperative)
+ */
+ _254423,
+ /**
+ * Registered Nurse (Surgical)
+ */
+ _254424,
+ /**
+ * Registered Nurses nec
+ */
+ _254499,
+ /**
+ * ICT Professionals nfd
+ */
+ _260000,
+ /**
+ * Business and Systems Analysts, and Programmers nfd
+ */
+ _261000,
+ /**
+ * ICT Business and Systems Analysts nfd
+ */
+ _261100,
+ /**
+ * ICT Business Analyst
+ */
+ _261111,
+ /**
+ * Systems Analyst
+ */
+ _261112,
+ /**
+ * Multimedia Specialists and Web Developers nfd
+ */
+ _261200,
+ /**
+ * Multimedia Specialist
+ */
+ _261211,
+ /**
+ * Web Developer
+ */
+ _261212,
+ /**
+ * Software and Applications Programmers nfd
+ */
+ _261300,
+ /**
+ * Analyst Programmer
+ */
+ _261311,
+ /**
+ * Developer Programmer
+ */
+ _261312,
+ /**
+ * Software Engineer
+ */
+ _261313,
+ /**
+ * Software and Applications Programmers nec
+ */
+ _261399,
+ /**
+ * Database and Systems Administrators, and ICT Security Specialists nfd
+ */
+ _262100,
+ /**
+ * Database Administrator
+ */
+ _262111,
+ /**
+ * ICT Security Specialist
+ */
+ _262112,
+ /**
+ * Systems Administrator
+ */
+ _262113,
+ /**
+ * ICT Network and Support Professionals nfd
+ */
+ _263000,
+ /**
+ * Computer Network Professionals nfd
+ */
+ _263100,
+ /**
+ * Computer Network and Systems Engineer
+ */
+ _263111,
+ /**
+ * Network Administrator
+ */
+ _263112,
+ /**
+ * Network Analyst
+ */
+ _263113,
+ /**
+ * ICT Support and Test Engineers nfd
+ */
+ _263200,
+ /**
+ * ICT Quality Assurance Engineer
+ */
+ _263211,
+ /**
+ * ICT Support Engineer
+ */
+ _263212,
+ /**
+ * ICT Systems Test Engineer
+ */
+ _263213,
+ /**
+ * ICT Support and Test Engineers nec
+ */
+ _263299,
+ /**
+ * Telecommunications Engineering Professionals nfd
+ */
+ _263300,
+ /**
+ * Telecommunications Engineer
+ */
+ _263311,
+ /**
+ * Telecommunications Network Engineer
+ */
+ _263312,
+ /**
+ * Legal, Social and Welfare Professionals nfd
+ */
+ _270000,
+ /**
+ * Legal Professionals nfd
+ */
+ _271000,
+ /**
+ * Barrister
+ */
+ _271111,
+ /**
+ * Judicial and Other Legal Professionals nfd
+ */
+ _271200,
+ /**
+ * Judge
+ */
+ _271211,
+ /**
+ * Magistrate
+ */
+ _271212,
+ /**
+ * Tribunal Member
+ */
+ _271213,
+ /**
+ * Judicial and Other Legal Professionals nec
+ */
+ _271299,
+ /**
+ * Solicitor
+ */
+ _271311,
+ /**
+ * Social and Welfare Professionals nfd
+ */
+ _272000,
+ /**
+ * Counsellors nfd
+ */
+ _272100,
+ /**
+ * Careers Counsellor
+ */
+ _272111,
+ /**
+ * Drug and Alcohol Counsellor
+ */
+ _272112,
+ /**
+ * Family and Marriage Counsellor
+ */
+ _272113,
+ /**
+ * Rehabilitation Counsellor
+ */
+ _272114,
+ /**
+ * Student Counsellor
+ */
+ _272115,
+ /**
+ * Counsellors nec
+ */
+ _272199,
+ /**
+ * Minister of Religion
+ */
+ _272211,
+ /**
+ * Psychologists nfd
+ */
+ _272300,
+ /**
+ * Clinical Psychologist
+ */
+ _272311,
+ /**
+ * Educational Psychologist
+ */
+ _272312,
+ /**
+ * Organizational Psychologist
+ */
+ _272313,
+ /**
+ * Psychotherapist
+ */
+ _272314,
+ /**
+ * Psychologists nec
+ */
+ _272399,
+ /**
+ * Social Professionals nfd
+ */
+ _272400,
+ /**
+ * Historian
+ */
+ _272411,
+ /**
+ * Interpreter
+ */
+ _272412,
+ /**
+ * Translator
+ */
+ _272413,
+ /**
+ * Social Professionals nec
+ */
+ _272499,
+ /**
+ * Social Worker
+ */
+ _272511,
+ /**
+ * Welfare, Recreation and Community Arts Workers nfd
+ */
+ _272600,
+ /**
+ * Community Arts Worker
+ */
+ _272611,
+ /**
+ * Recreation Officer
+ */
+ _272612,
+ /**
+ * Welfare Worker
+ */
+ _272613,
+ /**
+ * Technicians and Trades Workers nfd
+ */
+ _300000,
+ /**
+ * Engineering, ICT and Science Technicians nfd
+ */
+ _310000,
+ /**
+ * Agricultural, Medical and Science Technicians nfd
+ */
+ _311000,
+ /**
+ * Agricultural Technician
+ */
+ _311111,
+ /**
+ * Medical Technicians nfd
+ */
+ _311200,
+ /**
+ * Anaesthetic Technician
+ */
+ _311211,
+ /**
+ * Cardiac Technician
+ */
+ _311212,
+ /**
+ * Medical Laboratory Technician
+ */
+ _311213,
+ /**
+ * Operating Theatre Technician
+ */
+ _311214,
+ /**
+ * Pharmacy Technician
+ */
+ _311215,
+ /**
+ * Medical Technicians nec
+ */
+ _311299,
+ /**
+ * Primary Products Inspectors nfd
+ */
+ _311300,
+ /**
+ * Fisheries Officer
+ */
+ _311311,
+ /**
+ * Meat Inspector
+ */
+ _311312,
+ /**
+ * Quarantine Officer
+ */
+ _311313,
+ /**
+ * Primary Products Inspectors nec
+ */
+ _311399,
+ /**
+ * Science Technicians nfd
+ */
+ _311400,
+ /**
+ * Chemistry Technician
+ */
+ _311411,
+ /**
+ * Earth Science Technician
+ */
+ _311412,
+ /**
+ * Life Science Technician
+ */
+ _311413,
+ /**
+ * School Laboratory Technician
+ */
+ _311414,
+ /**
+ * Science Technicians nec
+ */
+ _311499,
+ /**
+ * Building and Engineering Technicians nfd
+ */
+ _312000,
+ /**
+ * Architectural, Building and Surveying Technicians nfd
+ */
+ _312100,
+ /**
+ * Architectural Draftsperson
+ */
+ _312111,
+ /**
+ * Building Associate
+ */
+ _312112,
+ /**
+ * Building Inspector
+ */
+ _312113,
+ /**
+ * Construction Estimator
+ */
+ _312114,
+ /**
+ * Plumbing Inspector
+ */
+ _312115,
+ /**
+ * Surveying or Cartographic Technician
+ */
+ _312116,
+ /**
+ * Civil Engineering Draftspersons and Technicians nfd
+ */
+ _312200,
+ /**
+ * Civil Engineering Draftsperson
+ */
+ _312211,
+ /**
+ * Civil Engineering Technician
+ */
+ _312212,
+ /**
+ * Electrical Engineering Draftspersons and Technicians nfd
+ */
+ _312300,
+ /**
+ * Electrical Engineering Draftsperson
+ */
+ _312311,
+ /**
+ * Electrical Engineering Technician
+ */
+ _312312,
+ /**
+ * Electronic Engineering Draftspersons and Technicians nfd
+ */
+ _312400,
+ /**
+ * Electronic Engineering Draftsperson
+ */
+ _312411,
+ /**
+ * Electronic Engineering Technician
+ */
+ _312412,
+ /**
+ * Mechanical Engineering Draftspersons and Technicians nfd
+ */
+ _312500,
+ /**
+ * Mechanical Engineering Draftsperson
+ */
+ _312511,
+ /**
+ * Mechanical Engineering Technician
+ */
+ _312512,
+ /**
+ * Safety Inspector
+ */
+ _312611,
+ /**
+ * Other Building and Engineering Technicians nfd
+ */
+ _312900,
+ /**
+ * Maintenance Planner
+ */
+ _312911,
+ /**
+ * Metallurgical or Materials Technician
+ */
+ _312912,
+ /**
+ * Mine Deputy
+ */
+ _312913,
+ /**
+ * Building and Engineering Technicians nec
+ */
+ _312999,
+ /**
+ * ICT and Telecommunications Technicians nfd
+ */
+ _313000,
+ /**
+ * ICT Support Technicians nfd
+ */
+ _313100,
+ /**
+ * Hardware Technician
+ */
+ _313111,
+ /**
+ * ICT Customer Support Officer
+ */
+ _313112,
+ /**
+ * Web Administrator
+ */
+ _313113,
+ /**
+ * ICT Support Technicians nec
+ */
+ _313199,
+ /**
+ * Telecommunications Technical Specialists nfd
+ */
+ _313200,
+ /**
+ * Radiocommunications Technician
+ */
+ _313211,
+ /**
+ * Telecommunications Field Engineer
+ */
+ _313212,
+ /**
+ * Telecommunications Network Planner
+ */
+ _313213,
+ /**
+ * Telecommunications Technical Officer or Technologist
+ */
+ _313214,
+ /**
+ * Automotive and Engineering Trades Workers nfd
+ */
+ _320000,
+ /**
+ * Automotive Electricians and Mechanics nfd
+ */
+ _321000,
+ /**
+ * Automotive Electrician
+ */
+ _321111,
+ /**
+ * Motor Mechanics nfd
+ */
+ _321200,
+ /**
+ * Motor Mechanic (General)
+ */
+ _321211,
+ /**
+ * Diesel Motor Mechanic
+ */
+ _321212,
+ /**
+ * Motorcycle Mechanic
+ */
+ _321213,
+ /**
+ * Small Engine Mechanic
+ */
+ _321214,
+ /**
+ * Fabrication Engineering Trades Workers nfd
+ */
+ _322000,
+ /**
+ * Metal Casting, Forging and Finishing Trades Workers nfd
+ */
+ _322100,
+ /**
+ * Blacksmith
+ */
+ _322111,
+ /**
+ * Electroplater
+ */
+ _322112,
+ /**
+ * Farrier
+ */
+ _322113,
+ /**
+ * Metal Casting Trades Worker
+ */
+ _322114,
+ /**
+ * Metal Polisher
+ */
+ _322115,
+ /**
+ * Sheetmetal Trades Worker
+ */
+ _322211,
+ /**
+ * Structural Steel and Welding Trades Workers nfd
+ */
+ _322300,
+ /**
+ * Metal Fabricator
+ */
+ _322311,
+ /**
+ * Pressure Welder
+ */
+ _322312,
+ /**
+ * Welder (First Class)
+ */
+ _322313,
+ /**
+ * Mechanical Engineering Trades Workers nfd
+ */
+ _323000,
+ /**
+ * Aircraft Maintenance Engineers nfd
+ */
+ _323100,
+ /**
+ * Aircraft Maintenance Engineer (Avionics)
+ */
+ _323111,
+ /**
+ * Aircraft Maintenance Engineer (Mechanical)
+ */
+ _323112,
+ /**
+ * Aircraft Maintenance Engineer (Structures)
+ */
+ _323113,
+ /**
+ * Metal Fitters and Machinists nfd
+ */
+ _323200,
+ /**
+ * Fitter (General)
+ */
+ _323211,
+ /**
+ * Fitter and Turner
+ */
+ _323212,
+ /**
+ * Fitter-Welder
+ */
+ _323213,
+ /**
+ * Metal Machinist (First Class)
+ */
+ _323214,
+ /**
+ * Textile, Clothing and Footwear Mechanic
+ */
+ _323215,
+ /**
+ * Metal Fitters and Machinists nec
+ */
+ _323299,
+ /**
+ * Precision Metal Trades Workers nfd
+ */
+ _323300,
+ /**
+ * Engraver
+ */
+ _323311,
+ /**
+ * Gunsmith
+ */
+ _323312,
+ /**
+ * Locksmith
+ */
+ _323313,
+ /**
+ * Precision Instrument Maker and Repairer
+ */
+ _323314,
+ /**
+ * Saw Maker and Repairer
+ */
+ _323315,
+ /**
+ * Watch and Clock Maker and Repairer
+ */
+ _323316,
+ /**
+ * Toolmakers and Engineering Patternmakers nfd
+ */
+ _323400,
+ /**
+ * Engineering Patternmaker
+ */
+ _323411,
+ /**
+ * Toolmaker
+ */
+ _323412,
+ /**
+ * Panelbeaters, and Vehicle Body Builders, Trimmers and Painters nfd
+ */
+ _324000,
+ /**
+ * Panelbeater
+ */
+ _324111,
+ /**
+ * Vehicle Body Builders and Trimmers nfd
+ */
+ _324200,
+ /**
+ * Vehicle Body Builder
+ */
+ _324211,
+ /**
+ * Vehicle Trimmer
+ */
+ _324212,
+ /**
+ * Vehicle Painter
+ */
+ _324311,
+ /**
+ * Construction Trades Workers nfd
+ */
+ _330000,
+ /**
+ * Bricklayers, and Carpenters and Joiners nfd
+ */
+ _331000,
+ /**
+ * Bricklayers and Stonemasons nfd
+ */
+ _331100,
+ /**
+ * Bricklayer
+ */
+ _331111,
+ /**
+ * Stonemason
+ */
+ _331112,
+ /**
+ * Carpenter and Joiner
+ */
+ _331211,
+ /**
+ * Carpenter
+ */
+ _331212,
+ /**
+ * Joiner
+ */
+ _331213,
+ /**
+ * Floor Finishers and Painting Trades Workers nfd
+ */
+ _332000,
+ /**
+ * Floor Finisher
+ */
+ _332111,
+ /**
+ * Painting Trades Worker
+ */
+ _332211,
+ /**
+ * Glaziers, Plasterers and Tilers nfd
+ */
+ _333000,
+ /**
+ * Glazier
+ */
+ _333111,
+ /**
+ * Plasterers nfd
+ */
+ _333200,
+ /**
+ * Fibrous Plasterer
+ */
+ _333211,
+ /**
+ * Solid Plasterer
+ */
+ _333212,
+ /**
+ * Roof Tiler
+ */
+ _333311,
+ /**
+ * Wall and Floor Tiler
+ */
+ _333411,
+ /**
+ * Plumbers nfd
+ */
+ _334100,
+ /**
+ * Plumber (General)
+ */
+ _334111,
+ /**
+ * Airconditioning and Mechanical Services Plumber
+ */
+ _334112,
+ /**
+ * Drainer
+ */
+ _334113,
+ /**
+ * Gasfitter
+ */
+ _334114,
+ /**
+ * Roof Plumber
+ */
+ _334115,
+ /**
+ * Electrotechnology and Telecommunications Trades Workers nfd
+ */
+ _340000,
+ /**
+ * Electricians nfd
+ */
+ _341100,
+ /**
+ * Electrician (General)
+ */
+ _341111,
+ /**
+ * Electrician (Special Class)
+ */
+ _341112,
+ /**
+ * Lift Mechanic
+ */
+ _341113,
+ /**
+ * Electronics and Telecommunications Trades Workers nfd
+ */
+ _342000,
+ /**
+ * Airconditioning and Refrigeration Mechanic
+ */
+ _342111,
+ /**
+ * Electrical Distribution Trades Workers nfd
+ */
+ _342200,
+ /**
+ * Electrical Linesworker
+ */
+ _342211,
+ /**
+ * Technical Cable Jointer
+ */
+ _342212,
+ /**
+ * Electronics Trades Workers nfd
+ */
+ _342300,
+ /**
+ * Business Machine Mechanic
+ */
+ _342311,
+ /**
+ * Communications Operator
+ */
+ _342312,
+ /**
+ * Electronic Equipment Trades Worker
+ */
+ _342313,
+ /**
+ * Electronic Instrument Trades Worker (General)
+ */
+ _342314,
+ /**
+ * Electronic Instrument Trades Worker (Special Class)
+ */
+ _342315,
+ /**
+ * Telecommunications Trades Workers nfd
+ */
+ _342400,
+ /**
+ * Cabler (Data and Telecommunications)
+ */
+ _342411,
+ /**
+ * Telecommunications Cable Jointer
+ */
+ _342412,
+ /**
+ * Telecommunications Linesworker
+ */
+ _342413,
+ /**
+ * Telecommunications Technician
+ */
+ _342414,
+ /**
+ * Food Trades Workers nfd
+ */
+ _351000,
+ /**
+ * Bakers and Pastrycooks nfd
+ */
+ _351100,
+ /**
+ * Baker
+ */
+ _351111,
+ /**
+ * Pastrycook
+ */
+ _351112,
+ /**
+ * Butcher or Smallgoods Maker
+ */
+ _351211,
+ /**
+ * Chef
+ */
+ _351311,
+ /**
+ * Cook
+ */
+ _351411,
+ /**
+ * Skilled Animal and Horticultural Workers nfd
+ */
+ _360000,
+ /**
+ * Animal Attendants and Trainers, and Shearers nfd
+ */
+ _361000,
+ /**
+ * Animal Attendants and Trainers nfd
+ */
+ _361100,
+ /**
+ * Dog Handler or Trainer
+ */
+ _361111,
+ /**
+ * Horse Trainer
+ */
+ _361112,
+ /**
+ * Pet Groomer
+ */
+ _361113,
+ /**
+ * Zookeeper
+ */
+ _361114,
+ /**
+ * Animal Attendants and Trainers nec
+ */
+ _361199,
+ /**
+ * Shearer
+ */
+ _361211,
+ /**
+ * Veterinary Nurse
+ */
+ _361311,
+ /**
+ * Horticultural Trades Workers nfd
+ */
+ _362000,
+ /**
+ * Florist
+ */
+ _362111,
+ /**
+ * Gardeners nfd
+ */
+ _362200,
+ /**
+ * Gardener (General)
+ */
+ _362211,
+ /**
+ * Arborist
+ */
+ _362212,
+ /**
+ * Landscape Gardener
+ */
+ _362213,
+ /**
+ * Greenkeeper
+ */
+ _362311,
+ /**
+ * Nurseryperson
+ */
+ _362411,
+ /**
+ * Other Technicians and Trades Workers nfd
+ */
+ _390000,
+ /**
+ * Hairdresser
+ */
+ _391111,
+ /**
+ * Printing Trades Workers nfd
+ */
+ _392000,
+ /**
+ * Binders, Finishers and Screen Printers nfd
+ */
+ _392100,
+ /**
+ * Binder and Finisher
+ */
+ _392111,
+ /**
+ * Screen Printer
+ */
+ _392112,
+ /**
+ * Graphic Pre-press Trades Worker
+ */
+ _392211,
+ /**
+ * Printers nfd
+ */
+ _392300,
+ /**
+ * Printing Machinist
+ */
+ _392311,
+ /**
+ * Small Offset Printer
+ */
+ _392312,
+ /**
+ * Textile, Clothing and Footwear Trades Workers nfd
+ */
+ _393000,
+ /**
+ * Canvas and Leather Goods Makers nfd
+ */
+ _393100,
+ /**
+ * Canvas Goods Maker
+ */
+ _393111,
+ /**
+ * Leather Goods Maker
+ */
+ _393112,
+ /**
+ * Sail Maker
+ */
+ _393113,
+ /**
+ * Shoemaker
+ */
+ _393114,
+ /**
+ * Clothing Trades Workers nfd
+ */
+ _393200,
+ /**
+ * Apparel Cutter
+ */
+ _393211,
+ /**
+ * Clothing Patternmaker
+ */
+ _393212,
+ /**
+ * Dressmaker or Tailor
+ */
+ _393213,
+ /**
+ * Clothing Trades Workers nec
+ */
+ _393299,
+ /**
+ * Upholsterer
+ */
+ _393311,
+ /**
+ * Wood Trades Workers nfd
+ */
+ _394000,
+ /**
+ * Cabinetmaker
+ */
+ _394111,
+ /**
+ * Wood Machinists and Other Wood Trades Workers nfd
+ */
+ _394200,
+ /**
+ * Furniture Finisher
+ */
+ _394211,
+ /**
+ * Picture Framer
+ */
+ _394212,
+ /**
+ * Wood Machinist
+ */
+ _394213,
+ /**
+ * Wood Turner
+ */
+ _394214,
+ /**
+ * Wood Machinists and Other Wood Trades Workers nec
+ */
+ _394299,
+ /**
+ * Miscellaneous Technicians and Trades Workers nfd
+ */
+ _399000,
+ /**
+ * Boat Builders and Shipwrights nfd
+ */
+ _399100,
+ /**
+ * Boat Builder and Repairer
+ */
+ _399111,
+ /**
+ * Shipwright
+ */
+ _399112,
+ /**
+ * Chemical, Gas, Petroleum and Power Generation Plant Operators nfd
+ */
+ _399200,
+ /**
+ * Chemical Plant Operator
+ */
+ _399211,
+ /**
+ * Gas or Petroleum Operator
+ */
+ _399212,
+ /**
+ * Power Generation Plant Operator
+ */
+ _399213,
+ /**
+ * Gallery, Library and Museum Technicians nfd
+ */
+ _399300,
+ /**
+ * Gallery or Museum Technician
+ */
+ _399311,
+ /**
+ * Library Technician
+ */
+ _399312,
+ /**
+ * Jeweller
+ */
+ _399411,
+ /**
+ * Performing Arts Technicians nfd
+ */
+ _399500,
+ /**
+ * Broadcast Transmitter Operator
+ */
+ _399511,
+ /**
+ * Camera Operator (Film, Television or Video)
+ */
+ _399512,
+ /**
+ * Light Technician
+ */
+ _399513,
+ /**
+ * Make Up Artist
+ */
+ _399514,
+ /**
+ * Musical Instrument Maker or Repairer
+ */
+ _399515,
+ /**
+ * Sound Technician
+ */
+ _399516,
+ /**
+ * Television Equipment Operator
+ */
+ _399517,
+ /**
+ * Performing Arts Technicians nec
+ */
+ _399599,
+ /**
+ * Signwriter
+ */
+ _399611,
+ /**
+ * Other Miscellaneous Technicians and Trades Workers nfd
+ */
+ _399900,
+ /**
+ * Diver
+ */
+ _399911,
+ /**
+ * Interior Decorator
+ */
+ _399912,
+ /**
+ * Optical Dispenser
+ */
+ _399913,
+ /**
+ * Optical Mechanic
+ */
+ _399914,
+ /**
+ * Photographer's Assistant
+ */
+ _399915,
+ /**
+ * Plastics Technician
+ */
+ _399916,
+ /**
+ * Wool Classer
+ */
+ _399917,
+ /**
+ * Technicians and Trades Workers nec
+ */
+ _399999,
+ /**
+ * Community and Personal Service Workers nfd
+ */
+ _400000,
+ /**
+ * Health and Welfare Support Workers nfd
+ */
+ _411000,
+ /**
+ * Ambulance Officers and Paramedics nfd
+ */
+ _411100,
+ /**
+ * Ambulance Officer
+ */
+ _411111,
+ /**
+ * Intensive Care Ambulance Paramedic
+ */
+ _411112,
+ /**
+ * Dental Hygienists, Technicians and Therapists nfd
+ */
+ _411200,
+ /**
+ * Dental Hygienist
+ */
+ _411211,
+ /**
+ * Dental Prosthetist
+ */
+ _411212,
+ /**
+ * Dental Technician
+ */
+ _411213,
+ /**
+ * Dental Therapist
+ */
+ _411214,
+ /**
+ * Diversional Therapist
+ */
+ _411311,
+ /**
+ * Enrolled and Mothercraft Nurses nfd
+ */
+ _411400,
+ /**
+ * Enrolled Nurse
+ */
+ _411411,
+ /**
+ * Mothercraft Nurse
+ */
+ _411412,
+ /**
+ * Aboriginal and Torres Strait Islander Health Worker
+ */
+ _411511,
+ /**
+ * Massage Therapist
+ */
+ _411611,
+ /**
+ * Welfare Support Workers nfd
+ */
+ _411700,
+ /**
+ * Community Worker
+ */
+ _411711,
+ /**
+ * Disabilities Services Officer
+ */
+ _411712,
+ /**
+ * Family Support Worker
+ */
+ _411713,
+ /**
+ * Parole or Probation Officer
+ */
+ _411714,
+ /**
+ * Residential Care Officer
+ */
+ _411715,
+ /**
+ * Youth Worker
+ */
+ _411716,
+ /**
+ * Carers and Aides nfd
+ */
+ _420000,
+ /**
+ * Child Carers nfd
+ */
+ _421100,
+ /**
+ * Child Care Worker
+ */
+ _421111,
+ /**
+ * Family Day Care Worker
+ */
+ _421112,
+ /**
+ * Nanny
+ */
+ _421113,
+ /**
+ * Out of School Hours Care Worker
+ */
+ _421114,
+ /**
+ * Education Aides nfd
+ */
+ _422100,
+ /**
+ * Aboriginal and Torres Strait Islander Education Worker
+ */
+ _422111,
+ /**
+ * Integration Aide
+ */
+ _422112,
+ /**
+ * Preschool Aide
+ */
+ _422115,
+ /**
+ * Teachers' Aide
+ */
+ _422116,
+ /**
+ * Personal Carers and Assistants nfd
+ */
+ _423000,
+ /**
+ * Aged or Disabled Carer
+ */
+ _423111,
+ /**
+ * Dental Assistant
+ */
+ _423211,
+ /**
+ * Nursing Support and Personal Care Workers nfd
+ */
+ _423300,
+ /**
+ * Hospital Orderly
+ */
+ _423311,
+ /**
+ * Nursing Support Worker
+ */
+ _423312,
+ /**
+ * Personal Care Assistant
+ */
+ _423313,
+ /**
+ * Therapy Aide
+ */
+ _423314,
+ /**
+ * Special Care Workers nfd
+ */
+ _423400,
+ /**
+ * Child or Youth Residential Care Assistant
+ */
+ _423411,
+ /**
+ * Hostel Parent
+ */
+ _423412,
+ /**
+ * Refuge Worker
+ */
+ _423413,
+ /**
+ * Hospitality Workers nfd
+ */
+ _431000,
+ /**
+ * Bar Attendants and Baristas nfd
+ */
+ _431100,
+ /**
+ * Bar Attendant
+ */
+ _431111,
+ /**
+ * Barista
+ */
+ _431112,
+ /**
+ * Cafe Worker
+ */
+ _431211,
+ /**
+ * Gaming Worker
+ */
+ _431311,
+ /**
+ * Hotel Service Manager
+ */
+ _431411,
+ /**
+ * Waiter
+ */
+ _431511,
+ /**
+ * Other Hospitality Workers nfd
+ */
+ _431900,
+ /**
+ * Bar Useful or Busser
+ */
+ _431911,
+ /**
+ * Doorperson or Luggage Porter
+ */
+ _431912,
+ /**
+ * Hospitality Workers nec
+ */
+ _431999,
+ /**
+ * Protective Service Workers nfd
+ */
+ _440000,
+ /**
+ * Defence Force Members, Fire Fighters and Police nfd
+ */
+ _441000,
+ /**
+ * Defence Force Member - Other Ranks
+ */
+ _441111,
+ /**
+ * Fire and Emergency Workers nfd
+ */
+ _441200,
+ /**
+ * Emergency Service Worker
+ */
+ _441211,
+ /**
+ * Fire Fighter
+ */
+ _441212,
+ /**
+ * Police nfd
+ */
+ _441300,
+ /**
+ * Detective
+ */
+ _441311,
+ /**
+ * Police Officer
+ */
+ _441312,
+ /**
+ * Prison and Security Officers nfd
+ */
+ _442000,
+ /**
+ * Prison Officer
+ */
+ _442111,
+ /**
+ * Security Officers and Guards nfd
+ */
+ _442200,
+ /**
+ * Alarm, Security or Surveillance Monitor
+ */
+ _442211,
+ /**
+ * Armoured Car Escort
+ */
+ _442212,
+ /**
+ * Crowd Controller
+ */
+ _442213,
+ /**
+ * Private Investigator
+ */
+ _442214,
+ /**
+ * Retail Loss Prevention Officer
+ */
+ _442215,
+ /**
+ * Security Consultant
+ */
+ _442216,
+ /**
+ * Security Officer
+ */
+ _442217,
+ /**
+ * Security Officers and Guards nec
+ */
+ _442299,
+ /**
+ * Sports and Personal Service Workers nfd
+ */
+ _450000,
+ /**
+ * Personal Service and Travel Workers nfd
+ */
+ _451000,
+ /**
+ * Beauty Therapist
+ */
+ _451111,
+ /**
+ * Driving Instructor
+ */
+ _451211,
+ /**
+ * Funeral Workers nfd
+ */
+ _451300,
+ /**
+ * Funeral Director
+ */
+ _451311,
+ /**
+ * Funeral Workers nec
+ */
+ _451399,
+ /**
+ * Gallery, Museum and Tour Guides nfd
+ */
+ _451400,
+ /**
+ * Gallery or Museum Guide
+ */
+ _451411,
+ /**
+ * Tour Guide
+ */
+ _451412,
+ /**
+ * Personal Care Consultants nfd
+ */
+ _451500,
+ /**
+ * Natural Remedy Consultant
+ */
+ _451511,
+ /**
+ * Weight Loss Consultant
+ */
+ _451512,
+ /**
+ * Tourism and Travel Advisers nfd
+ */
+ _451600,
+ /**
+ * Tourist Information Officer
+ */
+ _451611,
+ /**
+ * Travel Consultant
+ */
+ _451612,
+ /**
+ * Travel Attendants nfd
+ */
+ _451700,
+ /**
+ * Flight Attendant
+ */
+ _451711,
+ /**
+ * Travel Attendants nec
+ */
+ _451799,
+ /**
+ * Other Personal Service Workers nfd
+ */
+ _451800,
+ /**
+ * Civil Celebrant
+ */
+ _451811,
+ /**
+ * Hair or Beauty Salon Assistant
+ */
+ _451812,
+ /**
+ * Sex Worker or Escort
+ */
+ _451813,
+ /**
+ * Personal Service Workers nec
+ */
+ _451899,
+ /**
+ * Sports and Fitness Workers nfd
+ */
+ _452000,
+ /**
+ * Fitness Instructor
+ */
+ _452111,
+ /**
+ * Outdoor Adventure Guides nfd
+ */
+ _452200,
+ /**
+ * Bungy Jump Master
+ */
+ _452211,
+ /**
+ * Fishing Guide
+ */
+ _452212,
+ /**
+ * Hunting Guide
+ */
+ _452213,
+ /**
+ * Mountain or Glacier Guide
+ */
+ _452214,
+ /**
+ * Outdoor Adventure Instructor
+ */
+ _452215,
+ /**
+ * Trekking Guide
+ */
+ _452216,
+ /**
+ * Whitewater Rafting Guide
+ */
+ _452217,
+ /**
+ * Outdoor Adventure Guides nec
+ */
+ _452299,
+ /**
+ * Sports Coaches, Instructors and Officials nfd
+ */
+ _452300,
+ /**
+ * Diving Instructor (Open Water)
+ */
+ _452311,
+ /**
+ * Gymnastics Coach or Instructor
+ */
+ _452312,
+ /**
+ * Horse Riding Coach or Instructor
+ */
+ _452313,
+ /**
+ * Snowsport Instructor
+ */
+ _452314,
+ /**
+ * Swimming Coach or Instructor
+ */
+ _452315,
+ /**
+ * Tennis Coach
+ */
+ _452316,
+ /**
+ * Other Sports Coach or Instructor
+ */
+ _452317,
+ /**
+ * Dog or Horse Racing Official
+ */
+ _452318,
+ /**
+ * Sports Development Officer
+ */
+ _452321,
+ /**
+ * Sports Umpire
+ */
+ _452322,
+ /**
+ * Other Sports Official
+ */
+ _452323,
+ /**
+ * Sportspersons nfd
+ */
+ _452400,
+ /**
+ * Footballer
+ */
+ _452411,
+ /**
+ * Golfer
+ */
+ _452412,
+ /**
+ * Jockey
+ */
+ _452413,
+ /**
+ * Lifeguard
+ */
+ _452414,
+ /**
+ * Sportspersons nec
+ */
+ _452499,
+ /**
+ * Clerical and Administrative Workers nfd
+ */
+ _500000,
+ /**
+ * Office Managers and Program Administrators nfd
+ */
+ _510000,
+ /**
+ * Contract, Program and Project Administrators nfd
+ */
+ _511100,
+ /**
+ * Contract Administrator
+ */
+ _511111,
+ /**
+ * Program or Project Administrator
+ */
+ _511112,
+ /**
+ * Office and Practice Managers nfd
+ */
+ _512000,
+ /**
+ * Office Manager
+ */
+ _512111,
+ /**
+ * Practice Managers nfd
+ */
+ _512200,
+ /**
+ * Health Practice Manager
+ */
+ _512211,
+ /**
+ * Practice Managers nec
+ */
+ _512299,
+ /**
+ * Personal Assistants and Secretaries nfd
+ */
+ _521000,
+ /**
+ * Personal Assistant
+ */
+ _521111,
+ /**
+ * Secretaries nfd
+ */
+ _521200,
+ /**
+ * Secretary (General)
+ */
+ _521211,
+ /**
+ * Legal Secretary
+ */
+ _521212,
+ /**
+ * General Clerical Workers nfd
+ */
+ _530000,
+ /**
+ * General Clerk
+ */
+ _531111,
+ /**
+ * Keyboard Operators nfd
+ */
+ _532100,
+ /**
+ * Data Entry Operator
+ */
+ _532111,
+ /**
+ * Machine Shorthand Reporter
+ */
+ _532112,
+ /**
+ * Word Processing Operator
+ */
+ _532113,
+ /**
+ * Inquiry Clerks and Receptionists nfd
+ */
+ _540000,
+ /**
+ * Call or Contact Centre Information Clerks nfd
+ */
+ _541000,
+ /**
+ * Call or Contact Centre Workers nfd
+ */
+ _541100,
+ /**
+ * Call or Contact Centre Team Leader
+ */
+ _541111,
+ /**
+ * Call or Contact Centre Operator
+ */
+ _541112,
+ /**
+ * Inquiry Clerk
+ */
+ _541211,
+ /**
+ * Receptionists nfd
+ */
+ _542100,
+ /**
+ * Receptionist (General)
+ */
+ _542111,
+ /**
+ * Admissions Clerk
+ */
+ _542112,
+ /**
+ * Hotel or Motel Receptionist
+ */
+ _542113,
+ /**
+ * Medical Receptionist
+ */
+ _542114,
+ /**
+ * Numerical Clerks nfd
+ */
+ _550000,
+ /**
+ * Accounting Clerks and Bookkeepers nfd
+ */
+ _551000,
+ /**
+ * Accounting Clerks nfd
+ */
+ _551100,
+ /**
+ * Accounts Clerk
+ */
+ _551111,
+ /**
+ * Cost Clerk
+ */
+ _551112,
+ /**
+ * Bookkeeper
+ */
+ _551211,
+ /**
+ * Payroll Clerk
+ */
+ _551311,
+ /**
+ * Financial and Insurance Clerks nfd
+ */
+ _552000,
+ /**
+ * Bank Worker
+ */
+ _552111,
+ /**
+ * Credit or Loans Officer
+ */
+ _552211,
+ /**
+ * Insurance, Money Market and Statistical Clerks nfd
+ */
+ _552300,
+ /**
+ * Bookmaker
+ */
+ _552311,
+ /**
+ * Insurance Consultant
+ */
+ _552312,
+ /**
+ * Money Market Clerk
+ */
+ _552313,
+ /**
+ * Statistical Clerk
+ */
+ _552314,
+ /**
+ * Clerical and Office Support Workers nfd
+ */
+ _561000,
+ /**
+ * Betting Clerks nfd
+ */
+ _561100,
+ /**
+ * Betting Agency Counter Clerk
+ */
+ _561111,
+ /**
+ * Bookmaker's Clerk
+ */
+ _561112,
+ /**
+ * Telephone Betting Clerk
+ */
+ _561113,
+ /**
+ * Betting Clerks nec
+ */
+ _561199,
+ /**
+ * Couriers and Postal Deliverers nfd
+ */
+ _561200,
+ /**
+ * Courier
+ */
+ _561211,
+ /**
+ * Postal Delivery Officer
+ */
+ _561212,
+ /**
+ * Filing or Registry Clerk
+ */
+ _561311,
+ /**
+ * Mail Sorters nfd
+ */
+ _561400,
+ /**
+ * Mail Clerk
+ */
+ _561411,
+ /**
+ * Postal Sorting Officer
+ */
+ _561412,
+ /**
+ * Survey Interviewer
+ */
+ _561511,
+ /**
+ * Switchboard Operator
+ */
+ _561611,
+ /**
+ * Other Clerical and Office Support Workers nfd
+ */
+ _561900,
+ /**
+ * Classified Advertising Clerk
+ */
+ _561911,
+ /**
+ * Meter Reader
+ */
+ _561912,
+ /**
+ * Parking Inspector
+ */
+ _561913,
+ /**
+ * Clerical and Office Support Workers nec
+ */
+ _561999,
+ /**
+ * Other Clerical and Administrative Workers nfd
+ */
+ _590000,
+ /**
+ * Logistics Clerks nfd
+ */
+ _591000,
+ /**
+ * Purchasing and Supply Logistics Clerks nfd
+ */
+ _591100,
+ /**
+ * Order Clerk
+ */
+ _591111,
+ /**
+ * Production Clerk
+ */
+ _591112,
+ /**
+ * Purchasing Officer
+ */
+ _591113,
+ /**
+ * Sales Clerk
+ */
+ _591114,
+ /**
+ * Stock Clerk
+ */
+ _591115,
+ /**
+ * Warehouse Administrator
+ */
+ _591116,
+ /**
+ * Transport and Despatch Clerks nfd
+ */
+ _591200,
+ /**
+ * Despatching and Receiving Clerk
+ */
+ _591211,
+ /**
+ * Import-Export Clerk
+ */
+ _591212,
+ /**
+ * Miscellaneous Clerical and Administrative Workers nfd
+ */
+ _599000,
+ /**
+ * Conveyancers and Legal Executives nfd
+ */
+ _599100,
+ /**
+ * Conveyancer
+ */
+ _599111,
+ /**
+ * Legal Executive
+ */
+ _599112,
+ /**
+ * Court and Legal Clerks nfd
+ */
+ _599200,
+ /**
+ * Clerk of Court
+ */
+ _599211,
+ /**
+ * Court Bailiff or Sheriff
+ */
+ _599212,
+ /**
+ * Court Orderly
+ */
+ _599213,
+ /**
+ * Law Clerk
+ */
+ _599214,
+ /**
+ * Trust Officer
+ */
+ _599215,
+ /**
+ * Debt Collector
+ */
+ _599311,
+ /**
+ * Human Resource Clerk
+ */
+ _599411,
+ /**
+ * Inspectors and Regulatory Officers nfd
+ */
+ _599500,
+ /**
+ * Customs Officer
+ */
+ _599511,
+ /**
+ * Immigration Officer
+ */
+ _599512,
+ /**
+ * Motor Vehicle Licence Examiner
+ */
+ _599513,
+ /**
+ * Noxious Weeds and Pest Inspector
+ */
+ _599514,
+ /**
+ * Social Security Assessor
+ */
+ _599515,
+ /**
+ * Taxation Inspector
+ */
+ _599516,
+ /**
+ * Train Examiner
+ */
+ _599517,
+ /**
+ * Transport Operations Inspector
+ */
+ _599518,
+ /**
+ * Water Inspector
+ */
+ _599521,
+ /**
+ * Inspectors and Regulatory Officers nec
+ */
+ _599599,
+ /**
+ * Insurance Investigators, Loss Adjusters and Risk Surveyors nfd
+ */
+ _599600,
+ /**
+ * Insurance Investigator
+ */
+ _599611,
+ /**
+ * Insurance Loss Adjuster
+ */
+ _599612,
+ /**
+ * Insurance Risk Surveyor
+ */
+ _599613,
+ /**
+ * Library Assistant
+ */
+ _599711,
+ /**
+ * Other Miscellaneous Clerical and Administrative Workers nfd
+ */
+ _599900,
+ /**
+ * Coding Clerk
+ */
+ _599911,
+ /**
+ * Production Assistant (Film, Television, Radio or Stage)
+ */
+ _599912,
+ /**
+ * Proof Reader
+ */
+ _599913,
+ /**
+ * Radio Despatcher
+ */
+ _599914,
+ /**
+ * Clerical and Administrative Workers nec
+ */
+ _599999,
+ /**
+ * Sales Workers nfd
+ */
+ _600000,
+ /**
+ * Sales Representatives and Agents nfd
+ */
+ _610000,
+ /**
+ * Insurance Agents and Sales Representatives nfd
+ */
+ _611000,
+ /**
+ * Auctioneers, and Stock and Station Agents nfd
+ */
+ _611100,
+ /**
+ * Auctioneer
+ */
+ _611111,
+ /**
+ * Stock and Station Agent
+ */
+ _611112,
+ /**
+ * Insurance Agent
+ */
+ _611211,
+ /**
+ * Sales Representatives nfd
+ */
+ _611300,
+ /**
+ * Sales Representative (Building and Plumbing Supplies)
+ */
+ _611311,
+ /**
+ * Sales Representative (Business Services)
+ */
+ _611312,
+ /**
+ * Sales Representative (Motor Vehicle Parts and Accessories)
+ */
+ _611313,
+ /**
+ * Sales Representative (Personal and Household Goods)
+ */
+ _611314,
+ /**
+ * Sales Representatives nec
+ */
+ _611399,
+ /**
+ * Real Estate Sales Agents nfd
+ */
+ _612100,
+ /**
+ * Business Broker
+ */
+ _612111,
+ /**
+ * Property Manager
+ */
+ _612112,
+ /**
+ * Real Estate Agency Principal
+ */
+ _612113,
+ /**
+ * Real Estate Agent
+ */
+ _612114,
+ /**
+ * Real Estate Representative
+ */
+ _612115,
+ /**
+ * Sales Assistants and Salespersons nfd
+ */
+ _621000,
+ /**
+ * Sales Assistant (General)
+ */
+ _621111,
+ /**
+ * ICT Sales Assistant
+ */
+ _621211,
+ /**
+ * Motor Vehicle and Vehicle Parts Salespersons nfd
+ */
+ _621300,
+ /**
+ * Motor Vehicle or Caravan Salesperson
+ */
+ _621311,
+ /**
+ * Motor Vehicle Parts Interpreter
+ */
+ _621312,
+ /**
+ * Pharmacy Sales Assistant
+ */
+ _621411,
+ /**
+ * Retail Supervisor
+ */
+ _621511,
+ /**
+ * Service Station Attendant
+ */
+ _621611,
+ /**
+ * Street Vendors and Related Salespersons nfd
+ */
+ _621700,
+ /**
+ * Cash Van Salesperson
+ */
+ _621711,
+ /**
+ * Door-to-door Salesperson
+ */
+ _621712,
+ /**
+ * Street Vendor
+ */
+ _621713,
+ /**
+ * Other Sales Assistants and Salespersons nfd
+ */
+ _621900,
+ /**
+ * Materials Recycler
+ */
+ _621911,
+ /**
+ * Rental Salesperson
+ */
+ _621912,
+ /**
+ * Sales Assistants and Salespersons nec
+ */
+ _621999,
+ /**
+ * Sales Support Workers nfd
+ */
+ _630000,
+ /**
+ * Checkout Operators and Office Cashiers nfd
+ */
+ _631100,
+ /**
+ * Checkout Operator
+ */
+ _631111,
+ /**
+ * Office Cashier
+ */
+ _631112,
+ /**
+ * Miscellaneous Sales Support Workers nfd
+ */
+ _639000,
+ /**
+ * Models and Sales Demonstrators nfd
+ */
+ _639100,
+ /**
+ * Model
+ */
+ _639111,
+ /**
+ * Sales Demonstrator
+ */
+ _639112,
+ /**
+ * Retail and Wool Buyers nfd
+ */
+ _639200,
+ /**
+ * Retail Buyer
+ */
+ _639211,
+ /**
+ * Wool Buyer
+ */
+ _639212,
+ /**
+ * Telemarketer
+ */
+ _639311,
+ /**
+ * Ticket Salespersons nfd
+ */
+ _639400,
+ /**
+ * Ticket Seller
+ */
+ _639411,
+ /**
+ * Transport Conductor
+ */
+ _639412,
+ /**
+ * Visual Merchandiser
+ */
+ _639511,
+ /**
+ * Other Sales Support Worker
+ */
+ _639911,
+ /**
+ * Machinery Operators and Drivers nfd
+ */
+ _700000,
+ /**
+ * Machine and Stationary Plant Operators nfd
+ */
+ _710000,
+ /**
+ * Machine Operators nfd
+ */
+ _711000,
+ /**
+ * Clay, Concrete, Glass and Stone Processing Machine Operators nfd
+ */
+ _711100,
+ /**
+ * Clay Products Machine Operator
+ */
+ _711111,
+ /**
+ * Concrete Products Machine Operator
+ */
+ _711112,
+ /**
+ * Glass Production Machine Operator
+ */
+ _711113,
+ /**
+ * Stone Processing Machine Operator
+ */
+ _711114,
+ /**
+ * Clay, Concrete, Glass and Stone Processing Machine Operators nec
+ */
+ _711199,
+ /**
+ * Industrial Spraypainter
+ */
+ _711211,
+ /**
+ * Paper and Wood Processing Machine Operators nfd
+ */
+ _711300,
+ /**
+ * Paper Products Machine Operator
+ */
+ _711311,
+ /**
+ * Wood Processing Machine Operator
+ */
+ _711312,
+ /**
+ * Photographic Developer and Printer
+ */
+ _711411,
+ /**
+ * Plastics and Rubber Production Machine Operators nfd
+ */
+ _711500,
+ /**
+ * Plastic Cablemaking Machine Operator
+ */
+ _711511,
+ /**
+ * Plastic Compounding and Reclamation Machine Operator
+ */
+ _711512,
+ /**
+ * Plastics Fabricator or Welder
+ */
+ _711513,
+ /**
+ * Plastics Production Machine Operator (General)
+ */
+ _711514,
+ /**
+ * Reinforced Plastic and Composite Production Worker
+ */
+ _711515,
+ /**
+ * Rubber Production Machine Operator
+ */
+ _711516,
+ /**
+ * Plastics and Rubber Production Machine Operators nec
+ */
+ _711599,
+ /**
+ * Sewing Machinist
+ */
+ _711611,
+ /**
+ * Textile and Footwear Production Machine Operators nfd
+ */
+ _711700,
+ /**
+ * Footwear Production Machine Operator
+ */
+ _711711,
+ /**
+ * Hide and Skin Processing Machine Operator
+ */
+ _711712,
+ /**
+ * Knitting Machine Operator
+ */
+ _711713,
+ /**
+ * Textile Dyeing and Finishing Machine Operator
+ */
+ _711714,
+ /**
+ * Weaving Machine Operator
+ */
+ _711715,
+ /**
+ * Yarn Carding and Spinning Machine Operator
+ */
+ _711716,
+ /**
+ * Textile and Footwear Production Machine Operators nec
+ */
+ _711799,
+ /**
+ * Other Machine Operators nfd
+ */
+ _711900,
+ /**
+ * Chemical Production Machine Operator
+ */
+ _711911,
+ /**
+ * Motion Picture Projectionist
+ */
+ _711912,
+ /**
+ * Sand Blaster
+ */
+ _711913,
+ /**
+ * Sterilisation Technician
+ */
+ _711914,
+ /**
+ * Machine Operators nec
+ */
+ _711999,
+ /**
+ * Stationary Plant Operators nfd
+ */
+ _712000,
+ /**
+ * Crane, Hoist or Lift Operator
+ */
+ _712111,
+ /**
+ * Drillers, Miners and Shot Firers nfd
+ */
+ _712200,
+ /**
+ * Driller
+ */
+ _712211,
+ /**
+ * Miner
+ */
+ _712212,
+ /**
+ * Shot Firer
+ */
+ _712213,
+ /**
+ * Engineering Production Systems Worker
+ */
+ _712311,
+ /**
+ * Other Stationary Plant Operators nfd
+ */
+ _712900,
+ /**
+ * Boiler or Engine Operator
+ */
+ _712911,
+ /**
+ * Bulk Materials Handling Plant Operator
+ */
+ _712912,
+ /**
+ * Cement Production Plant Operator
+ */
+ _712913,
+ /**
+ * Concrete Batching Plant Operator
+ */
+ _712914,
+ /**
+ * Concrete Pump Operator
+ */
+ _712915,
+ /**
+ * Paper and Pulp Mill Operator
+ */
+ _712916,
+ /**
+ * Railway Signal Operator
+ */
+ _712917,
+ /**
+ * Train Controller
+ */
+ _712918,
+ /**
+ * Waste Water or Water Plant Operator
+ */
+ _712921,
+ /**
+ * Weighbridge Operator
+ */
+ _712922,
+ /**
+ * Stationary Plant Operators nec
+ */
+ _712999,
+ /**
+ * Mobile Plant Operators nfd
+ */
+ _721000,
+ /**
+ * Agricultural, Forestry and Horticultural Plant Operators nfd
+ */
+ _721100,
+ /**
+ * Agricultural and Horticultural Mobile Plant Operator
+ */
+ _721111,
+ /**
+ * Logging Plant Operator
+ */
+ _721112,
+ /**
+ * Earthmoving Plant Operators nfd
+ */
+ _721200,
+ /**
+ * Earthmoving Plant Operator (General)
+ */
+ _721211,
+ /**
+ * Backhoe Operator
+ */
+ _721212,
+ /**
+ * Bulldozer Operator
+ */
+ _721213,
+ /**
+ * Excavator Operator
+ */
+ _721214,
+ /**
+ * Grader Operator
+ */
+ _721215,
+ /**
+ * Loader Operator
+ */
+ _721216,
+ /**
+ * Forklift Driver
+ */
+ _721311,
+ /**
+ * Other Mobile Plant Operators nfd
+ */
+ _721900,
+ /**
+ * Aircraft Baggage Handler and Airline Ground Crew
+ */
+ _721911,
+ /**
+ * Linemarker
+ */
+ _721912,
+ /**
+ * Paving Plant Operator
+ */
+ _721913,
+ /**
+ * Railway Track Plant Operator
+ */
+ _721914,
+ /**
+ * Road Roller Operator
+ */
+ _721915,
+ /**
+ * Streetsweeper Operator
+ */
+ _721916,
+ /**
+ * Mobile Plant Operators nec
+ */
+ _721999,
+ /**
+ * Road and Rail Drivers nfd
+ */
+ _730000,
+ /**
+ * Automobile, Bus and Rail Drivers nfd
+ */
+ _731000,
+ /**
+ * Automobile Drivers nfd
+ */
+ _731100,
+ /**
+ * Chauffeur
+ */
+ _731111,
+ /**
+ * Taxi Driver
+ */
+ _731112,
+ /**
+ * Automobile Drivers nec
+ */
+ _731199,
+ /**
+ * Bus and Coach Drivers nfd
+ */
+ _731200,
+ /**
+ * Bus Driver
+ */
+ _731211,
+ /**
+ * Charter and Tour Bus Driver
+ */
+ _731212,
+ /**
+ * Passenger Coach Driver
+ */
+ _731213,
+ /**
+ * Train and Tram Drivers nfd
+ */
+ _731300,
+ /**
+ * Train Driver
+ */
+ _731311,
+ /**
+ * Tram Driver
+ */
+ _731312,
+ /**
+ * Delivery Driver
+ */
+ _732111,
+ /**
+ * Truck Drivers nfd
+ */
+ _733100,
+ /**
+ * Truck Driver (General)
+ */
+ _733111,
+ /**
+ * Aircraft Refueller
+ */
+ _733112,
+ /**
+ * Furniture Removalist
+ */
+ _733113,
+ /**
+ * Tanker Driver
+ */
+ _733114,
+ /**
+ * Tow Truck Driver
+ */
+ _733115,
+ /**
+ * Storeperson
+ */
+ _741111,
+ /**
+ * Labourers nfd
+ */
+ _800000,
+ /**
+ * Cleaners and Laundry Workers nfd
+ */
+ _811000,
+ /**
+ * Car Detailer
+ */
+ _811111,
+ /**
+ * Commercial Cleaner
+ */
+ _811211,
+ /**
+ * Domestic Cleaner
+ */
+ _811311,
+ /**
+ * Housekeepers nfd
+ */
+ _811400,
+ /**
+ * Commercial Housekeeper
+ */
+ _811411,
+ /**
+ * Domestic Housekeeper
+ */
+ _811412,
+ /**
+ * Laundry Workers nfd
+ */
+ _811500,
+ /**
+ * Laundry Worker (General)
+ */
+ _811511,
+ /**
+ * Drycleaner
+ */
+ _811512,
+ /**
+ * Ironer or Presser
+ */
+ _811513,
+ /**
+ * Other Cleaners nfd
+ */
+ _811600,
+ /**
+ * Carpet Cleaner
+ */
+ _811611,
+ /**
+ * Window Cleaner
+ */
+ _811612,
+ /**
+ * Cleaners nec
+ */
+ _811699,
+ /**
+ * Construction and Mining Labourers nfd
+ */
+ _821000,
+ /**
+ * Building and Plumbing Labourers nfd
+ */
+ _821100,
+ /**
+ * Builder's Labourer
+ */
+ _821111,
+ /**
+ * Drainage, Sewerage and Stormwater Labourer
+ */
+ _821112,
+ /**
+ * Earthmoving Labourer
+ */
+ _821113,
+ /**
+ * Plumber's Assistant
+ */
+ _821114,
+ /**
+ * Concreter
+ */
+ _821211,
+ /**
+ * Fencer
+ */
+ _821311,
+ /**
+ * Insulation and Home Improvement Installers nfd
+ */
+ _821400,
+ /**
+ * Building Insulation Installer
+ */
+ _821411,
+ /**
+ * Home Improvement Installer
+ */
+ _821412,
+ /**
+ * Paving and Surfacing Labourer
+ */
+ _821511,
+ /**
+ * Railway Track Worker
+ */
+ _821611,
+ /**
+ * Structural Steel Construction Workers nfd
+ */
+ _821700,
+ /**
+ * Construction Rigger
+ */
+ _821711,
+ /**
+ * Scaffolder
+ */
+ _821712,
+ /**
+ * Steel Fixer
+ */
+ _821713,
+ /**
+ * Structural Steel Erector
+ */
+ _821714,
+ /**
+ * Other Construction and Mining Labourers nfd
+ */
+ _821900,
+ /**
+ * Crane Chaser
+ */
+ _821911,
+ /**
+ * Driller's Assistant
+ */
+ _821912,
+ /**
+ * Lagger
+ */
+ _821913,
+ /**
+ * Mining Support Worker
+ */
+ _821914,
+ /**
+ * Surveyor's Assistant
+ */
+ _821915,
+ /**
+ * Factory Process Workers nfd
+ */
+ _830000,
+ /**
+ * Food Process Workers nfd
+ */
+ _831000,
+ /**
+ * Food and Drink Factory Workers nfd
+ */
+ _831100,
+ /**
+ * Baking Factory Worker
+ */
+ _831111,
+ /**
+ * Brewery Worker
+ */
+ _831112,
+ /**
+ * Confectionery Maker
+ */
+ _831113,
+ /**
+ * Dairy Products Maker
+ */
+ _831114,
+ /**
+ * Fruit and Vegetable Factory Worker
+ */
+ _831115,
+ /**
+ * Grain Mill Worker
+ */
+ _831116,
+ /**
+ * Sugar Mill Worker
+ */
+ _831117,
+ /**
+ * Winery Cellar Hand
+ */
+ _831118,
+ /**
+ * Food and Drink Factory Workers nec
+ */
+ _831199,
+ /**
+ * Meat Boners and Slicers, and Slaughterers nfd
+ */
+ _831200,
+ /**
+ * Meat Boner and Slicer
+ */
+ _831211,
+ /**
+ * Slaughterer
+ */
+ _831212,
+ /**
+ * Meat, Poultry and Seafood Process Workers nfd
+ */
+ _831300,
+ /**
+ * Meat Process Worker
+ */
+ _831311,
+ /**
+ * Poultry Process Worker
+ */
+ _831312,
+ /**
+ * Seafood Process Worker
+ */
+ _831313,
+ /**
+ * Packers and Product Assemblers nfd
+ */
+ _832000,
+ /**
+ * Packers nfd
+ */
+ _832100,
+ /**
+ * Chocolate Packer
+ */
+ _832111,
+ /**
+ * Container Filler
+ */
+ _832112,
+ /**
+ * Fruit and Vegetable Packer
+ */
+ _832113,
+ /**
+ * Meat Packer
+ */
+ _832114,
+ /**
+ * Seafood Packer
+ */
+ _832115,
+ /**
+ * Packers nec
+ */
+ _832199,
+ /**
+ * Product Assembler
+ */
+ _832211,
+ /**
+ * Miscellaneous Factory Process Workers nfd
+ */
+ _839000,
+ /**
+ * Metal Engineering Process Worker
+ */
+ _839111,
+ /**
+ * Plastics and Rubber Factory Workers nfd
+ */
+ _839200,
+ /**
+ * Plastics Factory Worker
+ */
+ _839211,
+ /**
+ * Rubber Factory Worker
+ */
+ _839212,
+ /**
+ * Product Quality Controllers nfd
+ */
+ _839300,
+ /**
+ * Product Examiner
+ */
+ _839311,
+ /**
+ * Product Grader
+ */
+ _839312,
+ /**
+ * Product Tester
+ */
+ _839313,
+ /**
+ * Timber and Wood Process Workers nfd
+ */
+ _839400,
+ /**
+ * Paper and Pulp Mill Worker
+ */
+ _839411,
+ /**
+ * Sawmill or Timber Yard Worker
+ */
+ _839412,
+ /**
+ * Wood and Wood Products Factory Worker
+ */
+ _839413,
+ /**
+ * Other Factory Process Workers nfd
+ */
+ _839900,
+ /**
+ * Cement and Concrete Plant Worker
+ */
+ _839911,
+ /**
+ * Chemical Plant Worker
+ */
+ _839912,
+ /**
+ * Clay Processing Factory Worker
+ */
+ _839913,
+ /**
+ * Fabric and Textile Factory Worker
+ */
+ _839914,
+ /**
+ * Footwear Factory Worker
+ */
+ _839915,
+ /**
+ * Glass Processing Worker
+ */
+ _839916,
+ /**
+ * Hide and Skin Processing Worker
+ */
+ _839917,
+ /**
+ * Factory Process Workers nec
+ */
+ _839999,
+ /**
+ * Farm, Forestry and Garden Workers nfd
+ */
+ _841000,
+ /**
+ * Aquaculture Worker
+ */
+ _841111,
+ /**
+ * Crop Farm Workers nfd
+ */
+ _841200,
+ /**
+ * Fruit or Nut Farm Worker
+ */
+ _841211,
+ /**
+ * Fruit or Nut Picker
+ */
+ _841212,
+ /**
+ * Grain, Oilseed or Pasture Farm Worker
+ */
+ _841213,
+ /**
+ * Vegetable Farm Worker
+ */
+ _841214,
+ /**
+ * Vegetable Picker
+ */
+ _841215,
+ /**
+ * Vineyard Worker
+ */
+ _841216,
+ /**
+ * Crop Farm Workers nec
+ */
+ _841299,
+ /**
+ * Forestry and Logging Workers nfd
+ */
+ _841300,
+ /**
+ * Forestry Worker
+ */
+ _841311,
+ /**
+ * Logging Assistant
+ */
+ _841312,
+ /**
+ * Tree Faller
+ */
+ _841313,
+ /**
+ * Garden and Nursery Labourers nfd
+ */
+ _841400,
+ /**
+ * Garden Labourer
+ */
+ _841411,
+ /**
+ * Horticultural Nursery Assistant
+ */
+ _841412,
+ /**
+ * Livestock Farm Workers nfd
+ */
+ _841500,
+ /**
+ * Beef Cattle Farm Worker
+ */
+ _841511,
+ /**
+ * Dairy Cattle Farm Worker
+ */
+ _841512,
+ /**
+ * Mixed Livestock Farm Worker
+ */
+ _841513,
+ /**
+ * Poultry Farm Worker
+ */
+ _841514,
+ /**
+ * Sheep Farm Worker
+ */
+ _841515,
+ /**
+ * Stablehand
+ */
+ _841516,
+ /**
+ * Wool Handler
+ */
+ _841517,
+ /**
+ * Livestock Farm Workers nec
+ */
+ _841599,
+ /**
+ * Mixed Crop and Livestock Farm Worker
+ */
+ _841611,
+ /**
+ * Other Farm, Forestry and Garden Workers nfd
+ */
+ _841900,
+ /**
+ * Hunter-Trapper
+ */
+ _841911,
+ /**
+ * Pest or Weed Controller
+ */
+ _841912,
+ /**
+ * Farm, Forestry and Garden Workers nec
+ */
+ _841999,
+ /**
+ * Food Preparation Assistants nfd
+ */
+ _851000,
+ /**
+ * Fast Food Cook
+ */
+ _851111,
+ /**
+ * Food Trades Assistants nfd
+ */
+ _851200,
+ /**
+ * Pastrycook's Assistant
+ */
+ _851211,
+ /**
+ * Food Trades Assistants nec
+ */
+ _851299,
+ /**
+ * Kitchenhand
+ */
+ _851311,
+ /**
+ * Other Labourers nfd
+ */
+ _890000,
+ /**
+ * Freight Handlers and Shelf Fillers nfd
+ */
+ _891000,
+ /**
+ * Freight and Furniture Handlers nfd
+ */
+ _891100,
+ /**
+ * Freight Handler (Rail or Road)
+ */
+ _891111,
+ /**
+ * Truck Driver's Offsider
+ */
+ _891112,
+ /**
+ * Waterside Worker
+ */
+ _891113,
+ /**
+ * Shelf Filler
+ */
+ _891211,
+ /**
+ * Miscellaneous Labourers nfd
+ */
+ _899000,
+ /**
+ * Caretaker
+ */
+ _899111,
+ /**
+ * Deck and Fishing Hands nfd
+ */
+ _899200,
+ /**
+ * Deck Hand
+ */
+ _899211,
+ /**
+ * Fishing Hand
+ */
+ _899212,
+ /**
+ * Handyperson
+ */
+ _899311,
+ /**
+ * Motor Vehicle Parts and Accessories Fitters nfd
+ */
+ _899400,
+ /**
+ * Motor Vehicle Parts and Accessories Fitter (General)
+ */
+ _899411,
+ /**
+ * Autoglazier
+ */
+ _899412,
+ /**
+ * Exhaust and Muffler Fitter
+ */
+ _899413,
+ /**
+ * Radiator Fitter
+ */
+ _899414,
+ /**
+ * Tyre Fitter
+ */
+ _899415,
+ /**
+ * Printing Assistants and Table Workers nfd
+ */
+ _899500,
+ /**
+ * Printer's Assistant
+ */
+ _899511,
+ /**
+ * Printing Table Worker
+ */
+ _899512,
+ /**
+ * Recycling or Rubbish Collector
+ */
+ _899611,
+ /**
+ * Vending Machine Attendant
+ */
+ _899711,
+ /**
+ * Other Miscellaneous Labourers nfd
+ */
+ _899900,
+ /**
+ * Bicycle Mechanic
+ */
+ _899911,
+ /**
+ * Car Park Attendant
+ */
+ _899912,
+ /**
+ * Crossing Supervisor
+ */
+ _899913,
+ /**
+ * Electrical or Telecommunications Trades Assistant
+ */
+ _899914,
+ /**
+ * Leaflet or Newspaper Deliverer
+ */
+ _899915,
+ /**
+ * Mechanic's Assistant
+ */
+ _899916,
+ /**
+ * Railways Assistant
+ */
+ _899917,
+ /**
+ * Sign Erector
+ */
+ _899918,
+ /**
+ * Ticket Collector or Usher
+ */
+ _899921,
+ /**
+ * Trolley Collector
+ */
+ _899922,
+ /**
+ * Labourers nec
+ */
+ _899999,
+ /**
+ * added to help the parsers
+ */
+ NULL;
+ public static AnzscoOccupations fromCode(String codeString) throws Exception {
+ if (codeString == null || "".equals(codeString))
+ return null;
+ if ("100000".equals(codeString))
+ return _100000;
+ if ("111000".equals(codeString))
+ return _111000;
+ if ("111111".equals(codeString))
+ return _111111;
+ if ("111200".equals(codeString))
+ return _111200;
+ if ("111211".equals(codeString))
+ return _111211;
+ if ("111212".equals(codeString))
+ return _111212;
+ if ("111300".equals(codeString))
+ return _111300;
+ if ("111311".equals(codeString))
+ return _111311;
+ if ("111312".equals(codeString))
+ return _111312;
+ if ("111399".equals(codeString))
+ return _111399;
+ if ("121000".equals(codeString))
+ return _121000;
+ if ("121111".equals(codeString))
+ return _121111;
+ if ("121200".equals(codeString))
+ return _121200;
+ if ("121211".equals(codeString))
+ return _121211;
+ if ("121212".equals(codeString))
+ return _121212;
+ if ("121213".equals(codeString))
+ return _121213;
+ if ("121214".equals(codeString))
+ return _121214;
+ if ("121215".equals(codeString))
+ return _121215;
+ if ("121216".equals(codeString))
+ return _121216;
+ if ("121217".equals(codeString))
+ return _121217;
+ if ("121218".equals(codeString))
+ return _121218;
+ if ("121221".equals(codeString))
+ return _121221;
+ if ("121299".equals(codeString))
+ return _121299;
+ if ("121300".equals(codeString))
+ return _121300;
+ if ("121311".equals(codeString))
+ return _121311;
+ if ("121312".equals(codeString))
+ return _121312;
+ if ("121313".equals(codeString))
+ return _121313;
+ if ("121314".equals(codeString))
+ return _121314;
+ if ("121315".equals(codeString))
+ return _121315;
+ if ("121316".equals(codeString))
+ return _121316;
+ if ("121317".equals(codeString))
+ return _121317;
+ if ("121318".equals(codeString))
+ return _121318;
+ if ("121321".equals(codeString))
+ return _121321;
+ if ("121322".equals(codeString))
+ return _121322;
+ if ("121399".equals(codeString))
+ return _121399;
+ if ("121411".equals(codeString))
+ return _121411;
+ if ("130000".equals(codeString))
+ return _130000;
+ if ("131100".equals(codeString))
+ return _131100;
+ if ("131111".equals(codeString))
+ return _131111;
+ if ("131112".equals(codeString))
+ return _131112;
+ if ("132000".equals(codeString))
+ return _132000;
+ if ("132111".equals(codeString))
+ return _132111;
+ if ("132211".equals(codeString))
+ return _132211;
+ if ("132311".equals(codeString))
+ return _132311;
+ if ("132411".equals(codeString))
+ return _132411;
+ if ("132511".equals(codeString))
+ return _132511;
+ if ("133000".equals(codeString))
+ return _133000;
+ if ("133100".equals(codeString))
+ return _133100;
+ if ("133111".equals(codeString))
+ return _133111;
+ if ("133112".equals(codeString))
+ return _133112;
+ if ("133211".equals(codeString))
+ return _133211;
+ if ("133300".equals(codeString))
+ return _133300;
+ if ("133311".equals(codeString))
+ return _133311;
+ if ("133312".equals(codeString))
+ return _133312;
+ if ("133411".equals(codeString))
+ return _133411;
+ if ("133500".equals(codeString))
+ return _133500;
+ if ("133511".equals(codeString))
+ return _133511;
+ if ("133512".equals(codeString))
+ return _133512;
+ if ("133513".equals(codeString))
+ return _133513;
+ if ("133611".equals(codeString))
+ return _133611;
+ if ("134000".equals(codeString))
+ return _134000;
+ if ("134111".equals(codeString))
+ return _134111;
+ if ("134200".equals(codeString))
+ return _134200;
+ if ("134211".equals(codeString))
+ return _134211;
+ if ("134212".equals(codeString))
+ return _134212;
+ if ("134213".equals(codeString))
+ return _134213;
+ if ("134214".equals(codeString))
+ return _134214;
+ if ("134299".equals(codeString))
+ return _134299;
+ if ("134311".equals(codeString))
+ return _134311;
+ if ("134400".equals(codeString))
+ return _134400;
+ if ("134411".equals(codeString))
+ return _134411;
+ if ("134412".equals(codeString))
+ return _134412;
+ if ("134499".equals(codeString))
+ return _134499;
+ if ("135100".equals(codeString))
+ return _135100;
+ if ("135111".equals(codeString))
+ return _135111;
+ if ("135112".equals(codeString))
+ return _135112;
+ if ("135199".equals(codeString))
+ return _135199;
+ if ("139000".equals(codeString))
+ return _139000;
+ if ("139100".equals(codeString))
+ return _139100;
+ if ("139111".equals(codeString))
+ return _139111;
+ if ("139112".equals(codeString))
+ return _139112;
+ if ("139113".equals(codeString))
+ return _139113;
+ if ("139211".equals(codeString))
+ return _139211;
+ if ("139900".equals(codeString))
+ return _139900;
+ if ("139911".equals(codeString))
+ return _139911;
+ if ("139912".equals(codeString))
+ return _139912;
+ if ("139913".equals(codeString))
+ return _139913;
+ if ("139914".equals(codeString))
+ return _139914;
+ if ("139915".equals(codeString))
+ return _139915;
+ if ("139999".equals(codeString))
+ return _139999;
+ if ("140000".equals(codeString))
+ return _140000;
+ if ("141000".equals(codeString))
+ return _141000;
+ if ("141111".equals(codeString))
+ return _141111;
+ if ("141211".equals(codeString))
+ return _141211;
+ if ("141311".equals(codeString))
+ return _141311;
+ if ("141411".equals(codeString))
+ return _141411;
+ if ("141900".equals(codeString))
+ return _141900;
+ if ("141911".equals(codeString))
+ return _141911;
+ if ("141999".equals(codeString))
+ return _141999;
+ if ("142100".equals(codeString))
+ return _142100;
+ if ("142111".equals(codeString))
+ return _142111;
+ if ("142112".equals(codeString))
+ return _142112;
+ if ("142113".equals(codeString))
+ return _142113;
+ if ("142114".equals(codeString))
+ return _142114;
+ if ("142115".equals(codeString))
+ return _142115;
+ if ("142116".equals(codeString))
+ return _142116;
+ if ("149000".equals(codeString))
+ return _149000;
+ if ("149100".equals(codeString))
+ return _149100;
+ if ("149111".equals(codeString))
+ return _149111;
+ if ("149112".equals(codeString))
+ return _149112;
+ if ("149113".equals(codeString))
+ return _149113;
+ if ("149200".equals(codeString))
+ return _149200;
+ if ("149211".equals(codeString))
+ return _149211;
+ if ("149212".equals(codeString))
+ return _149212;
+ if ("149311".equals(codeString))
+ return _149311;
+ if ("149400".equals(codeString))
+ return _149400;
+ if ("149411".equals(codeString))
+ return _149411;
+ if ("149412".equals(codeString))
+ return _149412;
+ if ("149413".equals(codeString))
+ return _149413;
+ if ("149900".equals(codeString))
+ return _149900;
+ if ("149911".equals(codeString))
+ return _149911;
+ if ("149912".equals(codeString))
+ return _149912;
+ if ("149913".equals(codeString))
+ return _149913;
+ if ("149914".equals(codeString))
+ return _149914;
+ if ("149999".equals(codeString))
+ return _149999;
+ if ("200000".equals(codeString))
+ return _200000;
+ if ("210000".equals(codeString))
+ return _210000;
+ if ("211000".equals(codeString))
+ return _211000;
+ if ("211100".equals(codeString))
+ return _211100;
+ if ("211111".equals(codeString))
+ return _211111;
+ if ("211112".equals(codeString))
+ return _211112;
+ if ("211113".equals(codeString))
+ return _211113;
+ if ("211199".equals(codeString))
+ return _211199;
+ if ("211200".equals(codeString))
+ return _211200;
+ if ("211211".equals(codeString))
+ return _211211;
+ if ("211212".equals(codeString))
+ return _211212;
+ if ("211213".equals(codeString))
+ return _211213;
+ if ("211214".equals(codeString))
+ return _211214;
+ if ("211299".equals(codeString))
+ return _211299;
+ if ("211311".equals(codeString))
+ return _211311;
+ if ("211400".equals(codeString))
+ return _211400;
+ if ("211411".equals(codeString))
+ return _211411;
+ if ("211412".equals(codeString))
+ return _211412;
+ if ("211413".equals(codeString))
+ return _211413;
+ if ("211499".equals(codeString))
+ return _211499;
+ if ("212000".equals(codeString))
+ return _212000;
+ if ("212100".equals(codeString))
+ return _212100;
+ if ("212111".equals(codeString))
+ return _212111;
+ if ("212112".equals(codeString))
+ return _212112;
+ if ("212113".equals(codeString))
+ return _212113;
+ if ("212114".equals(codeString))
+ return _212114;
+ if ("212200".equals(codeString))
+ return _212200;
+ if ("212211".equals(codeString))
+ return _212211;
+ if ("212212".equals(codeString))
+ return _212212;
+ if ("212300".equals(codeString))
+ return _212300;
+ if ("212311".equals(codeString))
+ return _212311;
+ if ("212312".equals(codeString))
+ return _212312;
+ if ("212313".equals(codeString))
+ return _212313;
+ if ("212314".equals(codeString))
+ return _212314;
+ if ("212315".equals(codeString))
+ return _212315;
+ if ("212316".equals(codeString))
+ return _212316;
+ if ("212317".equals(codeString))
+ return _212317;
+ if ("212318".equals(codeString))
+ return _212318;
+ if ("212399".equals(codeString))
+ return _212399;
+ if ("212400".equals(codeString))
+ return _212400;
+ if ("212411".equals(codeString))
+ return _212411;
+ if ("212412".equals(codeString))
+ return _212412;
+ if ("212413".equals(codeString))
+ return _212413;
+ if ("212414".equals(codeString))
+ return _212414;
+ if ("212415".equals(codeString))
+ return _212415;
+ if ("212416".equals(codeString))
+ return _212416;
+ if ("212499".equals(codeString))
+ return _212499;
+ if ("220000".equals(codeString))
+ return _220000;
+ if ("221000".equals(codeString))
+ return _221000;
+ if ("221100".equals(codeString))
+ return _221100;
+ if ("221111".equals(codeString))
+ return _221111;
+ if ("221112".equals(codeString))
+ return _221112;
+ if ("221113".equals(codeString))
+ return _221113;
+ if ("221200".equals(codeString))
+ return _221200;
+ if ("221211".equals(codeString))
+ return _221211;
+ if ("221212".equals(codeString))
+ return _221212;
+ if ("221213".equals(codeString))
+ return _221213;
+ if ("221214".equals(codeString))
+ return _221214;
+ if ("222000".equals(codeString))
+ return _222000;
+ if ("222100".equals(codeString))
+ return _222100;
+ if ("222111".equals(codeString))
+ return _222111;
+ if ("222112".equals(codeString))
+ return _222112;
+ if ("222113".equals(codeString))
+ return _222113;
+ if ("222199".equals(codeString))
+ return _222199;
+ if ("222200".equals(codeString))
+ return _222200;
+ if ("222211".equals(codeString))
+ return _222211;
+ if ("222212".equals(codeString))
+ return _222212;
+ if ("222213".equals(codeString))
+ return _222213;
+ if ("222299".equals(codeString))
+ return _222299;
+ if ("222300".equals(codeString))
+ return _222300;
+ if ("222311".equals(codeString))
+ return _222311;
+ if ("222312".equals(codeString))
+ return _222312;
+ if ("223000".equals(codeString))
+ return _223000;
+ if ("223100".equals(codeString))
+ return _223100;
+ if ("223111".equals(codeString))
+ return _223111;
+ if ("223112".equals(codeString))
+ return _223112;
+ if ("223113".equals(codeString))
+ return _223113;
+ if ("223211".equals(codeString))
+ return _223211;
+ if ("223311".equals(codeString))
+ return _223311;
+ if ("224000".equals(codeString))
+ return _224000;
+ if ("224100".equals(codeString))
+ return _224100;
+ if ("224111".equals(codeString))
+ return _224111;
+ if ("224112".equals(codeString))
+ return _224112;
+ if ("224113".equals(codeString))
+ return _224113;
+ if ("224200".equals(codeString))
+ return _224200;
+ if ("224211".equals(codeString))
+ return _224211;
+ if ("224212".equals(codeString))
+ return _224212;
+ if ("224213".equals(codeString))
+ return _224213;
+ if ("224214".equals(codeString))
+ return _224214;
+ if ("224311".equals(codeString))
+ return _224311;
+ if ("224400".equals(codeString))
+ return _224400;
+ if ("224411".equals(codeString))
+ return _224411;
+ if ("224412".equals(codeString))
+ return _224412;
+ if ("224500".equals(codeString))
+ return _224500;
+ if ("224511".equals(codeString))
+ return _224511;
+ if ("224512".equals(codeString))
+ return _224512;
+ if ("224611".equals(codeString))
+ return _224611;
+ if ("224700".equals(codeString))
+ return _224700;
+ if ("224711".equals(codeString))
+ return _224711;
+ if ("224712".equals(codeString))
+ return _224712;
+ if ("224900".equals(codeString))
+ return _224900;
+ if ("224911".equals(codeString))
+ return _224911;
+ if ("224912".equals(codeString))
+ return _224912;
+ if ("224913".equals(codeString))
+ return _224913;
+ if ("224914".equals(codeString))
+ return _224914;
+ if ("224999".equals(codeString))
+ return _224999;
+ if ("225000".equals(codeString))
+ return _225000;
+ if ("225100".equals(codeString))
+ return _225100;
+ if ("225111".equals(codeString))
+ return _225111;
+ if ("225112".equals(codeString))
+ return _225112;
+ if ("225113".equals(codeString))
+ return _225113;
+ if ("225200".equals(codeString))
+ return _225200;
+ if ("225211".equals(codeString))
+ return _225211;
+ if ("225212".equals(codeString))
+ return _225212;
+ if ("225213".equals(codeString))
+ return _225213;
+ if ("225311".equals(codeString))
+ return _225311;
+ if ("225400".equals(codeString))
+ return _225400;
+ if ("225411".equals(codeString))
+ return _225411;
+ if ("225412".equals(codeString))
+ return _225412;
+ if ("225499".equals(codeString))
+ return _225499;
+ if ("230000".equals(codeString))
+ return _230000;
+ if ("231000".equals(codeString))
+ return _231000;
+ if ("231100".equals(codeString))
+ return _231100;
+ if ("231111".equals(codeString))
+ return _231111;
+ if ("231112".equals(codeString))
+ return _231112;
+ if ("231113".equals(codeString))
+ return _231113;
+ if ("231114".equals(codeString))
+ return _231114;
+ if ("231199".equals(codeString))
+ return _231199;
+ if ("231200".equals(codeString))
+ return _231200;
+ if ("231211".equals(codeString))
+ return _231211;
+ if ("231212".equals(codeString))
+ return _231212;
+ if ("231213".equals(codeString))
+ return _231213;
+ if ("231214".equals(codeString))
+ return _231214;
+ if ("231215".equals(codeString))
+ return _231215;
+ if ("231299".equals(codeString))
+ return _231299;
+ if ("232000".equals(codeString))
+ return _232000;
+ if ("232100".equals(codeString))
+ return _232100;
+ if ("232111".equals(codeString))
+ return _232111;
+ if ("232112".equals(codeString))
+ return _232112;
+ if ("232200".equals(codeString))
+ return _232200;
+ if ("232211".equals(codeString))
+ return _232211;
+ if ("232212".equals(codeString))
+ return _232212;
+ if ("232300".equals(codeString))
+ return _232300;
+ if ("232311".equals(codeString))
+ return _232311;
+ if ("232312".equals(codeString))
+ return _232312;
+ if ("232313".equals(codeString))
+ return _232313;
+ if ("232400".equals(codeString))
+ return _232400;
+ if ("232411".equals(codeString))
+ return _232411;
+ if ("232412".equals(codeString))
+ return _232412;
+ if ("232413".equals(codeString))
+ return _232413;
+ if ("232414".equals(codeString))
+ return _232414;
+ if ("232511".equals(codeString))
+ return _232511;
+ if ("232611".equals(codeString))
+ return _232611;
+ if ("233000".equals(codeString))
+ return _233000;
+ if ("233100".equals(codeString))
+ return _233100;
+ if ("233111".equals(codeString))
+ return _233111;
+ if ("233112".equals(codeString))
+ return _233112;
+ if ("233200".equals(codeString))
+ return _233200;
+ if ("233211".equals(codeString))
+ return _233211;
+ if ("233212".equals(codeString))
+ return _233212;
+ if ("233213".equals(codeString))
+ return _233213;
+ if ("233214".equals(codeString))
+ return _233214;
+ if ("233215".equals(codeString))
+ return _233215;
+ if ("233311".equals(codeString))
+ return _233311;
+ if ("233411".equals(codeString))
+ return _233411;
+ if ("233500".equals(codeString))
+ return _233500;
+ if ("233511".equals(codeString))
+ return _233511;
+ if ("233512".equals(codeString))
+ return _233512;
+ if ("233513".equals(codeString))
+ return _233513;
+ if ("233600".equals(codeString))
+ return _233600;
+ if ("233611".equals(codeString))
+ return _233611;
+ if ("233612".equals(codeString))
+ return _233612;
+ if ("233900".equals(codeString))
+ return _233900;
+ if ("233911".equals(codeString))
+ return _233911;
+ if ("233912".equals(codeString))
+ return _233912;
+ if ("233913".equals(codeString))
+ return _233913;
+ if ("233914".equals(codeString))
+ return _233914;
+ if ("233915".equals(codeString))
+ return _233915;
+ if ("233916".equals(codeString))
+ return _233916;
+ if ("233999".equals(codeString))
+ return _233999;
+ if ("234000".equals(codeString))
+ return _234000;
+ if ("234100".equals(codeString))
+ return _234100;
+ if ("234111".equals(codeString))
+ return _234111;
+ if ("234112".equals(codeString))
+ return _234112;
+ if ("234113".equals(codeString))
+ return _234113;
+ if ("234200".equals(codeString))
+ return _234200;
+ if ("234211".equals(codeString))
+ return _234211;
+ if ("234212".equals(codeString))
+ return _234212;
+ if ("234213".equals(codeString))
+ return _234213;
+ if ("234300".equals(codeString))
+ return _234300;
+ if ("234311".equals(codeString))
+ return _234311;
+ if ("234312".equals(codeString))
+ return _234312;
+ if ("234313".equals(codeString))
+ return _234313;
+ if ("234314".equals(codeString))
+ return _234314;
+ if ("234399".equals(codeString))
+ return _234399;
+ if ("234400".equals(codeString))
+ return _234400;
+ if ("234411".equals(codeString))
+ return _234411;
+ if ("234412".equals(codeString))
+ return _234412;
+ if ("234500".equals(codeString))
+ return _234500;
+ if ("234511".equals(codeString))
+ return _234511;
+ if ("234512".equals(codeString))
+ return _234512;
+ if ("234513".equals(codeString))
+ return _234513;
+ if ("234514".equals(codeString))
+ return _234514;
+ if ("234515".equals(codeString))
+ return _234515;
+ if ("234516".equals(codeString))
+ return _234516;
+ if ("234517".equals(codeString))
+ return _234517;
+ if ("234518".equals(codeString))
+ return _234518;
+ if ("234599".equals(codeString))
+ return _234599;
+ if ("234611".equals(codeString))
+ return _234611;
+ if ("234711".equals(codeString))
+ return _234711;
+ if ("234900".equals(codeString))
+ return _234900;
+ if ("234911".equals(codeString))
+ return _234911;
+ if ("234912".equals(codeString))
+ return _234912;
+ if ("234913".equals(codeString))
+ return _234913;
+ if ("234914".equals(codeString))
+ return _234914;
+ if ("234999".equals(codeString))
+ return _234999;
+ if ("240000".equals(codeString))
+ return _240000;
+ if ("241000".equals(codeString))
+ return _241000;
+ if ("241111".equals(codeString))
+ return _241111;
+ if ("241213".equals(codeString))
+ return _241213;
+ if ("241311".equals(codeString))
+ return _241311;
+ if ("241411".equals(codeString))
+ return _241411;
+ if ("241500".equals(codeString))
+ return _241500;
+ if ("241511".equals(codeString))
+ return _241511;
+ if ("241512".equals(codeString))
+ return _241512;
+ if ("241513".equals(codeString))
+ return _241513;
+ if ("241599".equals(codeString))
+ return _241599;
+ if ("242000".equals(codeString))
+ return _242000;
+ if ("242100".equals(codeString))
+ return _242100;
+ if ("242111".equals(codeString))
+ return _242111;
+ if ("242112".equals(codeString))
+ return _242112;
+ if ("242211".equals(codeString))
+ return _242211;
+ if ("249000".equals(codeString))
+ return _249000;
+ if ("249100".equals(codeString))
+ return _249100;
+ if ("249111".equals(codeString))
+ return _249111;
+ if ("249112".equals(codeString))
+ return _249112;
+ if ("249200".equals(codeString))
+ return _249200;
+ if ("249211".equals(codeString))
+ return _249211;
+ if ("249212".equals(codeString))
+ return _249212;
+ if ("249213".equals(codeString))
+ return _249213;
+ if ("249214".equals(codeString))
+ return _249214;
+ if ("249299".equals(codeString))
+ return _249299;
+ if ("249311".equals(codeString))
+ return _249311;
+ if ("250000".equals(codeString))
+ return _250000;
+ if ("251000".equals(codeString))
+ return _251000;
+ if ("251111".equals(codeString))
+ return _251111;
+ if ("251200".equals(codeString))
+ return _251200;
+ if ("251211".equals(codeString))
+ return _251211;
+ if ("251212".equals(codeString))
+ return _251212;
+ if ("251213".equals(codeString))
+ return _251213;
+ if ("251214".equals(codeString))
+ return _251214;
+ if ("251300".equals(codeString))
+ return _251300;
+ if ("251311".equals(codeString))
+ return _251311;
+ if ("251312".equals(codeString))
+ return _251312;
+ if ("251400".equals(codeString))
+ return _251400;
+ if ("251411".equals(codeString))
+ return _251411;
+ if ("251412".equals(codeString))
+ return _251412;
+ if ("251500".equals(codeString))
+ return _251500;
+ if ("251511".equals(codeString))
+ return _251511;
+ if ("251512".equals(codeString))
+ return _251512;
+ if ("251513".equals(codeString))
+ return _251513;
+ if ("251900".equals(codeString))
+ return _251900;
+ if ("251911".equals(codeString))
+ return _251911;
+ if ("251912".equals(codeString))
+ return _251912;
+ if ("251999".equals(codeString))
+ return _251999;
+ if ("252000".equals(codeString))
+ return _252000;
+ if ("252100".equals(codeString))
+ return _252100;
+ if ("252111".equals(codeString))
+ return _252111;
+ if ("252112".equals(codeString))
+ return _252112;
+ if ("252200".equals(codeString))
+ return _252200;
+ if ("252211".equals(codeString))
+ return _252211;
+ if ("252212".equals(codeString))
+ return _252212;
+ if ("252213".equals(codeString))
+ return _252213;
+ if ("252214".equals(codeString))
+ return _252214;
+ if ("252299".equals(codeString))
+ return _252299;
+ if ("252300".equals(codeString))
+ return _252300;
+ if ("252311".equals(codeString))
+ return _252311;
+ if ("252312".equals(codeString))
+ return _252312;
+ if ("252411".equals(codeString))
+ return _252411;
+ if ("252511".equals(codeString))
+ return _252511;
+ if ("252611".equals(codeString))
+ return _252611;
+ if ("252700".equals(codeString))
+ return _252700;
+ if ("252711".equals(codeString))
+ return _252711;
+ if ("252712".equals(codeString))
+ return _252712;
+ if ("253000".equals(codeString))
+ return _253000;
+ if ("253100".equals(codeString))
+ return _253100;
+ if ("253111".equals(codeString))
+ return _253111;
+ if ("253112".equals(codeString))
+ return _253112;
+ if ("253211".equals(codeString))
+ return _253211;
+ if ("253300".equals(codeString))
+ return _253300;
+ if ("253311".equals(codeString))
+ return _253311;
+ if ("253312".equals(codeString))
+ return _253312;
+ if ("253313".equals(codeString))
+ return _253313;
+ if ("253314".equals(codeString))
+ return _253314;
+ if ("253315".equals(codeString))
+ return _253315;
+ if ("253316".equals(codeString))
+ return _253316;
+ if ("253317".equals(codeString))
+ return _253317;
+ if ("253318".equals(codeString))
+ return _253318;
+ if ("253321".equals(codeString))
+ return _253321;
+ if ("253322".equals(codeString))
+ return _253322;
+ if ("253323".equals(codeString))
+ return _253323;
+ if ("253324".equals(codeString))
+ return _253324;
+ if ("253399".equals(codeString))
+ return _253399;
+ if ("253411".equals(codeString))
+ return _253411;
+ if ("253500".equals(codeString))
+ return _253500;
+ if ("253511".equals(codeString))
+ return _253511;
+ if ("253512".equals(codeString))
+ return _253512;
+ if ("253513".equals(codeString))
+ return _253513;
+ if ("253514".equals(codeString))
+ return _253514;
+ if ("253515".equals(codeString))
+ return _253515;
+ if ("253516".equals(codeString))
+ return _253516;
+ if ("253517".equals(codeString))
+ return _253517;
+ if ("253518".equals(codeString))
+ return _253518;
+ if ("253521".equals(codeString))
+ return _253521;
+ if ("253900".equals(codeString))
+ return _253900;
+ if ("253911".equals(codeString))
+ return _253911;
+ if ("253912".equals(codeString))
+ return _253912;
+ if ("253913".equals(codeString))
+ return _253913;
+ if ("253914".equals(codeString))
+ return _253914;
+ if ("253915".equals(codeString))
+ return _253915;
+ if ("253916".equals(codeString))
+ return _253916;
+ if ("253999".equals(codeString))
+ return _253999;
+ if ("254000".equals(codeString))
+ return _254000;
+ if ("254111".equals(codeString))
+ return _254111;
+ if ("254200".equals(codeString))
+ return _254200;
+ if ("254211".equals(codeString))
+ return _254211;
+ if ("254212".equals(codeString))
+ return _254212;
+ if ("254311".equals(codeString))
+ return _254311;
+ if ("254400".equals(codeString))
+ return _254400;
+ if ("254411".equals(codeString))
+ return _254411;
+ if ("254412".equals(codeString))
+ return _254412;
+ if ("254413".equals(codeString))
+ return _254413;
+ if ("254414".equals(codeString))
+ return _254414;
+ if ("254415".equals(codeString))
+ return _254415;
+ if ("254416".equals(codeString))
+ return _254416;
+ if ("254417".equals(codeString))
+ return _254417;
+ if ("254418".equals(codeString))
+ return _254418;
+ if ("254421".equals(codeString))
+ return _254421;
+ if ("254422".equals(codeString))
+ return _254422;
+ if ("254423".equals(codeString))
+ return _254423;
+ if ("254424".equals(codeString))
+ return _254424;
+ if ("254499".equals(codeString))
+ return _254499;
+ if ("260000".equals(codeString))
+ return _260000;
+ if ("261000".equals(codeString))
+ return _261000;
+ if ("261100".equals(codeString))
+ return _261100;
+ if ("261111".equals(codeString))
+ return _261111;
+ if ("261112".equals(codeString))
+ return _261112;
+ if ("261200".equals(codeString))
+ return _261200;
+ if ("261211".equals(codeString))
+ return _261211;
+ if ("261212".equals(codeString))
+ return _261212;
+ if ("261300".equals(codeString))
+ return _261300;
+ if ("261311".equals(codeString))
+ return _261311;
+ if ("261312".equals(codeString))
+ return _261312;
+ if ("261313".equals(codeString))
+ return _261313;
+ if ("261399".equals(codeString))
+ return _261399;
+ if ("262100".equals(codeString))
+ return _262100;
+ if ("262111".equals(codeString))
+ return _262111;
+ if ("262112".equals(codeString))
+ return _262112;
+ if ("262113".equals(codeString))
+ return _262113;
+ if ("263000".equals(codeString))
+ return _263000;
+ if ("263100".equals(codeString))
+ return _263100;
+ if ("263111".equals(codeString))
+ return _263111;
+ if ("263112".equals(codeString))
+ return _263112;
+ if ("263113".equals(codeString))
+ return _263113;
+ if ("263200".equals(codeString))
+ return _263200;
+ if ("263211".equals(codeString))
+ return _263211;
+ if ("263212".equals(codeString))
+ return _263212;
+ if ("263213".equals(codeString))
+ return _263213;
+ if ("263299".equals(codeString))
+ return _263299;
+ if ("263300".equals(codeString))
+ return _263300;
+ if ("263311".equals(codeString))
+ return _263311;
+ if ("263312".equals(codeString))
+ return _263312;
+ if ("270000".equals(codeString))
+ return _270000;
+ if ("271000".equals(codeString))
+ return _271000;
+ if ("271111".equals(codeString))
+ return _271111;
+ if ("271200".equals(codeString))
+ return _271200;
+ if ("271211".equals(codeString))
+ return _271211;
+ if ("271212".equals(codeString))
+ return _271212;
+ if ("271213".equals(codeString))
+ return _271213;
+ if ("271299".equals(codeString))
+ return _271299;
+ if ("271311".equals(codeString))
+ return _271311;
+ if ("272000".equals(codeString))
+ return _272000;
+ if ("272100".equals(codeString))
+ return _272100;
+ if ("272111".equals(codeString))
+ return _272111;
+ if ("272112".equals(codeString))
+ return _272112;
+ if ("272113".equals(codeString))
+ return _272113;
+ if ("272114".equals(codeString))
+ return _272114;
+ if ("272115".equals(codeString))
+ return _272115;
+ if ("272199".equals(codeString))
+ return _272199;
+ if ("272211".equals(codeString))
+ return _272211;
+ if ("272300".equals(codeString))
+ return _272300;
+ if ("272311".equals(codeString))
+ return _272311;
+ if ("272312".equals(codeString))
+ return _272312;
+ if ("272313".equals(codeString))
+ return _272313;
+ if ("272314".equals(codeString))
+ return _272314;
+ if ("272399".equals(codeString))
+ return _272399;
+ if ("272400".equals(codeString))
+ return _272400;
+ if ("272411".equals(codeString))
+ return _272411;
+ if ("272412".equals(codeString))
+ return _272412;
+ if ("272413".equals(codeString))
+ return _272413;
+ if ("272499".equals(codeString))
+ return _272499;
+ if ("272511".equals(codeString))
+ return _272511;
+ if ("272600".equals(codeString))
+ return _272600;
+ if ("272611".equals(codeString))
+ return _272611;
+ if ("272612".equals(codeString))
+ return _272612;
+ if ("272613".equals(codeString))
+ return _272613;
+ if ("300000".equals(codeString))
+ return _300000;
+ if ("310000".equals(codeString))
+ return _310000;
+ if ("311000".equals(codeString))
+ return _311000;
+ if ("311111".equals(codeString))
+ return _311111;
+ if ("311200".equals(codeString))
+ return _311200;
+ if ("311211".equals(codeString))
+ return _311211;
+ if ("311212".equals(codeString))
+ return _311212;
+ if ("311213".equals(codeString))
+ return _311213;
+ if ("311214".equals(codeString))
+ return _311214;
+ if ("311215".equals(codeString))
+ return _311215;
+ if ("311299".equals(codeString))
+ return _311299;
+ if ("311300".equals(codeString))
+ return _311300;
+ if ("311311".equals(codeString))
+ return _311311;
+ if ("311312".equals(codeString))
+ return _311312;
+ if ("311313".equals(codeString))
+ return _311313;
+ if ("311399".equals(codeString))
+ return _311399;
+ if ("311400".equals(codeString))
+ return _311400;
+ if ("311411".equals(codeString))
+ return _311411;
+ if ("311412".equals(codeString))
+ return _311412;
+ if ("311413".equals(codeString))
+ return _311413;
+ if ("311414".equals(codeString))
+ return _311414;
+ if ("311499".equals(codeString))
+ return _311499;
+ if ("312000".equals(codeString))
+ return _312000;
+ if ("312100".equals(codeString))
+ return _312100;
+ if ("312111".equals(codeString))
+ return _312111;
+ if ("312112".equals(codeString))
+ return _312112;
+ if ("312113".equals(codeString))
+ return _312113;
+ if ("312114".equals(codeString))
+ return _312114;
+ if ("312115".equals(codeString))
+ return _312115;
+ if ("312116".equals(codeString))
+ return _312116;
+ if ("312200".equals(codeString))
+ return _312200;
+ if ("312211".equals(codeString))
+ return _312211;
+ if ("312212".equals(codeString))
+ return _312212;
+ if ("312300".equals(codeString))
+ return _312300;
+ if ("312311".equals(codeString))
+ return _312311;
+ if ("312312".equals(codeString))
+ return _312312;
+ if ("312400".equals(codeString))
+ return _312400;
+ if ("312411".equals(codeString))
+ return _312411;
+ if ("312412".equals(codeString))
+ return _312412;
+ if ("312500".equals(codeString))
+ return _312500;
+ if ("312511".equals(codeString))
+ return _312511;
+ if ("312512".equals(codeString))
+ return _312512;
+ if ("312611".equals(codeString))
+ return _312611;
+ if ("312900".equals(codeString))
+ return _312900;
+ if ("312911".equals(codeString))
+ return _312911;
+ if ("312912".equals(codeString))
+ return _312912;
+ if ("312913".equals(codeString))
+ return _312913;
+ if ("312999".equals(codeString))
+ return _312999;
+ if ("313000".equals(codeString))
+ return _313000;
+ if ("313100".equals(codeString))
+ return _313100;
+ if ("313111".equals(codeString))
+ return _313111;
+ if ("313112".equals(codeString))
+ return _313112;
+ if ("313113".equals(codeString))
+ return _313113;
+ if ("313199".equals(codeString))
+ return _313199;
+ if ("313200".equals(codeString))
+ return _313200;
+ if ("313211".equals(codeString))
+ return _313211;
+ if ("313212".equals(codeString))
+ return _313212;
+ if ("313213".equals(codeString))
+ return _313213;
+ if ("313214".equals(codeString))
+ return _313214;
+ if ("320000".equals(codeString))
+ return _320000;
+ if ("321000".equals(codeString))
+ return _321000;
+ if ("321111".equals(codeString))
+ return _321111;
+ if ("321200".equals(codeString))
+ return _321200;
+ if ("321211".equals(codeString))
+ return _321211;
+ if ("321212".equals(codeString))
+ return _321212;
+ if ("321213".equals(codeString))
+ return _321213;
+ if ("321214".equals(codeString))
+ return _321214;
+ if ("322000".equals(codeString))
+ return _322000;
+ if ("322100".equals(codeString))
+ return _322100;
+ if ("322111".equals(codeString))
+ return _322111;
+ if ("322112".equals(codeString))
+ return _322112;
+ if ("322113".equals(codeString))
+ return _322113;
+ if ("322114".equals(codeString))
+ return _322114;
+ if ("322115".equals(codeString))
+ return _322115;
+ if ("322211".equals(codeString))
+ return _322211;
+ if ("322300".equals(codeString))
+ return _322300;
+ if ("322311".equals(codeString))
+ return _322311;
+ if ("322312".equals(codeString))
+ return _322312;
+ if ("322313".equals(codeString))
+ return _322313;
+ if ("323000".equals(codeString))
+ return _323000;
+ if ("323100".equals(codeString))
+ return _323100;
+ if ("323111".equals(codeString))
+ return _323111;
+ if ("323112".equals(codeString))
+ return _323112;
+ if ("323113".equals(codeString))
+ return _323113;
+ if ("323200".equals(codeString))
+ return _323200;
+ if ("323211".equals(codeString))
+ return _323211;
+ if ("323212".equals(codeString))
+ return _323212;
+ if ("323213".equals(codeString))
+ return _323213;
+ if ("323214".equals(codeString))
+ return _323214;
+ if ("323215".equals(codeString))
+ return _323215;
+ if ("323299".equals(codeString))
+ return _323299;
+ if ("323300".equals(codeString))
+ return _323300;
+ if ("323311".equals(codeString))
+ return _323311;
+ if ("323312".equals(codeString))
+ return _323312;
+ if ("323313".equals(codeString))
+ return _323313;
+ if ("323314".equals(codeString))
+ return _323314;
+ if ("323315".equals(codeString))
+ return _323315;
+ if ("323316".equals(codeString))
+ return _323316;
+ if ("323400".equals(codeString))
+ return _323400;
+ if ("323411".equals(codeString))
+ return _323411;
+ if ("323412".equals(codeString))
+ return _323412;
+ if ("324000".equals(codeString))
+ return _324000;
+ if ("324111".equals(codeString))
+ return _324111;
+ if ("324200".equals(codeString))
+ return _324200;
+ if ("324211".equals(codeString))
+ return _324211;
+ if ("324212".equals(codeString))
+ return _324212;
+ if ("324311".equals(codeString))
+ return _324311;
+ if ("330000".equals(codeString))
+ return _330000;
+ if ("331000".equals(codeString))
+ return _331000;
+ if ("331100".equals(codeString))
+ return _331100;
+ if ("331111".equals(codeString))
+ return _331111;
+ if ("331112".equals(codeString))
+ return _331112;
+ if ("331211".equals(codeString))
+ return _331211;
+ if ("331212".equals(codeString))
+ return _331212;
+ if ("331213".equals(codeString))
+ return _331213;
+ if ("332000".equals(codeString))
+ return _332000;
+ if ("332111".equals(codeString))
+ return _332111;
+ if ("332211".equals(codeString))
+ return _332211;
+ if ("333000".equals(codeString))
+ return _333000;
+ if ("333111".equals(codeString))
+ return _333111;
+ if ("333200".equals(codeString))
+ return _333200;
+ if ("333211".equals(codeString))
+ return _333211;
+ if ("333212".equals(codeString))
+ return _333212;
+ if ("333311".equals(codeString))
+ return _333311;
+ if ("333411".equals(codeString))
+ return _333411;
+ if ("334100".equals(codeString))
+ return _334100;
+ if ("334111".equals(codeString))
+ return _334111;
+ if ("334112".equals(codeString))
+ return _334112;
+ if ("334113".equals(codeString))
+ return _334113;
+ if ("334114".equals(codeString))
+ return _334114;
+ if ("334115".equals(codeString))
+ return _334115;
+ if ("340000".equals(codeString))
+ return _340000;
+ if ("341100".equals(codeString))
+ return _341100;
+ if ("341111".equals(codeString))
+ return _341111;
+ if ("341112".equals(codeString))
+ return _341112;
+ if ("341113".equals(codeString))
+ return _341113;
+ if ("342000".equals(codeString))
+ return _342000;
+ if ("342111".equals(codeString))
+ return _342111;
+ if ("342200".equals(codeString))
+ return _342200;
+ if ("342211".equals(codeString))
+ return _342211;
+ if ("342212".equals(codeString))
+ return _342212;
+ if ("342300".equals(codeString))
+ return _342300;
+ if ("342311".equals(codeString))
+ return _342311;
+ if ("342312".equals(codeString))
+ return _342312;
+ if ("342313".equals(codeString))
+ return _342313;
+ if ("342314".equals(codeString))
+ return _342314;
+ if ("342315".equals(codeString))
+ return _342315;
+ if ("342400".equals(codeString))
+ return _342400;
+ if ("342411".equals(codeString))
+ return _342411;
+ if ("342412".equals(codeString))
+ return _342412;
+ if ("342413".equals(codeString))
+ return _342413;
+ if ("342414".equals(codeString))
+ return _342414;
+ if ("351000".equals(codeString))
+ return _351000;
+ if ("351100".equals(codeString))
+ return _351100;
+ if ("351111".equals(codeString))
+ return _351111;
+ if ("351112".equals(codeString))
+ return _351112;
+ if ("351211".equals(codeString))
+ return _351211;
+ if ("351311".equals(codeString))
+ return _351311;
+ if ("351411".equals(codeString))
+ return _351411;
+ if ("360000".equals(codeString))
+ return _360000;
+ if ("361000".equals(codeString))
+ return _361000;
+ if ("361100".equals(codeString))
+ return _361100;
+ if ("361111".equals(codeString))
+ return _361111;
+ if ("361112".equals(codeString))
+ return _361112;
+ if ("361113".equals(codeString))
+ return _361113;
+ if ("361114".equals(codeString))
+ return _361114;
+ if ("361199".equals(codeString))
+ return _361199;
+ if ("361211".equals(codeString))
+ return _361211;
+ if ("361311".equals(codeString))
+ return _361311;
+ if ("362000".equals(codeString))
+ return _362000;
+ if ("362111".equals(codeString))
+ return _362111;
+ if ("362200".equals(codeString))
+ return _362200;
+ if ("362211".equals(codeString))
+ return _362211;
+ if ("362212".equals(codeString))
+ return _362212;
+ if ("362213".equals(codeString))
+ return _362213;
+ if ("362311".equals(codeString))
+ return _362311;
+ if ("362411".equals(codeString))
+ return _362411;
+ if ("390000".equals(codeString))
+ return _390000;
+ if ("391111".equals(codeString))
+ return _391111;
+ if ("392000".equals(codeString))
+ return _392000;
+ if ("392100".equals(codeString))
+ return _392100;
+ if ("392111".equals(codeString))
+ return _392111;
+ if ("392112".equals(codeString))
+ return _392112;
+ if ("392211".equals(codeString))
+ return _392211;
+ if ("392300".equals(codeString))
+ return _392300;
+ if ("392311".equals(codeString))
+ return _392311;
+ if ("392312".equals(codeString))
+ return _392312;
+ if ("393000".equals(codeString))
+ return _393000;
+ if ("393100".equals(codeString))
+ return _393100;
+ if ("393111".equals(codeString))
+ return _393111;
+ if ("393112".equals(codeString))
+ return _393112;
+ if ("393113".equals(codeString))
+ return _393113;
+ if ("393114".equals(codeString))
+ return _393114;
+ if ("393200".equals(codeString))
+ return _393200;
+ if ("393211".equals(codeString))
+ return _393211;
+ if ("393212".equals(codeString))
+ return _393212;
+ if ("393213".equals(codeString))
+ return _393213;
+ if ("393299".equals(codeString))
+ return _393299;
+ if ("393311".equals(codeString))
+ return _393311;
+ if ("394000".equals(codeString))
+ return _394000;
+ if ("394111".equals(codeString))
+ return _394111;
+ if ("394200".equals(codeString))
+ return _394200;
+ if ("394211".equals(codeString))
+ return _394211;
+ if ("394212".equals(codeString))
+ return _394212;
+ if ("394213".equals(codeString))
+ return _394213;
+ if ("394214".equals(codeString))
+ return _394214;
+ if ("394299".equals(codeString))
+ return _394299;
+ if ("399000".equals(codeString))
+ return _399000;
+ if ("399100".equals(codeString))
+ return _399100;
+ if ("399111".equals(codeString))
+ return _399111;
+ if ("399112".equals(codeString))
+ return _399112;
+ if ("399200".equals(codeString))
+ return _399200;
+ if ("399211".equals(codeString))
+ return _399211;
+ if ("399212".equals(codeString))
+ return _399212;
+ if ("399213".equals(codeString))
+ return _399213;
+ if ("399300".equals(codeString))
+ return _399300;
+ if ("399311".equals(codeString))
+ return _399311;
+ if ("399312".equals(codeString))
+ return _399312;
+ if ("399411".equals(codeString))
+ return _399411;
+ if ("399500".equals(codeString))
+ return _399500;
+ if ("399511".equals(codeString))
+ return _399511;
+ if ("399512".equals(codeString))
+ return _399512;
+ if ("399513".equals(codeString))
+ return _399513;
+ if ("399514".equals(codeString))
+ return _399514;
+ if ("399515".equals(codeString))
+ return _399515;
+ if ("399516".equals(codeString))
+ return _399516;
+ if ("399517".equals(codeString))
+ return _399517;
+ if ("399599".equals(codeString))
+ return _399599;
+ if ("399611".equals(codeString))
+ return _399611;
+ if ("399900".equals(codeString))
+ return _399900;
+ if ("399911".equals(codeString))
+ return _399911;
+ if ("399912".equals(codeString))
+ return _399912;
+ if ("399913".equals(codeString))
+ return _399913;
+ if ("399914".equals(codeString))
+ return _399914;
+ if ("399915".equals(codeString))
+ return _399915;
+ if ("399916".equals(codeString))
+ return _399916;
+ if ("399917".equals(codeString))
+ return _399917;
+ if ("399999".equals(codeString))
+ return _399999;
+ if ("400000".equals(codeString))
+ return _400000;
+ if ("411000".equals(codeString))
+ return _411000;
+ if ("411100".equals(codeString))
+ return _411100;
+ if ("411111".equals(codeString))
+ return _411111;
+ if ("411112".equals(codeString))
+ return _411112;
+ if ("411200".equals(codeString))
+ return _411200;
+ if ("411211".equals(codeString))
+ return _411211;
+ if ("411212".equals(codeString))
+ return _411212;
+ if ("411213".equals(codeString))
+ return _411213;
+ if ("411214".equals(codeString))
+ return _411214;
+ if ("411311".equals(codeString))
+ return _411311;
+ if ("411400".equals(codeString))
+ return _411400;
+ if ("411411".equals(codeString))
+ return _411411;
+ if ("411412".equals(codeString))
+ return _411412;
+ if ("411511".equals(codeString))
+ return _411511;
+ if ("411611".equals(codeString))
+ return _411611;
+ if ("411700".equals(codeString))
+ return _411700;
+ if ("411711".equals(codeString))
+ return _411711;
+ if ("411712".equals(codeString))
+ return _411712;
+ if ("411713".equals(codeString))
+ return _411713;
+ if ("411714".equals(codeString))
+ return _411714;
+ if ("411715".equals(codeString))
+ return _411715;
+ if ("411716".equals(codeString))
+ return _411716;
+ if ("420000".equals(codeString))
+ return _420000;
+ if ("421100".equals(codeString))
+ return _421100;
+ if ("421111".equals(codeString))
+ return _421111;
+ if ("421112".equals(codeString))
+ return _421112;
+ if ("421113".equals(codeString))
+ return _421113;
+ if ("421114".equals(codeString))
+ return _421114;
+ if ("422100".equals(codeString))
+ return _422100;
+ if ("422111".equals(codeString))
+ return _422111;
+ if ("422112".equals(codeString))
+ return _422112;
+ if ("422115".equals(codeString))
+ return _422115;
+ if ("422116".equals(codeString))
+ return _422116;
+ if ("423000".equals(codeString))
+ return _423000;
+ if ("423111".equals(codeString))
+ return _423111;
+ if ("423211".equals(codeString))
+ return _423211;
+ if ("423300".equals(codeString))
+ return _423300;
+ if ("423311".equals(codeString))
+ return _423311;
+ if ("423312".equals(codeString))
+ return _423312;
+ if ("423313".equals(codeString))
+ return _423313;
+ if ("423314".equals(codeString))
+ return _423314;
+ if ("423400".equals(codeString))
+ return _423400;
+ if ("423411".equals(codeString))
+ return _423411;
+ if ("423412".equals(codeString))
+ return _423412;
+ if ("423413".equals(codeString))
+ return _423413;
+ if ("431000".equals(codeString))
+ return _431000;
+ if ("431100".equals(codeString))
+ return _431100;
+ if ("431111".equals(codeString))
+ return _431111;
+ if ("431112".equals(codeString))
+ return _431112;
+ if ("431211".equals(codeString))
+ return _431211;
+ if ("431311".equals(codeString))
+ return _431311;
+ if ("431411".equals(codeString))
+ return _431411;
+ if ("431511".equals(codeString))
+ return _431511;
+ if ("431900".equals(codeString))
+ return _431900;
+ if ("431911".equals(codeString))
+ return _431911;
+ if ("431912".equals(codeString))
+ return _431912;
+ if ("431999".equals(codeString))
+ return _431999;
+ if ("440000".equals(codeString))
+ return _440000;
+ if ("441000".equals(codeString))
+ return _441000;
+ if ("441111".equals(codeString))
+ return _441111;
+ if ("441200".equals(codeString))
+ return _441200;
+ if ("441211".equals(codeString))
+ return _441211;
+ if ("441212".equals(codeString))
+ return _441212;
+ if ("441300".equals(codeString))
+ return _441300;
+ if ("441311".equals(codeString))
+ return _441311;
+ if ("441312".equals(codeString))
+ return _441312;
+ if ("442000".equals(codeString))
+ return _442000;
+ if ("442111".equals(codeString))
+ return _442111;
+ if ("442200".equals(codeString))
+ return _442200;
+ if ("442211".equals(codeString))
+ return _442211;
+ if ("442212".equals(codeString))
+ return _442212;
+ if ("442213".equals(codeString))
+ return _442213;
+ if ("442214".equals(codeString))
+ return _442214;
+ if ("442215".equals(codeString))
+ return _442215;
+ if ("442216".equals(codeString))
+ return _442216;
+ if ("442217".equals(codeString))
+ return _442217;
+ if ("442299".equals(codeString))
+ return _442299;
+ if ("450000".equals(codeString))
+ return _450000;
+ if ("451000".equals(codeString))
+ return _451000;
+ if ("451111".equals(codeString))
+ return _451111;
+ if ("451211".equals(codeString))
+ return _451211;
+ if ("451300".equals(codeString))
+ return _451300;
+ if ("451311".equals(codeString))
+ return _451311;
+ if ("451399".equals(codeString))
+ return _451399;
+ if ("451400".equals(codeString))
+ return _451400;
+ if ("451411".equals(codeString))
+ return _451411;
+ if ("451412".equals(codeString))
+ return _451412;
+ if ("451500".equals(codeString))
+ return _451500;
+ if ("451511".equals(codeString))
+ return _451511;
+ if ("451512".equals(codeString))
+ return _451512;
+ if ("451600".equals(codeString))
+ return _451600;
+ if ("451611".equals(codeString))
+ return _451611;
+ if ("451612".equals(codeString))
+ return _451612;
+ if ("451700".equals(codeString))
+ return _451700;
+ if ("451711".equals(codeString))
+ return _451711;
+ if ("451799".equals(codeString))
+ return _451799;
+ if ("451800".equals(codeString))
+ return _451800;
+ if ("451811".equals(codeString))
+ return _451811;
+ if ("451812".equals(codeString))
+ return _451812;
+ if ("451813".equals(codeString))
+ return _451813;
+ if ("451899".equals(codeString))
+ return _451899;
+ if ("452000".equals(codeString))
+ return _452000;
+ if ("452111".equals(codeString))
+ return _452111;
+ if ("452200".equals(codeString))
+ return _452200;
+ if ("452211".equals(codeString))
+ return _452211;
+ if ("452212".equals(codeString))
+ return _452212;
+ if ("452213".equals(codeString))
+ return _452213;
+ if ("452214".equals(codeString))
+ return _452214;
+ if ("452215".equals(codeString))
+ return _452215;
+ if ("452216".equals(codeString))
+ return _452216;
+ if ("452217".equals(codeString))
+ return _452217;
+ if ("452299".equals(codeString))
+ return _452299;
+ if ("452300".equals(codeString))
+ return _452300;
+ if ("452311".equals(codeString))
+ return _452311;
+ if ("452312".equals(codeString))
+ return _452312;
+ if ("452313".equals(codeString))
+ return _452313;
+ if ("452314".equals(codeString))
+ return _452314;
+ if ("452315".equals(codeString))
+ return _452315;
+ if ("452316".equals(codeString))
+ return _452316;
+ if ("452317".equals(codeString))
+ return _452317;
+ if ("452318".equals(codeString))
+ return _452318;
+ if ("452321".equals(codeString))
+ return _452321;
+ if ("452322".equals(codeString))
+ return _452322;
+ if ("452323".equals(codeString))
+ return _452323;
+ if ("452400".equals(codeString))
+ return _452400;
+ if ("452411".equals(codeString))
+ return _452411;
+ if ("452412".equals(codeString))
+ return _452412;
+ if ("452413".equals(codeString))
+ return _452413;
+ if ("452414".equals(codeString))
+ return _452414;
+ if ("452499".equals(codeString))
+ return _452499;
+ if ("500000".equals(codeString))
+ return _500000;
+ if ("510000".equals(codeString))
+ return _510000;
+ if ("511100".equals(codeString))
+ return _511100;
+ if ("511111".equals(codeString))
+ return _511111;
+ if ("511112".equals(codeString))
+ return _511112;
+ if ("512000".equals(codeString))
+ return _512000;
+ if ("512111".equals(codeString))
+ return _512111;
+ if ("512200".equals(codeString))
+ return _512200;
+ if ("512211".equals(codeString))
+ return _512211;
+ if ("512299".equals(codeString))
+ return _512299;
+ if ("521000".equals(codeString))
+ return _521000;
+ if ("521111".equals(codeString))
+ return _521111;
+ if ("521200".equals(codeString))
+ return _521200;
+ if ("521211".equals(codeString))
+ return _521211;
+ if ("521212".equals(codeString))
+ return _521212;
+ if ("530000".equals(codeString))
+ return _530000;
+ if ("531111".equals(codeString))
+ return _531111;
+ if ("532100".equals(codeString))
+ return _532100;
+ if ("532111".equals(codeString))
+ return _532111;
+ if ("532112".equals(codeString))
+ return _532112;
+ if ("532113".equals(codeString))
+ return _532113;
+ if ("540000".equals(codeString))
+ return _540000;
+ if ("541000".equals(codeString))
+ return _541000;
+ if ("541100".equals(codeString))
+ return _541100;
+ if ("541111".equals(codeString))
+ return _541111;
+ if ("541112".equals(codeString))
+ return _541112;
+ if ("541211".equals(codeString))
+ return _541211;
+ if ("542100".equals(codeString))
+ return _542100;
+ if ("542111".equals(codeString))
+ return _542111;
+ if ("542112".equals(codeString))
+ return _542112;
+ if ("542113".equals(codeString))
+ return _542113;
+ if ("542114".equals(codeString))
+ return _542114;
+ if ("550000".equals(codeString))
+ return _550000;
+ if ("551000".equals(codeString))
+ return _551000;
+ if ("551100".equals(codeString))
+ return _551100;
+ if ("551111".equals(codeString))
+ return _551111;
+ if ("551112".equals(codeString))
+ return _551112;
+ if ("551211".equals(codeString))
+ return _551211;
+ if ("551311".equals(codeString))
+ return _551311;
+ if ("552000".equals(codeString))
+ return _552000;
+ if ("552111".equals(codeString))
+ return _552111;
+ if ("552211".equals(codeString))
+ return _552211;
+ if ("552300".equals(codeString))
+ return _552300;
+ if ("552311".equals(codeString))
+ return _552311;
+ if ("552312".equals(codeString))
+ return _552312;
+ if ("552313".equals(codeString))
+ return _552313;
+ if ("552314".equals(codeString))
+ return _552314;
+ if ("561000".equals(codeString))
+ return _561000;
+ if ("561100".equals(codeString))
+ return _561100;
+ if ("561111".equals(codeString))
+ return _561111;
+ if ("561112".equals(codeString))
+ return _561112;
+ if ("561113".equals(codeString))
+ return _561113;
+ if ("561199".equals(codeString))
+ return _561199;
+ if ("561200".equals(codeString))
+ return _561200;
+ if ("561211".equals(codeString))
+ return _561211;
+ if ("561212".equals(codeString))
+ return _561212;
+ if ("561311".equals(codeString))
+ return _561311;
+ if ("561400".equals(codeString))
+ return _561400;
+ if ("561411".equals(codeString))
+ return _561411;
+ if ("561412".equals(codeString))
+ return _561412;
+ if ("561511".equals(codeString))
+ return _561511;
+ if ("561611".equals(codeString))
+ return _561611;
+ if ("561900".equals(codeString))
+ return _561900;
+ if ("561911".equals(codeString))
+ return _561911;
+ if ("561912".equals(codeString))
+ return _561912;
+ if ("561913".equals(codeString))
+ return _561913;
+ if ("561999".equals(codeString))
+ return _561999;
+ if ("590000".equals(codeString))
+ return _590000;
+ if ("591000".equals(codeString))
+ return _591000;
+ if ("591100".equals(codeString))
+ return _591100;
+ if ("591111".equals(codeString))
+ return _591111;
+ if ("591112".equals(codeString))
+ return _591112;
+ if ("591113".equals(codeString))
+ return _591113;
+ if ("591114".equals(codeString))
+ return _591114;
+ if ("591115".equals(codeString))
+ return _591115;
+ if ("591116".equals(codeString))
+ return _591116;
+ if ("591200".equals(codeString))
+ return _591200;
+ if ("591211".equals(codeString))
+ return _591211;
+ if ("591212".equals(codeString))
+ return _591212;
+ if ("599000".equals(codeString))
+ return _599000;
+ if ("599100".equals(codeString))
+ return _599100;
+ if ("599111".equals(codeString))
+ return _599111;
+ if ("599112".equals(codeString))
+ return _599112;
+ if ("599200".equals(codeString))
+ return _599200;
+ if ("599211".equals(codeString))
+ return _599211;
+ if ("599212".equals(codeString))
+ return _599212;
+ if ("599213".equals(codeString))
+ return _599213;
+ if ("599214".equals(codeString))
+ return _599214;
+ if ("599215".equals(codeString))
+ return _599215;
+ if ("599311".equals(codeString))
+ return _599311;
+ if ("599411".equals(codeString))
+ return _599411;
+ if ("599500".equals(codeString))
+ return _599500;
+ if ("599511".equals(codeString))
+ return _599511;
+ if ("599512".equals(codeString))
+ return _599512;
+ if ("599513".equals(codeString))
+ return _599513;
+ if ("599514".equals(codeString))
+ return _599514;
+ if ("599515".equals(codeString))
+ return _599515;
+ if ("599516".equals(codeString))
+ return _599516;
+ if ("599517".equals(codeString))
+ return _599517;
+ if ("599518".equals(codeString))
+ return _599518;
+ if ("599521".equals(codeString))
+ return _599521;
+ if ("599599".equals(codeString))
+ return _599599;
+ if ("599600".equals(codeString))
+ return _599600;
+ if ("599611".equals(codeString))
+ return _599611;
+ if ("599612".equals(codeString))
+ return _599612;
+ if ("599613".equals(codeString))
+ return _599613;
+ if ("599711".equals(codeString))
+ return _599711;
+ if ("599900".equals(codeString))
+ return _599900;
+ if ("599911".equals(codeString))
+ return _599911;
+ if ("599912".equals(codeString))
+ return _599912;
+ if ("599913".equals(codeString))
+ return _599913;
+ if ("599914".equals(codeString))
+ return _599914;
+ if ("599999".equals(codeString))
+ return _599999;
+ if ("600000".equals(codeString))
+ return _600000;
+ if ("610000".equals(codeString))
+ return _610000;
+ if ("611000".equals(codeString))
+ return _611000;
+ if ("611100".equals(codeString))
+ return _611100;
+ if ("611111".equals(codeString))
+ return _611111;
+ if ("611112".equals(codeString))
+ return _611112;
+ if ("611211".equals(codeString))
+ return _611211;
+ if ("611300".equals(codeString))
+ return _611300;
+ if ("611311".equals(codeString))
+ return _611311;
+ if ("611312".equals(codeString))
+ return _611312;
+ if ("611313".equals(codeString))
+ return _611313;
+ if ("611314".equals(codeString))
+ return _611314;
+ if ("611399".equals(codeString))
+ return _611399;
+ if ("612100".equals(codeString))
+ return _612100;
+ if ("612111".equals(codeString))
+ return _612111;
+ if ("612112".equals(codeString))
+ return _612112;
+ if ("612113".equals(codeString))
+ return _612113;
+ if ("612114".equals(codeString))
+ return _612114;
+ if ("612115".equals(codeString))
+ return _612115;
+ if ("621000".equals(codeString))
+ return _621000;
+ if ("621111".equals(codeString))
+ return _621111;
+ if ("621211".equals(codeString))
+ return _621211;
+ if ("621300".equals(codeString))
+ return _621300;
+ if ("621311".equals(codeString))
+ return _621311;
+ if ("621312".equals(codeString))
+ return _621312;
+ if ("621411".equals(codeString))
+ return _621411;
+ if ("621511".equals(codeString))
+ return _621511;
+ if ("621611".equals(codeString))
+ return _621611;
+ if ("621700".equals(codeString))
+ return _621700;
+ if ("621711".equals(codeString))
+ return _621711;
+ if ("621712".equals(codeString))
+ return _621712;
+ if ("621713".equals(codeString))
+ return _621713;
+ if ("621900".equals(codeString))
+ return _621900;
+ if ("621911".equals(codeString))
+ return _621911;
+ if ("621912".equals(codeString))
+ return _621912;
+ if ("621999".equals(codeString))
+ return _621999;
+ if ("630000".equals(codeString))
+ return _630000;
+ if ("631100".equals(codeString))
+ return _631100;
+ if ("631111".equals(codeString))
+ return _631111;
+ if ("631112".equals(codeString))
+ return _631112;
+ if ("639000".equals(codeString))
+ return _639000;
+ if ("639100".equals(codeString))
+ return _639100;
+ if ("639111".equals(codeString))
+ return _639111;
+ if ("639112".equals(codeString))
+ return _639112;
+ if ("639200".equals(codeString))
+ return _639200;
+ if ("639211".equals(codeString))
+ return _639211;
+ if ("639212".equals(codeString))
+ return _639212;
+ if ("639311".equals(codeString))
+ return _639311;
+ if ("639400".equals(codeString))
+ return _639400;
+ if ("639411".equals(codeString))
+ return _639411;
+ if ("639412".equals(codeString))
+ return _639412;
+ if ("639511".equals(codeString))
+ return _639511;
+ if ("639911".equals(codeString))
+ return _639911;
+ if ("700000".equals(codeString))
+ return _700000;
+ if ("710000".equals(codeString))
+ return _710000;
+ if ("711000".equals(codeString))
+ return _711000;
+ if ("711100".equals(codeString))
+ return _711100;
+ if ("711111".equals(codeString))
+ return _711111;
+ if ("711112".equals(codeString))
+ return _711112;
+ if ("711113".equals(codeString))
+ return _711113;
+ if ("711114".equals(codeString))
+ return _711114;
+ if ("711199".equals(codeString))
+ return _711199;
+ if ("711211".equals(codeString))
+ return _711211;
+ if ("711300".equals(codeString))
+ return _711300;
+ if ("711311".equals(codeString))
+ return _711311;
+ if ("711312".equals(codeString))
+ return _711312;
+ if ("711411".equals(codeString))
+ return _711411;
+ if ("711500".equals(codeString))
+ return _711500;
+ if ("711511".equals(codeString))
+ return _711511;
+ if ("711512".equals(codeString))
+ return _711512;
+ if ("711513".equals(codeString))
+ return _711513;
+ if ("711514".equals(codeString))
+ return _711514;
+ if ("711515".equals(codeString))
+ return _711515;
+ if ("711516".equals(codeString))
+ return _711516;
+ if ("711599".equals(codeString))
+ return _711599;
+ if ("711611".equals(codeString))
+ return _711611;
+ if ("711700".equals(codeString))
+ return _711700;
+ if ("711711".equals(codeString))
+ return _711711;
+ if ("711712".equals(codeString))
+ return _711712;
+ if ("711713".equals(codeString))
+ return _711713;
+ if ("711714".equals(codeString))
+ return _711714;
+ if ("711715".equals(codeString))
+ return _711715;
+ if ("711716".equals(codeString))
+ return _711716;
+ if ("711799".equals(codeString))
+ return _711799;
+ if ("711900".equals(codeString))
+ return _711900;
+ if ("711911".equals(codeString))
+ return _711911;
+ if ("711912".equals(codeString))
+ return _711912;
+ if ("711913".equals(codeString))
+ return _711913;
+ if ("711914".equals(codeString))
+ return _711914;
+ if ("711999".equals(codeString))
+ return _711999;
+ if ("712000".equals(codeString))
+ return _712000;
+ if ("712111".equals(codeString))
+ return _712111;
+ if ("712200".equals(codeString))
+ return _712200;
+ if ("712211".equals(codeString))
+ return _712211;
+ if ("712212".equals(codeString))
+ return _712212;
+ if ("712213".equals(codeString))
+ return _712213;
+ if ("712311".equals(codeString))
+ return _712311;
+ if ("712900".equals(codeString))
+ return _712900;
+ if ("712911".equals(codeString))
+ return _712911;
+ if ("712912".equals(codeString))
+ return _712912;
+ if ("712913".equals(codeString))
+ return _712913;
+ if ("712914".equals(codeString))
+ return _712914;
+ if ("712915".equals(codeString))
+ return _712915;
+ if ("712916".equals(codeString))
+ return _712916;
+ if ("712917".equals(codeString))
+ return _712917;
+ if ("712918".equals(codeString))
+ return _712918;
+ if ("712921".equals(codeString))
+ return _712921;
+ if ("712922".equals(codeString))
+ return _712922;
+ if ("712999".equals(codeString))
+ return _712999;
+ if ("721000".equals(codeString))
+ return _721000;
+ if ("721100".equals(codeString))
+ return _721100;
+ if ("721111".equals(codeString))
+ return _721111;
+ if ("721112".equals(codeString))
+ return _721112;
+ if ("721200".equals(codeString))
+ return _721200;
+ if ("721211".equals(codeString))
+ return _721211;
+ if ("721212".equals(codeString))
+ return _721212;
+ if ("721213".equals(codeString))
+ return _721213;
+ if ("721214".equals(codeString))
+ return _721214;
+ if ("721215".equals(codeString))
+ return _721215;
+ if ("721216".equals(codeString))
+ return _721216;
+ if ("721311".equals(codeString))
+ return _721311;
+ if ("721900".equals(codeString))
+ return _721900;
+ if ("721911".equals(codeString))
+ return _721911;
+ if ("721912".equals(codeString))
+ return _721912;
+ if ("721913".equals(codeString))
+ return _721913;
+ if ("721914".equals(codeString))
+ return _721914;
+ if ("721915".equals(codeString))
+ return _721915;
+ if ("721916".equals(codeString))
+ return _721916;
+ if ("721999".equals(codeString))
+ return _721999;
+ if ("730000".equals(codeString))
+ return _730000;
+ if ("731000".equals(codeString))
+ return _731000;
+ if ("731100".equals(codeString))
+ return _731100;
+ if ("731111".equals(codeString))
+ return _731111;
+ if ("731112".equals(codeString))
+ return _731112;
+ if ("731199".equals(codeString))
+ return _731199;
+ if ("731200".equals(codeString))
+ return _731200;
+ if ("731211".equals(codeString))
+ return _731211;
+ if ("731212".equals(codeString))
+ return _731212;
+ if ("731213".equals(codeString))
+ return _731213;
+ if ("731300".equals(codeString))
+ return _731300;
+ if ("731311".equals(codeString))
+ return _731311;
+ if ("731312".equals(codeString))
+ return _731312;
+ if ("732111".equals(codeString))
+ return _732111;
+ if ("733100".equals(codeString))
+ return _733100;
+ if ("733111".equals(codeString))
+ return _733111;
+ if ("733112".equals(codeString))
+ return _733112;
+ if ("733113".equals(codeString))
+ return _733113;
+ if ("733114".equals(codeString))
+ return _733114;
+ if ("733115".equals(codeString))
+ return _733115;
+ if ("741111".equals(codeString))
+ return _741111;
+ if ("800000".equals(codeString))
+ return _800000;
+ if ("811000".equals(codeString))
+ return _811000;
+ if ("811111".equals(codeString))
+ return _811111;
+ if ("811211".equals(codeString))
+ return _811211;
+ if ("811311".equals(codeString))
+ return _811311;
+ if ("811400".equals(codeString))
+ return _811400;
+ if ("811411".equals(codeString))
+ return _811411;
+ if ("811412".equals(codeString))
+ return _811412;
+ if ("811500".equals(codeString))
+ return _811500;
+ if ("811511".equals(codeString))
+ return _811511;
+ if ("811512".equals(codeString))
+ return _811512;
+ if ("811513".equals(codeString))
+ return _811513;
+ if ("811600".equals(codeString))
+ return _811600;
+ if ("811611".equals(codeString))
+ return _811611;
+ if ("811612".equals(codeString))
+ return _811612;
+ if ("811699".equals(codeString))
+ return _811699;
+ if ("821000".equals(codeString))
+ return _821000;
+ if ("821100".equals(codeString))
+ return _821100;
+ if ("821111".equals(codeString))
+ return _821111;
+ if ("821112".equals(codeString))
+ return _821112;
+ if ("821113".equals(codeString))
+ return _821113;
+ if ("821114".equals(codeString))
+ return _821114;
+ if ("821211".equals(codeString))
+ return _821211;
+ if ("821311".equals(codeString))
+ return _821311;
+ if ("821400".equals(codeString))
+ return _821400;
+ if ("821411".equals(codeString))
+ return _821411;
+ if ("821412".equals(codeString))
+ return _821412;
+ if ("821511".equals(codeString))
+ return _821511;
+ if ("821611".equals(codeString))
+ return _821611;
+ if ("821700".equals(codeString))
+ return _821700;
+ if ("821711".equals(codeString))
+ return _821711;
+ if ("821712".equals(codeString))
+ return _821712;
+ if ("821713".equals(codeString))
+ return _821713;
+ if ("821714".equals(codeString))
+ return _821714;
+ if ("821900".equals(codeString))
+ return _821900;
+ if ("821911".equals(codeString))
+ return _821911;
+ if ("821912".equals(codeString))
+ return _821912;
+ if ("821913".equals(codeString))
+ return _821913;
+ if ("821914".equals(codeString))
+ return _821914;
+ if ("821915".equals(codeString))
+ return _821915;
+ if ("830000".equals(codeString))
+ return _830000;
+ if ("831000".equals(codeString))
+ return _831000;
+ if ("831100".equals(codeString))
+ return _831100;
+ if ("831111".equals(codeString))
+ return _831111;
+ if ("831112".equals(codeString))
+ return _831112;
+ if ("831113".equals(codeString))
+ return _831113;
+ if ("831114".equals(codeString))
+ return _831114;
+ if ("831115".equals(codeString))
+ return _831115;
+ if ("831116".equals(codeString))
+ return _831116;
+ if ("831117".equals(codeString))
+ return _831117;
+ if ("831118".equals(codeString))
+ return _831118;
+ if ("831199".equals(codeString))
+ return _831199;
+ if ("831200".equals(codeString))
+ return _831200;
+ if ("831211".equals(codeString))
+ return _831211;
+ if ("831212".equals(codeString))
+ return _831212;
+ if ("831300".equals(codeString))
+ return _831300;
+ if ("831311".equals(codeString))
+ return _831311;
+ if ("831312".equals(codeString))
+ return _831312;
+ if ("831313".equals(codeString))
+ return _831313;
+ if ("832000".equals(codeString))
+ return _832000;
+ if ("832100".equals(codeString))
+ return _832100;
+ if ("832111".equals(codeString))
+ return _832111;
+ if ("832112".equals(codeString))
+ return _832112;
+ if ("832113".equals(codeString))
+ return _832113;
+ if ("832114".equals(codeString))
+ return _832114;
+ if ("832115".equals(codeString))
+ return _832115;
+ if ("832199".equals(codeString))
+ return _832199;
+ if ("832211".equals(codeString))
+ return _832211;
+ if ("839000".equals(codeString))
+ return _839000;
+ if ("839111".equals(codeString))
+ return _839111;
+ if ("839200".equals(codeString))
+ return _839200;
+ if ("839211".equals(codeString))
+ return _839211;
+ if ("839212".equals(codeString))
+ return _839212;
+ if ("839300".equals(codeString))
+ return _839300;
+ if ("839311".equals(codeString))
+ return _839311;
+ if ("839312".equals(codeString))
+ return _839312;
+ if ("839313".equals(codeString))
+ return _839313;
+ if ("839400".equals(codeString))
+ return _839400;
+ if ("839411".equals(codeString))
+ return _839411;
+ if ("839412".equals(codeString))
+ return _839412;
+ if ("839413".equals(codeString))
+ return _839413;
+ if ("839900".equals(codeString))
+ return _839900;
+ if ("839911".equals(codeString))
+ return _839911;
+ if ("839912".equals(codeString))
+ return _839912;
+ if ("839913".equals(codeString))
+ return _839913;
+ if ("839914".equals(codeString))
+ return _839914;
+ if ("839915".equals(codeString))
+ return _839915;
+ if ("839916".equals(codeString))
+ return _839916;
+ if ("839917".equals(codeString))
+ return _839917;
+ if ("839999".equals(codeString))
+ return _839999;
+ if ("841000".equals(codeString))
+ return _841000;
+ if ("841111".equals(codeString))
+ return _841111;
+ if ("841200".equals(codeString))
+ return _841200;
+ if ("841211".equals(codeString))
+ return _841211;
+ if ("841212".equals(codeString))
+ return _841212;
+ if ("841213".equals(codeString))
+ return _841213;
+ if ("841214".equals(codeString))
+ return _841214;
+ if ("841215".equals(codeString))
+ return _841215;
+ if ("841216".equals(codeString))
+ return _841216;
+ if ("841299".equals(codeString))
+ return _841299;
+ if ("841300".equals(codeString))
+ return _841300;
+ if ("841311".equals(codeString))
+ return _841311;
+ if ("841312".equals(codeString))
+ return _841312;
+ if ("841313".equals(codeString))
+ return _841313;
+ if ("841400".equals(codeString))
+ return _841400;
+ if ("841411".equals(codeString))
+ return _841411;
+ if ("841412".equals(codeString))
+ return _841412;
+ if ("841500".equals(codeString))
+ return _841500;
+ if ("841511".equals(codeString))
+ return _841511;
+ if ("841512".equals(codeString))
+ return _841512;
+ if ("841513".equals(codeString))
+ return _841513;
+ if ("841514".equals(codeString))
+ return _841514;
+ if ("841515".equals(codeString))
+ return _841515;
+ if ("841516".equals(codeString))
+ return _841516;
+ if ("841517".equals(codeString))
+ return _841517;
+ if ("841599".equals(codeString))
+ return _841599;
+ if ("841611".equals(codeString))
+ return _841611;
+ if ("841900".equals(codeString))
+ return _841900;
+ if ("841911".equals(codeString))
+ return _841911;
+ if ("841912".equals(codeString))
+ return _841912;
+ if ("841999".equals(codeString))
+ return _841999;
+ if ("851000".equals(codeString))
+ return _851000;
+ if ("851111".equals(codeString))
+ return _851111;
+ if ("851200".equals(codeString))
+ return _851200;
+ if ("851211".equals(codeString))
+ return _851211;
+ if ("851299".equals(codeString))
+ return _851299;
+ if ("851311".equals(codeString))
+ return _851311;
+ if ("890000".equals(codeString))
+ return _890000;
+ if ("891000".equals(codeString))
+ return _891000;
+ if ("891100".equals(codeString))
+ return _891100;
+ if ("891111".equals(codeString))
+ return _891111;
+ if ("891112".equals(codeString))
+ return _891112;
+ if ("891113".equals(codeString))
+ return _891113;
+ if ("891211".equals(codeString))
+ return _891211;
+ if ("899000".equals(codeString))
+ return _899000;
+ if ("899111".equals(codeString))
+ return _899111;
+ if ("899200".equals(codeString))
+ return _899200;
+ if ("899211".equals(codeString))
+ return _899211;
+ if ("899212".equals(codeString))
+ return _899212;
+ if ("899311".equals(codeString))
+ return _899311;
+ if ("899400".equals(codeString))
+ return _899400;
+ if ("899411".equals(codeString))
+ return _899411;
+ if ("899412".equals(codeString))
+ return _899412;
+ if ("899413".equals(codeString))
+ return _899413;
+ if ("899414".equals(codeString))
+ return _899414;
+ if ("899415".equals(codeString))
+ return _899415;
+ if ("899500".equals(codeString))
+ return _899500;
+ if ("899511".equals(codeString))
+ return _899511;
+ if ("899512".equals(codeString))
+ return _899512;
+ if ("899611".equals(codeString))
+ return _899611;
+ if ("899711".equals(codeString))
+ return _899711;
+ if ("899900".equals(codeString))
+ return _899900;
+ if ("899911".equals(codeString))
+ return _899911;
+ if ("899912".equals(codeString))
+ return _899912;
+ if ("899913".equals(codeString))
+ return _899913;
+ if ("899914".equals(codeString))
+ return _899914;
+ if ("899915".equals(codeString))
+ return _899915;
+ if ("899916".equals(codeString))
+ return _899916;
+ if ("899917".equals(codeString))
+ return _899917;
+ if ("899918".equals(codeString))
+ return _899918;
+ if ("899921".equals(codeString))
+ return _899921;
+ if ("899922".equals(codeString))
+ return _899922;
+ if ("899999".equals(codeString))
+ return _899999;
+ throw new Exception("Unknown AnzscoOccupations code '"+codeString+"'");
+ }
+ public String toCode() {
+ switch (this) {
+ case _100000: return "100000";
+ case _111000: return "111000";
+ case _111111: return "111111";
+ case _111200: return "111200";
+ case _111211: return "111211";
+ case _111212: return "111212";
+ case _111300: return "111300";
+ case _111311: return "111311";
+ case _111312: return "111312";
+ case _111399: return "111399";
+ case _121000: return "121000";
+ case _121111: return "121111";
+ case _121200: return "121200";
+ case _121211: return "121211";
+ case _121212: return "121212";
+ case _121213: return "121213";
+ case _121214: return "121214";
+ case _121215: return "121215";
+ case _121216: return "121216";
+ case _121217: return "121217";
+ case _121218: return "121218";
+ case _121221: return "121221";
+ case _121299: return "121299";
+ case _121300: return "121300";
+ case _121311: return "121311";
+ case _121312: return "121312";
+ case _121313: return "121313";
+ case _121314: return "121314";
+ case _121315: return "121315";
+ case _121316: return "121316";
+ case _121317: return "121317";
+ case _121318: return "121318";
+ case _121321: return "121321";
+ case _121322: return "121322";
+ case _121399: return "121399";
+ case _121411: return "121411";
+ case _130000: return "130000";
+ case _131100: return "131100";
+ case _131111: return "131111";
+ case _131112: return "131112";
+ case _132000: return "132000";
+ case _132111: return "132111";
+ case _132211: return "132211";
+ case _132311: return "132311";
+ case _132411: return "132411";
+ case _132511: return "132511";
+ case _133000: return "133000";
+ case _133100: return "133100";
+ case _133111: return "133111";
+ case _133112: return "133112";
+ case _133211: return "133211";
+ case _133300: return "133300";
+ case _133311: return "133311";
+ case _133312: return "133312";
+ case _133411: return "133411";
+ case _133500: return "133500";
+ case _133511: return "133511";
+ case _133512: return "133512";
+ case _133513: return "133513";
+ case _133611: return "133611";
+ case _134000: return "134000";
+ case _134111: return "134111";
+ case _134200: return "134200";
+ case _134211: return "134211";
+ case _134212: return "134212";
+ case _134213: return "134213";
+ case _134214: return "134214";
+ case _134299: return "134299";
+ case _134311: return "134311";
+ case _134400: return "134400";
+ case _134411: return "134411";
+ case _134412: return "134412";
+ case _134499: return "134499";
+ case _135100: return "135100";
+ case _135111: return "135111";
+ case _135112: return "135112";
+ case _135199: return "135199";
+ case _139000: return "139000";
+ case _139100: return "139100";
+ case _139111: return "139111";
+ case _139112: return "139112";
+ case _139113: return "139113";
+ case _139211: return "139211";
+ case _139900: return "139900";
+ case _139911: return "139911";
+ case _139912: return "139912";
+ case _139913: return "139913";
+ case _139914: return "139914";
+ case _139915: return "139915";
+ case _139999: return "139999";
+ case _140000: return "140000";
+ case _141000: return "141000";
+ case _141111: return "141111";
+ case _141211: return "141211";
+ case _141311: return "141311";
+ case _141411: return "141411";
+ case _141900: return "141900";
+ case _141911: return "141911";
+ case _141999: return "141999";
+ case _142100: return "142100";
+ case _142111: return "142111";
+ case _142112: return "142112";
+ case _142113: return "142113";
+ case _142114: return "142114";
+ case _142115: return "142115";
+ case _142116: return "142116";
+ case _149000: return "149000";
+ case _149100: return "149100";
+ case _149111: return "149111";
+ case _149112: return "149112";
+ case _149113: return "149113";
+ case _149200: return "149200";
+ case _149211: return "149211";
+ case _149212: return "149212";
+ case _149311: return "149311";
+ case _149400: return "149400";
+ case _149411: return "149411";
+ case _149412: return "149412";
+ case _149413: return "149413";
+ case _149900: return "149900";
+ case _149911: return "149911";
+ case _149912: return "149912";
+ case _149913: return "149913";
+ case _149914: return "149914";
+ case _149999: return "149999";
+ case _200000: return "200000";
+ case _210000: return "210000";
+ case _211000: return "211000";
+ case _211100: return "211100";
+ case _211111: return "211111";
+ case _211112: return "211112";
+ case _211113: return "211113";
+ case _211199: return "211199";
+ case _211200: return "211200";
+ case _211211: return "211211";
+ case _211212: return "211212";
+ case _211213: return "211213";
+ case _211214: return "211214";
+ case _211299: return "211299";
+ case _211311: return "211311";
+ case _211400: return "211400";
+ case _211411: return "211411";
+ case _211412: return "211412";
+ case _211413: return "211413";
+ case _211499: return "211499";
+ case _212000: return "212000";
+ case _212100: return "212100";
+ case _212111: return "212111";
+ case _212112: return "212112";
+ case _212113: return "212113";
+ case _212114: return "212114";
+ case _212200: return "212200";
+ case _212211: return "212211";
+ case _212212: return "212212";
+ case _212300: return "212300";
+ case _212311: return "212311";
+ case _212312: return "212312";
+ case _212313: return "212313";
+ case _212314: return "212314";
+ case _212315: return "212315";
+ case _212316: return "212316";
+ case _212317: return "212317";
+ case _212318: return "212318";
+ case _212399: return "212399";
+ case _212400: return "212400";
+ case _212411: return "212411";
+ case _212412: return "212412";
+ case _212413: return "212413";
+ case _212414: return "212414";
+ case _212415: return "212415";
+ case _212416: return "212416";
+ case _212499: return "212499";
+ case _220000: return "220000";
+ case _221000: return "221000";
+ case _221100: return "221100";
+ case _221111: return "221111";
+ case _221112: return "221112";
+ case _221113: return "221113";
+ case _221200: return "221200";
+ case _221211: return "221211";
+ case _221212: return "221212";
+ case _221213: return "221213";
+ case _221214: return "221214";
+ case _222000: return "222000";
+ case _222100: return "222100";
+ case _222111: return "222111";
+ case _222112: return "222112";
+ case _222113: return "222113";
+ case _222199: return "222199";
+ case _222200: return "222200";
+ case _222211: return "222211";
+ case _222212: return "222212";
+ case _222213: return "222213";
+ case _222299: return "222299";
+ case _222300: return "222300";
+ case _222311: return "222311";
+ case _222312: return "222312";
+ case _223000: return "223000";
+ case _223100: return "223100";
+ case _223111: return "223111";
+ case _223112: return "223112";
+ case _223113: return "223113";
+ case _223211: return "223211";
+ case _223311: return "223311";
+ case _224000: return "224000";
+ case _224100: return "224100";
+ case _224111: return "224111";
+ case _224112: return "224112";
+ case _224113: return "224113";
+ case _224200: return "224200";
+ case _224211: return "224211";
+ case _224212: return "224212";
+ case _224213: return "224213";
+ case _224214: return "224214";
+ case _224311: return "224311";
+ case _224400: return "224400";
+ case _224411: return "224411";
+ case _224412: return "224412";
+ case _224500: return "224500";
+ case _224511: return "224511";
+ case _224512: return "224512";
+ case _224611: return "224611";
+ case _224700: return "224700";
+ case _224711: return "224711";
+ case _224712: return "224712";
+ case _224900: return "224900";
+ case _224911: return "224911";
+ case _224912: return "224912";
+ case _224913: return "224913";
+ case _224914: return "224914";
+ case _224999: return "224999";
+ case _225000: return "225000";
+ case _225100: return "225100";
+ case _225111: return "225111";
+ case _225112: return "225112";
+ case _225113: return "225113";
+ case _225200: return "225200";
+ case _225211: return "225211";
+ case _225212: return "225212";
+ case _225213: return "225213";
+ case _225311: return "225311";
+ case _225400: return "225400";
+ case _225411: return "225411";
+ case _225412: return "225412";
+ case _225499: return "225499";
+ case _230000: return "230000";
+ case _231000: return "231000";
+ case _231100: return "231100";
+ case _231111: return "231111";
+ case _231112: return "231112";
+ case _231113: return "231113";
+ case _231114: return "231114";
+ case _231199: return "231199";
+ case _231200: return "231200";
+ case _231211: return "231211";
+ case _231212: return "231212";
+ case _231213: return "231213";
+ case _231214: return "231214";
+ case _231215: return "231215";
+ case _231299: return "231299";
+ case _232000: return "232000";
+ case _232100: return "232100";
+ case _232111: return "232111";
+ case _232112: return "232112";
+ case _232200: return "232200";
+ case _232211: return "232211";
+ case _232212: return "232212";
+ case _232300: return "232300";
+ case _232311: return "232311";
+ case _232312: return "232312";
+ case _232313: return "232313";
+ case _232400: return "232400";
+ case _232411: return "232411";
+ case _232412: return "232412";
+ case _232413: return "232413";
+ case _232414: return "232414";
+ case _232511: return "232511";
+ case _232611: return "232611";
+ case _233000: return "233000";
+ case _233100: return "233100";
+ case _233111: return "233111";
+ case _233112: return "233112";
+ case _233200: return "233200";
+ case _233211: return "233211";
+ case _233212: return "233212";
+ case _233213: return "233213";
+ case _233214: return "233214";
+ case _233215: return "233215";
+ case _233311: return "233311";
+ case _233411: return "233411";
+ case _233500: return "233500";
+ case _233511: return "233511";
+ case _233512: return "233512";
+ case _233513: return "233513";
+ case _233600: return "233600";
+ case _233611: return "233611";
+ case _233612: return "233612";
+ case _233900: return "233900";
+ case _233911: return "233911";
+ case _233912: return "233912";
+ case _233913: return "233913";
+ case _233914: return "233914";
+ case _233915: return "233915";
+ case _233916: return "233916";
+ case _233999: return "233999";
+ case _234000: return "234000";
+ case _234100: return "234100";
+ case _234111: return "234111";
+ case _234112: return "234112";
+ case _234113: return "234113";
+ case _234200: return "234200";
+ case _234211: return "234211";
+ case _234212: return "234212";
+ case _234213: return "234213";
+ case _234300: return "234300";
+ case _234311: return "234311";
+ case _234312: return "234312";
+ case _234313: return "234313";
+ case _234314: return "234314";
+ case _234399: return "234399";
+ case _234400: return "234400";
+ case _234411: return "234411";
+ case _234412: return "234412";
+ case _234500: return "234500";
+ case _234511: return "234511";
+ case _234512: return "234512";
+ case _234513: return "234513";
+ case _234514: return "234514";
+ case _234515: return "234515";
+ case _234516: return "234516";
+ case _234517: return "234517";
+ case _234518: return "234518";
+ case _234599: return "234599";
+ case _234611: return "234611";
+ case _234711: return "234711";
+ case _234900: return "234900";
+ case _234911: return "234911";
+ case _234912: return "234912";
+ case _234913: return "234913";
+ case _234914: return "234914";
+ case _234999: return "234999";
+ case _240000: return "240000";
+ case _241000: return "241000";
+ case _241111: return "241111";
+ case _241213: return "241213";
+ case _241311: return "241311";
+ case _241411: return "241411";
+ case _241500: return "241500";
+ case _241511: return "241511";
+ case _241512: return "241512";
+ case _241513: return "241513";
+ case _241599: return "241599";
+ case _242000: return "242000";
+ case _242100: return "242100";
+ case _242111: return "242111";
+ case _242112: return "242112";
+ case _242211: return "242211";
+ case _249000: return "249000";
+ case _249100: return "249100";
+ case _249111: return "249111";
+ case _249112: return "249112";
+ case _249200: return "249200";
+ case _249211: return "249211";
+ case _249212: return "249212";
+ case _249213: return "249213";
+ case _249214: return "249214";
+ case _249299: return "249299";
+ case _249311: return "249311";
+ case _250000: return "250000";
+ case _251000: return "251000";
+ case _251111: return "251111";
+ case _251200: return "251200";
+ case _251211: return "251211";
+ case _251212: return "251212";
+ case _251213: return "251213";
+ case _251214: return "251214";
+ case _251300: return "251300";
+ case _251311: return "251311";
+ case _251312: return "251312";
+ case _251400: return "251400";
+ case _251411: return "251411";
+ case _251412: return "251412";
+ case _251500: return "251500";
+ case _251511: return "251511";
+ case _251512: return "251512";
+ case _251513: return "251513";
+ case _251900: return "251900";
+ case _251911: return "251911";
+ case _251912: return "251912";
+ case _251999: return "251999";
+ case _252000: return "252000";
+ case _252100: return "252100";
+ case _252111: return "252111";
+ case _252112: return "252112";
+ case _252200: return "252200";
+ case _252211: return "252211";
+ case _252212: return "252212";
+ case _252213: return "252213";
+ case _252214: return "252214";
+ case _252299: return "252299";
+ case _252300: return "252300";
+ case _252311: return "252311";
+ case _252312: return "252312";
+ case _252411: return "252411";
+ case _252511: return "252511";
+ case _252611: return "252611";
+ case _252700: return "252700";
+ case _252711: return "252711";
+ case _252712: return "252712";
+ case _253000: return "253000";
+ case _253100: return "253100";
+ case _253111: return "253111";
+ case _253112: return "253112";
+ case _253211: return "253211";
+ case _253300: return "253300";
+ case _253311: return "253311";
+ case _253312: return "253312";
+ case _253313: return "253313";
+ case _253314: return "253314";
+ case _253315: return "253315";
+ case _253316: return "253316";
+ case _253317: return "253317";
+ case _253318: return "253318";
+ case _253321: return "253321";
+ case _253322: return "253322";
+ case _253323: return "253323";
+ case _253324: return "253324";
+ case _253399: return "253399";
+ case _253411: return "253411";
+ case _253500: return "253500";
+ case _253511: return "253511";
+ case _253512: return "253512";
+ case _253513: return "253513";
+ case _253514: return "253514";
+ case _253515: return "253515";
+ case _253516: return "253516";
+ case _253517: return "253517";
+ case _253518: return "253518";
+ case _253521: return "253521";
+ case _253900: return "253900";
+ case _253911: return "253911";
+ case _253912: return "253912";
+ case _253913: return "253913";
+ case _253914: return "253914";
+ case _253915: return "253915";
+ case _253916: return "253916";
+ case _253999: return "253999";
+ case _254000: return "254000";
+ case _254111: return "254111";
+ case _254200: return "254200";
+ case _254211: return "254211";
+ case _254212: return "254212";
+ case _254311: return "254311";
+ case _254400: return "254400";
+ case _254411: return "254411";
+ case _254412: return "254412";
+ case _254413: return "254413";
+ case _254414: return "254414";
+ case _254415: return "254415";
+ case _254416: return "254416";
+ case _254417: return "254417";
+ case _254418: return "254418";
+ case _254421: return "254421";
+ case _254422: return "254422";
+ case _254423: return "254423";
+ case _254424: return "254424";
+ case _254499: return "254499";
+ case _260000: return "260000";
+ case _261000: return "261000";
+ case _261100: return "261100";
+ case _261111: return "261111";
+ case _261112: return "261112";
+ case _261200: return "261200";
+ case _261211: return "261211";
+ case _261212: return "261212";
+ case _261300: return "261300";
+ case _261311: return "261311";
+ case _261312: return "261312";
+ case _261313: return "261313";
+ case _261399: return "261399";
+ case _262100: return "262100";
+ case _262111: return "262111";
+ case _262112: return "262112";
+ case _262113: return "262113";
+ case _263000: return "263000";
+ case _263100: return "263100";
+ case _263111: return "263111";
+ case _263112: return "263112";
+ case _263113: return "263113";
+ case _263200: return "263200";
+ case _263211: return "263211";
+ case _263212: return "263212";
+ case _263213: return "263213";
+ case _263299: return "263299";
+ case _263300: return "263300";
+ case _263311: return "263311";
+ case _263312: return "263312";
+ case _270000: return "270000";
+ case _271000: return "271000";
+ case _271111: return "271111";
+ case _271200: return "271200";
+ case _271211: return "271211";
+ case _271212: return "271212";
+ case _271213: return "271213";
+ case _271299: return "271299";
+ case _271311: return "271311";
+ case _272000: return "272000";
+ case _272100: return "272100";
+ case _272111: return "272111";
+ case _272112: return "272112";
+ case _272113: return "272113";
+ case _272114: return "272114";
+ case _272115: return "272115";
+ case _272199: return "272199";
+ case _272211: return "272211";
+ case _272300: return "272300";
+ case _272311: return "272311";
+ case _272312: return "272312";
+ case _272313: return "272313";
+ case _272314: return "272314";
+ case _272399: return "272399";
+ case _272400: return "272400";
+ case _272411: return "272411";
+ case _272412: return "272412";
+ case _272413: return "272413";
+ case _272499: return "272499";
+ case _272511: return "272511";
+ case _272600: return "272600";
+ case _272611: return "272611";
+ case _272612: return "272612";
+ case _272613: return "272613";
+ case _300000: return "300000";
+ case _310000: return "310000";
+ case _311000: return "311000";
+ case _311111: return "311111";
+ case _311200: return "311200";
+ case _311211: return "311211";
+ case _311212: return "311212";
+ case _311213: return "311213";
+ case _311214: return "311214";
+ case _311215: return "311215";
+ case _311299: return "311299";
+ case _311300: return "311300";
+ case _311311: return "311311";
+ case _311312: return "311312";
+ case _311313: return "311313";
+ case _311399: return "311399";
+ case _311400: return "311400";
+ case _311411: return "311411";
+ case _311412: return "311412";
+ case _311413: return "311413";
+ case _311414: return "311414";
+ case _311499: return "311499";
+ case _312000: return "312000";
+ case _312100: return "312100";
+ case _312111: return "312111";
+ case _312112: return "312112";
+ case _312113: return "312113";
+ case _312114: return "312114";
+ case _312115: return "312115";
+ case _312116: return "312116";
+ case _312200: return "312200";
+ case _312211: return "312211";
+ case _312212: return "312212";
+ case _312300: return "312300";
+ case _312311: return "312311";
+ case _312312: return "312312";
+ case _312400: return "312400";
+ case _312411: return "312411";
+ case _312412: return "312412";
+ case _312500: return "312500";
+ case _312511: return "312511";
+ case _312512: return "312512";
+ case _312611: return "312611";
+ case _312900: return "312900";
+ case _312911: return "312911";
+ case _312912: return "312912";
+ case _312913: return "312913";
+ case _312999: return "312999";
+ case _313000: return "313000";
+ case _313100: return "313100";
+ case _313111: return "313111";
+ case _313112: return "313112";
+ case _313113: return "313113";
+ case _313199: return "313199";
+ case _313200: return "313200";
+ case _313211: return "313211";
+ case _313212: return "313212";
+ case _313213: return "313213";
+ case _313214: return "313214";
+ case _320000: return "320000";
+ case _321000: return "321000";
+ case _321111: return "321111";
+ case _321200: return "321200";
+ case _321211: return "321211";
+ case _321212: return "321212";
+ case _321213: return "321213";
+ case _321214: return "321214";
+ case _322000: return "322000";
+ case _322100: return "322100";
+ case _322111: return "322111";
+ case _322112: return "322112";
+ case _322113: return "322113";
+ case _322114: return "322114";
+ case _322115: return "322115";
+ case _322211: return "322211";
+ case _322300: return "322300";
+ case _322311: return "322311";
+ case _322312: return "322312";
+ case _322313: return "322313";
+ case _323000: return "323000";
+ case _323100: return "323100";
+ case _323111: return "323111";
+ case _323112: return "323112";
+ case _323113: return "323113";
+ case _323200: return "323200";
+ case _323211: return "323211";
+ case _323212: return "323212";
+ case _323213: return "323213";
+ case _323214: return "323214";
+ case _323215: return "323215";
+ case _323299: return "323299";
+ case _323300: return "323300";
+ case _323311: return "323311";
+ case _323312: return "323312";
+ case _323313: return "323313";
+ case _323314: return "323314";
+ case _323315: return "323315";
+ case _323316: return "323316";
+ case _323400: return "323400";
+ case _323411: return "323411";
+ case _323412: return "323412";
+ case _324000: return "324000";
+ case _324111: return "324111";
+ case _324200: return "324200";
+ case _324211: return "324211";
+ case _324212: return "324212";
+ case _324311: return "324311";
+ case _330000: return "330000";
+ case _331000: return "331000";
+ case _331100: return "331100";
+ case _331111: return "331111";
+ case _331112: return "331112";
+ case _331211: return "331211";
+ case _331212: return "331212";
+ case _331213: return "331213";
+ case _332000: return "332000";
+ case _332111: return "332111";
+ case _332211: return "332211";
+ case _333000: return "333000";
+ case _333111: return "333111";
+ case _333200: return "333200";
+ case _333211: return "333211";
+ case _333212: return "333212";
+ case _333311: return "333311";
+ case _333411: return "333411";
+ case _334100: return "334100";
+ case _334111: return "334111";
+ case _334112: return "334112";
+ case _334113: return "334113";
+ case _334114: return "334114";
+ case _334115: return "334115";
+ case _340000: return "340000";
+ case _341100: return "341100";
+ case _341111: return "341111";
+ case _341112: return "341112";
+ case _341113: return "341113";
+ case _342000: return "342000";
+ case _342111: return "342111";
+ case _342200: return "342200";
+ case _342211: return "342211";
+ case _342212: return "342212";
+ case _342300: return "342300";
+ case _342311: return "342311";
+ case _342312: return "342312";
+ case _342313: return "342313";
+ case _342314: return "342314";
+ case _342315: return "342315";
+ case _342400: return "342400";
+ case _342411: return "342411";
+ case _342412: return "342412";
+ case _342413: return "342413";
+ case _342414: return "342414";
+ case _351000: return "351000";
+ case _351100: return "351100";
+ case _351111: return "351111";
+ case _351112: return "351112";
+ case _351211: return "351211";
+ case _351311: return "351311";
+ case _351411: return "351411";
+ case _360000: return "360000";
+ case _361000: return "361000";
+ case _361100: return "361100";
+ case _361111: return "361111";
+ case _361112: return "361112";
+ case _361113: return "361113";
+ case _361114: return "361114";
+ case _361199: return "361199";
+ case _361211: return "361211";
+ case _361311: return "361311";
+ case _362000: return "362000";
+ case _362111: return "362111";
+ case _362200: return "362200";
+ case _362211: return "362211";
+ case _362212: return "362212";
+ case _362213: return "362213";
+ case _362311: return "362311";
+ case _362411: return "362411";
+ case _390000: return "390000";
+ case _391111: return "391111";
+ case _392000: return "392000";
+ case _392100: return "392100";
+ case _392111: return "392111";
+ case _392112: return "392112";
+ case _392211: return "392211";
+ case _392300: return "392300";
+ case _392311: return "392311";
+ case _392312: return "392312";
+ case _393000: return "393000";
+ case _393100: return "393100";
+ case _393111: return "393111";
+ case _393112: return "393112";
+ case _393113: return "393113";
+ case _393114: return "393114";
+ case _393200: return "393200";
+ case _393211: return "393211";
+ case _393212: return "393212";
+ case _393213: return "393213";
+ case _393299: return "393299";
+ case _393311: return "393311";
+ case _394000: return "394000";
+ case _394111: return "394111";
+ case _394200: return "394200";
+ case _394211: return "394211";
+ case _394212: return "394212";
+ case _394213: return "394213";
+ case _394214: return "394214";
+ case _394299: return "394299";
+ case _399000: return "399000";
+ case _399100: return "399100";
+ case _399111: return "399111";
+ case _399112: return "399112";
+ case _399200: return "399200";
+ case _399211: return "399211";
+ case _399212: return "399212";
+ case _399213: return "399213";
+ case _399300: return "399300";
+ case _399311: return "399311";
+ case _399312: return "399312";
+ case _399411: return "399411";
+ case _399500: return "399500";
+ case _399511: return "399511";
+ case _399512: return "399512";
+ case _399513: return "399513";
+ case _399514: return "399514";
+ case _399515: return "399515";
+ case _399516: return "399516";
+ case _399517: return "399517";
+ case _399599: return "399599";
+ case _399611: return "399611";
+ case _399900: return "399900";
+ case _399911: return "399911";
+ case _399912: return "399912";
+ case _399913: return "399913";
+ case _399914: return "399914";
+ case _399915: return "399915";
+ case _399916: return "399916";
+ case _399917: return "399917";
+ case _399999: return "399999";
+ case _400000: return "400000";
+ case _411000: return "411000";
+ case _411100: return "411100";
+ case _411111: return "411111";
+ case _411112: return "411112";
+ case _411200: return "411200";
+ case _411211: return "411211";
+ case _411212: return "411212";
+ case _411213: return "411213";
+ case _411214: return "411214";
+ case _411311: return "411311";
+ case _411400: return "411400";
+ case _411411: return "411411";
+ case _411412: return "411412";
+ case _411511: return "411511";
+ case _411611: return "411611";
+ case _411700: return "411700";
+ case _411711: return "411711";
+ case _411712: return "411712";
+ case _411713: return "411713";
+ case _411714: return "411714";
+ case _411715: return "411715";
+ case _411716: return "411716";
+ case _420000: return "420000";
+ case _421100: return "421100";
+ case _421111: return "421111";
+ case _421112: return "421112";
+ case _421113: return "421113";
+ case _421114: return "421114";
+ case _422100: return "422100";
+ case _422111: return "422111";
+ case _422112: return "422112";
+ case _422115: return "422115";
+ case _422116: return "422116";
+ case _423000: return "423000";
+ case _423111: return "423111";
+ case _423211: return "423211";
+ case _423300: return "423300";
+ case _423311: return "423311";
+ case _423312: return "423312";
+ case _423313: return "423313";
+ case _423314: return "423314";
+ case _423400: return "423400";
+ case _423411: return "423411";
+ case _423412: return "423412";
+ case _423413: return "423413";
+ case _431000: return "431000";
+ case _431100: return "431100";
+ case _431111: return "431111";
+ case _431112: return "431112";
+ case _431211: return "431211";
+ case _431311: return "431311";
+ case _431411: return "431411";
+ case _431511: return "431511";
+ case _431900: return "431900";
+ case _431911: return "431911";
+ case _431912: return "431912";
+ case _431999: return "431999";
+ case _440000: return "440000";
+ case _441000: return "441000";
+ case _441111: return "441111";
+ case _441200: return "441200";
+ case _441211: return "441211";
+ case _441212: return "441212";
+ case _441300: return "441300";
+ case _441311: return "441311";
+ case _441312: return "441312";
+ case _442000: return "442000";
+ case _442111: return "442111";
+ case _442200: return "442200";
+ case _442211: return "442211";
+ case _442212: return "442212";
+ case _442213: return "442213";
+ case _442214: return "442214";
+ case _442215: return "442215";
+ case _442216: return "442216";
+ case _442217: return "442217";
+ case _442299: return "442299";
+ case _450000: return "450000";
+ case _451000: return "451000";
+ case _451111: return "451111";
+ case _451211: return "451211";
+ case _451300: return "451300";
+ case _451311: return "451311";
+ case _451399: return "451399";
+ case _451400: return "451400";
+ case _451411: return "451411";
+ case _451412: return "451412";
+ case _451500: return "451500";
+ case _451511: return "451511";
+ case _451512: return "451512";
+ case _451600: return "451600";
+ case _451611: return "451611";
+ case _451612: return "451612";
+ case _451700: return "451700";
+ case _451711: return "451711";
+ case _451799: return "451799";
+ case _451800: return "451800";
+ case _451811: return "451811";
+ case _451812: return "451812";
+ case _451813: return "451813";
+ case _451899: return "451899";
+ case _452000: return "452000";
+ case _452111: return "452111";
+ case _452200: return "452200";
+ case _452211: return "452211";
+ case _452212: return "452212";
+ case _452213: return "452213";
+ case _452214: return "452214";
+ case _452215: return "452215";
+ case _452216: return "452216";
+ case _452217: return "452217";
+ case _452299: return "452299";
+ case _452300: return "452300";
+ case _452311: return "452311";
+ case _452312: return "452312";
+ case _452313: return "452313";
+ case _452314: return "452314";
+ case _452315: return "452315";
+ case _452316: return "452316";
+ case _452317: return "452317";
+ case _452318: return "452318";
+ case _452321: return "452321";
+ case _452322: return "452322";
+ case _452323: return "452323";
+ case _452400: return "452400";
+ case _452411: return "452411";
+ case _452412: return "452412";
+ case _452413: return "452413";
+ case _452414: return "452414";
+ case _452499: return "452499";
+ case _500000: return "500000";
+ case _510000: return "510000";
+ case _511100: return "511100";
+ case _511111: return "511111";
+ case _511112: return "511112";
+ case _512000: return "512000";
+ case _512111: return "512111";
+ case _512200: return "512200";
+ case _512211: return "512211";
+ case _512299: return "512299";
+ case _521000: return "521000";
+ case _521111: return "521111";
+ case _521200: return "521200";
+ case _521211: return "521211";
+ case _521212: return "521212";
+ case _530000: return "530000";
+ case _531111: return "531111";
+ case _532100: return "532100";
+ case _532111: return "532111";
+ case _532112: return "532112";
+ case _532113: return "532113";
+ case _540000: return "540000";
+ case _541000: return "541000";
+ case _541100: return "541100";
+ case _541111: return "541111";
+ case _541112: return "541112";
+ case _541211: return "541211";
+ case _542100: return "542100";
+ case _542111: return "542111";
+ case _542112: return "542112";
+ case _542113: return "542113";
+ case _542114: return "542114";
+ case _550000: return "550000";
+ case _551000: return "551000";
+ case _551100: return "551100";
+ case _551111: return "551111";
+ case _551112: return "551112";
+ case _551211: return "551211";
+ case _551311: return "551311";
+ case _552000: return "552000";
+ case _552111: return "552111";
+ case _552211: return "552211";
+ case _552300: return "552300";
+ case _552311: return "552311";
+ case _552312: return "552312";
+ case _552313: return "552313";
+ case _552314: return "552314";
+ case _561000: return "561000";
+ case _561100: return "561100";
+ case _561111: return "561111";
+ case _561112: return "561112";
+ case _561113: return "561113";
+ case _561199: return "561199";
+ case _561200: return "561200";
+ case _561211: return "561211";
+ case _561212: return "561212";
+ case _561311: return "561311";
+ case _561400: return "561400";
+ case _561411: return "561411";
+ case _561412: return "561412";
+ case _561511: return "561511";
+ case _561611: return "561611";
+ case _561900: return "561900";
+ case _561911: return "561911";
+ case _561912: return "561912";
+ case _561913: return "561913";
+ case _561999: return "561999";
+ case _590000: return "590000";
+ case _591000: return "591000";
+ case _591100: return "591100";
+ case _591111: return "591111";
+ case _591112: return "591112";
+ case _591113: return "591113";
+ case _591114: return "591114";
+ case _591115: return "591115";
+ case _591116: return "591116";
+ case _591200: return "591200";
+ case _591211: return "591211";
+ case _591212: return "591212";
+ case _599000: return "599000";
+ case _599100: return "599100";
+ case _599111: return "599111";
+ case _599112: return "599112";
+ case _599200: return "599200";
+ case _599211: return "599211";
+ case _599212: return "599212";
+ case _599213: return "599213";
+ case _599214: return "599214";
+ case _599215: return "599215";
+ case _599311: return "599311";
+ case _599411: return "599411";
+ case _599500: return "599500";
+ case _599511: return "599511";
+ case _599512: return "599512";
+ case _599513: return "599513";
+ case _599514: return "599514";
+ case _599515: return "599515";
+ case _599516: return "599516";
+ case _599517: return "599517";
+ case _599518: return "599518";
+ case _599521: return "599521";
+ case _599599: return "599599";
+ case _599600: return "599600";
+ case _599611: return "599611";
+ case _599612: return "599612";
+ case _599613: return "599613";
+ case _599711: return "599711";
+ case _599900: return "599900";
+ case _599911: return "599911";
+ case _599912: return "599912";
+ case _599913: return "599913";
+ case _599914: return "599914";
+ case _599999: return "599999";
+ case _600000: return "600000";
+ case _610000: return "610000";
+ case _611000: return "611000";
+ case _611100: return "611100";
+ case _611111: return "611111";
+ case _611112: return "611112";
+ case _611211: return "611211";
+ case _611300: return "611300";
+ case _611311: return "611311";
+ case _611312: return "611312";
+ case _611313: return "611313";
+ case _611314: return "611314";
+ case _611399: return "611399";
+ case _612100: return "612100";
+ case _612111: return "612111";
+ case _612112: return "612112";
+ case _612113: return "612113";
+ case _612114: return "612114";
+ case _612115: return "612115";
+ case _621000: return "621000";
+ case _621111: return "621111";
+ case _621211: return "621211";
+ case _621300: return "621300";
+ case _621311: return "621311";
+ case _621312: return "621312";
+ case _621411: return "621411";
+ case _621511: return "621511";
+ case _621611: return "621611";
+ case _621700: return "621700";
+ case _621711: return "621711";
+ case _621712: return "621712";
+ case _621713: return "621713";
+ case _621900: return "621900";
+ case _621911: return "621911";
+ case _621912: return "621912";
+ case _621999: return "621999";
+ case _630000: return "630000";
+ case _631100: return "631100";
+ case _631111: return "631111";
+ case _631112: return "631112";
+ case _639000: return "639000";
+ case _639100: return "639100";
+ case _639111: return "639111";
+ case _639112: return "639112";
+ case _639200: return "639200";
+ case _639211: return "639211";
+ case _639212: return "639212";
+ case _639311: return "639311";
+ case _639400: return "639400";
+ case _639411: return "639411";
+ case _639412: return "639412";
+ case _639511: return "639511";
+ case _639911: return "639911";
+ case _700000: return "700000";
+ case _710000: return "710000";
+ case _711000: return "711000";
+ case _711100: return "711100";
+ case _711111: return "711111";
+ case _711112: return "711112";
+ case _711113: return "711113";
+ case _711114: return "711114";
+ case _711199: return "711199";
+ case _711211: return "711211";
+ case _711300: return "711300";
+ case _711311: return "711311";
+ case _711312: return "711312";
+ case _711411: return "711411";
+ case _711500: return "711500";
+ case _711511: return "711511";
+ case _711512: return "711512";
+ case _711513: return "711513";
+ case _711514: return "711514";
+ case _711515: return "711515";
+ case _711516: return "711516";
+ case _711599: return "711599";
+ case _711611: return "711611";
+ case _711700: return "711700";
+ case _711711: return "711711";
+ case _711712: return "711712";
+ case _711713: return "711713";
+ case _711714: return "711714";
+ case _711715: return "711715";
+ case _711716: return "711716";
+ case _711799: return "711799";
+ case _711900: return "711900";
+ case _711911: return "711911";
+ case _711912: return "711912";
+ case _711913: return "711913";
+ case _711914: return "711914";
+ case _711999: return "711999";
+ case _712000: return "712000";
+ case _712111: return "712111";
+ case _712200: return "712200";
+ case _712211: return "712211";
+ case _712212: return "712212";
+ case _712213: return "712213";
+ case _712311: return "712311";
+ case _712900: return "712900";
+ case _712911: return "712911";
+ case _712912: return "712912";
+ case _712913: return "712913";
+ case _712914: return "712914";
+ case _712915: return "712915";
+ case _712916: return "712916";
+ case _712917: return "712917";
+ case _712918: return "712918";
+ case _712921: return "712921";
+ case _712922: return "712922";
+ case _712999: return "712999";
+ case _721000: return "721000";
+ case _721100: return "721100";
+ case _721111: return "721111";
+ case _721112: return "721112";
+ case _721200: return "721200";
+ case _721211: return "721211";
+ case _721212: return "721212";
+ case _721213: return "721213";
+ case _721214: return "721214";
+ case _721215: return "721215";
+ case _721216: return "721216";
+ case _721311: return "721311";
+ case _721900: return "721900";
+ case _721911: return "721911";
+ case _721912: return "721912";
+ case _721913: return "721913";
+ case _721914: return "721914";
+ case _721915: return "721915";
+ case _721916: return "721916";
+ case _721999: return "721999";
+ case _730000: return "730000";
+ case _731000: return "731000";
+ case _731100: return "731100";
+ case _731111: return "731111";
+ case _731112: return "731112";
+ case _731199: return "731199";
+ case _731200: return "731200";
+ case _731211: return "731211";
+ case _731212: return "731212";
+ case _731213: return "731213";
+ case _731300: return "731300";
+ case _731311: return "731311";
+ case _731312: return "731312";
+ case _732111: return "732111";
+ case _733100: return "733100";
+ case _733111: return "733111";
+ case _733112: return "733112";
+ case _733113: return "733113";
+ case _733114: return "733114";
+ case _733115: return "733115";
+ case _741111: return "741111";
+ case _800000: return "800000";
+ case _811000: return "811000";
+ case _811111: return "811111";
+ case _811211: return "811211";
+ case _811311: return "811311";
+ case _811400: return "811400";
+ case _811411: return "811411";
+ case _811412: return "811412";
+ case _811500: return "811500";
+ case _811511: return "811511";
+ case _811512: return "811512";
+ case _811513: return "811513";
+ case _811600: return "811600";
+ case _811611: return "811611";
+ case _811612: return "811612";
+ case _811699: return "811699";
+ case _821000: return "821000";
+ case _821100: return "821100";
+ case _821111: return "821111";
+ case _821112: return "821112";
+ case _821113: return "821113";
+ case _821114: return "821114";
+ case _821211: return "821211";
+ case _821311: return "821311";
+ case _821400: return "821400";
+ case _821411: return "821411";
+ case _821412: return "821412";
+ case _821511: return "821511";
+ case _821611: return "821611";
+ case _821700: return "821700";
+ case _821711: return "821711";
+ case _821712: return "821712";
+ case _821713: return "821713";
+ case _821714: return "821714";
+ case _821900: return "821900";
+ case _821911: return "821911";
+ case _821912: return "821912";
+ case _821913: return "821913";
+ case _821914: return "821914";
+ case _821915: return "821915";
+ case _830000: return "830000";
+ case _831000: return "831000";
+ case _831100: return "831100";
+ case _831111: return "831111";
+ case _831112: return "831112";
+ case _831113: return "831113";
+ case _831114: return "831114";
+ case _831115: return "831115";
+ case _831116: return "831116";
+ case _831117: return "831117";
+ case _831118: return "831118";
+ case _831199: return "831199";
+ case _831200: return "831200";
+ case _831211: return "831211";
+ case _831212: return "831212";
+ case _831300: return "831300";
+ case _831311: return "831311";
+ case _831312: return "831312";
+ case _831313: return "831313";
+ case _832000: return "832000";
+ case _832100: return "832100";
+ case _832111: return "832111";
+ case _832112: return "832112";
+ case _832113: return "832113";
+ case _832114: return "832114";
+ case _832115: return "832115";
+ case _832199: return "832199";
+ case _832211: return "832211";
+ case _839000: return "839000";
+ case _839111: return "839111";
+ case _839200: return "839200";
+ case _839211: return "839211";
+ case _839212: return "839212";
+ case _839300: return "839300";
+ case _839311: return "839311";
+ case _839312: return "839312";
+ case _839313: return "839313";
+ case _839400: return "839400";
+ case _839411: return "839411";
+ case _839412: return "839412";
+ case _839413: return "839413";
+ case _839900: return "839900";
+ case _839911: return "839911";
+ case _839912: return "839912";
+ case _839913: return "839913";
+ case _839914: return "839914";
+ case _839915: return "839915";
+ case _839916: return "839916";
+ case _839917: return "839917";
+ case _839999: return "839999";
+ case _841000: return "841000";
+ case _841111: return "841111";
+ case _841200: return "841200";
+ case _841211: return "841211";
+ case _841212: return "841212";
+ case _841213: return "841213";
+ case _841214: return "841214";
+ case _841215: return "841215";
+ case _841216: return "841216";
+ case _841299: return "841299";
+ case _841300: return "841300";
+ case _841311: return "841311";
+ case _841312: return "841312";
+ case _841313: return "841313";
+ case _841400: return "841400";
+ case _841411: return "841411";
+ case _841412: return "841412";
+ case _841500: return "841500";
+ case _841511: return "841511";
+ case _841512: return "841512";
+ case _841513: return "841513";
+ case _841514: return "841514";
+ case _841515: return "841515";
+ case _841516: return "841516";
+ case _841517: return "841517";
+ case _841599: return "841599";
+ case _841611: return "841611";
+ case _841900: return "841900";
+ case _841911: return "841911";
+ case _841912: return "841912";
+ case _841999: return "841999";
+ case _851000: return "851000";
+ case _851111: return "851111";
+ case _851200: return "851200";
+ case _851211: return "851211";
+ case _851299: return "851299";
+ case _851311: return "851311";
+ case _890000: return "890000";
+ case _891000: return "891000";
+ case _891100: return "891100";
+ case _891111: return "891111";
+ case _891112: return "891112";
+ case _891113: return "891113";
+ case _891211: return "891211";
+ case _899000: return "899000";
+ case _899111: return "899111";
+ case _899200: return "899200";
+ case _899211: return "899211";
+ case _899212: return "899212";
+ case _899311: return "899311";
+ case _899400: return "899400";
+ case _899411: return "899411";
+ case _899412: return "899412";
+ case _899413: return "899413";
+ case _899414: return "899414";
+ case _899415: return "899415";
+ case _899500: return "899500";
+ case _899511: return "899511";
+ case _899512: return "899512";
+ case _899611: return "899611";
+ case _899711: return "899711";
+ case _899900: return "899900";
+ case _899911: return "899911";
+ case _899912: return "899912";
+ case _899913: return "899913";
+ case _899914: return "899914";
+ case _899915: return "899915";
+ case _899916: return "899916";
+ case _899917: return "899917";
+ case _899918: return "899918";
+ case _899921: return "899921";
+ case _899922: return "899922";
+ case _899999: return "899999";
+ default: return "?";
+ }
+ }
+ public String getSystem() {
+ return "http://www.abs.gov.au/ausstats/abs@.nsf/mf/1220.0";
+ }
+ public String getDefinition() {
+ switch (this) {
+ case _100000: return "Managers nfd";
+ case _111000: return "Chief Executives, General Managers and Legislators nfd";
+ case _111111: return "Chief Executive or Managing Director";
+ case _111200: return "General Managers nfd";
+ case _111211: return "Corporate General Manager";
+ case _111212: return "Defence Force Senior Officer";
+ case _111300: return "Legislators nfd";
+ case _111311: return "Local Government Legislator";
+ case _111312: return "Member of Parliament";
+ case _111399: return "Legislators nec";
+ case _121000: return "Farmers and Farm Managers nfd";
+ case _121111: return "Aquaculture Farmer";
+ case _121200: return "Crop Farmers nfd";
+ case _121211: return "Cotton Grower";
+ case _121212: return "Flower Grower";
+ case _121213: return "Fruit or Nut Grower";
+ case _121214: return "Grain, Oilseed or Pasture Grower";
+ case _121215: return "Grape Grower";
+ case _121216: return "Mixed Crop Farmer";
+ case _121217: return "Sugar Cane Grower";
+ case _121218: return "Turf Grower";
+ case _121221: return "Vegetable Grower";
+ case _121299: return "Crop Farmers nec";
+ case _121300: return "Livestock Farmers nfd";
+ case _121311: return "Apiarist";
+ case _121312: return "Beef Cattle Farmer";
+ case _121313: return "Dairy Cattle Farmer";
+ case _121314: return "Deer Farmer";
+ case _121315: return "Goat Farmer";
+ case _121316: return "Horse Breeder";
+ case _121317: return "Mixed Livestock Farmer";
+ case _121318: return "Pig Farmer";
+ case _121321: return "Poultry Farmer";
+ case _121322: return "Sheep Farmer";
+ case _121399: return "Livestock Farmers nec";
+ case _121411: return "Mixed Crop and Livestock Farmer";
+ case _130000: return "Specialist Managers nfd";
+ case _131100: return "Advertising and Sales Managers nfd";
+ case _131111: return "Advertising and Public Relations Manager";
+ case _131112: return "Sales and Marketing Manager";
+ case _132000: return "Business Administration Managers nfd";
+ case _132111: return "Corporate Services Manager";
+ case _132211: return "Finance Manager";
+ case _132311: return "Human Resource Manager";
+ case _132411: return "Policy and Planning Manager";
+ case _132511: return "Research and Development Manager";
+ case _133000: return "Construction, Distribution and Production Managers nfd";
+ case _133100: return "Construction Managers nfd";
+ case _133111: return "Construction Project Manager";
+ case _133112: return "Project Builder";
+ case _133211: return "Engineering Manager";
+ case _133300: return "Importers, Exporters and Wholesalers nfd";
+ case _133311: return "Importer or Exporter";
+ case _133312: return "Wholesaler";
+ case _133411: return "Manufacturer";
+ case _133500: return "Production Managers nfd";
+ case _133511: return "Production Manager (Forestry)";
+ case _133512: return "Production Manager (Manufacturing)";
+ case _133513: return "Production Manager (Mining)";
+ case _133611: return "Supply and Distribution Manager";
+ case _134000: return "Education, Health and Welfare Services Managers nfd";
+ case _134111: return "Child Care Centre Manager";
+ case _134200: return "Health and Welfare Services Managers nfd";
+ case _134211: return "Medical Administrator";
+ case _134212: return "Nursing Clinical Director";
+ case _134213: return "Primary Health Organization Manager";
+ case _134214: return "Welfare Centre Manager";
+ case _134299: return "Health and Welfare Services Managers nec";
+ case _134311: return "School Principal";
+ case _134400: return "Other Education Managers nfd";
+ case _134411: return "Faculty Head";
+ case _134412: return "Regional Education Manager";
+ case _134499: return "Education Managers nec";
+ case _135100: return "ICT Managers nfd";
+ case _135111: return "Chief Information Officer";
+ case _135112: return "ICT Project Manager";
+ case _135199: return "ICT Managers nec";
+ case _139000: return "Miscellaneous Specialist Managers nfd";
+ case _139100: return "Commissioned Officers (Management) nfd";
+ case _139111: return "Commissioned Defence Force Officer";
+ case _139112: return "Commissioned Fire Officer";
+ case _139113: return "Commissioned Police Officer";
+ case _139211: return "Senior Non-commissioned Defence Force Member";
+ case _139900: return "Other Specialist Managers nfd";
+ case _139911: return "Arts Administrator or Manager";
+ case _139912: return "Environmental Manager";
+ case _139913: return "Laboratory Manager";
+ case _139914: return "Quality Assurance Manager";
+ case _139915: return "Sports Administrator";
+ case _139999: return "Specialist Managers nec";
+ case _140000: return "Hospitality, Retail and Service Managers nfd";
+ case _141000: return "Accommodation and Hospitality Managers nfd";
+ case _141111: return "Cafe or Restaurant Manager";
+ case _141211: return "Caravan Park and Camping Ground Manager";
+ case _141311: return "Hotel or Motel Manager";
+ case _141411: return "Licensed Club Manager";
+ case _141900: return "Other Accommodation and Hospitality Managers nfd";
+ case _141911: return "Bed and Breakfast Operator";
+ case _141999: return "Accommodation and Hospitality Managers nec";
+ case _142100: return "Retail Managers nfd";
+ case _142111: return "Retail Manager (General)";
+ case _142112: return "Antique Dealer";
+ case _142113: return "Betting Agency Manager";
+ case _142114: return "Hair or Beauty Salon Manager";
+ case _142115: return "Post Office Manager";
+ case _142116: return "Travel Agency Manager";
+ case _149000: return "Miscellaneous Hospitality, Retail and Service Managers nfd";
+ case _149100: return "Amusement, Fitness and Sports Centre Managers nfd";
+ case _149111: return "Amusement Centre Manager";
+ case _149112: return "Fitness Centre Manager";
+ case _149113: return "Sports Centre Manager";
+ case _149200: return "Call or Contact Centre and Customer Service Managers nfd";
+ case _149211: return "Call or Contact Centre Manager";
+ case _149212: return "Customer Service Manager";
+ case _149311: return "Conference and Event Organiser";
+ case _149400: return "Transport Services Managers nfd";
+ case _149411: return "Fleet Manager";
+ case _149412: return "Railway Station Manager";
+ case _149413: return "Transport Company Manager";
+ case _149900: return "Other Hospitality, Retail and Service Managers nfd";
+ case _149911: return "Boarding Kennel or Cattery Operator";
+ case _149912: return "Cinema or Theatre Manager";
+ case _149913: return "Facilities Manager";
+ case _149914: return "Financial Institution Branch Manager";
+ case _149999: return "Hospitality, Retail and Service Managers nec";
+ case _200000: return "Professionals nfd";
+ case _210000: return "Arts and Media Professionals nfd";
+ case _211000: return "Arts Professionals nfd";
+ case _211100: return "Actors, Dancers and Other Entertainers nfd";
+ case _211111: return "Actor";
+ case _211112: return "Dancer or Choreographer";
+ case _211113: return "Entertainer or Variety Artist";
+ case _211199: return "Actors, Dancers and Other Entertainers nec";
+ case _211200: return "Music Professionals nfd";
+ case _211211: return "Composer";
+ case _211212: return "Music Director";
+ case _211213: return "Musician (Instrumental)";
+ case _211214: return "Singer";
+ case _211299: return "Music Professionals nec";
+ case _211311: return "Photographer";
+ case _211400: return "Visual Arts and Crafts Professionals nfd";
+ case _211411: return "Painter (Visual Arts)";
+ case _211412: return "Potter or Ceramic Artist";
+ case _211413: return "Sculptor";
+ case _211499: return "Visual Arts and Crafts Professionals nec";
+ case _212000: return "Media Professionals nfd";
+ case _212100: return "Artistic Directors, and Media Producers and Presenters nfd";
+ case _212111: return "Artistic Director";
+ case _212112: return "Media Producer (excluding Video)";
+ case _212113: return "Radio Presenter";
+ case _212114: return "Television Presenter";
+ case _212200: return "Authors, and Book and Script Editors nfd";
+ case _212211: return "Author";
+ case _212212: return "Book or Script Editor";
+ case _212300: return "Film, Television, Radio and Stage Directors nfd";
+ case _212311: return "Art Director (Film, Television or Stage)";
+ case _212312: return "Director (Film, Television, Radio or Stage)";
+ case _212313: return "Director of Photography";
+ case _212314: return "Film and Video Editor";
+ case _212315: return "Program Director (Television or Radio)";
+ case _212316: return "Stage Manager";
+ case _212317: return "Technical Director";
+ case _212318: return "Video Producer";
+ case _212399: return "Film, Television, Radio and Stage Directors nec";
+ case _212400: return "Journalists and Other Writers nfd";
+ case _212411: return "Copywriter";
+ case _212412: return "Newspaper or Periodical Editor";
+ case _212413: return "Print Journalist";
+ case _212414: return "Radio Journalist";
+ case _212415: return "Technical Writer";
+ case _212416: return "Television Journalist";
+ case _212499: return "Journalists and Other Writers nec";
+ case _220000: return "Business, Human Resource and Marketing Professionals nfd";
+ case _221000: return "Accountants, Auditors and Company Secretaries nfd";
+ case _221100: return "Accountants nfd";
+ case _221111: return "Accountant (General)";
+ case _221112: return "Management Accountant";
+ case _221113: return "Taxation Accountant";
+ case _221200: return "Auditors, Company Secretaries and Corporate Treasurers nfd";
+ case _221211: return "Company Secretary";
+ case _221212: return "Corporate Treasurer";
+ case _221213: return "External Auditor";
+ case _221214: return "Internal Auditor";
+ case _222000: return "Financial Brokers and Dealers, and Investment Advisers nfd";
+ case _222100: return "Financial Brokers nfd";
+ case _222111: return "Commodities Trader";
+ case _222112: return "Finance Broker";
+ case _222113: return "Insurance Broker";
+ case _222199: return "Financial Brokers nec";
+ case _222200: return "Financial Dealers nfd";
+ case _222211: return "Financial Market Dealer";
+ case _222212: return "Futures Trader";
+ case _222213: return "Stockbroking Dealer";
+ case _222299: return "Financial Dealers nec";
+ case _222300: return "Financial Investment Advisers and Managers nfd";
+ case _222311: return "Financial Investment Adviser";
+ case _222312: return "Financial Investment Manager";
+ case _223000: return "Human Resource and Training Professionals nfd";
+ case _223100: return "Human Resource Professionals nfd";
+ case _223111: return "Human Resource Adviser";
+ case _223112: return "Recruitment Consultant";
+ case _223113: return "Workplace Relations Adviser";
+ case _223211: return "ICT Trainer";
+ case _223311: return "Training and Development Professional";
+ case _224000: return "Information and Organization Professionals nfd";
+ case _224100: return "Actuaries, Mathematicians and Statisticians nfd";
+ case _224111: return "Actuary";
+ case _224112: return "Mathematician";
+ case _224113: return "Statistician";
+ case _224200: return "Archivists, Curators and Records Managers nfd";
+ case _224211: return "Archivist";
+ case _224212: return "Gallery or Museum Curator";
+ case _224213: return "Health Information Manager";
+ case _224214: return "Records Manager";
+ case _224311: return "Economist";
+ case _224400: return "Intelligence and Policy Analysts nfd";
+ case _224411: return "Intelligence Officer";
+ case _224412: return "Policy Analyst";
+ case _224500: return "Land Economists and Valuers nfd";
+ case _224511: return "Land Economist";
+ case _224512: return "Valuer";
+ case _224611: return "Librarian";
+ case _224700: return "Management and Organization Analysts nfd";
+ case _224711: return "Management Consultant";
+ case _224712: return "Organization and Methods Analyst";
+ case _224900: return "Other Information and Organization Professionals nfd";
+ case _224911: return "Electorate Officer";
+ case _224912: return "Liaison Officer";
+ case _224913: return "Migration Agent";
+ case _224914: return "Patents Examiner";
+ case _224999: return "Information and Organization Professionals nec";
+ case _225000: return "Sales, Marketing and Public Relations Professionals nfd";
+ case _225100: return "Advertising and Marketing Professionals nfd";
+ case _225111: return "Advertising Specialist";
+ case _225112: return "Market Research Analyst";
+ case _225113: return "Marketing Specialist";
+ case _225200: return "ICT Sales Professionals nfd";
+ case _225211: return "ICT Account Manager";
+ case _225212: return "ICT Business Development Manager";
+ case _225213: return "ICT Sales Representative";
+ case _225311: return "Public Relations Professional";
+ case _225400: return "Technical Sales Representatives nfd";
+ case _225411: return "Sales Representative (Industrial Products)";
+ case _225412: return "Sales Representative (Medical and Pharmaceutical Products)";
+ case _225499: return "Technical Sales Representatives nec";
+ case _230000: return "Design, Engineering, Science and Transport Professionals nfd";
+ case _231000: return "Air and Marine Transport Professionals nfd";
+ case _231100: return "Air Transport Professionals nfd";
+ case _231111: return "Aeroplane Pilot";
+ case _231112: return "Air Traffic Controller";
+ case _231113: return "Flying Instructor";
+ case _231114: return "Helicopter Pilot";
+ case _231199: return "Air Transport Professionals nec";
+ case _231200: return "Marine Transport Professionals nfd";
+ case _231211: return "Master Fisher";
+ case _231212: return "Ship's Engineer";
+ case _231213: return "Ship's Master";
+ case _231214: return "Ship's Officer";
+ case _231215: return "Ship's Surveyor";
+ case _231299: return "Marine Transport Professionals nec";
+ case _232000: return "Architects, Designers, Planners and Surveyors nfd";
+ case _232100: return "Architects and Landscape Architects nfd";
+ case _232111: return "Architect";
+ case _232112: return "Landscape Architect";
+ case _232200: return "Cartographers and Surveyors nfd";
+ case _232211: return "Cartographer";
+ case _232212: return "Surveyor";
+ case _232300: return "Fashion, Industrial and Jewellery Designers nfd";
+ case _232311: return "Fashion Designer";
+ case _232312: return "Industrial Designer";
+ case _232313: return "Jewellery Designer";
+ case _232400: return "Graphic and Web Designers, and Illustrators nfd";
+ case _232411: return "Graphic Designer";
+ case _232412: return "Illustrator";
+ case _232413: return "Multimedia Designer";
+ case _232414: return "Web Designer";
+ case _232511: return "Interior Designer";
+ case _232611: return "Urban and Regional Planner";
+ case _233000: return "Engineering Professionals nfd";
+ case _233100: return "Chemical and Materials Engineers nfd";
+ case _233111: return "Chemical Engineer";
+ case _233112: return "Materials Engineer";
+ case _233200: return "Civil Engineering Professionals nfd";
+ case _233211: return "Civil Engineer";
+ case _233212: return "Geotechnical Engineer";
+ case _233213: return "Quantity Surveyor";
+ case _233214: return "Structural Engineer";
+ case _233215: return "Transport Engineer";
+ case _233311: return "Electrical Engineer";
+ case _233411: return "Electronics Engineer";
+ case _233500: return "Industrial, Mechanical and Production Engineers nfd";
+ case _233511: return "Industrial Engineer";
+ case _233512: return "Mechanical Engineer";
+ case _233513: return "Production or Plant Engineer";
+ case _233600: return "Mining Engineers nfd";
+ case _233611: return "Mining Engineer (excluding Petroleum)";
+ case _233612: return "Petroleum Engineer";
+ case _233900: return "Other Engineering Professionals nfd";
+ case _233911: return "Aeronautical Engineer";
+ case _233912: return "Agricultural Engineer";
+ case _233913: return "Biomedical Engineer";
+ case _233914: return "Engineering Technologist";
+ case _233915: return "Environmental Engineer";
+ case _233916: return "Naval Architect";
+ case _233999: return "Engineering Professionals nec";
+ case _234000: return "Natural and Physical Science Professionals nfd";
+ case _234100: return "Agricultural and Forestry Scientists nfd";
+ case _234111: return "Agricultural Consultant";
+ case _234112: return "Agricultural Scientist";
+ case _234113: return "Forester";
+ case _234200: return "Chemists, and Food and Wine Scientists nfd";
+ case _234211: return "Chemist";
+ case _234212: return "Food Technologist";
+ case _234213: return "Wine Maker";
+ case _234300: return "Environmental Scientists nfd";
+ case _234311: return "Conservation Officer";
+ case _234312: return "Environmental Consultant";
+ case _234313: return "Environmental Research Scientist";
+ case _234314: return "Park Ranger";
+ case _234399: return "Environmental Scientists nec";
+ case _234400: return "Geologists and Geophysicists nfd";
+ case _234411: return "Geologist";
+ case _234412: return "Geophysicist";
+ case _234500: return "Life Scientists nfd";
+ case _234511: return "Life Scientist (General)";
+ case _234512: return "Anatomist or Physiologist";
+ case _234513: return "Biochemist";
+ case _234514: return "Biotechnologist";
+ case _234515: return "Botanist";
+ case _234516: return "Marine Biologist";
+ case _234517: return "Microbiologist";
+ case _234518: return "Zoologist";
+ case _234599: return "Life Scientists nec";
+ case _234611: return "Medical Laboratory Scientist";
+ case _234711: return "Veterinarian";
+ case _234900: return "Other Natural and Physical Science Professionals nfd";
+ case _234911: return "Conservator";
+ case _234912: return "Metallurgist";
+ case _234913: return "Meteorologist";
+ case _234914: return "Physicist";
+ case _234999: return "Natural and Physical Science Professionals nec";
+ case _240000: return "Education Professionals nfd";
+ case _241000: return "School Teachers nfd";
+ case _241111: return "Early Childhood (Pre-primary School) Teacher";
+ case _241213: return "Primary School Teacher";
+ case _241311: return "Middle School Teacher";
+ case _241411: return "Secondary School Teacher";
+ case _241500: return "Special Education Teachers nfd";
+ case _241511: return "Special Needs Teacher";
+ case _241512: return "Teacher of the Hearing Impaired";
+ case _241513: return "Teacher of the Sight Impaired";
+ case _241599: return "Special Education Teachers nec";
+ case _242000: return "Tertiary Education Teachers nfd";
+ case _242100: return "University Lecturers and Tutors nfd";
+ case _242111: return "University Lecturer";
+ case _242112: return "University Tutor";
+ case _242211: return "Vocational Education Teacher";
+ case _249000: return "Miscellaneous Education Professionals nfd";
+ case _249100: return "Education Advisers and Reviewers nfd";
+ case _249111: return "Education Adviser";
+ case _249112: return "Education Reviewer";
+ case _249200: return "Private Tutors and Teachers nfd";
+ case _249211: return "Art Teacher (Private Tuition)";
+ case _249212: return "Dance Teacher (Private Tuition)";
+ case _249213: return "Drama Teacher (Private Tuition)";
+ case _249214: return "Music Teacher (Private Tuition)";
+ case _249299: return "Private Tutors and Teachers nec";
+ case _249311: return "Teacher of English to Speakers of Other Languages";
+ case _250000: return "Health Professionals nfd";
+ case _251000: return "Health Diagnostic and Promotion Professionals nfd";
+ case _251111: return "Dietitian";
+ case _251200: return "Medical Imaging Professionals nfd";
+ case _251211: return "Medical Diagnostic Radiographer";
+ case _251212: return "Medical Radiation Therapist";
+ case _251213: return "Nuclear Medicine Technologist";
+ case _251214: return "Sonographer";
+ case _251300: return "Occupational and Environmental Health Professionals nfd";
+ case _251311: return "Environmental Health Officer";
+ case _251312: return "Occupational Health and Safety Adviser";
+ case _251400: return "Optometrists and Orthoptists nfd";
+ case _251411: return "Optometrist";
+ case _251412: return "Orthoptist";
+ case _251500: return "Pharmacists nfd";
+ case _251511: return "Hospital Pharmacist";
+ case _251512: return "Industrial Pharmacist";
+ case _251513: return "Retail Pharmacist";
+ case _251900: return "Other Health Diagnostic and Promotion Professionals nfd";
+ case _251911: return "Health Promotion Officer";
+ case _251912: return "Orthotist or Prosthetist";
+ case _251999: return "Health Diagnostic and Promotion Professionals nec";
+ case _252000: return "Health Therapy Professionals nfd";
+ case _252100: return "Chiropractors and Osteopaths nfd";
+ case _252111: return "Chiropractor";
+ case _252112: return "Osteopath";
+ case _252200: return "Complementary Health Therapists nfd";
+ case _252211: return "Acupuncturist";
+ case _252212: return "Homoeopath";
+ case _252213: return "Naturopath";
+ case _252214: return "Traditional Chinese Medicine Practitioner";
+ case _252299: return "Complementary Health Therapists nec";
+ case _252300: return "Dental Practitioners nfd";
+ case _252311: return "Dental Specialist";
+ case _252312: return "Dentist";
+ case _252411: return "Occupational Therapist";
+ case _252511: return "Physiotherapist";
+ case _252611: return "Podiatrist";
+ case _252700: return "Speech Professionals and Audiologists nfd";
+ case _252711: return "Audiologist";
+ case _252712: return "Speech Pathologist";
+ case _253000: return "Medical Practitioners nfd";
+ case _253100: return "Generalist Medical Practitioners nfd";
+ case _253111: return "General Medical Practitioner";
+ case _253112: return "Resident Medical Officer";
+ case _253211: return "Anaesthetist";
+ case _253300: return "Internal Medicine Specialists nfd";
+ case _253311: return "Specialist Physician (General Medicine)";
+ case _253312: return "Cardiologist";
+ case _253313: return "Clinical Haematologist";
+ case _253314: return "Clinical Oncologist";
+ case _253315: return "Endocrinologist";
+ case _253316: return "Gastroenterologist";
+ case _253317: return "Intensive Care Specialist";
+ case _253318: return "Neurologist";
+ case _253321: return "Paediatrician";
+ case _253322: return "Renal Medicine Specialist";
+ case _253323: return "Rheumatologist";
+ case _253324: return "Thoracic Medicine Specialist";
+ case _253399: return "Internal Medicine Specialists nec";
+ case _253411: return "Psychiatrist";
+ case _253500: return "Surgeons nfd";
+ case _253511: return "Surgeon (General)";
+ case _253512: return "Cardiothoracic Surgeon";
+ case _253513: return "Neurosurgeon";
+ case _253514: return "Orthopaedic Surgeon";
+ case _253515: return "Otorhinolaryngologist";
+ case _253516: return "Paediatric Surgeon";
+ case _253517: return "Plastic and Reconstructive Surgeon";
+ case _253518: return "Urologist";
+ case _253521: return "Vascular Surgeon";
+ case _253900: return "Other Medical Practitioners nfd";
+ case _253911: return "Dermatologist";
+ case _253912: return "Emergency Medicine Specialist";
+ case _253913: return "Obstetrician and Gynaecologist";
+ case _253914: return "Ophthalmologist";
+ case _253915: return "Pathologist";
+ case _253916: return "Radiologist";
+ case _253999: return "Medical Practitioners nec";
+ case _254000: return "Midwifery and Nursing Professionals nfd";
+ case _254111: return "Midwife";
+ case _254200: return "Nurse Educators and Researchers nfd";
+ case _254211: return "Nurse Educator";
+ case _254212: return "Nurse Researcher";
+ case _254311: return "Nurse Manager";
+ case _254400: return "Registered Nurses nfd";
+ case _254411: return "Nurse Practitioner";
+ case _254412: return "Registered Nurse (Aged Care)";
+ case _254413: return "Registered Nurse (Child and Family Health)";
+ case _254414: return "Registered Nurse (Community Health)";
+ case _254415: return "Registered Nurse (Critical Care and Emergency)";
+ case _254416: return "Registered Nurse (Developmental Disability)";
+ case _254417: return "Registered Nurse (Disability and Rehabilitation)";
+ case _254418: return "Registered Nurse (Medical)";
+ case _254421: return "Registered Nurse (Medical Practice)";
+ case _254422: return "Registered Nurse (Mental Health)";
+ case _254423: return "Registered Nurse (Perioperative)";
+ case _254424: return "Registered Nurse (Surgical)";
+ case _254499: return "Registered Nurses nec";
+ case _260000: return "ICT Professionals nfd";
+ case _261000: return "Business and Systems Analysts, and Programmers nfd";
+ case _261100: return "ICT Business and Systems Analysts nfd";
+ case _261111: return "ICT Business Analyst";
+ case _261112: return "Systems Analyst";
+ case _261200: return "Multimedia Specialists and Web Developers nfd";
+ case _261211: return "Multimedia Specialist";
+ case _261212: return "Web Developer";
+ case _261300: return "Software and Applications Programmers nfd";
+ case _261311: return "Analyst Programmer";
+ case _261312: return "Developer Programmer";
+ case _261313: return "Software Engineer";
+ case _261399: return "Software and Applications Programmers nec";
+ case _262100: return "Database and Systems Administrators, and ICT Security Specialists nfd";
+ case _262111: return "Database Administrator";
+ case _262112: return "ICT Security Specialist";
+ case _262113: return "Systems Administrator";
+ case _263000: return "ICT Network and Support Professionals nfd";
+ case _263100: return "Computer Network Professionals nfd";
+ case _263111: return "Computer Network and Systems Engineer";
+ case _263112: return "Network Administrator";
+ case _263113: return "Network Analyst";
+ case _263200: return "ICT Support and Test Engineers nfd";
+ case _263211: return "ICT Quality Assurance Engineer";
+ case _263212: return "ICT Support Engineer";
+ case _263213: return "ICT Systems Test Engineer";
+ case _263299: return "ICT Support and Test Engineers nec";
+ case _263300: return "Telecommunications Engineering Professionals nfd";
+ case _263311: return "Telecommunications Engineer";
+ case _263312: return "Telecommunications Network Engineer";
+ case _270000: return "Legal, Social and Welfare Professionals nfd";
+ case _271000: return "Legal Professionals nfd";
+ case _271111: return "Barrister";
+ case _271200: return "Judicial and Other Legal Professionals nfd";
+ case _271211: return "Judge";
+ case _271212: return "Magistrate";
+ case _271213: return "Tribunal Member";
+ case _271299: return "Judicial and Other Legal Professionals nec";
+ case _271311: return "Solicitor";
+ case _272000: return "Social and Welfare Professionals nfd";
+ case _272100: return "Counsellors nfd";
+ case _272111: return "Careers Counsellor";
+ case _272112: return "Drug and Alcohol Counsellor";
+ case _272113: return "Family and Marriage Counsellor";
+ case _272114: return "Rehabilitation Counsellor";
+ case _272115: return "Student Counsellor";
+ case _272199: return "Counsellors nec";
+ case _272211: return "Minister of Religion";
+ case _272300: return "Psychologists nfd";
+ case _272311: return "Clinical Psychologist";
+ case _272312: return "Educational Psychologist";
+ case _272313: return "Organizational Psychologist";
+ case _272314: return "Psychotherapist";
+ case _272399: return "Psychologists nec";
+ case _272400: return "Social Professionals nfd";
+ case _272411: return "Historian";
+ case _272412: return "Interpreter";
+ case _272413: return "Translator";
+ case _272499: return "Social Professionals nec";
+ case _272511: return "Social Worker";
+ case _272600: return "Welfare, Recreation and Community Arts Workers nfd";
+ case _272611: return "Community Arts Worker";
+ case _272612: return "Recreation Officer";
+ case _272613: return "Welfare Worker";
+ case _300000: return "Technicians and Trades Workers nfd";
+ case _310000: return "Engineering, ICT and Science Technicians nfd";
+ case _311000: return "Agricultural, Medical and Science Technicians nfd";
+ case _311111: return "Agricultural Technician";
+ case _311200: return "Medical Technicians nfd";
+ case _311211: return "Anaesthetic Technician";
+ case _311212: return "Cardiac Technician";
+ case _311213: return "Medical Laboratory Technician";
+ case _311214: return "Operating Theatre Technician";
+ case _311215: return "Pharmacy Technician";
+ case _311299: return "Medical Technicians nec";
+ case _311300: return "Primary Products Inspectors nfd";
+ case _311311: return "Fisheries Officer";
+ case _311312: return "Meat Inspector";
+ case _311313: return "Quarantine Officer";
+ case _311399: return "Primary Products Inspectors nec";
+ case _311400: return "Science Technicians nfd";
+ case _311411: return "Chemistry Technician";
+ case _311412: return "Earth Science Technician";
+ case _311413: return "Life Science Technician";
+ case _311414: return "School Laboratory Technician";
+ case _311499: return "Science Technicians nec";
+ case _312000: return "Building and Engineering Technicians nfd";
+ case _312100: return "Architectural, Building and Surveying Technicians nfd";
+ case _312111: return "Architectural Draftsperson";
+ case _312112: return "Building Associate";
+ case _312113: return "Building Inspector";
+ case _312114: return "Construction Estimator";
+ case _312115: return "Plumbing Inspector";
+ case _312116: return "Surveying or Cartographic Technician";
+ case _312200: return "Civil Engineering Draftspersons and Technicians nfd";
+ case _312211: return "Civil Engineering Draftsperson";
+ case _312212: return "Civil Engineering Technician";
+ case _312300: return "Electrical Engineering Draftspersons and Technicians nfd";
+ case _312311: return "Electrical Engineering Draftsperson";
+ case _312312: return "Electrical Engineering Technician";
+ case _312400: return "Electronic Engineering Draftspersons and Technicians nfd";
+ case _312411: return "Electronic Engineering Draftsperson";
+ case _312412: return "Electronic Engineering Technician";
+ case _312500: return "Mechanical Engineering Draftspersons and Technicians nfd";
+ case _312511: return "Mechanical Engineering Draftsperson";
+ case _312512: return "Mechanical Engineering Technician";
+ case _312611: return "Safety Inspector";
+ case _312900: return "Other Building and Engineering Technicians nfd";
+ case _312911: return "Maintenance Planner";
+ case _312912: return "Metallurgical or Materials Technician";
+ case _312913: return "Mine Deputy";
+ case _312999: return "Building and Engineering Technicians nec";
+ case _313000: return "ICT and Telecommunications Technicians nfd";
+ case _313100: return "ICT Support Technicians nfd";
+ case _313111: return "Hardware Technician";
+ case _313112: return "ICT Customer Support Officer";
+ case _313113: return "Web Administrator";
+ case _313199: return "ICT Support Technicians nec";
+ case _313200: return "Telecommunications Technical Specialists nfd";
+ case _313211: return "Radiocommunications Technician";
+ case _313212: return "Telecommunications Field Engineer";
+ case _313213: return "Telecommunications Network Planner";
+ case _313214: return "Telecommunications Technical Officer or Technologist";
+ case _320000: return "Automotive and Engineering Trades Workers nfd";
+ case _321000: return "Automotive Electricians and Mechanics nfd";
+ case _321111: return "Automotive Electrician";
+ case _321200: return "Motor Mechanics nfd";
+ case _321211: return "Motor Mechanic (General)";
+ case _321212: return "Diesel Motor Mechanic";
+ case _321213: return "Motorcycle Mechanic";
+ case _321214: return "Small Engine Mechanic";
+ case _322000: return "Fabrication Engineering Trades Workers nfd";
+ case _322100: return "Metal Casting, Forging and Finishing Trades Workers nfd";
+ case _322111: return "Blacksmith";
+ case _322112: return "Electroplater";
+ case _322113: return "Farrier";
+ case _322114: return "Metal Casting Trades Worker";
+ case _322115: return "Metal Polisher";
+ case _322211: return "Sheetmetal Trades Worker";
+ case _322300: return "Structural Steel and Welding Trades Workers nfd";
+ case _322311: return "Metal Fabricator";
+ case _322312: return "Pressure Welder";
+ case _322313: return "Welder (First Class)";
+ case _323000: return "Mechanical Engineering Trades Workers nfd";
+ case _323100: return "Aircraft Maintenance Engineers nfd";
+ case _323111: return "Aircraft Maintenance Engineer (Avionics)";
+ case _323112: return "Aircraft Maintenance Engineer (Mechanical)";
+ case _323113: return "Aircraft Maintenance Engineer (Structures)";
+ case _323200: return "Metal Fitters and Machinists nfd";
+ case _323211: return "Fitter (General)";
+ case _323212: return "Fitter and Turner";
+ case _323213: return "Fitter-Welder";
+ case _323214: return "Metal Machinist (First Class)";
+ case _323215: return "Textile, Clothing and Footwear Mechanic";
+ case _323299: return "Metal Fitters and Machinists nec";
+ case _323300: return "Precision Metal Trades Workers nfd";
+ case _323311: return "Engraver";
+ case _323312: return "Gunsmith";
+ case _323313: return "Locksmith";
+ case _323314: return "Precision Instrument Maker and Repairer";
+ case _323315: return "Saw Maker and Repairer";
+ case _323316: return "Watch and Clock Maker and Repairer";
+ case _323400: return "Toolmakers and Engineering Patternmakers nfd";
+ case _323411: return "Engineering Patternmaker";
+ case _323412: return "Toolmaker";
+ case _324000: return "Panelbeaters, and Vehicle Body Builders, Trimmers and Painters nfd";
+ case _324111: return "Panelbeater";
+ case _324200: return "Vehicle Body Builders and Trimmers nfd";
+ case _324211: return "Vehicle Body Builder";
+ case _324212: return "Vehicle Trimmer";
+ case _324311: return "Vehicle Painter";
+ case _330000: return "Construction Trades Workers nfd";
+ case _331000: return "Bricklayers, and Carpenters and Joiners nfd";
+ case _331100: return "Bricklayers and Stonemasons nfd";
+ case _331111: return "Bricklayer";
+ case _331112: return "Stonemason";
+ case _331211: return "Carpenter and Joiner";
+ case _331212: return "Carpenter";
+ case _331213: return "Joiner";
+ case _332000: return "Floor Finishers and Painting Trades Workers nfd";
+ case _332111: return "Floor Finisher";
+ case _332211: return "Painting Trades Worker";
+ case _333000: return "Glaziers, Plasterers and Tilers nfd";
+ case _333111: return "Glazier";
+ case _333200: return "Plasterers nfd";
+ case _333211: return "Fibrous Plasterer";
+ case _333212: return "Solid Plasterer";
+ case _333311: return "Roof Tiler";
+ case _333411: return "Wall and Floor Tiler";
+ case _334100: return "Plumbers nfd";
+ case _334111: return "Plumber (General)";
+ case _334112: return "Airconditioning and Mechanical Services Plumber";
+ case _334113: return "Drainer";
+ case _334114: return "Gasfitter";
+ case _334115: return "Roof Plumber";
+ case _340000: return "Electrotechnology and Telecommunications Trades Workers nfd";
+ case _341100: return "Electricians nfd";
+ case _341111: return "Electrician (General)";
+ case _341112: return "Electrician (Special Class)";
+ case _341113: return "Lift Mechanic";
+ case _342000: return "Electronics and Telecommunications Trades Workers nfd";
+ case _342111: return "Airconditioning and Refrigeration Mechanic";
+ case _342200: return "Electrical Distribution Trades Workers nfd";
+ case _342211: return "Electrical Linesworker";
+ case _342212: return "Technical Cable Jointer";
+ case _342300: return "Electronics Trades Workers nfd";
+ case _342311: return "Business Machine Mechanic";
+ case _342312: return "Communications Operator";
+ case _342313: return "Electronic Equipment Trades Worker";
+ case _342314: return "Electronic Instrument Trades Worker (General)";
+ case _342315: return "Electronic Instrument Trades Worker (Special Class)";
+ case _342400: return "Telecommunications Trades Workers nfd";
+ case _342411: return "Cabler (Data and Telecommunications)";
+ case _342412: return "Telecommunications Cable Jointer";
+ case _342413: return "Telecommunications Linesworker";
+ case _342414: return "Telecommunications Technician";
+ case _351000: return "Food Trades Workers nfd";
+ case _351100: return "Bakers and Pastrycooks nfd";
+ case _351111: return "Baker";
+ case _351112: return "Pastrycook";
+ case _351211: return "Butcher or Smallgoods Maker";
+ case _351311: return "Chef";
+ case _351411: return "Cook";
+ case _360000: return "Skilled Animal and Horticultural Workers nfd";
+ case _361000: return "Animal Attendants and Trainers, and Shearers nfd";
+ case _361100: return "Animal Attendants and Trainers nfd";
+ case _361111: return "Dog Handler or Trainer";
+ case _361112: return "Horse Trainer";
+ case _361113: return "Pet Groomer";
+ case _361114: return "Zookeeper";
+ case _361199: return "Animal Attendants and Trainers nec";
+ case _361211: return "Shearer";
+ case _361311: return "Veterinary Nurse";
+ case _362000: return "Horticultural Trades Workers nfd";
+ case _362111: return "Florist";
+ case _362200: return "Gardeners nfd";
+ case _362211: return "Gardener (General)";
+ case _362212: return "Arborist";
+ case _362213: return "Landscape Gardener";
+ case _362311: return "Greenkeeper";
+ case _362411: return "Nurseryperson";
+ case _390000: return "Other Technicians and Trades Workers nfd";
+ case _391111: return "Hairdresser";
+ case _392000: return "Printing Trades Workers nfd";
+ case _392100: return "Binders, Finishers and Screen Printers nfd";
+ case _392111: return "Binder and Finisher";
+ case _392112: return "Screen Printer";
+ case _392211: return "Graphic Pre-press Trades Worker";
+ case _392300: return "Printers nfd";
+ case _392311: return "Printing Machinist";
+ case _392312: return "Small Offset Printer";
+ case _393000: return "Textile, Clothing and Footwear Trades Workers nfd";
+ case _393100: return "Canvas and Leather Goods Makers nfd";
+ case _393111: return "Canvas Goods Maker";
+ case _393112: return "Leather Goods Maker";
+ case _393113: return "Sail Maker";
+ case _393114: return "Shoemaker";
+ case _393200: return "Clothing Trades Workers nfd";
+ case _393211: return "Apparel Cutter";
+ case _393212: return "Clothing Patternmaker";
+ case _393213: return "Dressmaker or Tailor";
+ case _393299: return "Clothing Trades Workers nec";
+ case _393311: return "Upholsterer";
+ case _394000: return "Wood Trades Workers nfd";
+ case _394111: return "Cabinetmaker";
+ case _394200: return "Wood Machinists and Other Wood Trades Workers nfd";
+ case _394211: return "Furniture Finisher";
+ case _394212: return "Picture Framer";
+ case _394213: return "Wood Machinist";
+ case _394214: return "Wood Turner";
+ case _394299: return "Wood Machinists and Other Wood Trades Workers nec";
+ case _399000: return "Miscellaneous Technicians and Trades Workers nfd";
+ case _399100: return "Boat Builders and Shipwrights nfd";
+ case _399111: return "Boat Builder and Repairer";
+ case _399112: return "Shipwright";
+ case _399200: return "Chemical, Gas, Petroleum and Power Generation Plant Operators nfd";
+ case _399211: return "Chemical Plant Operator";
+ case _399212: return "Gas or Petroleum Operator";
+ case _399213: return "Power Generation Plant Operator";
+ case _399300: return "Gallery, Library and Museum Technicians nfd";
+ case _399311: return "Gallery or Museum Technician";
+ case _399312: return "Library Technician";
+ case _399411: return "Jeweller";
+ case _399500: return "Performing Arts Technicians nfd";
+ case _399511: return "Broadcast Transmitter Operator";
+ case _399512: return "Camera Operator (Film, Television or Video)";
+ case _399513: return "Light Technician";
+ case _399514: return "Make Up Artist";
+ case _399515: return "Musical Instrument Maker or Repairer";
+ case _399516: return "Sound Technician";
+ case _399517: return "Television Equipment Operator";
+ case _399599: return "Performing Arts Technicians nec";
+ case _399611: return "Signwriter";
+ case _399900: return "Other Miscellaneous Technicians and Trades Workers nfd";
+ case _399911: return "Diver";
+ case _399912: return "Interior Decorator";
+ case _399913: return "Optical Dispenser";
+ case _399914: return "Optical Mechanic";
+ case _399915: return "Photographer's Assistant";
+ case _399916: return "Plastics Technician";
+ case _399917: return "Wool Classer";
+ case _399999: return "Technicians and Trades Workers nec";
+ case _400000: return "Community and Personal Service Workers nfd";
+ case _411000: return "Health and Welfare Support Workers nfd";
+ case _411100: return "Ambulance Officers and Paramedics nfd";
+ case _411111: return "Ambulance Officer";
+ case _411112: return "Intensive Care Ambulance Paramedic";
+ case _411200: return "Dental Hygienists, Technicians and Therapists nfd";
+ case _411211: return "Dental Hygienist";
+ case _411212: return "Dental Prosthetist";
+ case _411213: return "Dental Technician";
+ case _411214: return "Dental Therapist";
+ case _411311: return "Diversional Therapist";
+ case _411400: return "Enrolled and Mothercraft Nurses nfd";
+ case _411411: return "Enrolled Nurse";
+ case _411412: return "Mothercraft Nurse";
+ case _411511: return "Aboriginal and Torres Strait Islander Health Worker";
+ case _411611: return "Massage Therapist";
+ case _411700: return "Welfare Support Workers nfd";
+ case _411711: return "Community Worker";
+ case _411712: return "Disabilities Services Officer";
+ case _411713: return "Family Support Worker";
+ case _411714: return "Parole or Probation Officer";
+ case _411715: return "Residential Care Officer";
+ case _411716: return "Youth Worker";
+ case _420000: return "Carers and Aides nfd";
+ case _421100: return "Child Carers nfd";
+ case _421111: return "Child Care Worker";
+ case _421112: return "Family Day Care Worker";
+ case _421113: return "Nanny";
+ case _421114: return "Out of School Hours Care Worker";
+ case _422100: return "Education Aides nfd";
+ case _422111: return "Aboriginal and Torres Strait Islander Education Worker";
+ case _422112: return "Integration Aide";
+ case _422115: return "Preschool Aide";
+ case _422116: return "Teachers' Aide";
+ case _423000: return "Personal Carers and Assistants nfd";
+ case _423111: return "Aged or Disabled Carer";
+ case _423211: return "Dental Assistant";
+ case _423300: return "Nursing Support and Personal Care Workers nfd";
+ case _423311: return "Hospital Orderly";
+ case _423312: return "Nursing Support Worker";
+ case _423313: return "Personal Care Assistant";
+ case _423314: return "Therapy Aide";
+ case _423400: return "Special Care Workers nfd";
+ case _423411: return "Child or Youth Residential Care Assistant";
+ case _423412: return "Hostel Parent";
+ case _423413: return "Refuge Worker";
+ case _431000: return "Hospitality Workers nfd";
+ case _431100: return "Bar Attendants and Baristas nfd";
+ case _431111: return "Bar Attendant";
+ case _431112: return "Barista";
+ case _431211: return "Cafe Worker";
+ case _431311: return "Gaming Worker";
+ case _431411: return "Hotel Service Manager";
+ case _431511: return "Waiter";
+ case _431900: return "Other Hospitality Workers nfd";
+ case _431911: return "Bar Useful or Busser";
+ case _431912: return "Doorperson or Luggage Porter";
+ case _431999: return "Hospitality Workers nec";
+ case _440000: return "Protective Service Workers nfd";
+ case _441000: return "Defence Force Members, Fire Fighters and Police nfd";
+ case _441111: return "Defence Force Member - Other Ranks";
+ case _441200: return "Fire and Emergency Workers nfd";
+ case _441211: return "Emergency Service Worker";
+ case _441212: return "Fire Fighter";
+ case _441300: return "Police nfd";
+ case _441311: return "Detective";
+ case _441312: return "Police Officer";
+ case _442000: return "Prison and Security Officers nfd";
+ case _442111: return "Prison Officer";
+ case _442200: return "Security Officers and Guards nfd";
+ case _442211: return "Alarm, Security or Surveillance Monitor";
+ case _442212: return "Armoured Car Escort";
+ case _442213: return "Crowd Controller";
+ case _442214: return "Private Investigator";
+ case _442215: return "Retail Loss Prevention Officer";
+ case _442216: return "Security Consultant";
+ case _442217: return "Security Officer";
+ case _442299: return "Security Officers and Guards nec";
+ case _450000: return "Sports and Personal Service Workers nfd";
+ case _451000: return "Personal Service and Travel Workers nfd";
+ case _451111: return "Beauty Therapist";
+ case _451211: return "Driving Instructor";
+ case _451300: return "Funeral Workers nfd";
+ case _451311: return "Funeral Director";
+ case _451399: return "Funeral Workers nec";
+ case _451400: return "Gallery, Museum and Tour Guides nfd";
+ case _451411: return "Gallery or Museum Guide";
+ case _451412: return "Tour Guide";
+ case _451500: return "Personal Care Consultants nfd";
+ case _451511: return "Natural Remedy Consultant";
+ case _451512: return "Weight Loss Consultant";
+ case _451600: return "Tourism and Travel Advisers nfd";
+ case _451611: return "Tourist Information Officer";
+ case _451612: return "Travel Consultant";
+ case _451700: return "Travel Attendants nfd";
+ case _451711: return "Flight Attendant";
+ case _451799: return "Travel Attendants nec";
+ case _451800: return "Other Personal Service Workers nfd";
+ case _451811: return "Civil Celebrant";
+ case _451812: return "Hair or Beauty Salon Assistant";
+ case _451813: return "Sex Worker or Escort";
+ case _451899: return "Personal Service Workers nec";
+ case _452000: return "Sports and Fitness Workers nfd";
+ case _452111: return "Fitness Instructor";
+ case _452200: return "Outdoor Adventure Guides nfd";
+ case _452211: return "Bungy Jump Master";
+ case _452212: return "Fishing Guide";
+ case _452213: return "Hunting Guide";
+ case _452214: return "Mountain or Glacier Guide";
+ case _452215: return "Outdoor Adventure Instructor";
+ case _452216: return "Trekking Guide";
+ case _452217: return "Whitewater Rafting Guide";
+ case _452299: return "Outdoor Adventure Guides nec";
+ case _452300: return "Sports Coaches, Instructors and Officials nfd";
+ case _452311: return "Diving Instructor (Open Water)";
+ case _452312: return "Gymnastics Coach or Instructor";
+ case _452313: return "Horse Riding Coach or Instructor";
+ case _452314: return "Snowsport Instructor";
+ case _452315: return "Swimming Coach or Instructor";
+ case _452316: return "Tennis Coach";
+ case _452317: return "Other Sports Coach or Instructor";
+ case _452318: return "Dog or Horse Racing Official";
+ case _452321: return "Sports Development Officer";
+ case _452322: return "Sports Umpire";
+ case _452323: return "Other Sports Official";
+ case _452400: return "Sportspersons nfd";
+ case _452411: return "Footballer";
+ case _452412: return "Golfer";
+ case _452413: return "Jockey";
+ case _452414: return "Lifeguard";
+ case _452499: return "Sportspersons nec";
+ case _500000: return "Clerical and Administrative Workers nfd";
+ case _510000: return "Office Managers and Program Administrators nfd";
+ case _511100: return "Contract, Program and Project Administrators nfd";
+ case _511111: return "Contract Administrator";
+ case _511112: return "Program or Project Administrator";
+ case _512000: return "Office and Practice Managers nfd";
+ case _512111: return "Office Manager";
+ case _512200: return "Practice Managers nfd";
+ case _512211: return "Health Practice Manager";
+ case _512299: return "Practice Managers nec";
+ case _521000: return "Personal Assistants and Secretaries nfd";
+ case _521111: return "Personal Assistant";
+ case _521200: return "Secretaries nfd";
+ case _521211: return "Secretary (General)";
+ case _521212: return "Legal Secretary";
+ case _530000: return "General Clerical Workers nfd";
+ case _531111: return "General Clerk";
+ case _532100: return "Keyboard Operators nfd";
+ case _532111: return "Data Entry Operator";
+ case _532112: return "Machine Shorthand Reporter";
+ case _532113: return "Word Processing Operator";
+ case _540000: return "Inquiry Clerks and Receptionists nfd";
+ case _541000: return "Call or Contact Centre Information Clerks nfd";
+ case _541100: return "Call or Contact Centre Workers nfd";
+ case _541111: return "Call or Contact Centre Team Leader";
+ case _541112: return "Call or Contact Centre Operator";
+ case _541211: return "Inquiry Clerk";
+ case _542100: return "Receptionists nfd";
+ case _542111: return "Receptionist (General)";
+ case _542112: return "Admissions Clerk";
+ case _542113: return "Hotel or Motel Receptionist";
+ case _542114: return "Medical Receptionist";
+ case _550000: return "Numerical Clerks nfd";
+ case _551000: return "Accounting Clerks and Bookkeepers nfd";
+ case _551100: return "Accounting Clerks nfd";
+ case _551111: return "Accounts Clerk";
+ case _551112: return "Cost Clerk";
+ case _551211: return "Bookkeeper";
+ case _551311: return "Payroll Clerk";
+ case _552000: return "Financial and Insurance Clerks nfd";
+ case _552111: return "Bank Worker";
+ case _552211: return "Credit or Loans Officer";
+ case _552300: return "Insurance, Money Market and Statistical Clerks nfd";
+ case _552311: return "Bookmaker";
+ case _552312: return "Insurance Consultant";
+ case _552313: return "Money Market Clerk";
+ case _552314: return "Statistical Clerk";
+ case _561000: return "Clerical and Office Support Workers nfd";
+ case _561100: return "Betting Clerks nfd";
+ case _561111: return "Betting Agency Counter Clerk";
+ case _561112: return "Bookmaker's Clerk";
+ case _561113: return "Telephone Betting Clerk";
+ case _561199: return "Betting Clerks nec";
+ case _561200: return "Couriers and Postal Deliverers nfd";
+ case _561211: return "Courier";
+ case _561212: return "Postal Delivery Officer";
+ case _561311: return "Filing or Registry Clerk";
+ case _561400: return "Mail Sorters nfd";
+ case _561411: return "Mail Clerk";
+ case _561412: return "Postal Sorting Officer";
+ case _561511: return "Survey Interviewer";
+ case _561611: return "Switchboard Operator";
+ case _561900: return "Other Clerical and Office Support Workers nfd";
+ case _561911: return "Classified Advertising Clerk";
+ case _561912: return "Meter Reader";
+ case _561913: return "Parking Inspector";
+ case _561999: return "Clerical and Office Support Workers nec";
+ case _590000: return "Other Clerical and Administrative Workers nfd";
+ case _591000: return "Logistics Clerks nfd";
+ case _591100: return "Purchasing and Supply Logistics Clerks nfd";
+ case _591111: return "Order Clerk";
+ case _591112: return "Production Clerk";
+ case _591113: return "Purchasing Officer";
+ case _591114: return "Sales Clerk";
+ case _591115: return "Stock Clerk";
+ case _591116: return "Warehouse Administrator";
+ case _591200: return "Transport and Despatch Clerks nfd";
+ case _591211: return "Despatching and Receiving Clerk";
+ case _591212: return "Import-Export Clerk";
+ case _599000: return "Miscellaneous Clerical and Administrative Workers nfd";
+ case _599100: return "Conveyancers and Legal Executives nfd";
+ case _599111: return "Conveyancer";
+ case _599112: return "Legal Executive";
+ case _599200: return "Court and Legal Clerks nfd";
+ case _599211: return "Clerk of Court";
+ case _599212: return "Court Bailiff or Sheriff";
+ case _599213: return "Court Orderly";
+ case _599214: return "Law Clerk";
+ case _599215: return "Trust Officer";
+ case _599311: return "Debt Collector";
+ case _599411: return "Human Resource Clerk";
+ case _599500: return "Inspectors and Regulatory Officers nfd";
+ case _599511: return "Customs Officer";
+ case _599512: return "Immigration Officer";
+ case _599513: return "Motor Vehicle Licence Examiner";
+ case _599514: return "Noxious Weeds and Pest Inspector";
+ case _599515: return "Social Security Assessor";
+ case _599516: return "Taxation Inspector";
+ case _599517: return "Train Examiner";
+ case _599518: return "Transport Operations Inspector";
+ case _599521: return "Water Inspector";
+ case _599599: return "Inspectors and Regulatory Officers nec";
+ case _599600: return "Insurance Investigators, Loss Adjusters and Risk Surveyors nfd";
+ case _599611: return "Insurance Investigator";
+ case _599612: return "Insurance Loss Adjuster";
+ case _599613: return "Insurance Risk Surveyor";
+ case _599711: return "Library Assistant";
+ case _599900: return "Other Miscellaneous Clerical and Administrative Workers nfd";
+ case _599911: return "Coding Clerk";
+ case _599912: return "Production Assistant (Film, Television, Radio or Stage)";
+ case _599913: return "Proof Reader";
+ case _599914: return "Radio Despatcher";
+ case _599999: return "Clerical and Administrative Workers nec";
+ case _600000: return "Sales Workers nfd";
+ case _610000: return "Sales Representatives and Agents nfd";
+ case _611000: return "Insurance Agents and Sales Representatives nfd";
+ case _611100: return "Auctioneers, and Stock and Station Agents nfd";
+ case _611111: return "Auctioneer";
+ case _611112: return "Stock and Station Agent";
+ case _611211: return "Insurance Agent";
+ case _611300: return "Sales Representatives nfd";
+ case _611311: return "Sales Representative (Building and Plumbing Supplies)";
+ case _611312: return "Sales Representative (Business Services)";
+ case _611313: return "Sales Representative (Motor Vehicle Parts and Accessories)";
+ case _611314: return "Sales Representative (Personal and Household Goods)";
+ case _611399: return "Sales Representatives nec";
+ case _612100: return "Real Estate Sales Agents nfd";
+ case _612111: return "Business Broker";
+ case _612112: return "Property Manager";
+ case _612113: return "Real Estate Agency Principal";
+ case _612114: return "Real Estate Agent";
+ case _612115: return "Real Estate Representative";
+ case _621000: return "Sales Assistants and Salespersons nfd";
+ case _621111: return "Sales Assistant (General)";
+ case _621211: return "ICT Sales Assistant";
+ case _621300: return "Motor Vehicle and Vehicle Parts Salespersons nfd";
+ case _621311: return "Motor Vehicle or Caravan Salesperson";
+ case _621312: return "Motor Vehicle Parts Interpreter";
+ case _621411: return "Pharmacy Sales Assistant";
+ case _621511: return "Retail Supervisor";
+ case _621611: return "Service Station Attendant";
+ case _621700: return "Street Vendors and Related Salespersons nfd";
+ case _621711: return "Cash Van Salesperson";
+ case _621712: return "Door-to-door Salesperson";
+ case _621713: return "Street Vendor";
+ case _621900: return "Other Sales Assistants and Salespersons nfd";
+ case _621911: return "Materials Recycler";
+ case _621912: return "Rental Salesperson";
+ case _621999: return "Sales Assistants and Salespersons nec";
+ case _630000: return "Sales Support Workers nfd";
+ case _631100: return "Checkout Operators and Office Cashiers nfd";
+ case _631111: return "Checkout Operator";
+ case _631112: return "Office Cashier";
+ case _639000: return "Miscellaneous Sales Support Workers nfd";
+ case _639100: return "Models and Sales Demonstrators nfd";
+ case _639111: return "Model";
+ case _639112: return "Sales Demonstrator";
+ case _639200: return "Retail and Wool Buyers nfd";
+ case _639211: return "Retail Buyer";
+ case _639212: return "Wool Buyer";
+ case _639311: return "Telemarketer";
+ case _639400: return "Ticket Salespersons nfd";
+ case _639411: return "Ticket Seller";
+ case _639412: return "Transport Conductor";
+ case _639511: return "Visual Merchandiser";
+ case _639911: return "Other Sales Support Worker";
+ case _700000: return "Machinery Operators and Drivers nfd";
+ case _710000: return "Machine and Stationary Plant Operators nfd";
+ case _711000: return "Machine Operators nfd";
+ case _711100: return "Clay, Concrete, Glass and Stone Processing Machine Operators nfd";
+ case _711111: return "Clay Products Machine Operator";
+ case _711112: return "Concrete Products Machine Operator";
+ case _711113: return "Glass Production Machine Operator";
+ case _711114: return "Stone Processing Machine Operator";
+ case _711199: return "Clay, Concrete, Glass and Stone Processing Machine Operators nec";
+ case _711211: return "Industrial Spraypainter";
+ case _711300: return "Paper and Wood Processing Machine Operators nfd";
+ case _711311: return "Paper Products Machine Operator";
+ case _711312: return "Wood Processing Machine Operator";
+ case _711411: return "Photographic Developer and Printer";
+ case _711500: return "Plastics and Rubber Production Machine Operators nfd";
+ case _711511: return "Plastic Cablemaking Machine Operator";
+ case _711512: return "Plastic Compounding and Reclamation Machine Operator";
+ case _711513: return "Plastics Fabricator or Welder";
+ case _711514: return "Plastics Production Machine Operator (General)";
+ case _711515: return "Reinforced Plastic and Composite Production Worker";
+ case _711516: return "Rubber Production Machine Operator";
+ case _711599: return "Plastics and Rubber Production Machine Operators nec";
+ case _711611: return "Sewing Machinist";
+ case _711700: return "Textile and Footwear Production Machine Operators nfd";
+ case _711711: return "Footwear Production Machine Operator";
+ case _711712: return "Hide and Skin Processing Machine Operator";
+ case _711713: return "Knitting Machine Operator";
+ case _711714: return "Textile Dyeing and Finishing Machine Operator";
+ case _711715: return "Weaving Machine Operator";
+ case _711716: return "Yarn Carding and Spinning Machine Operator";
+ case _711799: return "Textile and Footwear Production Machine Operators nec";
+ case _711900: return "Other Machine Operators nfd";
+ case _711911: return "Chemical Production Machine Operator";
+ case _711912: return "Motion Picture Projectionist";
+ case _711913: return "Sand Blaster";
+ case _711914: return "Sterilisation Technician";
+ case _711999: return "Machine Operators nec";
+ case _712000: return "Stationary Plant Operators nfd";
+ case _712111: return "Crane, Hoist or Lift Operator";
+ case _712200: return "Drillers, Miners and Shot Firers nfd";
+ case _712211: return "Driller";
+ case _712212: return "Miner";
+ case _712213: return "Shot Firer";
+ case _712311: return "Engineering Production Systems Worker";
+ case _712900: return "Other Stationary Plant Operators nfd";
+ case _712911: return "Boiler or Engine Operator";
+ case _712912: return "Bulk Materials Handling Plant Operator";
+ case _712913: return "Cement Production Plant Operator";
+ case _712914: return "Concrete Batching Plant Operator";
+ case _712915: return "Concrete Pump Operator";
+ case _712916: return "Paper and Pulp Mill Operator";
+ case _712917: return "Railway Signal Operator";
+ case _712918: return "Train Controller";
+ case _712921: return "Waste Water or Water Plant Operator";
+ case _712922: return "Weighbridge Operator";
+ case _712999: return "Stationary Plant Operators nec";
+ case _721000: return "Mobile Plant Operators nfd";
+ case _721100: return "Agricultural, Forestry and Horticultural Plant Operators nfd";
+ case _721111: return "Agricultural and Horticultural Mobile Plant Operator";
+ case _721112: return "Logging Plant Operator";
+ case _721200: return "Earthmoving Plant Operators nfd";
+ case _721211: return "Earthmoving Plant Operator (General)";
+ case _721212: return "Backhoe Operator";
+ case _721213: return "Bulldozer Operator";
+ case _721214: return "Excavator Operator";
+ case _721215: return "Grader Operator";
+ case _721216: return "Loader Operator";
+ case _721311: return "Forklift Driver";
+ case _721900: return "Other Mobile Plant Operators nfd";
+ case _721911: return "Aircraft Baggage Handler and Airline Ground Crew";
+ case _721912: return "Linemarker";
+ case _721913: return "Paving Plant Operator";
+ case _721914: return "Railway Track Plant Operator";
+ case _721915: return "Road Roller Operator";
+ case _721916: return "Streetsweeper Operator";
+ case _721999: return "Mobile Plant Operators nec";
+ case _730000: return "Road and Rail Drivers nfd";
+ case _731000: return "Automobile, Bus and Rail Drivers nfd";
+ case _731100: return "Automobile Drivers nfd";
+ case _731111: return "Chauffeur";
+ case _731112: return "Taxi Driver";
+ case _731199: return "Automobile Drivers nec";
+ case _731200: return "Bus and Coach Drivers nfd";
+ case _731211: return "Bus Driver";
+ case _731212: return "Charter and Tour Bus Driver";
+ case _731213: return "Passenger Coach Driver";
+ case _731300: return "Train and Tram Drivers nfd";
+ case _731311: return "Train Driver";
+ case _731312: return "Tram Driver";
+ case _732111: return "Delivery Driver";
+ case _733100: return "Truck Drivers nfd";
+ case _733111: return "Truck Driver (General)";
+ case _733112: return "Aircraft Refueller";
+ case _733113: return "Furniture Removalist";
+ case _733114: return "Tanker Driver";
+ case _733115: return "Tow Truck Driver";
+ case _741111: return "Storeperson";
+ case _800000: return "Labourers nfd";
+ case _811000: return "Cleaners and Laundry Workers nfd";
+ case _811111: return "Car Detailer";
+ case _811211: return "Commercial Cleaner";
+ case _811311: return "Domestic Cleaner";
+ case _811400: return "Housekeepers nfd";
+ case _811411: return "Commercial Housekeeper";
+ case _811412: return "Domestic Housekeeper";
+ case _811500: return "Laundry Workers nfd";
+ case _811511: return "Laundry Worker (General)";
+ case _811512: return "Drycleaner";
+ case _811513: return "Ironer or Presser";
+ case _811600: return "Other Cleaners nfd";
+ case _811611: return "Carpet Cleaner";
+ case _811612: return "Window Cleaner";
+ case _811699: return "Cleaners nec";
+ case _821000: return "Construction and Mining Labourers nfd";
+ case _821100: return "Building and Plumbing Labourers nfd";
+ case _821111: return "Builder's Labourer";
+ case _821112: return "Drainage, Sewerage and Stormwater Labourer";
+ case _821113: return "Earthmoving Labourer";
+ case _821114: return "Plumber's Assistant";
+ case _821211: return "Concreter";
+ case _821311: return "Fencer";
+ case _821400: return "Insulation and Home Improvement Installers nfd";
+ case _821411: return "Building Insulation Installer";
+ case _821412: return "Home Improvement Installer";
+ case _821511: return "Paving and Surfacing Labourer";
+ case _821611: return "Railway Track Worker";
+ case _821700: return "Structural Steel Construction Workers nfd";
+ case _821711: return "Construction Rigger";
+ case _821712: return "Scaffolder";
+ case _821713: return "Steel Fixer";
+ case _821714: return "Structural Steel Erector";
+ case _821900: return "Other Construction and Mining Labourers nfd";
+ case _821911: return "Crane Chaser";
+ case _821912: return "Driller's Assistant";
+ case _821913: return "Lagger";
+ case _821914: return "Mining Support Worker";
+ case _821915: return "Surveyor's Assistant";
+ case _830000: return "Factory Process Workers nfd";
+ case _831000: return "Food Process Workers nfd";
+ case _831100: return "Food and Drink Factory Workers nfd";
+ case _831111: return "Baking Factory Worker";
+ case _831112: return "Brewery Worker";
+ case _831113: return "Confectionery Maker";
+ case _831114: return "Dairy Products Maker";
+ case _831115: return "Fruit and Vegetable Factory Worker";
+ case _831116: return "Grain Mill Worker";
+ case _831117: return "Sugar Mill Worker";
+ case _831118: return "Winery Cellar Hand";
+ case _831199: return "Food and Drink Factory Workers nec";
+ case _831200: return "Meat Boners and Slicers, and Slaughterers nfd";
+ case _831211: return "Meat Boner and Slicer";
+ case _831212: return "Slaughterer";
+ case _831300: return "Meat, Poultry and Seafood Process Workers nfd";
+ case _831311: return "Meat Process Worker";
+ case _831312: return "Poultry Process Worker";
+ case _831313: return "Seafood Process Worker";
+ case _832000: return "Packers and Product Assemblers nfd";
+ case _832100: return "Packers nfd";
+ case _832111: return "Chocolate Packer";
+ case _832112: return "Container Filler";
+ case _832113: return "Fruit and Vegetable Packer";
+ case _832114: return "Meat Packer";
+ case _832115: return "Seafood Packer";
+ case _832199: return "Packers nec";
+ case _832211: return "Product Assembler";
+ case _839000: return "Miscellaneous Factory Process Workers nfd";
+ case _839111: return "Metal Engineering Process Worker";
+ case _839200: return "Plastics and Rubber Factory Workers nfd";
+ case _839211: return "Plastics Factory Worker";
+ case _839212: return "Rubber Factory Worker";
+ case _839300: return "Product Quality Controllers nfd";
+ case _839311: return "Product Examiner";
+ case _839312: return "Product Grader";
+ case _839313: return "Product Tester";
+ case _839400: return "Timber and Wood Process Workers nfd";
+ case _839411: return "Paper and Pulp Mill Worker";
+ case _839412: return "Sawmill or Timber Yard Worker";
+ case _839413: return "Wood and Wood Products Factory Worker";
+ case _839900: return "Other Factory Process Workers nfd";
+ case _839911: return "Cement and Concrete Plant Worker";
+ case _839912: return "Chemical Plant Worker";
+ case _839913: return "Clay Processing Factory Worker";
+ case _839914: return "Fabric and Textile Factory Worker";
+ case _839915: return "Footwear Factory Worker";
+ case _839916: return "Glass Processing Worker";
+ case _839917: return "Hide and Skin Processing Worker";
+ case _839999: return "Factory Process Workers nec";
+ case _841000: return "Farm, Forestry and Garden Workers nfd";
+ case _841111: return "Aquaculture Worker";
+ case _841200: return "Crop Farm Workers nfd";
+ case _841211: return "Fruit or Nut Farm Worker";
+ case _841212: return "Fruit or Nut Picker";
+ case _841213: return "Grain, Oilseed or Pasture Farm Worker";
+ case _841214: return "Vegetable Farm Worker";
+ case _841215: return "Vegetable Picker";
+ case _841216: return "Vineyard Worker";
+ case _841299: return "Crop Farm Workers nec";
+ case _841300: return "Forestry and Logging Workers nfd";
+ case _841311: return "Forestry Worker";
+ case _841312: return "Logging Assistant";
+ case _841313: return "Tree Faller";
+ case _841400: return "Garden and Nursery Labourers nfd";
+ case _841411: return "Garden Labourer";
+ case _841412: return "Horticultural Nursery Assistant";
+ case _841500: return "Livestock Farm Workers nfd";
+ case _841511: return "Beef Cattle Farm Worker";
+ case _841512: return "Dairy Cattle Farm Worker";
+ case _841513: return "Mixed Livestock Farm Worker";
+ case _841514: return "Poultry Farm Worker";
+ case _841515: return "Sheep Farm Worker";
+ case _841516: return "Stablehand";
+ case _841517: return "Wool Handler";
+ case _841599: return "Livestock Farm Workers nec";
+ case _841611: return "Mixed Crop and Livestock Farm Worker";
+ case _841900: return "Other Farm, Forestry and Garden Workers nfd";
+ case _841911: return "Hunter-Trapper";
+ case _841912: return "Pest or Weed Controller";
+ case _841999: return "Farm, Forestry and Garden Workers nec";
+ case _851000: return "Food Preparation Assistants nfd";
+ case _851111: return "Fast Food Cook";
+ case _851200: return "Food Trades Assistants nfd";
+ case _851211: return "Pastrycook's Assistant";
+ case _851299: return "Food Trades Assistants nec";
+ case _851311: return "Kitchenhand";
+ case _890000: return "Other Labourers nfd";
+ case _891000: return "Freight Handlers and Shelf Fillers nfd";
+ case _891100: return "Freight and Furniture Handlers nfd";
+ case _891111: return "Freight Handler (Rail or Road)";
+ case _891112: return "Truck Driver's Offsider";
+ case _891113: return "Waterside Worker";
+ case _891211: return "Shelf Filler";
+ case _899000: return "Miscellaneous Labourers nfd";
+ case _899111: return "Caretaker";
+ case _899200: return "Deck and Fishing Hands nfd";
+ case _899211: return "Deck Hand";
+ case _899212: return "Fishing Hand";
+ case _899311: return "Handyperson";
+ case _899400: return "Motor Vehicle Parts and Accessories Fitters nfd";
+ case _899411: return "Motor Vehicle Parts and Accessories Fitter (General)";
+ case _899412: return "Autoglazier";
+ case _899413: return "Exhaust and Muffler Fitter";
+ case _899414: return "Radiator Fitter";
+ case _899415: return "Tyre Fitter";
+ case _899500: return "Printing Assistants and Table Workers nfd";
+ case _899511: return "Printer's Assistant";
+ case _899512: return "Printing Table Worker";
+ case _899611: return "Recycling or Rubbish Collector";
+ case _899711: return "Vending Machine Attendant";
+ case _899900: return "Other Miscellaneous Labourers nfd";
+ case _899911: return "Bicycle Mechanic";
+ case _899912: return "Car Park Attendant";
+ case _899913: return "Crossing Supervisor";
+ case _899914: return "Electrical or Telecommunications Trades Assistant";
+ case _899915: return "Leaflet or Newspaper Deliverer";
+ case _899916: return "Mechanic's Assistant";
+ case _899917: return "Railways Assistant";
+ case _899918: return "Sign Erector";
+ case _899921: return "Ticket Collector or Usher";
+ case _899922: return "Trolley Collector";
+ case _899999: return "Labourers nec";
+ default: return "?";
+ }
+ }
+ public String getDisplay() {
+ switch (this) {
+ case _100000: return "Managers nfd";
+ case _111000: return "Chief Executives, General Managers and Legislators nfd";
+ case _111111: return "Chief Executive or Managing Director";
+ case _111200: return "General Managers nfd";
+ case _111211: return "Corporate General Manager";
+ case _111212: return "Defence Force Senior Officer";
+ case _111300: return "Legislators nfd";
+ case _111311: return "Local Government Legislator";
+ case _111312: return "Member of Parliament";
+ case _111399: return "Legislators nec";
+ case _121000: return "Farmers and Farm Managers nfd";
+ case _121111: return "Aquaculture Farmer";
+ case _121200: return "Crop Farmers nfd";
+ case _121211: return "Cotton Grower";
+ case _121212: return "Flower Grower";
+ case _121213: return "Fruit or Nut Grower";
+ case _121214: return "Grain, Oilseed or Pasture Grower";
+ case _121215: return "Grape Grower";
+ case _121216: return "Mixed Crop Farmer";
+ case _121217: return "Sugar Cane Grower";
+ case _121218: return "Turf Grower";
+ case _121221: return "Vegetable Grower";
+ case _121299: return "Crop Farmers nec";
+ case _121300: return "Livestock Farmers nfd";
+ case _121311: return "Apiarist";
+ case _121312: return "Beef Cattle Farmer";
+ case _121313: return "Dairy Cattle Farmer";
+ case _121314: return "Deer Farmer";
+ case _121315: return "Goat Farmer";
+ case _121316: return "Horse Breeder";
+ case _121317: return "Mixed Livestock Farmer";
+ case _121318: return "Pig Farmer";
+ case _121321: return "Poultry Farmer";
+ case _121322: return "Sheep Farmer";
+ case _121399: return "Livestock Farmers nec";
+ case _121411: return "Mixed Crop and Livestock Farmer";
+ case _130000: return "Specialist Managers nfd";
+ case _131100: return "Advertising and Sales Managers nfd";
+ case _131111: return "Advertising and Public Relations Manager";
+ case _131112: return "Sales and Marketing Manager";
+ case _132000: return "Business Administration Managers nfd";
+ case _132111: return "Corporate Services Manager";
+ case _132211: return "Finance Manager";
+ case _132311: return "Human Resource Manager";
+ case _132411: return "Policy and Planning Manager";
+ case _132511: return "Research and Development Manager";
+ case _133000: return "Construction, Distribution and Production Managers nfd";
+ case _133100: return "Construction Managers nfd";
+ case _133111: return "Construction Project Manager";
+ case _133112: return "Project Builder";
+ case _133211: return "Engineering Manager";
+ case _133300: return "Importers, Exporters and Wholesalers nfd";
+ case _133311: return "Importer or Exporter";
+ case _133312: return "Wholesaler";
+ case _133411: return "Manufacturer";
+ case _133500: return "Production Managers nfd";
+ case _133511: return "Production Manager (Forestry)";
+ case _133512: return "Production Manager (Manufacturing)";
+ case _133513: return "Production Manager (Mining)";
+ case _133611: return "Supply and Distribution Manager";
+ case _134000: return "Education, Health and Welfare Services Managers nfd";
+ case _134111: return "Child Care Centre Manager";
+ case _134200: return "Health and Welfare Services Managers nfd";
+ case _134211: return "Medical Administrator";
+ case _134212: return "Nursing Clinical Director";
+ case _134213: return "Primary Health Organization Manager";
+ case _134214: return "Welfare Centre Manager";
+ case _134299: return "Health and Welfare Services Managers nec";
+ case _134311: return "School Principal";
+ case _134400: return "Other Education Managers nfd";
+ case _134411: return "Faculty Head";
+ case _134412: return "Regional Education Manager";
+ case _134499: return "Education Managers nec";
+ case _135100: return "ICT Managers nfd";
+ case _135111: return "Chief Information Officer";
+ case _135112: return "ICT Project Manager";
+ case _135199: return "ICT Managers nec";
+ case _139000: return "Miscellaneous Specialist Managers nfd";
+ case _139100: return "Commissioned Officers (Management) nfd";
+ case _139111: return "Commissioned Defence Force Officer";
+ case _139112: return "Commissioned Fire Officer";
+ case _139113: return "Commissioned Police Officer";
+ case _139211: return "Senior Non-commissioned Defence Force Member";
+ case _139900: return "Other Specialist Managers nfd";
+ case _139911: return "Arts Administrator or Manager";
+ case _139912: return "Environmental Manager";
+ case _139913: return "Laboratory Manager";
+ case _139914: return "Quality Assurance Manager";
+ case _139915: return "Sports Administrator";
+ case _139999: return "Specialist Managers nec";
+ case _140000: return "Hospitality, Retail and Service Managers nfd";
+ case _141000: return "Accommodation and Hospitality Managers nfd";
+ case _141111: return "Cafe or Restaurant Manager";
+ case _141211: return "Caravan Park and Camping Ground Manager";
+ case _141311: return "Hotel or Motel Manager";
+ case _141411: return "Licensed Club Manager";
+ case _141900: return "Other Accommodation and Hospitality Managers nfd";
+ case _141911: return "Bed and Breakfast Operator";
+ case _141999: return "Accommodation and Hospitality Managers nec";
+ case _142100: return "Retail Managers nfd";
+ case _142111: return "Retail Manager (General)";
+ case _142112: return "Antique Dealer";
+ case _142113: return "Betting Agency Manager";
+ case _142114: return "Hair or Beauty Salon Manager";
+ case _142115: return "Post Office Manager";
+ case _142116: return "Travel Agency Manager";
+ case _149000: return "Miscellaneous Hospitality, Retail and Service Managers nfd";
+ case _149100: return "Amusement, Fitness and Sports Centre Managers nfd";
+ case _149111: return "Amusement Centre Manager";
+ case _149112: return "Fitness Centre Manager";
+ case _149113: return "Sports Centre Manager";
+ case _149200: return "Call or Contact Centre and Customer Service Managers nfd";
+ case _149211: return "Call or Contact Centre Manager";
+ case _149212: return "Customer Service Manager";
+ case _149311: return "Conference and Event Organiser";
+ case _149400: return "Transport Services Managers nfd";
+ case _149411: return "Fleet Manager";
+ case _149412: return "Railway Station Manager";
+ case _149413: return "Transport Company Manager";
+ case _149900: return "Other Hospitality, Retail and Service Managers nfd";
+ case _149911: return "Boarding Kennel or Cattery Operator";
+ case _149912: return "Cinema or Theatre Manager";
+ case _149913: return "Facilities Manager";
+ case _149914: return "Financial Institution Branch Manager";
+ case _149999: return "Hospitality, Retail and Service Managers nec";
+ case _200000: return "Professionals nfd";
+ case _210000: return "Arts and Media Professionals nfd";
+ case _211000: return "Arts Professionals nfd";
+ case _211100: return "Actors, Dancers and Other Entertainers nfd";
+ case _211111: return "Actor";
+ case _211112: return "Dancer or Choreographer";
+ case _211113: return "Entertainer or Variety Artist";
+ case _211199: return "Actors, Dancers and Other Entertainers nec";
+ case _211200: return "Music Professionals nfd";
+ case _211211: return "Composer";
+ case _211212: return "Music Director";
+ case _211213: return "Musician (Instrumental)";
+ case _211214: return "Singer";
+ case _211299: return "Music Professionals nec";
+ case _211311: return "Photographer";
+ case _211400: return "Visual Arts and Crafts Professionals nfd";
+ case _211411: return "Painter (Visual Arts)";
+ case _211412: return "Potter or Ceramic Artist";
+ case _211413: return "Sculptor";
+ case _211499: return "Visual Arts and Crafts Professionals nec";
+ case _212000: return "Media Professionals nfd";
+ case _212100: return "Artistic Directors, and Media Producers and Presenters nfd";
+ case _212111: return "Artistic Director";
+ case _212112: return "Media Producer (excluding Video)";
+ case _212113: return "Radio Presenter";
+ case _212114: return "Television Presenter";
+ case _212200: return "Authors, and Book and Script Editors nfd";
+ case _212211: return "Author";
+ case _212212: return "Book or Script Editor";
+ case _212300: return "Film, Television, Radio and Stage Directors nfd";
+ case _212311: return "Art Director (Film, Television or Stage)";
+ case _212312: return "Director (Film, Television, Radio or Stage)";
+ case _212313: return "Director of Photography";
+ case _212314: return "Film and Video Editor";
+ case _212315: return "Program Director (Television or Radio)";
+ case _212316: return "Stage Manager";
+ case _212317: return "Technical Director";
+ case _212318: return "Video Producer";
+ case _212399: return "Film, Television, Radio and Stage Directors nec";
+ case _212400: return "Journalists and Other Writers nfd";
+ case _212411: return "Copywriter";
+ case _212412: return "Newspaper or Periodical Editor";
+ case _212413: return "Print Journalist";
+ case _212414: return "Radio Journalist";
+ case _212415: return "Technical Writer";
+ case _212416: return "Television Journalist";
+ case _212499: return "Journalists and Other Writers nec";
+ case _220000: return "Business, Human Resource and Marketing Professionals nfd";
+ case _221000: return "Accountants, Auditors and Company Secretaries nfd";
+ case _221100: return "Accountants nfd";
+ case _221111: return "Accountant (General)";
+ case _221112: return "Management Accountant";
+ case _221113: return "Taxation Accountant";
+ case _221200: return "Auditors, Company Secretaries and Corporate Treasurers nfd";
+ case _221211: return "Company Secretary";
+ case _221212: return "Corporate Treasurer";
+ case _221213: return "External Auditor";
+ case _221214: return "Internal Auditor";
+ case _222000: return "Financial Brokers and Dealers, and Investment Advisers nfd";
+ case _222100: return "Financial Brokers nfd";
+ case _222111: return "Commodities Trader";
+ case _222112: return "Finance Broker";
+ case _222113: return "Insurance Broker";
+ case _222199: return "Financial Brokers nec";
+ case _222200: return "Financial Dealers nfd";
+ case _222211: return "Financial Market Dealer";
+ case _222212: return "Futures Trader";
+ case _222213: return "Stockbroking Dealer";
+ case _222299: return "Financial Dealers nec";
+ case _222300: return "Financial Investment Advisers and Managers nfd";
+ case _222311: return "Financial Investment Adviser";
+ case _222312: return "Financial Investment Manager";
+ case _223000: return "Human Resource and Training Professionals nfd";
+ case _223100: return "Human Resource Professionals nfd";
+ case _223111: return "Human Resource Adviser";
+ case _223112: return "Recruitment Consultant";
+ case _223113: return "Workplace Relations Adviser";
+ case _223211: return "ICT Trainer";
+ case _223311: return "Training and Development Professional";
+ case _224000: return "Information and Organization Professionals nfd";
+ case _224100: return "Actuaries, Mathematicians and Statisticians nfd";
+ case _224111: return "Actuary";
+ case _224112: return "Mathematician";
+ case _224113: return "Statistician";
+ case _224200: return "Archivists, Curators and Records Managers nfd";
+ case _224211: return "Archivist";
+ case _224212: return "Gallery or Museum Curator";
+ case _224213: return "Health Information Manager";
+ case _224214: return "Records Manager";
+ case _224311: return "Economist";
+ case _224400: return "Intelligence and Policy Analysts nfd";
+ case _224411: return "Intelligence Officer";
+ case _224412: return "Policy Analyst";
+ case _224500: return "Land Economists and Valuers nfd";
+ case _224511: return "Land Economist";
+ case _224512: return "Valuer";
+ case _224611: return "Librarian";
+ case _224700: return "Management and Organization Analysts nfd";
+ case _224711: return "Management Consultant";
+ case _224712: return "Organization and Methods Analyst";
+ case _224900: return "Other Information and Organization Professionals nfd";
+ case _224911: return "Electorate Officer";
+ case _224912: return "Liaison Officer";
+ case _224913: return "Migration Agent";
+ case _224914: return "Patents Examiner";
+ case _224999: return "Information and Organization Professionals nec";
+ case _225000: return "Sales, Marketing and Public Relations Professionals nfd";
+ case _225100: return "Advertising and Marketing Professionals nfd";
+ case _225111: return "Advertising Specialist";
+ case _225112: return "Market Research Analyst";
+ case _225113: return "Marketing Specialist";
+ case _225200: return "ICT Sales Professionals nfd";
+ case _225211: return "ICT Account Manager";
+ case _225212: return "ICT Business Development Manager";
+ case _225213: return "ICT Sales Representative";
+ case _225311: return "Public Relations Professional";
+ case _225400: return "Technical Sales Representatives nfd";
+ case _225411: return "Sales Representative (Industrial Products)";
+ case _225412: return "Sales Representative (Medical and Pharmaceutical Products)";
+ case _225499: return "Technical Sales Representatives nec";
+ case _230000: return "Design, Engineering, Science and Transport Professionals nfd";
+ case _231000: return "Air and Marine Transport Professionals nfd";
+ case _231100: return "Air Transport Professionals nfd";
+ case _231111: return "Aeroplane Pilot";
+ case _231112: return "Air Traffic Controller";
+ case _231113: return "Flying Instructor";
+ case _231114: return "Helicopter Pilot";
+ case _231199: return "Air Transport Professionals nec";
+ case _231200: return "Marine Transport Professionals nfd";
+ case _231211: return "Master Fisher";
+ case _231212: return "Ship's Engineer";
+ case _231213: return "Ship's Master";
+ case _231214: return "Ship's Officer";
+ case _231215: return "Ship's Surveyor";
+ case _231299: return "Marine Transport Professionals nec";
+ case _232000: return "Architects, Designers, Planners and Surveyors nfd";
+ case _232100: return "Architects and Landscape Architects nfd";
+ case _232111: return "Architect";
+ case _232112: return "Landscape Architect";
+ case _232200: return "Cartographers and Surveyors nfd";
+ case _232211: return "Cartographer";
+ case _232212: return "Surveyor";
+ case _232300: return "Fashion, Industrial and Jewellery Designers nfd";
+ case _232311: return "Fashion Designer";
+ case _232312: return "Industrial Designer";
+ case _232313: return "Jewellery Designer";
+ case _232400: return "Graphic and Web Designers, and Illustrators nfd";
+ case _232411: return "Graphic Designer";
+ case _232412: return "Illustrator";
+ case _232413: return "Multimedia Designer";
+ case _232414: return "Web Designer";
+ case _232511: return "Interior Designer";
+ case _232611: return "Urban and Regional Planner";
+ case _233000: return "Engineering Professionals nfd";
+ case _233100: return "Chemical and Materials Engineers nfd";
+ case _233111: return "Chemical Engineer";
+ case _233112: return "Materials Engineer";
+ case _233200: return "Civil Engineering Professionals nfd";
+ case _233211: return "Civil Engineer";
+ case _233212: return "Geotechnical Engineer";
+ case _233213: return "Quantity Surveyor";
+ case _233214: return "Structural Engineer";
+ case _233215: return "Transport Engineer";
+ case _233311: return "Electrical Engineer";
+ case _233411: return "Electronics Engineer";
+ case _233500: return "Industrial, Mechanical and Production Engineers nfd";
+ case _233511: return "Industrial Engineer";
+ case _233512: return "Mechanical Engineer";
+ case _233513: return "Production or Plant Engineer";
+ case _233600: return "Mining Engineers nfd";
+ case _233611: return "Mining Engineer (excluding Petroleum)";
+ case _233612: return "Petroleum Engineer";
+ case _233900: return "Other Engineering Professionals nfd";
+ case _233911: return "Aeronautical Engineer";
+ case _233912: return "Agricultural Engineer";
+ case _233913: return "Biomedical Engineer";
+ case _233914: return "Engineering Technologist";
+ case _233915: return "Environmental Engineer";
+ case _233916: return "Naval Architect";
+ case _233999: return "Engineering Professionals nec";
+ case _234000: return "Natural and Physical Science Professionals nfd";
+ case _234100: return "Agricultural and Forestry Scientists nfd";
+ case _234111: return "Agricultural Consultant";
+ case _234112: return "Agricultural Scientist";
+ case _234113: return "Forester";
+ case _234200: return "Chemists, and Food and Wine Scientists nfd";
+ case _234211: return "Chemist";
+ case _234212: return "Food Technologist";
+ case _234213: return "Wine Maker";
+ case _234300: return "Environmental Scientists nfd";
+ case _234311: return "Conservation Officer";
+ case _234312: return "Environmental Consultant";
+ case _234313: return "Environmental Research Scientist";
+ case _234314: return "Park Ranger";
+ case _234399: return "Environmental Scientists nec";
+ case _234400: return "Geologists and Geophysicists nfd";
+ case _234411: return "Geologist";
+ case _234412: return "Geophysicist";
+ case _234500: return "Life Scientists nfd";
+ case _234511: return "Life Scientist (General)";
+ case _234512: return "Anatomist or Physiologist";
+ case _234513: return "Biochemist";
+ case _234514: return "Biotechnologist";
+ case _234515: return "Botanist";
+ case _234516: return "Marine Biologist";
+ case _234517: return "Microbiologist";
+ case _234518: return "Zoologist";
+ case _234599: return "Life Scientists nec";
+ case _234611: return "Medical Laboratory Scientist";
+ case _234711: return "Veterinarian";
+ case _234900: return "Other Natural and Physical Science Professionals nfd";
+ case _234911: return "Conservator";
+ case _234912: return "Metallurgist";
+ case _234913: return "Meteorologist";
+ case _234914: return "Physicist";
+ case _234999: return "Natural and Physical Science Professionals nec";
+ case _240000: return "Education Professionals nfd";
+ case _241000: return "School Teachers nfd";
+ case _241111: return "Early Childhood (Pre-primary School) Teacher";
+ case _241213: return "Primary School Teacher";
+ case _241311: return "Middle School Teacher";
+ case _241411: return "Secondary School Teacher";
+ case _241500: return "Special Education Teachers nfd";
+ case _241511: return "Special Needs Teacher";
+ case _241512: return "Teacher of the Hearing Impaired";
+ case _241513: return "Teacher of the Sight Impaired";
+ case _241599: return "Special Education Teachers nec";
+ case _242000: return "Tertiary Education Teachers nfd";
+ case _242100: return "University Lecturers and Tutors nfd";
+ case _242111: return "University Lecturer";
+ case _242112: return "University Tutor";
+ case _242211: return "Vocational Education Teacher";
+ case _249000: return "Miscellaneous Education Professionals nfd";
+ case _249100: return "Education Advisers and Reviewers nfd";
+ case _249111: return "Education Adviser";
+ case _249112: return "Education Reviewer";
+ case _249200: return "Private Tutors and Teachers nfd";
+ case _249211: return "Art Teacher (Private Tuition)";
+ case _249212: return "Dance Teacher (Private Tuition)";
+ case _249213: return "Drama Teacher (Private Tuition)";
+ case _249214: return "Music Teacher (Private Tuition)";
+ case _249299: return "Private Tutors and Teachers nec";
+ case _249311: return "Teacher of English to Speakers of Other Languages";
+ case _250000: return "Health Professionals nfd";
+ case _251000: return "Health Diagnostic and Promotion Professionals nfd";
+ case _251111: return "Dietitian";
+ case _251200: return "Medical Imaging Professionals nfd";
+ case _251211: return "Medical Diagnostic Radiographer";
+ case _251212: return "Medical Radiation Therapist";
+ case _251213: return "Nuclear Medicine Technologist";
+ case _251214: return "Sonographer";
+ case _251300: return "Occupational and Environmental Health Professionals nfd";
+ case _251311: return "Environmental Health Officer";
+ case _251312: return "Occupational Health and Safety Adviser";
+ case _251400: return "Optometrists and Orthoptists nfd";
+ case _251411: return "Optometrist";
+ case _251412: return "Orthoptist";
+ case _251500: return "Pharmacists nfd";
+ case _251511: return "Hospital Pharmacist";
+ case _251512: return "Industrial Pharmacist";
+ case _251513: return "Retail Pharmacist";
+ case _251900: return "Other Health Diagnostic and Promotion Professionals nfd";
+ case _251911: return "Health Promotion Officer";
+ case _251912: return "Orthotist or Prosthetist";
+ case _251999: return "Health Diagnostic and Promotion Professionals nec";
+ case _252000: return "Health Therapy Professionals nfd";
+ case _252100: return "Chiropractors and Osteopaths nfd";
+ case _252111: return "Chiropractor";
+ case _252112: return "Osteopath";
+ case _252200: return "Complementary Health Therapists nfd";
+ case _252211: return "Acupuncturist";
+ case _252212: return "Homoeopath";
+ case _252213: return "Naturopath";
+ case _252214: return "Traditional Chinese Medicine Practitioner";
+ case _252299: return "Complementary Health Therapists nec";
+ case _252300: return "Dental Practitioners nfd";
+ case _252311: return "Dental Specialist";
+ case _252312: return "Dentist";
+ case _252411: return "Occupational Therapist";
+ case _252511: return "Physiotherapist";
+ case _252611: return "Podiatrist";
+ case _252700: return "Speech Professionals and Audiologists nfd";
+ case _252711: return "Audiologist";
+ case _252712: return "Speech Pathologist";
+ case _253000: return "Medical Practitioners nfd";
+ case _253100: return "Generalist Medical Practitioners nfd";
+ case _253111: return "General Medical Practitioner";
+ case _253112: return "Resident Medical Officer";
+ case _253211: return "Anaesthetist";
+ case _253300: return "Internal Medicine Specialists nfd";
+ case _253311: return "Specialist Physician (General Medicine)";
+ case _253312: return "Cardiologist";
+ case _253313: return "Clinical Haematologist";
+ case _253314: return "Clinical Oncologist";
+ case _253315: return "Endocrinologist";
+ case _253316: return "Gastroenterologist";
+ case _253317: return "Intensive Care Specialist";
+ case _253318: return "Neurologist";
+ case _253321: return "Paediatrician";
+ case _253322: return "Renal Medicine Specialist";
+ case _253323: return "Rheumatologist";
+ case _253324: return "Thoracic Medicine Specialist";
+ case _253399: return "Internal Medicine Specialists nec";
+ case _253411: return "Psychiatrist";
+ case _253500: return "Surgeons nfd";
+ case _253511: return "Surgeon (General)";
+ case _253512: return "Cardiothoracic Surgeon";
+ case _253513: return "Neurosurgeon";
+ case _253514: return "Orthopaedic Surgeon";
+ case _253515: return "Otorhinolaryngologist";
+ case _253516: return "Paediatric Surgeon";
+ case _253517: return "Plastic and Reconstructive Surgeon";
+ case _253518: return "Urologist";
+ case _253521: return "Vascular Surgeon";
+ case _253900: return "Other Medical Practitioners nfd";
+ case _253911: return "Dermatologist";
+ case _253912: return "Emergency Medicine Specialist";
+ case _253913: return "Obstetrician and Gynaecologist";
+ case _253914: return "Ophthalmologist";
+ case _253915: return "Pathologist";
+ case _253916: return "Radiologist";
+ case _253999: return "Medical Practitioners nec";
+ case _254000: return "Midwifery and Nursing Professionals nfd";
+ case _254111: return "Midwife";
+ case _254200: return "Nurse Educators and Researchers nfd";
+ case _254211: return "Nurse Educator";
+ case _254212: return "Nurse Researcher";
+ case _254311: return "Nurse Manager";
+ case _254400: return "Registered Nurses nfd";
+ case _254411: return "Nurse Practitioner";
+ case _254412: return "Registered Nurse (Aged Care)";
+ case _254413: return "Registered Nurse (Child and Family Health)";
+ case _254414: return "Registered Nurse (Community Health)";
+ case _254415: return "Registered Nurse (Critical Care and Emergency)";
+ case _254416: return "Registered Nurse (Developmental Disability)";
+ case _254417: return "Registered Nurse (Disability and Rehabilitation)";
+ case _254418: return "Registered Nurse (Medical)";
+ case _254421: return "Registered Nurse (Medical Practice)";
+ case _254422: return "Registered Nurse (Mental Health)";
+ case _254423: return "Registered Nurse (Perioperative)";
+ case _254424: return "Registered Nurse (Surgical)";
+ case _254499: return "Registered Nurses nec";
+ case _260000: return "ICT Professionals nfd";
+ case _261000: return "Business and Systems Analysts, and Programmers nfd";
+ case _261100: return "ICT Business and Systems Analysts nfd";
+ case _261111: return "ICT Business Analyst";
+ case _261112: return "Systems Analyst";
+ case _261200: return "Multimedia Specialists and Web Developers nfd";
+ case _261211: return "Multimedia Specialist";
+ case _261212: return "Web Developer";
+ case _261300: return "Software and Applications Programmers nfd";
+ case _261311: return "Analyst Programmer";
+ case _261312: return "Developer Programmer";
+ case _261313: return "Software Engineer";
+ case _261399: return "Software and Applications Programmers nec";
+ case _262100: return "Database and Systems Administrators, and ICT Security Specialists nfd";
+ case _262111: return "Database Administrator";
+ case _262112: return "ICT Security Specialist";
+ case _262113: return "Systems Administrator";
+ case _263000: return "ICT Network and Support Professionals nfd";
+ case _263100: return "Computer Network Professionals nfd";
+ case _263111: return "Computer Network and Systems Engineer";
+ case _263112: return "Network Administrator";
+ case _263113: return "Network Analyst";
+ case _263200: return "ICT Support and Test Engineers nfd";
+ case _263211: return "ICT Quality Assurance Engineer";
+ case _263212: return "ICT Support Engineer";
+ case _263213: return "ICT Systems Test Engineer";
+ case _263299: return "ICT Support and Test Engineers nec";
+ case _263300: return "Telecommunications Engineering Professionals nfd";
+ case _263311: return "Telecommunications Engineer";
+ case _263312: return "Telecommunications Network Engineer";
+ case _270000: return "Legal, Social and Welfare Professionals nfd";
+ case _271000: return "Legal Professionals nfd";
+ case _271111: return "Barrister";
+ case _271200: return "Judicial and Other Legal Professionals nfd";
+ case _271211: return "Judge";
+ case _271212: return "Magistrate";
+ case _271213: return "Tribunal Member";
+ case _271299: return "Judicial and Other Legal Professionals nec";
+ case _271311: return "Solicitor";
+ case _272000: return "Social and Welfare Professionals nfd";
+ case _272100: return "Counsellors nfd";
+ case _272111: return "Careers Counsellor";
+ case _272112: return "Drug and Alcohol Counsellor";
+ case _272113: return "Family and Marriage Counsellor";
+ case _272114: return "Rehabilitation Counsellor";
+ case _272115: return "Student Counsellor";
+ case _272199: return "Counsellors nec";
+ case _272211: return "Minister of Religion";
+ case _272300: return "Psychologists nfd";
+ case _272311: return "Clinical Psychologist";
+ case _272312: return "Educational Psychologist";
+ case _272313: return "Organizational Psychologist";
+ case _272314: return "Psychotherapist";
+ case _272399: return "Psychologists nec";
+ case _272400: return "Social Professionals nfd";
+ case _272411: return "Historian";
+ case _272412: return "Interpreter";
+ case _272413: return "Translator";
+ case _272499: return "Social Professionals nec";
+ case _272511: return "Social Worker";
+ case _272600: return "Welfare, Recreation and Community Arts Workers nfd";
+ case _272611: return "Community Arts Worker";
+ case _272612: return "Recreation Officer";
+ case _272613: return "Welfare Worker";
+ case _300000: return "Technicians and Trades Workers nfd";
+ case _310000: return "Engineering, ICT and Science Technicians nfd";
+ case _311000: return "Agricultural, Medical and Science Technicians nfd";
+ case _311111: return "Agricultural Technician";
+ case _311200: return "Medical Technicians nfd";
+ case _311211: return "Anaesthetic Technician";
+ case _311212: return "Cardiac Technician";
+ case _311213: return "Medical Laboratory Technician";
+ case _311214: return "Operating Theatre Technician";
+ case _311215: return "Pharmacy Technician";
+ case _311299: return "Medical Technicians nec";
+ case _311300: return "Primary Products Inspectors nfd";
+ case _311311: return "Fisheries Officer";
+ case _311312: return "Meat Inspector";
+ case _311313: return "Quarantine Officer";
+ case _311399: return "Primary Products Inspectors nec";
+ case _311400: return "Science Technicians nfd";
+ case _311411: return "Chemistry Technician";
+ case _311412: return "Earth Science Technician";
+ case _311413: return "Life Science Technician";
+ case _311414: return "School Laboratory Technician";
+ case _311499: return "Science Technicians nec";
+ case _312000: return "Building and Engineering Technicians nfd";
+ case _312100: return "Architectural, Building and Surveying Technicians nfd";
+ case _312111: return "Architectural Draftsperson";
+ case _312112: return "Building Associate";
+ case _312113: return "Building Inspector";
+ case _312114: return "Construction Estimator";
+ case _312115: return "Plumbing Inspector";
+ case _312116: return "Surveying or Cartographic Technician";
+ case _312200: return "Civil Engineering Draftspersons and Technicians nfd";
+ case _312211: return "Civil Engineering Draftsperson";
+ case _312212: return "Civil Engineering Technician";
+ case _312300: return "Electrical Engineering Draftspersons and Technicians nfd";
+ case _312311: return "Electrical Engineering Draftsperson";
+ case _312312: return "Electrical Engineering Technician";
+ case _312400: return "Electronic Engineering Draftspersons and Technicians nfd";
+ case _312411: return "Electronic Engineering Draftsperson";
+ case _312412: return "Electronic Engineering Technician";
+ case _312500: return "Mechanical Engineering Draftspersons and Technicians nfd";
+ case _312511: return "Mechanical Engineering Draftsperson";
+ case _312512: return "Mechanical Engineering Technician";
+ case _312611: return "Safety Inspector";
+ case _312900: return "Other Building and Engineering Technicians nfd";
+ case _312911: return "Maintenance Planner";
+ case _312912: return "Metallurgical or Materials Technician";
+ case _312913: return "Mine Deputy";
+ case _312999: return "Building and Engineering Technicians nec";
+ case _313000: return "ICT and Telecommunications Technicians nfd";
+ case _313100: return "ICT Support Technicians nfd";
+ case _313111: return "Hardware Technician";
+ case _313112: return "ICT Customer Support Officer";
+ case _313113: return "Web Administrator";
+ case _313199: return "ICT Support Technicians nec";
+ case _313200: return "Telecommunications Technical Specialists nfd";
+ case _313211: return "Radiocommunications Technician";
+ case _313212: return "Telecommunications Field Engineer";
+ case _313213: return "Telecommunications Network Planner";
+ case _313214: return "Telecommunications Technical Officer or Technologist";
+ case _320000: return "Automotive and Engineering Trades Workers nfd";
+ case _321000: return "Automotive Electricians and Mechanics nfd";
+ case _321111: return "Automotive Electrician";
+ case _321200: return "Motor Mechanics nfd";
+ case _321211: return "Motor Mechanic (General)";
+ case _321212: return "Diesel Motor Mechanic";
+ case _321213: return "Motorcycle Mechanic";
+ case _321214: return "Small Engine Mechanic";
+ case _322000: return "Fabrication Engineering Trades Workers nfd";
+ case _322100: return "Metal Casting, Forging and Finishing Trades Workers nfd";
+ case _322111: return "Blacksmith";
+ case _322112: return "Electroplater";
+ case _322113: return "Farrier";
+ case _322114: return "Metal Casting Trades Worker";
+ case _322115: return "Metal Polisher";
+ case _322211: return "Sheetmetal Trades Worker";
+ case _322300: return "Structural Steel and Welding Trades Workers nfd";
+ case _322311: return "Metal Fabricator";
+ case _322312: return "Pressure Welder";
+ case _322313: return "Welder (First Class)";
+ case _323000: return "Mechanical Engineering Trades Workers nfd";
+ case _323100: return "Aircraft Maintenance Engineers nfd";
+ case _323111: return "Aircraft Maintenance Engineer (Avionics)";
+ case _323112: return "Aircraft Maintenance Engineer (Mechanical)";
+ case _323113: return "Aircraft Maintenance Engineer (Structures)";
+ case _323200: return "Metal Fitters and Machinists nfd";
+ case _323211: return "Fitter (General)";
+ case _323212: return "Fitter and Turner";
+ case _323213: return "Fitter-Welder";
+ case _323214: return "Metal Machinist (First Class)";
+ case _323215: return "Textile, Clothing and Footwear Mechanic";
+ case _323299: return "Metal Fitters and Machinists nec";
+ case _323300: return "Precision Metal Trades Workers nfd";
+ case _323311: return "Engraver";
+ case _323312: return "Gunsmith";
+ case _323313: return "Locksmith";
+ case _323314: return "Precision Instrument Maker and Repairer";
+ case _323315: return "Saw Maker and Repairer";
+ case _323316: return "Watch and Clock Maker and Repairer";
+ case _323400: return "Toolmakers and Engineering Patternmakers nfd";
+ case _323411: return "Engineering Patternmaker";
+ case _323412: return "Toolmaker";
+ case _324000: return "Panelbeaters, and Vehicle Body Builders, Trimmers and Painters nfd";
+ case _324111: return "Panelbeater";
+ case _324200: return "Vehicle Body Builders and Trimmers nfd";
+ case _324211: return "Vehicle Body Builder";
+ case _324212: return "Vehicle Trimmer";
+ case _324311: return "Vehicle Painter";
+ case _330000: return "Construction Trades Workers nfd";
+ case _331000: return "Bricklayers, and Carpenters and Joiners nfd";
+ case _331100: return "Bricklayers and Stonemasons nfd";
+ case _331111: return "Bricklayer";
+ case _331112: return "Stonemason";
+ case _331211: return "Carpenter and Joiner";
+ case _331212: return "Carpenter";
+ case _331213: return "Joiner";
+ case _332000: return "Floor Finishers and Painting Trades Workers nfd";
+ case _332111: return "Floor Finisher";
+ case _332211: return "Painting Trades Worker";
+ case _333000: return "Glaziers, Plasterers and Tilers nfd";
+ case _333111: return "Glazier";
+ case _333200: return "Plasterers nfd";
+ case _333211: return "Fibrous Plasterer";
+ case _333212: return "Solid Plasterer";
+ case _333311: return "Roof Tiler";
+ case _333411: return "Wall and Floor Tiler";
+ case _334100: return "Plumbers nfd";
+ case _334111: return "Plumber (General)";
+ case _334112: return "Airconditioning and Mechanical Services Plumber";
+ case _334113: return "Drainer";
+ case _334114: return "Gasfitter";
+ case _334115: return "Roof Plumber";
+ case _340000: return "Electrotechnology and Telecommunications Trades Workers nfd";
+ case _341100: return "Electricians nfd";
+ case _341111: return "Electrician (General)";
+ case _341112: return "Electrician (Special Class)";
+ case _341113: return "Lift Mechanic";
+ case _342000: return "Electronics and Telecommunications Trades Workers nfd";
+ case _342111: return "Airconditioning and Refrigeration Mechanic";
+ case _342200: return "Electrical Distribution Trades Workers nfd";
+ case _342211: return "Electrical Linesworker";
+ case _342212: return "Technical Cable Jointer";
+ case _342300: return "Electronics Trades Workers nfd";
+ case _342311: return "Business Machine Mechanic";
+ case _342312: return "Communications Operator";
+ case _342313: return "Electronic Equipment Trades Worker";
+ case _342314: return "Electronic Instrument Trades Worker (General)";
+ case _342315: return "Electronic Instrument Trades Worker (Special Class)";
+ case _342400: return "Telecommunications Trades Workers nfd";
+ case _342411: return "Cabler (Data and Telecommunications)";
+ case _342412: return "Telecommunications Cable Jointer";
+ case _342413: return "Telecommunications Linesworker";
+ case _342414: return "Telecommunications Technician";
+ case _351000: return "Food Trades Workers nfd";
+ case _351100: return "Bakers and Pastrycooks nfd";
+ case _351111: return "Baker";
+ case _351112: return "Pastrycook";
+ case _351211: return "Butcher or Smallgoods Maker";
+ case _351311: return "Chef";
+ case _351411: return "Cook";
+ case _360000: return "Skilled Animal and Horticultural Workers nfd";
+ case _361000: return "Animal Attendants and Trainers, and Shearers nfd";
+ case _361100: return "Animal Attendants and Trainers nfd";
+ case _361111: return "Dog Handler or Trainer";
+ case _361112: return "Horse Trainer";
+ case _361113: return "Pet Groomer";
+ case _361114: return "Zookeeper";
+ case _361199: return "Animal Attendants and Trainers nec";
+ case _361211: return "Shearer";
+ case _361311: return "Veterinary Nurse";
+ case _362000: return "Horticultural Trades Workers nfd";
+ case _362111: return "Florist";
+ case _362200: return "Gardeners nfd";
+ case _362211: return "Gardener (General)";
+ case _362212: return "Arborist";
+ case _362213: return "Landscape Gardener";
+ case _362311: return "Greenkeeper";
+ case _362411: return "Nurseryperson";
+ case _390000: return "Other Technicians and Trades Workers nfd";
+ case _391111: return "Hairdresser";
+ case _392000: return "Printing Trades Workers nfd";
+ case _392100: return "Binders, Finishers and Screen Printers nfd";
+ case _392111: return "Binder and Finisher";
+ case _392112: return "Screen Printer";
+ case _392211: return "Graphic Pre-press Trades Worker";
+ case _392300: return "Printers nfd";
+ case _392311: return "Printing Machinist";
+ case _392312: return "Small Offset Printer";
+ case _393000: return "Textile, Clothing and Footwear Trades Workers nfd";
+ case _393100: return "Canvas and Leather Goods Makers nfd";
+ case _393111: return "Canvas Goods Maker";
+ case _393112: return "Leather Goods Maker";
+ case _393113: return "Sail Maker";
+ case _393114: return "Shoemaker";
+ case _393200: return "Clothing Trades Workers nfd";
+ case _393211: return "Apparel Cutter";
+ case _393212: return "Clothing Patternmaker";
+ case _393213: return "Dressmaker or Tailor";
+ case _393299: return "Clothing Trades Workers nec";
+ case _393311: return "Upholsterer";
+ case _394000: return "Wood Trades Workers nfd";
+ case _394111: return "Cabinetmaker";
+ case _394200: return "Wood Machinists and Other Wood Trades Workers nfd";
+ case _394211: return "Furniture Finisher";
+ case _394212: return "Picture Framer";
+ case _394213: return "Wood Machinist";
+ case _394214: return "Wood Turner";
+ case _394299: return "Wood Machinists and Other Wood Trades Workers nec";
+ case _399000: return "Miscellaneous Technicians and Trades Workers nfd";
+ case _399100: return "Boat Builders and Shipwrights nfd";
+ case _399111: return "Boat Builder and Repairer";
+ case _399112: return "Shipwright";
+ case _399200: return "Chemical, Gas, Petroleum and Power Generation Plant Operators nfd";
+ case _399211: return "Chemical Plant Operator";
+ case _399212: return "Gas or Petroleum Operator";
+ case _399213: return "Power Generation Plant Operator";
+ case _399300: return "Gallery, Library and Museum Technicians nfd";
+ case _399311: return "Gallery or Museum Technician";
+ case _399312: return "Library Technician";
+ case _399411: return "Jeweller";
+ case _399500: return "Performing Arts Technicians nfd";
+ case _399511: return "Broadcast Transmitter Operator";
+ case _399512: return "Camera Operator (Film, Television or Video)";
+ case _399513: return "Light Technician";
+ case _399514: return "Make Up Artist";
+ case _399515: return "Musical Instrument Maker or Repairer";
+ case _399516: return "Sound Technician";
+ case _399517: return "Television Equipment Operator";
+ case _399599: return "Performing Arts Technicians nec";
+ case _399611: return "Signwriter";
+ case _399900: return "Other Miscellaneous Technicians and Trades Workers nfd";
+ case _399911: return "Diver";
+ case _399912: return "Interior Decorator";
+ case _399913: return "Optical Dispenser";
+ case _399914: return "Optical Mechanic";
+ case _399915: return "Photographer's Assistant";
+ case _399916: return "Plastics Technician";
+ case _399917: return "Wool Classer";
+ case _399999: return "Technicians and Trades Workers nec";
+ case _400000: return "Community and Personal Service Workers nfd";
+ case _411000: return "Health and Welfare Support Workers nfd";
+ case _411100: return "Ambulance Officers and Paramedics nfd";
+ case _411111: return "Ambulance Officer";
+ case _411112: return "Intensive Care Ambulance Paramedic";
+ case _411200: return "Dental Hygienists, Technicians and Therapists nfd";
+ case _411211: return "Dental Hygienist";
+ case _411212: return "Dental Prosthetist";
+ case _411213: return "Dental Technician";
+ case _411214: return "Dental Therapist";
+ case _411311: return "Diversional Therapist";
+ case _411400: return "Enrolled and Mothercraft Nurses nfd";
+ case _411411: return "Enrolled Nurse";
+ case _411412: return "Mothercraft Nurse";
+ case _411511: return "Aboriginal and Torres Strait Islander Health Worker";
+ case _411611: return "Massage Therapist";
+ case _411700: return "Welfare Support Workers nfd";
+ case _411711: return "Community Worker";
+ case _411712: return "Disabilities Services Officer";
+ case _411713: return "Family Support Worker";
+ case _411714: return "Parole or Probation Officer";
+ case _411715: return "Residential Care Officer";
+ case _411716: return "Youth Worker";
+ case _420000: return "Carers and Aides nfd";
+ case _421100: return "Child Carers nfd";
+ case _421111: return "Child Care Worker";
+ case _421112: return "Family Day Care Worker";
+ case _421113: return "Nanny";
+ case _421114: return "Out of School Hours Care Worker";
+ case _422100: return "Education Aides nfd";
+ case _422111: return "Aboriginal and Torres Strait Islander Education Worker";
+ case _422112: return "Integration Aide";
+ case _422115: return "Preschool Aide";
+ case _422116: return "Teachers' Aide";
+ case _423000: return "Personal Carers and Assistants nfd";
+ case _423111: return "Aged or Disabled Carer";
+ case _423211: return "Dental Assistant";
+ case _423300: return "Nursing Support and Personal Care Workers nfd";
+ case _423311: return "Hospital Orderly";
+ case _423312: return "Nursing Support Worker";
+ case _423313: return "Personal Care Assistant";
+ case _423314: return "Therapy Aide";
+ case _423400: return "Special Care Workers nfd";
+ case _423411: return "Child or Youth Residential Care Assistant";
+ case _423412: return "Hostel Parent";
+ case _423413: return "Refuge Worker";
+ case _431000: return "Hospitality Workers nfd";
+ case _431100: return "Bar Attendants and Baristas nfd";
+ case _431111: return "Bar Attendant";
+ case _431112: return "Barista";
+ case _431211: return "Cafe Worker";
+ case _431311: return "Gaming Worker";
+ case _431411: return "Hotel Service Manager";
+ case _431511: return "Waiter";
+ case _431900: return "Other Hospitality Workers nfd";
+ case _431911: return "Bar Useful or Busser";
+ case _431912: return "Doorperson or Luggage Porter";
+ case _431999: return "Hospitality Workers nec";
+ case _440000: return "Protective Service Workers nfd";
+ case _441000: return "Defence Force Members, Fire Fighters and Police nfd";
+ case _441111: return "Defence Force Member - Other Ranks";
+ case _441200: return "Fire and Emergency Workers nfd";
+ case _441211: return "Emergency Service Worker";
+ case _441212: return "Fire Fighter";
+ case _441300: return "Police nfd";
+ case _441311: return "Detective";
+ case _441312: return "Police Officer";
+ case _442000: return "Prison and Security Officers nfd";
+ case _442111: return "Prison Officer";
+ case _442200: return "Security Officers and Guards nfd";
+ case _442211: return "Alarm, Security or Surveillance Monitor";
+ case _442212: return "Armoured Car Escort";
+ case _442213: return "Crowd Controller";
+ case _442214: return "Private Investigator";
+ case _442215: return "Retail Loss Prevention Officer";
+ case _442216: return "Security Consultant";
+ case _442217: return "Security Officer";
+ case _442299: return "Security Officers and Guards nec";
+ case _450000: return "Sports and Personal Service Workers nfd";
+ case _451000: return "Personal Service and Travel Workers nfd";
+ case _451111: return "Beauty Therapist";
+ case _451211: return "Driving Instructor";
+ case _451300: return "Funeral Workers nfd";
+ case _451311: return "Funeral Director";
+ case _451399: return "Funeral Workers nec";
+ case _451400: return "Gallery, Museum and Tour Guides nfd";
+ case _451411: return "Gallery or Museum Guide";
+ case _451412: return "Tour Guide";
+ case _451500: return "Personal Care Consultants nfd";
+ case _451511: return "Natural Remedy Consultant";
+ case _451512: return "Weight Loss Consultant";
+ case _451600: return "Tourism and Travel Advisers nfd";
+ case _451611: return "Tourist Information Officer";
+ case _451612: return "Travel Consultant";
+ case _451700: return "Travel Attendants nfd";
+ case _451711: return "Flight Attendant";
+ case _451799: return "Travel Attendants nec";
+ case _451800: return "Other Personal Service Workers nfd";
+ case _451811: return "Civil Celebrant";
+ case _451812: return "Hair or Beauty Salon Assistant";
+ case _451813: return "Sex Worker or Escort";
+ case _451899: return "Personal Service Workers nec";
+ case _452000: return "Sports and Fitness Workers nfd";
+ case _452111: return "Fitness Instructor";
+ case _452200: return "Outdoor Adventure Guides nfd";
+ case _452211: return "Bungy Jump Master";
+ case _452212: return "Fishing Guide";
+ case _452213: return "Hunting Guide";
+ case _452214: return "Mountain or Glacier Guide";
+ case _452215: return "Outdoor Adventure Instructor";
+ case _452216: return "Trekking Guide";
+ case _452217: return "Whitewater Rafting Guide";
+ case _452299: return "Outdoor Adventure Guides nec";
+ case _452300: return "Sports Coaches, Instructors and Officials nfd";
+ case _452311: return "Diving Instructor (Open Water)";
+ case _452312: return "Gymnastics Coach or Instructor";
+ case _452313: return "Horse Riding Coach or Instructor";
+ case _452314: return "Snowsport Instructor";
+ case _452315: return "Swimming Coach or Instructor";
+ case _452316: return "Tennis Coach";
+ case _452317: return "Other Sports Coach or Instructor";
+ case _452318: return "Dog or Horse Racing Official";
+ case _452321: return "Sports Development Officer";
+ case _452322: return "Sports Umpire";
+ case _452323: return "Other Sports Official";
+ case _452400: return "Sportspersons nfd";
+ case _452411: return "Footballer";
+ case _452412: return "Golfer";
+ case _452413: return "Jockey";
+ case _452414: return "Lifeguard";
+ case _452499: return "Sportspersons nec";
+ case _500000: return "Clerical and Administrative Workers nfd";
+ case _510000: return "Office Managers and Program Administrators nfd";
+ case _511100: return "Contract, Program and Project Administrators nfd";
+ case _511111: return "Contract Administrator";
+ case _511112: return "Program or Project Administrator";
+ case _512000: return "Office and Practice Managers nfd";
+ case _512111: return "Office Manager";
+ case _512200: return "Practice Managers nfd";
+ case _512211: return "Health Practice Manager";
+ case _512299: return "Practice Managers nec";
+ case _521000: return "Personal Assistants and Secretaries nfd";
+ case _521111: return "Personal Assistant";
+ case _521200: return "Secretaries nfd";
+ case _521211: return "Secretary (General)";
+ case _521212: return "Legal Secretary";
+ case _530000: return "General Clerical Workers nfd";
+ case _531111: return "General Clerk";
+ case _532100: return "Keyboard Operators nfd";
+ case _532111: return "Data Entry Operator";
+ case _532112: return "Machine Shorthand Reporter";
+ case _532113: return "Word Processing Operator";
+ case _540000: return "Inquiry Clerks and Receptionists nfd";
+ case _541000: return "Call or Contact Centre Information Clerks nfd";
+ case _541100: return "Call or Contact Centre Workers nfd";
+ case _541111: return "Call or Contact Centre Team Leader";
+ case _541112: return "Call or Contact Centre Operator";
+ case _541211: return "Inquiry Clerk";
+ case _542100: return "Receptionists nfd";
+ case _542111: return "Receptionist (General)";
+ case _542112: return "Admissions Clerk";
+ case _542113: return "Hotel or Motel Receptionist";
+ case _542114: return "Medical Receptionist";
+ case _550000: return "Numerical Clerks nfd";
+ case _551000: return "Accounting Clerks and Bookkeepers nfd";
+ case _551100: return "Accounting Clerks nfd";
+ case _551111: return "Accounts Clerk";
+ case _551112: return "Cost Clerk";
+ case _551211: return "Bookkeeper";
+ case _551311: return "Payroll Clerk";
+ case _552000: return "Financial and Insurance Clerks nfd";
+ case _552111: return "Bank Worker";
+ case _552211: return "Credit or Loans Officer";
+ case _552300: return "Insurance, Money Market and Statistical Clerks nfd";
+ case _552311: return "Bookmaker";
+ case _552312: return "Insurance Consultant";
+ case _552313: return "Money Market Clerk";
+ case _552314: return "Statistical Clerk";
+ case _561000: return "Clerical and Office Support Workers nfd";
+ case _561100: return "Betting Clerks nfd";
+ case _561111: return "Betting Agency Counter Clerk";
+ case _561112: return "Bookmaker's Clerk";
+ case _561113: return "Telephone Betting Clerk";
+ case _561199: return "Betting Clerks nec";
+ case _561200: return "Couriers and Postal Deliverers nfd";
+ case _561211: return "Courier";
+ case _561212: return "Postal Delivery Officer";
+ case _561311: return "Filing or Registry Clerk";
+ case _561400: return "Mail Sorters nfd";
+ case _561411: return "Mail Clerk";
+ case _561412: return "Postal Sorting Officer";
+ case _561511: return "Survey Interviewer";
+ case _561611: return "Switchboard Operator";
+ case _561900: return "Other Clerical and Office Support Workers nfd";
+ case _561911: return "Classified Advertising Clerk";
+ case _561912: return "Meter Reader";
+ case _561913: return "Parking Inspector";
+ case _561999: return "Clerical and Office Support Workers nec";
+ case _590000: return "Other Clerical and Administrative Workers nfd";
+ case _591000: return "Logistics Clerks nfd";
+ case _591100: return "Purchasing and Supply Logistics Clerks nfd";
+ case _591111: return "Order Clerk";
+ case _591112: return "Production Clerk";
+ case _591113: return "Purchasing Officer";
+ case _591114: return "Sales Clerk";
+ case _591115: return "Stock Clerk";
+ case _591116: return "Warehouse Administrator";
+ case _591200: return "Transport and Despatch Clerks nfd";
+ case _591211: return "Despatching and Receiving Clerk";
+ case _591212: return "Import-Export Clerk";
+ case _599000: return "Miscellaneous Clerical and Administrative Workers nfd";
+ case _599100: return "Conveyancers and Legal Executives nfd";
+ case _599111: return "Conveyancer";
+ case _599112: return "Legal Executive";
+ case _599200: return "Court and Legal Clerks nfd";
+ case _599211: return "Clerk of Court";
+ case _599212: return "Court Bailiff or Sheriff";
+ case _599213: return "Court Orderly";
+ case _599214: return "Law Clerk";
+ case _599215: return "Trust Officer";
+ case _599311: return "Debt Collector";
+ case _599411: return "Human Resource Clerk";
+ case _599500: return "Inspectors and Regulatory Officers nfd";
+ case _599511: return "Customs Officer";
+ case _599512: return "Immigration Officer";
+ case _599513: return "Motor Vehicle Licence Examiner";
+ case _599514: return "Noxious Weeds and Pest Inspector";
+ case _599515: return "Social Security Assessor";
+ case _599516: return "Taxation Inspector";
+ case _599517: return "Train Examiner";
+ case _599518: return "Transport Operations Inspector";
+ case _599521: return "Water Inspector";
+ case _599599: return "Inspectors and Regulatory Officers nec";
+ case _599600: return "Insurance Investigators, Loss Adjusters and Risk Surveyors nfd";
+ case _599611: return "Insurance Investigator";
+ case _599612: return "Insurance Loss Adjuster";
+ case _599613: return "Insurance Risk Surveyor";
+ case _599711: return "Library Assistant";
+ case _599900: return "Other Miscellaneous Clerical and Administrative Workers nfd";
+ case _599911: return "Coding Clerk";
+ case _599912: return "Production Assistant (Film, Television, Radio or Stage)";
+ case _599913: return "Proof Reader";
+ case _599914: return "Radio Despatcher";
+ case _599999: return "Clerical and Administrative Workers nec";
+ case _600000: return "Sales Workers nfd";
+ case _610000: return "Sales Representatives and Agents nfd";
+ case _611000: return "Insurance Agents and Sales Representatives nfd";
+ case _611100: return "Auctioneers, and Stock and Station Agents nfd";
+ case _611111: return "Auctioneer";
+ case _611112: return "Stock and Station Agent";
+ case _611211: return "Insurance Agent";
+ case _611300: return "Sales Representatives nfd";
+ case _611311: return "Sales Representative (Building and Plumbing Supplies)";
+ case _611312: return "Sales Representative (Business Services)";
+ case _611313: return "Sales Representative (Motor Vehicle Parts and Accessories)";
+ case _611314: return "Sales Representative (Personal and Household Goods)";
+ case _611399: return "Sales Representatives nec";
+ case _612100: return "Real Estate Sales Agents nfd";
+ case _612111: return "Business Broker";
+ case _612112: return "Property Manager";
+ case _612113: return "Real Estate Agency Principal";
+ case _612114: return "Real Estate Agent";
+ case _612115: return "Real Estate Representative";
+ case _621000: return "Sales Assistants and Salespersons nfd";
+ case _621111: return "Sales Assistant (General)";
+ case _621211: return "ICT Sales Assistant";
+ case _621300: return "Motor Vehicle and Vehicle Parts Salespersons nfd";
+ case _621311: return "Motor Vehicle or Caravan Salesperson";
+ case _621312: return "Motor Vehicle Parts Interpreter";
+ case _621411: return "Pharmacy Sales Assistant";
+ case _621511: return "Retail Supervisor";
+ case _621611: return "Service Station Attendant";
+ case _621700: return "Street Vendors and Related Salespersons nfd";
+ case _621711: return "Cash Van Salesperson";
+ case _621712: return "Door-to-door Salesperson";
+ case _621713: return "Street Vendor";
+ case _621900: return "Other Sales Assistants and Salespersons nfd";
+ case _621911: return "Materials Recycler";
+ case _621912: return "Rental Salesperson";
+ case _621999: return "Sales Assistants and Salespersons nec";
+ case _630000: return "Sales Support Workers nfd";
+ case _631100: return "Checkout Operators and Office Cashiers nfd";
+ case _631111: return "Checkout Operator";
+ case _631112: return "Office Cashier";
+ case _639000: return "Miscellaneous Sales Support Workers nfd";
+ case _639100: return "Models and Sales Demonstrators nfd";
+ case _639111: return "Model";
+ case _639112: return "Sales Demonstrator";
+ case _639200: return "Retail and Wool Buyers nfd";
+ case _639211: return "Retail Buyer";
+ case _639212: return "Wool Buyer";
+ case _639311: return "Telemarketer";
+ case _639400: return "Ticket Salespersons nfd";
+ case _639411: return "Ticket Seller";
+ case _639412: return "Transport Conductor";
+ case _639511: return "Visual Merchandiser";
+ case _639911: return "Other Sales Support Worker";
+ case _700000: return "Machinery Operators and Drivers nfd";
+ case _710000: return "Machine and Stationary Plant Operators nfd";
+ case _711000: return "Machine Operators nfd";
+ case _711100: return "Clay, Concrete, Glass and Stone Processing Machine Operators nfd";
+ case _711111: return "Clay Products Machine Operator";
+ case _711112: return "Concrete Products Machine Operator";
+ case _711113: return "Glass Production Machine Operator";
+ case _711114: return "Stone Processing Machine Operator";
+ case _711199: return "Clay, Concrete, Glass and Stone Processing Machine Operators nec";
+ case _711211: return "Industrial Spraypainter";
+ case _711300: return "Paper and Wood Processing Machine Operators nfd";
+ case _711311: return "Paper Products Machine Operator";
+ case _711312: return "Wood Processing Machine Operator";
+ case _711411: return "Photographic Developer and Printer";
+ case _711500: return "Plastics and Rubber Production Machine Operators nfd";
+ case _711511: return "Plastic Cablemaking Machine Operator";
+ case _711512: return "Plastic Compounding and Reclamation Machine Operator";
+ case _711513: return "Plastics Fabricator or Welder";
+ case _711514: return "Plastics Production Machine Operator (General)";
+ case _711515: return "Reinforced Plastic and Composite Production Worker";
+ case _711516: return "Rubber Production Machine Operator";
+ case _711599: return "Plastics and Rubber Production Machine Operators nec";
+ case _711611: return "Sewing Machinist";
+ case _711700: return "Textile and Footwear Production Machine Operators nfd";
+ case _711711: return "Footwear Production Machine Operator";
+ case _711712: return "Hide and Skin Processing Machine Operator";
+ case _711713: return "Knitting Machine Operator";
+ case _711714: return "Textile Dyeing and Finishing Machine Operator";
+ case _711715: return "Weaving Machine Operator";
+ case _711716: return "Yarn Carding and Spinning Machine Operator";
+ case _711799: return "Textile and Footwear Production Machine Operators nec";
+ case _711900: return "Other Machine Operators nfd";
+ case _711911: return "Chemical Production Machine Operator";
+ case _711912: return "Motion Picture Projectionist";
+ case _711913: return "Sand Blaster";
+ case _711914: return "Sterilisation Technician";
+ case _711999: return "Machine Operators nec";
+ case _712000: return "Stationary Plant Operators nfd";
+ case _712111: return "Crane, Hoist or Lift Operator";
+ case _712200: return "Drillers, Miners and Shot Firers nfd";
+ case _712211: return "Driller";
+ case _712212: return "Miner";
+ case _712213: return "Shot Firer";
+ case _712311: return "Engineering Production Systems Worker";
+ case _712900: return "Other Stationary Plant Operators nfd";
+ case _712911: return "Boiler or Engine Operator";
+ case _712912: return "Bulk Materials Handling Plant Operator";
+ case _712913: return "Cement Production Plant Operator";
+ case _712914: return "Concrete Batching Plant Operator";
+ case _712915: return "Concrete Pump Operator";
+ case _712916: return "Paper and Pulp Mill Operator";
+ case _712917: return "Railway Signal Operator";
+ case _712918: return "Train Controller";
+ case _712921: return "Waste Water or Water Plant Operator";
+ case _712922: return "Weighbridge Operator";
+ case _712999: return "Stationary Plant Operators nec";
+ case _721000: return "Mobile Plant Operators nfd";
+ case _721100: return "Agricultural, Forestry and Horticultural Plant Operators nfd";
+ case _721111: return "Agricultural and Horticultural Mobile Plant Operator";
+ case _721112: return "Logging Plant Operator";
+ case _721200: return "Earthmoving Plant Operators nfd";
+ case _721211: return "Earthmoving Plant Operator (General)";
+ case _721212: return "Backhoe Operator";
+ case _721213: return "Bulldozer Operator";
+ case _721214: return "Excavator Operator";
+ case _721215: return "Grader Operator";
+ case _721216: return "Loader Operator";
+ case _721311: return "Forklift Driver";
+ case _721900: return "Other Mobile Plant Operators nfd";
+ case _721911: return "Aircraft Baggage Handler and Airline Ground Crew";
+ case _721912: return "Linemarker";
+ case _721913: return "Paving Plant Operator";
+ case _721914: return "Railway Track Plant Operator";
+ case _721915: return "Road Roller Operator";
+ case _721916: return "Streetsweeper Operator";
+ case _721999: return "Mobile Plant Operators nec";
+ case _730000: return "Road and Rail Drivers nfd";
+ case _731000: return "Automobile, Bus and Rail Drivers nfd";
+ case _731100: return "Automobile Drivers nfd";
+ case _731111: return "Chauffeur";
+ case _731112: return "Taxi Driver";
+ case _731199: return "Automobile Drivers nec";
+ case _731200: return "Bus and Coach Drivers nfd";
+ case _731211: return "Bus Driver";
+ case _731212: return "Charter and Tour Bus Driver";
+ case _731213: return "Passenger Coach Driver";
+ case _731300: return "Train and Tram Drivers nfd";
+ case _731311: return "Train Driver";
+ case _731312: return "Tram Driver";
+ case _732111: return "Delivery Driver";
+ case _733100: return "Truck Drivers nfd";
+ case _733111: return "Truck Driver (General)";
+ case _733112: return "Aircraft Refueller";
+ case _733113: return "Furniture Removalist";
+ case _733114: return "Tanker Driver";
+ case _733115: return "Tow Truck Driver";
+ case _741111: return "Storeperson";
+ case _800000: return "Labourers nfd";
+ case _811000: return "Cleaners and Laundry Workers nfd";
+ case _811111: return "Car Detailer";
+ case _811211: return "Commercial Cleaner";
+ case _811311: return "Domestic Cleaner";
+ case _811400: return "Housekeepers nfd";
+ case _811411: return "Commercial Housekeeper";
+ case _811412: return "Domestic Housekeeper";
+ case _811500: return "Laundry Workers nfd";
+ case _811511: return "Laundry Worker (General)";
+ case _811512: return "Drycleaner";
+ case _811513: return "Ironer or Presser";
+ case _811600: return "Other Cleaners nfd";
+ case _811611: return "Carpet Cleaner";
+ case _811612: return "Window Cleaner";
+ case _811699: return "Cleaners nec";
+ case _821000: return "Construction and Mining Labourers nfd";
+ case _821100: return "Building and Plumbing Labourers nfd";
+ case _821111: return "Builder's Labourer";
+ case _821112: return "Drainage, Sewerage and Stormwater Labourer";
+ case _821113: return "Earthmoving Labourer";
+ case _821114: return "Plumber's Assistant";
+ case _821211: return "Concreter";
+ case _821311: return "Fencer";
+ case _821400: return "Insulation and Home Improvement Installers nfd";
+ case _821411: return "Building Insulation Installer";
+ case _821412: return "Home Improvement Installer";
+ case _821511: return "Paving and Surfacing Labourer";
+ case _821611: return "Railway Track Worker";
+ case _821700: return "Structural Steel Construction Workers nfd";
+ case _821711: return "Construction Rigger";
+ case _821712: return "Scaffolder";
+ case _821713: return "Steel Fixer";
+ case _821714: return "Structural Steel Erector";
+ case _821900: return "Other Construction and Mining Labourers nfd";
+ case _821911: return "Crane Chaser";
+ case _821912: return "Driller's Assistant";
+ case _821913: return "Lagger";
+ case _821914: return "Mining Support Worker";
+ case _821915: return "Surveyor's Assistant";
+ case _830000: return "Factory Process Workers nfd";
+ case _831000: return "Food Process Workers nfd";
+ case _831100: return "Food and Drink Factory Workers nfd";
+ case _831111: return "Baking Factory Worker";
+ case _831112: return "Brewery Worker";
+ case _831113: return "Confectionery Maker";
+ case _831114: return "Dairy Products Maker";
+ case _831115: return "Fruit and Vegetable Factory Worker";
+ case _831116: return "Grain Mill Worker";
+ case _831117: return "Sugar Mill Worker";
+ case _831118: return "Winery Cellar Hand";
+ case _831199: return "Food and Drink Factory Workers nec";
+ case _831200: return "Meat Boners and Slicers, and Slaughterers nfd";
+ case _831211: return "Meat Boner and Slicer";
+ case _831212: return "Slaughterer";
+ case _831300: return "Meat, Poultry and Seafood Process Workers nfd";
+ case _831311: return "Meat Process Worker";
+ case _831312: return "Poultry Process Worker";
+ case _831313: return "Seafood Process Worker";
+ case _832000: return "Packers and Product Assemblers nfd";
+ case _832100: return "Packers nfd";
+ case _832111: return "Chocolate Packer";
+ case _832112: return "Container Filler";
+ case _832113: return "Fruit and Vegetable Packer";
+ case _832114: return "Meat Packer";
+ case _832115: return "Seafood Packer";
+ case _832199: return "Packers nec";
+ case _832211: return "Product Assembler";
+ case _839000: return "Miscellaneous Factory Process Workers nfd";
+ case _839111: return "Metal Engineering Process Worker";
+ case _839200: return "Plastics and Rubber Factory Workers nfd";
+ case _839211: return "Plastics Factory Worker";
+ case _839212: return "Rubber Factory Worker";
+ case _839300: return "Product Quality Controllers nfd";
+ case _839311: return "Product Examiner";
+ case _839312: return "Product Grader";
+ case _839313: return "Product Tester";
+ case _839400: return "Timber and Wood Process Workers nfd";
+ case _839411: return "Paper and Pulp Mill Worker";
+ case _839412: return "Sawmill or Timber Yard Worker";
+ case _839413: return "Wood and Wood Products Factory Worker";
+ case _839900: return "Other Factory Process Workers nfd";
+ case _839911: return "Cement and Concrete Plant Worker";
+ case _839912: return "Chemical Plant Worker";
+ case _839913: return "Clay Processing Factory Worker";
+ case _839914: return "Fabric and Textile Factory Worker";
+ case _839915: return "Footwear Factory Worker";
+ case _839916: return "Glass Processing Worker";
+ case _839917: return "Hide and Skin Processing Worker";
+ case _839999: return "Factory Process Workers nec";
+ case _841000: return "Farm, Forestry and Garden Workers nfd";
+ case _841111: return "Aquaculture Worker";
+ case _841200: return "Crop Farm Workers nfd";
+ case _841211: return "Fruit or Nut Farm Worker";
+ case _841212: return "Fruit or Nut Picker";
+ case _841213: return "Grain, Oilseed or Pasture Farm Worker";
+ case _841214: return "Vegetable Farm Worker";
+ case _841215: return "Vegetable Picker";
+ case _841216: return "Vineyard Worker";
+ case _841299: return "Crop Farm Workers nec";
+ case _841300: return "Forestry and Logging Workers nfd";
+ case _841311: return "Forestry Worker";
+ case _841312: return "Logging Assistant";
+ case _841313: return "Tree Faller";
+ case _841400: return "Garden and Nursery Labourers nfd";
+ case _841411: return "Garden Labourer";
+ case _841412: return "Horticultural Nursery Assistant";
+ case _841500: return "Livestock Farm Workers nfd";
+ case _841511: return "Beef Cattle Farm Worker";
+ case _841512: return "Dairy Cattle Farm Worker";
+ case _841513: return "Mixed Livestock Farm Worker";
+ case _841514: return "Poultry Farm Worker";
+ case _841515: return "Sheep Farm Worker";
+ case _841516: return "Stablehand";
+ case _841517: return "Wool Handler";
+ case _841599: return "Livestock Farm Workers nec";
+ case _841611: return "Mixed Crop and Livestock Farm Worker";
+ case _841900: return "Other Farm, Forestry and Garden Workers nfd";
+ case _841911: return "Hunter-Trapper";
+ case _841912: return "Pest or Weed Controller";
+ case _841999: return "Farm, Forestry and Garden Workers nec";
+ case _851000: return "Food Preparation Assistants nfd";
+ case _851111: return "Fast Food Cook";
+ case _851200: return "Food Trades Assistants nfd";
+ case _851211: return "Pastrycook's Assistant";
+ case _851299: return "Food Trades Assistants nec";
+ case _851311: return "Kitchenhand";
+ case _890000: return "Other Labourers nfd";
+ case _891000: return "Freight Handlers and Shelf Fillers nfd";
+ case _891100: return "Freight and Furniture Handlers nfd";
+ case _891111: return "Freight Handler (Rail or Road)";
+ case _891112: return "Truck Driver's Offsider";
+ case _891113: return "Waterside Worker";
+ case _891211: return "Shelf Filler";
+ case _899000: return "Miscellaneous Labourers nfd";
+ case _899111: return "Caretaker";
+ case _899200: return "Deck and Fishing Hands nfd";
+ case _899211: return "Deck Hand";
+ case _899212: return "Fishing Hand";
+ case _899311: return "Handyperson";
+ case _899400: return "Motor Vehicle Parts and Accessories Fitters nfd";
+ case _899411: return "Motor Vehicle Parts and Accessories Fitter (General)";
+ case _899412: return "Autoglazier";
+ case _899413: return "Exhaust and Muffler Fitter";
+ case _899414: return "Radiator Fitter";
+ case _899415: return "Tyre Fitter";
+ case _899500: return "Printing Assistants and Table Workers nfd";
+ case _899511: return "Printer's Assistant";
+ case _899512: return "Printing Table Worker";
+ case _899611: return "Recycling or Rubbish Collector";
+ case _899711: return "Vending Machine Attendant";
+ case _899900: return "Other Miscellaneous Labourers nfd";
+ case _899911: return "Bicycle Mechanic";
+ case _899912: return "Car Park Attendant";
+ case _899913: return "Crossing Supervisor";
+ case _899914: return "Electrical or Telecommunications Trades Assistant";
+ case _899915: return "Leaflet or Newspaper Deliverer";
+ case _899916: return "Mechanic's Assistant";
+ case _899917: return "Railways Assistant";
+ case _899918: return "Sign Erector";
+ case _899921: return "Ticket Collector or Usher";
+ case _899922: return "Trolley Collector";
+ case _899999: return "Labourers nec";
+ default: return "?";
+ }
+ }
+
+
+}
+
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/valuesets/AnzscoOccupationsEnumFactory.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/valuesets/AnzscoOccupationsEnumFactory.java
new file mode 100644
index 00000000000..9f7fbec2c1f
--- /dev/null
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/valuesets/AnzscoOccupationsEnumFactory.java
@@ -0,0 +1,5355 @@
+package org.hl7.fhir.instance.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 Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
+
+
+import org.hl7.fhir.instance.model.EnumFactory;
+
+public class AnzscoOccupationsEnumFactory implements EnumFactory {
+
+ public AnzscoOccupations fromCode(String codeString) throws IllegalArgumentException {
+ if (codeString == null || "".equals(codeString))
+ return null;
+ if ("100000".equals(codeString))
+ return AnzscoOccupations._100000;
+ if ("111000".equals(codeString))
+ return AnzscoOccupations._111000;
+ if ("111111".equals(codeString))
+ return AnzscoOccupations._111111;
+ if ("111200".equals(codeString))
+ return AnzscoOccupations._111200;
+ if ("111211".equals(codeString))
+ return AnzscoOccupations._111211;
+ if ("111212".equals(codeString))
+ return AnzscoOccupations._111212;
+ if ("111300".equals(codeString))
+ return AnzscoOccupations._111300;
+ if ("111311".equals(codeString))
+ return AnzscoOccupations._111311;
+ if ("111312".equals(codeString))
+ return AnzscoOccupations._111312;
+ if ("111399".equals(codeString))
+ return AnzscoOccupations._111399;
+ if ("121000".equals(codeString))
+ return AnzscoOccupations._121000;
+ if ("121111".equals(codeString))
+ return AnzscoOccupations._121111;
+ if ("121200".equals(codeString))
+ return AnzscoOccupations._121200;
+ if ("121211".equals(codeString))
+ return AnzscoOccupations._121211;
+ if ("121212".equals(codeString))
+ return AnzscoOccupations._121212;
+ if ("121213".equals(codeString))
+ return AnzscoOccupations._121213;
+ if ("121214".equals(codeString))
+ return AnzscoOccupations._121214;
+ if ("121215".equals(codeString))
+ return AnzscoOccupations._121215;
+ if ("121216".equals(codeString))
+ return AnzscoOccupations._121216;
+ if ("121217".equals(codeString))
+ return AnzscoOccupations._121217;
+ if ("121218".equals(codeString))
+ return AnzscoOccupations._121218;
+ if ("121221".equals(codeString))
+ return AnzscoOccupations._121221;
+ if ("121299".equals(codeString))
+ return AnzscoOccupations._121299;
+ if ("121300".equals(codeString))
+ return AnzscoOccupations._121300;
+ if ("121311".equals(codeString))
+ return AnzscoOccupations._121311;
+ if ("121312".equals(codeString))
+ return AnzscoOccupations._121312;
+ if ("121313".equals(codeString))
+ return AnzscoOccupations._121313;
+ if ("121314".equals(codeString))
+ return AnzscoOccupations._121314;
+ if ("121315".equals(codeString))
+ return AnzscoOccupations._121315;
+ if ("121316".equals(codeString))
+ return AnzscoOccupations._121316;
+ if ("121317".equals(codeString))
+ return AnzscoOccupations._121317;
+ if ("121318".equals(codeString))
+ return AnzscoOccupations._121318;
+ if ("121321".equals(codeString))
+ return AnzscoOccupations._121321;
+ if ("121322".equals(codeString))
+ return AnzscoOccupations._121322;
+ if ("121399".equals(codeString))
+ return AnzscoOccupations._121399;
+ if ("121411".equals(codeString))
+ return AnzscoOccupations._121411;
+ if ("130000".equals(codeString))
+ return AnzscoOccupations._130000;
+ if ("131100".equals(codeString))
+ return AnzscoOccupations._131100;
+ if ("131111".equals(codeString))
+ return AnzscoOccupations._131111;
+ if ("131112".equals(codeString))
+ return AnzscoOccupations._131112;
+ if ("132000".equals(codeString))
+ return AnzscoOccupations._132000;
+ if ("132111".equals(codeString))
+ return AnzscoOccupations._132111;
+ if ("132211".equals(codeString))
+ return AnzscoOccupations._132211;
+ if ("132311".equals(codeString))
+ return AnzscoOccupations._132311;
+ if ("132411".equals(codeString))
+ return AnzscoOccupations._132411;
+ if ("132511".equals(codeString))
+ return AnzscoOccupations._132511;
+ if ("133000".equals(codeString))
+ return AnzscoOccupations._133000;
+ if ("133100".equals(codeString))
+ return AnzscoOccupations._133100;
+ if ("133111".equals(codeString))
+ return AnzscoOccupations._133111;
+ if ("133112".equals(codeString))
+ return AnzscoOccupations._133112;
+ if ("133211".equals(codeString))
+ return AnzscoOccupations._133211;
+ if ("133300".equals(codeString))
+ return AnzscoOccupations._133300;
+ if ("133311".equals(codeString))
+ return AnzscoOccupations._133311;
+ if ("133312".equals(codeString))
+ return AnzscoOccupations._133312;
+ if ("133411".equals(codeString))
+ return AnzscoOccupations._133411;
+ if ("133500".equals(codeString))
+ return AnzscoOccupations._133500;
+ if ("133511".equals(codeString))
+ return AnzscoOccupations._133511;
+ if ("133512".equals(codeString))
+ return AnzscoOccupations._133512;
+ if ("133513".equals(codeString))
+ return AnzscoOccupations._133513;
+ if ("133611".equals(codeString))
+ return AnzscoOccupations._133611;
+ if ("134000".equals(codeString))
+ return AnzscoOccupations._134000;
+ if ("134111".equals(codeString))
+ return AnzscoOccupations._134111;
+ if ("134200".equals(codeString))
+ return AnzscoOccupations._134200;
+ if ("134211".equals(codeString))
+ return AnzscoOccupations._134211;
+ if ("134212".equals(codeString))
+ return AnzscoOccupations._134212;
+ if ("134213".equals(codeString))
+ return AnzscoOccupations._134213;
+ if ("134214".equals(codeString))
+ return AnzscoOccupations._134214;
+ if ("134299".equals(codeString))
+ return AnzscoOccupations._134299;
+ if ("134311".equals(codeString))
+ return AnzscoOccupations._134311;
+ if ("134400".equals(codeString))
+ return AnzscoOccupations._134400;
+ if ("134411".equals(codeString))
+ return AnzscoOccupations._134411;
+ if ("134412".equals(codeString))
+ return AnzscoOccupations._134412;
+ if ("134499".equals(codeString))
+ return AnzscoOccupations._134499;
+ if ("135100".equals(codeString))
+ return AnzscoOccupations._135100;
+ if ("135111".equals(codeString))
+ return AnzscoOccupations._135111;
+ if ("135112".equals(codeString))
+ return AnzscoOccupations._135112;
+ if ("135199".equals(codeString))
+ return AnzscoOccupations._135199;
+ if ("139000".equals(codeString))
+ return AnzscoOccupations._139000;
+ if ("139100".equals(codeString))
+ return AnzscoOccupations._139100;
+ if ("139111".equals(codeString))
+ return AnzscoOccupations._139111;
+ if ("139112".equals(codeString))
+ return AnzscoOccupations._139112;
+ if ("139113".equals(codeString))
+ return AnzscoOccupations._139113;
+ if ("139211".equals(codeString))
+ return AnzscoOccupations._139211;
+ if ("139900".equals(codeString))
+ return AnzscoOccupations._139900;
+ if ("139911".equals(codeString))
+ return AnzscoOccupations._139911;
+ if ("139912".equals(codeString))
+ return AnzscoOccupations._139912;
+ if ("139913".equals(codeString))
+ return AnzscoOccupations._139913;
+ if ("139914".equals(codeString))
+ return AnzscoOccupations._139914;
+ if ("139915".equals(codeString))
+ return AnzscoOccupations._139915;
+ if ("139999".equals(codeString))
+ return AnzscoOccupations._139999;
+ if ("140000".equals(codeString))
+ return AnzscoOccupations._140000;
+ if ("141000".equals(codeString))
+ return AnzscoOccupations._141000;
+ if ("141111".equals(codeString))
+ return AnzscoOccupations._141111;
+ if ("141211".equals(codeString))
+ return AnzscoOccupations._141211;
+ if ("141311".equals(codeString))
+ return AnzscoOccupations._141311;
+ if ("141411".equals(codeString))
+ return AnzscoOccupations._141411;
+ if ("141900".equals(codeString))
+ return AnzscoOccupations._141900;
+ if ("141911".equals(codeString))
+ return AnzscoOccupations._141911;
+ if ("141999".equals(codeString))
+ return AnzscoOccupations._141999;
+ if ("142100".equals(codeString))
+ return AnzscoOccupations._142100;
+ if ("142111".equals(codeString))
+ return AnzscoOccupations._142111;
+ if ("142112".equals(codeString))
+ return AnzscoOccupations._142112;
+ if ("142113".equals(codeString))
+ return AnzscoOccupations._142113;
+ if ("142114".equals(codeString))
+ return AnzscoOccupations._142114;
+ if ("142115".equals(codeString))
+ return AnzscoOccupations._142115;
+ if ("142116".equals(codeString))
+ return AnzscoOccupations._142116;
+ if ("149000".equals(codeString))
+ return AnzscoOccupations._149000;
+ if ("149100".equals(codeString))
+ return AnzscoOccupations._149100;
+ if ("149111".equals(codeString))
+ return AnzscoOccupations._149111;
+ if ("149112".equals(codeString))
+ return AnzscoOccupations._149112;
+ if ("149113".equals(codeString))
+ return AnzscoOccupations._149113;
+ if ("149200".equals(codeString))
+ return AnzscoOccupations._149200;
+ if ("149211".equals(codeString))
+ return AnzscoOccupations._149211;
+ if ("149212".equals(codeString))
+ return AnzscoOccupations._149212;
+ if ("149311".equals(codeString))
+ return AnzscoOccupations._149311;
+ if ("149400".equals(codeString))
+ return AnzscoOccupations._149400;
+ if ("149411".equals(codeString))
+ return AnzscoOccupations._149411;
+ if ("149412".equals(codeString))
+ return AnzscoOccupations._149412;
+ if ("149413".equals(codeString))
+ return AnzscoOccupations._149413;
+ if ("149900".equals(codeString))
+ return AnzscoOccupations._149900;
+ if ("149911".equals(codeString))
+ return AnzscoOccupations._149911;
+ if ("149912".equals(codeString))
+ return AnzscoOccupations._149912;
+ if ("149913".equals(codeString))
+ return AnzscoOccupations._149913;
+ if ("149914".equals(codeString))
+ return AnzscoOccupations._149914;
+ if ("149999".equals(codeString))
+ return AnzscoOccupations._149999;
+ if ("200000".equals(codeString))
+ return AnzscoOccupations._200000;
+ if ("210000".equals(codeString))
+ return AnzscoOccupations._210000;
+ if ("211000".equals(codeString))
+ return AnzscoOccupations._211000;
+ if ("211100".equals(codeString))
+ return AnzscoOccupations._211100;
+ if ("211111".equals(codeString))
+ return AnzscoOccupations._211111;
+ if ("211112".equals(codeString))
+ return AnzscoOccupations._211112;
+ if ("211113".equals(codeString))
+ return AnzscoOccupations._211113;
+ if ("211199".equals(codeString))
+ return AnzscoOccupations._211199;
+ if ("211200".equals(codeString))
+ return AnzscoOccupations._211200;
+ if ("211211".equals(codeString))
+ return AnzscoOccupations._211211;
+ if ("211212".equals(codeString))
+ return AnzscoOccupations._211212;
+ if ("211213".equals(codeString))
+ return AnzscoOccupations._211213;
+ if ("211214".equals(codeString))
+ return AnzscoOccupations._211214;
+ if ("211299".equals(codeString))
+ return AnzscoOccupations._211299;
+ if ("211311".equals(codeString))
+ return AnzscoOccupations._211311;
+ if ("211400".equals(codeString))
+ return AnzscoOccupations._211400;
+ if ("211411".equals(codeString))
+ return AnzscoOccupations._211411;
+ if ("211412".equals(codeString))
+ return AnzscoOccupations._211412;
+ if ("211413".equals(codeString))
+ return AnzscoOccupations._211413;
+ if ("211499".equals(codeString))
+ return AnzscoOccupations._211499;
+ if ("212000".equals(codeString))
+ return AnzscoOccupations._212000;
+ if ("212100".equals(codeString))
+ return AnzscoOccupations._212100;
+ if ("212111".equals(codeString))
+ return AnzscoOccupations._212111;
+ if ("212112".equals(codeString))
+ return AnzscoOccupations._212112;
+ if ("212113".equals(codeString))
+ return AnzscoOccupations._212113;
+ if ("212114".equals(codeString))
+ return AnzscoOccupations._212114;
+ if ("212200".equals(codeString))
+ return AnzscoOccupations._212200;
+ if ("212211".equals(codeString))
+ return AnzscoOccupations._212211;
+ if ("212212".equals(codeString))
+ return AnzscoOccupations._212212;
+ if ("212300".equals(codeString))
+ return AnzscoOccupations._212300;
+ if ("212311".equals(codeString))
+ return AnzscoOccupations._212311;
+ if ("212312".equals(codeString))
+ return AnzscoOccupations._212312;
+ if ("212313".equals(codeString))
+ return AnzscoOccupations._212313;
+ if ("212314".equals(codeString))
+ return AnzscoOccupations._212314;
+ if ("212315".equals(codeString))
+ return AnzscoOccupations._212315;
+ if ("212316".equals(codeString))
+ return AnzscoOccupations._212316;
+ if ("212317".equals(codeString))
+ return AnzscoOccupations._212317;
+ if ("212318".equals(codeString))
+ return AnzscoOccupations._212318;
+ if ("212399".equals(codeString))
+ return AnzscoOccupations._212399;
+ if ("212400".equals(codeString))
+ return AnzscoOccupations._212400;
+ if ("212411".equals(codeString))
+ return AnzscoOccupations._212411;
+ if ("212412".equals(codeString))
+ return AnzscoOccupations._212412;
+ if ("212413".equals(codeString))
+ return AnzscoOccupations._212413;
+ if ("212414".equals(codeString))
+ return AnzscoOccupations._212414;
+ if ("212415".equals(codeString))
+ return AnzscoOccupations._212415;
+ if ("212416".equals(codeString))
+ return AnzscoOccupations._212416;
+ if ("212499".equals(codeString))
+ return AnzscoOccupations._212499;
+ if ("220000".equals(codeString))
+ return AnzscoOccupations._220000;
+ if ("221000".equals(codeString))
+ return AnzscoOccupations._221000;
+ if ("221100".equals(codeString))
+ return AnzscoOccupations._221100;
+ if ("221111".equals(codeString))
+ return AnzscoOccupations._221111;
+ if ("221112".equals(codeString))
+ return AnzscoOccupations._221112;
+ if ("221113".equals(codeString))
+ return AnzscoOccupations._221113;
+ if ("221200".equals(codeString))
+ return AnzscoOccupations._221200;
+ if ("221211".equals(codeString))
+ return AnzscoOccupations._221211;
+ if ("221212".equals(codeString))
+ return AnzscoOccupations._221212;
+ if ("221213".equals(codeString))
+ return AnzscoOccupations._221213;
+ if ("221214".equals(codeString))
+ return AnzscoOccupations._221214;
+ if ("222000".equals(codeString))
+ return AnzscoOccupations._222000;
+ if ("222100".equals(codeString))
+ return AnzscoOccupations._222100;
+ if ("222111".equals(codeString))
+ return AnzscoOccupations._222111;
+ if ("222112".equals(codeString))
+ return AnzscoOccupations._222112;
+ if ("222113".equals(codeString))
+ return AnzscoOccupations._222113;
+ if ("222199".equals(codeString))
+ return AnzscoOccupations._222199;
+ if ("222200".equals(codeString))
+ return AnzscoOccupations._222200;
+ if ("222211".equals(codeString))
+ return AnzscoOccupations._222211;
+ if ("222212".equals(codeString))
+ return AnzscoOccupations._222212;
+ if ("222213".equals(codeString))
+ return AnzscoOccupations._222213;
+ if ("222299".equals(codeString))
+ return AnzscoOccupations._222299;
+ if ("222300".equals(codeString))
+ return AnzscoOccupations._222300;
+ if ("222311".equals(codeString))
+ return AnzscoOccupations._222311;
+ if ("222312".equals(codeString))
+ return AnzscoOccupations._222312;
+ if ("223000".equals(codeString))
+ return AnzscoOccupations._223000;
+ if ("223100".equals(codeString))
+ return AnzscoOccupations._223100;
+ if ("223111".equals(codeString))
+ return AnzscoOccupations._223111;
+ if ("223112".equals(codeString))
+ return AnzscoOccupations._223112;
+ if ("223113".equals(codeString))
+ return AnzscoOccupations._223113;
+ if ("223211".equals(codeString))
+ return AnzscoOccupations._223211;
+ if ("223311".equals(codeString))
+ return AnzscoOccupations._223311;
+ if ("224000".equals(codeString))
+ return AnzscoOccupations._224000;
+ if ("224100".equals(codeString))
+ return AnzscoOccupations._224100;
+ if ("224111".equals(codeString))
+ return AnzscoOccupations._224111;
+ if ("224112".equals(codeString))
+ return AnzscoOccupations._224112;
+ if ("224113".equals(codeString))
+ return AnzscoOccupations._224113;
+ if ("224200".equals(codeString))
+ return AnzscoOccupations._224200;
+ if ("224211".equals(codeString))
+ return AnzscoOccupations._224211;
+ if ("224212".equals(codeString))
+ return AnzscoOccupations._224212;
+ if ("224213".equals(codeString))
+ return AnzscoOccupations._224213;
+ if ("224214".equals(codeString))
+ return AnzscoOccupations._224214;
+ if ("224311".equals(codeString))
+ return AnzscoOccupations._224311;
+ if ("224400".equals(codeString))
+ return AnzscoOccupations._224400;
+ if ("224411".equals(codeString))
+ return AnzscoOccupations._224411;
+ if ("224412".equals(codeString))
+ return AnzscoOccupations._224412;
+ if ("224500".equals(codeString))
+ return AnzscoOccupations._224500;
+ if ("224511".equals(codeString))
+ return AnzscoOccupations._224511;
+ if ("224512".equals(codeString))
+ return AnzscoOccupations._224512;
+ if ("224611".equals(codeString))
+ return AnzscoOccupations._224611;
+ if ("224700".equals(codeString))
+ return AnzscoOccupations._224700;
+ if ("224711".equals(codeString))
+ return AnzscoOccupations._224711;
+ if ("224712".equals(codeString))
+ return AnzscoOccupations._224712;
+ if ("224900".equals(codeString))
+ return AnzscoOccupations._224900;
+ if ("224911".equals(codeString))
+ return AnzscoOccupations._224911;
+ if ("224912".equals(codeString))
+ return AnzscoOccupations._224912;
+ if ("224913".equals(codeString))
+ return AnzscoOccupations._224913;
+ if ("224914".equals(codeString))
+ return AnzscoOccupations._224914;
+ if ("224999".equals(codeString))
+ return AnzscoOccupations._224999;
+ if ("225000".equals(codeString))
+ return AnzscoOccupations._225000;
+ if ("225100".equals(codeString))
+ return AnzscoOccupations._225100;
+ if ("225111".equals(codeString))
+ return AnzscoOccupations._225111;
+ if ("225112".equals(codeString))
+ return AnzscoOccupations._225112;
+ if ("225113".equals(codeString))
+ return AnzscoOccupations._225113;
+ if ("225200".equals(codeString))
+ return AnzscoOccupations._225200;
+ if ("225211".equals(codeString))
+ return AnzscoOccupations._225211;
+ if ("225212".equals(codeString))
+ return AnzscoOccupations._225212;
+ if ("225213".equals(codeString))
+ return AnzscoOccupations._225213;
+ if ("225311".equals(codeString))
+ return AnzscoOccupations._225311;
+ if ("225400".equals(codeString))
+ return AnzscoOccupations._225400;
+ if ("225411".equals(codeString))
+ return AnzscoOccupations._225411;
+ if ("225412".equals(codeString))
+ return AnzscoOccupations._225412;
+ if ("225499".equals(codeString))
+ return AnzscoOccupations._225499;
+ if ("230000".equals(codeString))
+ return AnzscoOccupations._230000;
+ if ("231000".equals(codeString))
+ return AnzscoOccupations._231000;
+ if ("231100".equals(codeString))
+ return AnzscoOccupations._231100;
+ if ("231111".equals(codeString))
+ return AnzscoOccupations._231111;
+ if ("231112".equals(codeString))
+ return AnzscoOccupations._231112;
+ if ("231113".equals(codeString))
+ return AnzscoOccupations._231113;
+ if ("231114".equals(codeString))
+ return AnzscoOccupations._231114;
+ if ("231199".equals(codeString))
+ return AnzscoOccupations._231199;
+ if ("231200".equals(codeString))
+ return AnzscoOccupations._231200;
+ if ("231211".equals(codeString))
+ return AnzscoOccupations._231211;
+ if ("231212".equals(codeString))
+ return AnzscoOccupations._231212;
+ if ("231213".equals(codeString))
+ return AnzscoOccupations._231213;
+ if ("231214".equals(codeString))
+ return AnzscoOccupations._231214;
+ if ("231215".equals(codeString))
+ return AnzscoOccupations._231215;
+ if ("231299".equals(codeString))
+ return AnzscoOccupations._231299;
+ if ("232000".equals(codeString))
+ return AnzscoOccupations._232000;
+ if ("232100".equals(codeString))
+ return AnzscoOccupations._232100;
+ if ("232111".equals(codeString))
+ return AnzscoOccupations._232111;
+ if ("232112".equals(codeString))
+ return AnzscoOccupations._232112;
+ if ("232200".equals(codeString))
+ return AnzscoOccupations._232200;
+ if ("232211".equals(codeString))
+ return AnzscoOccupations._232211;
+ if ("232212".equals(codeString))
+ return AnzscoOccupations._232212;
+ if ("232300".equals(codeString))
+ return AnzscoOccupations._232300;
+ if ("232311".equals(codeString))
+ return AnzscoOccupations._232311;
+ if ("232312".equals(codeString))
+ return AnzscoOccupations._232312;
+ if ("232313".equals(codeString))
+ return AnzscoOccupations._232313;
+ if ("232400".equals(codeString))
+ return AnzscoOccupations._232400;
+ if ("232411".equals(codeString))
+ return AnzscoOccupations._232411;
+ if ("232412".equals(codeString))
+ return AnzscoOccupations._232412;
+ if ("232413".equals(codeString))
+ return AnzscoOccupations._232413;
+ if ("232414".equals(codeString))
+ return AnzscoOccupations._232414;
+ if ("232511".equals(codeString))
+ return AnzscoOccupations._232511;
+ if ("232611".equals(codeString))
+ return AnzscoOccupations._232611;
+ if ("233000".equals(codeString))
+ return AnzscoOccupations._233000;
+ if ("233100".equals(codeString))
+ return AnzscoOccupations._233100;
+ if ("233111".equals(codeString))
+ return AnzscoOccupations._233111;
+ if ("233112".equals(codeString))
+ return AnzscoOccupations._233112;
+ if ("233200".equals(codeString))
+ return AnzscoOccupations._233200;
+ if ("233211".equals(codeString))
+ return AnzscoOccupations._233211;
+ if ("233212".equals(codeString))
+ return AnzscoOccupations._233212;
+ if ("233213".equals(codeString))
+ return AnzscoOccupations._233213;
+ if ("233214".equals(codeString))
+ return AnzscoOccupations._233214;
+ if ("233215".equals(codeString))
+ return AnzscoOccupations._233215;
+ if ("233311".equals(codeString))
+ return AnzscoOccupations._233311;
+ if ("233411".equals(codeString))
+ return AnzscoOccupations._233411;
+ if ("233500".equals(codeString))
+ return AnzscoOccupations._233500;
+ if ("233511".equals(codeString))
+ return AnzscoOccupations._233511;
+ if ("233512".equals(codeString))
+ return AnzscoOccupations._233512;
+ if ("233513".equals(codeString))
+ return AnzscoOccupations._233513;
+ if ("233600".equals(codeString))
+ return AnzscoOccupations._233600;
+ if ("233611".equals(codeString))
+ return AnzscoOccupations._233611;
+ if ("233612".equals(codeString))
+ return AnzscoOccupations._233612;
+ if ("233900".equals(codeString))
+ return AnzscoOccupations._233900;
+ if ("233911".equals(codeString))
+ return AnzscoOccupations._233911;
+ if ("233912".equals(codeString))
+ return AnzscoOccupations._233912;
+ if ("233913".equals(codeString))
+ return AnzscoOccupations._233913;
+ if ("233914".equals(codeString))
+ return AnzscoOccupations._233914;
+ if ("233915".equals(codeString))
+ return AnzscoOccupations._233915;
+ if ("233916".equals(codeString))
+ return AnzscoOccupations._233916;
+ if ("233999".equals(codeString))
+ return AnzscoOccupations._233999;
+ if ("234000".equals(codeString))
+ return AnzscoOccupations._234000;
+ if ("234100".equals(codeString))
+ return AnzscoOccupations._234100;
+ if ("234111".equals(codeString))
+ return AnzscoOccupations._234111;
+ if ("234112".equals(codeString))
+ return AnzscoOccupations._234112;
+ if ("234113".equals(codeString))
+ return AnzscoOccupations._234113;
+ if ("234200".equals(codeString))
+ return AnzscoOccupations._234200;
+ if ("234211".equals(codeString))
+ return AnzscoOccupations._234211;
+ if ("234212".equals(codeString))
+ return AnzscoOccupations._234212;
+ if ("234213".equals(codeString))
+ return AnzscoOccupations._234213;
+ if ("234300".equals(codeString))
+ return AnzscoOccupations._234300;
+ if ("234311".equals(codeString))
+ return AnzscoOccupations._234311;
+ if ("234312".equals(codeString))
+ return AnzscoOccupations._234312;
+ if ("234313".equals(codeString))
+ return AnzscoOccupations._234313;
+ if ("234314".equals(codeString))
+ return AnzscoOccupations._234314;
+ if ("234399".equals(codeString))
+ return AnzscoOccupations._234399;
+ if ("234400".equals(codeString))
+ return AnzscoOccupations._234400;
+ if ("234411".equals(codeString))
+ return AnzscoOccupations._234411;
+ if ("234412".equals(codeString))
+ return AnzscoOccupations._234412;
+ if ("234500".equals(codeString))
+ return AnzscoOccupations._234500;
+ if ("234511".equals(codeString))
+ return AnzscoOccupations._234511;
+ if ("234512".equals(codeString))
+ return AnzscoOccupations._234512;
+ if ("234513".equals(codeString))
+ return AnzscoOccupations._234513;
+ if ("234514".equals(codeString))
+ return AnzscoOccupations._234514;
+ if ("234515".equals(codeString))
+ return AnzscoOccupations._234515;
+ if ("234516".equals(codeString))
+ return AnzscoOccupations._234516;
+ if ("234517".equals(codeString))
+ return AnzscoOccupations._234517;
+ if ("234518".equals(codeString))
+ return AnzscoOccupations._234518;
+ if ("234599".equals(codeString))
+ return AnzscoOccupations._234599;
+ if ("234611".equals(codeString))
+ return AnzscoOccupations._234611;
+ if ("234711".equals(codeString))
+ return AnzscoOccupations._234711;
+ if ("234900".equals(codeString))
+ return AnzscoOccupations._234900;
+ if ("234911".equals(codeString))
+ return AnzscoOccupations._234911;
+ if ("234912".equals(codeString))
+ return AnzscoOccupations._234912;
+ if ("234913".equals(codeString))
+ return AnzscoOccupations._234913;
+ if ("234914".equals(codeString))
+ return AnzscoOccupations._234914;
+ if ("234999".equals(codeString))
+ return AnzscoOccupations._234999;
+ if ("240000".equals(codeString))
+ return AnzscoOccupations._240000;
+ if ("241000".equals(codeString))
+ return AnzscoOccupations._241000;
+ if ("241111".equals(codeString))
+ return AnzscoOccupations._241111;
+ if ("241213".equals(codeString))
+ return AnzscoOccupations._241213;
+ if ("241311".equals(codeString))
+ return AnzscoOccupations._241311;
+ if ("241411".equals(codeString))
+ return AnzscoOccupations._241411;
+ if ("241500".equals(codeString))
+ return AnzscoOccupations._241500;
+ if ("241511".equals(codeString))
+ return AnzscoOccupations._241511;
+ if ("241512".equals(codeString))
+ return AnzscoOccupations._241512;
+ if ("241513".equals(codeString))
+ return AnzscoOccupations._241513;
+ if ("241599".equals(codeString))
+ return AnzscoOccupations._241599;
+ if ("242000".equals(codeString))
+ return AnzscoOccupations._242000;
+ if ("242100".equals(codeString))
+ return AnzscoOccupations._242100;
+ if ("242111".equals(codeString))
+ return AnzscoOccupations._242111;
+ if ("242112".equals(codeString))
+ return AnzscoOccupations._242112;
+ if ("242211".equals(codeString))
+ return AnzscoOccupations._242211;
+ if ("249000".equals(codeString))
+ return AnzscoOccupations._249000;
+ if ("249100".equals(codeString))
+ return AnzscoOccupations._249100;
+ if ("249111".equals(codeString))
+ return AnzscoOccupations._249111;
+ if ("249112".equals(codeString))
+ return AnzscoOccupations._249112;
+ if ("249200".equals(codeString))
+ return AnzscoOccupations._249200;
+ if ("249211".equals(codeString))
+ return AnzscoOccupations._249211;
+ if ("249212".equals(codeString))
+ return AnzscoOccupations._249212;
+ if ("249213".equals(codeString))
+ return AnzscoOccupations._249213;
+ if ("249214".equals(codeString))
+ return AnzscoOccupations._249214;
+ if ("249299".equals(codeString))
+ return AnzscoOccupations._249299;
+ if ("249311".equals(codeString))
+ return AnzscoOccupations._249311;
+ if ("250000".equals(codeString))
+ return AnzscoOccupations._250000;
+ if ("251000".equals(codeString))
+ return AnzscoOccupations._251000;
+ if ("251111".equals(codeString))
+ return AnzscoOccupations._251111;
+ if ("251200".equals(codeString))
+ return AnzscoOccupations._251200;
+ if ("251211".equals(codeString))
+ return AnzscoOccupations._251211;
+ if ("251212".equals(codeString))
+ return AnzscoOccupations._251212;
+ if ("251213".equals(codeString))
+ return AnzscoOccupations._251213;
+ if ("251214".equals(codeString))
+ return AnzscoOccupations._251214;
+ if ("251300".equals(codeString))
+ return AnzscoOccupations._251300;
+ if ("251311".equals(codeString))
+ return AnzscoOccupations._251311;
+ if ("251312".equals(codeString))
+ return AnzscoOccupations._251312;
+ if ("251400".equals(codeString))
+ return AnzscoOccupations._251400;
+ if ("251411".equals(codeString))
+ return AnzscoOccupations._251411;
+ if ("251412".equals(codeString))
+ return AnzscoOccupations._251412;
+ if ("251500".equals(codeString))
+ return AnzscoOccupations._251500;
+ if ("251511".equals(codeString))
+ return AnzscoOccupations._251511;
+ if ("251512".equals(codeString))
+ return AnzscoOccupations._251512;
+ if ("251513".equals(codeString))
+ return AnzscoOccupations._251513;
+ if ("251900".equals(codeString))
+ return AnzscoOccupations._251900;
+ if ("251911".equals(codeString))
+ return AnzscoOccupations._251911;
+ if ("251912".equals(codeString))
+ return AnzscoOccupations._251912;
+ if ("251999".equals(codeString))
+ return AnzscoOccupations._251999;
+ if ("252000".equals(codeString))
+ return AnzscoOccupations._252000;
+ if ("252100".equals(codeString))
+ return AnzscoOccupations._252100;
+ if ("252111".equals(codeString))
+ return AnzscoOccupations._252111;
+ if ("252112".equals(codeString))
+ return AnzscoOccupations._252112;
+ if ("252200".equals(codeString))
+ return AnzscoOccupations._252200;
+ if ("252211".equals(codeString))
+ return AnzscoOccupations._252211;
+ if ("252212".equals(codeString))
+ return AnzscoOccupations._252212;
+ if ("252213".equals(codeString))
+ return AnzscoOccupations._252213;
+ if ("252214".equals(codeString))
+ return AnzscoOccupations._252214;
+ if ("252299".equals(codeString))
+ return AnzscoOccupations._252299;
+ if ("252300".equals(codeString))
+ return AnzscoOccupations._252300;
+ if ("252311".equals(codeString))
+ return AnzscoOccupations._252311;
+ if ("252312".equals(codeString))
+ return AnzscoOccupations._252312;
+ if ("252411".equals(codeString))
+ return AnzscoOccupations._252411;
+ if ("252511".equals(codeString))
+ return AnzscoOccupations._252511;
+ if ("252611".equals(codeString))
+ return AnzscoOccupations._252611;
+ if ("252700".equals(codeString))
+ return AnzscoOccupations._252700;
+ if ("252711".equals(codeString))
+ return AnzscoOccupations._252711;
+ if ("252712".equals(codeString))
+ return AnzscoOccupations._252712;
+ if ("253000".equals(codeString))
+ return AnzscoOccupations._253000;
+ if ("253100".equals(codeString))
+ return AnzscoOccupations._253100;
+ if ("253111".equals(codeString))
+ return AnzscoOccupations._253111;
+ if ("253112".equals(codeString))
+ return AnzscoOccupations._253112;
+ if ("253211".equals(codeString))
+ return AnzscoOccupations._253211;
+ if ("253300".equals(codeString))
+ return AnzscoOccupations._253300;
+ if ("253311".equals(codeString))
+ return AnzscoOccupations._253311;
+ if ("253312".equals(codeString))
+ return AnzscoOccupations._253312;
+ if ("253313".equals(codeString))
+ return AnzscoOccupations._253313;
+ if ("253314".equals(codeString))
+ return AnzscoOccupations._253314;
+ if ("253315".equals(codeString))
+ return AnzscoOccupations._253315;
+ if ("253316".equals(codeString))
+ return AnzscoOccupations._253316;
+ if ("253317".equals(codeString))
+ return AnzscoOccupations._253317;
+ if ("253318".equals(codeString))
+ return AnzscoOccupations._253318;
+ if ("253321".equals(codeString))
+ return AnzscoOccupations._253321;
+ if ("253322".equals(codeString))
+ return AnzscoOccupations._253322;
+ if ("253323".equals(codeString))
+ return AnzscoOccupations._253323;
+ if ("253324".equals(codeString))
+ return AnzscoOccupations._253324;
+ if ("253399".equals(codeString))
+ return AnzscoOccupations._253399;
+ if ("253411".equals(codeString))
+ return AnzscoOccupations._253411;
+ if ("253500".equals(codeString))
+ return AnzscoOccupations._253500;
+ if ("253511".equals(codeString))
+ return AnzscoOccupations._253511;
+ if ("253512".equals(codeString))
+ return AnzscoOccupations._253512;
+ if ("253513".equals(codeString))
+ return AnzscoOccupations._253513;
+ if ("253514".equals(codeString))
+ return AnzscoOccupations._253514;
+ if ("253515".equals(codeString))
+ return AnzscoOccupations._253515;
+ if ("253516".equals(codeString))
+ return AnzscoOccupations._253516;
+ if ("253517".equals(codeString))
+ return AnzscoOccupations._253517;
+ if ("253518".equals(codeString))
+ return AnzscoOccupations._253518;
+ if ("253521".equals(codeString))
+ return AnzscoOccupations._253521;
+ if ("253900".equals(codeString))
+ return AnzscoOccupations._253900;
+ if ("253911".equals(codeString))
+ return AnzscoOccupations._253911;
+ if ("253912".equals(codeString))
+ return AnzscoOccupations._253912;
+ if ("253913".equals(codeString))
+ return AnzscoOccupations._253913;
+ if ("253914".equals(codeString))
+ return AnzscoOccupations._253914;
+ if ("253915".equals(codeString))
+ return AnzscoOccupations._253915;
+ if ("253916".equals(codeString))
+ return AnzscoOccupations._253916;
+ if ("253999".equals(codeString))
+ return AnzscoOccupations._253999;
+ if ("254000".equals(codeString))
+ return AnzscoOccupations._254000;
+ if ("254111".equals(codeString))
+ return AnzscoOccupations._254111;
+ if ("254200".equals(codeString))
+ return AnzscoOccupations._254200;
+ if ("254211".equals(codeString))
+ return AnzscoOccupations._254211;
+ if ("254212".equals(codeString))
+ return AnzscoOccupations._254212;
+ if ("254311".equals(codeString))
+ return AnzscoOccupations._254311;
+ if ("254400".equals(codeString))
+ return AnzscoOccupations._254400;
+ if ("254411".equals(codeString))
+ return AnzscoOccupations._254411;
+ if ("254412".equals(codeString))
+ return AnzscoOccupations._254412;
+ if ("254413".equals(codeString))
+ return AnzscoOccupations._254413;
+ if ("254414".equals(codeString))
+ return AnzscoOccupations._254414;
+ if ("254415".equals(codeString))
+ return AnzscoOccupations._254415;
+ if ("254416".equals(codeString))
+ return AnzscoOccupations._254416;
+ if ("254417".equals(codeString))
+ return AnzscoOccupations._254417;
+ if ("254418".equals(codeString))
+ return AnzscoOccupations._254418;
+ if ("254421".equals(codeString))
+ return AnzscoOccupations._254421;
+ if ("254422".equals(codeString))
+ return AnzscoOccupations._254422;
+ if ("254423".equals(codeString))
+ return AnzscoOccupations._254423;
+ if ("254424".equals(codeString))
+ return AnzscoOccupations._254424;
+ if ("254499".equals(codeString))
+ return AnzscoOccupations._254499;
+ if ("260000".equals(codeString))
+ return AnzscoOccupations._260000;
+ if ("261000".equals(codeString))
+ return AnzscoOccupations._261000;
+ if ("261100".equals(codeString))
+ return AnzscoOccupations._261100;
+ if ("261111".equals(codeString))
+ return AnzscoOccupations._261111;
+ if ("261112".equals(codeString))
+ return AnzscoOccupations._261112;
+ if ("261200".equals(codeString))
+ return AnzscoOccupations._261200;
+ if ("261211".equals(codeString))
+ return AnzscoOccupations._261211;
+ if ("261212".equals(codeString))
+ return AnzscoOccupations._261212;
+ if ("261300".equals(codeString))
+ return AnzscoOccupations._261300;
+ if ("261311".equals(codeString))
+ return AnzscoOccupations._261311;
+ if ("261312".equals(codeString))
+ return AnzscoOccupations._261312;
+ if ("261313".equals(codeString))
+ return AnzscoOccupations._261313;
+ if ("261399".equals(codeString))
+ return AnzscoOccupations._261399;
+ if ("262100".equals(codeString))
+ return AnzscoOccupations._262100;
+ if ("262111".equals(codeString))
+ return AnzscoOccupations._262111;
+ if ("262112".equals(codeString))
+ return AnzscoOccupations._262112;
+ if ("262113".equals(codeString))
+ return AnzscoOccupations._262113;
+ if ("263000".equals(codeString))
+ return AnzscoOccupations._263000;
+ if ("263100".equals(codeString))
+ return AnzscoOccupations._263100;
+ if ("263111".equals(codeString))
+ return AnzscoOccupations._263111;
+ if ("263112".equals(codeString))
+ return AnzscoOccupations._263112;
+ if ("263113".equals(codeString))
+ return AnzscoOccupations._263113;
+ if ("263200".equals(codeString))
+ return AnzscoOccupations._263200;
+ if ("263211".equals(codeString))
+ return AnzscoOccupations._263211;
+ if ("263212".equals(codeString))
+ return AnzscoOccupations._263212;
+ if ("263213".equals(codeString))
+ return AnzscoOccupations._263213;
+ if ("263299".equals(codeString))
+ return AnzscoOccupations._263299;
+ if ("263300".equals(codeString))
+ return AnzscoOccupations._263300;
+ if ("263311".equals(codeString))
+ return AnzscoOccupations._263311;
+ if ("263312".equals(codeString))
+ return AnzscoOccupations._263312;
+ if ("270000".equals(codeString))
+ return AnzscoOccupations._270000;
+ if ("271000".equals(codeString))
+ return AnzscoOccupations._271000;
+ if ("271111".equals(codeString))
+ return AnzscoOccupations._271111;
+ if ("271200".equals(codeString))
+ return AnzscoOccupations._271200;
+ if ("271211".equals(codeString))
+ return AnzscoOccupations._271211;
+ if ("271212".equals(codeString))
+ return AnzscoOccupations._271212;
+ if ("271213".equals(codeString))
+ return AnzscoOccupations._271213;
+ if ("271299".equals(codeString))
+ return AnzscoOccupations._271299;
+ if ("271311".equals(codeString))
+ return AnzscoOccupations._271311;
+ if ("272000".equals(codeString))
+ return AnzscoOccupations._272000;
+ if ("272100".equals(codeString))
+ return AnzscoOccupations._272100;
+ if ("272111".equals(codeString))
+ return AnzscoOccupations._272111;
+ if ("272112".equals(codeString))
+ return AnzscoOccupations._272112;
+ if ("272113".equals(codeString))
+ return AnzscoOccupations._272113;
+ if ("272114".equals(codeString))
+ return AnzscoOccupations._272114;
+ if ("272115".equals(codeString))
+ return AnzscoOccupations._272115;
+ if ("272199".equals(codeString))
+ return AnzscoOccupations._272199;
+ if ("272211".equals(codeString))
+ return AnzscoOccupations._272211;
+ if ("272300".equals(codeString))
+ return AnzscoOccupations._272300;
+ if ("272311".equals(codeString))
+ return AnzscoOccupations._272311;
+ if ("272312".equals(codeString))
+ return AnzscoOccupations._272312;
+ if ("272313".equals(codeString))
+ return AnzscoOccupations._272313;
+ if ("272314".equals(codeString))
+ return AnzscoOccupations._272314;
+ if ("272399".equals(codeString))
+ return AnzscoOccupations._272399;
+ if ("272400".equals(codeString))
+ return AnzscoOccupations._272400;
+ if ("272411".equals(codeString))
+ return AnzscoOccupations._272411;
+ if ("272412".equals(codeString))
+ return AnzscoOccupations._272412;
+ if ("272413".equals(codeString))
+ return AnzscoOccupations._272413;
+ if ("272499".equals(codeString))
+ return AnzscoOccupations._272499;
+ if ("272511".equals(codeString))
+ return AnzscoOccupations._272511;
+ if ("272600".equals(codeString))
+ return AnzscoOccupations._272600;
+ if ("272611".equals(codeString))
+ return AnzscoOccupations._272611;
+ if ("272612".equals(codeString))
+ return AnzscoOccupations._272612;
+ if ("272613".equals(codeString))
+ return AnzscoOccupations._272613;
+ if ("300000".equals(codeString))
+ return AnzscoOccupations._300000;
+ if ("310000".equals(codeString))
+ return AnzscoOccupations._310000;
+ if ("311000".equals(codeString))
+ return AnzscoOccupations._311000;
+ if ("311111".equals(codeString))
+ return AnzscoOccupations._311111;
+ if ("311200".equals(codeString))
+ return AnzscoOccupations._311200;
+ if ("311211".equals(codeString))
+ return AnzscoOccupations._311211;
+ if ("311212".equals(codeString))
+ return AnzscoOccupations._311212;
+ if ("311213".equals(codeString))
+ return AnzscoOccupations._311213;
+ if ("311214".equals(codeString))
+ return AnzscoOccupations._311214;
+ if ("311215".equals(codeString))
+ return AnzscoOccupations._311215;
+ if ("311299".equals(codeString))
+ return AnzscoOccupations._311299;
+ if ("311300".equals(codeString))
+ return AnzscoOccupations._311300;
+ if ("311311".equals(codeString))
+ return AnzscoOccupations._311311;
+ if ("311312".equals(codeString))
+ return AnzscoOccupations._311312;
+ if ("311313".equals(codeString))
+ return AnzscoOccupations._311313;
+ if ("311399".equals(codeString))
+ return AnzscoOccupations._311399;
+ if ("311400".equals(codeString))
+ return AnzscoOccupations._311400;
+ if ("311411".equals(codeString))
+ return AnzscoOccupations._311411;
+ if ("311412".equals(codeString))
+ return AnzscoOccupations._311412;
+ if ("311413".equals(codeString))
+ return AnzscoOccupations._311413;
+ if ("311414".equals(codeString))
+ return AnzscoOccupations._311414;
+ if ("311499".equals(codeString))
+ return AnzscoOccupations._311499;
+ if ("312000".equals(codeString))
+ return AnzscoOccupations._312000;
+ if ("312100".equals(codeString))
+ return AnzscoOccupations._312100;
+ if ("312111".equals(codeString))
+ return AnzscoOccupations._312111;
+ if ("312112".equals(codeString))
+ return AnzscoOccupations._312112;
+ if ("312113".equals(codeString))
+ return AnzscoOccupations._312113;
+ if ("312114".equals(codeString))
+ return AnzscoOccupations._312114;
+ if ("312115".equals(codeString))
+ return AnzscoOccupations._312115;
+ if ("312116".equals(codeString))
+ return AnzscoOccupations._312116;
+ if ("312200".equals(codeString))
+ return AnzscoOccupations._312200;
+ if ("312211".equals(codeString))
+ return AnzscoOccupations._312211;
+ if ("312212".equals(codeString))
+ return AnzscoOccupations._312212;
+ if ("312300".equals(codeString))
+ return AnzscoOccupations._312300;
+ if ("312311".equals(codeString))
+ return AnzscoOccupations._312311;
+ if ("312312".equals(codeString))
+ return AnzscoOccupations._312312;
+ if ("312400".equals(codeString))
+ return AnzscoOccupations._312400;
+ if ("312411".equals(codeString))
+ return AnzscoOccupations._312411;
+ if ("312412".equals(codeString))
+ return AnzscoOccupations._312412;
+ if ("312500".equals(codeString))
+ return AnzscoOccupations._312500;
+ if ("312511".equals(codeString))
+ return AnzscoOccupations._312511;
+ if ("312512".equals(codeString))
+ return AnzscoOccupations._312512;
+ if ("312611".equals(codeString))
+ return AnzscoOccupations._312611;
+ if ("312900".equals(codeString))
+ return AnzscoOccupations._312900;
+ if ("312911".equals(codeString))
+ return AnzscoOccupations._312911;
+ if ("312912".equals(codeString))
+ return AnzscoOccupations._312912;
+ if ("312913".equals(codeString))
+ return AnzscoOccupations._312913;
+ if ("312999".equals(codeString))
+ return AnzscoOccupations._312999;
+ if ("313000".equals(codeString))
+ return AnzscoOccupations._313000;
+ if ("313100".equals(codeString))
+ return AnzscoOccupations._313100;
+ if ("313111".equals(codeString))
+ return AnzscoOccupations._313111;
+ if ("313112".equals(codeString))
+ return AnzscoOccupations._313112;
+ if ("313113".equals(codeString))
+ return AnzscoOccupations._313113;
+ if ("313199".equals(codeString))
+ return AnzscoOccupations._313199;
+ if ("313200".equals(codeString))
+ return AnzscoOccupations._313200;
+ if ("313211".equals(codeString))
+ return AnzscoOccupations._313211;
+ if ("313212".equals(codeString))
+ return AnzscoOccupations._313212;
+ if ("313213".equals(codeString))
+ return AnzscoOccupations._313213;
+ if ("313214".equals(codeString))
+ return AnzscoOccupations._313214;
+ if ("320000".equals(codeString))
+ return AnzscoOccupations._320000;
+ if ("321000".equals(codeString))
+ return AnzscoOccupations._321000;
+ if ("321111".equals(codeString))
+ return AnzscoOccupations._321111;
+ if ("321200".equals(codeString))
+ return AnzscoOccupations._321200;
+ if ("321211".equals(codeString))
+ return AnzscoOccupations._321211;
+ if ("321212".equals(codeString))
+ return AnzscoOccupations._321212;
+ if ("321213".equals(codeString))
+ return AnzscoOccupations._321213;
+ if ("321214".equals(codeString))
+ return AnzscoOccupations._321214;
+ if ("322000".equals(codeString))
+ return AnzscoOccupations._322000;
+ if ("322100".equals(codeString))
+ return AnzscoOccupations._322100;
+ if ("322111".equals(codeString))
+ return AnzscoOccupations._322111;
+ if ("322112".equals(codeString))
+ return AnzscoOccupations._322112;
+ if ("322113".equals(codeString))
+ return AnzscoOccupations._322113;
+ if ("322114".equals(codeString))
+ return AnzscoOccupations._322114;
+ if ("322115".equals(codeString))
+ return AnzscoOccupations._322115;
+ if ("322211".equals(codeString))
+ return AnzscoOccupations._322211;
+ if ("322300".equals(codeString))
+ return AnzscoOccupations._322300;
+ if ("322311".equals(codeString))
+ return AnzscoOccupations._322311;
+ if ("322312".equals(codeString))
+ return AnzscoOccupations._322312;
+ if ("322313".equals(codeString))
+ return AnzscoOccupations._322313;
+ if ("323000".equals(codeString))
+ return AnzscoOccupations._323000;
+ if ("323100".equals(codeString))
+ return AnzscoOccupations._323100;
+ if ("323111".equals(codeString))
+ return AnzscoOccupations._323111;
+ if ("323112".equals(codeString))
+ return AnzscoOccupations._323112;
+ if ("323113".equals(codeString))
+ return AnzscoOccupations._323113;
+ if ("323200".equals(codeString))
+ return AnzscoOccupations._323200;
+ if ("323211".equals(codeString))
+ return AnzscoOccupations._323211;
+ if ("323212".equals(codeString))
+ return AnzscoOccupations._323212;
+ if ("323213".equals(codeString))
+ return AnzscoOccupations._323213;
+ if ("323214".equals(codeString))
+ return AnzscoOccupations._323214;
+ if ("323215".equals(codeString))
+ return AnzscoOccupations._323215;
+ if ("323299".equals(codeString))
+ return AnzscoOccupations._323299;
+ if ("323300".equals(codeString))
+ return AnzscoOccupations._323300;
+ if ("323311".equals(codeString))
+ return AnzscoOccupations._323311;
+ if ("323312".equals(codeString))
+ return AnzscoOccupations._323312;
+ if ("323313".equals(codeString))
+ return AnzscoOccupations._323313;
+ if ("323314".equals(codeString))
+ return AnzscoOccupations._323314;
+ if ("323315".equals(codeString))
+ return AnzscoOccupations._323315;
+ if ("323316".equals(codeString))
+ return AnzscoOccupations._323316;
+ if ("323400".equals(codeString))
+ return AnzscoOccupations._323400;
+ if ("323411".equals(codeString))
+ return AnzscoOccupations._323411;
+ if ("323412".equals(codeString))
+ return AnzscoOccupations._323412;
+ if ("324000".equals(codeString))
+ return AnzscoOccupations._324000;
+ if ("324111".equals(codeString))
+ return AnzscoOccupations._324111;
+ if ("324200".equals(codeString))
+ return AnzscoOccupations._324200;
+ if ("324211".equals(codeString))
+ return AnzscoOccupations._324211;
+ if ("324212".equals(codeString))
+ return AnzscoOccupations._324212;
+ if ("324311".equals(codeString))
+ return AnzscoOccupations._324311;
+ if ("330000".equals(codeString))
+ return AnzscoOccupations._330000;
+ if ("331000".equals(codeString))
+ return AnzscoOccupations._331000;
+ if ("331100".equals(codeString))
+ return AnzscoOccupations._331100;
+ if ("331111".equals(codeString))
+ return AnzscoOccupations._331111;
+ if ("331112".equals(codeString))
+ return AnzscoOccupations._331112;
+ if ("331211".equals(codeString))
+ return AnzscoOccupations._331211;
+ if ("331212".equals(codeString))
+ return AnzscoOccupations._331212;
+ if ("331213".equals(codeString))
+ return AnzscoOccupations._331213;
+ if ("332000".equals(codeString))
+ return AnzscoOccupations._332000;
+ if ("332111".equals(codeString))
+ return AnzscoOccupations._332111;
+ if ("332211".equals(codeString))
+ return AnzscoOccupations._332211;
+ if ("333000".equals(codeString))
+ return AnzscoOccupations._333000;
+ if ("333111".equals(codeString))
+ return AnzscoOccupations._333111;
+ if ("333200".equals(codeString))
+ return AnzscoOccupations._333200;
+ if ("333211".equals(codeString))
+ return AnzscoOccupations._333211;
+ if ("333212".equals(codeString))
+ return AnzscoOccupations._333212;
+ if ("333311".equals(codeString))
+ return AnzscoOccupations._333311;
+ if ("333411".equals(codeString))
+ return AnzscoOccupations._333411;
+ if ("334100".equals(codeString))
+ return AnzscoOccupations._334100;
+ if ("334111".equals(codeString))
+ return AnzscoOccupations._334111;
+ if ("334112".equals(codeString))
+ return AnzscoOccupations._334112;
+ if ("334113".equals(codeString))
+ return AnzscoOccupations._334113;
+ if ("334114".equals(codeString))
+ return AnzscoOccupations._334114;
+ if ("334115".equals(codeString))
+ return AnzscoOccupations._334115;
+ if ("340000".equals(codeString))
+ return AnzscoOccupations._340000;
+ if ("341100".equals(codeString))
+ return AnzscoOccupations._341100;
+ if ("341111".equals(codeString))
+ return AnzscoOccupations._341111;
+ if ("341112".equals(codeString))
+ return AnzscoOccupations._341112;
+ if ("341113".equals(codeString))
+ return AnzscoOccupations._341113;
+ if ("342000".equals(codeString))
+ return AnzscoOccupations._342000;
+ if ("342111".equals(codeString))
+ return AnzscoOccupations._342111;
+ if ("342200".equals(codeString))
+ return AnzscoOccupations._342200;
+ if ("342211".equals(codeString))
+ return AnzscoOccupations._342211;
+ if ("342212".equals(codeString))
+ return AnzscoOccupations._342212;
+ if ("342300".equals(codeString))
+ return AnzscoOccupations._342300;
+ if ("342311".equals(codeString))
+ return AnzscoOccupations._342311;
+ if ("342312".equals(codeString))
+ return AnzscoOccupations._342312;
+ if ("342313".equals(codeString))
+ return AnzscoOccupations._342313;
+ if ("342314".equals(codeString))
+ return AnzscoOccupations._342314;
+ if ("342315".equals(codeString))
+ return AnzscoOccupations._342315;
+ if ("342400".equals(codeString))
+ return AnzscoOccupations._342400;
+ if ("342411".equals(codeString))
+ return AnzscoOccupations._342411;
+ if ("342412".equals(codeString))
+ return AnzscoOccupations._342412;
+ if ("342413".equals(codeString))
+ return AnzscoOccupations._342413;
+ if ("342414".equals(codeString))
+ return AnzscoOccupations._342414;
+ if ("351000".equals(codeString))
+ return AnzscoOccupations._351000;
+ if ("351100".equals(codeString))
+ return AnzscoOccupations._351100;
+ if ("351111".equals(codeString))
+ return AnzscoOccupations._351111;
+ if ("351112".equals(codeString))
+ return AnzscoOccupations._351112;
+ if ("351211".equals(codeString))
+ return AnzscoOccupations._351211;
+ if ("351311".equals(codeString))
+ return AnzscoOccupations._351311;
+ if ("351411".equals(codeString))
+ return AnzscoOccupations._351411;
+ if ("360000".equals(codeString))
+ return AnzscoOccupations._360000;
+ if ("361000".equals(codeString))
+ return AnzscoOccupations._361000;
+ if ("361100".equals(codeString))
+ return AnzscoOccupations._361100;
+ if ("361111".equals(codeString))
+ return AnzscoOccupations._361111;
+ if ("361112".equals(codeString))
+ return AnzscoOccupations._361112;
+ if ("361113".equals(codeString))
+ return AnzscoOccupations._361113;
+ if ("361114".equals(codeString))
+ return AnzscoOccupations._361114;
+ if ("361199".equals(codeString))
+ return AnzscoOccupations._361199;
+ if ("361211".equals(codeString))
+ return AnzscoOccupations._361211;
+ if ("361311".equals(codeString))
+ return AnzscoOccupations._361311;
+ if ("362000".equals(codeString))
+ return AnzscoOccupations._362000;
+ if ("362111".equals(codeString))
+ return AnzscoOccupations._362111;
+ if ("362200".equals(codeString))
+ return AnzscoOccupations._362200;
+ if ("362211".equals(codeString))
+ return AnzscoOccupations._362211;
+ if ("362212".equals(codeString))
+ return AnzscoOccupations._362212;
+ if ("362213".equals(codeString))
+ return AnzscoOccupations._362213;
+ if ("362311".equals(codeString))
+ return AnzscoOccupations._362311;
+ if ("362411".equals(codeString))
+ return AnzscoOccupations._362411;
+ if ("390000".equals(codeString))
+ return AnzscoOccupations._390000;
+ if ("391111".equals(codeString))
+ return AnzscoOccupations._391111;
+ if ("392000".equals(codeString))
+ return AnzscoOccupations._392000;
+ if ("392100".equals(codeString))
+ return AnzscoOccupations._392100;
+ if ("392111".equals(codeString))
+ return AnzscoOccupations._392111;
+ if ("392112".equals(codeString))
+ return AnzscoOccupations._392112;
+ if ("392211".equals(codeString))
+ return AnzscoOccupations._392211;
+ if ("392300".equals(codeString))
+ return AnzscoOccupations._392300;
+ if ("392311".equals(codeString))
+ return AnzscoOccupations._392311;
+ if ("392312".equals(codeString))
+ return AnzscoOccupations._392312;
+ if ("393000".equals(codeString))
+ return AnzscoOccupations._393000;
+ if ("393100".equals(codeString))
+ return AnzscoOccupations._393100;
+ if ("393111".equals(codeString))
+ return AnzscoOccupations._393111;
+ if ("393112".equals(codeString))
+ return AnzscoOccupations._393112;
+ if ("393113".equals(codeString))
+ return AnzscoOccupations._393113;
+ if ("393114".equals(codeString))
+ return AnzscoOccupations._393114;
+ if ("393200".equals(codeString))
+ return AnzscoOccupations._393200;
+ if ("393211".equals(codeString))
+ return AnzscoOccupations._393211;
+ if ("393212".equals(codeString))
+ return AnzscoOccupations._393212;
+ if ("393213".equals(codeString))
+ return AnzscoOccupations._393213;
+ if ("393299".equals(codeString))
+ return AnzscoOccupations._393299;
+ if ("393311".equals(codeString))
+ return AnzscoOccupations._393311;
+ if ("394000".equals(codeString))
+ return AnzscoOccupations._394000;
+ if ("394111".equals(codeString))
+ return AnzscoOccupations._394111;
+ if ("394200".equals(codeString))
+ return AnzscoOccupations._394200;
+ if ("394211".equals(codeString))
+ return AnzscoOccupations._394211;
+ if ("394212".equals(codeString))
+ return AnzscoOccupations._394212;
+ if ("394213".equals(codeString))
+ return AnzscoOccupations._394213;
+ if ("394214".equals(codeString))
+ return AnzscoOccupations._394214;
+ if ("394299".equals(codeString))
+ return AnzscoOccupations._394299;
+ if ("399000".equals(codeString))
+ return AnzscoOccupations._399000;
+ if ("399100".equals(codeString))
+ return AnzscoOccupations._399100;
+ if ("399111".equals(codeString))
+ return AnzscoOccupations._399111;
+ if ("399112".equals(codeString))
+ return AnzscoOccupations._399112;
+ if ("399200".equals(codeString))
+ return AnzscoOccupations._399200;
+ if ("399211".equals(codeString))
+ return AnzscoOccupations._399211;
+ if ("399212".equals(codeString))
+ return AnzscoOccupations._399212;
+ if ("399213".equals(codeString))
+ return AnzscoOccupations._399213;
+ if ("399300".equals(codeString))
+ return AnzscoOccupations._399300;
+ if ("399311".equals(codeString))
+ return AnzscoOccupations._399311;
+ if ("399312".equals(codeString))
+ return AnzscoOccupations._399312;
+ if ("399411".equals(codeString))
+ return AnzscoOccupations._399411;
+ if ("399500".equals(codeString))
+ return AnzscoOccupations._399500;
+ if ("399511".equals(codeString))
+ return AnzscoOccupations._399511;
+ if ("399512".equals(codeString))
+ return AnzscoOccupations._399512;
+ if ("399513".equals(codeString))
+ return AnzscoOccupations._399513;
+ if ("399514".equals(codeString))
+ return AnzscoOccupations._399514;
+ if ("399515".equals(codeString))
+ return AnzscoOccupations._399515;
+ if ("399516".equals(codeString))
+ return AnzscoOccupations._399516;
+ if ("399517".equals(codeString))
+ return AnzscoOccupations._399517;
+ if ("399599".equals(codeString))
+ return AnzscoOccupations._399599;
+ if ("399611".equals(codeString))
+ return AnzscoOccupations._399611;
+ if ("399900".equals(codeString))
+ return AnzscoOccupations._399900;
+ if ("399911".equals(codeString))
+ return AnzscoOccupations._399911;
+ if ("399912".equals(codeString))
+ return AnzscoOccupations._399912;
+ if ("399913".equals(codeString))
+ return AnzscoOccupations._399913;
+ if ("399914".equals(codeString))
+ return AnzscoOccupations._399914;
+ if ("399915".equals(codeString))
+ return AnzscoOccupations._399915;
+ if ("399916".equals(codeString))
+ return AnzscoOccupations._399916;
+ if ("399917".equals(codeString))
+ return AnzscoOccupations._399917;
+ if ("399999".equals(codeString))
+ return AnzscoOccupations._399999;
+ if ("400000".equals(codeString))
+ return AnzscoOccupations._400000;
+ if ("411000".equals(codeString))
+ return AnzscoOccupations._411000;
+ if ("411100".equals(codeString))
+ return AnzscoOccupations._411100;
+ if ("411111".equals(codeString))
+ return AnzscoOccupations._411111;
+ if ("411112".equals(codeString))
+ return AnzscoOccupations._411112;
+ if ("411200".equals(codeString))
+ return AnzscoOccupations._411200;
+ if ("411211".equals(codeString))
+ return AnzscoOccupations._411211;
+ if ("411212".equals(codeString))
+ return AnzscoOccupations._411212;
+ if ("411213".equals(codeString))
+ return AnzscoOccupations._411213;
+ if ("411214".equals(codeString))
+ return AnzscoOccupations._411214;
+ if ("411311".equals(codeString))
+ return AnzscoOccupations._411311;
+ if ("411400".equals(codeString))
+ return AnzscoOccupations._411400;
+ if ("411411".equals(codeString))
+ return AnzscoOccupations._411411;
+ if ("411412".equals(codeString))
+ return AnzscoOccupations._411412;
+ if ("411511".equals(codeString))
+ return AnzscoOccupations._411511;
+ if ("411611".equals(codeString))
+ return AnzscoOccupations._411611;
+ if ("411700".equals(codeString))
+ return AnzscoOccupations._411700;
+ if ("411711".equals(codeString))
+ return AnzscoOccupations._411711;
+ if ("411712".equals(codeString))
+ return AnzscoOccupations._411712;
+ if ("411713".equals(codeString))
+ return AnzscoOccupations._411713;
+ if ("411714".equals(codeString))
+ return AnzscoOccupations._411714;
+ if ("411715".equals(codeString))
+ return AnzscoOccupations._411715;
+ if ("411716".equals(codeString))
+ return AnzscoOccupations._411716;
+ if ("420000".equals(codeString))
+ return AnzscoOccupations._420000;
+ if ("421100".equals(codeString))
+ return AnzscoOccupations._421100;
+ if ("421111".equals(codeString))
+ return AnzscoOccupations._421111;
+ if ("421112".equals(codeString))
+ return AnzscoOccupations._421112;
+ if ("421113".equals(codeString))
+ return AnzscoOccupations._421113;
+ if ("421114".equals(codeString))
+ return AnzscoOccupations._421114;
+ if ("422100".equals(codeString))
+ return AnzscoOccupations._422100;
+ if ("422111".equals(codeString))
+ return AnzscoOccupations._422111;
+ if ("422112".equals(codeString))
+ return AnzscoOccupations._422112;
+ if ("422115".equals(codeString))
+ return AnzscoOccupations._422115;
+ if ("422116".equals(codeString))
+ return AnzscoOccupations._422116;
+ if ("423000".equals(codeString))
+ return AnzscoOccupations._423000;
+ if ("423111".equals(codeString))
+ return AnzscoOccupations._423111;
+ if ("423211".equals(codeString))
+ return AnzscoOccupations._423211;
+ if ("423300".equals(codeString))
+ return AnzscoOccupations._423300;
+ if ("423311".equals(codeString))
+ return AnzscoOccupations._423311;
+ if ("423312".equals(codeString))
+ return AnzscoOccupations._423312;
+ if ("423313".equals(codeString))
+ return AnzscoOccupations._423313;
+ if ("423314".equals(codeString))
+ return AnzscoOccupations._423314;
+ if ("423400".equals(codeString))
+ return AnzscoOccupations._423400;
+ if ("423411".equals(codeString))
+ return AnzscoOccupations._423411;
+ if ("423412".equals(codeString))
+ return AnzscoOccupations._423412;
+ if ("423413".equals(codeString))
+ return AnzscoOccupations._423413;
+ if ("431000".equals(codeString))
+ return AnzscoOccupations._431000;
+ if ("431100".equals(codeString))
+ return AnzscoOccupations._431100;
+ if ("431111".equals(codeString))
+ return AnzscoOccupations._431111;
+ if ("431112".equals(codeString))
+ return AnzscoOccupations._431112;
+ if ("431211".equals(codeString))
+ return AnzscoOccupations._431211;
+ if ("431311".equals(codeString))
+ return AnzscoOccupations._431311;
+ if ("431411".equals(codeString))
+ return AnzscoOccupations._431411;
+ if ("431511".equals(codeString))
+ return AnzscoOccupations._431511;
+ if ("431900".equals(codeString))
+ return AnzscoOccupations._431900;
+ if ("431911".equals(codeString))
+ return AnzscoOccupations._431911;
+ if ("431912".equals(codeString))
+ return AnzscoOccupations._431912;
+ if ("431999".equals(codeString))
+ return AnzscoOccupations._431999;
+ if ("440000".equals(codeString))
+ return AnzscoOccupations._440000;
+ if ("441000".equals(codeString))
+ return AnzscoOccupations._441000;
+ if ("441111".equals(codeString))
+ return AnzscoOccupations._441111;
+ if ("441200".equals(codeString))
+ return AnzscoOccupations._441200;
+ if ("441211".equals(codeString))
+ return AnzscoOccupations._441211;
+ if ("441212".equals(codeString))
+ return AnzscoOccupations._441212;
+ if ("441300".equals(codeString))
+ return AnzscoOccupations._441300;
+ if ("441311".equals(codeString))
+ return AnzscoOccupations._441311;
+ if ("441312".equals(codeString))
+ return AnzscoOccupations._441312;
+ if ("442000".equals(codeString))
+ return AnzscoOccupations._442000;
+ if ("442111".equals(codeString))
+ return AnzscoOccupations._442111;
+ if ("442200".equals(codeString))
+ return AnzscoOccupations._442200;
+ if ("442211".equals(codeString))
+ return AnzscoOccupations._442211;
+ if ("442212".equals(codeString))
+ return AnzscoOccupations._442212;
+ if ("442213".equals(codeString))
+ return AnzscoOccupations._442213;
+ if ("442214".equals(codeString))
+ return AnzscoOccupations._442214;
+ if ("442215".equals(codeString))
+ return AnzscoOccupations._442215;
+ if ("442216".equals(codeString))
+ return AnzscoOccupations._442216;
+ if ("442217".equals(codeString))
+ return AnzscoOccupations._442217;
+ if ("442299".equals(codeString))
+ return AnzscoOccupations._442299;
+ if ("450000".equals(codeString))
+ return AnzscoOccupations._450000;
+ if ("451000".equals(codeString))
+ return AnzscoOccupations._451000;
+ if ("451111".equals(codeString))
+ return AnzscoOccupations._451111;
+ if ("451211".equals(codeString))
+ return AnzscoOccupations._451211;
+ if ("451300".equals(codeString))
+ return AnzscoOccupations._451300;
+ if ("451311".equals(codeString))
+ return AnzscoOccupations._451311;
+ if ("451399".equals(codeString))
+ return AnzscoOccupations._451399;
+ if ("451400".equals(codeString))
+ return AnzscoOccupations._451400;
+ if ("451411".equals(codeString))
+ return AnzscoOccupations._451411;
+ if ("451412".equals(codeString))
+ return AnzscoOccupations._451412;
+ if ("451500".equals(codeString))
+ return AnzscoOccupations._451500;
+ if ("451511".equals(codeString))
+ return AnzscoOccupations._451511;
+ if ("451512".equals(codeString))
+ return AnzscoOccupations._451512;
+ if ("451600".equals(codeString))
+ return AnzscoOccupations._451600;
+ if ("451611".equals(codeString))
+ return AnzscoOccupations._451611;
+ if ("451612".equals(codeString))
+ return AnzscoOccupations._451612;
+ if ("451700".equals(codeString))
+ return AnzscoOccupations._451700;
+ if ("451711".equals(codeString))
+ return AnzscoOccupations._451711;
+ if ("451799".equals(codeString))
+ return AnzscoOccupations._451799;
+ if ("451800".equals(codeString))
+ return AnzscoOccupations._451800;
+ if ("451811".equals(codeString))
+ return AnzscoOccupations._451811;
+ if ("451812".equals(codeString))
+ return AnzscoOccupations._451812;
+ if ("451813".equals(codeString))
+ return AnzscoOccupations._451813;
+ if ("451899".equals(codeString))
+ return AnzscoOccupations._451899;
+ if ("452000".equals(codeString))
+ return AnzscoOccupations._452000;
+ if ("452111".equals(codeString))
+ return AnzscoOccupations._452111;
+ if ("452200".equals(codeString))
+ return AnzscoOccupations._452200;
+ if ("452211".equals(codeString))
+ return AnzscoOccupations._452211;
+ if ("452212".equals(codeString))
+ return AnzscoOccupations._452212;
+ if ("452213".equals(codeString))
+ return AnzscoOccupations._452213;
+ if ("452214".equals(codeString))
+ return AnzscoOccupations._452214;
+ if ("452215".equals(codeString))
+ return AnzscoOccupations._452215;
+ if ("452216".equals(codeString))
+ return AnzscoOccupations._452216;
+ if ("452217".equals(codeString))
+ return AnzscoOccupations._452217;
+ if ("452299".equals(codeString))
+ return AnzscoOccupations._452299;
+ if ("452300".equals(codeString))
+ return AnzscoOccupations._452300;
+ if ("452311".equals(codeString))
+ return AnzscoOccupations._452311;
+ if ("452312".equals(codeString))
+ return AnzscoOccupations._452312;
+ if ("452313".equals(codeString))
+ return AnzscoOccupations._452313;
+ if ("452314".equals(codeString))
+ return AnzscoOccupations._452314;
+ if ("452315".equals(codeString))
+ return AnzscoOccupations._452315;
+ if ("452316".equals(codeString))
+ return AnzscoOccupations._452316;
+ if ("452317".equals(codeString))
+ return AnzscoOccupations._452317;
+ if ("452318".equals(codeString))
+ return AnzscoOccupations._452318;
+ if ("452321".equals(codeString))
+ return AnzscoOccupations._452321;
+ if ("452322".equals(codeString))
+ return AnzscoOccupations._452322;
+ if ("452323".equals(codeString))
+ return AnzscoOccupations._452323;
+ if ("452400".equals(codeString))
+ return AnzscoOccupations._452400;
+ if ("452411".equals(codeString))
+ return AnzscoOccupations._452411;
+ if ("452412".equals(codeString))
+ return AnzscoOccupations._452412;
+ if ("452413".equals(codeString))
+ return AnzscoOccupations._452413;
+ if ("452414".equals(codeString))
+ return AnzscoOccupations._452414;
+ if ("452499".equals(codeString))
+ return AnzscoOccupations._452499;
+ if ("500000".equals(codeString))
+ return AnzscoOccupations._500000;
+ if ("510000".equals(codeString))
+ return AnzscoOccupations._510000;
+ if ("511100".equals(codeString))
+ return AnzscoOccupations._511100;
+ if ("511111".equals(codeString))
+ return AnzscoOccupations._511111;
+ if ("511112".equals(codeString))
+ return AnzscoOccupations._511112;
+ if ("512000".equals(codeString))
+ return AnzscoOccupations._512000;
+ if ("512111".equals(codeString))
+ return AnzscoOccupations._512111;
+ if ("512200".equals(codeString))
+ return AnzscoOccupations._512200;
+ if ("512211".equals(codeString))
+ return AnzscoOccupations._512211;
+ if ("512299".equals(codeString))
+ return AnzscoOccupations._512299;
+ if ("521000".equals(codeString))
+ return AnzscoOccupations._521000;
+ if ("521111".equals(codeString))
+ return AnzscoOccupations._521111;
+ if ("521200".equals(codeString))
+ return AnzscoOccupations._521200;
+ if ("521211".equals(codeString))
+ return AnzscoOccupations._521211;
+ if ("521212".equals(codeString))
+ return AnzscoOccupations._521212;
+ if ("530000".equals(codeString))
+ return AnzscoOccupations._530000;
+ if ("531111".equals(codeString))
+ return AnzscoOccupations._531111;
+ if ("532100".equals(codeString))
+ return AnzscoOccupations._532100;
+ if ("532111".equals(codeString))
+ return AnzscoOccupations._532111;
+ if ("532112".equals(codeString))
+ return AnzscoOccupations._532112;
+ if ("532113".equals(codeString))
+ return AnzscoOccupations._532113;
+ if ("540000".equals(codeString))
+ return AnzscoOccupations._540000;
+ if ("541000".equals(codeString))
+ return AnzscoOccupations._541000;
+ if ("541100".equals(codeString))
+ return AnzscoOccupations._541100;
+ if ("541111".equals(codeString))
+ return AnzscoOccupations._541111;
+ if ("541112".equals(codeString))
+ return AnzscoOccupations._541112;
+ if ("541211".equals(codeString))
+ return AnzscoOccupations._541211;
+ if ("542100".equals(codeString))
+ return AnzscoOccupations._542100;
+ if ("542111".equals(codeString))
+ return AnzscoOccupations._542111;
+ if ("542112".equals(codeString))
+ return AnzscoOccupations._542112;
+ if ("542113".equals(codeString))
+ return AnzscoOccupations._542113;
+ if ("542114".equals(codeString))
+ return AnzscoOccupations._542114;
+ if ("550000".equals(codeString))
+ return AnzscoOccupations._550000;
+ if ("551000".equals(codeString))
+ return AnzscoOccupations._551000;
+ if ("551100".equals(codeString))
+ return AnzscoOccupations._551100;
+ if ("551111".equals(codeString))
+ return AnzscoOccupations._551111;
+ if ("551112".equals(codeString))
+ return AnzscoOccupations._551112;
+ if ("551211".equals(codeString))
+ return AnzscoOccupations._551211;
+ if ("551311".equals(codeString))
+ return AnzscoOccupations._551311;
+ if ("552000".equals(codeString))
+ return AnzscoOccupations._552000;
+ if ("552111".equals(codeString))
+ return AnzscoOccupations._552111;
+ if ("552211".equals(codeString))
+ return AnzscoOccupations._552211;
+ if ("552300".equals(codeString))
+ return AnzscoOccupations._552300;
+ if ("552311".equals(codeString))
+ return AnzscoOccupations._552311;
+ if ("552312".equals(codeString))
+ return AnzscoOccupations._552312;
+ if ("552313".equals(codeString))
+ return AnzscoOccupations._552313;
+ if ("552314".equals(codeString))
+ return AnzscoOccupations._552314;
+ if ("561000".equals(codeString))
+ return AnzscoOccupations._561000;
+ if ("561100".equals(codeString))
+ return AnzscoOccupations._561100;
+ if ("561111".equals(codeString))
+ return AnzscoOccupations._561111;
+ if ("561112".equals(codeString))
+ return AnzscoOccupations._561112;
+ if ("561113".equals(codeString))
+ return AnzscoOccupations._561113;
+ if ("561199".equals(codeString))
+ return AnzscoOccupations._561199;
+ if ("561200".equals(codeString))
+ return AnzscoOccupations._561200;
+ if ("561211".equals(codeString))
+ return AnzscoOccupations._561211;
+ if ("561212".equals(codeString))
+ return AnzscoOccupations._561212;
+ if ("561311".equals(codeString))
+ return AnzscoOccupations._561311;
+ if ("561400".equals(codeString))
+ return AnzscoOccupations._561400;
+ if ("561411".equals(codeString))
+ return AnzscoOccupations._561411;
+ if ("561412".equals(codeString))
+ return AnzscoOccupations._561412;
+ if ("561511".equals(codeString))
+ return AnzscoOccupations._561511;
+ if ("561611".equals(codeString))
+ return AnzscoOccupations._561611;
+ if ("561900".equals(codeString))
+ return AnzscoOccupations._561900;
+ if ("561911".equals(codeString))
+ return AnzscoOccupations._561911;
+ if ("561912".equals(codeString))
+ return AnzscoOccupations._561912;
+ if ("561913".equals(codeString))
+ return AnzscoOccupations._561913;
+ if ("561999".equals(codeString))
+ return AnzscoOccupations._561999;
+ if ("590000".equals(codeString))
+ return AnzscoOccupations._590000;
+ if ("591000".equals(codeString))
+ return AnzscoOccupations._591000;
+ if ("591100".equals(codeString))
+ return AnzscoOccupations._591100;
+ if ("591111".equals(codeString))
+ return AnzscoOccupations._591111;
+ if ("591112".equals(codeString))
+ return AnzscoOccupations._591112;
+ if ("591113".equals(codeString))
+ return AnzscoOccupations._591113;
+ if ("591114".equals(codeString))
+ return AnzscoOccupations._591114;
+ if ("591115".equals(codeString))
+ return AnzscoOccupations._591115;
+ if ("591116".equals(codeString))
+ return AnzscoOccupations._591116;
+ if ("591200".equals(codeString))
+ return AnzscoOccupations._591200;
+ if ("591211".equals(codeString))
+ return AnzscoOccupations._591211;
+ if ("591212".equals(codeString))
+ return AnzscoOccupations._591212;
+ if ("599000".equals(codeString))
+ return AnzscoOccupations._599000;
+ if ("599100".equals(codeString))
+ return AnzscoOccupations._599100;
+ if ("599111".equals(codeString))
+ return AnzscoOccupations._599111;
+ if ("599112".equals(codeString))
+ return AnzscoOccupations._599112;
+ if ("599200".equals(codeString))
+ return AnzscoOccupations._599200;
+ if ("599211".equals(codeString))
+ return AnzscoOccupations._599211;
+ if ("599212".equals(codeString))
+ return AnzscoOccupations._599212;
+ if ("599213".equals(codeString))
+ return AnzscoOccupations._599213;
+ if ("599214".equals(codeString))
+ return AnzscoOccupations._599214;
+ if ("599215".equals(codeString))
+ return AnzscoOccupations._599215;
+ if ("599311".equals(codeString))
+ return AnzscoOccupations._599311;
+ if ("599411".equals(codeString))
+ return AnzscoOccupations._599411;
+ if ("599500".equals(codeString))
+ return AnzscoOccupations._599500;
+ if ("599511".equals(codeString))
+ return AnzscoOccupations._599511;
+ if ("599512".equals(codeString))
+ return AnzscoOccupations._599512;
+ if ("599513".equals(codeString))
+ return AnzscoOccupations._599513;
+ if ("599514".equals(codeString))
+ return AnzscoOccupations._599514;
+ if ("599515".equals(codeString))
+ return AnzscoOccupations._599515;
+ if ("599516".equals(codeString))
+ return AnzscoOccupations._599516;
+ if ("599517".equals(codeString))
+ return AnzscoOccupations._599517;
+ if ("599518".equals(codeString))
+ return AnzscoOccupations._599518;
+ if ("599521".equals(codeString))
+ return AnzscoOccupations._599521;
+ if ("599599".equals(codeString))
+ return AnzscoOccupations._599599;
+ if ("599600".equals(codeString))
+ return AnzscoOccupations._599600;
+ if ("599611".equals(codeString))
+ return AnzscoOccupations._599611;
+ if ("599612".equals(codeString))
+ return AnzscoOccupations._599612;
+ if ("599613".equals(codeString))
+ return AnzscoOccupations._599613;
+ if ("599711".equals(codeString))
+ return AnzscoOccupations._599711;
+ if ("599900".equals(codeString))
+ return AnzscoOccupations._599900;
+ if ("599911".equals(codeString))
+ return AnzscoOccupations._599911;
+ if ("599912".equals(codeString))
+ return AnzscoOccupations._599912;
+ if ("599913".equals(codeString))
+ return AnzscoOccupations._599913;
+ if ("599914".equals(codeString))
+ return AnzscoOccupations._599914;
+ if ("599999".equals(codeString))
+ return AnzscoOccupations._599999;
+ if ("600000".equals(codeString))
+ return AnzscoOccupations._600000;
+ if ("610000".equals(codeString))
+ return AnzscoOccupations._610000;
+ if ("611000".equals(codeString))
+ return AnzscoOccupations._611000;
+ if ("611100".equals(codeString))
+ return AnzscoOccupations._611100;
+ if ("611111".equals(codeString))
+ return AnzscoOccupations._611111;
+ if ("611112".equals(codeString))
+ return AnzscoOccupations._611112;
+ if ("611211".equals(codeString))
+ return AnzscoOccupations._611211;
+ if ("611300".equals(codeString))
+ return AnzscoOccupations._611300;
+ if ("611311".equals(codeString))
+ return AnzscoOccupations._611311;
+ if ("611312".equals(codeString))
+ return AnzscoOccupations._611312;
+ if ("611313".equals(codeString))
+ return AnzscoOccupations._611313;
+ if ("611314".equals(codeString))
+ return AnzscoOccupations._611314;
+ if ("611399".equals(codeString))
+ return AnzscoOccupations._611399;
+ if ("612100".equals(codeString))
+ return AnzscoOccupations._612100;
+ if ("612111".equals(codeString))
+ return AnzscoOccupations._612111;
+ if ("612112".equals(codeString))
+ return AnzscoOccupations._612112;
+ if ("612113".equals(codeString))
+ return AnzscoOccupations._612113;
+ if ("612114".equals(codeString))
+ return AnzscoOccupations._612114;
+ if ("612115".equals(codeString))
+ return AnzscoOccupations._612115;
+ if ("621000".equals(codeString))
+ return AnzscoOccupations._621000;
+ if ("621111".equals(codeString))
+ return AnzscoOccupations._621111;
+ if ("621211".equals(codeString))
+ return AnzscoOccupations._621211;
+ if ("621300".equals(codeString))
+ return AnzscoOccupations._621300;
+ if ("621311".equals(codeString))
+ return AnzscoOccupations._621311;
+ if ("621312".equals(codeString))
+ return AnzscoOccupations._621312;
+ if ("621411".equals(codeString))
+ return AnzscoOccupations._621411;
+ if ("621511".equals(codeString))
+ return AnzscoOccupations._621511;
+ if ("621611".equals(codeString))
+ return AnzscoOccupations._621611;
+ if ("621700".equals(codeString))
+ return AnzscoOccupations._621700;
+ if ("621711".equals(codeString))
+ return AnzscoOccupations._621711;
+ if ("621712".equals(codeString))
+ return AnzscoOccupations._621712;
+ if ("621713".equals(codeString))
+ return AnzscoOccupations._621713;
+ if ("621900".equals(codeString))
+ return AnzscoOccupations._621900;
+ if ("621911".equals(codeString))
+ return AnzscoOccupations._621911;
+ if ("621912".equals(codeString))
+ return AnzscoOccupations._621912;
+ if ("621999".equals(codeString))
+ return AnzscoOccupations._621999;
+ if ("630000".equals(codeString))
+ return AnzscoOccupations._630000;
+ if ("631100".equals(codeString))
+ return AnzscoOccupations._631100;
+ if ("631111".equals(codeString))
+ return AnzscoOccupations._631111;
+ if ("631112".equals(codeString))
+ return AnzscoOccupations._631112;
+ if ("639000".equals(codeString))
+ return AnzscoOccupations._639000;
+ if ("639100".equals(codeString))
+ return AnzscoOccupations._639100;
+ if ("639111".equals(codeString))
+ return AnzscoOccupations._639111;
+ if ("639112".equals(codeString))
+ return AnzscoOccupations._639112;
+ if ("639200".equals(codeString))
+ return AnzscoOccupations._639200;
+ if ("639211".equals(codeString))
+ return AnzscoOccupations._639211;
+ if ("639212".equals(codeString))
+ return AnzscoOccupations._639212;
+ if ("639311".equals(codeString))
+ return AnzscoOccupations._639311;
+ if ("639400".equals(codeString))
+ return AnzscoOccupations._639400;
+ if ("639411".equals(codeString))
+ return AnzscoOccupations._639411;
+ if ("639412".equals(codeString))
+ return AnzscoOccupations._639412;
+ if ("639511".equals(codeString))
+ return AnzscoOccupations._639511;
+ if ("639911".equals(codeString))
+ return AnzscoOccupations._639911;
+ if ("700000".equals(codeString))
+ return AnzscoOccupations._700000;
+ if ("710000".equals(codeString))
+ return AnzscoOccupations._710000;
+ if ("711000".equals(codeString))
+ return AnzscoOccupations._711000;
+ if ("711100".equals(codeString))
+ return AnzscoOccupations._711100;
+ if ("711111".equals(codeString))
+ return AnzscoOccupations._711111;
+ if ("711112".equals(codeString))
+ return AnzscoOccupations._711112;
+ if ("711113".equals(codeString))
+ return AnzscoOccupations._711113;
+ if ("711114".equals(codeString))
+ return AnzscoOccupations._711114;
+ if ("711199".equals(codeString))
+ return AnzscoOccupations._711199;
+ if ("711211".equals(codeString))
+ return AnzscoOccupations._711211;
+ if ("711300".equals(codeString))
+ return AnzscoOccupations._711300;
+ if ("711311".equals(codeString))
+ return AnzscoOccupations._711311;
+ if ("711312".equals(codeString))
+ return AnzscoOccupations._711312;
+ if ("711411".equals(codeString))
+ return AnzscoOccupations._711411;
+ if ("711500".equals(codeString))
+ return AnzscoOccupations._711500;
+ if ("711511".equals(codeString))
+ return AnzscoOccupations._711511;
+ if ("711512".equals(codeString))
+ return AnzscoOccupations._711512;
+ if ("711513".equals(codeString))
+ return AnzscoOccupations._711513;
+ if ("711514".equals(codeString))
+ return AnzscoOccupations._711514;
+ if ("711515".equals(codeString))
+ return AnzscoOccupations._711515;
+ if ("711516".equals(codeString))
+ return AnzscoOccupations._711516;
+ if ("711599".equals(codeString))
+ return AnzscoOccupations._711599;
+ if ("711611".equals(codeString))
+ return AnzscoOccupations._711611;
+ if ("711700".equals(codeString))
+ return AnzscoOccupations._711700;
+ if ("711711".equals(codeString))
+ return AnzscoOccupations._711711;
+ if ("711712".equals(codeString))
+ return AnzscoOccupations._711712;
+ if ("711713".equals(codeString))
+ return AnzscoOccupations._711713;
+ if ("711714".equals(codeString))
+ return AnzscoOccupations._711714;
+ if ("711715".equals(codeString))
+ return AnzscoOccupations._711715;
+ if ("711716".equals(codeString))
+ return AnzscoOccupations._711716;
+ if ("711799".equals(codeString))
+ return AnzscoOccupations._711799;
+ if ("711900".equals(codeString))
+ return AnzscoOccupations._711900;
+ if ("711911".equals(codeString))
+ return AnzscoOccupations._711911;
+ if ("711912".equals(codeString))
+ return AnzscoOccupations._711912;
+ if ("711913".equals(codeString))
+ return AnzscoOccupations._711913;
+ if ("711914".equals(codeString))
+ return AnzscoOccupations._711914;
+ if ("711999".equals(codeString))
+ return AnzscoOccupations._711999;
+ if ("712000".equals(codeString))
+ return AnzscoOccupations._712000;
+ if ("712111".equals(codeString))
+ return AnzscoOccupations._712111;
+ if ("712200".equals(codeString))
+ return AnzscoOccupations._712200;
+ if ("712211".equals(codeString))
+ return AnzscoOccupations._712211;
+ if ("712212".equals(codeString))
+ return AnzscoOccupations._712212;
+ if ("712213".equals(codeString))
+ return AnzscoOccupations._712213;
+ if ("712311".equals(codeString))
+ return AnzscoOccupations._712311;
+ if ("712900".equals(codeString))
+ return AnzscoOccupations._712900;
+ if ("712911".equals(codeString))
+ return AnzscoOccupations._712911;
+ if ("712912".equals(codeString))
+ return AnzscoOccupations._712912;
+ if ("712913".equals(codeString))
+ return AnzscoOccupations._712913;
+ if ("712914".equals(codeString))
+ return AnzscoOccupations._712914;
+ if ("712915".equals(codeString))
+ return AnzscoOccupations._712915;
+ if ("712916".equals(codeString))
+ return AnzscoOccupations._712916;
+ if ("712917".equals(codeString))
+ return AnzscoOccupations._712917;
+ if ("712918".equals(codeString))
+ return AnzscoOccupations._712918;
+ if ("712921".equals(codeString))
+ return AnzscoOccupations._712921;
+ if ("712922".equals(codeString))
+ return AnzscoOccupations._712922;
+ if ("712999".equals(codeString))
+ return AnzscoOccupations._712999;
+ if ("721000".equals(codeString))
+ return AnzscoOccupations._721000;
+ if ("721100".equals(codeString))
+ return AnzscoOccupations._721100;
+ if ("721111".equals(codeString))
+ return AnzscoOccupations._721111;
+ if ("721112".equals(codeString))
+ return AnzscoOccupations._721112;
+ if ("721200".equals(codeString))
+ return AnzscoOccupations._721200;
+ if ("721211".equals(codeString))
+ return AnzscoOccupations._721211;
+ if ("721212".equals(codeString))
+ return AnzscoOccupations._721212;
+ if ("721213".equals(codeString))
+ return AnzscoOccupations._721213;
+ if ("721214".equals(codeString))
+ return AnzscoOccupations._721214;
+ if ("721215".equals(codeString))
+ return AnzscoOccupations._721215;
+ if ("721216".equals(codeString))
+ return AnzscoOccupations._721216;
+ if ("721311".equals(codeString))
+ return AnzscoOccupations._721311;
+ if ("721900".equals(codeString))
+ return AnzscoOccupations._721900;
+ if ("721911".equals(codeString))
+ return AnzscoOccupations._721911;
+ if ("721912".equals(codeString))
+ return AnzscoOccupations._721912;
+ if ("721913".equals(codeString))
+ return AnzscoOccupations._721913;
+ if ("721914".equals(codeString))
+ return AnzscoOccupations._721914;
+ if ("721915".equals(codeString))
+ return AnzscoOccupations._721915;
+ if ("721916".equals(codeString))
+ return AnzscoOccupations._721916;
+ if ("721999".equals(codeString))
+ return AnzscoOccupations._721999;
+ if ("730000".equals(codeString))
+ return AnzscoOccupations._730000;
+ if ("731000".equals(codeString))
+ return AnzscoOccupations._731000;
+ if ("731100".equals(codeString))
+ return AnzscoOccupations._731100;
+ if ("731111".equals(codeString))
+ return AnzscoOccupations._731111;
+ if ("731112".equals(codeString))
+ return AnzscoOccupations._731112;
+ if ("731199".equals(codeString))
+ return AnzscoOccupations._731199;
+ if ("731200".equals(codeString))
+ return AnzscoOccupations._731200;
+ if ("731211".equals(codeString))
+ return AnzscoOccupations._731211;
+ if ("731212".equals(codeString))
+ return AnzscoOccupations._731212;
+ if ("731213".equals(codeString))
+ return AnzscoOccupations._731213;
+ if ("731300".equals(codeString))
+ return AnzscoOccupations._731300;
+ if ("731311".equals(codeString))
+ return AnzscoOccupations._731311;
+ if ("731312".equals(codeString))
+ return AnzscoOccupations._731312;
+ if ("732111".equals(codeString))
+ return AnzscoOccupations._732111;
+ if ("733100".equals(codeString))
+ return AnzscoOccupations._733100;
+ if ("733111".equals(codeString))
+ return AnzscoOccupations._733111;
+ if ("733112".equals(codeString))
+ return AnzscoOccupations._733112;
+ if ("733113".equals(codeString))
+ return AnzscoOccupations._733113;
+ if ("733114".equals(codeString))
+ return AnzscoOccupations._733114;
+ if ("733115".equals(codeString))
+ return AnzscoOccupations._733115;
+ if ("741111".equals(codeString))
+ return AnzscoOccupations._741111;
+ if ("800000".equals(codeString))
+ return AnzscoOccupations._800000;
+ if ("811000".equals(codeString))
+ return AnzscoOccupations._811000;
+ if ("811111".equals(codeString))
+ return AnzscoOccupations._811111;
+ if ("811211".equals(codeString))
+ return AnzscoOccupations._811211;
+ if ("811311".equals(codeString))
+ return AnzscoOccupations._811311;
+ if ("811400".equals(codeString))
+ return AnzscoOccupations._811400;
+ if ("811411".equals(codeString))
+ return AnzscoOccupations._811411;
+ if ("811412".equals(codeString))
+ return AnzscoOccupations._811412;
+ if ("811500".equals(codeString))
+ return AnzscoOccupations._811500;
+ if ("811511".equals(codeString))
+ return AnzscoOccupations._811511;
+ if ("811512".equals(codeString))
+ return AnzscoOccupations._811512;
+ if ("811513".equals(codeString))
+ return AnzscoOccupations._811513;
+ if ("811600".equals(codeString))
+ return AnzscoOccupations._811600;
+ if ("811611".equals(codeString))
+ return AnzscoOccupations._811611;
+ if ("811612".equals(codeString))
+ return AnzscoOccupations._811612;
+ if ("811699".equals(codeString))
+ return AnzscoOccupations._811699;
+ if ("821000".equals(codeString))
+ return AnzscoOccupations._821000;
+ if ("821100".equals(codeString))
+ return AnzscoOccupations._821100;
+ if ("821111".equals(codeString))
+ return AnzscoOccupations._821111;
+ if ("821112".equals(codeString))
+ return AnzscoOccupations._821112;
+ if ("821113".equals(codeString))
+ return AnzscoOccupations._821113;
+ if ("821114".equals(codeString))
+ return AnzscoOccupations._821114;
+ if ("821211".equals(codeString))
+ return AnzscoOccupations._821211;
+ if ("821311".equals(codeString))
+ return AnzscoOccupations._821311;
+ if ("821400".equals(codeString))
+ return AnzscoOccupations._821400;
+ if ("821411".equals(codeString))
+ return AnzscoOccupations._821411;
+ if ("821412".equals(codeString))
+ return AnzscoOccupations._821412;
+ if ("821511".equals(codeString))
+ return AnzscoOccupations._821511;
+ if ("821611".equals(codeString))
+ return AnzscoOccupations._821611;
+ if ("821700".equals(codeString))
+ return AnzscoOccupations._821700;
+ if ("821711".equals(codeString))
+ return AnzscoOccupations._821711;
+ if ("821712".equals(codeString))
+ return AnzscoOccupations._821712;
+ if ("821713".equals(codeString))
+ return AnzscoOccupations._821713;
+ if ("821714".equals(codeString))
+ return AnzscoOccupations._821714;
+ if ("821900".equals(codeString))
+ return AnzscoOccupations._821900;
+ if ("821911".equals(codeString))
+ return AnzscoOccupations._821911;
+ if ("821912".equals(codeString))
+ return AnzscoOccupations._821912;
+ if ("821913".equals(codeString))
+ return AnzscoOccupations._821913;
+ if ("821914".equals(codeString))
+ return AnzscoOccupations._821914;
+ if ("821915".equals(codeString))
+ return AnzscoOccupations._821915;
+ if ("830000".equals(codeString))
+ return AnzscoOccupations._830000;
+ if ("831000".equals(codeString))
+ return AnzscoOccupations._831000;
+ if ("831100".equals(codeString))
+ return AnzscoOccupations._831100;
+ if ("831111".equals(codeString))
+ return AnzscoOccupations._831111;
+ if ("831112".equals(codeString))
+ return AnzscoOccupations._831112;
+ if ("831113".equals(codeString))
+ return AnzscoOccupations._831113;
+ if ("831114".equals(codeString))
+ return AnzscoOccupations._831114;
+ if ("831115".equals(codeString))
+ return AnzscoOccupations._831115;
+ if ("831116".equals(codeString))
+ return AnzscoOccupations._831116;
+ if ("831117".equals(codeString))
+ return AnzscoOccupations._831117;
+ if ("831118".equals(codeString))
+ return AnzscoOccupations._831118;
+ if ("831199".equals(codeString))
+ return AnzscoOccupations._831199;
+ if ("831200".equals(codeString))
+ return AnzscoOccupations._831200;
+ if ("831211".equals(codeString))
+ return AnzscoOccupations._831211;
+ if ("831212".equals(codeString))
+ return AnzscoOccupations._831212;
+ if ("831300".equals(codeString))
+ return AnzscoOccupations._831300;
+ if ("831311".equals(codeString))
+ return AnzscoOccupations._831311;
+ if ("831312".equals(codeString))
+ return AnzscoOccupations._831312;
+ if ("831313".equals(codeString))
+ return AnzscoOccupations._831313;
+ if ("832000".equals(codeString))
+ return AnzscoOccupations._832000;
+ if ("832100".equals(codeString))
+ return AnzscoOccupations._832100;
+ if ("832111".equals(codeString))
+ return AnzscoOccupations._832111;
+ if ("832112".equals(codeString))
+ return AnzscoOccupations._832112;
+ if ("832113".equals(codeString))
+ return AnzscoOccupations._832113;
+ if ("832114".equals(codeString))
+ return AnzscoOccupations._832114;
+ if ("832115".equals(codeString))
+ return AnzscoOccupations._832115;
+ if ("832199".equals(codeString))
+ return AnzscoOccupations._832199;
+ if ("832211".equals(codeString))
+ return AnzscoOccupations._832211;
+ if ("839000".equals(codeString))
+ return AnzscoOccupations._839000;
+ if ("839111".equals(codeString))
+ return AnzscoOccupations._839111;
+ if ("839200".equals(codeString))
+ return AnzscoOccupations._839200;
+ if ("839211".equals(codeString))
+ return AnzscoOccupations._839211;
+ if ("839212".equals(codeString))
+ return AnzscoOccupations._839212;
+ if ("839300".equals(codeString))
+ return AnzscoOccupations._839300;
+ if ("839311".equals(codeString))
+ return AnzscoOccupations._839311;
+ if ("839312".equals(codeString))
+ return AnzscoOccupations._839312;
+ if ("839313".equals(codeString))
+ return AnzscoOccupations._839313;
+ if ("839400".equals(codeString))
+ return AnzscoOccupations._839400;
+ if ("839411".equals(codeString))
+ return AnzscoOccupations._839411;
+ if ("839412".equals(codeString))
+ return AnzscoOccupations._839412;
+ if ("839413".equals(codeString))
+ return AnzscoOccupations._839413;
+ if ("839900".equals(codeString))
+ return AnzscoOccupations._839900;
+ if ("839911".equals(codeString))
+ return AnzscoOccupations._839911;
+ if ("839912".equals(codeString))
+ return AnzscoOccupations._839912;
+ if ("839913".equals(codeString))
+ return AnzscoOccupations._839913;
+ if ("839914".equals(codeString))
+ return AnzscoOccupations._839914;
+ if ("839915".equals(codeString))
+ return AnzscoOccupations._839915;
+ if ("839916".equals(codeString))
+ return AnzscoOccupations._839916;
+ if ("839917".equals(codeString))
+ return AnzscoOccupations._839917;
+ if ("839999".equals(codeString))
+ return AnzscoOccupations._839999;
+ if ("841000".equals(codeString))
+ return AnzscoOccupations._841000;
+ if ("841111".equals(codeString))
+ return AnzscoOccupations._841111;
+ if ("841200".equals(codeString))
+ return AnzscoOccupations._841200;
+ if ("841211".equals(codeString))
+ return AnzscoOccupations._841211;
+ if ("841212".equals(codeString))
+ return AnzscoOccupations._841212;
+ if ("841213".equals(codeString))
+ return AnzscoOccupations._841213;
+ if ("841214".equals(codeString))
+ return AnzscoOccupations._841214;
+ if ("841215".equals(codeString))
+ return AnzscoOccupations._841215;
+ if ("841216".equals(codeString))
+ return AnzscoOccupations._841216;
+ if ("841299".equals(codeString))
+ return AnzscoOccupations._841299;
+ if ("841300".equals(codeString))
+ return AnzscoOccupations._841300;
+ if ("841311".equals(codeString))
+ return AnzscoOccupations._841311;
+ if ("841312".equals(codeString))
+ return AnzscoOccupations._841312;
+ if ("841313".equals(codeString))
+ return AnzscoOccupations._841313;
+ if ("841400".equals(codeString))
+ return AnzscoOccupations._841400;
+ if ("841411".equals(codeString))
+ return AnzscoOccupations._841411;
+ if ("841412".equals(codeString))
+ return AnzscoOccupations._841412;
+ if ("841500".equals(codeString))
+ return AnzscoOccupations._841500;
+ if ("841511".equals(codeString))
+ return AnzscoOccupations._841511;
+ if ("841512".equals(codeString))
+ return AnzscoOccupations._841512;
+ if ("841513".equals(codeString))
+ return AnzscoOccupations._841513;
+ if ("841514".equals(codeString))
+ return AnzscoOccupations._841514;
+ if ("841515".equals(codeString))
+ return AnzscoOccupations._841515;
+ if ("841516".equals(codeString))
+ return AnzscoOccupations._841516;
+ if ("841517".equals(codeString))
+ return AnzscoOccupations._841517;
+ if ("841599".equals(codeString))
+ return AnzscoOccupations._841599;
+ if ("841611".equals(codeString))
+ return AnzscoOccupations._841611;
+ if ("841900".equals(codeString))
+ return AnzscoOccupations._841900;
+ if ("841911".equals(codeString))
+ return AnzscoOccupations._841911;
+ if ("841912".equals(codeString))
+ return AnzscoOccupations._841912;
+ if ("841999".equals(codeString))
+ return AnzscoOccupations._841999;
+ if ("851000".equals(codeString))
+ return AnzscoOccupations._851000;
+ if ("851111".equals(codeString))
+ return AnzscoOccupations._851111;
+ if ("851200".equals(codeString))
+ return AnzscoOccupations._851200;
+ if ("851211".equals(codeString))
+ return AnzscoOccupations._851211;
+ if ("851299".equals(codeString))
+ return AnzscoOccupations._851299;
+ if ("851311".equals(codeString))
+ return AnzscoOccupations._851311;
+ if ("890000".equals(codeString))
+ return AnzscoOccupations._890000;
+ if ("891000".equals(codeString))
+ return AnzscoOccupations._891000;
+ if ("891100".equals(codeString))
+ return AnzscoOccupations._891100;
+ if ("891111".equals(codeString))
+ return AnzscoOccupations._891111;
+ if ("891112".equals(codeString))
+ return AnzscoOccupations._891112;
+ if ("891113".equals(codeString))
+ return AnzscoOccupations._891113;
+ if ("891211".equals(codeString))
+ return AnzscoOccupations._891211;
+ if ("899000".equals(codeString))
+ return AnzscoOccupations._899000;
+ if ("899111".equals(codeString))
+ return AnzscoOccupations._899111;
+ if ("899200".equals(codeString))
+ return AnzscoOccupations._899200;
+ if ("899211".equals(codeString))
+ return AnzscoOccupations._899211;
+ if ("899212".equals(codeString))
+ return AnzscoOccupations._899212;
+ if ("899311".equals(codeString))
+ return AnzscoOccupations._899311;
+ if ("899400".equals(codeString))
+ return AnzscoOccupations._899400;
+ if ("899411".equals(codeString))
+ return AnzscoOccupations._899411;
+ if ("899412".equals(codeString))
+ return AnzscoOccupations._899412;
+ if ("899413".equals(codeString))
+ return AnzscoOccupations._899413;
+ if ("899414".equals(codeString))
+ return AnzscoOccupations._899414;
+ if ("899415".equals(codeString))
+ return AnzscoOccupations._899415;
+ if ("899500".equals(codeString))
+ return AnzscoOccupations._899500;
+ if ("899511".equals(codeString))
+ return AnzscoOccupations._899511;
+ if ("899512".equals(codeString))
+ return AnzscoOccupations._899512;
+ if ("899611".equals(codeString))
+ return AnzscoOccupations._899611;
+ if ("899711".equals(codeString))
+ return AnzscoOccupations._899711;
+ if ("899900".equals(codeString))
+ return AnzscoOccupations._899900;
+ if ("899911".equals(codeString))
+ return AnzscoOccupations._899911;
+ if ("899912".equals(codeString))
+ return AnzscoOccupations._899912;
+ if ("899913".equals(codeString))
+ return AnzscoOccupations._899913;
+ if ("899914".equals(codeString))
+ return AnzscoOccupations._899914;
+ if ("899915".equals(codeString))
+ return AnzscoOccupations._899915;
+ if ("899916".equals(codeString))
+ return AnzscoOccupations._899916;
+ if ("899917".equals(codeString))
+ return AnzscoOccupations._899917;
+ if ("899918".equals(codeString))
+ return AnzscoOccupations._899918;
+ if ("899921".equals(codeString))
+ return AnzscoOccupations._899921;
+ if ("899922".equals(codeString))
+ return AnzscoOccupations._899922;
+ if ("899999".equals(codeString))
+ return AnzscoOccupations._899999;
+ throw new IllegalArgumentException("Unknown AnzscoOccupations code '"+codeString+"'");
+ }
+
+ public String toCode(AnzscoOccupations code) {
+ if (code == AnzscoOccupations._100000)
+ return "100000";
+ if (code == AnzscoOccupations._111000)
+ return "111000";
+ if (code == AnzscoOccupations._111111)
+ return "111111";
+ if (code == AnzscoOccupations._111200)
+ return "111200";
+ if (code == AnzscoOccupations._111211)
+ return "111211";
+ if (code == AnzscoOccupations._111212)
+ return "111212";
+ if (code == AnzscoOccupations._111300)
+ return "111300";
+ if (code == AnzscoOccupations._111311)
+ return "111311";
+ if (code == AnzscoOccupations._111312)
+ return "111312";
+ if (code == AnzscoOccupations._111399)
+ return "111399";
+ if (code == AnzscoOccupations._121000)
+ return "121000";
+ if (code == AnzscoOccupations._121111)
+ return "121111";
+ if (code == AnzscoOccupations._121200)
+ return "121200";
+ if (code == AnzscoOccupations._121211)
+ return "121211";
+ if (code == AnzscoOccupations._121212)
+ return "121212";
+ if (code == AnzscoOccupations._121213)
+ return "121213";
+ if (code == AnzscoOccupations._121214)
+ return "121214";
+ if (code == AnzscoOccupations._121215)
+ return "121215";
+ if (code == AnzscoOccupations._121216)
+ return "121216";
+ if (code == AnzscoOccupations._121217)
+ return "121217";
+ if (code == AnzscoOccupations._121218)
+ return "121218";
+ if (code == AnzscoOccupations._121221)
+ return "121221";
+ if (code == AnzscoOccupations._121299)
+ return "121299";
+ if (code == AnzscoOccupations._121300)
+ return "121300";
+ if (code == AnzscoOccupations._121311)
+ return "121311";
+ if (code == AnzscoOccupations._121312)
+ return "121312";
+ if (code == AnzscoOccupations._121313)
+ return "121313";
+ if (code == AnzscoOccupations._121314)
+ return "121314";
+ if (code == AnzscoOccupations._121315)
+ return "121315";
+ if (code == AnzscoOccupations._121316)
+ return "121316";
+ if (code == AnzscoOccupations._121317)
+ return "121317";
+ if (code == AnzscoOccupations._121318)
+ return "121318";
+ if (code == AnzscoOccupations._121321)
+ return "121321";
+ if (code == AnzscoOccupations._121322)
+ return "121322";
+ if (code == AnzscoOccupations._121399)
+ return "121399";
+ if (code == AnzscoOccupations._121411)
+ return "121411";
+ if (code == AnzscoOccupations._130000)
+ return "130000";
+ if (code == AnzscoOccupations._131100)
+ return "131100";
+ if (code == AnzscoOccupations._131111)
+ return "131111";
+ if (code == AnzscoOccupations._131112)
+ return "131112";
+ if (code == AnzscoOccupations._132000)
+ return "132000";
+ if (code == AnzscoOccupations._132111)
+ return "132111";
+ if (code == AnzscoOccupations._132211)
+ return "132211";
+ if (code == AnzscoOccupations._132311)
+ return "132311";
+ if (code == AnzscoOccupations._132411)
+ return "132411";
+ if (code == AnzscoOccupations._132511)
+ return "132511";
+ if (code == AnzscoOccupations._133000)
+ return "133000";
+ if (code == AnzscoOccupations._133100)
+ return "133100";
+ if (code == AnzscoOccupations._133111)
+ return "133111";
+ if (code == AnzscoOccupations._133112)
+ return "133112";
+ if (code == AnzscoOccupations._133211)
+ return "133211";
+ if (code == AnzscoOccupations._133300)
+ return "133300";
+ if (code == AnzscoOccupations._133311)
+ return "133311";
+ if (code == AnzscoOccupations._133312)
+ return "133312";
+ if (code == AnzscoOccupations._133411)
+ return "133411";
+ if (code == AnzscoOccupations._133500)
+ return "133500";
+ if (code == AnzscoOccupations._133511)
+ return "133511";
+ if (code == AnzscoOccupations._133512)
+ return "133512";
+ if (code == AnzscoOccupations._133513)
+ return "133513";
+ if (code == AnzscoOccupations._133611)
+ return "133611";
+ if (code == AnzscoOccupations._134000)
+ return "134000";
+ if (code == AnzscoOccupations._134111)
+ return "134111";
+ if (code == AnzscoOccupations._134200)
+ return "134200";
+ if (code == AnzscoOccupations._134211)
+ return "134211";
+ if (code == AnzscoOccupations._134212)
+ return "134212";
+ if (code == AnzscoOccupations._134213)
+ return "134213";
+ if (code == AnzscoOccupations._134214)
+ return "134214";
+ if (code == AnzscoOccupations._134299)
+ return "134299";
+ if (code == AnzscoOccupations._134311)
+ return "134311";
+ if (code == AnzscoOccupations._134400)
+ return "134400";
+ if (code == AnzscoOccupations._134411)
+ return "134411";
+ if (code == AnzscoOccupations._134412)
+ return "134412";
+ if (code == AnzscoOccupations._134499)
+ return "134499";
+ if (code == AnzscoOccupations._135100)
+ return "135100";
+ if (code == AnzscoOccupations._135111)
+ return "135111";
+ if (code == AnzscoOccupations._135112)
+ return "135112";
+ if (code == AnzscoOccupations._135199)
+ return "135199";
+ if (code == AnzscoOccupations._139000)
+ return "139000";
+ if (code == AnzscoOccupations._139100)
+ return "139100";
+ if (code == AnzscoOccupations._139111)
+ return "139111";
+ if (code == AnzscoOccupations._139112)
+ return "139112";
+ if (code == AnzscoOccupations._139113)
+ return "139113";
+ if (code == AnzscoOccupations._139211)
+ return "139211";
+ if (code == AnzscoOccupations._139900)
+ return "139900";
+ if (code == AnzscoOccupations._139911)
+ return "139911";
+ if (code == AnzscoOccupations._139912)
+ return "139912";
+ if (code == AnzscoOccupations._139913)
+ return "139913";
+ if (code == AnzscoOccupations._139914)
+ return "139914";
+ if (code == AnzscoOccupations._139915)
+ return "139915";
+ if (code == AnzscoOccupations._139999)
+ return "139999";
+ if (code == AnzscoOccupations._140000)
+ return "140000";
+ if (code == AnzscoOccupations._141000)
+ return "141000";
+ if (code == AnzscoOccupations._141111)
+ return "141111";
+ if (code == AnzscoOccupations._141211)
+ return "141211";
+ if (code == AnzscoOccupations._141311)
+ return "141311";
+ if (code == AnzscoOccupations._141411)
+ return "141411";
+ if (code == AnzscoOccupations._141900)
+ return "141900";
+ if (code == AnzscoOccupations._141911)
+ return "141911";
+ if (code == AnzscoOccupations._141999)
+ return "141999";
+ if (code == AnzscoOccupations._142100)
+ return "142100";
+ if (code == AnzscoOccupations._142111)
+ return "142111";
+ if (code == AnzscoOccupations._142112)
+ return "142112";
+ if (code == AnzscoOccupations._142113)
+ return "142113";
+ if (code == AnzscoOccupations._142114)
+ return "142114";
+ if (code == AnzscoOccupations._142115)
+ return "142115";
+ if (code == AnzscoOccupations._142116)
+ return "142116";
+ if (code == AnzscoOccupations._149000)
+ return "149000";
+ if (code == AnzscoOccupations._149100)
+ return "149100";
+ if (code == AnzscoOccupations._149111)
+ return "149111";
+ if (code == AnzscoOccupations._149112)
+ return "149112";
+ if (code == AnzscoOccupations._149113)
+ return "149113";
+ if (code == AnzscoOccupations._149200)
+ return "149200";
+ if (code == AnzscoOccupations._149211)
+ return "149211";
+ if (code == AnzscoOccupations._149212)
+ return "149212";
+ if (code == AnzscoOccupations._149311)
+ return "149311";
+ if (code == AnzscoOccupations._149400)
+ return "149400";
+ if (code == AnzscoOccupations._149411)
+ return "149411";
+ if (code == AnzscoOccupations._149412)
+ return "149412";
+ if (code == AnzscoOccupations._149413)
+ return "149413";
+ if (code == AnzscoOccupations._149900)
+ return "149900";
+ if (code == AnzscoOccupations._149911)
+ return "149911";
+ if (code == AnzscoOccupations._149912)
+ return "149912";
+ if (code == AnzscoOccupations._149913)
+ return "149913";
+ if (code == AnzscoOccupations._149914)
+ return "149914";
+ if (code == AnzscoOccupations._149999)
+ return "149999";
+ if (code == AnzscoOccupations._200000)
+ return "200000";
+ if (code == AnzscoOccupations._210000)
+ return "210000";
+ if (code == AnzscoOccupations._211000)
+ return "211000";
+ if (code == AnzscoOccupations._211100)
+ return "211100";
+ if (code == AnzscoOccupations._211111)
+ return "211111";
+ if (code == AnzscoOccupations._211112)
+ return "211112";
+ if (code == AnzscoOccupations._211113)
+ return "211113";
+ if (code == AnzscoOccupations._211199)
+ return "211199";
+ if (code == AnzscoOccupations._211200)
+ return "211200";
+ if (code == AnzscoOccupations._211211)
+ return "211211";
+ if (code == AnzscoOccupations._211212)
+ return "211212";
+ if (code == AnzscoOccupations._211213)
+ return "211213";
+ if (code == AnzscoOccupations._211214)
+ return "211214";
+ if (code == AnzscoOccupations._211299)
+ return "211299";
+ if (code == AnzscoOccupations._211311)
+ return "211311";
+ if (code == AnzscoOccupations._211400)
+ return "211400";
+ if (code == AnzscoOccupations._211411)
+ return "211411";
+ if (code == AnzscoOccupations._211412)
+ return "211412";
+ if (code == AnzscoOccupations._211413)
+ return "211413";
+ if (code == AnzscoOccupations._211499)
+ return "211499";
+ if (code == AnzscoOccupations._212000)
+ return "212000";
+ if (code == AnzscoOccupations._212100)
+ return "212100";
+ if (code == AnzscoOccupations._212111)
+ return "212111";
+ if (code == AnzscoOccupations._212112)
+ return "212112";
+ if (code == AnzscoOccupations._212113)
+ return "212113";
+ if (code == AnzscoOccupations._212114)
+ return "212114";
+ if (code == AnzscoOccupations._212200)
+ return "212200";
+ if (code == AnzscoOccupations._212211)
+ return "212211";
+ if (code == AnzscoOccupations._212212)
+ return "212212";
+ if (code == AnzscoOccupations._212300)
+ return "212300";
+ if (code == AnzscoOccupations._212311)
+ return "212311";
+ if (code == AnzscoOccupations._212312)
+ return "212312";
+ if (code == AnzscoOccupations._212313)
+ return "212313";
+ if (code == AnzscoOccupations._212314)
+ return "212314";
+ if (code == AnzscoOccupations._212315)
+ return "212315";
+ if (code == AnzscoOccupations._212316)
+ return "212316";
+ if (code == AnzscoOccupations._212317)
+ return "212317";
+ if (code == AnzscoOccupations._212318)
+ return "212318";
+ if (code == AnzscoOccupations._212399)
+ return "212399";
+ if (code == AnzscoOccupations._212400)
+ return "212400";
+ if (code == AnzscoOccupations._212411)
+ return "212411";
+ if (code == AnzscoOccupations._212412)
+ return "212412";
+ if (code == AnzscoOccupations._212413)
+ return "212413";
+ if (code == AnzscoOccupations._212414)
+ return "212414";
+ if (code == AnzscoOccupations._212415)
+ return "212415";
+ if (code == AnzscoOccupations._212416)
+ return "212416";
+ if (code == AnzscoOccupations._212499)
+ return "212499";
+ if (code == AnzscoOccupations._220000)
+ return "220000";
+ if (code == AnzscoOccupations._221000)
+ return "221000";
+ if (code == AnzscoOccupations._221100)
+ return "221100";
+ if (code == AnzscoOccupations._221111)
+ return "221111";
+ if (code == AnzscoOccupations._221112)
+ return "221112";
+ if (code == AnzscoOccupations._221113)
+ return "221113";
+ if (code == AnzscoOccupations._221200)
+ return "221200";
+ if (code == AnzscoOccupations._221211)
+ return "221211";
+ if (code == AnzscoOccupations._221212)
+ return "221212";
+ if (code == AnzscoOccupations._221213)
+ return "221213";
+ if (code == AnzscoOccupations._221214)
+ return "221214";
+ if (code == AnzscoOccupations._222000)
+ return "222000";
+ if (code == AnzscoOccupations._222100)
+ return "222100";
+ if (code == AnzscoOccupations._222111)
+ return "222111";
+ if (code == AnzscoOccupations._222112)
+ return "222112";
+ if (code == AnzscoOccupations._222113)
+ return "222113";
+ if (code == AnzscoOccupations._222199)
+ return "222199";
+ if (code == AnzscoOccupations._222200)
+ return "222200";
+ if (code == AnzscoOccupations._222211)
+ return "222211";
+ if (code == AnzscoOccupations._222212)
+ return "222212";
+ if (code == AnzscoOccupations._222213)
+ return "222213";
+ if (code == AnzscoOccupations._222299)
+ return "222299";
+ if (code == AnzscoOccupations._222300)
+ return "222300";
+ if (code == AnzscoOccupations._222311)
+ return "222311";
+ if (code == AnzscoOccupations._222312)
+ return "222312";
+ if (code == AnzscoOccupations._223000)
+ return "223000";
+ if (code == AnzscoOccupations._223100)
+ return "223100";
+ if (code == AnzscoOccupations._223111)
+ return "223111";
+ if (code == AnzscoOccupations._223112)
+ return "223112";
+ if (code == AnzscoOccupations._223113)
+ return "223113";
+ if (code == AnzscoOccupations._223211)
+ return "223211";
+ if (code == AnzscoOccupations._223311)
+ return "223311";
+ if (code == AnzscoOccupations._224000)
+ return "224000";
+ if (code == AnzscoOccupations._224100)
+ return "224100";
+ if (code == AnzscoOccupations._224111)
+ return "224111";
+ if (code == AnzscoOccupations._224112)
+ return "224112";
+ if (code == AnzscoOccupations._224113)
+ return "224113";
+ if (code == AnzscoOccupations._224200)
+ return "224200";
+ if (code == AnzscoOccupations._224211)
+ return "224211";
+ if (code == AnzscoOccupations._224212)
+ return "224212";
+ if (code == AnzscoOccupations._224213)
+ return "224213";
+ if (code == AnzscoOccupations._224214)
+ return "224214";
+ if (code == AnzscoOccupations._224311)
+ return "224311";
+ if (code == AnzscoOccupations._224400)
+ return "224400";
+ if (code == AnzscoOccupations._224411)
+ return "224411";
+ if (code == AnzscoOccupations._224412)
+ return "224412";
+ if (code == AnzscoOccupations._224500)
+ return "224500";
+ if (code == AnzscoOccupations._224511)
+ return "224511";
+ if (code == AnzscoOccupations._224512)
+ return "224512";
+ if (code == AnzscoOccupations._224611)
+ return "224611";
+ if (code == AnzscoOccupations._224700)
+ return "224700";
+ if (code == AnzscoOccupations._224711)
+ return "224711";
+ if (code == AnzscoOccupations._224712)
+ return "224712";
+ if (code == AnzscoOccupations._224900)
+ return "224900";
+ if (code == AnzscoOccupations._224911)
+ return "224911";
+ if (code == AnzscoOccupations._224912)
+ return "224912";
+ if (code == AnzscoOccupations._224913)
+ return "224913";
+ if (code == AnzscoOccupations._224914)
+ return "224914";
+ if (code == AnzscoOccupations._224999)
+ return "224999";
+ if (code == AnzscoOccupations._225000)
+ return "225000";
+ if (code == AnzscoOccupations._225100)
+ return "225100";
+ if (code == AnzscoOccupations._225111)
+ return "225111";
+ if (code == AnzscoOccupations._225112)
+ return "225112";
+ if (code == AnzscoOccupations._225113)
+ return "225113";
+ if (code == AnzscoOccupations._225200)
+ return "225200";
+ if (code == AnzscoOccupations._225211)
+ return "225211";
+ if (code == AnzscoOccupations._225212)
+ return "225212";
+ if (code == AnzscoOccupations._225213)
+ return "225213";
+ if (code == AnzscoOccupations._225311)
+ return "225311";
+ if (code == AnzscoOccupations._225400)
+ return "225400";
+ if (code == AnzscoOccupations._225411)
+ return "225411";
+ if (code == AnzscoOccupations._225412)
+ return "225412";
+ if (code == AnzscoOccupations._225499)
+ return "225499";
+ if (code == AnzscoOccupations._230000)
+ return "230000";
+ if (code == AnzscoOccupations._231000)
+ return "231000";
+ if (code == AnzscoOccupations._231100)
+ return "231100";
+ if (code == AnzscoOccupations._231111)
+ return "231111";
+ if (code == AnzscoOccupations._231112)
+ return "231112";
+ if (code == AnzscoOccupations._231113)
+ return "231113";
+ if (code == AnzscoOccupations._231114)
+ return "231114";
+ if (code == AnzscoOccupations._231199)
+ return "231199";
+ if (code == AnzscoOccupations._231200)
+ return "231200";
+ if (code == AnzscoOccupations._231211)
+ return "231211";
+ if (code == AnzscoOccupations._231212)
+ return "231212";
+ if (code == AnzscoOccupations._231213)
+ return "231213";
+ if (code == AnzscoOccupations._231214)
+ return "231214";
+ if (code == AnzscoOccupations._231215)
+ return "231215";
+ if (code == AnzscoOccupations._231299)
+ return "231299";
+ if (code == AnzscoOccupations._232000)
+ return "232000";
+ if (code == AnzscoOccupations._232100)
+ return "232100";
+ if (code == AnzscoOccupations._232111)
+ return "232111";
+ if (code == AnzscoOccupations._232112)
+ return "232112";
+ if (code == AnzscoOccupations._232200)
+ return "232200";
+ if (code == AnzscoOccupations._232211)
+ return "232211";
+ if (code == AnzscoOccupations._232212)
+ return "232212";
+ if (code == AnzscoOccupations._232300)
+ return "232300";
+ if (code == AnzscoOccupations._232311)
+ return "232311";
+ if (code == AnzscoOccupations._232312)
+ return "232312";
+ if (code == AnzscoOccupations._232313)
+ return "232313";
+ if (code == AnzscoOccupations._232400)
+ return "232400";
+ if (code == AnzscoOccupations._232411)
+ return "232411";
+ if (code == AnzscoOccupations._232412)
+ return "232412";
+ if (code == AnzscoOccupations._232413)
+ return "232413";
+ if (code == AnzscoOccupations._232414)
+ return "232414";
+ if (code == AnzscoOccupations._232511)
+ return "232511";
+ if (code == AnzscoOccupations._232611)
+ return "232611";
+ if (code == AnzscoOccupations._233000)
+ return "233000";
+ if (code == AnzscoOccupations._233100)
+ return "233100";
+ if (code == AnzscoOccupations._233111)
+ return "233111";
+ if (code == AnzscoOccupations._233112)
+ return "233112";
+ if (code == AnzscoOccupations._233200)
+ return "233200";
+ if (code == AnzscoOccupations._233211)
+ return "233211";
+ if (code == AnzscoOccupations._233212)
+ return "233212";
+ if (code == AnzscoOccupations._233213)
+ return "233213";
+ if (code == AnzscoOccupations._233214)
+ return "233214";
+ if (code == AnzscoOccupations._233215)
+ return "233215";
+ if (code == AnzscoOccupations._233311)
+ return "233311";
+ if (code == AnzscoOccupations._233411)
+ return "233411";
+ if (code == AnzscoOccupations._233500)
+ return "233500";
+ if (code == AnzscoOccupations._233511)
+ return "233511";
+ if (code == AnzscoOccupations._233512)
+ return "233512";
+ if (code == AnzscoOccupations._233513)
+ return "233513";
+ if (code == AnzscoOccupations._233600)
+ return "233600";
+ if (code == AnzscoOccupations._233611)
+ return "233611";
+ if (code == AnzscoOccupations._233612)
+ return "233612";
+ if (code == AnzscoOccupations._233900)
+ return "233900";
+ if (code == AnzscoOccupations._233911)
+ return "233911";
+ if (code == AnzscoOccupations._233912)
+ return "233912";
+ if (code == AnzscoOccupations._233913)
+ return "233913";
+ if (code == AnzscoOccupations._233914)
+ return "233914";
+ if (code == AnzscoOccupations._233915)
+ return "233915";
+ if (code == AnzscoOccupations._233916)
+ return "233916";
+ if (code == AnzscoOccupations._233999)
+ return "233999";
+ if (code == AnzscoOccupations._234000)
+ return "234000";
+ if (code == AnzscoOccupations._234100)
+ return "234100";
+ if (code == AnzscoOccupations._234111)
+ return "234111";
+ if (code == AnzscoOccupations._234112)
+ return "234112";
+ if (code == AnzscoOccupations._234113)
+ return "234113";
+ if (code == AnzscoOccupations._234200)
+ return "234200";
+ if (code == AnzscoOccupations._234211)
+ return "234211";
+ if (code == AnzscoOccupations._234212)
+ return "234212";
+ if (code == AnzscoOccupations._234213)
+ return "234213";
+ if (code == AnzscoOccupations._234300)
+ return "234300";
+ if (code == AnzscoOccupations._234311)
+ return "234311";
+ if (code == AnzscoOccupations._234312)
+ return "234312";
+ if (code == AnzscoOccupations._234313)
+ return "234313";
+ if (code == AnzscoOccupations._234314)
+ return "234314";
+ if (code == AnzscoOccupations._234399)
+ return "234399";
+ if (code == AnzscoOccupations._234400)
+ return "234400";
+ if (code == AnzscoOccupations._234411)
+ return "234411";
+ if (code == AnzscoOccupations._234412)
+ return "234412";
+ if (code == AnzscoOccupations._234500)
+ return "234500";
+ if (code == AnzscoOccupations._234511)
+ return "234511";
+ if (code == AnzscoOccupations._234512)
+ return "234512";
+ if (code == AnzscoOccupations._234513)
+ return "234513";
+ if (code == AnzscoOccupations._234514)
+ return "234514";
+ if (code == AnzscoOccupations._234515)
+ return "234515";
+ if (code == AnzscoOccupations._234516)
+ return "234516";
+ if (code == AnzscoOccupations._234517)
+ return "234517";
+ if (code == AnzscoOccupations._234518)
+ return "234518";
+ if (code == AnzscoOccupations._234599)
+ return "234599";
+ if (code == AnzscoOccupations._234611)
+ return "234611";
+ if (code == AnzscoOccupations._234711)
+ return "234711";
+ if (code == AnzscoOccupations._234900)
+ return "234900";
+ if (code == AnzscoOccupations._234911)
+ return "234911";
+ if (code == AnzscoOccupations._234912)
+ return "234912";
+ if (code == AnzscoOccupations._234913)
+ return "234913";
+ if (code == AnzscoOccupations._234914)
+ return "234914";
+ if (code == AnzscoOccupations._234999)
+ return "234999";
+ if (code == AnzscoOccupations._240000)
+ return "240000";
+ if (code == AnzscoOccupations._241000)
+ return "241000";
+ if (code == AnzscoOccupations._241111)
+ return "241111";
+ if (code == AnzscoOccupations._241213)
+ return "241213";
+ if (code == AnzscoOccupations._241311)
+ return "241311";
+ if (code == AnzscoOccupations._241411)
+ return "241411";
+ if (code == AnzscoOccupations._241500)
+ return "241500";
+ if (code == AnzscoOccupations._241511)
+ return "241511";
+ if (code == AnzscoOccupations._241512)
+ return "241512";
+ if (code == AnzscoOccupations._241513)
+ return "241513";
+ if (code == AnzscoOccupations._241599)
+ return "241599";
+ if (code == AnzscoOccupations._242000)
+ return "242000";
+ if (code == AnzscoOccupations._242100)
+ return "242100";
+ if (code == AnzscoOccupations._242111)
+ return "242111";
+ if (code == AnzscoOccupations._242112)
+ return "242112";
+ if (code == AnzscoOccupations._242211)
+ return "242211";
+ if (code == AnzscoOccupations._249000)
+ return "249000";
+ if (code == AnzscoOccupations._249100)
+ return "249100";
+ if (code == AnzscoOccupations._249111)
+ return "249111";
+ if (code == AnzscoOccupations._249112)
+ return "249112";
+ if (code == AnzscoOccupations._249200)
+ return "249200";
+ if (code == AnzscoOccupations._249211)
+ return "249211";
+ if (code == AnzscoOccupations._249212)
+ return "249212";
+ if (code == AnzscoOccupations._249213)
+ return "249213";
+ if (code == AnzscoOccupations._249214)
+ return "249214";
+ if (code == AnzscoOccupations._249299)
+ return "249299";
+ if (code == AnzscoOccupations._249311)
+ return "249311";
+ if (code == AnzscoOccupations._250000)
+ return "250000";
+ if (code == AnzscoOccupations._251000)
+ return "251000";
+ if (code == AnzscoOccupations._251111)
+ return "251111";
+ if (code == AnzscoOccupations._251200)
+ return "251200";
+ if (code == AnzscoOccupations._251211)
+ return "251211";
+ if (code == AnzscoOccupations._251212)
+ return "251212";
+ if (code == AnzscoOccupations._251213)
+ return "251213";
+ if (code == AnzscoOccupations._251214)
+ return "251214";
+ if (code == AnzscoOccupations._251300)
+ return "251300";
+ if (code == AnzscoOccupations._251311)
+ return "251311";
+ if (code == AnzscoOccupations._251312)
+ return "251312";
+ if (code == AnzscoOccupations._251400)
+ return "251400";
+ if (code == AnzscoOccupations._251411)
+ return "251411";
+ if (code == AnzscoOccupations._251412)
+ return "251412";
+ if (code == AnzscoOccupations._251500)
+ return "251500";
+ if (code == AnzscoOccupations._251511)
+ return "251511";
+ if (code == AnzscoOccupations._251512)
+ return "251512";
+ if (code == AnzscoOccupations._251513)
+ return "251513";
+ if (code == AnzscoOccupations._251900)
+ return "251900";
+ if (code == AnzscoOccupations._251911)
+ return "251911";
+ if (code == AnzscoOccupations._251912)
+ return "251912";
+ if (code == AnzscoOccupations._251999)
+ return "251999";
+ if (code == AnzscoOccupations._252000)
+ return "252000";
+ if (code == AnzscoOccupations._252100)
+ return "252100";
+ if (code == AnzscoOccupations._252111)
+ return "252111";
+ if (code == AnzscoOccupations._252112)
+ return "252112";
+ if (code == AnzscoOccupations._252200)
+ return "252200";
+ if (code == AnzscoOccupations._252211)
+ return "252211";
+ if (code == AnzscoOccupations._252212)
+ return "252212";
+ if (code == AnzscoOccupations._252213)
+ return "252213";
+ if (code == AnzscoOccupations._252214)
+ return "252214";
+ if (code == AnzscoOccupations._252299)
+ return "252299";
+ if (code == AnzscoOccupations._252300)
+ return "252300";
+ if (code == AnzscoOccupations._252311)
+ return "252311";
+ if (code == AnzscoOccupations._252312)
+ return "252312";
+ if (code == AnzscoOccupations._252411)
+ return "252411";
+ if (code == AnzscoOccupations._252511)
+ return "252511";
+ if (code == AnzscoOccupations._252611)
+ return "252611";
+ if (code == AnzscoOccupations._252700)
+ return "252700";
+ if (code == AnzscoOccupations._252711)
+ return "252711";
+ if (code == AnzscoOccupations._252712)
+ return "252712";
+ if (code == AnzscoOccupations._253000)
+ return "253000";
+ if (code == AnzscoOccupations._253100)
+ return "253100";
+ if (code == AnzscoOccupations._253111)
+ return "253111";
+ if (code == AnzscoOccupations._253112)
+ return "253112";
+ if (code == AnzscoOccupations._253211)
+ return "253211";
+ if (code == AnzscoOccupations._253300)
+ return "253300";
+ if (code == AnzscoOccupations._253311)
+ return "253311";
+ if (code == AnzscoOccupations._253312)
+ return "253312";
+ if (code == AnzscoOccupations._253313)
+ return "253313";
+ if (code == AnzscoOccupations._253314)
+ return "253314";
+ if (code == AnzscoOccupations._253315)
+ return "253315";
+ if (code == AnzscoOccupations._253316)
+ return "253316";
+ if (code == AnzscoOccupations._253317)
+ return "253317";
+ if (code == AnzscoOccupations._253318)
+ return "253318";
+ if (code == AnzscoOccupations._253321)
+ return "253321";
+ if (code == AnzscoOccupations._253322)
+ return "253322";
+ if (code == AnzscoOccupations._253323)
+ return "253323";
+ if (code == AnzscoOccupations._253324)
+ return "253324";
+ if (code == AnzscoOccupations._253399)
+ return "253399";
+ if (code == AnzscoOccupations._253411)
+ return "253411";
+ if (code == AnzscoOccupations._253500)
+ return "253500";
+ if (code == AnzscoOccupations._253511)
+ return "253511";
+ if (code == AnzscoOccupations._253512)
+ return "253512";
+ if (code == AnzscoOccupations._253513)
+ return "253513";
+ if (code == AnzscoOccupations._253514)
+ return "253514";
+ if (code == AnzscoOccupations._253515)
+ return "253515";
+ if (code == AnzscoOccupations._253516)
+ return "253516";
+ if (code == AnzscoOccupations._253517)
+ return "253517";
+ if (code == AnzscoOccupations._253518)
+ return "253518";
+ if (code == AnzscoOccupations._253521)
+ return "253521";
+ if (code == AnzscoOccupations._253900)
+ return "253900";
+ if (code == AnzscoOccupations._253911)
+ return "253911";
+ if (code == AnzscoOccupations._253912)
+ return "253912";
+ if (code == AnzscoOccupations._253913)
+ return "253913";
+ if (code == AnzscoOccupations._253914)
+ return "253914";
+ if (code == AnzscoOccupations._253915)
+ return "253915";
+ if (code == AnzscoOccupations._253916)
+ return "253916";
+ if (code == AnzscoOccupations._253999)
+ return "253999";
+ if (code == AnzscoOccupations._254000)
+ return "254000";
+ if (code == AnzscoOccupations._254111)
+ return "254111";
+ if (code == AnzscoOccupations._254200)
+ return "254200";
+ if (code == AnzscoOccupations._254211)
+ return "254211";
+ if (code == AnzscoOccupations._254212)
+ return "254212";
+ if (code == AnzscoOccupations._254311)
+ return "254311";
+ if (code == AnzscoOccupations._254400)
+ return "254400";
+ if (code == AnzscoOccupations._254411)
+ return "254411";
+ if (code == AnzscoOccupations._254412)
+ return "254412";
+ if (code == AnzscoOccupations._254413)
+ return "254413";
+ if (code == AnzscoOccupations._254414)
+ return "254414";
+ if (code == AnzscoOccupations._254415)
+ return "254415";
+ if (code == AnzscoOccupations._254416)
+ return "254416";
+ if (code == AnzscoOccupations._254417)
+ return "254417";
+ if (code == AnzscoOccupations._254418)
+ return "254418";
+ if (code == AnzscoOccupations._254421)
+ return "254421";
+ if (code == AnzscoOccupations._254422)
+ return "254422";
+ if (code == AnzscoOccupations._254423)
+ return "254423";
+ if (code == AnzscoOccupations._254424)
+ return "254424";
+ if (code == AnzscoOccupations._254499)
+ return "254499";
+ if (code == AnzscoOccupations._260000)
+ return "260000";
+ if (code == AnzscoOccupations._261000)
+ return "261000";
+ if (code == AnzscoOccupations._261100)
+ return "261100";
+ if (code == AnzscoOccupations._261111)
+ return "261111";
+ if (code == AnzscoOccupations._261112)
+ return "261112";
+ if (code == AnzscoOccupations._261200)
+ return "261200";
+ if (code == AnzscoOccupations._261211)
+ return "261211";
+ if (code == AnzscoOccupations._261212)
+ return "261212";
+ if (code == AnzscoOccupations._261300)
+ return "261300";
+ if (code == AnzscoOccupations._261311)
+ return "261311";
+ if (code == AnzscoOccupations._261312)
+ return "261312";
+ if (code == AnzscoOccupations._261313)
+ return "261313";
+ if (code == AnzscoOccupations._261399)
+ return "261399";
+ if (code == AnzscoOccupations._262100)
+ return "262100";
+ if (code == AnzscoOccupations._262111)
+ return "262111";
+ if (code == AnzscoOccupations._262112)
+ return "262112";
+ if (code == AnzscoOccupations._262113)
+ return "262113";
+ if (code == AnzscoOccupations._263000)
+ return "263000";
+ if (code == AnzscoOccupations._263100)
+ return "263100";
+ if (code == AnzscoOccupations._263111)
+ return "263111";
+ if (code == AnzscoOccupations._263112)
+ return "263112";
+ if (code == AnzscoOccupations._263113)
+ return "263113";
+ if (code == AnzscoOccupations._263200)
+ return "263200";
+ if (code == AnzscoOccupations._263211)
+ return "263211";
+ if (code == AnzscoOccupations._263212)
+ return "263212";
+ if (code == AnzscoOccupations._263213)
+ return "263213";
+ if (code == AnzscoOccupations._263299)
+ return "263299";
+ if (code == AnzscoOccupations._263300)
+ return "263300";
+ if (code == AnzscoOccupations._263311)
+ return "263311";
+ if (code == AnzscoOccupations._263312)
+ return "263312";
+ if (code == AnzscoOccupations._270000)
+ return "270000";
+ if (code == AnzscoOccupations._271000)
+ return "271000";
+ if (code == AnzscoOccupations._271111)
+ return "271111";
+ if (code == AnzscoOccupations._271200)
+ return "271200";
+ if (code == AnzscoOccupations._271211)
+ return "271211";
+ if (code == AnzscoOccupations._271212)
+ return "271212";
+ if (code == AnzscoOccupations._271213)
+ return "271213";
+ if (code == AnzscoOccupations._271299)
+ return "271299";
+ if (code == AnzscoOccupations._271311)
+ return "271311";
+ if (code == AnzscoOccupations._272000)
+ return "272000";
+ if (code == AnzscoOccupations._272100)
+ return "272100";
+ if (code == AnzscoOccupations._272111)
+ return "272111";
+ if (code == AnzscoOccupations._272112)
+ return "272112";
+ if (code == AnzscoOccupations._272113)
+ return "272113";
+ if (code == AnzscoOccupations._272114)
+ return "272114";
+ if (code == AnzscoOccupations._272115)
+ return "272115";
+ if (code == AnzscoOccupations._272199)
+ return "272199";
+ if (code == AnzscoOccupations._272211)
+ return "272211";
+ if (code == AnzscoOccupations._272300)
+ return "272300";
+ if (code == AnzscoOccupations._272311)
+ return "272311";
+ if (code == AnzscoOccupations._272312)
+ return "272312";
+ if (code == AnzscoOccupations._272313)
+ return "272313";
+ if (code == AnzscoOccupations._272314)
+ return "272314";
+ if (code == AnzscoOccupations._272399)
+ return "272399";
+ if (code == AnzscoOccupations._272400)
+ return "272400";
+ if (code == AnzscoOccupations._272411)
+ return "272411";
+ if (code == AnzscoOccupations._272412)
+ return "272412";
+ if (code == AnzscoOccupations._272413)
+ return "272413";
+ if (code == AnzscoOccupations._272499)
+ return "272499";
+ if (code == AnzscoOccupations._272511)
+ return "272511";
+ if (code == AnzscoOccupations._272600)
+ return "272600";
+ if (code == AnzscoOccupations._272611)
+ return "272611";
+ if (code == AnzscoOccupations._272612)
+ return "272612";
+ if (code == AnzscoOccupations._272613)
+ return "272613";
+ if (code == AnzscoOccupations._300000)
+ return "300000";
+ if (code == AnzscoOccupations._310000)
+ return "310000";
+ if (code == AnzscoOccupations._311000)
+ return "311000";
+ if (code == AnzscoOccupations._311111)
+ return "311111";
+ if (code == AnzscoOccupations._311200)
+ return "311200";
+ if (code == AnzscoOccupations._311211)
+ return "311211";
+ if (code == AnzscoOccupations._311212)
+ return "311212";
+ if (code == AnzscoOccupations._311213)
+ return "311213";
+ if (code == AnzscoOccupations._311214)
+ return "311214";
+ if (code == AnzscoOccupations._311215)
+ return "311215";
+ if (code == AnzscoOccupations._311299)
+ return "311299";
+ if (code == AnzscoOccupations._311300)
+ return "311300";
+ if (code == AnzscoOccupations._311311)
+ return "311311";
+ if (code == AnzscoOccupations._311312)
+ return "311312";
+ if (code == AnzscoOccupations._311313)
+ return "311313";
+ if (code == AnzscoOccupations._311399)
+ return "311399";
+ if (code == AnzscoOccupations._311400)
+ return "311400";
+ if (code == AnzscoOccupations._311411)
+ return "311411";
+ if (code == AnzscoOccupations._311412)
+ return "311412";
+ if (code == AnzscoOccupations._311413)
+ return "311413";
+ if (code == AnzscoOccupations._311414)
+ return "311414";
+ if (code == AnzscoOccupations._311499)
+ return "311499";
+ if (code == AnzscoOccupations._312000)
+ return "312000";
+ if (code == AnzscoOccupations._312100)
+ return "312100";
+ if (code == AnzscoOccupations._312111)
+ return "312111";
+ if (code == AnzscoOccupations._312112)
+ return "312112";
+ if (code == AnzscoOccupations._312113)
+ return "312113";
+ if (code == AnzscoOccupations._312114)
+ return "312114";
+ if (code == AnzscoOccupations._312115)
+ return "312115";
+ if (code == AnzscoOccupations._312116)
+ return "312116";
+ if (code == AnzscoOccupations._312200)
+ return "312200";
+ if (code == AnzscoOccupations._312211)
+ return "312211";
+ if (code == AnzscoOccupations._312212)
+ return "312212";
+ if (code == AnzscoOccupations._312300)
+ return "312300";
+ if (code == AnzscoOccupations._312311)
+ return "312311";
+ if (code == AnzscoOccupations._312312)
+ return "312312";
+ if (code == AnzscoOccupations._312400)
+ return "312400";
+ if (code == AnzscoOccupations._312411)
+ return "312411";
+ if (code == AnzscoOccupations._312412)
+ return "312412";
+ if (code == AnzscoOccupations._312500)
+ return "312500";
+ if (code == AnzscoOccupations._312511)
+ return "312511";
+ if (code == AnzscoOccupations._312512)
+ return "312512";
+ if (code == AnzscoOccupations._312611)
+ return "312611";
+ if (code == AnzscoOccupations._312900)
+ return "312900";
+ if (code == AnzscoOccupations._312911)
+ return "312911";
+ if (code == AnzscoOccupations._312912)
+ return "312912";
+ if (code == AnzscoOccupations._312913)
+ return "312913";
+ if (code == AnzscoOccupations._312999)
+ return "312999";
+ if (code == AnzscoOccupations._313000)
+ return "313000";
+ if (code == AnzscoOccupations._313100)
+ return "313100";
+ if (code == AnzscoOccupations._313111)
+ return "313111";
+ if (code == AnzscoOccupations._313112)
+ return "313112";
+ if (code == AnzscoOccupations._313113)
+ return "313113";
+ if (code == AnzscoOccupations._313199)
+ return "313199";
+ if (code == AnzscoOccupations._313200)
+ return "313200";
+ if (code == AnzscoOccupations._313211)
+ return "313211";
+ if (code == AnzscoOccupations._313212)
+ return "313212";
+ if (code == AnzscoOccupations._313213)
+ return "313213";
+ if (code == AnzscoOccupations._313214)
+ return "313214";
+ if (code == AnzscoOccupations._320000)
+ return "320000";
+ if (code == AnzscoOccupations._321000)
+ return "321000";
+ if (code == AnzscoOccupations._321111)
+ return "321111";
+ if (code == AnzscoOccupations._321200)
+ return "321200";
+ if (code == AnzscoOccupations._321211)
+ return "321211";
+ if (code == AnzscoOccupations._321212)
+ return "321212";
+ if (code == AnzscoOccupations._321213)
+ return "321213";
+ if (code == AnzscoOccupations._321214)
+ return "321214";
+ if (code == AnzscoOccupations._322000)
+ return "322000";
+ if (code == AnzscoOccupations._322100)
+ return "322100";
+ if (code == AnzscoOccupations._322111)
+ return "322111";
+ if (code == AnzscoOccupations._322112)
+ return "322112";
+ if (code == AnzscoOccupations._322113)
+ return "322113";
+ if (code == AnzscoOccupations._322114)
+ return "322114";
+ if (code == AnzscoOccupations._322115)
+ return "322115";
+ if (code == AnzscoOccupations._322211)
+ return "322211";
+ if (code == AnzscoOccupations._322300)
+ return "322300";
+ if (code == AnzscoOccupations._322311)
+ return "322311";
+ if (code == AnzscoOccupations._322312)
+ return "322312";
+ if (code == AnzscoOccupations._322313)
+ return "322313";
+ if (code == AnzscoOccupations._323000)
+ return "323000";
+ if (code == AnzscoOccupations._323100)
+ return "323100";
+ if (code == AnzscoOccupations._323111)
+ return "323111";
+ if (code == AnzscoOccupations._323112)
+ return "323112";
+ if (code == AnzscoOccupations._323113)
+ return "323113";
+ if (code == AnzscoOccupations._323200)
+ return "323200";
+ if (code == AnzscoOccupations._323211)
+ return "323211";
+ if (code == AnzscoOccupations._323212)
+ return "323212";
+ if (code == AnzscoOccupations._323213)
+ return "323213";
+ if (code == AnzscoOccupations._323214)
+ return "323214";
+ if (code == AnzscoOccupations._323215)
+ return "323215";
+ if (code == AnzscoOccupations._323299)
+ return "323299";
+ if (code == AnzscoOccupations._323300)
+ return "323300";
+ if (code == AnzscoOccupations._323311)
+ return "323311";
+ if (code == AnzscoOccupations._323312)
+ return "323312";
+ if (code == AnzscoOccupations._323313)
+ return "323313";
+ if (code == AnzscoOccupations._323314)
+ return "323314";
+ if (code == AnzscoOccupations._323315)
+ return "323315";
+ if (code == AnzscoOccupations._323316)
+ return "323316";
+ if (code == AnzscoOccupations._323400)
+ return "323400";
+ if (code == AnzscoOccupations._323411)
+ return "323411";
+ if (code == AnzscoOccupations._323412)
+ return "323412";
+ if (code == AnzscoOccupations._324000)
+ return "324000";
+ if (code == AnzscoOccupations._324111)
+ return "324111";
+ if (code == AnzscoOccupations._324200)
+ return "324200";
+ if (code == AnzscoOccupations._324211)
+ return "324211";
+ if (code == AnzscoOccupations._324212)
+ return "324212";
+ if (code == AnzscoOccupations._324311)
+ return "324311";
+ if (code == AnzscoOccupations._330000)
+ return "330000";
+ if (code == AnzscoOccupations._331000)
+ return "331000";
+ if (code == AnzscoOccupations._331100)
+ return "331100";
+ if (code == AnzscoOccupations._331111)
+ return "331111";
+ if (code == AnzscoOccupations._331112)
+ return "331112";
+ if (code == AnzscoOccupations._331211)
+ return "331211";
+ if (code == AnzscoOccupations._331212)
+ return "331212";
+ if (code == AnzscoOccupations._331213)
+ return "331213";
+ if (code == AnzscoOccupations._332000)
+ return "332000";
+ if (code == AnzscoOccupations._332111)
+ return "332111";
+ if (code == AnzscoOccupations._332211)
+ return "332211";
+ if (code == AnzscoOccupations._333000)
+ return "333000";
+ if (code == AnzscoOccupations._333111)
+ return "333111";
+ if (code == AnzscoOccupations._333200)
+ return "333200";
+ if (code == AnzscoOccupations._333211)
+ return "333211";
+ if (code == AnzscoOccupations._333212)
+ return "333212";
+ if (code == AnzscoOccupations._333311)
+ return "333311";
+ if (code == AnzscoOccupations._333411)
+ return "333411";
+ if (code == AnzscoOccupations._334100)
+ return "334100";
+ if (code == AnzscoOccupations._334111)
+ return "334111";
+ if (code == AnzscoOccupations._334112)
+ return "334112";
+ if (code == AnzscoOccupations._334113)
+ return "334113";
+ if (code == AnzscoOccupations._334114)
+ return "334114";
+ if (code == AnzscoOccupations._334115)
+ return "334115";
+ if (code == AnzscoOccupations._340000)
+ return "340000";
+ if (code == AnzscoOccupations._341100)
+ return "341100";
+ if (code == AnzscoOccupations._341111)
+ return "341111";
+ if (code == AnzscoOccupations._341112)
+ return "341112";
+ if (code == AnzscoOccupations._341113)
+ return "341113";
+ if (code == AnzscoOccupations._342000)
+ return "342000";
+ if (code == AnzscoOccupations._342111)
+ return "342111";
+ if (code == AnzscoOccupations._342200)
+ return "342200";
+ if (code == AnzscoOccupations._342211)
+ return "342211";
+ if (code == AnzscoOccupations._342212)
+ return "342212";
+ if (code == AnzscoOccupations._342300)
+ return "342300";
+ if (code == AnzscoOccupations._342311)
+ return "342311";
+ if (code == AnzscoOccupations._342312)
+ return "342312";
+ if (code == AnzscoOccupations._342313)
+ return "342313";
+ if (code == AnzscoOccupations._342314)
+ return "342314";
+ if (code == AnzscoOccupations._342315)
+ return "342315";
+ if (code == AnzscoOccupations._342400)
+ return "342400";
+ if (code == AnzscoOccupations._342411)
+ return "342411";
+ if (code == AnzscoOccupations._342412)
+ return "342412";
+ if (code == AnzscoOccupations._342413)
+ return "342413";
+ if (code == AnzscoOccupations._342414)
+ return "342414";
+ if (code == AnzscoOccupations._351000)
+ return "351000";
+ if (code == AnzscoOccupations._351100)
+ return "351100";
+ if (code == AnzscoOccupations._351111)
+ return "351111";
+ if (code == AnzscoOccupations._351112)
+ return "351112";
+ if (code == AnzscoOccupations._351211)
+ return "351211";
+ if (code == AnzscoOccupations._351311)
+ return "351311";
+ if (code == AnzscoOccupations._351411)
+ return "351411";
+ if (code == AnzscoOccupations._360000)
+ return "360000";
+ if (code == AnzscoOccupations._361000)
+ return "361000";
+ if (code == AnzscoOccupations._361100)
+ return "361100";
+ if (code == AnzscoOccupations._361111)
+ return "361111";
+ if (code == AnzscoOccupations._361112)
+ return "361112";
+ if (code == AnzscoOccupations._361113)
+ return "361113";
+ if (code == AnzscoOccupations._361114)
+ return "361114";
+ if (code == AnzscoOccupations._361199)
+ return "361199";
+ if (code == AnzscoOccupations._361211)
+ return "361211";
+ if (code == AnzscoOccupations._361311)
+ return "361311";
+ if (code == AnzscoOccupations._362000)
+ return "362000";
+ if (code == AnzscoOccupations._362111)
+ return "362111";
+ if (code == AnzscoOccupations._362200)
+ return "362200";
+ if (code == AnzscoOccupations._362211)
+ return "362211";
+ if (code == AnzscoOccupations._362212)
+ return "362212";
+ if (code == AnzscoOccupations._362213)
+ return "362213";
+ if (code == AnzscoOccupations._362311)
+ return "362311";
+ if (code == AnzscoOccupations._362411)
+ return "362411";
+ if (code == AnzscoOccupations._390000)
+ return "390000";
+ if (code == AnzscoOccupations._391111)
+ return "391111";
+ if (code == AnzscoOccupations._392000)
+ return "392000";
+ if (code == AnzscoOccupations._392100)
+ return "392100";
+ if (code == AnzscoOccupations._392111)
+ return "392111";
+ if (code == AnzscoOccupations._392112)
+ return "392112";
+ if (code == AnzscoOccupations._392211)
+ return "392211";
+ if (code == AnzscoOccupations._392300)
+ return "392300";
+ if (code == AnzscoOccupations._392311)
+ return "392311";
+ if (code == AnzscoOccupations._392312)
+ return "392312";
+ if (code == AnzscoOccupations._393000)
+ return "393000";
+ if (code == AnzscoOccupations._393100)
+ return "393100";
+ if (code == AnzscoOccupations._393111)
+ return "393111";
+ if (code == AnzscoOccupations._393112)
+ return "393112";
+ if (code == AnzscoOccupations._393113)
+ return "393113";
+ if (code == AnzscoOccupations._393114)
+ return "393114";
+ if (code == AnzscoOccupations._393200)
+ return "393200";
+ if (code == AnzscoOccupations._393211)
+ return "393211";
+ if (code == AnzscoOccupations._393212)
+ return "393212";
+ if (code == AnzscoOccupations._393213)
+ return "393213";
+ if (code == AnzscoOccupations._393299)
+ return "393299";
+ if (code == AnzscoOccupations._393311)
+ return "393311";
+ if (code == AnzscoOccupations._394000)
+ return "394000";
+ if (code == AnzscoOccupations._394111)
+ return "394111";
+ if (code == AnzscoOccupations._394200)
+ return "394200";
+ if (code == AnzscoOccupations._394211)
+ return "394211";
+ if (code == AnzscoOccupations._394212)
+ return "394212";
+ if (code == AnzscoOccupations._394213)
+ return "394213";
+ if (code == AnzscoOccupations._394214)
+ return "394214";
+ if (code == AnzscoOccupations._394299)
+ return "394299";
+ if (code == AnzscoOccupations._399000)
+ return "399000";
+ if (code == AnzscoOccupations._399100)
+ return "399100";
+ if (code == AnzscoOccupations._399111)
+ return "399111";
+ if (code == AnzscoOccupations._399112)
+ return "399112";
+ if (code == AnzscoOccupations._399200)
+ return "399200";
+ if (code == AnzscoOccupations._399211)
+ return "399211";
+ if (code == AnzscoOccupations._399212)
+ return "399212";
+ if (code == AnzscoOccupations._399213)
+ return "399213";
+ if (code == AnzscoOccupations._399300)
+ return "399300";
+ if (code == AnzscoOccupations._399311)
+ return "399311";
+ if (code == AnzscoOccupations._399312)
+ return "399312";
+ if (code == AnzscoOccupations._399411)
+ return "399411";
+ if (code == AnzscoOccupations._399500)
+ return "399500";
+ if (code == AnzscoOccupations._399511)
+ return "399511";
+ if (code == AnzscoOccupations._399512)
+ return "399512";
+ if (code == AnzscoOccupations._399513)
+ return "399513";
+ if (code == AnzscoOccupations._399514)
+ return "399514";
+ if (code == AnzscoOccupations._399515)
+ return "399515";
+ if (code == AnzscoOccupations._399516)
+ return "399516";
+ if (code == AnzscoOccupations._399517)
+ return "399517";
+ if (code == AnzscoOccupations._399599)
+ return "399599";
+ if (code == AnzscoOccupations._399611)
+ return "399611";
+ if (code == AnzscoOccupations._399900)
+ return "399900";
+ if (code == AnzscoOccupations._399911)
+ return "399911";
+ if (code == AnzscoOccupations._399912)
+ return "399912";
+ if (code == AnzscoOccupations._399913)
+ return "399913";
+ if (code == AnzscoOccupations._399914)
+ return "399914";
+ if (code == AnzscoOccupations._399915)
+ return "399915";
+ if (code == AnzscoOccupations._399916)
+ return "399916";
+ if (code == AnzscoOccupations._399917)
+ return "399917";
+ if (code == AnzscoOccupations._399999)
+ return "399999";
+ if (code == AnzscoOccupations._400000)
+ return "400000";
+ if (code == AnzscoOccupations._411000)
+ return "411000";
+ if (code == AnzscoOccupations._411100)
+ return "411100";
+ if (code == AnzscoOccupations._411111)
+ return "411111";
+ if (code == AnzscoOccupations._411112)
+ return "411112";
+ if (code == AnzscoOccupations._411200)
+ return "411200";
+ if (code == AnzscoOccupations._411211)
+ return "411211";
+ if (code == AnzscoOccupations._411212)
+ return "411212";
+ if (code == AnzscoOccupations._411213)
+ return "411213";
+ if (code == AnzscoOccupations._411214)
+ return "411214";
+ if (code == AnzscoOccupations._411311)
+ return "411311";
+ if (code == AnzscoOccupations._411400)
+ return "411400";
+ if (code == AnzscoOccupations._411411)
+ return "411411";
+ if (code == AnzscoOccupations._411412)
+ return "411412";
+ if (code == AnzscoOccupations._411511)
+ return "411511";
+ if (code == AnzscoOccupations._411611)
+ return "411611";
+ if (code == AnzscoOccupations._411700)
+ return "411700";
+ if (code == AnzscoOccupations._411711)
+ return "411711";
+ if (code == AnzscoOccupations._411712)
+ return "411712";
+ if (code == AnzscoOccupations._411713)
+ return "411713";
+ if (code == AnzscoOccupations._411714)
+ return "411714";
+ if (code == AnzscoOccupations._411715)
+ return "411715";
+ if (code == AnzscoOccupations._411716)
+ return "411716";
+ if (code == AnzscoOccupations._420000)
+ return "420000";
+ if (code == AnzscoOccupations._421100)
+ return "421100";
+ if (code == AnzscoOccupations._421111)
+ return "421111";
+ if (code == AnzscoOccupations._421112)
+ return "421112";
+ if (code == AnzscoOccupations._421113)
+ return "421113";
+ if (code == AnzscoOccupations._421114)
+ return "421114";
+ if (code == AnzscoOccupations._422100)
+ return "422100";
+ if (code == AnzscoOccupations._422111)
+ return "422111";
+ if (code == AnzscoOccupations._422112)
+ return "422112";
+ if (code == AnzscoOccupations._422115)
+ return "422115";
+ if (code == AnzscoOccupations._422116)
+ return "422116";
+ if (code == AnzscoOccupations._423000)
+ return "423000";
+ if (code == AnzscoOccupations._423111)
+ return "423111";
+ if (code == AnzscoOccupations._423211)
+ return "423211";
+ if (code == AnzscoOccupations._423300)
+ return "423300";
+ if (code == AnzscoOccupations._423311)
+ return "423311";
+ if (code == AnzscoOccupations._423312)
+ return "423312";
+ if (code == AnzscoOccupations._423313)
+ return "423313";
+ if (code == AnzscoOccupations._423314)
+ return "423314";
+ if (code == AnzscoOccupations._423400)
+ return "423400";
+ if (code == AnzscoOccupations._423411)
+ return "423411";
+ if (code == AnzscoOccupations._423412)
+ return "423412";
+ if (code == AnzscoOccupations._423413)
+ return "423413";
+ if (code == AnzscoOccupations._431000)
+ return "431000";
+ if (code == AnzscoOccupations._431100)
+ return "431100";
+ if (code == AnzscoOccupations._431111)
+ return "431111";
+ if (code == AnzscoOccupations._431112)
+ return "431112";
+ if (code == AnzscoOccupations._431211)
+ return "431211";
+ if (code == AnzscoOccupations._431311)
+ return "431311";
+ if (code == AnzscoOccupations._431411)
+ return "431411";
+ if (code == AnzscoOccupations._431511)
+ return "431511";
+ if (code == AnzscoOccupations._431900)
+ return "431900";
+ if (code == AnzscoOccupations._431911)
+ return "431911";
+ if (code == AnzscoOccupations._431912)
+ return "431912";
+ if (code == AnzscoOccupations._431999)
+ return "431999";
+ if (code == AnzscoOccupations._440000)
+ return "440000";
+ if (code == AnzscoOccupations._441000)
+ return "441000";
+ if (code == AnzscoOccupations._441111)
+ return "441111";
+ if (code == AnzscoOccupations._441200)
+ return "441200";
+ if (code == AnzscoOccupations._441211)
+ return "441211";
+ if (code == AnzscoOccupations._441212)
+ return "441212";
+ if (code == AnzscoOccupations._441300)
+ return "441300";
+ if (code == AnzscoOccupations._441311)
+ return "441311";
+ if (code == AnzscoOccupations._441312)
+ return "441312";
+ if (code == AnzscoOccupations._442000)
+ return "442000";
+ if (code == AnzscoOccupations._442111)
+ return "442111";
+ if (code == AnzscoOccupations._442200)
+ return "442200";
+ if (code == AnzscoOccupations._442211)
+ return "442211";
+ if (code == AnzscoOccupations._442212)
+ return "442212";
+ if (code == AnzscoOccupations._442213)
+ return "442213";
+ if (code == AnzscoOccupations._442214)
+ return "442214";
+ if (code == AnzscoOccupations._442215)
+ return "442215";
+ if (code == AnzscoOccupations._442216)
+ return "442216";
+ if (code == AnzscoOccupations._442217)
+ return "442217";
+ if (code == AnzscoOccupations._442299)
+ return "442299";
+ if (code == AnzscoOccupations._450000)
+ return "450000";
+ if (code == AnzscoOccupations._451000)
+ return "451000";
+ if (code == AnzscoOccupations._451111)
+ return "451111";
+ if (code == AnzscoOccupations._451211)
+ return "451211";
+ if (code == AnzscoOccupations._451300)
+ return "451300";
+ if (code == AnzscoOccupations._451311)
+ return "451311";
+ if (code == AnzscoOccupations._451399)
+ return "451399";
+ if (code == AnzscoOccupations._451400)
+ return "451400";
+ if (code == AnzscoOccupations._451411)
+ return "451411";
+ if (code == AnzscoOccupations._451412)
+ return "451412";
+ if (code == AnzscoOccupations._451500)
+ return "451500";
+ if (code == AnzscoOccupations._451511)
+ return "451511";
+ if (code == AnzscoOccupations._451512)
+ return "451512";
+ if (code == AnzscoOccupations._451600)
+ return "451600";
+ if (code == AnzscoOccupations._451611)
+ return "451611";
+ if (code == AnzscoOccupations._451612)
+ return "451612";
+ if (code == AnzscoOccupations._451700)
+ return "451700";
+ if (code == AnzscoOccupations._451711)
+ return "451711";
+ if (code == AnzscoOccupations._451799)
+ return "451799";
+ if (code == AnzscoOccupations._451800)
+ return "451800";
+ if (code == AnzscoOccupations._451811)
+ return "451811";
+ if (code == AnzscoOccupations._451812)
+ return "451812";
+ if (code == AnzscoOccupations._451813)
+ return "451813";
+ if (code == AnzscoOccupations._451899)
+ return "451899";
+ if (code == AnzscoOccupations._452000)
+ return "452000";
+ if (code == AnzscoOccupations._452111)
+ return "452111";
+ if (code == AnzscoOccupations._452200)
+ return "452200";
+ if (code == AnzscoOccupations._452211)
+ return "452211";
+ if (code == AnzscoOccupations._452212)
+ return "452212";
+ if (code == AnzscoOccupations._452213)
+ return "452213";
+ if (code == AnzscoOccupations._452214)
+ return "452214";
+ if (code == AnzscoOccupations._452215)
+ return "452215";
+ if (code == AnzscoOccupations._452216)
+ return "452216";
+ if (code == AnzscoOccupations._452217)
+ return "452217";
+ if (code == AnzscoOccupations._452299)
+ return "452299";
+ if (code == AnzscoOccupations._452300)
+ return "452300";
+ if (code == AnzscoOccupations._452311)
+ return "452311";
+ if (code == AnzscoOccupations._452312)
+ return "452312";
+ if (code == AnzscoOccupations._452313)
+ return "452313";
+ if (code == AnzscoOccupations._452314)
+ return "452314";
+ if (code == AnzscoOccupations._452315)
+ return "452315";
+ if (code == AnzscoOccupations._452316)
+ return "452316";
+ if (code == AnzscoOccupations._452317)
+ return "452317";
+ if (code == AnzscoOccupations._452318)
+ return "452318";
+ if (code == AnzscoOccupations._452321)
+ return "452321";
+ if (code == AnzscoOccupations._452322)
+ return "452322";
+ if (code == AnzscoOccupations._452323)
+ return "452323";
+ if (code == AnzscoOccupations._452400)
+ return "452400";
+ if (code == AnzscoOccupations._452411)
+ return "452411";
+ if (code == AnzscoOccupations._452412)
+ return "452412";
+ if (code == AnzscoOccupations._452413)
+ return "452413";
+ if (code == AnzscoOccupations._452414)
+ return "452414";
+ if (code == AnzscoOccupations._452499)
+ return "452499";
+ if (code == AnzscoOccupations._500000)
+ return "500000";
+ if (code == AnzscoOccupations._510000)
+ return "510000";
+ if (code == AnzscoOccupations._511100)
+ return "511100";
+ if (code == AnzscoOccupations._511111)
+ return "511111";
+ if (code == AnzscoOccupations._511112)
+ return "511112";
+ if (code == AnzscoOccupations._512000)
+ return "512000";
+ if (code == AnzscoOccupations._512111)
+ return "512111";
+ if (code == AnzscoOccupations._512200)
+ return "512200";
+ if (code == AnzscoOccupations._512211)
+ return "512211";
+ if (code == AnzscoOccupations._512299)
+ return "512299";
+ if (code == AnzscoOccupations._521000)
+ return "521000";
+ if (code == AnzscoOccupations._521111)
+ return "521111";
+ if (code == AnzscoOccupations._521200)
+ return "521200";
+ if (code == AnzscoOccupations._521211)
+ return "521211";
+ if (code == AnzscoOccupations._521212)
+ return "521212";
+ if (code == AnzscoOccupations._530000)
+ return "530000";
+ if (code == AnzscoOccupations._531111)
+ return "531111";
+ if (code == AnzscoOccupations._532100)
+ return "532100";
+ if (code == AnzscoOccupations._532111)
+ return "532111";
+ if (code == AnzscoOccupations._532112)
+ return "532112";
+ if (code == AnzscoOccupations._532113)
+ return "532113";
+ if (code == AnzscoOccupations._540000)
+ return "540000";
+ if (code == AnzscoOccupations._541000)
+ return "541000";
+ if (code == AnzscoOccupations._541100)
+ return "541100";
+ if (code == AnzscoOccupations._541111)
+ return "541111";
+ if (code == AnzscoOccupations._541112)
+ return "541112";
+ if (code == AnzscoOccupations._541211)
+ return "541211";
+ if (code == AnzscoOccupations._542100)
+ return "542100";
+ if (code == AnzscoOccupations._542111)
+ return "542111";
+ if (code == AnzscoOccupations._542112)
+ return "542112";
+ if (code == AnzscoOccupations._542113)
+ return "542113";
+ if (code == AnzscoOccupations._542114)
+ return "542114";
+ if (code == AnzscoOccupations._550000)
+ return "550000";
+ if (code == AnzscoOccupations._551000)
+ return "551000";
+ if (code == AnzscoOccupations._551100)
+ return "551100";
+ if (code == AnzscoOccupations._551111)
+ return "551111";
+ if (code == AnzscoOccupations._551112)
+ return "551112";
+ if (code == AnzscoOccupations._551211)
+ return "551211";
+ if (code == AnzscoOccupations._551311)
+ return "551311";
+ if (code == AnzscoOccupations._552000)
+ return "552000";
+ if (code == AnzscoOccupations._552111)
+ return "552111";
+ if (code == AnzscoOccupations._552211)
+ return "552211";
+ if (code == AnzscoOccupations._552300)
+ return "552300";
+ if (code == AnzscoOccupations._552311)
+ return "552311";
+ if (code == AnzscoOccupations._552312)
+ return "552312";
+ if (code == AnzscoOccupations._552313)
+ return "552313";
+ if (code == AnzscoOccupations._552314)
+ return "552314";
+ if (code == AnzscoOccupations._561000)
+ return "561000";
+ if (code == AnzscoOccupations._561100)
+ return "561100";
+ if (code == AnzscoOccupations._561111)
+ return "561111";
+ if (code == AnzscoOccupations._561112)
+ return "561112";
+ if (code == AnzscoOccupations._561113)
+ return "561113";
+ if (code == AnzscoOccupations._561199)
+ return "561199";
+ if (code == AnzscoOccupations._561200)
+ return "561200";
+ if (code == AnzscoOccupations._561211)
+ return "561211";
+ if (code == AnzscoOccupations._561212)
+ return "561212";
+ if (code == AnzscoOccupations._561311)
+ return "561311";
+ if (code == AnzscoOccupations._561400)
+ return "561400";
+ if (code == AnzscoOccupations._561411)
+ return "561411";
+ if (code == AnzscoOccupations._561412)
+ return "561412";
+ if (code == AnzscoOccupations._561511)
+ return "561511";
+ if (code == AnzscoOccupations._561611)
+ return "561611";
+ if (code == AnzscoOccupations._561900)
+ return "561900";
+ if (code == AnzscoOccupations._561911)
+ return "561911";
+ if (code == AnzscoOccupations._561912)
+ return "561912";
+ if (code == AnzscoOccupations._561913)
+ return "561913";
+ if (code == AnzscoOccupations._561999)
+ return "561999";
+ if (code == AnzscoOccupations._590000)
+ return "590000";
+ if (code == AnzscoOccupations._591000)
+ return "591000";
+ if (code == AnzscoOccupations._591100)
+ return "591100";
+ if (code == AnzscoOccupations._591111)
+ return "591111";
+ if (code == AnzscoOccupations._591112)
+ return "591112";
+ if (code == AnzscoOccupations._591113)
+ return "591113";
+ if (code == AnzscoOccupations._591114)
+ return "591114";
+ if (code == AnzscoOccupations._591115)
+ return "591115";
+ if (code == AnzscoOccupations._591116)
+ return "591116";
+ if (code == AnzscoOccupations._591200)
+ return "591200";
+ if (code == AnzscoOccupations._591211)
+ return "591211";
+ if (code == AnzscoOccupations._591212)
+ return "591212";
+ if (code == AnzscoOccupations._599000)
+ return "599000";
+ if (code == AnzscoOccupations._599100)
+ return "599100";
+ if (code == AnzscoOccupations._599111)
+ return "599111";
+ if (code == AnzscoOccupations._599112)
+ return "599112";
+ if (code == AnzscoOccupations._599200)
+ return "599200";
+ if (code == AnzscoOccupations._599211)
+ return "599211";
+ if (code == AnzscoOccupations._599212)
+ return "599212";
+ if (code == AnzscoOccupations._599213)
+ return "599213";
+ if (code == AnzscoOccupations._599214)
+ return "599214";
+ if (code == AnzscoOccupations._599215)
+ return "599215";
+ if (code == AnzscoOccupations._599311)
+ return "599311";
+ if (code == AnzscoOccupations._599411)
+ return "599411";
+ if (code == AnzscoOccupations._599500)
+ return "599500";
+ if (code == AnzscoOccupations._599511)
+ return "599511";
+ if (code == AnzscoOccupations._599512)
+ return "599512";
+ if (code == AnzscoOccupations._599513)
+ return "599513";
+ if (code == AnzscoOccupations._599514)
+ return "599514";
+ if (code == AnzscoOccupations._599515)
+ return "599515";
+ if (code == AnzscoOccupations._599516)
+ return "599516";
+ if (code == AnzscoOccupations._599517)
+ return "599517";
+ if (code == AnzscoOccupations._599518)
+ return "599518";
+ if (code == AnzscoOccupations._599521)
+ return "599521";
+ if (code == AnzscoOccupations._599599)
+ return "599599";
+ if (code == AnzscoOccupations._599600)
+ return "599600";
+ if (code == AnzscoOccupations._599611)
+ return "599611";
+ if (code == AnzscoOccupations._599612)
+ return "599612";
+ if (code == AnzscoOccupations._599613)
+ return "599613";
+ if (code == AnzscoOccupations._599711)
+ return "599711";
+ if (code == AnzscoOccupations._599900)
+ return "599900";
+ if (code == AnzscoOccupations._599911)
+ return "599911";
+ if (code == AnzscoOccupations._599912)
+ return "599912";
+ if (code == AnzscoOccupations._599913)
+ return "599913";
+ if (code == AnzscoOccupations._599914)
+ return "599914";
+ if (code == AnzscoOccupations._599999)
+ return "599999";
+ if (code == AnzscoOccupations._600000)
+ return "600000";
+ if (code == AnzscoOccupations._610000)
+ return "610000";
+ if (code == AnzscoOccupations._611000)
+ return "611000";
+ if (code == AnzscoOccupations._611100)
+ return "611100";
+ if (code == AnzscoOccupations._611111)
+ return "611111";
+ if (code == AnzscoOccupations._611112)
+ return "611112";
+ if (code == AnzscoOccupations._611211)
+ return "611211";
+ if (code == AnzscoOccupations._611300)
+ return "611300";
+ if (code == AnzscoOccupations._611311)
+ return "611311";
+ if (code == AnzscoOccupations._611312)
+ return "611312";
+ if (code == AnzscoOccupations._611313)
+ return "611313";
+ if (code == AnzscoOccupations._611314)
+ return "611314";
+ if (code == AnzscoOccupations._611399)
+ return "611399";
+ if (code == AnzscoOccupations._612100)
+ return "612100";
+ if (code == AnzscoOccupations._612111)
+ return "612111";
+ if (code == AnzscoOccupations._612112)
+ return "612112";
+ if (code == AnzscoOccupations._612113)
+ return "612113";
+ if (code == AnzscoOccupations._612114)
+ return "612114";
+ if (code == AnzscoOccupations._612115)
+ return "612115";
+ if (code == AnzscoOccupations._621000)
+ return "621000";
+ if (code == AnzscoOccupations._621111)
+ return "621111";
+ if (code == AnzscoOccupations._621211)
+ return "621211";
+ if (code == AnzscoOccupations._621300)
+ return "621300";
+ if (code == AnzscoOccupations._621311)
+ return "621311";
+ if (code == AnzscoOccupations._621312)
+ return "621312";
+ if (code == AnzscoOccupations._621411)
+ return "621411";
+ if (code == AnzscoOccupations._621511)
+ return "621511";
+ if (code == AnzscoOccupations._621611)
+ return "621611";
+ if (code == AnzscoOccupations._621700)
+ return "621700";
+ if (code == AnzscoOccupations._621711)
+ return "621711";
+ if (code == AnzscoOccupations._621712)
+ return "621712";
+ if (code == AnzscoOccupations._621713)
+ return "621713";
+ if (code == AnzscoOccupations._621900)
+ return "621900";
+ if (code == AnzscoOccupations._621911)
+ return "621911";
+ if (code == AnzscoOccupations._621912)
+ return "621912";
+ if (code == AnzscoOccupations._621999)
+ return "621999";
+ if (code == AnzscoOccupations._630000)
+ return "630000";
+ if (code == AnzscoOccupations._631100)
+ return "631100";
+ if (code == AnzscoOccupations._631111)
+ return "631111";
+ if (code == AnzscoOccupations._631112)
+ return "631112";
+ if (code == AnzscoOccupations._639000)
+ return "639000";
+ if (code == AnzscoOccupations._639100)
+ return "639100";
+ if (code == AnzscoOccupations._639111)
+ return "639111";
+ if (code == AnzscoOccupations._639112)
+ return "639112";
+ if (code == AnzscoOccupations._639200)
+ return "639200";
+ if (code == AnzscoOccupations._639211)
+ return "639211";
+ if (code == AnzscoOccupations._639212)
+ return "639212";
+ if (code == AnzscoOccupations._639311)
+ return "639311";
+ if (code == AnzscoOccupations._639400)
+ return "639400";
+ if (code == AnzscoOccupations._639411)
+ return "639411";
+ if (code == AnzscoOccupations._639412)
+ return "639412";
+ if (code == AnzscoOccupations._639511)
+ return "639511";
+ if (code == AnzscoOccupations._639911)
+ return "639911";
+ if (code == AnzscoOccupations._700000)
+ return "700000";
+ if (code == AnzscoOccupations._710000)
+ return "710000";
+ if (code == AnzscoOccupations._711000)
+ return "711000";
+ if (code == AnzscoOccupations._711100)
+ return "711100";
+ if (code == AnzscoOccupations._711111)
+ return "711111";
+ if (code == AnzscoOccupations._711112)
+ return "711112";
+ if (code == AnzscoOccupations._711113)
+ return "711113";
+ if (code == AnzscoOccupations._711114)
+ return "711114";
+ if (code == AnzscoOccupations._711199)
+ return "711199";
+ if (code == AnzscoOccupations._711211)
+ return "711211";
+ if (code == AnzscoOccupations._711300)
+ return "711300";
+ if (code == AnzscoOccupations._711311)
+ return "711311";
+ if (code == AnzscoOccupations._711312)
+ return "711312";
+ if (code == AnzscoOccupations._711411)
+ return "711411";
+ if (code == AnzscoOccupations._711500)
+ return "711500";
+ if (code == AnzscoOccupations._711511)
+ return "711511";
+ if (code == AnzscoOccupations._711512)
+ return "711512";
+ if (code == AnzscoOccupations._711513)
+ return "711513";
+ if (code == AnzscoOccupations._711514)
+ return "711514";
+ if (code == AnzscoOccupations._711515)
+ return "711515";
+ if (code == AnzscoOccupations._711516)
+ return "711516";
+ if (code == AnzscoOccupations._711599)
+ return "711599";
+ if (code == AnzscoOccupations._711611)
+ return "711611";
+ if (code == AnzscoOccupations._711700)
+ return "711700";
+ if (code == AnzscoOccupations._711711)
+ return "711711";
+ if (code == AnzscoOccupations._711712)
+ return "711712";
+ if (code == AnzscoOccupations._711713)
+ return "711713";
+ if (code == AnzscoOccupations._711714)
+ return "711714";
+ if (code == AnzscoOccupations._711715)
+ return "711715";
+ if (code == AnzscoOccupations._711716)
+ return "711716";
+ if (code == AnzscoOccupations._711799)
+ return "711799";
+ if (code == AnzscoOccupations._711900)
+ return "711900";
+ if (code == AnzscoOccupations._711911)
+ return "711911";
+ if (code == AnzscoOccupations._711912)
+ return "711912";
+ if (code == AnzscoOccupations._711913)
+ return "711913";
+ if (code == AnzscoOccupations._711914)
+ return "711914";
+ if (code == AnzscoOccupations._711999)
+ return "711999";
+ if (code == AnzscoOccupations._712000)
+ return "712000";
+ if (code == AnzscoOccupations._712111)
+ return "712111";
+ if (code == AnzscoOccupations._712200)
+ return "712200";
+ if (code == AnzscoOccupations._712211)
+ return "712211";
+ if (code == AnzscoOccupations._712212)
+ return "712212";
+ if (code == AnzscoOccupations._712213)
+ return "712213";
+ if (code == AnzscoOccupations._712311)
+ return "712311";
+ if (code == AnzscoOccupations._712900)
+ return "712900";
+ if (code == AnzscoOccupations._712911)
+ return "712911";
+ if (code == AnzscoOccupations._712912)
+ return "712912";
+ if (code == AnzscoOccupations._712913)
+ return "712913";
+ if (code == AnzscoOccupations._712914)
+ return "712914";
+ if (code == AnzscoOccupations._712915)
+ return "712915";
+ if (code == AnzscoOccupations._712916)
+ return "712916";
+ if (code == AnzscoOccupations._712917)
+ return "712917";
+ if (code == AnzscoOccupations._712918)
+ return "712918";
+ if (code == AnzscoOccupations._712921)
+ return "712921";
+ if (code == AnzscoOccupations._712922)
+ return "712922";
+ if (code == AnzscoOccupations._712999)
+ return "712999";
+ if (code == AnzscoOccupations._721000)
+ return "721000";
+ if (code == AnzscoOccupations._721100)
+ return "721100";
+ if (code == AnzscoOccupations._721111)
+ return "721111";
+ if (code == AnzscoOccupations._721112)
+ return "721112";
+ if (code == AnzscoOccupations._721200)
+ return "721200";
+ if (code == AnzscoOccupations._721211)
+ return "721211";
+ if (code == AnzscoOccupations._721212)
+ return "721212";
+ if (code == AnzscoOccupations._721213)
+ return "721213";
+ if (code == AnzscoOccupations._721214)
+ return "721214";
+ if (code == AnzscoOccupations._721215)
+ return "721215";
+ if (code == AnzscoOccupations._721216)
+ return "721216";
+ if (code == AnzscoOccupations._721311)
+ return "721311";
+ if (code == AnzscoOccupations._721900)
+ return "721900";
+ if (code == AnzscoOccupations._721911)
+ return "721911";
+ if (code == AnzscoOccupations._721912)
+ return "721912";
+ if (code == AnzscoOccupations._721913)
+ return "721913";
+ if (code == AnzscoOccupations._721914)
+ return "721914";
+ if (code == AnzscoOccupations._721915)
+ return "721915";
+ if (code == AnzscoOccupations._721916)
+ return "721916";
+ if (code == AnzscoOccupations._721999)
+ return "721999";
+ if (code == AnzscoOccupations._730000)
+ return "730000";
+ if (code == AnzscoOccupations._731000)
+ return "731000";
+ if (code == AnzscoOccupations._731100)
+ return "731100";
+ if (code == AnzscoOccupations._731111)
+ return "731111";
+ if (code == AnzscoOccupations._731112)
+ return "731112";
+ if (code == AnzscoOccupations._731199)
+ return "731199";
+ if (code == AnzscoOccupations._731200)
+ return "731200";
+ if (code == AnzscoOccupations._731211)
+ return "731211";
+ if (code == AnzscoOccupations._731212)
+ return "731212";
+ if (code == AnzscoOccupations._731213)
+ return "731213";
+ if (code == AnzscoOccupations._731300)
+ return "731300";
+ if (code == AnzscoOccupations._731311)
+ return "731311";
+ if (code == AnzscoOccupations._731312)
+ return "731312";
+ if (code == AnzscoOccupations._732111)
+ return "732111";
+ if (code == AnzscoOccupations._733100)
+ return "733100";
+ if (code == AnzscoOccupations._733111)
+ return "733111";
+ if (code == AnzscoOccupations._733112)
+ return "733112";
+ if (code == AnzscoOccupations._733113)
+ return "733113";
+ if (code == AnzscoOccupations._733114)
+ return "733114";
+ if (code == AnzscoOccupations._733115)
+ return "733115";
+ if (code == AnzscoOccupations._741111)
+ return "741111";
+ if (code == AnzscoOccupations._800000)
+ return "800000";
+ if (code == AnzscoOccupations._811000)
+ return "811000";
+ if (code == AnzscoOccupations._811111)
+ return "811111";
+ if (code == AnzscoOccupations._811211)
+ return "811211";
+ if (code == AnzscoOccupations._811311)
+ return "811311";
+ if (code == AnzscoOccupations._811400)
+ return "811400";
+ if (code == AnzscoOccupations._811411)
+ return "811411";
+ if (code == AnzscoOccupations._811412)
+ return "811412";
+ if (code == AnzscoOccupations._811500)
+ return "811500";
+ if (code == AnzscoOccupations._811511)
+ return "811511";
+ if (code == AnzscoOccupations._811512)
+ return "811512";
+ if (code == AnzscoOccupations._811513)
+ return "811513";
+ if (code == AnzscoOccupations._811600)
+ return "811600";
+ if (code == AnzscoOccupations._811611)
+ return "811611";
+ if (code == AnzscoOccupations._811612)
+ return "811612";
+ if (code == AnzscoOccupations._811699)
+ return "811699";
+ if (code == AnzscoOccupations._821000)
+ return "821000";
+ if (code == AnzscoOccupations._821100)
+ return "821100";
+ if (code == AnzscoOccupations._821111)
+ return "821111";
+ if (code == AnzscoOccupations._821112)
+ return "821112";
+ if (code == AnzscoOccupations._821113)
+ return "821113";
+ if (code == AnzscoOccupations._821114)
+ return "821114";
+ if (code == AnzscoOccupations._821211)
+ return "821211";
+ if (code == AnzscoOccupations._821311)
+ return "821311";
+ if (code == AnzscoOccupations._821400)
+ return "821400";
+ if (code == AnzscoOccupations._821411)
+ return "821411";
+ if (code == AnzscoOccupations._821412)
+ return "821412";
+ if (code == AnzscoOccupations._821511)
+ return "821511";
+ if (code == AnzscoOccupations._821611)
+ return "821611";
+ if (code == AnzscoOccupations._821700)
+ return "821700";
+ if (code == AnzscoOccupations._821711)
+ return "821711";
+ if (code == AnzscoOccupations._821712)
+ return "821712";
+ if (code == AnzscoOccupations._821713)
+ return "821713";
+ if (code == AnzscoOccupations._821714)
+ return "821714";
+ if (code == AnzscoOccupations._821900)
+ return "821900";
+ if (code == AnzscoOccupations._821911)
+ return "821911";
+ if (code == AnzscoOccupations._821912)
+ return "821912";
+ if (code == AnzscoOccupations._821913)
+ return "821913";
+ if (code == AnzscoOccupations._821914)
+ return "821914";
+ if (code == AnzscoOccupations._821915)
+ return "821915";
+ if (code == AnzscoOccupations._830000)
+ return "830000";
+ if (code == AnzscoOccupations._831000)
+ return "831000";
+ if (code == AnzscoOccupations._831100)
+ return "831100";
+ if (code == AnzscoOccupations._831111)
+ return "831111";
+ if (code == AnzscoOccupations._831112)
+ return "831112";
+ if (code == AnzscoOccupations._831113)
+ return "831113";
+ if (code == AnzscoOccupations._831114)
+ return "831114";
+ if (code == AnzscoOccupations._831115)
+ return "831115";
+ if (code == AnzscoOccupations._831116)
+ return "831116";
+ if (code == AnzscoOccupations._831117)
+ return "831117";
+ if (code == AnzscoOccupations._831118)
+ return "831118";
+ if (code == AnzscoOccupations._831199)
+ return "831199";
+ if (code == AnzscoOccupations._831200)
+ return "831200";
+ if (code == AnzscoOccupations._831211)
+ return "831211";
+ if (code == AnzscoOccupations._831212)
+ return "831212";
+ if (code == AnzscoOccupations._831300)
+ return "831300";
+ if (code == AnzscoOccupations._831311)
+ return "831311";
+ if (code == AnzscoOccupations._831312)
+ return "831312";
+ if (code == AnzscoOccupations._831313)
+ return "831313";
+ if (code == AnzscoOccupations._832000)
+ return "832000";
+ if (code == AnzscoOccupations._832100)
+ return "832100";
+ if (code == AnzscoOccupations._832111)
+ return "832111";
+ if (code == AnzscoOccupations._832112)
+ return "832112";
+ if (code == AnzscoOccupations._832113)
+ return "832113";
+ if (code == AnzscoOccupations._832114)
+ return "832114";
+ if (code == AnzscoOccupations._832115)
+ return "832115";
+ if (code == AnzscoOccupations._832199)
+ return "832199";
+ if (code == AnzscoOccupations._832211)
+ return "832211";
+ if (code == AnzscoOccupations._839000)
+ return "839000";
+ if (code == AnzscoOccupations._839111)
+ return "839111";
+ if (code == AnzscoOccupations._839200)
+ return "839200";
+ if (code == AnzscoOccupations._839211)
+ return "839211";
+ if (code == AnzscoOccupations._839212)
+ return "839212";
+ if (code == AnzscoOccupations._839300)
+ return "839300";
+ if (code == AnzscoOccupations._839311)
+ return "839311";
+ if (code == AnzscoOccupations._839312)
+ return "839312";
+ if (code == AnzscoOccupations._839313)
+ return "839313";
+ if (code == AnzscoOccupations._839400)
+ return "839400";
+ if (code == AnzscoOccupations._839411)
+ return "839411";
+ if (code == AnzscoOccupations._839412)
+ return "839412";
+ if (code == AnzscoOccupations._839413)
+ return "839413";
+ if (code == AnzscoOccupations._839900)
+ return "839900";
+ if (code == AnzscoOccupations._839911)
+ return "839911";
+ if (code == AnzscoOccupations._839912)
+ return "839912";
+ if (code == AnzscoOccupations._839913)
+ return "839913";
+ if (code == AnzscoOccupations._839914)
+ return "839914";
+ if (code == AnzscoOccupations._839915)
+ return "839915";
+ if (code == AnzscoOccupations._839916)
+ return "839916";
+ if (code == AnzscoOccupations._839917)
+ return "839917";
+ if (code == AnzscoOccupations._839999)
+ return "839999";
+ if (code == AnzscoOccupations._841000)
+ return "841000";
+ if (code == AnzscoOccupations._841111)
+ return "841111";
+ if (code == AnzscoOccupations._841200)
+ return "841200";
+ if (code == AnzscoOccupations._841211)
+ return "841211";
+ if (code == AnzscoOccupations._841212)
+ return "841212";
+ if (code == AnzscoOccupations._841213)
+ return "841213";
+ if (code == AnzscoOccupations._841214)
+ return "841214";
+ if (code == AnzscoOccupations._841215)
+ return "841215";
+ if (code == AnzscoOccupations._841216)
+ return "841216";
+ if (code == AnzscoOccupations._841299)
+ return "841299";
+ if (code == AnzscoOccupations._841300)
+ return "841300";
+ if (code == AnzscoOccupations._841311)
+ return "841311";
+ if (code == AnzscoOccupations._841312)
+ return "841312";
+ if (code == AnzscoOccupations._841313)
+ return "841313";
+ if (code == AnzscoOccupations._841400)
+ return "841400";
+ if (code == AnzscoOccupations._841411)
+ return "841411";
+ if (code == AnzscoOccupations._841412)
+ return "841412";
+ if (code == AnzscoOccupations._841500)
+ return "841500";
+ if (code == AnzscoOccupations._841511)
+ return "841511";
+ if (code == AnzscoOccupations._841512)
+ return "841512";
+ if (code == AnzscoOccupations._841513)
+ return "841513";
+ if (code == AnzscoOccupations._841514)
+ return "841514";
+ if (code == AnzscoOccupations._841515)
+ return "841515";
+ if (code == AnzscoOccupations._841516)
+ return "841516";
+ if (code == AnzscoOccupations._841517)
+ return "841517";
+ if (code == AnzscoOccupations._841599)
+ return "841599";
+ if (code == AnzscoOccupations._841611)
+ return "841611";
+ if (code == AnzscoOccupations._841900)
+ return "841900";
+ if (code == AnzscoOccupations._841911)
+ return "841911";
+ if (code == AnzscoOccupations._841912)
+ return "841912";
+ if (code == AnzscoOccupations._841999)
+ return "841999";
+ if (code == AnzscoOccupations._851000)
+ return "851000";
+ if (code == AnzscoOccupations._851111)
+ return "851111";
+ if (code == AnzscoOccupations._851200)
+ return "851200";
+ if (code == AnzscoOccupations._851211)
+ return "851211";
+ if (code == AnzscoOccupations._851299)
+ return "851299";
+ if (code == AnzscoOccupations._851311)
+ return "851311";
+ if (code == AnzscoOccupations._890000)
+ return "890000";
+ if (code == AnzscoOccupations._891000)
+ return "891000";
+ if (code == AnzscoOccupations._891100)
+ return "891100";
+ if (code == AnzscoOccupations._891111)
+ return "891111";
+ if (code == AnzscoOccupations._891112)
+ return "891112";
+ if (code == AnzscoOccupations._891113)
+ return "891113";
+ if (code == AnzscoOccupations._891211)
+ return "891211";
+ if (code == AnzscoOccupations._899000)
+ return "899000";
+ if (code == AnzscoOccupations._899111)
+ return "899111";
+ if (code == AnzscoOccupations._899200)
+ return "899200";
+ if (code == AnzscoOccupations._899211)
+ return "899211";
+ if (code == AnzscoOccupations._899212)
+ return "899212";
+ if (code == AnzscoOccupations._899311)
+ return "899311";
+ if (code == AnzscoOccupations._899400)
+ return "899400";
+ if (code == AnzscoOccupations._899411)
+ return "899411";
+ if (code == AnzscoOccupations._899412)
+ return "899412";
+ if (code == AnzscoOccupations._899413)
+ return "899413";
+ if (code == AnzscoOccupations._899414)
+ return "899414";
+ if (code == AnzscoOccupations._899415)
+ return "899415";
+ if (code == AnzscoOccupations._899500)
+ return "899500";
+ if (code == AnzscoOccupations._899511)
+ return "899511";
+ if (code == AnzscoOccupations._899512)
+ return "899512";
+ if (code == AnzscoOccupations._899611)
+ return "899611";
+ if (code == AnzscoOccupations._899711)
+ return "899711";
+ if (code == AnzscoOccupations._899900)
+ return "899900";
+ if (code == AnzscoOccupations._899911)
+ return "899911";
+ if (code == AnzscoOccupations._899912)
+ return "899912";
+ if (code == AnzscoOccupations._899913)
+ return "899913";
+ if (code == AnzscoOccupations._899914)
+ return "899914";
+ if (code == AnzscoOccupations._899915)
+ return "899915";
+ if (code == AnzscoOccupations._899916)
+ return "899916";
+ if (code == AnzscoOccupations._899917)
+ return "899917";
+ if (code == AnzscoOccupations._899918)
+ return "899918";
+ if (code == AnzscoOccupations._899921)
+ return "899921";
+ if (code == AnzscoOccupations._899922)
+ return "899922";
+ if (code == AnzscoOccupations._899999)
+ return "899999";
+ return "?";
+ }
+
+
+}
+
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/valuesets/AuditSourceType.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/valuesets/AuditSourceType.java
new file mode 100644
index 00000000000..64a95e84821
--- /dev/null
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/valuesets/AuditSourceType.java
@@ -0,0 +1,148 @@
+package org.hl7.fhir.instance.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 Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
+
+
+public enum AuditSourceType {
+
+ /**
+ * End-user display device, diagnostic device
+ */
+ _1,
+ /**
+ * Data acquisition device or instrument
+ */
+ _2,
+ /**
+ * Web Server process or thread
+ */
+ _3,
+ /**
+ * Application Server process or thread
+ */
+ _4,
+ /**
+ * Database Server process or thread
+ */
+ _5,
+ /**
+ * Security server, e.g., a domain controller
+ */
+ _6,
+ /**
+ * ISO level 1-3 network component
+ */
+ _7,
+ /**
+ * ISO level 4-6 operating software
+ */
+ _8,
+ /**
+ * other kind of device (defined by DICOM, but some other code/system can be used)
+ */
+ _9,
+ /**
+ * added to help the parsers
+ */
+ NULL;
+ public static AuditSourceType fromCode(String codeString) throws Exception {
+ if (codeString == null || "".equals(codeString))
+ return null;
+ if ("1".equals(codeString))
+ return _1;
+ if ("2".equals(codeString))
+ return _2;
+ if ("3".equals(codeString))
+ return _3;
+ if ("4".equals(codeString))
+ return _4;
+ if ("5".equals(codeString))
+ return _5;
+ if ("6".equals(codeString))
+ return _6;
+ if ("7".equals(codeString))
+ return _7;
+ if ("8".equals(codeString))
+ return _8;
+ if ("9".equals(codeString))
+ return _9;
+ throw new Exception("Unknown AuditSourceType code '"+codeString+"'");
+ }
+ public String toCode() {
+ switch (this) {
+ case _1: return "1";
+ case _2: return "2";
+ case _3: return "3";
+ case _4: return "4";
+ case _5: return "5";
+ case _6: return "6";
+ case _7: return "7";
+ case _8: return "8";
+ case _9: return "9";
+ default: return "?";
+ }
+ }
+ public String getSystem() {
+ return "http://hl7.org/fhir/security-source-type";
+ }
+ public String getDefinition() {
+ switch (this) {
+ case _1: return "End-user display device, diagnostic device";
+ case _2: return "Data acquisition device or instrument";
+ case _3: return "Web Server process or thread";
+ case _4: return "Application Server process or thread";
+ case _5: return "Database Server process or thread";
+ case _6: return "Security server, e.g., a domain controller";
+ case _7: return "ISO level 1-3 network component";
+ case _8: return "ISO level 4-6 operating software";
+ case _9: return "other kind of device (defined by DICOM, but some other code/system can be used)";
+ default: return "?";
+ }
+ }
+ public String getDisplay() {
+ switch (this) {
+ case _1: return "User Device";
+ case _2: return "Data Interface";
+ case _3: return "Web Server";
+ case _4: return "Application Server";
+ case _5: return "Database Server";
+ case _6: return "Security Server";
+ case _7: return "Network Device";
+ case _8: return "Network Router";
+ case _9: return "Other";
+ default: return "?";
+ }
+ }
+
+
+}
+
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/valuesets/AuditSourceTypeEnumFactory.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/valuesets/AuditSourceTypeEnumFactory.java
new file mode 100644
index 00000000000..3f9c00dd348
--- /dev/null
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/valuesets/AuditSourceTypeEnumFactory.java
@@ -0,0 +1,87 @@
+package org.hl7.fhir.instance.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 Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
+
+
+import org.hl7.fhir.instance.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 "?";
+ }
+
+
+}
+
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/valuesets/BasicResourceType.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/valuesets/BasicResourceType.java
new file mode 100644
index 00000000000..ca2563c3394
--- /dev/null
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/valuesets/BasicResourceType.java
@@ -0,0 +1,229 @@
+package org.hl7.fhir.instance.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 Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
+
+
+public enum BasicResourceType {
+
+ /**
+ * An assertion of permission for an activity or set of activities to occur, possibly subject to particular limitations. E.g. surgical consent, information disclosure consent, etc.
+ */
+ CONSENT,
+ /**
+ * A request that care of a particular type be provided to a patient. Could involve the transfer of care, a consult, etc.
+ */
+ REFERRAL,
+ /**
+ * A bounded time-period when a particular set of resources (practioners, devices and/or locations) is available for the delivery of healthcare services. Used for scheduling.
+ */
+ SLOT,
+ /**
+ * An undesired reaction caused by exposure to some agent (e.g., a medication, immunization, food, or environmental agent).
+ */
+ ADVEVENT,
+ /**
+ * A request that a time be scheduled for a type of service for a specified patient, potentially subject to other constraints
+ */
+ APTMTREQ,
+ /**
+ * The transition of a patient or set of material from one location to another
+ */
+ TRANSFER,
+ /**
+ * The specification of a set of food and/or other nutritonal material to be delivered to a patient.
+ */
+ DIET,
+ /**
+ * An occurrence of a non-care-related event in the healthcare domain, such as approvals, reviews, etc.
+ */
+ ADMINACT,
+ /**
+ * Record of a situation where a subject was exposed to a substance. Usually of interest to public health.
+ */
+ EXPOSURE,
+ /**
+ * A formalized inquiry into the circumstances surrounding a particular unplanned event or potential event for the purposes of identifying possible causes and contributing factors for the event
+ */
+ INVESTIGATION,
+ /**
+ * A financial instrument used to track costs, charges or other amounts.
+ */
+ ACCOUNT,
+ /**
+ * A request for payment for goods and/or services. Includes the idea of a healthcare insurance claim.
+ */
+ INVOICE,
+ /**
+ * The determination of what will be paid against a particular invoice based on coverage, plan rules, etc.
+ */
+ ADJUDICAT,
+ /**
+ * A record of a transfer of funds between accounts and/or individuals
+ */
+ PAYMENT,
+ /**
+ * A request for a predication of the cost that would be paid under an insurance plan for a hypothetical claim for goods or services
+ */
+ PREDETREQ,
+ /**
+ * An adjudication of what would be paid under an insurance plan for a hypothetical claim for goods or services
+ */
+ PREDETERMINE,
+ /**
+ * An investigation to determine information about a particular therapy or product
+ */
+ STUDY,
+ /**
+ * A set of (possibly conditional) steps to be taken to achieve some aim. Includes study protocols, treatment protocols, emergency protocols, etc.
+ */
+ PROTOCOL,
+ /**
+ * added to help the parsers
+ */
+ NULL;
+ public static BasicResourceType fromCode(String codeString) throws Exception {
+ if (codeString == null || "".equals(codeString))
+ return null;
+ if ("CONSENT".equals(codeString))
+ return CONSENT;
+ if ("REFERRAL".equals(codeString))
+ return REFERRAL;
+ if ("SLOT".equals(codeString))
+ return SLOT;
+ if ("ADVEVENT".equals(codeString))
+ return ADVEVENT;
+ if ("APTMTREQ".equals(codeString))
+ return APTMTREQ;
+ if ("TRANSFER".equals(codeString))
+ return TRANSFER;
+ if ("DIET".equals(codeString))
+ return DIET;
+ if ("ADMINACT".equals(codeString))
+ return ADMINACT;
+ if ("EXPOSURE".equals(codeString))
+ return EXPOSURE;
+ if ("INVESTIGATION".equals(codeString))
+ return INVESTIGATION;
+ if ("ACCOUNT".equals(codeString))
+ return ACCOUNT;
+ if ("INVOICE".equals(codeString))
+ return INVOICE;
+ if ("ADJUDICAT".equals(codeString))
+ return ADJUDICAT;
+ if ("PAYMENT".equals(codeString))
+ return PAYMENT;
+ if ("PREDETREQ".equals(codeString))
+ return PREDETREQ;
+ if ("PREDETERMINE".equals(codeString))
+ return PREDETERMINE;
+ if ("STUDY".equals(codeString))
+ return STUDY;
+ if ("PROTOCOL".equals(codeString))
+ return PROTOCOL;
+ throw new Exception("Unknown BasicResourceType code '"+codeString+"'");
+ }
+ public String toCode() {
+ switch (this) {
+ case CONSENT: return "CONSENT";
+ case REFERRAL: return "REFERRAL";
+ case SLOT: return "SLOT";
+ case ADVEVENT: return "ADVEVENT";
+ case APTMTREQ: return "APTMTREQ";
+ case TRANSFER: return "TRANSFER";
+ case DIET: return "DIET";
+ case ADMINACT: return "ADMINACT";
+ case EXPOSURE: return "EXPOSURE";
+ case INVESTIGATION: return "INVESTIGATION";
+ case ACCOUNT: return "ACCOUNT";
+ case INVOICE: return "INVOICE";
+ case ADJUDICAT: return "ADJUDICAT";
+ case PAYMENT: return "PAYMENT";
+ case PREDETREQ: return "PREDETREQ";
+ case PREDETERMINE: return "PREDETERMINE";
+ case STUDY: return "STUDY";
+ case PROTOCOL: return "PROTOCOL";
+ default: return "?";
+ }
+ }
+ public String getSystem() {
+ return "http://hl7.org/fhir/basic-resource-type";
+ }
+ public String getDefinition() {
+ switch (this) {
+ case CONSENT: return "An assertion of permission for an activity or set of activities to occur, possibly subject to particular limitations. E.g. surgical consent, information disclosure consent, etc.";
+ case REFERRAL: return "A request that care of a particular type be provided to a patient. Could involve the transfer of care, a consult, etc.";
+ case SLOT: return "A bounded time-period when a particular set of resources (practioners, devices and/or locations) is available for the delivery of healthcare services. Used for scheduling.";
+ case ADVEVENT: return "An undesired reaction caused by exposure to some agent (e.g., a medication, immunization, food, or environmental agent).";
+ case APTMTREQ: return "A request that a time be scheduled for a type of service for a specified patient, potentially subject to other constraints";
+ case TRANSFER: return "The transition of a patient or set of material from one location to another";
+ case DIET: return "The specification of a set of food and/or other nutritonal material to be delivered to a patient.";
+ case ADMINACT: return "An occurrence of a non-care-related event in the healthcare domain, such as approvals, reviews, etc.";
+ case EXPOSURE: return "Record of a situation where a subject was exposed to a substance. Usually of interest to public health.";
+ case INVESTIGATION: return "A formalized inquiry into the circumstances surrounding a particular unplanned event or potential event for the purposes of identifying possible causes and contributing factors for the event";
+ case ACCOUNT: return "A financial instrument used to track costs, charges or other amounts.";
+ case INVOICE: return "A request for payment for goods and/or services. Includes the idea of a healthcare insurance claim.";
+ case ADJUDICAT: return "The determination of what will be paid against a particular invoice based on coverage, plan rules, etc.";
+ case PAYMENT: return "A record of a transfer of funds between accounts and/or individuals";
+ case PREDETREQ: return "A request for a predication of the cost that would be paid under an insurance plan for a hypothetical claim for goods or services";
+ case PREDETERMINE: return "An adjudication of what would be paid under an insurance plan for a hypothetical claim for goods or services";
+ case STUDY: return "An investigation to determine information about a particular therapy or product";
+ case PROTOCOL: return "A set of (possibly conditional) steps to be taken to achieve some aim. Includes study protocols, treatment protocols, emergency protocols, etc.";
+ default: return "?";
+ }
+ }
+ public String getDisplay() {
+ switch (this) {
+ case CONSENT: return "consent";
+ case REFERRAL: return "referral";
+ case SLOT: return "resource slot";
+ case ADVEVENT: return "adverse event";
+ case APTMTREQ: return "appointment request";
+ case TRANSFER: return "transfer";
+ case DIET: return "diet";
+ case ADMINACT: return "administrative activity";
+ case EXPOSURE: return "exposure";
+ case INVESTIGATION: return "investigation";
+ case ACCOUNT: return "account";
+ case INVOICE: return "invoice";
+ case ADJUDICAT: return "invoice adjudication";
+ case PAYMENT: return "payment";
+ case PREDETREQ: return "predetermination request";
+ case PREDETERMINE: return "predetermination";
+ case STUDY: return "study";
+ case PROTOCOL: return "protocol";
+ default: return "?";
+ }
+ }
+
+
+}
+
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/valuesets/BasicResourceTypeEnumFactory.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/valuesets/BasicResourceTypeEnumFactory.java
new file mode 100644
index 00000000000..562c168cf69
--- /dev/null
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/valuesets/BasicResourceTypeEnumFactory.java
@@ -0,0 +1,123 @@
+package org.hl7.fhir.instance.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 Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
+
+
+import org.hl7.fhir.instance.model.EnumFactory;
+
+public class BasicResourceTypeEnumFactory implements EnumFactory {
+
+ public BasicResourceType fromCode(String codeString) throws IllegalArgumentException {
+ if (codeString == null || "".equals(codeString))
+ return null;
+ if ("CONSENT".equals(codeString))
+ return BasicResourceType.CONSENT;
+ if ("REFERRAL".equals(codeString))
+ return BasicResourceType.REFERRAL;
+ if ("SLOT".equals(codeString))
+ return BasicResourceType.SLOT;
+ if ("ADVEVENT".equals(codeString))
+ return BasicResourceType.ADVEVENT;
+ if ("APTMTREQ".equals(codeString))
+ return BasicResourceType.APTMTREQ;
+ if ("TRANSFER".equals(codeString))
+ return BasicResourceType.TRANSFER;
+ if ("DIET".equals(codeString))
+ return BasicResourceType.DIET;
+ if ("ADMINACT".equals(codeString))
+ return BasicResourceType.ADMINACT;
+ if ("EXPOSURE".equals(codeString))
+ return BasicResourceType.EXPOSURE;
+ if ("INVESTIGATION".equals(codeString))
+ return BasicResourceType.INVESTIGATION;
+ if ("ACCOUNT".equals(codeString))
+ return BasicResourceType.ACCOUNT;
+ if ("INVOICE".equals(codeString))
+ return BasicResourceType.INVOICE;
+ if ("ADJUDICAT".equals(codeString))
+ return BasicResourceType.ADJUDICAT;
+ if ("PAYMENT".equals(codeString))
+ return BasicResourceType.PAYMENT;
+ if ("PREDETREQ".equals(codeString))
+ return BasicResourceType.PREDETREQ;
+ if ("PREDETERMINE".equals(codeString))
+ return BasicResourceType.PREDETERMINE;
+ if ("STUDY".equals(codeString))
+ return BasicResourceType.STUDY;
+ if ("PROTOCOL".equals(codeString))
+ return BasicResourceType.PROTOCOL;
+ throw new IllegalArgumentException("Unknown BasicResourceType code '"+codeString+"'");
+ }
+
+ public String toCode(BasicResourceType code) {
+ if (code == BasicResourceType.CONSENT)
+ return "CONSENT";
+ if (code == BasicResourceType.REFERRAL)
+ return "REFERRAL";
+ if (code == BasicResourceType.SLOT)
+ return "SLOT";
+ if (code == BasicResourceType.ADVEVENT)
+ return "ADVEVENT";
+ if (code == BasicResourceType.APTMTREQ)
+ return "APTMTREQ";
+ if (code == BasicResourceType.TRANSFER)
+ return "TRANSFER";
+ if (code == BasicResourceType.DIET)
+ return "DIET";
+ if (code == BasicResourceType.ADMINACT)
+ return "ADMINACT";
+ if (code == BasicResourceType.EXPOSURE)
+ return "EXPOSURE";
+ if (code == BasicResourceType.INVESTIGATION)
+ return "INVESTIGATION";
+ if (code == BasicResourceType.ACCOUNT)
+ return "ACCOUNT";
+ if (code == BasicResourceType.INVOICE)
+ return "INVOICE";
+ if (code == BasicResourceType.ADJUDICAT)
+ return "ADJUDICAT";
+ if (code == BasicResourceType.PAYMENT)
+ return "PAYMENT";
+ if (code == BasicResourceType.PREDETREQ)
+ return "PREDETREQ";
+ if (code == BasicResourceType.PREDETERMINE)
+ return "PREDETERMINE";
+ if (code == BasicResourceType.STUDY)
+ return "STUDY";
+ if (code == BasicResourceType.PROTOCOL)
+ return "PROTOCOL";
+ return "?";
+ }
+
+
+}
+
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/valuesets/BindingConformance.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/valuesets/BindingConformance.java
new file mode 100644
index 00000000000..311a25dae72
--- /dev/null
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/valuesets/BindingConformance.java
@@ -0,0 +1,94 @@
+package org.hl7.fhir.instance.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 Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
+
+
+public enum BindingConformance {
+
+ /**
+ * Only codes in the specified set are allowed. If the binding is extensible, other codes may be used for concepts not covered by the bound set of codes
+ */
+ REQUIRED,
+ /**
+ * For greater interoperability, implementers are strongly encouraged to use the bound set of codes, however alternate codes may be used in derived profiles and implementations if necessary without being considered non-conformant
+ */
+ PREFERRED,
+ /**
+ * The codes in the set are an example to illustrate the meaning of the field. There is no particular preference for its use nor any assertion that the provided values are sufficient to meet implementation needs
+ */
+ EXAMPLE,
+ /**
+ * added to help the parsers
+ */
+ NULL;
+ public static BindingConformance fromCode(String codeString) throws Exception {
+ if (codeString == null || "".equals(codeString))
+ return null;
+ if ("required".equals(codeString))
+ return REQUIRED;
+ if ("preferred".equals(codeString))
+ return PREFERRED;
+ if ("example".equals(codeString))
+ return EXAMPLE;
+ throw new Exception("Unknown BindingConformance code '"+codeString+"'");
+ }
+ public String toCode() {
+ switch (this) {
+ case REQUIRED: return "required";
+ case PREFERRED: return "preferred";
+ case EXAMPLE: return "example";
+ default: return "?";
+ }
+ }
+ public String getSystem() {
+ return "http://hl7.org/fhir/binding-conformance";
+ }
+ public String getDefinition() {
+ switch (this) {
+ case REQUIRED: return "Only codes in the specified set are allowed. If the binding is extensible, other codes may be used for concepts not covered by the bound set of codes";
+ case PREFERRED: return "For greater interoperability, implementers are strongly encouraged to use the bound set of codes, however alternate codes may be used in derived profiles and implementations if necessary without being considered non-conformant";
+ case EXAMPLE: return "The codes in the set are an example to illustrate the meaning of the field. There is no particular preference for its use nor any assertion that the provided values are sufficient to meet implementation needs";
+ default: return "?";
+ }
+ }
+ public String getDisplay() {
+ switch (this) {
+ case REQUIRED: return "Required";
+ case PREFERRED: return "Preferred";
+ case EXAMPLE: return "Example";
+ default: return "?";
+ }
+ }
+
+
+}
+
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/valuesets/BindingConformanceEnumFactory.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/valuesets/BindingConformanceEnumFactory.java
new file mode 100644
index 00000000000..97a8ccaadaf
--- /dev/null
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/valuesets/BindingConformanceEnumFactory.java
@@ -0,0 +1,63 @@
+package org.hl7.fhir.instance.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 Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
+
+
+import org.hl7.fhir.instance.model.EnumFactory;
+
+public class BindingConformanceEnumFactory implements EnumFactory {
+
+ public BindingConformance fromCode(String codeString) throws IllegalArgumentException {
+ if (codeString == null || "".equals(codeString))
+ return null;
+ if ("required".equals(codeString))
+ return BindingConformance.REQUIRED;
+ if ("preferred".equals(codeString))
+ return BindingConformance.PREFERRED;
+ if ("example".equals(codeString))
+ return BindingConformance.EXAMPLE;
+ throw new IllegalArgumentException("Unknown BindingConformance code '"+codeString+"'");
+ }
+
+ public String toCode(BindingConformance code) {
+ if (code == BindingConformance.REQUIRED)
+ return "required";
+ if (code == BindingConformance.PREFERRED)
+ return "preferred";
+ if (code == BindingConformance.EXAMPLE)
+ return "example";
+ return "?";
+ }
+
+
+}
+
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/valuesets/CarePlanGoalStatus.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/valuesets/CarePlanGoalStatus.java
new file mode 100644
index 00000000000..c418b8544d9
--- /dev/null
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/valuesets/CarePlanGoalStatus.java
@@ -0,0 +1,103 @@
+package org.hl7.fhir.instance.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 Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
+
+
+public enum CarePlanGoalStatus {
+
+ /**
+ * The goal is being sought but has not yet been reached. (Also applies if goal was reached in the past but there has been regression and goal is being sought again)
+ */
+ INPROGRESS,
+ /**
+ * The goal has been met and no further action is needed
+ */
+ ACHIEVED,
+ /**
+ * The goal has been met, but ongoing activity is needed to sustain the goal objective
+ */
+ SUSTAINING,
+ /**
+ * The goal is no longer being sought
+ */
+ CANCELLED,
+ /**
+ * added to help the parsers
+ */
+ NULL;
+ public static CarePlanGoalStatus fromCode(String codeString) throws Exception {
+ if (codeString == null || "".equals(codeString))
+ return null;
+ if ("in-progress".equals(codeString))
+ return INPROGRESS;
+ if ("achieved".equals(codeString))
+ return ACHIEVED;
+ if ("sustaining".equals(codeString))
+ return SUSTAINING;
+ if ("cancelled".equals(codeString))
+ return CANCELLED;
+ throw new Exception("Unknown CarePlanGoalStatus code '"+codeString+"'");
+ }
+ public String toCode() {
+ switch (this) {
+ case INPROGRESS: return "in-progress";
+ case ACHIEVED: return "achieved";
+ case SUSTAINING: return "sustaining";
+ case CANCELLED: return "cancelled";
+ default: return "?";
+ }
+ }
+ public String getSystem() {
+ return "http://hl7.org/fhir/care-plan-goal-status";
+ }
+ public String getDefinition() {
+ switch (this) {
+ case INPROGRESS: return "The goal is being sought but has not yet been reached. (Also applies if goal was reached in the past but there has been regression and goal is being sought again)";
+ case ACHIEVED: return "The goal has been met and no further action is needed";
+ case SUSTAINING: return "The goal has been met, but ongoing activity is needed to sustain the goal objective";
+ case CANCELLED: return "The goal is no longer being sought";
+ default: return "?";
+ }
+ }
+ public String getDisplay() {
+ switch (this) {
+ case INPROGRESS: return "In Progress";
+ case ACHIEVED: return "Achieved";
+ case SUSTAINING: return "Sustaining";
+ case CANCELLED: return "Cancelled";
+ default: return "?";
+ }
+ }
+
+
+}
+
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/valuesets/CarePlanGoalStatusEnumFactory.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/valuesets/CarePlanGoalStatusEnumFactory.java
new file mode 100644
index 00000000000..51752236b6f
--- /dev/null
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/valuesets/CarePlanGoalStatusEnumFactory.java
@@ -0,0 +1,67 @@
+package org.hl7.fhir.instance.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 Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
+
+
+import org.hl7.fhir.instance.model.EnumFactory;
+
+public class CarePlanGoalStatusEnumFactory implements EnumFactory {
+
+ public CarePlanGoalStatus fromCode(String codeString) throws IllegalArgumentException {
+ if (codeString == null || "".equals(codeString))
+ return null;
+ if ("in-progress".equals(codeString))
+ return CarePlanGoalStatus.INPROGRESS;
+ if ("achieved".equals(codeString))
+ return CarePlanGoalStatus.ACHIEVED;
+ if ("sustaining".equals(codeString))
+ return CarePlanGoalStatus.SUSTAINING;
+ if ("cancelled".equals(codeString))
+ return CarePlanGoalStatus.CANCELLED;
+ throw new IllegalArgumentException("Unknown CarePlanGoalStatus code '"+codeString+"'");
+ }
+
+ public String toCode(CarePlanGoalStatus code) {
+ if (code == CarePlanGoalStatus.INPROGRESS)
+ return "in-progress";
+ if (code == CarePlanGoalStatus.ACHIEVED)
+ return "achieved";
+ if (code == CarePlanGoalStatus.SUSTAINING)
+ return "sustaining";
+ if (code == CarePlanGoalStatus.CANCELLED)
+ return "cancelled";
+ return "?";
+ }
+
+
+}
+
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/valuesets/ClassificationOrContext.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/valuesets/ClassificationOrContext.java
new file mode 100644
index 00000000000..2afce061d61
--- /dev/null
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/valuesets/ClassificationOrContext.java
@@ -0,0 +1,85 @@
+package org.hl7.fhir.instance.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 Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
+
+
+public enum ClassificationOrContext {
+
+ /**
+ * Indicates the useContext is a classification - e.g. Administrative, financial, etc.
+ */
+ CLASSIFICATION,
+ /**
+ * Indicates the useContext is a context - a domain of use - e.g. Particular country, organization or system
+ */
+ CONTEXT,
+ /**
+ * added to help the parsers
+ */
+ NULL;
+ public static ClassificationOrContext fromCode(String codeString) throws Exception {
+ if (codeString == null || "".equals(codeString))
+ return null;
+ if ("classification".equals(codeString))
+ return CLASSIFICATION;
+ if ("context".equals(codeString))
+ return CONTEXT;
+ throw new Exception("Unknown ClassificationOrContext code '"+codeString+"'");
+ }
+ public String toCode() {
+ switch (this) {
+ case CLASSIFICATION: return "classification";
+ case CONTEXT: return "context";
+ default: return "?";
+ }
+ }
+ public String getSystem() {
+ return "http://hl7.org/fhir/classification-or-context";
+ }
+ public String getDefinition() {
+ switch (this) {
+ case CLASSIFICATION: return "Indicates the useContext is a classification - e.g. Administrative, financial, etc.";
+ case CONTEXT: return "Indicates the useContext is a context - a domain of use - e.g. Particular country, organization or system";
+ default: return "?";
+ }
+ }
+ public String getDisplay() {
+ switch (this) {
+ case CLASSIFICATION: return "Classification";
+ case CONTEXT: return "Context";
+ default: return "?";
+ }
+ }
+
+
+}
+
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/valuesets/ClassificationOrContextEnumFactory.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/valuesets/ClassificationOrContextEnumFactory.java
new file mode 100644
index 00000000000..4de607cec79
--- /dev/null
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/valuesets/ClassificationOrContextEnumFactory.java
@@ -0,0 +1,59 @@
+package org.hl7.fhir.instance.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 Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
+
+
+import org.hl7.fhir.instance.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 "?";
+ }
+
+
+}
+
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/valuesets/ConditionCategory.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/valuesets/ConditionCategory.java
new file mode 100644
index 00000000000..890a1fe7eac
--- /dev/null
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/valuesets/ConditionCategory.java
@@ -0,0 +1,103 @@
+package org.hl7.fhir.instance.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 Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
+
+
+public enum ConditionCategory {
+
+ /**
+ * The patient considers the condition an issue to be addressed
+ */
+ COMPLAINT,
+ /**
+ * A symptom of a condition (as might be mentioned in a review of systems)
+ */
+ SYMPTOM,
+ /**
+ * An observation made by a healthcare provider
+ */
+ FINDING,
+ /**
+ * This is a judgment made by a healthcare provider that the patient has a particular disease or condition
+ */
+ DIAGNOSIS,
+ /**
+ * added to help the parsers
+ */
+ NULL;
+ public static ConditionCategory fromCode(String codeString) throws Exception {
+ if (codeString == null || "".equals(codeString))
+ return null;
+ if ("complaint".equals(codeString))
+ return COMPLAINT;
+ if ("symptom".equals(codeString))
+ return SYMPTOM;
+ if ("finding".equals(codeString))
+ return FINDING;
+ if ("diagnosis".equals(codeString))
+ return DIAGNOSIS;
+ throw new Exception("Unknown ConditionCategory code '"+codeString+"'");
+ }
+ public String toCode() {
+ switch (this) {
+ case COMPLAINT: return "complaint";
+ case SYMPTOM: return "symptom";
+ case FINDING: return "finding";
+ case DIAGNOSIS: return "diagnosis";
+ default: return "?";
+ }
+ }
+ public String getSystem() {
+ return "http://hl7.org/fhir/condition-category";
+ }
+ public String getDefinition() {
+ switch (this) {
+ case COMPLAINT: return "The patient considers the condition an issue to be addressed";
+ case SYMPTOM: return "A symptom of a condition (as might be mentioned in a review of systems)";
+ case FINDING: return "An observation made by a healthcare provider";
+ case DIAGNOSIS: return "This is a judgment made by a healthcare provider that the patient has a particular disease or condition";
+ default: return "?";
+ }
+ }
+ public String getDisplay() {
+ switch (this) {
+ case COMPLAINT: return "Complaint";
+ case SYMPTOM: return "Symptom";
+ case FINDING: return "Finding";
+ case DIAGNOSIS: return "Diagnosis";
+ default: return "?";
+ }
+ }
+
+
+}
+
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/valuesets/ConditionCategoryEnumFactory.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/valuesets/ConditionCategoryEnumFactory.java
new file mode 100644
index 00000000000..d70458703c4
--- /dev/null
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/valuesets/ConditionCategoryEnumFactory.java
@@ -0,0 +1,67 @@
+package org.hl7.fhir.instance.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 Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
+
+
+import org.hl7.fhir.instance.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 "?";
+ }
+
+
+}
+
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/valuesets/ConditionState.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/valuesets/ConditionState.java
new file mode 100644
index 00000000000..16b5410745c
--- /dev/null
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/valuesets/ConditionState.java
@@ -0,0 +1,94 @@
+package org.hl7.fhir.instance.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 Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
+
+
+public enum ConditionState {
+
+ /**
+ * The condition is active
+ */
+ ACTIVE,
+ /**
+ * The condition inactive but not resolved
+ */
+ INACTIVE,
+ /**
+ * The condition is resolved
+ */
+ RESOLVED,
+ /**
+ * added to help the parsers
+ */
+ NULL;
+ public static ConditionState fromCode(String codeString) throws Exception {
+ if (codeString == null || "".equals(codeString))
+ return null;
+ if ("active".equals(codeString))
+ return ACTIVE;
+ if ("inactive".equals(codeString))
+ return INACTIVE;
+ if ("resolved".equals(codeString))
+ return RESOLVED;
+ throw new Exception("Unknown ConditionState code '"+codeString+"'");
+ }
+ public String toCode() {
+ switch (this) {
+ case ACTIVE: return "active";
+ case INACTIVE: return "inactive";
+ case RESOLVED: return "resolved";
+ default: return "?";
+ }
+ }
+ public String getSystem() {
+ return "http://hl7.org/fhir/condition-state";
+ }
+ public String getDefinition() {
+ switch (this) {
+ case ACTIVE: return "The condition is active";
+ case INACTIVE: return "The condition inactive but not resolved";
+ case RESOLVED: return "The condition is resolved";
+ default: return "?";
+ }
+ }
+ public String getDisplay() {
+ switch (this) {
+ case ACTIVE: return "Active";
+ case INACTIVE: return "Inactive";
+ case RESOLVED: return "Resolved";
+ default: return "?";
+ }
+ }
+
+
+}
+
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/valuesets/ConditionStateEnumFactory.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/valuesets/ConditionStateEnumFactory.java
new file mode 100644
index 00000000000..ae7c7cbefe1
--- /dev/null
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/valuesets/ConditionStateEnumFactory.java
@@ -0,0 +1,63 @@
+package org.hl7.fhir.instance.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 Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
+
+
+import org.hl7.fhir.instance.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 "?";
+ }
+
+
+}
+
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/valuesets/ConformanceExpectation.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/valuesets/ConformanceExpectation.java
new file mode 100644
index 00000000000..171d074394f
--- /dev/null
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/valuesets/ConformanceExpectation.java
@@ -0,0 +1,103 @@
+package org.hl7.fhir.instance.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 Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
+
+
+public enum ConformanceExpectation {
+
+ /**
+ * Support for the specified capability is required to be considered conformant
+ */
+ SHALL,
+ /**
+ * Support for the specified capability is strongly encouraged and failure to support it should only occur after careful consideration
+ */
+ SHOULD,
+ /**
+ * Support for the specified capability is not necessary to be considered conformant and the requirement should be considered strictly optional
+ */
+ MAY,
+ /**
+ * Support for the specified capability is strongly discouraged and should occur only after careful consideration
+ */
+ SHOULDNOT,
+ /**
+ * added to help the parsers
+ */
+ NULL;
+ public static ConformanceExpectation fromCode(String codeString) throws Exception {
+ if (codeString == null || "".equals(codeString))
+ return null;
+ if ("SHALL".equals(codeString))
+ return SHALL;
+ if ("SHOULD".equals(codeString))
+ return SHOULD;
+ if ("MAY".equals(codeString))
+ return MAY;
+ if ("SHOULD-NOT".equals(codeString))
+ return SHOULDNOT;
+ throw new Exception("Unknown ConformanceExpectation code '"+codeString+"'");
+ }
+ public String toCode() {
+ switch (this) {
+ case SHALL: return "SHALL";
+ case SHOULD: return "SHOULD";
+ case MAY: return "MAY";
+ case SHOULDNOT: return "SHOULD-NOT";
+ default: return "?";
+ }
+ }
+ public String getSystem() {
+ return "http://hl7.org/fhir/conformance-expectation";
+ }
+ public String getDefinition() {
+ switch (this) {
+ case SHALL: return "Support for the specified capability is required to be considered conformant";
+ case SHOULD: return "Support for the specified capability is strongly encouraged and failure to support it should only occur after careful consideration";
+ case MAY: return "Support for the specified capability is not necessary to be considered conformant and the requirement should be considered strictly optional";
+ case SHOULDNOT: return "Support for the specified capability is strongly discouraged and should occur only after careful consideration";
+ default: return "?";
+ }
+ }
+ public String getDisplay() {
+ switch (this) {
+ case SHALL: return "S H A L L";
+ case SHOULD: return "S H O U L D";
+ case MAY: return "M A Y";
+ case SHOULDNOT: return "S H O U L D N O T";
+ default: return "?";
+ }
+ }
+
+
+}
+
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/valuesets/ConformanceExpectationEnumFactory.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/valuesets/ConformanceExpectationEnumFactory.java
new file mode 100644
index 00000000000..82fe3591c0a
--- /dev/null
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/valuesets/ConformanceExpectationEnumFactory.java
@@ -0,0 +1,67 @@
+package org.hl7.fhir.instance.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 Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
+
+
+import org.hl7.fhir.instance.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 "?";
+ }
+
+
+}
+
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/valuesets/ContactentityType.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/valuesets/ContactentityType.java
new file mode 100644
index 00000000000..5731c61ad1e
--- /dev/null
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/valuesets/ContactentityType.java
@@ -0,0 +1,121 @@
+package org.hl7.fhir.instance.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 Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
+
+
+public enum ContactentityType {
+
+ /**
+ * Contact details for information regarding to billing/general finance enquiries
+ */
+ BILL,
+ /**
+ * Contact details for administrative enquiries
+ */
+ ADMIN,
+ /**
+ * Contact details for issues related to Human Resources, such as staff matters, OH&S etc
+ */
+ HR,
+ /**
+ * Contact details for dealing with issues related to insurance claims/adjudication/payment
+ */
+ PAYOR,
+ /**
+ * Generic information contact for patients
+ */
+ PATINF,
+ /**
+ * Dedicated contact point for matters relating to press enquiries
+ */
+ PRESS,
+ /**
+ * added to help the parsers
+ */
+ NULL;
+ public static ContactentityType fromCode(String codeString) throws Exception {
+ if (codeString == null || "".equals(codeString))
+ return null;
+ if ("BILL".equals(codeString))
+ return BILL;
+ if ("ADMIN".equals(codeString))
+ return ADMIN;
+ if ("HR".equals(codeString))
+ return HR;
+ if ("PAYOR".equals(codeString))
+ return PAYOR;
+ if ("PATINF".equals(codeString))
+ return PATINF;
+ if ("PRESS".equals(codeString))
+ return PRESS;
+ throw new Exception("Unknown ContactentityType code '"+codeString+"'");
+ }
+ public String toCode() {
+ switch (this) {
+ case BILL: return "BILL";
+ case ADMIN: return "ADMIN";
+ case HR: return "HR";
+ case PAYOR: return "PAYOR";
+ case PATINF: return "PATINF";
+ case PRESS: return "PRESS";
+ default: return "?";
+ }
+ }
+ public String getSystem() {
+ return "http://hl7.org/fhir/contactentity-type";
+ }
+ public String getDefinition() {
+ switch (this) {
+ case BILL: return "Contact details for information regarding to billing/general finance enquiries";
+ case ADMIN: return "Contact details for administrative enquiries";
+ case HR: return "Contact details for issues related to Human Resources, such as staff matters, OH&S etc";
+ case PAYOR: return "Contact details for dealing with issues related to insurance claims/adjudication/payment";
+ case PATINF: return "Generic information contact for patients";
+ case PRESS: return "Dedicated contact point for matters relating to press enquiries";
+ default: return "?";
+ }
+ }
+ public String getDisplay() {
+ switch (this) {
+ case BILL: return "Billing";
+ case ADMIN: return "Administrative";
+ case HR: return "Human Resource";
+ case PAYOR: return "Payor";
+ case PATINF: return "Patient";
+ case PRESS: return "Press";
+ default: return "?";
+ }
+ }
+
+
+}
+
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/valuesets/ContactentityTypeEnumFactory.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/valuesets/ContactentityTypeEnumFactory.java
new file mode 100644
index 00000000000..fa1a4c2192f
--- /dev/null
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/valuesets/ContactentityTypeEnumFactory.java
@@ -0,0 +1,75 @@
+package org.hl7.fhir.instance.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 Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
+
+
+import org.hl7.fhir.instance.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 "?";
+ }
+
+
+}
+
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/valuesets/ContractAction.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/valuesets/ContractAction.java
new file mode 100644
index 00000000000..28b0c598d71
--- /dev/null
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/valuesets/ContractAction.java
@@ -0,0 +1,85 @@
+package org.hl7.fhir.instance.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 Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
+
+
+public enum ContractAction {
+
+ /**
+ * null
+ */
+ ACTIONA,
+ /**
+ * null
+ */
+ ACTIONB,
+ /**
+ * added to help the parsers
+ */
+ NULL;
+ public static ContractAction fromCode(String codeString) throws Exception {
+ if (codeString == null || "".equals(codeString))
+ return null;
+ if ("action-a".equals(codeString))
+ return ACTIONA;
+ if ("action-b".equals(codeString))
+ return ACTIONB;
+ throw new Exception("Unknown ContractAction code '"+codeString+"'");
+ }
+ public String toCode() {
+ switch (this) {
+ case ACTIONA: return "action-a";
+ case ACTIONB: return "action-b";
+ default: return "?";
+ }
+ }
+ public String getSystem() {
+ return "http://www.hl7.org/fhir/contractaction";
+ }
+ public String getDefinition() {
+ switch (this) {
+ case ACTIONA: return "";
+ case ACTIONB: return "";
+ default: return "?";
+ }
+ }
+ public String getDisplay() {
+ switch (this) {
+ case ACTIONA: return "action-a";
+ case ACTIONB: return "action-b";
+ default: return "?";
+ }
+ }
+
+
+}
+
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/valuesets/ContractActionEnumFactory.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/valuesets/ContractActionEnumFactory.java
new file mode 100644
index 00000000000..bc9f7e1fb34
--- /dev/null
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/valuesets/ContractActionEnumFactory.java
@@ -0,0 +1,59 @@
+package org.hl7.fhir.instance.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 Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
+
+
+import org.hl7.fhir.instance.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 "?";
+ }
+
+
+}
+
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/valuesets/ContractActorrole.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/valuesets/ContractActorrole.java
new file mode 100644
index 00000000000..87dcd35478d
--- /dev/null
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/valuesets/ContractActorrole.java
@@ -0,0 +1,85 @@
+package org.hl7.fhir.instance.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 Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
+
+
+public enum ContractActorrole {
+
+ /**
+ * null
+ */
+ PRACTITIONER,
+ /**
+ * null
+ */
+ PATIENT,
+ /**
+ * added to help the parsers
+ */
+ NULL;
+ public static ContractActorrole fromCode(String codeString) throws Exception {
+ if (codeString == null || "".equals(codeString))
+ return null;
+ if ("practitioner".equals(codeString))
+ return PRACTITIONER;
+ if ("patient".equals(codeString))
+ return PATIENT;
+ throw new Exception("Unknown ContractActorrole code '"+codeString+"'");
+ }
+ public String toCode() {
+ switch (this) {
+ case PRACTITIONER: return "practitioner";
+ case PATIENT: return "patient";
+ default: return "?";
+ }
+ }
+ public String getSystem() {
+ return "http://www.hl7.org/fhir/contractactorrole";
+ }
+ public String getDefinition() {
+ switch (this) {
+ case PRACTITIONER: return "";
+ case PATIENT: return "";
+ default: return "?";
+ }
+ }
+ public String getDisplay() {
+ switch (this) {
+ case PRACTITIONER: return "practitioner";
+ case PATIENT: return "patient";
+ default: return "?";
+ }
+ }
+
+
+}
+
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/valuesets/ContractActorroleEnumFactory.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/valuesets/ContractActorroleEnumFactory.java
new file mode 100644
index 00000000000..8acaf4b9ca2
--- /dev/null
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/valuesets/ContractActorroleEnumFactory.java
@@ -0,0 +1,59 @@
+package org.hl7.fhir.instance.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 Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
+
+
+import org.hl7.fhir.instance.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 "?";
+ }
+
+
+}
+
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/valuesets/ContractSignerType.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/valuesets/ContractSignerType.java
new file mode 100644
index 00000000000..49f48070479
--- /dev/null
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/valuesets/ContractSignerType.java
@@ -0,0 +1,220 @@
+package org.hl7.fhir.instance.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 Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
+
+
+public enum ContractSignerType {
+
+ /**
+ * the signature of the primary or sole author of a health information document. There can be only one primary author of a health information document.
+ */
+ OID_1_2_840_10065_1_12_1_1,
+ /**
+ * the signature of a health information document coauthor. There can be multiple coauthors of a health information document.
+ */
+ OID_1_2_840_10065_1_12_1_2,
+ /**
+ * the signature of an individual who is a participant in the health information document but is not an author or coauthor. (Example a surgeon who is required by institutional, regulatory, or legal rules to sign an operative report, but who was not involved in the authorship of that report.)
+ */
+ OID_1_2_840_10065_1_12_1_3,
+ /**
+ * the signature of an individual who has transcribed a dictated document or recorded written text into a digital machine readable format.
+ */
+ OID_1_2_840_10065_1_12_1_4,
+ /**
+ * a signature verifying the information contained in a document. (Example a physician is required to countersign a verbal order that has previously been recorded in the medical record by a registered nurse who has carried out the verbal order.)
+ */
+ OID_1_2_840_10065_1_12_1_5,
+ /**
+ * a signature validating a health information document for inclusion in the patient record. (Example a medical student or resident is credentialed to perform history or physical examinations and to write progress notes. The attending physician signs the history and physical examination to validate the entry for inclusion in the patient's medical record.)
+ */
+ OID_1_2_840_10065_1_12_1_6,
+ /**
+ * the signature of an individual consenting to what is described in a health information document.
+ */
+ OID_1_2_840_10065_1_12_1_7,
+ /**
+ * the signature of a witness to any other signature.
+ */
+ OID_1_2_840_10065_1_12_1_8,
+ /**
+ * the signature of a witness to an event. (Example the witness has observed a procedure and is attesting to this fact.)
+ */
+ OID_1_2_840_10065_1_12_1_9,
+ /**
+ * the signature of an individual who has witnessed another individual who is known to them signing a document. (Example the identity witness is a notary public.)
+ */
+ OID_1_2_840_10065_1_12_1_10,
+ /**
+ * the signature of an individual who has witnessed the health care provider counselling a patient.
+ */
+ OID_1_2_840_10065_1_12_1_11,
+ /**
+ * the signature of an individual who has translated health care information during an event or the obtaining of consent to a treatment.
+ */
+ OID_1_2_840_10065_1_12_1_12,
+ /**
+ * the signature of a person, device, or algorithm that has reviewed or filtered data for inclusion into the patient record. ( Examples: (1) a medical records clerk who scans a document for inclusion in the medical record, enters header information, or catalogues and classifies the data, or a combination thereof; (2) a gateway that receives data from another computer system and interprets that data or changes its format, or both, before entering it into the patient record.)
+ */
+ OID_1_2_840_10065_1_12_1_13,
+ /**
+ * the signature of an automated data source. (Examples: (1) the signature for an image that is generated by a device for inclusion in the patient record; (2) the signature for an ECG derived by an ECG system for inclusion in the patient record; (3) the data from a biomedical monitoring device or system that is for inclusion in the patient record.)
+ */
+ OID_1_2_840_10065_1_12_1_14,
+ /**
+ * the signature on a new amended document of an individual who has corrected, edited, or amended an original health information document. An addendum signature can either be a signature type or a signature sub-type (see 8.1). Any document with an addendum signature shall have a companion document that is the original document with its original, unaltered content, and original signatures. The original document shall be referenced via an attribute in the new document, which contains, for example, the digest of the old document. Whether the original, unaltered, document is always displayed with the addended document is a local matter, but the original, unaltered, document must remain as part of the patient record and be retrievable on demand.
+ */
+ OID_1_2_840_10065_1_12_1_15,
+ /**
+ * the signature on an original document of an individual who has generated a new amended document. This (original) document shall reference the new document via an additional signature purpose. This is the inverse of an addendum signature and provides a pointer from the original to the amended document.
+ */
+ OID_1_2_840_10065_1_12_1_16,
+ /**
+ * the signature of an individual who is certifying that the document is invalidated by an error(s), or is placed in the wrong chart. An administrative (error/edit) signature must include an addendum to the document and therefore shall have an addendum signature sub-type (see 8.1). This signature is reserved for the highest health information system administrative classification, since it is a statement that the entire document is invalidated by the error and that the document should no longer be used for patient care, although for legal reasons the document must remain part of the permanent patient record.
+ */
+ OID_1_2_840_10065_1_12_1_17,
+ /**
+ * added to help the parsers
+ */
+ NULL;
+ public static ContractSignerType fromCode(String codeString) throws Exception {
+ if (codeString == null || "".equals(codeString))
+ return null;
+ if ("1.2.840.10065.1.12.1.1".equals(codeString))
+ return OID_1_2_840_10065_1_12_1_1;
+ if ("1.2.840.10065.1.12.1.2".equals(codeString))
+ return OID_1_2_840_10065_1_12_1_2;
+ if ("1.2.840.10065.1.12.1.3".equals(codeString))
+ return OID_1_2_840_10065_1_12_1_3;
+ if ("1.2.840.10065.1.12.1.4".equals(codeString))
+ return OID_1_2_840_10065_1_12_1_4;
+ if ("1.2.840.10065.1.12.1.5".equals(codeString))
+ return OID_1_2_840_10065_1_12_1_5;
+ if ("1.2.840.10065.1.12.1.6".equals(codeString))
+ return OID_1_2_840_10065_1_12_1_6;
+ if ("1.2.840.10065.1.12.1.7".equals(codeString))
+ return OID_1_2_840_10065_1_12_1_7;
+ if ("1.2.840.10065.1.12.1.8".equals(codeString))
+ return OID_1_2_840_10065_1_12_1_8;
+ if ("1.2.840.10065.1.12.1.9".equals(codeString))
+ return OID_1_2_840_10065_1_12_1_9;
+ if ("1.2.840.10065.1.12.1.10".equals(codeString))
+ return OID_1_2_840_10065_1_12_1_10;
+ if ("1.2.840.10065.1.12.1.11".equals(codeString))
+ return OID_1_2_840_10065_1_12_1_11;
+ if ("1.2.840.10065.1.12.1.12".equals(codeString))
+ return OID_1_2_840_10065_1_12_1_12;
+ if ("1.2.840.10065.1.12.1.13".equals(codeString))
+ return OID_1_2_840_10065_1_12_1_13;
+ if ("1.2.840.10065.1.12.1.14".equals(codeString))
+ return OID_1_2_840_10065_1_12_1_14;
+ if ("1.2.840.10065.1.12.1.15".equals(codeString))
+ return OID_1_2_840_10065_1_12_1_15;
+ if ("1.2.840.10065.1.12.1.16".equals(codeString))
+ return OID_1_2_840_10065_1_12_1_16;
+ if ("1.2.840.10065.1.12.1.17".equals(codeString))
+ return OID_1_2_840_10065_1_12_1_17;
+ throw new Exception("Unknown ContractSignerType code '"+codeString+"'");
+ }
+ public String toCode() {
+ switch (this) {
+ case OID_1_2_840_10065_1_12_1_1: return "1.2.840.10065.1.12.1.1";
+ case OID_1_2_840_10065_1_12_1_2: return "1.2.840.10065.1.12.1.2";
+ case OID_1_2_840_10065_1_12_1_3: return "1.2.840.10065.1.12.1.3";
+ case OID_1_2_840_10065_1_12_1_4: return "1.2.840.10065.1.12.1.4";
+ case OID_1_2_840_10065_1_12_1_5: return "1.2.840.10065.1.12.1.5";
+ case OID_1_2_840_10065_1_12_1_6: return "1.2.840.10065.1.12.1.6";
+ case OID_1_2_840_10065_1_12_1_7: return "1.2.840.10065.1.12.1.7";
+ case OID_1_2_840_10065_1_12_1_8: return "1.2.840.10065.1.12.1.8";
+ case OID_1_2_840_10065_1_12_1_9: return "1.2.840.10065.1.12.1.9";
+ case OID_1_2_840_10065_1_12_1_10: return "1.2.840.10065.1.12.1.10";
+ case OID_1_2_840_10065_1_12_1_11: return "1.2.840.10065.1.12.1.11";
+ case OID_1_2_840_10065_1_12_1_12: return "1.2.840.10065.1.12.1.12";
+ case OID_1_2_840_10065_1_12_1_13: return "1.2.840.10065.1.12.1.13";
+ case OID_1_2_840_10065_1_12_1_14: return "1.2.840.10065.1.12.1.14";
+ case OID_1_2_840_10065_1_12_1_15: return "1.2.840.10065.1.12.1.15";
+ case OID_1_2_840_10065_1_12_1_16: return "1.2.840.10065.1.12.1.16";
+ case OID_1_2_840_10065_1_12_1_17: return "1.2.840.10065.1.12.1.17";
+ default: return "?";
+ }
+ }
+ public String getSystem() {
+ return "http://hl7.org/fhir/contractsignertypecodes";
+ }
+ public String getDefinition() {
+ switch (this) {
+ case OID_1_2_840_10065_1_12_1_1: return "the signature of the primary or sole author of a health information document. There can be only one primary author of a health information document.";
+ case OID_1_2_840_10065_1_12_1_2: return "the signature of a health information document coauthor. There can be multiple coauthors of a health information document.";
+ case OID_1_2_840_10065_1_12_1_3: return "the signature of an individual who is a participant in the health information document but is not an author or coauthor. (Example a surgeon who is required by institutional, regulatory, or legal rules to sign an operative report, but who was not involved in the authorship of that report.)";
+ case OID_1_2_840_10065_1_12_1_4: return "the signature of an individual who has transcribed a dictated document or recorded written text into a digital machine readable format.";
+ case OID_1_2_840_10065_1_12_1_5: return "a signature verifying the information contained in a document. (Example a physician is required to countersign a verbal order that has previously been recorded in the medical record by a registered nurse who has carried out the verbal order.)";
+ case OID_1_2_840_10065_1_12_1_6: return "a signature validating a health information document for inclusion in the patient record. (Example a medical student or resident is credentialed to perform history or physical examinations and to write progress notes. The attending physician signs the history and physical examination to validate the entry for inclusion in the patient's medical record.)";
+ case OID_1_2_840_10065_1_12_1_7: return "the signature of an individual consenting to what is described in a health information document.";
+ case OID_1_2_840_10065_1_12_1_8: return "the signature of a witness to any other signature.";
+ case OID_1_2_840_10065_1_12_1_9: return "the signature of a witness to an event. (Example the witness has observed a procedure and is attesting to this fact.)";
+ case OID_1_2_840_10065_1_12_1_10: return "the signature of an individual who has witnessed another individual who is known to them signing a document. (Example the identity witness is a notary public.)";
+ case OID_1_2_840_10065_1_12_1_11: return "the signature of an individual who has witnessed the health care provider counselling a patient.";
+ case OID_1_2_840_10065_1_12_1_12: return "the signature of an individual who has translated health care information during an event or the obtaining of consent to a treatment.";
+ case OID_1_2_840_10065_1_12_1_13: return "the signature of a person, device, or algorithm that has reviewed or filtered data for inclusion into the patient record. ( Examples: (1) a medical records clerk who scans a document for inclusion in the medical record, enters header information, or catalogues and classifies the data, or a combination thereof; (2) a gateway that receives data from another computer system and interprets that data or changes its format, or both, before entering it into the patient record.)";
+ case OID_1_2_840_10065_1_12_1_14: return "the signature of an automated data source. (Examples: (1) the signature for an image that is generated by a device for inclusion in the patient record; (2) the signature for an ECG derived by an ECG system for inclusion in the patient record; (3) the data from a biomedical monitoring device or system that is for inclusion in the patient record.)";
+ case OID_1_2_840_10065_1_12_1_15: return "the signature on a new amended document of an individual who has corrected, edited, or amended an original health information document. An addendum signature can either be a signature type or a signature sub-type (see 8.1). Any document with an addendum signature shall have a companion document that is the original document with its original, unaltered content, and original signatures. The original document shall be referenced via an attribute in the new document, which contains, for example, the digest of the old document. Whether the original, unaltered, document is always displayed with the addended document is a local matter, but the original, unaltered, document must remain as part of the patient record and be retrievable on demand.";
+ case OID_1_2_840_10065_1_12_1_16: return "the signature on an original document of an individual who has generated a new amended document. This (original) document shall reference the new document via an additional signature purpose. This is the inverse of an addendum signature and provides a pointer from the original to the amended document.";
+ case OID_1_2_840_10065_1_12_1_17: return "the signature of an individual who is certifying that the document is invalidated by an error(s), or is placed in the wrong chart. An administrative (error/edit) signature must include an addendum to the document and therefore shall have an addendum signature sub-type (see 8.1). This signature is reserved for the highest health information system administrative classification, since it is a statement that the entire document is invalidated by the error and that the document should no longer be used for patient care, although for legal reasons the document must remain part of the permanent patient record.";
+ default: return "?";
+ }
+ }
+ public String getDisplay() {
+ switch (this) {
+ case OID_1_2_840_10065_1_12_1_1: return "AuthorID";
+ case OID_1_2_840_10065_1_12_1_2: return "Co-AuthorID";
+ case OID_1_2_840_10065_1_12_1_3: return "Co-Participated";
+ case OID_1_2_840_10065_1_12_1_4: return "Transcriptionist";
+ case OID_1_2_840_10065_1_12_1_5: return "Verification";
+ case OID_1_2_840_10065_1_12_1_6: return "Validation";
+ case OID_1_2_840_10065_1_12_1_7: return "Consent";
+ case OID_1_2_840_10065_1_12_1_8: return "Witness";
+ case OID_1_2_840_10065_1_12_1_9: return "Event-Witness";
+ case OID_1_2_840_10065_1_12_1_10: return "Identity-Witness";
+ case OID_1_2_840_10065_1_12_1_11: return "Consent-Witness";
+ case OID_1_2_840_10065_1_12_1_12: return "Interpreter";
+ case OID_1_2_840_10065_1_12_1_13: return "Review";
+ case OID_1_2_840_10065_1_12_1_14: return "Source";
+ case OID_1_2_840_10065_1_12_1_15: return "Addendum";
+ case OID_1_2_840_10065_1_12_1_16: return "Administrative";
+ case OID_1_2_840_10065_1_12_1_17: return "Timestamp";
+ default: return "?";
+ }
+ }
+
+
+}
+
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/valuesets/ContractSignerTypeEnumFactory.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/valuesets/ContractSignerTypeEnumFactory.java
new file mode 100644
index 00000000000..208424623a7
--- /dev/null
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/valuesets/ContractSignerTypeEnumFactory.java
@@ -0,0 +1,119 @@
+package org.hl7.fhir.instance.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 Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
+
+
+import org.hl7.fhir.instance.model.EnumFactory;
+
+public class ContractSignerTypeEnumFactory implements EnumFactory {
+
+ public ContractSignerType fromCode(String codeString) throws IllegalArgumentException {
+ if (codeString == null || "".equals(codeString))
+ return null;
+ if ("1.2.840.10065.1.12.1.1".equals(codeString))
+ return ContractSignerType.OID_1_2_840_10065_1_12_1_1;
+ if ("1.2.840.10065.1.12.1.2".equals(codeString))
+ return ContractSignerType.OID_1_2_840_10065_1_12_1_2;
+ if ("1.2.840.10065.1.12.1.3".equals(codeString))
+ return ContractSignerType.OID_1_2_840_10065_1_12_1_3;
+ if ("1.2.840.10065.1.12.1.4".equals(codeString))
+ return ContractSignerType.OID_1_2_840_10065_1_12_1_4;
+ if ("1.2.840.10065.1.12.1.5".equals(codeString))
+ return ContractSignerType.OID_1_2_840_10065_1_12_1_5;
+ if ("1.2.840.10065.1.12.1.6".equals(codeString))
+ return ContractSignerType.OID_1_2_840_10065_1_12_1_6;
+ if ("1.2.840.10065.1.12.1.7".equals(codeString))
+ return ContractSignerType.OID_1_2_840_10065_1_12_1_7;
+ if ("1.2.840.10065.1.12.1.8".equals(codeString))
+ return ContractSignerType.OID_1_2_840_10065_1_12_1_8;
+ if ("1.2.840.10065.1.12.1.9".equals(codeString))
+ return ContractSignerType.OID_1_2_840_10065_1_12_1_9;
+ if ("1.2.840.10065.1.12.1.10".equals(codeString))
+ return ContractSignerType.OID_1_2_840_10065_1_12_1_10;
+ if ("1.2.840.10065.1.12.1.11".equals(codeString))
+ return ContractSignerType.OID_1_2_840_10065_1_12_1_11;
+ if ("1.2.840.10065.1.12.1.12".equals(codeString))
+ return ContractSignerType.OID_1_2_840_10065_1_12_1_12;
+ if ("1.2.840.10065.1.12.1.13".equals(codeString))
+ return ContractSignerType.OID_1_2_840_10065_1_12_1_13;
+ if ("1.2.840.10065.1.12.1.14".equals(codeString))
+ return ContractSignerType.OID_1_2_840_10065_1_12_1_14;
+ if ("1.2.840.10065.1.12.1.15".equals(codeString))
+ return ContractSignerType.OID_1_2_840_10065_1_12_1_15;
+ if ("1.2.840.10065.1.12.1.16".equals(codeString))
+ return ContractSignerType.OID_1_2_840_10065_1_12_1_16;
+ if ("1.2.840.10065.1.12.1.17".equals(codeString))
+ return ContractSignerType.OID_1_2_840_10065_1_12_1_17;
+ throw new IllegalArgumentException("Unknown ContractSignerType code '"+codeString+"'");
+ }
+
+ public String toCode(ContractSignerType code) {
+ if (code == ContractSignerType.OID_1_2_840_10065_1_12_1_1)
+ return "1.2.840.10065.1.12.1.1";
+ if (code == ContractSignerType.OID_1_2_840_10065_1_12_1_2)
+ return "1.2.840.10065.1.12.1.2";
+ if (code == ContractSignerType.OID_1_2_840_10065_1_12_1_3)
+ return "1.2.840.10065.1.12.1.3";
+ if (code == ContractSignerType.OID_1_2_840_10065_1_12_1_4)
+ return "1.2.840.10065.1.12.1.4";
+ if (code == ContractSignerType.OID_1_2_840_10065_1_12_1_5)
+ return "1.2.840.10065.1.12.1.5";
+ if (code == ContractSignerType.OID_1_2_840_10065_1_12_1_6)
+ return "1.2.840.10065.1.12.1.6";
+ if (code == ContractSignerType.OID_1_2_840_10065_1_12_1_7)
+ return "1.2.840.10065.1.12.1.7";
+ if (code == ContractSignerType.OID_1_2_840_10065_1_12_1_8)
+ return "1.2.840.10065.1.12.1.8";
+ if (code == ContractSignerType.OID_1_2_840_10065_1_12_1_9)
+ return "1.2.840.10065.1.12.1.9";
+ if (code == ContractSignerType.OID_1_2_840_10065_1_12_1_10)
+ return "1.2.840.10065.1.12.1.10";
+ if (code == ContractSignerType.OID_1_2_840_10065_1_12_1_11)
+ return "1.2.840.10065.1.12.1.11";
+ if (code == ContractSignerType.OID_1_2_840_10065_1_12_1_12)
+ return "1.2.840.10065.1.12.1.12";
+ if (code == ContractSignerType.OID_1_2_840_10065_1_12_1_13)
+ return "1.2.840.10065.1.12.1.13";
+ if (code == ContractSignerType.OID_1_2_840_10065_1_12_1_14)
+ return "1.2.840.10065.1.12.1.14";
+ if (code == ContractSignerType.OID_1_2_840_10065_1_12_1_15)
+ return "1.2.840.10065.1.12.1.15";
+ if (code == ContractSignerType.OID_1_2_840_10065_1_12_1_16)
+ return "1.2.840.10065.1.12.1.16";
+ if (code == ContractSignerType.OID_1_2_840_10065_1_12_1_17)
+ return "1.2.840.10065.1.12.1.17";
+ return "?";
+ }
+
+
+}
+
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/valuesets/ContractSubtype.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/valuesets/ContractSubtype.java
new file mode 100644
index 00000000000..9f7b705b60e
--- /dev/null
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/valuesets/ContractSubtype.java
@@ -0,0 +1,85 @@
+package org.hl7.fhir.instance.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 Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
+
+
+public enum ContractSubtype {
+
+ /**
+ * null
+ */
+ DISCLOSURECA,
+ /**
+ * null
+ */
+ DISCLOSUREUS,
+ /**
+ * added to help the parsers
+ */
+ NULL;
+ public static ContractSubtype fromCode(String codeString) throws Exception {
+ if (codeString == null || "".equals(codeString))
+ return null;
+ if ("disclosure-CA".equals(codeString))
+ return DISCLOSURECA;
+ if ("disclosure-US".equals(codeString))
+ return DISCLOSUREUS;
+ throw new Exception("Unknown ContractSubtype code '"+codeString+"'");
+ }
+ public String toCode() {
+ switch (this) {
+ case DISCLOSURECA: return "disclosure-CA";
+ case DISCLOSUREUS: return "disclosure-US";
+ default: return "?";
+ }
+ }
+ public String getSystem() {
+ return "http://hl7.org/fhir/contractsubtypecodes";
+ }
+ public String getDefinition() {
+ switch (this) {
+ case DISCLOSURECA: return "";
+ case DISCLOSUREUS: return "";
+ default: return "?";
+ }
+ }
+ public String getDisplay() {
+ switch (this) {
+ case DISCLOSURECA: return "disclosure-CA";
+ case DISCLOSUREUS: return "disclosure-US";
+ default: return "?";
+ }
+ }
+
+
+}
+
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/valuesets/ContractSubtypeEnumFactory.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/valuesets/ContractSubtypeEnumFactory.java
new file mode 100644
index 00000000000..4dbba28e5a9
--- /dev/null
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/valuesets/ContractSubtypeEnumFactory.java
@@ -0,0 +1,59 @@
+package org.hl7.fhir.instance.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 Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
+
+
+import org.hl7.fhir.instance.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 "?";
+ }
+
+
+}
+
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/valuesets/ContractTermSubtype.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/valuesets/ContractTermSubtype.java
new file mode 100644
index 00000000000..5c80297428f
--- /dev/null
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/valuesets/ContractTermSubtype.java
@@ -0,0 +1,94 @@
+package org.hl7.fhir.instance.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 Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
+
+
+public enum ContractTermSubtype {
+
+ /**
+ * null
+ */
+ ORALHEALTHBASIC,
+ /**
+ * null
+ */
+ ORALHEALTHMAJOR,
+ /**
+ * null
+ */
+ ORALHEALTHORTHODONTIC,
+ /**
+ * added to help the parsers
+ */
+ NULL;
+ public static ContractTermSubtype fromCode(String codeString) throws Exception {
+ if (codeString == null || "".equals(codeString))
+ return null;
+ if ("OralHealth-Basic".equals(codeString))
+ return ORALHEALTHBASIC;
+ if ("OralHealth-Major".equals(codeString))
+ return ORALHEALTHMAJOR;
+ if ("OralHealth-Orthodontic".equals(codeString))
+ return ORALHEALTHORTHODONTIC;
+ throw new Exception("Unknown ContractTermSubtype code '"+codeString+"'");
+ }
+ public String toCode() {
+ switch (this) {
+ case ORALHEALTHBASIC: return "OralHealth-Basic";
+ case ORALHEALTHMAJOR: return "OralHealth-Major";
+ case ORALHEALTHORTHODONTIC: return "OralHealth-Orthodontic";
+ default: return "?";
+ }
+ }
+ public String getSystem() {
+ return "http://hl7.org/fhir/contracttermsubtypecodes";
+ }
+ public String getDefinition() {
+ switch (this) {
+ case ORALHEALTHBASIC: return "";
+ case ORALHEALTHMAJOR: return "";
+ case ORALHEALTHORTHODONTIC: return "";
+ default: return "?";
+ }
+ }
+ public String getDisplay() {
+ switch (this) {
+ case ORALHEALTHBASIC: return "OralHealth-Basic";
+ case ORALHEALTHMAJOR: return "OralHealth-Major";
+ case ORALHEALTHORTHODONTIC: return "OralHealth-Orthodontic";
+ default: return "?";
+ }
+ }
+
+
+}
+
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/valuesets/ContractTermSubtypeEnumFactory.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/valuesets/ContractTermSubtypeEnumFactory.java
new file mode 100644
index 00000000000..2827b00830f
--- /dev/null
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/valuesets/ContractTermSubtypeEnumFactory.java
@@ -0,0 +1,63 @@
+package org.hl7.fhir.instance.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 Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
+
+
+import org.hl7.fhir.instance.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 "?";
+ }
+
+
+}
+
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/valuesets/ContractTermType.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/valuesets/ContractTermType.java
new file mode 100644
index 00000000000..6d92c021090
--- /dev/null
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/valuesets/ContractTermType.java
@@ -0,0 +1,85 @@
+package org.hl7.fhir.instance.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 Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
+
+
+public enum ContractTermType {
+
+ /**
+ * null
+ */
+ ORALHEALTH,
+ /**
+ * null
+ */
+ VISION,
+ /**
+ * added to help the parsers
+ */
+ NULL;
+ public static ContractTermType fromCode(String codeString) throws Exception {
+ if (codeString == null || "".equals(codeString))
+ return null;
+ if ("OralHealth".equals(codeString))
+ return ORALHEALTH;
+ if ("Vision".equals(codeString))
+ return VISION;
+ throw new Exception("Unknown ContractTermType code '"+codeString+"'");
+ }
+ public String toCode() {
+ switch (this) {
+ case ORALHEALTH: return "OralHealth";
+ case VISION: return "Vision";
+ default: return "?";
+ }
+ }
+ public String getSystem() {
+ return "http://hl7.org/fhir/contracttermtypecodes";
+ }
+ public String getDefinition() {
+ switch (this) {
+ case ORALHEALTH: return "";
+ case VISION: return "";
+ default: return "?";
+ }
+ }
+ public String getDisplay() {
+ switch (this) {
+ case ORALHEALTH: return "OralHealth";
+ case VISION: return "Vision";
+ default: return "?";
+ }
+ }
+
+
+}
+
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/valuesets/ContractTermTypeEnumFactory.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/valuesets/ContractTermTypeEnumFactory.java
new file mode 100644
index 00000000000..c939dad399b
--- /dev/null
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/valuesets/ContractTermTypeEnumFactory.java
@@ -0,0 +1,59 @@
+package org.hl7.fhir.instance.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 Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
+
+
+import org.hl7.fhir.instance.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 "?";
+ }
+
+
+}
+
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/valuesets/ContractType.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/valuesets/ContractType.java
new file mode 100644
index 00000000000..a1080f68137
--- /dev/null
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/valuesets/ContractType.java
@@ -0,0 +1,85 @@
+package org.hl7.fhir.instance.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 Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
+
+
+public enum ContractType {
+
+ /**
+ * null
+ */
+ PRIVACY,
+ /**
+ * null
+ */
+ DISCLOSURE,
+ /**
+ * added to help the parsers
+ */
+ NULL;
+ public static ContractType fromCode(String codeString) throws Exception {
+ if (codeString == null || "".equals(codeString))
+ return null;
+ if ("privacy".equals(codeString))
+ return PRIVACY;
+ if ("disclosure".equals(codeString))
+ return DISCLOSURE;
+ throw new Exception("Unknown ContractType code '"+codeString+"'");
+ }
+ public String toCode() {
+ switch (this) {
+ case PRIVACY: return "privacy";
+ case DISCLOSURE: return "disclosure";
+ default: return "?";
+ }
+ }
+ public String getSystem() {
+ return "http://hl7.org/fhir/contracttypecodes";
+ }
+ public String getDefinition() {
+ switch (this) {
+ case PRIVACY: return "";
+ case DISCLOSURE: return "";
+ default: return "?";
+ }
+ }
+ public String getDisplay() {
+ switch (this) {
+ case PRIVACY: return "privacy";
+ case DISCLOSURE: return "disclosure";
+ default: return "?";
+ }
+ }
+
+
+}
+
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/valuesets/ContractTypeEnumFactory.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/valuesets/ContractTypeEnumFactory.java
new file mode 100644
index 00000000000..0791c393ed8
--- /dev/null
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/valuesets/ContractTypeEnumFactory.java
@@ -0,0 +1,59 @@
+package org.hl7.fhir.instance.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 Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
+
+
+import org.hl7.fhir.instance.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 "?";
+ }
+
+
+}
+
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/valuesets/DeviceAction.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/valuesets/DeviceAction.java
new file mode 100644
index 00000000000..ad632e11ae7
--- /dev/null
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/valuesets/DeviceAction.java
@@ -0,0 +1,94 @@
+package org.hl7.fhir.instance.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 Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
+
+
+public enum DeviceAction {
+
+ /**
+ * The device was implanted in the patient during the procedure
+ */
+ IMPLANTED,
+ /**
+ * The device was explanted from the patient during the procedure
+ */
+ EXPLANTED,
+ /**
+ * The device remains in that patient, but it's location, settings, or functionality was changed
+ */
+ MANIPULATED,
+ /**
+ * added to help the parsers
+ */
+ NULL;
+ public static DeviceAction fromCode(String codeString) throws Exception {
+ if (codeString == null || "".equals(codeString))
+ return null;
+ if ("implanted".equals(codeString))
+ return IMPLANTED;
+ if ("explanted".equals(codeString))
+ return EXPLANTED;
+ if ("manipulated".equals(codeString))
+ return MANIPULATED;
+ throw new Exception("Unknown DeviceAction code '"+codeString+"'");
+ }
+ public String toCode() {
+ switch (this) {
+ case IMPLANTED: return "implanted";
+ case EXPLANTED: return "explanted";
+ case MANIPULATED: return "manipulated";
+ default: return "?";
+ }
+ }
+ public String getSystem() {
+ return "http://hl7.org/fhir/device-action";
+ }
+ public String getDefinition() {
+ switch (this) {
+ case IMPLANTED: return "The device was implanted in the patient during the procedure";
+ case EXPLANTED: return "The device was explanted from the patient during the procedure";
+ case MANIPULATED: return "The device remains in that patient, but it's location, settings, or functionality was changed";
+ default: return "?";
+ }
+ }
+ public String getDisplay() {
+ switch (this) {
+ case IMPLANTED: return "Implanted";
+ case EXPLANTED: return "Explanted";
+ case MANIPULATED: return "Manipulated";
+ default: return "?";
+ }
+ }
+
+
+}
+
diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/valuesets/DeviceActionEnumFactory.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/valuesets/DeviceActionEnumFactory.java
new file mode 100644
index 00000000000..60db2f83967
--- /dev/null
+++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/valuesets/DeviceActionEnumFactory.java
@@ -0,0 +1,63 @@
+package org.hl7.fhir.instance.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 Wed, Jul 8, 2015 17:35-0400 for FHIR v0.5.0
+
+
+import org.hl7.fhir.instance.model.EnumFactory;
+
+public class DeviceActionEnumFactory implements EnumFactory