Work on synchronizing the HL7.org structures
This commit is contained in:
parent
3280375486
commit
4a5e13b301
|
@ -92,16 +92,18 @@ import ca.uhn.fhir.util.ReflectionUtil;
|
|||
class ModelScanner {
|
||||
private static final org.slf4j.Logger ourLog = org.slf4j.LoggerFactory.getLogger(ModelScanner.class);
|
||||
|
||||
private final Map<Class<? extends Annotation>, Class<? extends Annotation>> myAnnotationForwards = new HashMap<Class<? extends Annotation>, Class<? extends Annotation>>();
|
||||
private Map<Class<? extends IBase>, BaseRuntimeElementDefinition<?>> myClassToElementDefinitions = new HashMap<Class<? extends IBase>, BaseRuntimeElementDefinition<?>>();
|
||||
private FhirContext myContext;
|
||||
private Map<String, RuntimeResourceDefinition> myIdToResourceDefinition = new HashMap<String, RuntimeResourceDefinition>();
|
||||
private Map<String, BaseRuntimeElementDefinition<?>> myNameToElementDefinitions = new HashMap<String, BaseRuntimeElementDefinition<?>>();
|
||||
private Map<String, RuntimeResourceDefinition> myNameToResourceDefinitions = new HashMap<String, RuntimeResourceDefinition>();
|
||||
private Map<String, Class<? extends IBaseResource>> myNameToResourceType = new HashMap<String, Class<? extends IBaseResource>>();
|
||||
private RuntimeChildUndeclaredExtensionDefinition myRuntimeChildUndeclaredExtensionDefinition;
|
||||
private Set<Class<? extends IBase>> myScanAlso = new HashSet<Class<? extends IBase>>();
|
||||
private Set<Class<? extends ICodeEnum>> myScanAlsoCodeTable = new HashSet<Class<? extends ICodeEnum>>();
|
||||
private FhirVersionEnum myVersion;
|
||||
private Map<String, BaseRuntimeElementDefinition<?>> myNameToElementDefinitions = new HashMap<String, BaseRuntimeElementDefinition<?>>();
|
||||
|
||||
private Set<Class<? extends IBase>> myVersionTypes;
|
||||
|
||||
ModelScanner(FhirContext theContext, FhirVersionEnum theVersion, Map<Class<? extends IBase>, BaseRuntimeElementDefinition<?>> theExistingDefinitions, Collection<Class<? extends IElement>> theResourceTypes) throws ConfigurationException {
|
||||
|
@ -162,6 +164,14 @@ class ModelScanner {
|
|||
return myIdToResourceDefinition;
|
||||
}
|
||||
|
||||
public Map<String, BaseRuntimeElementDefinition<?>> getNameToElementDefinitions() {
|
||||
return myNameToElementDefinitions;
|
||||
}
|
||||
|
||||
public Map<String, RuntimeResourceDefinition> getNameToResourceDefinition() {
|
||||
return myNameToResourceDefinitions;
|
||||
}
|
||||
|
||||
public Map<String, RuntimeResourceDefinition> getNameToResourceDefinitions() {
|
||||
return (myNameToResourceDefinitions);
|
||||
}
|
||||
|
@ -222,6 +232,10 @@ class ModelScanner {
|
|||
ourLog.debug("Done scanning FHIR library, found {} model entries in {}ms", size, time);
|
||||
}
|
||||
|
||||
private boolean isStandardType(Class<? extends IBase> theClass) {
|
||||
return myVersionTypes.contains(theClass);
|
||||
}
|
||||
|
||||
/**
|
||||
* There are two implementations of all of the annotations (e.g. {@link Child} and
|
||||
* {@link org.hl7.fhir.instance.model.annotations.Child}) since the HL7.org ones will eventually replace the HAPI
|
||||
|
@ -238,33 +252,50 @@ class ModelScanner {
|
|||
}
|
||||
|
||||
if (retVal == null) {
|
||||
String sourceClassName = theAnnotationType.getName();
|
||||
String candidateAltClassName = sourceClassName.replace("ca.uhn.fhir.model.api.annotation", "org.hl7.fhir.instance.model.annotations");
|
||||
|
||||
if (!sourceClassName.equals(candidateAltClassName)) {
|
||||
try {
|
||||
final Class<? extends Annotation> altAnnotationClass = (Class<? extends Annotation>) Class.forName(candidateAltClassName);
|
||||
final Annotation altAnnotation = theTarget.getAnnotation(altAnnotationClass);
|
||||
if (altAnnotation == null) {
|
||||
return null;
|
||||
final Class<? extends Annotation> altAnnotationClass;
|
||||
/*
|
||||
* Use a cache to minimize Class.forName calls, since they are slow and expensive..
|
||||
*/
|
||||
if (myAnnotationForwards.containsKey(theAnnotationType) == false) {
|
||||
String sourceClassName = theAnnotationType.getName();
|
||||
String candidateAltClassName = sourceClassName.replace("ca.uhn.fhir.model.api.annotation", "org.hl7.fhir.instance.model.annotations");
|
||||
if (!sourceClassName.equals(candidateAltClassName)) {
|
||||
Class<?> forName;
|
||||
try {
|
||||
forName = Class.forName(candidateAltClassName);
|
||||
ourLog.debug("Forwarding annotation request for [{}] to class [{}]", theAnnotationType, forName);
|
||||
} catch (ClassNotFoundException e) {
|
||||
forName = null;
|
||||
}
|
||||
|
||||
ourLog.debug("Forwarding annotation request for [{}] to class [{}]", sourceClassName, candidateAltClassName);
|
||||
|
||||
InvocationHandler h = new InvocationHandler() {
|
||||
|
||||
@Override
|
||||
public Object invoke(Object theProxy, Method theMethod, Object[] theArgs) throws Throwable {
|
||||
Method altMethod = altAnnotationClass.getMethod(theMethod.getName(), theMethod.getParameterTypes());
|
||||
return altMethod.invoke(altAnnotation, theArgs);
|
||||
}
|
||||
};
|
||||
retVal = (T) Proxy.newProxyInstance(theAnnotationType.getClassLoader(), new Class<?>[] { theAnnotationType }, h);
|
||||
|
||||
} catch (ClassNotFoundException e) {
|
||||
return null;
|
||||
altAnnotationClass = (Class<? extends Annotation>) forName;
|
||||
} else {
|
||||
altAnnotationClass = null;
|
||||
}
|
||||
myAnnotationForwards.put(theAnnotationType, altAnnotationClass);
|
||||
} else {
|
||||
altAnnotationClass = myAnnotationForwards.get(theAnnotationType);
|
||||
}
|
||||
|
||||
if (altAnnotationClass == null) {
|
||||
return null;
|
||||
}
|
||||
|
||||
final Annotation altAnnotation;
|
||||
altAnnotation = theTarget.getAnnotation(altAnnotationClass);
|
||||
if (altAnnotation == null) {
|
||||
return null;
|
||||
}
|
||||
|
||||
InvocationHandler h = new InvocationHandler() {
|
||||
|
||||
@Override
|
||||
public Object invoke(Object theProxy, Method theMethod, Object[] theArgs) throws Throwable {
|
||||
Method altMethod = altAnnotationClass.getMethod(theMethod.getName(), theMethod.getParameterTypes());
|
||||
return altMethod.invoke(altAnnotation, theArgs);
|
||||
}
|
||||
};
|
||||
retVal = (T) Proxy.newProxyInstance(theAnnotationType.getClassLoader(), new Class<?>[] { theAnnotationType }, h);
|
||||
|
||||
}
|
||||
|
||||
return retVal;
|
||||
|
@ -344,10 +375,6 @@ class ModelScanner {
|
|||
scanCompositeElementForChildren(theClass, resourceDef);
|
||||
}
|
||||
|
||||
private boolean isStandardType(Class<? extends IBase> theClass) {
|
||||
return myVersionTypes.contains(theClass);
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
private void scanCompositeElementForChildren(Class<? extends IBase> theClass, BaseRuntimeElementCompositeDefinition<?> theDefinition) {
|
||||
Set<String> elementNames = new HashSet<String>();
|
||||
|
@ -547,11 +574,11 @@ class ModelScanner {
|
|||
}
|
||||
|
||||
RuntimeChildDeclaredExtensionDefinition def = new RuntimeChildDeclaredExtensionDefinition(next, childAnnotation, descriptionAnnotation, extensionAttr, elementName, extensionAttr.url(), et, binder);
|
||||
|
||||
|
||||
if (IBaseEnumeration.class.isAssignableFrom(nextElementType)) {
|
||||
def.setEnumerationType(ReflectionUtil.getGenericCollectionTypeOfField(next));
|
||||
def.setEnumerationType(ReflectionUtil.getGenericCollectionTypeOfFieldWithSecondOrderForList(next));
|
||||
}
|
||||
|
||||
|
||||
orderMap.put(order, def);
|
||||
if (IBase.class.isAssignableFrom(nextElementType)) {
|
||||
addScanAlso((Class<? extends IBase>) nextElementType);
|
||||
|
@ -598,7 +625,7 @@ class ModelScanner {
|
|||
IValueSetEnumBinder<Enum<?>> binder = getBoundCodeBinder(next);
|
||||
def = new RuntimeChildPrimitiveBoundCodeDatatypeDefinition(next, elementName, childAnnotation, descriptionAnnotation, nextDatatype, binder);
|
||||
} else if (IBaseEnumeration.class.isAssignableFrom(nextElementType)) {
|
||||
Class<?> binderType = ReflectionUtil.getGenericCollectionTypeOfField(next);
|
||||
Class<?> binderType = ReflectionUtil.getGenericCollectionTypeOfFieldWithSecondOrderForList(next);
|
||||
def = new RuntimeChildPrimitiveEnumerationDatatypeDefinition(next, elementName, childAnnotation, descriptionAnnotation, nextDatatype, binderType);
|
||||
} else if (childAnnotation.enumFactory().getSimpleName().equals("NoEnumFactory") == false) {
|
||||
Class<? extends IBaseEnumFactory<?>> enumFactory = childAnnotation.enumFactory();
|
||||
|
@ -770,7 +797,7 @@ class ModelScanner {
|
|||
|
||||
static Set<Class<? extends IBase>> scanVersionPropertyFile(Set<Class<? extends IBase>> theDatatypes, Map<String, Class<? extends IBaseResource>> theResourceTypes, FhirVersionEnum version) {
|
||||
Set<Class<? extends IBase>> retVal = new HashSet<Class<? extends IBase>>();
|
||||
|
||||
|
||||
InputStream str = version.getVersionImplementation().getFhirVersionPropertiesFile();
|
||||
Properties prop = new Properties();
|
||||
try {
|
||||
|
@ -783,11 +810,11 @@ class ModelScanner {
|
|||
if (theDatatypes != null) {
|
||||
try {
|
||||
// Datatypes
|
||||
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
Class<? extends IBase> dtType = (Class<? extends IBase>) Class.forName(nextValue);
|
||||
retVal.add(dtType);
|
||||
|
||||
|
||||
if (IElement.class.isAssignableFrom(dtType)) {
|
||||
@SuppressWarnings("unchecked")
|
||||
Class<? extends IElement> nextClass = (Class<? extends IElement>) dtType;
|
||||
|
@ -826,16 +853,8 @@ class ModelScanner {
|
|||
} catch (IOException e) {
|
||||
throw new ConfigurationException("Failed to load model property file from classpath: " + "/ca/uhn/fhir/model/dstu/model.properties");
|
||||
}
|
||||
|
||||
|
||||
return retVal;
|
||||
}
|
||||
|
||||
public Map<String, BaseRuntimeElementDefinition<?>> getNameToElementDefinitions() {
|
||||
return myNameToElementDefinitions;
|
||||
}
|
||||
|
||||
public Map<String, RuntimeResourceDefinition> getNameToResourceDefinition() {
|
||||
return myNameToResourceDefinitions;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -2431,6 +2431,11 @@ class ParserState<T> {
|
|||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void attributeValue(String theName, String theValue) throws DataFormatException {
|
||||
// ignore
|
||||
}
|
||||
|
||||
@Override
|
||||
public void enteringNewElement(String theNamespaceURI, String theLocalPart) throws DataFormatException {
|
||||
myDepth++;
|
||||
|
|
|
@ -26,11 +26,32 @@ import java.lang.reflect.ParameterizedType;
|
|||
import java.lang.reflect.Type;
|
||||
import java.lang.reflect.TypeVariable;
|
||||
import java.lang.reflect.WildcardType;
|
||||
import java.util.HashSet;
|
||||
import java.util.LinkedHashSet;
|
||||
import java.util.List;
|
||||
|
||||
public class ReflectionUtil {
|
||||
|
||||
/**
|
||||
* For a field of type List<Enumeration<Foo>>, returns Foo
|
||||
*/
|
||||
public static Class<?> getGenericCollectionTypeOfFieldWithSecondOrderForList(Field next) {
|
||||
if (!List.class.isAssignableFrom(next.getType())) {
|
||||
return getGenericCollectionTypeOfField(next);
|
||||
}
|
||||
|
||||
Class<?> type;
|
||||
ParameterizedType collectionType = (ParameterizedType) next.getGenericType();
|
||||
Type firstArg = collectionType.getActualTypeArguments()[0];
|
||||
if (ParameterizedType.class.isAssignableFrom(firstArg.getClass())) {
|
||||
ParameterizedType pt = ((ParameterizedType) firstArg);
|
||||
Type pt2 = pt.getActualTypeArguments()[0];
|
||||
return (Class<?>) pt2;
|
||||
} else {
|
||||
type = (Class<?>) firstArg;
|
||||
}
|
||||
return type;
|
||||
}
|
||||
|
||||
public static Class<?> getGenericCollectionTypeOfField(Field next) {
|
||||
Class<?> type;
|
||||
ParameterizedType collectionType = (ParameterizedType) next.getGenericType();
|
||||
|
|
|
@ -18,10 +18,13 @@
|
|||
<value>hi , DSTU1 , Health Intersections (DSTU1 FHIR) , http://fhir.healthintersections.com.au/open</value>
|
||||
<value>furored2 , DSTU2 , Spark - Furore (DSTU2 FHIR) , http://spark-dstu2.furore.com/fhir</value>
|
||||
<value>furore , DSTU1 , Spark - Furore (DSTU1 FHIR) , http://spark.furore.com/fhir</value>
|
||||
<value>sof , DSTU2 , SQL on FHIR - HealthConnex (DSTU2 FHIR) , https://sqlonfhir.azurewebsites.net/api</value>
|
||||
<!--
|
||||
<value>blaze , DSTU1 , Blaze (Orion Health) , https://fhir.orionhealth.com/blaze/fhir</value>
|
||||
<value>oridashi , DSTU1 , Oridashi , http://demo.oridashi.com.au:8190</value>
|
||||
<!-- <value>fhirbase , DSTU1 , FHIRPlace (Health Samurai) , http://try-fhirplace.hospital-systems.com/ </value> -->
|
||||
<value>fhirbase , DSTU1 , FHIRPlace (Health Samurai) , http://try-fhirplace.hospital-systems.com/ </value>
|
||||
<value>nortal , DSTU1 , Nortal , http://fhir.nortal.com/fhir-server</value>
|
||||
-->
|
||||
</list>
|
||||
</property>
|
||||
</bean>
|
||||
|
|
|
@ -43,6 +43,12 @@
|
|||
<version>9.6.0-4</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>com.google.code.gson</groupId>
|
||||
<artifactId>gson</artifactId>
|
||||
<version>2.3.1</version>
|
||||
</dependency>
|
||||
|
||||
<!-- Testing -->
|
||||
<dependency>
|
||||
<groupId>junit</groupId>
|
||||
|
|
|
@ -20,8 +20,7 @@ package ca.uhn.fhir.rest.server.provider.dstu2hl7org;
|
|||
* #L%
|
||||
*/
|
||||
|
||||
import static org.apache.commons.lang3.StringUtils.isBlank;
|
||||
import static org.apache.commons.lang3.StringUtils.isNotBlank;
|
||||
import static org.apache.commons.lang3.StringUtils.*;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashSet;
|
||||
|
@ -33,17 +32,17 @@ import org.apache.commons.lang3.Validate;
|
|||
import org.hl7.fhir.instance.model.Bundle;
|
||||
import org.hl7.fhir.instance.model.Bundle.BundleEntryComponent;
|
||||
import org.hl7.fhir.instance.model.Bundle.BundleLinkComponent;
|
||||
import org.hl7.fhir.instance.model.Bundle.HttpVerb;
|
||||
import org.hl7.fhir.instance.model.Bundle.HTTPVerb;
|
||||
import org.hl7.fhir.instance.model.Bundle.SearchEntryMode;
|
||||
import org.hl7.fhir.instance.model.IdType;
|
||||
import org.hl7.fhir.instance.model.InstantType;
|
||||
import org.hl7.fhir.instance.model.OperationOutcome;
|
||||
import org.hl7.fhir.instance.model.Resource;
|
||||
import org.hl7.fhir.instance.model.api.IBaseResource;
|
||||
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.IDomainResource;
|
||||
import org.hl7.fhir.instance.model.api.IIdType;
|
||||
import org.hl7.fhir.instance.model.api.IBaseReference;
|
||||
|
||||
import ca.uhn.fhir.context.FhirContext;
|
||||
import ca.uhn.fhir.context.RuntimeResourceDefinition;
|
||||
|
@ -295,9 +294,9 @@ public class Dstu2Hl7OrgBundleFactory implements IVersionSpecificBundleFactory {
|
|||
|
||||
nextEntry.setResource((Resource) next);
|
||||
if (next.getIdElement().isEmpty()) {
|
||||
nextEntry.getTransaction().setMethod(HttpVerb.POST);
|
||||
nextEntry.getTransaction().setMethod(HTTPVerb.POST);
|
||||
} else {
|
||||
nextEntry.getTransaction().setMethod(HttpVerb.PUT);
|
||||
nextEntry.getTransaction().setMethod(HTTPVerb.PUT);
|
||||
if (next.getIdElement().isAbsolute()) {
|
||||
nextEntry.getTransaction().setUrl(next.getIdElement().getValue());
|
||||
} else {
|
||||
|
|
|
@ -0,0 +1,80 @@
|
|||
package ca.uhn.fhir.validation;
|
||||
|
||||
import java.io.ByteArrayInputStream;
|
||||
import java.io.IOException;
|
||||
import java.io.StringReader;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
||||
import javax.xml.parsers.DocumentBuilder;
|
||||
import javax.xml.parsers.DocumentBuilderFactory;
|
||||
|
||||
import org.apache.commons.io.IOUtils;
|
||||
import org.hl7.fhir.instance.model.OperationOutcome.IssueSeverity;
|
||||
import org.hl7.fhir.instance.model.StructureDefinition;
|
||||
import org.hl7.fhir.instance.model.api.IBaseResource;
|
||||
import org.hl7.fhir.instance.utils.WorkerContext;
|
||||
import org.hl7.fhir.instance.validation.ValidationMessage;
|
||||
import org.hl7.fhir.utilities.xml.XMLUtil;
|
||||
import org.w3c.dom.Document;
|
||||
import org.xml.sax.InputSource;
|
||||
|
||||
import ca.uhn.fhir.context.ConfigurationException;
|
||||
import ca.uhn.fhir.context.FhirContext;
|
||||
import ca.uhn.fhir.rest.server.exceptions.InternalErrorException;
|
||||
|
||||
public class InstanceValidator {
|
||||
|
||||
private static final org.slf4j.Logger ourLog = org.slf4j.LoggerFactory.getLogger(InstanceValidator.class);
|
||||
|
||||
private FhirContext myCtx;
|
||||
|
||||
private DocumentBuilderFactory myDocBuilderFactory;
|
||||
|
||||
InstanceValidator(FhirContext theContext) {
|
||||
myCtx = theContext;
|
||||
|
||||
myDocBuilderFactory = DocumentBuilderFactory.newInstance();
|
||||
myDocBuilderFactory.setNamespaceAware(true);
|
||||
}
|
||||
|
||||
public List<ValidationMessage> validate(String theInput, Class<? extends IBaseResource> theResourceType) {
|
||||
WorkerContext workerContext = new WorkerContext();
|
||||
org.hl7.fhir.instance.validation.InstanceValidator v;
|
||||
try {
|
||||
v = new org.hl7.fhir.instance.validation.InstanceValidator(workerContext);
|
||||
} catch (Exception e) {
|
||||
throw new ConfigurationException(e);
|
||||
}
|
||||
|
||||
Document document;
|
||||
try {
|
||||
DocumentBuilder builder = myDocBuilderFactory.newDocumentBuilder();
|
||||
InputSource src = new InputSource(new StringReader(theInput));
|
||||
document = builder.parse(src);
|
||||
} catch (Exception e2) {
|
||||
ourLog.error("Failure to parse XML input", e2);
|
||||
ValidationMessage m = new ValidationMessage();
|
||||
m.setLevel(IssueSeverity.FATAL);
|
||||
m.setMessage("Failed to parse input, it does not appear to be valid XML:" + e2.getMessage());
|
||||
return Collections.singletonList(m);
|
||||
}
|
||||
|
||||
String profileCpName = "/org/hl7/fhir/instance/model/profile/" + myCtx.getResourceDefinition(theResourceType).getName().toLowerCase() + ".profile.xml";
|
||||
String profileText;
|
||||
try {
|
||||
profileText = IOUtils.toString(InstanceValidator.class.getResourceAsStream(profileCpName), "UTF-8");
|
||||
} catch (IOException e1) {
|
||||
throw new ConfigurationException("Failed to load profile from classpath: " + profileCpName, e1);
|
||||
}
|
||||
StructureDefinition profile = myCtx.newXmlParser().parseResource(StructureDefinition.class, profileText);
|
||||
|
||||
try {
|
||||
List<ValidationMessage> results = v.validate(document, profile);
|
||||
return results;
|
||||
} catch (Exception e) {
|
||||
throw new InternalErrorException("Unexpected failure while validating resource", e);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,55 @@
|
|||
package org.hl7.fhir.instance.client;
|
||||
|
||||
|
||||
/*
|
||||
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.
|
||||
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* Enumeration for preferred AtomFeed resource formats.
|
||||
*
|
||||
* @author Claude Nanjo
|
||||
*
|
||||
*/
|
||||
public enum FeedFormat {
|
||||
FEED_XML("application/atom+xml"),
|
||||
FEED_JSON("application/fhir+json");
|
||||
|
||||
|
||||
private String header;
|
||||
|
||||
private FeedFormat(String header) {
|
||||
this.header = header;
|
||||
}
|
||||
|
||||
public String getHeader() {
|
||||
return this.header;
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,409 @@
|
|||
package org.hl7.fhir.instance.client;
|
||||
|
||||
/*
|
||||
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.
|
||||
|
||||
*/
|
||||
|
||||
import java.net.URISyntaxException;
|
||||
import java.util.Calendar;
|
||||
import java.util.Date;
|
||||
import java.util.Map;
|
||||
|
||||
import org.hl7.fhir.instance.model.Bundle;
|
||||
import org.hl7.fhir.instance.model.Conformance;
|
||||
import org.hl7.fhir.instance.model.OperationOutcome;
|
||||
import org.hl7.fhir.instance.model.Parameters;
|
||||
import org.hl7.fhir.instance.model.Resource;
|
||||
import org.hl7.fhir.instance.model.ValueSet;
|
||||
|
||||
|
||||
/**
|
||||
* FHIR RESTful Client Interface.
|
||||
*
|
||||
* @author Claude Nanjo
|
||||
* @author Grahame Grieve
|
||||
*
|
||||
*/
|
||||
public interface IFHIRClient {
|
||||
|
||||
public interface VersionInfo {
|
||||
public String getClientJavaLibVersion();
|
||||
public String getFhirJavaLibVersion();
|
||||
public String getFhirJavaLibRevision();
|
||||
public String getFhirServerVersion();
|
||||
public String getFhirServerSoftware();
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the Java verion of client and reference implementation, the
|
||||
* client FHIR version, the server FHIR version, and the server
|
||||
* software version. The server information will be blank if no
|
||||
* service URL is provided
|
||||
*
|
||||
* @return the version information
|
||||
*/
|
||||
public VersionInfo getVersions();
|
||||
|
||||
|
||||
/**
|
||||
* Call method to initialize FHIR client. This method must be invoked
|
||||
* with a valid base server URL prior to using the client.
|
||||
*
|
||||
* Invalid base server URLs will result in a URISyntaxException being thrown.
|
||||
*
|
||||
* @param baseServiceUrl Base service URL for FHIR Service.
|
||||
* @return
|
||||
* @throws URISyntaxException
|
||||
*/
|
||||
public IFHIRClient initialize(String baseServiceUrl) throws URISyntaxException;
|
||||
|
||||
/**
|
||||
*
|
||||
* Call method to initialize FHIR client. This method must be invoked
|
||||
* with a valid base server URL prior to using the client.
|
||||
*
|
||||
* Invalid base server URLs will result in a URISyntaxException being thrown.
|
||||
*
|
||||
* @param baseServiceUrl The base service URL
|
||||
* @param resultCount Maximum size of the result set
|
||||
* @throws URISyntaxException
|
||||
*/
|
||||
public void initialize(String baseServiceUrl, int recordCount) throws URISyntaxException;
|
||||
|
||||
/**
|
||||
* Override the default resource format of 'application/fhir+xml'. This format is
|
||||
* used to set Accept and Content-Type headers for client requests.
|
||||
*
|
||||
* @param resourceFormat
|
||||
*/
|
||||
public void setPreferredResourceFormat(ResourceFormat resourceFormat);
|
||||
|
||||
/**
|
||||
* Returns the resource format in effect.
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
public String getPreferredResourceFormat();
|
||||
|
||||
/**
|
||||
* Override the default feed format of 'application/atom+xml'. This format is
|
||||
* used to set Accept and Content-Type headers for client requests.
|
||||
*
|
||||
* @param resourceFormat
|
||||
*/
|
||||
public void setPreferredFeedFormat(FeedFormat feedFormat);
|
||||
|
||||
/**
|
||||
* Returns the feed format in effect.
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
public String getPreferredFeedFormat();
|
||||
|
||||
/**
|
||||
* Returns the maximum record count specified for list operations
|
||||
* such as search and history.
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
public int getMaximumRecordCount();
|
||||
|
||||
/**
|
||||
* Sets the maximum record count for list operations such as history
|
||||
* and search.
|
||||
*
|
||||
* @param recordCount
|
||||
*/
|
||||
public void setMaximumRecordCount(int recordCount);
|
||||
|
||||
/**
|
||||
* Method returns a conformance statement for the system queried.
|
||||
* @return
|
||||
*/
|
||||
public Conformance getConformanceStatement();
|
||||
|
||||
/**
|
||||
* Method returns a conformance statement for the system queried.
|
||||
*
|
||||
* @param useOptionsVerb If 'true', use OPTION rather than GET.
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
public Conformance getConformanceStatement(boolean useOptionsVerb);
|
||||
|
||||
/**
|
||||
* Method returns a conformance statement for the system queried.
|
||||
* @return
|
||||
*/
|
||||
public Conformance getConformanceStatementQuick();
|
||||
|
||||
/**
|
||||
* Method returns a conformance statement for the system queried.
|
||||
*
|
||||
* @param useOptionsVerb If 'true', use OPTION rather than GET.
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
public Conformance getConformanceStatementQuick(boolean useOptionsVerb);
|
||||
|
||||
/**
|
||||
* Read the current state of a resource.
|
||||
*
|
||||
* @param resource
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
public <T extends Resource> T read(Class<T> resource, String id);
|
||||
|
||||
/**
|
||||
* Read the state of a specific version of the resource
|
||||
*
|
||||
* @param resource
|
||||
* @param id
|
||||
* @param versionid
|
||||
* @return
|
||||
*/
|
||||
public <T extends Resource> T vread(Class<T> resource, String id, String versionid);
|
||||
|
||||
/**
|
||||
* Update an existing resource by its id or create it if it is a new resource, not present on the server
|
||||
*
|
||||
* @param resourceClass
|
||||
* @param resource
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
public <T extends Resource> T update(Class<T> resourceClass, T resource, String id);
|
||||
|
||||
/**
|
||||
* Delete the resource with the given ID.
|
||||
*
|
||||
* @param resourceClass
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
public <T extends Resource> boolean delete(Class<T> resourceClass, String id);
|
||||
|
||||
/**
|
||||
* Create a new resource with a server assigned id. Return the newly created
|
||||
* resource with the id the server assigned.
|
||||
*
|
||||
* @param resourceClass
|
||||
* @param resource
|
||||
* @return
|
||||
*/
|
||||
public <T extends Resource> OperationOutcome create(Class<T> resourceClass, T resource);
|
||||
|
||||
/**
|
||||
* Retrieve the update history for a resource with given id since last update time.
|
||||
* Last update may be null TODO - ensure this is the case.
|
||||
*
|
||||
* @param lastUpdate
|
||||
* @param resourceClass
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
public <T extends Resource> Bundle history(Calendar lastUpdate, Class<T> resourceClass, String id);
|
||||
public <T extends Resource> Bundle history(Date lastUpdate, Class<T> resourceClass, String id);
|
||||
|
||||
/**
|
||||
* Retrieve the entire update history for a resource with the given id.
|
||||
* Last update may be null TODO - ensure this is the case.
|
||||
*
|
||||
* @param lastUpdate
|
||||
* @param resourceClass
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
public <T extends Resource> Bundle history(Class<T> resource, String id);
|
||||
|
||||
/**
|
||||
* Retrieve the update history for a resource type since the specified calendar date.
|
||||
* Last update may be null TODO - ensure this is the case.
|
||||
*
|
||||
* @param lastUpdate
|
||||
* @param resourceClass
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
public <T extends Resource> Bundle history(Calendar lastUpdate, Class<T> resourceClass);
|
||||
public <T extends Resource> Bundle history(Date lastUpdate, Class<T> resourceClass);
|
||||
public <T extends Resource> Bundle history(Class<T> resourceClass);
|
||||
|
||||
/**
|
||||
* Retrieve the update history for all resource types since the specified calendar date.
|
||||
* Last update may be null
|
||||
*
|
||||
* Note:
|
||||
*
|
||||
* @param lastUpdate
|
||||
* @param resourceClass
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
public <T extends Resource> Bundle history(Calendar lastUpdate);
|
||||
public <T extends Resource> Bundle history(Date lastUpdate);
|
||||
|
||||
/**
|
||||
* Retrieve the update history for all resource types since the start of server records.
|
||||
*
|
||||
* Note:
|
||||
*
|
||||
* @param lastUpdate
|
||||
* @param resourceClass
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
public <T extends Resource> Bundle history();
|
||||
|
||||
/**
|
||||
* Validate resource payload.
|
||||
*
|
||||
* @param resourceClass
|
||||
* @param resource
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
public <T extends Resource> OperationOutcome validate(Class<T> resourceClass, T resource, String id);
|
||||
|
||||
/**
|
||||
* Return all results matching search query parameters for the given resource class.
|
||||
*
|
||||
* @param resourceClass
|
||||
* @param params
|
||||
* @return
|
||||
*/
|
||||
public <T extends Resource> Bundle search(Class<T> resourceClass, Map<String, String> params);
|
||||
|
||||
/**
|
||||
* Return all results matching search query parameters for the given resource class.
|
||||
* This includes a resource as one of the parameters, and performs a post
|
||||
*
|
||||
* @param resourceClass
|
||||
* @param params
|
||||
* @return
|
||||
*/
|
||||
public <T extends Resource> Bundle searchPost(Class<T> resourceClass, T resource, Map<String, String> params);
|
||||
|
||||
/**
|
||||
* Update or create a set of resources
|
||||
*
|
||||
* @param batch
|
||||
* @return
|
||||
*/
|
||||
public Bundle transaction(Bundle batch);
|
||||
|
||||
|
||||
// /**
|
||||
// * Get a list of all tags on server
|
||||
// *
|
||||
// * GET [base]/_tags
|
||||
// */
|
||||
// public List<Coding> getAllTags();
|
||||
//
|
||||
// /**
|
||||
// * Get a list of all tags used for the nominated resource type
|
||||
// *
|
||||
// * GET [base]/[type]/_tags
|
||||
// */
|
||||
// public <T extends Resource> List<Coding> getAllTagsForResourceType(Class<T> resourceClass);
|
||||
//
|
||||
// /**
|
||||
// * Get a list of all tags affixed to the nominated resource. This duplicates the HTTP header entries
|
||||
// *
|
||||
// * GET [base]/[type]/[id]/_tags
|
||||
// */
|
||||
// public <T extends Resource> List<Coding> getTagsForReference(Class<T> resource, String id);
|
||||
//
|
||||
// /**
|
||||
// * Get a list of all tags affixed to the nominated version of the resource. This duplicates the HTTP header entries
|
||||
// *
|
||||
// * GET [base]/[type]/[id]/_history/[vid]/_tags
|
||||
// */
|
||||
// public <T extends Resource> List<Coding> getTagsForResourceVersion(Class<T> resource, String id, String versionId);
|
||||
//
|
||||
// /**
|
||||
// * Remove all tags in the provided list from the list of tags for the nominated resource
|
||||
// *
|
||||
// * DELETE [base]/[type]/[id]/_tags
|
||||
// */
|
||||
// //public <T extends Resource> boolean deleteTagsForReference(Class<T> resourceClass, String id);
|
||||
//
|
||||
// /**
|
||||
// * Remove tags in the provided list from the list of tags for the nominated version of the resource
|
||||
// *
|
||||
// * DELETE [base]/[type]/[id]/_history/[vid]/_tags
|
||||
// */
|
||||
// public <T extends Resource> List<Coding> deleteTags(List<Coding> tags, Class<T> resourceClass, String id, String version);
|
||||
//
|
||||
// /**
|
||||
// * Affix tags in the list to the nominated resource
|
||||
// *
|
||||
// * POST [base]/[type]/[id]/_tags
|
||||
// * @return
|
||||
// */
|
||||
// public <T extends Resource> List<Coding> createTags(List<Coding> tags, Class<T> resourceClass, String id);
|
||||
//
|
||||
// /**
|
||||
// * Affix tags in the list to the nominated version of the resource
|
||||
// *
|
||||
// * POST [base]/[type]/[id]/_history/[vid]/_tags
|
||||
// *
|
||||
// * @return
|
||||
// */
|
||||
// public <T extends Resource> List<Coding> createTags(List<Coding> tags, Class<T> resourceClass, String id, String version);
|
||||
//
|
||||
/**
|
||||
* Use this to follow a link found in a feed (e.g. paging in a search)
|
||||
*
|
||||
* @param link - the URL provided by the server
|
||||
* @return the feed the server returns
|
||||
*/
|
||||
public Bundle fetchFeed(String url);
|
||||
|
||||
|
||||
/**
|
||||
* invoke the expand operation and pass the value set for expansion
|
||||
*
|
||||
* @param source
|
||||
* @return
|
||||
* @throws Exception
|
||||
*/
|
||||
public ValueSet expandValueset(ValueSet source) throws Exception;
|
||||
|
||||
|
||||
/**
|
||||
* Invoke an operation at the type level
|
||||
*
|
||||
* @param resourceClass - the type on which to perform the operation
|
||||
* @param name - the name of the operation to invoke
|
||||
* @param params - parameters to pass to the operation. If the parameters are all simple, a GET will be performed
|
||||
* @return
|
||||
*/
|
||||
public <T extends Resource> Parameters operateType(Class<T> resourceClass, String name, Parameters params);
|
||||
}
|
|
@ -0,0 +1,56 @@
|
|||
package org.hl7.fhir.instance.client;
|
||||
|
||||
|
||||
/*
|
||||
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.
|
||||
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* Enumeration for preferred FHIR resource formats.
|
||||
*
|
||||
* @author Claude Nanjo
|
||||
*
|
||||
*/
|
||||
public enum ResourceFormat {
|
||||
|
||||
RESOURCE_XML("application/xml+fhir"),
|
||||
RESOURCE_JSON("application/json+fhir");
|
||||
|
||||
|
||||
private String header;
|
||||
|
||||
private ResourceFormat(String header) {
|
||||
this.header = header;
|
||||
}
|
||||
|
||||
public String getHeader() {
|
||||
return this.header;
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,82 @@
|
|||
package org.hl7.fhir.instance.formats;
|
||||
|
||||
/*
|
||||
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.
|
||||
|
||||
*/
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.net.URI;
|
||||
|
||||
import org.apache.commons.codec.binary.Base64;
|
||||
|
||||
public abstract class FormatUtilities {
|
||||
public static final String ID_REGEX = "[A-Za-z0-9\\-\\.]{1,64}";
|
||||
public static final String FHIR_NS = "http://hl7.org/fhir";
|
||||
public static final String XHTML_NS = "http://www.w3.org/1999/xhtml";
|
||||
|
||||
protected String toString(String value) {
|
||||
return value;
|
||||
}
|
||||
|
||||
protected String toString(int value) {
|
||||
return java.lang.Integer.toString(value);
|
||||
}
|
||||
|
||||
protected String toString(boolean value) {
|
||||
return java.lang.Boolean.toString(value);
|
||||
}
|
||||
|
||||
protected String toString(BigDecimal value) {
|
||||
return value.toString();
|
||||
}
|
||||
|
||||
protected String toString(URI value) {
|
||||
return value.toString();
|
||||
}
|
||||
|
||||
public static String toString(byte[] value) {
|
||||
byte[] encodeBase64 = Base64.encodeBase64(value);
|
||||
return new String(encodeBase64);
|
||||
}
|
||||
|
||||
public static boolean isValidId(String tail) {
|
||||
return tail.matches(ID_REGEX);
|
||||
}
|
||||
|
||||
public static String makeId(String candidate) {
|
||||
StringBuilder b = new StringBuilder();
|
||||
for (char c : candidate.toCharArray())
|
||||
if ((c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z') || (c >= '0' && c <= '9') || c == '.' || c == '-')
|
||||
b.append(c);
|
||||
return b.toString();
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
|
@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
|
|||
|
||||
*/
|
||||
|
||||
// Generated on Fri, May 22, 2015 17:15-0400 for FHIR v0.5.0
|
||||
// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
|
||||
|
||||
import java.util.*;
|
||||
|
||||
|
@ -47,19 +47,19 @@ public class Address extends Type implements ICompositeType {
|
|||
|
||||
public enum AddressUse {
|
||||
/**
|
||||
* A communication address at a home.
|
||||
* A communication address at a home
|
||||
*/
|
||||
HOME,
|
||||
/**
|
||||
* An office address. First choice for business related contacts during business hours.
|
||||
* An office address. First choice for business related contacts during business hours
|
||||
*/
|
||||
WORK,
|
||||
/**
|
||||
* A temporary address. The period can provide more detailed information.
|
||||
* A temporary address. The period can provide more detailed information
|
||||
*/
|
||||
TEMP,
|
||||
/**
|
||||
* This address is no longer in use (or was never correct, but retained for records).
|
||||
* This address is no longer in use (or was never correct, but retained for records)
|
||||
*/
|
||||
OLD,
|
||||
/**
|
||||
|
@ -90,19 +90,19 @@ public class Address extends Type implements ICompositeType {
|
|||
}
|
||||
public String getSystem() {
|
||||
switch (this) {
|
||||
case HOME: return "";
|
||||
case WORK: return "";
|
||||
case TEMP: return "";
|
||||
case OLD: return "";
|
||||
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 "?";
|
||||
}
|
||||
}
|
||||
public String getDefinition() {
|
||||
switch (this) {
|
||||
case HOME: return "A communication address at a home.";
|
||||
case WORK: return "An office address. First choice for business related contacts during business hours.";
|
||||
case TEMP: return "A temporary address. The period can provide more detailed information.";
|
||||
case OLD: return "This address is no longer in use (or was never correct, but retained for records).";
|
||||
case HOME: return "A communication address at a home";
|
||||
case WORK: return "An office address. First choice for business related contacts during business hours";
|
||||
case TEMP: return "A temporary address. The period can provide more detailed information";
|
||||
case OLD: return "This address is no longer in use (or was never correct, but retained for records)";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
|
|
@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
|
|||
|
||||
*/
|
||||
|
||||
// Generated on Fri, May 22, 2015 17:15-0400 for FHIR v0.5.0
|
||||
// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
|
||||
|
||||
import org.hl7.fhir.instance.model.annotations.DatatypeDef;
|
||||
import org.hl7.fhir.instance.model.annotations.Block;
|
||||
|
|
|
@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
|
|||
|
||||
*/
|
||||
|
||||
// Generated on Fri, May 22, 2015 17:15-0400 for FHIR v0.5.0
|
||||
// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
|
||||
|
||||
import java.util.*;
|
||||
|
||||
|
@ -64,7 +64,7 @@ public class AllergyIntolerance extends DomainResource {
|
|||
*/
|
||||
REFUTED,
|
||||
/**
|
||||
* The statement was entered in error and Is not valid.
|
||||
* The statement was entered in error and Is not valid
|
||||
*/
|
||||
ENTEREDINERROR,
|
||||
/**
|
||||
|
@ -98,11 +98,11 @@ public class AllergyIntolerance extends DomainResource {
|
|||
}
|
||||
public String getSystem() {
|
||||
switch (this) {
|
||||
case UNCONFIRMED: return "";
|
||||
case CONFIRMED: return "";
|
||||
case RESOLVED: return "";
|
||||
case REFUTED: return "";
|
||||
case ENTEREDINERROR: return "";
|
||||
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 "?";
|
||||
}
|
||||
}
|
||||
|
@ -112,7 +112,7 @@ public class AllergyIntolerance extends DomainResource {
|
|||
case CONFIRMED: return "A high level of certainty about the propensity for a reaction to the identified Substance, which may include clinical evidence by testing or rechallenge.";
|
||||
case RESOLVED: return "A reaction to the identified Substance has been clinically reassessed by testing or rechallenge and considered to be resolved.";
|
||||
case REFUTED: return "A propensity for a reaction to the identified Substance has been disproven with a high level of clinical certainty, which may include testing or rechallenge, and is refuted.";
|
||||
case ENTEREDINERROR: return "The statement was entered in error and Is not valid.";
|
||||
case ENTEREDINERROR: return "The statement was entered in error and Is not valid";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -170,7 +170,7 @@ public class AllergyIntolerance extends DomainResource {
|
|||
*/
|
||||
HIGH,
|
||||
/**
|
||||
* Unable to assess the potential clinical impact with the information available.
|
||||
* Unable to assess the potential clinical impact with the information available
|
||||
*/
|
||||
UNASSESSIBLE,
|
||||
/**
|
||||
|
@ -198,9 +198,9 @@ public class AllergyIntolerance extends DomainResource {
|
|||
}
|
||||
public String getSystem() {
|
||||
switch (this) {
|
||||
case LOW: return "";
|
||||
case HIGH: return "";
|
||||
case UNASSESSIBLE: return "";
|
||||
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 "?";
|
||||
}
|
||||
}
|
||||
|
@ -208,7 +208,7 @@ public class AllergyIntolerance extends DomainResource {
|
|||
switch (this) {
|
||||
case LOW: return "The potential clinical impact of a future reaction is estimated as low risk: exposure to substance is unlikely to result in a life threatening or organ system threatening outcome. Future exposure to the Substance is considered a relative contra-indication.";
|
||||
case HIGH: return "The potential clinical impact of a future reaction is estimated as high risk: exposure to substance may result in a life threatening or organ system threatening outcome. Future exposure to the Substance may be considered an absolute contra-indication.";
|
||||
case UNASSESSIBLE: return "Unable to assess the potential clinical impact with the information available.";
|
||||
case UNASSESSIBLE: return "Unable to assess the potential clinical impact with the information available";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -277,8 +277,8 @@ public class AllergyIntolerance extends DomainResource {
|
|||
}
|
||||
public String getSystem() {
|
||||
switch (this) {
|
||||
case IMMUNE: return "";
|
||||
case NONIMMUNE: return "";
|
||||
case IMMUNE: return "http://hl7.org.fhir/allergy-intolerance-type";
|
||||
case NONIMMUNE: return "http://hl7.org.fhir/allergy-intolerance-type";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -320,15 +320,15 @@ public class AllergyIntolerance extends DomainResource {
|
|||
|
||||
public enum AllergyIntoleranceCategory {
|
||||
/**
|
||||
* Any substance consumed to provide nutritional support for the body.
|
||||
* Any substance consumed to provide nutritional support for the body
|
||||
*/
|
||||
FOOD,
|
||||
/**
|
||||
* Substances administered to achieve a physiological effect.
|
||||
* Substances administered to achieve a physiological effect
|
||||
*/
|
||||
MEDICATION,
|
||||
/**
|
||||
* Substances that are encountered in the environment.
|
||||
* Substances that are encountered in the environment
|
||||
*/
|
||||
ENVIRONMENT,
|
||||
/**
|
||||
|
@ -356,17 +356,17 @@ public class AllergyIntolerance extends DomainResource {
|
|||
}
|
||||
public String getSystem() {
|
||||
switch (this) {
|
||||
case FOOD: return "";
|
||||
case MEDICATION: return "";
|
||||
case ENVIRONMENT: return "";
|
||||
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 "?";
|
||||
}
|
||||
}
|
||||
public String getDefinition() {
|
||||
switch (this) {
|
||||
case FOOD: return "Any substance consumed to provide nutritional support for the body.";
|
||||
case MEDICATION: return "Substances administered to achieve a physiological effect.";
|
||||
case ENVIRONMENT: return "Substances that are encountered in the environment.";
|
||||
case FOOD: return "Any substance consumed to provide nutritional support for the body";
|
||||
case MEDICATION: return "Substances administered to achieve a physiological effect";
|
||||
case ENVIRONMENT: return "Substances that are encountered in the environment";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -404,7 +404,7 @@ public class AllergyIntolerance extends DomainResource {
|
|||
}
|
||||
}
|
||||
|
||||
public enum ReactionEventCertainty {
|
||||
public enum AllergyIntoleranceCertainty {
|
||||
/**
|
||||
* There is a low level of clinical certainty that the reaction was caused by the identified Substance.
|
||||
*/
|
||||
|
@ -421,7 +421,7 @@ public class AllergyIntolerance extends DomainResource {
|
|||
* added to help the parsers
|
||||
*/
|
||||
NULL;
|
||||
public static ReactionEventCertainty fromCode(String codeString) throws Exception {
|
||||
public static AllergyIntoleranceCertainty fromCode(String codeString) throws Exception {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("unlikely".equals(codeString))
|
||||
|
@ -430,7 +430,7 @@ public class AllergyIntolerance extends DomainResource {
|
|||
return LIKELY;
|
||||
if ("confirmed".equals(codeString))
|
||||
return CONFIRMED;
|
||||
throw new Exception("Unknown ReactionEventCertainty code '"+codeString+"'");
|
||||
throw new Exception("Unknown AllergyIntoleranceCertainty code '"+codeString+"'");
|
||||
}
|
||||
public String toCode() {
|
||||
switch (this) {
|
||||
|
@ -442,9 +442,9 @@ public class AllergyIntolerance extends DomainResource {
|
|||
}
|
||||
public String getSystem() {
|
||||
switch (this) {
|
||||
case UNLIKELY: return "";
|
||||
case LIKELY: return "";
|
||||
case CONFIRMED: return "";
|
||||
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 "?";
|
||||
}
|
||||
}
|
||||
|
@ -466,48 +466,48 @@ public class AllergyIntolerance extends DomainResource {
|
|||
}
|
||||
}
|
||||
|
||||
public static class ReactionEventCertaintyEnumFactory implements EnumFactory<ReactionEventCertainty> {
|
||||
public ReactionEventCertainty fromCode(String codeString) throws IllegalArgumentException {
|
||||
public static class AllergyIntoleranceCertaintyEnumFactory implements EnumFactory<AllergyIntoleranceCertainty> {
|
||||
public AllergyIntoleranceCertainty fromCode(String codeString) throws IllegalArgumentException {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("unlikely".equals(codeString))
|
||||
return ReactionEventCertainty.UNLIKELY;
|
||||
return AllergyIntoleranceCertainty.UNLIKELY;
|
||||
if ("likely".equals(codeString))
|
||||
return ReactionEventCertainty.LIKELY;
|
||||
return AllergyIntoleranceCertainty.LIKELY;
|
||||
if ("confirmed".equals(codeString))
|
||||
return ReactionEventCertainty.CONFIRMED;
|
||||
throw new IllegalArgumentException("Unknown ReactionEventCertainty code '"+codeString+"'");
|
||||
return AllergyIntoleranceCertainty.CONFIRMED;
|
||||
throw new IllegalArgumentException("Unknown AllergyIntoleranceCertainty code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(ReactionEventCertainty code) {
|
||||
if (code == ReactionEventCertainty.UNLIKELY)
|
||||
public String toCode(AllergyIntoleranceCertainty code) {
|
||||
if (code == AllergyIntoleranceCertainty.UNLIKELY)
|
||||
return "unlikely";
|
||||
if (code == ReactionEventCertainty.LIKELY)
|
||||
if (code == AllergyIntoleranceCertainty.LIKELY)
|
||||
return "likely";
|
||||
if (code == ReactionEventCertainty.CONFIRMED)
|
||||
if (code == AllergyIntoleranceCertainty.CONFIRMED)
|
||||
return "confirmed";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
|
||||
public enum ReactionEventSeverity {
|
||||
public enum AllergyIntoleranceSeverity {
|
||||
/**
|
||||
* Causes mild physiological effects.
|
||||
* Causes mild physiological effects
|
||||
*/
|
||||
MILD,
|
||||
/**
|
||||
* Causes moderate physiological effects.
|
||||
* Causes moderate physiological effects
|
||||
*/
|
||||
MODERATE,
|
||||
/**
|
||||
* Causes severe physiological effects.
|
||||
* Causes severe physiological effects
|
||||
*/
|
||||
SEVERE,
|
||||
/**
|
||||
* added to help the parsers
|
||||
*/
|
||||
NULL;
|
||||
public static ReactionEventSeverity fromCode(String codeString) throws Exception {
|
||||
public static AllergyIntoleranceSeverity fromCode(String codeString) throws Exception {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("mild".equals(codeString))
|
||||
|
@ -516,7 +516,7 @@ public class AllergyIntolerance extends DomainResource {
|
|||
return MODERATE;
|
||||
if ("severe".equals(codeString))
|
||||
return SEVERE;
|
||||
throw new Exception("Unknown ReactionEventSeverity code '"+codeString+"'");
|
||||
throw new Exception("Unknown AllergyIntoleranceSeverity code '"+codeString+"'");
|
||||
}
|
||||
public String toCode() {
|
||||
switch (this) {
|
||||
|
@ -528,17 +528,17 @@ public class AllergyIntolerance extends DomainResource {
|
|||
}
|
||||
public String getSystem() {
|
||||
switch (this) {
|
||||
case MILD: return "";
|
||||
case MODERATE: return "";
|
||||
case SEVERE: return "";
|
||||
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 "?";
|
||||
}
|
||||
}
|
||||
public String getDefinition() {
|
||||
switch (this) {
|
||||
case MILD: return "Causes mild physiological effects.";
|
||||
case MODERATE: return "Causes moderate physiological effects.";
|
||||
case SEVERE: return "Causes severe physiological effects.";
|
||||
case MILD: return "Causes mild physiological effects";
|
||||
case MODERATE: return "Causes moderate physiological effects";
|
||||
case SEVERE: return "Causes severe physiological effects";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -552,25 +552,25 @@ public class AllergyIntolerance extends DomainResource {
|
|||
}
|
||||
}
|
||||
|
||||
public static class ReactionEventSeverityEnumFactory implements EnumFactory<ReactionEventSeverity> {
|
||||
public ReactionEventSeverity fromCode(String codeString) throws IllegalArgumentException {
|
||||
public static class AllergyIntoleranceSeverityEnumFactory implements EnumFactory<AllergyIntoleranceSeverity> {
|
||||
public AllergyIntoleranceSeverity fromCode(String codeString) throws IllegalArgumentException {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("mild".equals(codeString))
|
||||
return ReactionEventSeverity.MILD;
|
||||
return AllergyIntoleranceSeverity.MILD;
|
||||
if ("moderate".equals(codeString))
|
||||
return ReactionEventSeverity.MODERATE;
|
||||
return AllergyIntoleranceSeverity.MODERATE;
|
||||
if ("severe".equals(codeString))
|
||||
return ReactionEventSeverity.SEVERE;
|
||||
throw new IllegalArgumentException("Unknown ReactionEventSeverity code '"+codeString+"'");
|
||||
return AllergyIntoleranceSeverity.SEVERE;
|
||||
throw new IllegalArgumentException("Unknown AllergyIntoleranceSeverity code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(ReactionEventSeverity code) {
|
||||
if (code == ReactionEventSeverity.MILD)
|
||||
public String toCode(AllergyIntoleranceSeverity code) {
|
||||
if (code == AllergyIntoleranceSeverity.MILD)
|
||||
return "mild";
|
||||
if (code == ReactionEventSeverity.MODERATE)
|
||||
if (code == AllergyIntoleranceSeverity.MODERATE)
|
||||
return "moderate";
|
||||
if (code == ReactionEventSeverity.SEVERE)
|
||||
if (code == AllergyIntoleranceSeverity.SEVERE)
|
||||
return "severe";
|
||||
return "?";
|
||||
}
|
||||
|
@ -590,7 +590,7 @@ public class AllergyIntolerance extends DomainResource {
|
|||
*/
|
||||
@Child(name = "certainty", type = {CodeType.class}, order=2, min=0, max=1)
|
||||
@Description(shortDefinition="unlikely | likely | confirmed - clinical certainty about the specific substance", formalDefinition="Statement about the degree of clinical certainty that the Specific Substance was the cause of the Manifestation in this reaction event." )
|
||||
protected Enumeration<ReactionEventCertainty> certainty;
|
||||
protected Enumeration<AllergyIntoleranceCertainty> certainty;
|
||||
|
||||
/**
|
||||
* Clinical symptoms and/or signs that are observed or associated with the Adverse Reaction Event.
|
||||
|
@ -625,7 +625,7 @@ public class AllergyIntolerance extends DomainResource {
|
|||
*/
|
||||
@Child(name = "severity", type = {CodeType.class}, order=7, min=0, max=1)
|
||||
@Description(shortDefinition="mild | moderate | severe (of event as a whole)", formalDefinition="Clinical assessment of the severity of the reaction event as a whole, potentially considering multiple different manifestations." )
|
||||
protected Enumeration<ReactionEventSeverity> severity;
|
||||
protected Enumeration<AllergyIntoleranceSeverity> severity;
|
||||
|
||||
/**
|
||||
* Identification of the route by which the subject was exposed to the substance.
|
||||
|
@ -641,7 +641,7 @@ public class AllergyIntolerance extends DomainResource {
|
|||
@Description(shortDefinition="Text about event not captured in other fields", formalDefinition="Additional text about the Adverse Reaction event not captured in other fields." )
|
||||
protected StringType comment;
|
||||
|
||||
private static final long serialVersionUID = -1773271720L;
|
||||
private static final long serialVersionUID = -1046669732L;
|
||||
|
||||
/*
|
||||
* Constructor
|
||||
|
@ -677,12 +677,12 @@ public class AllergyIntolerance extends DomainResource {
|
|||
/**
|
||||
* @return {@link #certainty} (Statement about the degree of clinical certainty that the Specific Substance was the cause of the Manifestation in this reaction event.). This is the underlying object with id, value and extensions. The accessor "getCertainty" gives direct access to the value
|
||||
*/
|
||||
public Enumeration<ReactionEventCertainty> getCertaintyElement() {
|
||||
public Enumeration<AllergyIntoleranceCertainty> getCertaintyElement() {
|
||||
if (this.certainty == null)
|
||||
if (Configuration.errorOnAutoCreate())
|
||||
throw new Error("Attempt to auto-create AllergyIntoleranceEventComponent.certainty");
|
||||
else if (Configuration.doAutoCreate())
|
||||
this.certainty = new Enumeration<ReactionEventCertainty>(new ReactionEventCertaintyEnumFactory()); // bb
|
||||
this.certainty = new Enumeration<AllergyIntoleranceCertainty>(new AllergyIntoleranceCertaintyEnumFactory()); // bb
|
||||
return this.certainty;
|
||||
}
|
||||
|
||||
|
@ -697,7 +697,7 @@ public class AllergyIntolerance extends DomainResource {
|
|||
/**
|
||||
* @param value {@link #certainty} (Statement about the degree of clinical certainty that the Specific Substance was the cause of the Manifestation in this reaction event.). This is the underlying object with id, value and extensions. The accessor "getCertainty" gives direct access to the value
|
||||
*/
|
||||
public AllergyIntoleranceEventComponent setCertaintyElement(Enumeration<ReactionEventCertainty> value) {
|
||||
public AllergyIntoleranceEventComponent setCertaintyElement(Enumeration<AllergyIntoleranceCertainty> value) {
|
||||
this.certainty = value;
|
||||
return this;
|
||||
}
|
||||
|
@ -705,19 +705,19 @@ public class AllergyIntolerance extends DomainResource {
|
|||
/**
|
||||
* @return Statement about the degree of clinical certainty that the Specific Substance was the cause of the Manifestation in this reaction event.
|
||||
*/
|
||||
public ReactionEventCertainty getCertainty() {
|
||||
public AllergyIntoleranceCertainty getCertainty() {
|
||||
return this.certainty == null ? null : this.certainty.getValue();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value Statement about the degree of clinical certainty that the Specific Substance was the cause of the Manifestation in this reaction event.
|
||||
*/
|
||||
public AllergyIntoleranceEventComponent setCertainty(ReactionEventCertainty value) {
|
||||
public AllergyIntoleranceEventComponent setCertainty(AllergyIntoleranceCertainty value) {
|
||||
if (value == null)
|
||||
this.certainty = null;
|
||||
else {
|
||||
if (this.certainty == null)
|
||||
this.certainty = new Enumeration<ReactionEventCertainty>(new ReactionEventCertaintyEnumFactory());
|
||||
this.certainty = new Enumeration<AllergyIntoleranceCertainty>(new AllergyIntoleranceCertaintyEnumFactory());
|
||||
this.certainty.setValue(value);
|
||||
}
|
||||
return this;
|
||||
|
@ -888,12 +888,12 @@ public class AllergyIntolerance extends DomainResource {
|
|||
/**
|
||||
* @return {@link #severity} (Clinical assessment of the severity of the reaction event as a whole, potentially considering multiple different manifestations.). This is the underlying object with id, value and extensions. The accessor "getSeverity" gives direct access to the value
|
||||
*/
|
||||
public Enumeration<ReactionEventSeverity> getSeverityElement() {
|
||||
public Enumeration<AllergyIntoleranceSeverity> getSeverityElement() {
|
||||
if (this.severity == null)
|
||||
if (Configuration.errorOnAutoCreate())
|
||||
throw new Error("Attempt to auto-create AllergyIntoleranceEventComponent.severity");
|
||||
else if (Configuration.doAutoCreate())
|
||||
this.severity = new Enumeration<ReactionEventSeverity>(new ReactionEventSeverityEnumFactory()); // bb
|
||||
this.severity = new Enumeration<AllergyIntoleranceSeverity>(new AllergyIntoleranceSeverityEnumFactory()); // bb
|
||||
return this.severity;
|
||||
}
|
||||
|
||||
|
@ -908,7 +908,7 @@ public class AllergyIntolerance extends DomainResource {
|
|||
/**
|
||||
* @param value {@link #severity} (Clinical assessment of the severity of the reaction event as a whole, potentially considering multiple different manifestations.). This is the underlying object with id, value and extensions. The accessor "getSeverity" gives direct access to the value
|
||||
*/
|
||||
public AllergyIntoleranceEventComponent setSeverityElement(Enumeration<ReactionEventSeverity> value) {
|
||||
public AllergyIntoleranceEventComponent setSeverityElement(Enumeration<AllergyIntoleranceSeverity> value) {
|
||||
this.severity = value;
|
||||
return this;
|
||||
}
|
||||
|
@ -916,19 +916,19 @@ public class AllergyIntolerance extends DomainResource {
|
|||
/**
|
||||
* @return Clinical assessment of the severity of the reaction event as a whole, potentially considering multiple different manifestations.
|
||||
*/
|
||||
public ReactionEventSeverity getSeverity() {
|
||||
public AllergyIntoleranceSeverity getSeverity() {
|
||||
return this.severity == null ? null : this.severity.getValue();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value Clinical assessment of the severity of the reaction event as a whole, potentially considering multiple different manifestations.
|
||||
*/
|
||||
public AllergyIntoleranceEventComponent setSeverity(ReactionEventSeverity value) {
|
||||
public AllergyIntoleranceEventComponent setSeverity(AllergyIntoleranceSeverity value) {
|
||||
if (value == null)
|
||||
this.severity = null;
|
||||
else {
|
||||
if (this.severity == null)
|
||||
this.severity = new Enumeration<ReactionEventSeverity>(new ReactionEventSeverityEnumFactory());
|
||||
this.severity = new Enumeration<AllergyIntoleranceSeverity>(new AllergyIntoleranceSeverityEnumFactory());
|
||||
this.severity.setValue(value);
|
||||
}
|
||||
return this;
|
||||
|
|
|
@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
|
|||
|
||||
*/
|
||||
|
||||
// Generated on Fri, May 22, 2015 17:15-0400 for FHIR v0.5.0
|
||||
// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
|
||||
|
||||
import java.util.*;
|
||||
|
||||
|
@ -46,36 +46,36 @@ import org.hl7.fhir.instance.model.api.*;
|
|||
@ResourceDef(name="Appointment", profile="http://hl7.org/fhir/Profile/Appointment")
|
||||
public class Appointment extends DomainResource {
|
||||
|
||||
public enum Appointmentstatus {
|
||||
public enum AppointmentStatus {
|
||||
/**
|
||||
* Some or all of the participant(s) have not finalized their acceptance of the appointment request.
|
||||
* Some or all of the participant(s) have not finalized their acceptance of the appointment request
|
||||
*/
|
||||
PENDING,
|
||||
/**
|
||||
* All participant(s) have been considered and the appointment is confirmed to go ahead at the date/times specified.
|
||||
* All participant(s) have been considered and the appointment is confirmed to go ahead at the date/times specified
|
||||
*/
|
||||
BOOKED,
|
||||
/**
|
||||
* Some of the patients have arrived.
|
||||
* Some of the patients have arrived
|
||||
*/
|
||||
ARRIVED,
|
||||
/**
|
||||
* This appointment has completed and may have resulted in an encounter.
|
||||
* This appointment has completed and may have resulted in an encounter
|
||||
*/
|
||||
FULFILLED,
|
||||
/**
|
||||
* The appointment has been cancelled.
|
||||
* The appointment has been cancelled
|
||||
*/
|
||||
CANCELLED,
|
||||
/**
|
||||
* Some or all of the participant(s) have not/did not appear for the appointment (usually the patient).
|
||||
* Some or all of the participant(s) have not/did not appear for the appointment (usually the patient)
|
||||
*/
|
||||
NOSHOW,
|
||||
/**
|
||||
* added to help the parsers
|
||||
*/
|
||||
NULL;
|
||||
public static Appointmentstatus fromCode(String codeString) throws Exception {
|
||||
public static AppointmentStatus fromCode(String codeString) throws Exception {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("pending".equals(codeString))
|
||||
|
@ -90,7 +90,7 @@ public class Appointment extends DomainResource {
|
|||
return CANCELLED;
|
||||
if ("noshow".equals(codeString))
|
||||
return NOSHOW;
|
||||
throw new Exception("Unknown Appointmentstatus code '"+codeString+"'");
|
||||
throw new Exception("Unknown AppointmentStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode() {
|
||||
switch (this) {
|
||||
|
@ -105,23 +105,23 @@ public class Appointment extends DomainResource {
|
|||
}
|
||||
public String getSystem() {
|
||||
switch (this) {
|
||||
case PENDING: return "";
|
||||
case BOOKED: return "";
|
||||
case ARRIVED: return "";
|
||||
case FULFILLED: return "";
|
||||
case CANCELLED: return "";
|
||||
case NOSHOW: return "";
|
||||
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 "?";
|
||||
}
|
||||
}
|
||||
public String getDefinition() {
|
||||
switch (this) {
|
||||
case PENDING: return "Some or all of the participant(s) have not finalized their acceptance of the appointment request.";
|
||||
case BOOKED: return "All participant(s) have been considered and the appointment is confirmed to go ahead at the date/times specified.";
|
||||
case ARRIVED: return "Some of the patients have arrived.";
|
||||
case FULFILLED: return "This appointment has completed and may have resulted in an encounter.";
|
||||
case CANCELLED: return "The appointment has been cancelled.";
|
||||
case NOSHOW: return "Some or all of the participant(s) have not/did not appear for the appointment (usually the patient).";
|
||||
case PENDING: return "Some or all of the participant(s) have not finalized their acceptance of the appointment request";
|
||||
case BOOKED: return "All participant(s) have been considered and the appointment is confirmed to go ahead at the date/times specified";
|
||||
case ARRIVED: return "Some of the patients have arrived";
|
||||
case FULFILLED: return "This appointment has completed and may have resulted in an encounter";
|
||||
case CANCELLED: return "The appointment has been cancelled";
|
||||
case NOSHOW: return "Some or all of the participant(s) have not/did not appear for the appointment (usually the patient)";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -138,60 +138,60 @@ public class Appointment extends DomainResource {
|
|||
}
|
||||
}
|
||||
|
||||
public static class AppointmentstatusEnumFactory implements EnumFactory<Appointmentstatus> {
|
||||
public Appointmentstatus fromCode(String codeString) throws IllegalArgumentException {
|
||||
public static class AppointmentStatusEnumFactory implements EnumFactory<AppointmentStatus> {
|
||||
public AppointmentStatus fromCode(String codeString) throws IllegalArgumentException {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("pending".equals(codeString))
|
||||
return Appointmentstatus.PENDING;
|
||||
return AppointmentStatus.PENDING;
|
||||
if ("booked".equals(codeString))
|
||||
return Appointmentstatus.BOOKED;
|
||||
return AppointmentStatus.BOOKED;
|
||||
if ("arrived".equals(codeString))
|
||||
return Appointmentstatus.ARRIVED;
|
||||
return AppointmentStatus.ARRIVED;
|
||||
if ("fulfilled".equals(codeString))
|
||||
return Appointmentstatus.FULFILLED;
|
||||
return AppointmentStatus.FULFILLED;
|
||||
if ("cancelled".equals(codeString))
|
||||
return Appointmentstatus.CANCELLED;
|
||||
return AppointmentStatus.CANCELLED;
|
||||
if ("noshow".equals(codeString))
|
||||
return Appointmentstatus.NOSHOW;
|
||||
throw new IllegalArgumentException("Unknown Appointmentstatus code '"+codeString+"'");
|
||||
return AppointmentStatus.NOSHOW;
|
||||
throw new IllegalArgumentException("Unknown AppointmentStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(Appointmentstatus code) {
|
||||
if (code == Appointmentstatus.PENDING)
|
||||
public String toCode(AppointmentStatus code) {
|
||||
if (code == AppointmentStatus.PENDING)
|
||||
return "pending";
|
||||
if (code == Appointmentstatus.BOOKED)
|
||||
if (code == AppointmentStatus.BOOKED)
|
||||
return "booked";
|
||||
if (code == Appointmentstatus.ARRIVED)
|
||||
if (code == AppointmentStatus.ARRIVED)
|
||||
return "arrived";
|
||||
if (code == Appointmentstatus.FULFILLED)
|
||||
if (code == AppointmentStatus.FULFILLED)
|
||||
return "fulfilled";
|
||||
if (code == Appointmentstatus.CANCELLED)
|
||||
if (code == AppointmentStatus.CANCELLED)
|
||||
return "cancelled";
|
||||
if (code == Appointmentstatus.NOSHOW)
|
||||
if (code == AppointmentStatus.NOSHOW)
|
||||
return "noshow";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
|
||||
public enum Participantrequired {
|
||||
public enum ParticipantRequired {
|
||||
/**
|
||||
* The participant is required to attend the appointment.
|
||||
* The participant is required to attend the appointment
|
||||
*/
|
||||
REQUIRED,
|
||||
/**
|
||||
* The participant may optionally attend the appointment.
|
||||
* The participant may optionally attend the appointment
|
||||
*/
|
||||
OPTIONAL,
|
||||
/**
|
||||
* The participant is excluded from the appointment, and may not be informed of the appointment taking place. (appointment is about them, not for them - such as 2 doctors discussing results about a patient's test).
|
||||
* The participant is excluded from the appointment, and may not be informed of the appointment taking place. (appointment is about them, not for them - such as 2 doctors discussing results about a patient's test)
|
||||
*/
|
||||
INFORMATIONONLY,
|
||||
/**
|
||||
* added to help the parsers
|
||||
*/
|
||||
NULL;
|
||||
public static Participantrequired fromCode(String codeString) throws Exception {
|
||||
public static ParticipantRequired fromCode(String codeString) throws Exception {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("required".equals(codeString))
|
||||
|
@ -200,7 +200,7 @@ public class Appointment extends DomainResource {
|
|||
return OPTIONAL;
|
||||
if ("information-only".equals(codeString))
|
||||
return INFORMATIONONLY;
|
||||
throw new Exception("Unknown Participantrequired code '"+codeString+"'");
|
||||
throw new Exception("Unknown ParticipantRequired code '"+codeString+"'");
|
||||
}
|
||||
public String toCode() {
|
||||
switch (this) {
|
||||
|
@ -212,17 +212,17 @@ public class Appointment extends DomainResource {
|
|||
}
|
||||
public String getSystem() {
|
||||
switch (this) {
|
||||
case REQUIRED: return "";
|
||||
case OPTIONAL: return "";
|
||||
case INFORMATIONONLY: return "";
|
||||
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 "?";
|
||||
}
|
||||
}
|
||||
public String getDefinition() {
|
||||
switch (this) {
|
||||
case REQUIRED: return "The participant is required to attend the appointment.";
|
||||
case OPTIONAL: return "The participant may optionally attend the appointment.";
|
||||
case INFORMATIONONLY: return "The participant is excluded from the appointment, and may not be informed of the appointment taking place. (appointment is about them, not for them - such as 2 doctors discussing results about a patient's test).";
|
||||
case REQUIRED: return "The participant is required to attend the appointment";
|
||||
case OPTIONAL: return "The participant may optionally attend the appointment";
|
||||
case INFORMATIONONLY: return "The participant is excluded from the appointment, and may not be informed of the appointment taking place. (appointment is about them, not for them - such as 2 doctors discussing results about a patient's test)";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -236,52 +236,52 @@ public class Appointment extends DomainResource {
|
|||
}
|
||||
}
|
||||
|
||||
public static class ParticipantrequiredEnumFactory implements EnumFactory<Participantrequired> {
|
||||
public Participantrequired fromCode(String codeString) throws IllegalArgumentException {
|
||||
public static class ParticipantRequiredEnumFactory implements EnumFactory<ParticipantRequired> {
|
||||
public ParticipantRequired fromCode(String codeString) throws IllegalArgumentException {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("required".equals(codeString))
|
||||
return Participantrequired.REQUIRED;
|
||||
return ParticipantRequired.REQUIRED;
|
||||
if ("optional".equals(codeString))
|
||||
return Participantrequired.OPTIONAL;
|
||||
return ParticipantRequired.OPTIONAL;
|
||||
if ("information-only".equals(codeString))
|
||||
return Participantrequired.INFORMATIONONLY;
|
||||
throw new IllegalArgumentException("Unknown Participantrequired code '"+codeString+"'");
|
||||
return ParticipantRequired.INFORMATIONONLY;
|
||||
throw new IllegalArgumentException("Unknown ParticipantRequired code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(Participantrequired code) {
|
||||
if (code == Participantrequired.REQUIRED)
|
||||
public String toCode(ParticipantRequired code) {
|
||||
if (code == ParticipantRequired.REQUIRED)
|
||||
return "required";
|
||||
if (code == Participantrequired.OPTIONAL)
|
||||
if (code == ParticipantRequired.OPTIONAL)
|
||||
return "optional";
|
||||
if (code == Participantrequired.INFORMATIONONLY)
|
||||
if (code == ParticipantRequired.INFORMATIONONLY)
|
||||
return "information-only";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
|
||||
public enum Participationstatus {
|
||||
public enum ParticipationStatus {
|
||||
/**
|
||||
* The participant has accepted the appointment.
|
||||
* The participant has accepted the appointment
|
||||
*/
|
||||
ACCEPTED,
|
||||
/**
|
||||
* The participant has declined the appointment and will not participate in the appointment.
|
||||
* The participant has declined the appointment and will not participate in the appointment
|
||||
*/
|
||||
DECLINED,
|
||||
/**
|
||||
* The participant has tentatively accepted the appointment. This could be automatically created by a system and requires further processing before it can be accepted. There is no commitment that attendance will occur.
|
||||
* The participant has tentatively accepted the appointment. This could be automatically created by a system and requires further processing before it can be accepted. There is no commitment that attendance will occur
|
||||
*/
|
||||
TENTATIVE,
|
||||
/**
|
||||
* The participant needs to indicate if they accept the appointment by changing this status to one of the other statuses.
|
||||
* The participant needs to indicate if they accept the appointment by changing this status to one of the other statuses
|
||||
*/
|
||||
NEEDSACTION,
|
||||
/**
|
||||
* added to help the parsers
|
||||
*/
|
||||
NULL;
|
||||
public static Participationstatus fromCode(String codeString) throws Exception {
|
||||
public static ParticipationStatus fromCode(String codeString) throws Exception {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("accepted".equals(codeString))
|
||||
|
@ -292,7 +292,7 @@ public class Appointment extends DomainResource {
|
|||
return TENTATIVE;
|
||||
if ("needs-action".equals(codeString))
|
||||
return NEEDSACTION;
|
||||
throw new Exception("Unknown Participationstatus code '"+codeString+"'");
|
||||
throw new Exception("Unknown ParticipationStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode() {
|
||||
switch (this) {
|
||||
|
@ -305,19 +305,19 @@ public class Appointment extends DomainResource {
|
|||
}
|
||||
public String getSystem() {
|
||||
switch (this) {
|
||||
case ACCEPTED: return "";
|
||||
case DECLINED: return "";
|
||||
case TENTATIVE: return "";
|
||||
case NEEDSACTION: return "";
|
||||
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 "?";
|
||||
}
|
||||
}
|
||||
public String getDefinition() {
|
||||
switch (this) {
|
||||
case ACCEPTED: return "The participant has accepted the appointment.";
|
||||
case DECLINED: return "The participant has declined the appointment and will not participate in the appointment.";
|
||||
case TENTATIVE: return "The participant has tentatively accepted the appointment. This could be automatically created by a system and requires further processing before it can be accepted. There is no commitment that attendance will occur.";
|
||||
case NEEDSACTION: return "The participant needs to indicate if they accept the appointment by changing this status to one of the other statuses.";
|
||||
case ACCEPTED: return "The participant has accepted the appointment";
|
||||
case DECLINED: return "The participant has declined the appointment and will not participate in the appointment";
|
||||
case TENTATIVE: return "The participant has tentatively accepted the appointment. This could be automatically created by a system and requires further processing before it can be accepted. There is no commitment that attendance will occur";
|
||||
case NEEDSACTION: return "The participant needs to indicate if they accept the appointment by changing this status to one of the other statuses";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -332,29 +332,29 @@ public class Appointment extends DomainResource {
|
|||
}
|
||||
}
|
||||
|
||||
public static class ParticipationstatusEnumFactory implements EnumFactory<Participationstatus> {
|
||||
public Participationstatus fromCode(String codeString) throws IllegalArgumentException {
|
||||
public static class ParticipationStatusEnumFactory implements EnumFactory<ParticipationStatus> {
|
||||
public ParticipationStatus fromCode(String codeString) throws IllegalArgumentException {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("accepted".equals(codeString))
|
||||
return Participationstatus.ACCEPTED;
|
||||
return ParticipationStatus.ACCEPTED;
|
||||
if ("declined".equals(codeString))
|
||||
return Participationstatus.DECLINED;
|
||||
return ParticipationStatus.DECLINED;
|
||||
if ("tentative".equals(codeString))
|
||||
return Participationstatus.TENTATIVE;
|
||||
return ParticipationStatus.TENTATIVE;
|
||||
if ("needs-action".equals(codeString))
|
||||
return Participationstatus.NEEDSACTION;
|
||||
throw new IllegalArgumentException("Unknown Participationstatus code '"+codeString+"'");
|
||||
return ParticipationStatus.NEEDSACTION;
|
||||
throw new IllegalArgumentException("Unknown ParticipationStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(Participationstatus code) {
|
||||
if (code == Participationstatus.ACCEPTED)
|
||||
public String toCode(ParticipationStatus code) {
|
||||
if (code == ParticipationStatus.ACCEPTED)
|
||||
return "accepted";
|
||||
if (code == Participationstatus.DECLINED)
|
||||
if (code == ParticipationStatus.DECLINED)
|
||||
return "declined";
|
||||
if (code == Participationstatus.TENTATIVE)
|
||||
if (code == ParticipationStatus.TENTATIVE)
|
||||
return "tentative";
|
||||
if (code == Participationstatus.NEEDSACTION)
|
||||
if (code == ParticipationStatus.NEEDSACTION)
|
||||
return "needs-action";
|
||||
return "?";
|
||||
}
|
||||
|
@ -386,16 +386,16 @@ public class Appointment extends DomainResource {
|
|||
*/
|
||||
@Child(name = "required", type = {CodeType.class}, order=3, min=0, max=1)
|
||||
@Description(shortDefinition="required | optional | information-only", formalDefinition="Is this participant required to be present at the meeting. This covers a use-case where 2 doctors need to meet to discuss the results for a specific patient, and the patient is not required to be present." )
|
||||
protected Enumeration<Participantrequired> required;
|
||||
protected Enumeration<ParticipantRequired> required;
|
||||
|
||||
/**
|
||||
* Participation status of the Patient.
|
||||
*/
|
||||
@Child(name = "status", type = {CodeType.class}, order=4, min=1, max=1)
|
||||
@Description(shortDefinition="accepted | declined | tentative | needs-action", formalDefinition="Participation status of the Patient." )
|
||||
protected Enumeration<Participationstatus> status;
|
||||
protected Enumeration<ParticipationStatus> status;
|
||||
|
||||
private static final long serialVersionUID = -1009855227L;
|
||||
private static final long serialVersionUID = -1620552507L;
|
||||
|
||||
/*
|
||||
* Constructor
|
||||
|
@ -407,7 +407,7 @@ public class Appointment extends DomainResource {
|
|||
/*
|
||||
* Constructor
|
||||
*/
|
||||
public AppointmentParticipantComponent(Enumeration<Participationstatus> status) {
|
||||
public AppointmentParticipantComponent(Enumeration<ParticipationStatus> status) {
|
||||
super();
|
||||
this.status = status;
|
||||
}
|
||||
|
@ -494,12 +494,12 @@ public class Appointment extends DomainResource {
|
|||
/**
|
||||
* @return {@link #required} (Is this participant required to be present at the meeting. This covers a use-case where 2 doctors need to meet to discuss the results for a specific patient, and the patient is not required to be present.). This is the underlying object with id, value and extensions. The accessor "getRequired" gives direct access to the value
|
||||
*/
|
||||
public Enumeration<Participantrequired> getRequiredElement() {
|
||||
public Enumeration<ParticipantRequired> getRequiredElement() {
|
||||
if (this.required == null)
|
||||
if (Configuration.errorOnAutoCreate())
|
||||
throw new Error("Attempt to auto-create AppointmentParticipantComponent.required");
|
||||
else if (Configuration.doAutoCreate())
|
||||
this.required = new Enumeration<Participantrequired>(new ParticipantrequiredEnumFactory()); // bb
|
||||
this.required = new Enumeration<ParticipantRequired>(new ParticipantRequiredEnumFactory()); // bb
|
||||
return this.required;
|
||||
}
|
||||
|
||||
|
@ -514,7 +514,7 @@ public class Appointment extends DomainResource {
|
|||
/**
|
||||
* @param value {@link #required} (Is this participant required to be present at the meeting. This covers a use-case where 2 doctors need to meet to discuss the results for a specific patient, and the patient is not required to be present.). This is the underlying object with id, value and extensions. The accessor "getRequired" gives direct access to the value
|
||||
*/
|
||||
public AppointmentParticipantComponent setRequiredElement(Enumeration<Participantrequired> value) {
|
||||
public AppointmentParticipantComponent setRequiredElement(Enumeration<ParticipantRequired> value) {
|
||||
this.required = value;
|
||||
return this;
|
||||
}
|
||||
|
@ -522,19 +522,19 @@ public class Appointment extends DomainResource {
|
|||
/**
|
||||
* @return Is this participant required to be present at the meeting. This covers a use-case where 2 doctors need to meet to discuss the results for a specific patient, and the patient is not required to be present.
|
||||
*/
|
||||
public Participantrequired getRequired() {
|
||||
public ParticipantRequired getRequired() {
|
||||
return this.required == null ? null : this.required.getValue();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value Is this participant required to be present at the meeting. This covers a use-case where 2 doctors need to meet to discuss the results for a specific patient, and the patient is not required to be present.
|
||||
*/
|
||||
public AppointmentParticipantComponent setRequired(Participantrequired value) {
|
||||
public AppointmentParticipantComponent setRequired(ParticipantRequired value) {
|
||||
if (value == null)
|
||||
this.required = null;
|
||||
else {
|
||||
if (this.required == null)
|
||||
this.required = new Enumeration<Participantrequired>(new ParticipantrequiredEnumFactory());
|
||||
this.required = new Enumeration<ParticipantRequired>(new ParticipantRequiredEnumFactory());
|
||||
this.required.setValue(value);
|
||||
}
|
||||
return this;
|
||||
|
@ -543,12 +543,12 @@ public class Appointment extends DomainResource {
|
|||
/**
|
||||
* @return {@link #status} (Participation status of the Patient.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value
|
||||
*/
|
||||
public Enumeration<Participationstatus> getStatusElement() {
|
||||
public Enumeration<ParticipationStatus> getStatusElement() {
|
||||
if (this.status == null)
|
||||
if (Configuration.errorOnAutoCreate())
|
||||
throw new Error("Attempt to auto-create AppointmentParticipantComponent.status");
|
||||
else if (Configuration.doAutoCreate())
|
||||
this.status = new Enumeration<Participationstatus>(new ParticipationstatusEnumFactory()); // bb
|
||||
this.status = new Enumeration<ParticipationStatus>(new ParticipationStatusEnumFactory()); // bb
|
||||
return this.status;
|
||||
}
|
||||
|
||||
|
@ -563,7 +563,7 @@ public class Appointment extends DomainResource {
|
|||
/**
|
||||
* @param value {@link #status} (Participation status of the Patient.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value
|
||||
*/
|
||||
public AppointmentParticipantComponent setStatusElement(Enumeration<Participationstatus> value) {
|
||||
public AppointmentParticipantComponent setStatusElement(Enumeration<ParticipationStatus> value) {
|
||||
this.status = value;
|
||||
return this;
|
||||
}
|
||||
|
@ -571,16 +571,16 @@ public class Appointment extends DomainResource {
|
|||
/**
|
||||
* @return Participation status of the Patient.
|
||||
*/
|
||||
public Participationstatus getStatus() {
|
||||
public ParticipationStatus getStatus() {
|
||||
return this.status == null ? null : this.status.getValue();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value Participation status of the Patient.
|
||||
*/
|
||||
public AppointmentParticipantComponent setStatus(Participationstatus value) {
|
||||
public AppointmentParticipantComponent setStatus(ParticipationStatus value) {
|
||||
if (this.status == null)
|
||||
this.status = new Enumeration<Participationstatus>(new ParticipationstatusEnumFactory());
|
||||
this.status = new Enumeration<ParticipationStatus>(new ParticipationStatusEnumFactory());
|
||||
this.status.setValue(value);
|
||||
return this;
|
||||
}
|
||||
|
@ -647,7 +647,7 @@ public class Appointment extends DomainResource {
|
|||
*/
|
||||
@Child(name = "status", type = {CodeType.class}, order=1, min=1, max=1)
|
||||
@Description(shortDefinition="pending | booked | arrived | fulfilled | cancelled | noshow", formalDefinition="The overall status of the Appointment. Each of the participants has their own participation status which indicates their involvement in the process, however this status indicates the shared status." )
|
||||
protected Enumeration<Appointmentstatus> status;
|
||||
protected Enumeration<AppointmentStatus> status;
|
||||
|
||||
/**
|
||||
* The type of appointment that is being booked (This may also be associated with participants for location, and/or a HealthcareService).
|
||||
|
@ -729,7 +729,7 @@ public class Appointment extends DomainResource {
|
|||
@Description(shortDefinition="List of participants involved in the appointment", formalDefinition="List of participants involved in the appointment." )
|
||||
protected List<AppointmentParticipantComponent> participant;
|
||||
|
||||
private static final long serialVersionUID = -1809603254L;
|
||||
private static final long serialVersionUID = -1918687958L;
|
||||
|
||||
/*
|
||||
* Constructor
|
||||
|
@ -741,7 +741,7 @@ public class Appointment extends DomainResource {
|
|||
/*
|
||||
* Constructor
|
||||
*/
|
||||
public Appointment(Enumeration<Appointmentstatus> status, InstantType start, InstantType end) {
|
||||
public Appointment(Enumeration<AppointmentStatus> status, InstantType start, InstantType end) {
|
||||
super();
|
||||
this.status = status;
|
||||
this.start = start;
|
||||
|
@ -791,12 +791,12 @@ public class Appointment extends DomainResource {
|
|||
/**
|
||||
* @return {@link #status} (The overall status of the Appointment. Each of the participants has their own participation status which indicates their involvement in the process, however this status indicates the shared status.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value
|
||||
*/
|
||||
public Enumeration<Appointmentstatus> getStatusElement() {
|
||||
public Enumeration<AppointmentStatus> getStatusElement() {
|
||||
if (this.status == null)
|
||||
if (Configuration.errorOnAutoCreate())
|
||||
throw new Error("Attempt to auto-create Appointment.status");
|
||||
else if (Configuration.doAutoCreate())
|
||||
this.status = new Enumeration<Appointmentstatus>(new AppointmentstatusEnumFactory()); // bb
|
||||
this.status = new Enumeration<AppointmentStatus>(new AppointmentStatusEnumFactory()); // bb
|
||||
return this.status;
|
||||
}
|
||||
|
||||
|
@ -811,7 +811,7 @@ public class Appointment extends DomainResource {
|
|||
/**
|
||||
* @param value {@link #status} (The overall status of the Appointment. Each of the participants has their own participation status which indicates their involvement in the process, however this status indicates the shared status.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value
|
||||
*/
|
||||
public Appointment setStatusElement(Enumeration<Appointmentstatus> value) {
|
||||
public Appointment setStatusElement(Enumeration<AppointmentStatus> value) {
|
||||
this.status = value;
|
||||
return this;
|
||||
}
|
||||
|
@ -819,16 +819,16 @@ public class Appointment extends DomainResource {
|
|||
/**
|
||||
* @return The overall status of the Appointment. Each of the participants has their own participation status which indicates their involvement in the process, however this status indicates the shared status.
|
||||
*/
|
||||
public Appointmentstatus getStatus() {
|
||||
public AppointmentStatus getStatus() {
|
||||
return this.status == null ? null : this.status.getValue();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value The overall status of the Appointment. Each of the participants has their own participation status which indicates their involvement in the process, however this status indicates the shared status.
|
||||
*/
|
||||
public Appointment setStatus(Appointmentstatus value) {
|
||||
public Appointment setStatus(AppointmentStatus value) {
|
||||
if (this.status == null)
|
||||
this.status = new Enumeration<Appointmentstatus>(new AppointmentstatusEnumFactory());
|
||||
this.status = new Enumeration<AppointmentStatus>(new AppointmentStatusEnumFactory());
|
||||
this.status.setValue(value);
|
||||
return this;
|
||||
}
|
||||
|
|
|
@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
|
|||
|
||||
*/
|
||||
|
||||
// Generated on Fri, May 22, 2015 17:15-0400 for FHIR v0.5.0
|
||||
// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
|
||||
|
||||
import java.util.*;
|
||||
|
||||
|
@ -46,36 +46,36 @@ import org.hl7.fhir.instance.model.api.*;
|
|||
@ResourceDef(name="AppointmentResponse", profile="http://hl7.org/fhir/Profile/AppointmentResponse")
|
||||
public class AppointmentResponse extends DomainResource {
|
||||
|
||||
public enum Participantstatus {
|
||||
public enum ParticipantStatus {
|
||||
/**
|
||||
* The appointment participant has accepted that they can attend the appointment at the time specified in the AppointmentResponse.
|
||||
* The appointment participant has accepted that they can attend the appointment at the time specified in the AppointmentResponse
|
||||
*/
|
||||
ACCEPTED,
|
||||
/**
|
||||
* The appointment participant has declined the appointment.
|
||||
* The appointment participant has declined the appointment
|
||||
*/
|
||||
DECLINED,
|
||||
/**
|
||||
* The appointment participant has tentatively accepted the appointment.
|
||||
* The appointment participant has tentatively accepted the appointment
|
||||
*/
|
||||
TENTATIVE,
|
||||
/**
|
||||
* The participant has in-process the appointment.
|
||||
* The participant has in-process the appointment
|
||||
*/
|
||||
INPROCESS,
|
||||
/**
|
||||
* The participant has completed the appointment.
|
||||
* The participant has completed the appointment
|
||||
*/
|
||||
COMPLETED,
|
||||
/**
|
||||
* This is the intitial status of an appointment participant until a participant has replied. It implies that there is no commitment for the appointment.
|
||||
* This is the intitial status of an appointment participant until a participant has replied. It implies that there is no commitment for the appointment
|
||||
*/
|
||||
NEEDSACTION,
|
||||
/**
|
||||
* added to help the parsers
|
||||
*/
|
||||
NULL;
|
||||
public static Participantstatus fromCode(String codeString) throws Exception {
|
||||
public static ParticipantStatus fromCode(String codeString) throws Exception {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("accepted".equals(codeString))
|
||||
|
@ -90,7 +90,7 @@ public class AppointmentResponse extends DomainResource {
|
|||
return COMPLETED;
|
||||
if ("needs-action".equals(codeString))
|
||||
return NEEDSACTION;
|
||||
throw new Exception("Unknown Participantstatus code '"+codeString+"'");
|
||||
throw new Exception("Unknown ParticipantStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode() {
|
||||
switch (this) {
|
||||
|
@ -105,23 +105,23 @@ public class AppointmentResponse extends DomainResource {
|
|||
}
|
||||
public String getSystem() {
|
||||
switch (this) {
|
||||
case ACCEPTED: return "";
|
||||
case DECLINED: return "";
|
||||
case TENTATIVE: return "";
|
||||
case INPROCESS: return "";
|
||||
case COMPLETED: return "";
|
||||
case NEEDSACTION: return "";
|
||||
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 "?";
|
||||
}
|
||||
}
|
||||
public String getDefinition() {
|
||||
switch (this) {
|
||||
case ACCEPTED: return "The appointment participant has accepted that they can attend the appointment at the time specified in the AppointmentResponse.";
|
||||
case DECLINED: return "The appointment participant has declined the appointment.";
|
||||
case TENTATIVE: return "The appointment participant has tentatively accepted the appointment.";
|
||||
case INPROCESS: return "The participant has in-process the appointment.";
|
||||
case COMPLETED: return "The participant has completed the appointment.";
|
||||
case NEEDSACTION: return "This is the intitial status of an appointment participant until a participant has replied. It implies that there is no commitment for the appointment.";
|
||||
case ACCEPTED: return "The appointment participant has accepted that they can attend the appointment at the time specified in the AppointmentResponse";
|
||||
case DECLINED: return "The appointment participant has declined the appointment";
|
||||
case TENTATIVE: return "The appointment participant has tentatively accepted the appointment";
|
||||
case INPROCESS: return "The participant has in-process the appointment";
|
||||
case COMPLETED: return "The participant has completed the appointment";
|
||||
case NEEDSACTION: return "This is the intitial status of an appointment participant until a participant has replied. It implies that there is no commitment for the appointment";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -138,37 +138,37 @@ public class AppointmentResponse extends DomainResource {
|
|||
}
|
||||
}
|
||||
|
||||
public static class ParticipantstatusEnumFactory implements EnumFactory<Participantstatus> {
|
||||
public Participantstatus fromCode(String codeString) throws IllegalArgumentException {
|
||||
public static class ParticipantStatusEnumFactory implements EnumFactory<ParticipantStatus> {
|
||||
public ParticipantStatus fromCode(String codeString) throws IllegalArgumentException {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("accepted".equals(codeString))
|
||||
return Participantstatus.ACCEPTED;
|
||||
return ParticipantStatus.ACCEPTED;
|
||||
if ("declined".equals(codeString))
|
||||
return Participantstatus.DECLINED;
|
||||
return ParticipantStatus.DECLINED;
|
||||
if ("tentative".equals(codeString))
|
||||
return Participantstatus.TENTATIVE;
|
||||
return ParticipantStatus.TENTATIVE;
|
||||
if ("in-process".equals(codeString))
|
||||
return Participantstatus.INPROCESS;
|
||||
return ParticipantStatus.INPROCESS;
|
||||
if ("completed".equals(codeString))
|
||||
return Participantstatus.COMPLETED;
|
||||
return ParticipantStatus.COMPLETED;
|
||||
if ("needs-action".equals(codeString))
|
||||
return Participantstatus.NEEDSACTION;
|
||||
throw new IllegalArgumentException("Unknown Participantstatus code '"+codeString+"'");
|
||||
return ParticipantStatus.NEEDSACTION;
|
||||
throw new IllegalArgumentException("Unknown ParticipantStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(Participantstatus code) {
|
||||
if (code == Participantstatus.ACCEPTED)
|
||||
public String toCode(ParticipantStatus code) {
|
||||
if (code == ParticipantStatus.ACCEPTED)
|
||||
return "accepted";
|
||||
if (code == Participantstatus.DECLINED)
|
||||
if (code == ParticipantStatus.DECLINED)
|
||||
return "declined";
|
||||
if (code == Participantstatus.TENTATIVE)
|
||||
if (code == ParticipantStatus.TENTATIVE)
|
||||
return "tentative";
|
||||
if (code == Participantstatus.INPROCESS)
|
||||
if (code == ParticipantStatus.INPROCESS)
|
||||
return "in-process";
|
||||
if (code == Participantstatus.COMPLETED)
|
||||
if (code == ParticipantStatus.COMPLETED)
|
||||
return "completed";
|
||||
if (code == Participantstatus.NEEDSACTION)
|
||||
if (code == ParticipantStatus.NEEDSACTION)
|
||||
return "needs-action";
|
||||
return "?";
|
||||
}
|
||||
|
@ -217,7 +217,7 @@ public class AppointmentResponse extends DomainResource {
|
|||
*/
|
||||
@Child(name = "participantStatus", type = {CodeType.class}, order=4, min=1, max=1)
|
||||
@Description(shortDefinition="accepted | declined | tentative | in-process | completed | needs-action", formalDefinition="Participation status of the Participant. When the status is declined or tentative if the start/end times are different to the appointment, then these times should be interpreted as a requested time change. When the status is accepted, the times can either be the time of the appointment (as a confirmation of the time) or can be empty." )
|
||||
protected Enumeration<Participantstatus> participantStatus;
|
||||
protected Enumeration<ParticipantStatus> participantStatus;
|
||||
|
||||
/**
|
||||
* This comment is particularly important when the responder is declining, tentative or requesting another time to indicate the reasons why.
|
||||
|
@ -240,7 +240,7 @@ public class AppointmentResponse extends DomainResource {
|
|||
@Description(shortDefinition="Date/Time that the appointment is to conclude, or requested new end time", formalDefinition="This may be either the same as the appointment request to confirm the details of the appointment, or alternately a new time to request a re-negotiation of the end time." )
|
||||
protected InstantType end;
|
||||
|
||||
private static final long serialVersionUID = 152413469L;
|
||||
private static final long serialVersionUID = -1858624259L;
|
||||
|
||||
/*
|
||||
* Constructor
|
||||
|
@ -252,7 +252,7 @@ public class AppointmentResponse extends DomainResource {
|
|||
/*
|
||||
* Constructor
|
||||
*/
|
||||
public AppointmentResponse(Reference appointment, Enumeration<Participantstatus> participantStatus) {
|
||||
public AppointmentResponse(Reference appointment, Enumeration<ParticipantStatus> participantStatus) {
|
||||
super();
|
||||
this.appointment = appointment;
|
||||
this.participantStatus = participantStatus;
|
||||
|
@ -424,12 +424,12 @@ public class AppointmentResponse extends DomainResource {
|
|||
/**
|
||||
* @return {@link #participantStatus} (Participation status of the Participant. When the status is declined or tentative if the start/end times are different to the appointment, then these times should be interpreted as a requested time change. When the status is accepted, the times can either be the time of the appointment (as a confirmation of the time) or can be empty.). This is the underlying object with id, value and extensions. The accessor "getParticipantStatus" gives direct access to the value
|
||||
*/
|
||||
public Enumeration<Participantstatus> getParticipantStatusElement() {
|
||||
public Enumeration<ParticipantStatus> getParticipantStatusElement() {
|
||||
if (this.participantStatus == null)
|
||||
if (Configuration.errorOnAutoCreate())
|
||||
throw new Error("Attempt to auto-create AppointmentResponse.participantStatus");
|
||||
else if (Configuration.doAutoCreate())
|
||||
this.participantStatus = new Enumeration<Participantstatus>(new ParticipantstatusEnumFactory()); // bb
|
||||
this.participantStatus = new Enumeration<ParticipantStatus>(new ParticipantStatusEnumFactory()); // bb
|
||||
return this.participantStatus;
|
||||
}
|
||||
|
||||
|
@ -444,7 +444,7 @@ public class AppointmentResponse extends DomainResource {
|
|||
/**
|
||||
* @param value {@link #participantStatus} (Participation status of the Participant. When the status is declined or tentative if the start/end times are different to the appointment, then these times should be interpreted as a requested time change. When the status is accepted, the times can either be the time of the appointment (as a confirmation of the time) or can be empty.). This is the underlying object with id, value and extensions. The accessor "getParticipantStatus" gives direct access to the value
|
||||
*/
|
||||
public AppointmentResponse setParticipantStatusElement(Enumeration<Participantstatus> value) {
|
||||
public AppointmentResponse setParticipantStatusElement(Enumeration<ParticipantStatus> value) {
|
||||
this.participantStatus = value;
|
||||
return this;
|
||||
}
|
||||
|
@ -452,16 +452,16 @@ public class AppointmentResponse extends DomainResource {
|
|||
/**
|
||||
* @return Participation status of the Participant. When the status is declined or tentative if the start/end times are different to the appointment, then these times should be interpreted as a requested time change. When the status is accepted, the times can either be the time of the appointment (as a confirmation of the time) or can be empty.
|
||||
*/
|
||||
public Participantstatus getParticipantStatus() {
|
||||
public ParticipantStatus getParticipantStatus() {
|
||||
return this.participantStatus == null ? null : this.participantStatus.getValue();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value Participation status of the Participant. When the status is declined or tentative if the start/end times are different to the appointment, then these times should be interpreted as a requested time change. When the status is accepted, the times can either be the time of the appointment (as a confirmation of the time) or can be empty.
|
||||
*/
|
||||
public AppointmentResponse setParticipantStatus(Participantstatus value) {
|
||||
public AppointmentResponse setParticipantStatus(ParticipantStatus value) {
|
||||
if (this.participantStatus == null)
|
||||
this.participantStatus = new Enumeration<Participantstatus>(new ParticipantstatusEnumFactory());
|
||||
this.participantStatus = new Enumeration<ParticipantStatus>(new ParticipantStatusEnumFactory());
|
||||
this.participantStatus.setValue(value);
|
||||
return this;
|
||||
}
|
||||
|
|
|
@ -29,11 +29,12 @@ package org.hl7.fhir.instance.model;
|
|||
|
||||
*/
|
||||
|
||||
// Generated on Fri, May 22, 2015 17:15-0400 for FHIR v0.5.0
|
||||
// Generated on Sun, May 31, 2015 15:45-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.Child;
|
||||
import org.hl7.fhir.instance.model.annotations.Description;
|
||||
import org.hl7.fhir.instance.model.annotations.DatatypeDef;
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
|
|||
|
||||
*/
|
||||
|
||||
// Generated on Fri, May 22, 2015 17:15-0400 for FHIR v0.5.0
|
||||
// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
|
||||
|
||||
import java.util.*;
|
||||
|
||||
|
|
|
@ -34,6 +34,15 @@ private Map<String, Object> userData;
|
|||
userData.put(name, value);
|
||||
}
|
||||
|
||||
public void setUserDataINN(String name, Object value) {
|
||||
if (value == null)
|
||||
return;
|
||||
|
||||
if (userData == null)
|
||||
userData = new HashMap<String, Object>();
|
||||
userData.put(name, value);
|
||||
}
|
||||
|
||||
public boolean hasUserData(String name) {
|
||||
if (userData == null)
|
||||
return false;
|
||||
|
|
|
@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
|
|||
|
||||
*/
|
||||
|
||||
// Generated on Fri, May 22, 2015 17:15-0400 for FHIR v0.5.0
|
||||
// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
|
||||
|
||||
import java.util.*;
|
||||
|
||||
|
|
|
@ -29,11 +29,12 @@ package org.hl7.fhir.instance.model;
|
|||
|
||||
*/
|
||||
|
||||
// Generated on Fri, May 22, 2015 17:15-0400 for FHIR v0.5.0
|
||||
// Generated on Sun, May 31, 2015 15:45-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;
|
||||
|
|
|
@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
|
|||
|
||||
*/
|
||||
|
||||
// Generated on Fri, May 22, 2015 17:15-0400 for FHIR v0.5.0
|
||||
// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
|
||||
|
||||
import java.util.*;
|
||||
|
||||
|
|
|
@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
|
|||
|
||||
*/
|
||||
|
||||
// Generated on Fri, May 22, 2015 17:15-0400 for FHIR v0.5.0
|
||||
// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
|
||||
|
||||
import java.util.*;
|
||||
|
||||
|
@ -49,31 +49,31 @@ public class Bundle extends Resource implements IBaseBundle {
|
|||
|
||||
public enum BundleType {
|
||||
/**
|
||||
* The bundle is a document. The first resource is a Composition.
|
||||
* The bundle is a document. The first resource is a Composition
|
||||
*/
|
||||
DOCUMENT,
|
||||
/**
|
||||
* The bundle is a message. The first resource is a MessageHeader.
|
||||
* The bundle is a message. The first resource is a MessageHeader
|
||||
*/
|
||||
MESSAGE,
|
||||
/**
|
||||
* The bundle is a transaction - intended to be processed by a server as an atomic commit.
|
||||
* The bundle is a transaction - intended to be processed by a server as an atomic commit
|
||||
*/
|
||||
TRANSACTION,
|
||||
/**
|
||||
* The bundle is a transaction response.
|
||||
* The bundle is a transaction response
|
||||
*/
|
||||
TRANSACTIONRESPONSE,
|
||||
/**
|
||||
* The bundle is a list of resources from a _history interaction on a server.
|
||||
* The bundle is a list of resources from a _history interaction on a server
|
||||
*/
|
||||
HISTORY,
|
||||
/**
|
||||
* The bundle is a list of resources returned as a result of a search/query interaction, operation, or message.
|
||||
* The bundle is a list of resources returned as a result of a search/query interaction, operation, or message
|
||||
*/
|
||||
SEARCHSET,
|
||||
/**
|
||||
* The bundle is a set of resources collected into a single document for ease of distribution.
|
||||
* The bundle is a set of resources collected into a single document for ease of distribution
|
||||
*/
|
||||
COLLECTION,
|
||||
/**
|
||||
|
@ -113,25 +113,25 @@ public class Bundle extends Resource implements IBaseBundle {
|
|||
}
|
||||
public String getSystem() {
|
||||
switch (this) {
|
||||
case DOCUMENT: return "";
|
||||
case MESSAGE: return "";
|
||||
case TRANSACTION: return "";
|
||||
case TRANSACTIONRESPONSE: return "";
|
||||
case HISTORY: return "";
|
||||
case SEARCHSET: return "";
|
||||
case COLLECTION: return "";
|
||||
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 "?";
|
||||
}
|
||||
}
|
||||
public String getDefinition() {
|
||||
switch (this) {
|
||||
case DOCUMENT: return "The bundle is a document. The first resource is a Composition.";
|
||||
case MESSAGE: return "The bundle is a message. The first resource is a MessageHeader.";
|
||||
case TRANSACTION: return "The bundle is a transaction - intended to be processed by a server as an atomic commit.";
|
||||
case TRANSACTIONRESPONSE: return "The bundle is a transaction response.";
|
||||
case HISTORY: return "The bundle is a list of resources from a _history interaction on a server.";
|
||||
case SEARCHSET: return "The bundle is a list of resources returned as a result of a search/query interaction, operation, or message.";
|
||||
case COLLECTION: return "The bundle is a set of resources collected into a single document for ease of distribution.";
|
||||
case DOCUMENT: return "The bundle is a document. The first resource is a Composition";
|
||||
case MESSAGE: return "The bundle is a message. The first resource is a MessageHeader";
|
||||
case TRANSACTION: return "The bundle is a transaction - intended to be processed by a server as an atomic commit";
|
||||
case TRANSACTIONRESPONSE: return "The bundle is a transaction response";
|
||||
case HISTORY: return "The bundle is a list of resources from a _history interaction on a server";
|
||||
case SEARCHSET: return "The bundle is a list of resources returned as a result of a search/query interaction, operation, or message";
|
||||
case COLLECTION: return "The bundle is a set of resources collected into a single document for ease of distribution";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -191,11 +191,11 @@ public class Bundle extends Resource implements IBaseBundle {
|
|||
|
||||
public enum SearchEntryMode {
|
||||
/**
|
||||
* This resource matched the search specification.
|
||||
* This resource matched the search specification
|
||||
*/
|
||||
MATCH,
|
||||
/**
|
||||
* This resource is returned because it is referred to from another resource in the search set.
|
||||
* This resource is returned because it is referred to from another resource in the search set
|
||||
*/
|
||||
INCLUDE,
|
||||
/**
|
||||
|
@ -220,15 +220,15 @@ public class Bundle extends Resource implements IBaseBundle {
|
|||
}
|
||||
public String getSystem() {
|
||||
switch (this) {
|
||||
case MATCH: return "";
|
||||
case INCLUDE: return "";
|
||||
case MATCH: return "http://hl7.org.fhir/search-entry-mode";
|
||||
case INCLUDE: return "http://hl7.org.fhir/search-entry-mode";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
public String getDefinition() {
|
||||
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 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";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -261,28 +261,28 @@ public class Bundle extends Resource implements IBaseBundle {
|
|||
}
|
||||
}
|
||||
|
||||
public enum HttpVerb {
|
||||
public enum HTTPVerb {
|
||||
/**
|
||||
* HTTP GET.
|
||||
* HTTP GET
|
||||
*/
|
||||
GET,
|
||||
/**
|
||||
* HTTP POST.
|
||||
* HTTP POST
|
||||
*/
|
||||
POST,
|
||||
/**
|
||||
* HTTP PUT.
|
||||
* HTTP PUT
|
||||
*/
|
||||
PUT,
|
||||
/**
|
||||
* HTTP DELETE.
|
||||
* HTTP DELETE
|
||||
*/
|
||||
DELETE,
|
||||
/**
|
||||
* added to help the parsers
|
||||
*/
|
||||
NULL;
|
||||
public static HttpVerb fromCode(String codeString) throws Exception {
|
||||
public static HTTPVerb fromCode(String codeString) throws Exception {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("GET".equals(codeString))
|
||||
|
@ -293,7 +293,7 @@ public class Bundle extends Resource implements IBaseBundle {
|
|||
return PUT;
|
||||
if ("DELETE".equals(codeString))
|
||||
return DELETE;
|
||||
throw new Exception("Unknown HttpVerb code '"+codeString+"'");
|
||||
throw new Exception("Unknown HTTPVerb code '"+codeString+"'");
|
||||
}
|
||||
public String toCode() {
|
||||
switch (this) {
|
||||
|
@ -306,19 +306,19 @@ public class Bundle extends Resource implements IBaseBundle {
|
|||
}
|
||||
public String getSystem() {
|
||||
switch (this) {
|
||||
case GET: return "";
|
||||
case POST: return "";
|
||||
case PUT: return "";
|
||||
case DELETE: return "";
|
||||
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 "?";
|
||||
}
|
||||
}
|
||||
public String getDefinition() {
|
||||
switch (this) {
|
||||
case GET: return "HTTP GET.";
|
||||
case POST: return "HTTP POST.";
|
||||
case PUT: return "HTTP PUT.";
|
||||
case DELETE: return "HTTP DELETE.";
|
||||
case GET: return "HTTP GET";
|
||||
case POST: return "HTTP POST";
|
||||
case PUT: return "HTTP PUT";
|
||||
case DELETE: return "HTTP DELETE";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -333,29 +333,29 @@ public class Bundle extends Resource implements IBaseBundle {
|
|||
}
|
||||
}
|
||||
|
||||
public static class HttpVerbEnumFactory implements EnumFactory<HttpVerb> {
|
||||
public HttpVerb fromCode(String codeString) throws IllegalArgumentException {
|
||||
public static class HTTPVerbEnumFactory implements EnumFactory<HTTPVerb> {
|
||||
public HTTPVerb fromCode(String codeString) throws IllegalArgumentException {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("GET".equals(codeString))
|
||||
return HttpVerb.GET;
|
||||
return HTTPVerb.GET;
|
||||
if ("POST".equals(codeString))
|
||||
return HttpVerb.POST;
|
||||
return HTTPVerb.POST;
|
||||
if ("PUT".equals(codeString))
|
||||
return HttpVerb.PUT;
|
||||
return HTTPVerb.PUT;
|
||||
if ("DELETE".equals(codeString))
|
||||
return HttpVerb.DELETE;
|
||||
throw new IllegalArgumentException("Unknown HttpVerb code '"+codeString+"'");
|
||||
return HTTPVerb.DELETE;
|
||||
throw new IllegalArgumentException("Unknown HTTPVerb code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(HttpVerb code) {
|
||||
if (code == HttpVerb.GET)
|
||||
public String toCode(HTTPVerb code) {
|
||||
if (code == HTTPVerb.GET)
|
||||
return "GET";
|
||||
if (code == HttpVerb.POST)
|
||||
if (code == HTTPVerb.POST)
|
||||
return "POST";
|
||||
if (code == HttpVerb.PUT)
|
||||
if (code == HTTPVerb.PUT)
|
||||
return "PUT";
|
||||
if (code == HttpVerb.DELETE)
|
||||
if (code == HTTPVerb.DELETE)
|
||||
return "DELETE";
|
||||
return "?";
|
||||
}
|
||||
|
@ -986,7 +986,7 @@ public class Bundle extends Resource implements IBaseBundle {
|
|||
*/
|
||||
@Child(name = "method", type = {CodeType.class}, order=1, min=1, max=1)
|
||||
@Description(shortDefinition="GET | POST | PUT | DELETE", formalDefinition="The HTTP verb for this entry in either a update history, or a transaction/ transaction response." )
|
||||
protected Enumeration<HttpVerb> method;
|
||||
protected Enumeration<HTTPVerb> 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).
|
||||
|
@ -1023,7 +1023,7 @@ public class Bundle extends Resource implements IBaseBundle {
|
|||
@Description(shortDefinition="For conditional creates", formalDefinition="Instruct the server not to perform the create if a specified resource already exists. For further information, see 'Conditional Create'." )
|
||||
protected StringType ifNoneExist;
|
||||
|
||||
private static final long serialVersionUID = -769185862L;
|
||||
private static final long serialVersionUID = 1355750298L;
|
||||
|
||||
/*
|
||||
* Constructor
|
||||
|
@ -1035,7 +1035,7 @@ public class Bundle extends Resource implements IBaseBundle {
|
|||
/*
|
||||
* Constructor
|
||||
*/
|
||||
public BundleEntryTransactionComponent(Enumeration<HttpVerb> method, UriType url) {
|
||||
public BundleEntryTransactionComponent(Enumeration<HTTPVerb> method, UriType url) {
|
||||
super();
|
||||
this.method = method;
|
||||
this.url = url;
|
||||
|
@ -1044,12 +1044,12 @@ public class Bundle extends Resource implements IBaseBundle {
|
|||
/**
|
||||
* @return {@link #method} (The HTTP verb for this entry in either a update history, or a transaction/ transaction response.). This is the underlying object with id, value and extensions. The accessor "getMethod" gives direct access to the value
|
||||
*/
|
||||
public Enumeration<HttpVerb> getMethodElement() {
|
||||
public Enumeration<HTTPVerb> getMethodElement() {
|
||||
if (this.method == null)
|
||||
if (Configuration.errorOnAutoCreate())
|
||||
throw new Error("Attempt to auto-create BundleEntryTransactionComponent.method");
|
||||
else if (Configuration.doAutoCreate())
|
||||
this.method = new Enumeration<HttpVerb>(new HttpVerbEnumFactory()); // bb
|
||||
this.method = new Enumeration<HTTPVerb>(new HTTPVerbEnumFactory()); // bb
|
||||
return this.method;
|
||||
}
|
||||
|
||||
|
@ -1064,7 +1064,7 @@ public class Bundle extends Resource implements IBaseBundle {
|
|||
/**
|
||||
* @param value {@link #method} (The HTTP verb for this entry in either a update history, or a transaction/ transaction response.). This is the underlying object with id, value and extensions. The accessor "getMethod" gives direct access to the value
|
||||
*/
|
||||
public BundleEntryTransactionComponent setMethodElement(Enumeration<HttpVerb> value) {
|
||||
public BundleEntryTransactionComponent setMethodElement(Enumeration<HTTPVerb> value) {
|
||||
this.method = value;
|
||||
return this;
|
||||
}
|
||||
|
@ -1072,16 +1072,16 @@ public class Bundle extends Resource implements IBaseBundle {
|
|||
/**
|
||||
* @return The HTTP verb for this entry in either a update history, or a transaction/ transaction response.
|
||||
*/
|
||||
public HttpVerb getMethod() {
|
||||
public HTTPVerb getMethod() {
|
||||
return this.method == null ? null : this.method.getValue();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value The HTTP verb for this entry in either a update history, or a transaction/ transaction response.
|
||||
*/
|
||||
public BundleEntryTransactionComponent setMethod(HttpVerb value) {
|
||||
public BundleEntryTransactionComponent setMethod(HTTPVerb value) {
|
||||
if (this.method == null)
|
||||
this.method = new Enumeration<HttpVerb>(new HttpVerbEnumFactory());
|
||||
this.method = new Enumeration<HTTPVerb>(new HTTPVerbEnumFactory());
|
||||
this.method.setValue(value);
|
||||
return this;
|
||||
}
|
||||
|
|
|
@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
|
|||
|
||||
*/
|
||||
|
||||
// Generated on Fri, May 22, 2015 17:15-0400 for FHIR v0.5.0
|
||||
// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
|
||||
|
||||
import java.util.*;
|
||||
|
||||
|
@ -52,11 +52,11 @@ public class CarePlan extends DomainResource {
|
|||
*/
|
||||
PLANNED,
|
||||
/**
|
||||
* The plan is intended to be followed and used as part of patient care.
|
||||
* The plan is intended to be followed and used as part of patient care
|
||||
*/
|
||||
ACTIVE,
|
||||
/**
|
||||
* The plan is no longer in use and is not expected to be followed or used in patient care.
|
||||
* The plan is no longer in use and is not expected to be followed or used in patient care
|
||||
*/
|
||||
COMPLETED,
|
||||
/**
|
||||
|
@ -84,17 +84,17 @@ public class CarePlan extends DomainResource {
|
|||
}
|
||||
public String getSystem() {
|
||||
switch (this) {
|
||||
case PLANNED: return "";
|
||||
case ACTIVE: return "";
|
||||
case COMPLETED: return "";
|
||||
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 "?";
|
||||
}
|
||||
}
|
||||
public String getDefinition() {
|
||||
switch (this) {
|
||||
case PLANNED: return "The plan is in development or awaiting use but is not yet intended to be acted upon.";
|
||||
case ACTIVE: return "The plan is intended to be followed and used as part of patient care.";
|
||||
case COMPLETED: return "The plan is no longer in use and is not expected to be followed or used in patient care.";
|
||||
case ACTIVE: return "The plan is intended to be followed and used as part of patient care";
|
||||
case COMPLETED: return "The plan is no longer in use and is not expected to be followed or used in patient care";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -134,31 +134,31 @@ public class CarePlan extends DomainResource {
|
|||
|
||||
public enum CarePlanActivityCategory {
|
||||
/**
|
||||
* Plan for the patient to consume food of a specified nature.
|
||||
* Plan for the patient to consume food of a specified nature
|
||||
*/
|
||||
DIET,
|
||||
/**
|
||||
* Plan for the patient to consume/receive a drug, vaccine or other product.
|
||||
* Plan for the patient to consume/receive a drug, vaccine or other product
|
||||
*/
|
||||
DRUG,
|
||||
/**
|
||||
* Plan to meet or communicate with the patient (in-patient, out-patient, phone call, etc.).
|
||||
* Plan to meet or communicate with the patient (in-patient, out-patient, phone call, etc.)
|
||||
*/
|
||||
ENCOUNTER,
|
||||
/**
|
||||
* Plan to capture information about a patient (vitals, labs, diagnostic images, etc.).
|
||||
* Plan to capture information about a patient (vitals, labs, diagnostic images, etc.)
|
||||
*/
|
||||
OBSERVATION,
|
||||
/**
|
||||
* Plan to modify the patient in some way (surgery, physiotherapy, education, counseling, etc.).
|
||||
* Plan to modify the patient in some way (surgery, physiotherapy, education, counseling, etc.)
|
||||
*/
|
||||
PROCEDURE,
|
||||
/**
|
||||
* Plan to provide something to the patient (medication, medical supply, etc.).
|
||||
* Plan to provide something to the patient (medication, medical supply, etc.)
|
||||
*/
|
||||
SUPPLY,
|
||||
/**
|
||||
* Some other form of action.
|
||||
* Some other form of action
|
||||
*/
|
||||
OTHER,
|
||||
/**
|
||||
|
@ -198,25 +198,25 @@ public class CarePlan extends DomainResource {
|
|||
}
|
||||
public String getSystem() {
|
||||
switch (this) {
|
||||
case DIET: return "";
|
||||
case DRUG: return "";
|
||||
case ENCOUNTER: return "";
|
||||
case OBSERVATION: return "";
|
||||
case PROCEDURE: return "";
|
||||
case SUPPLY: return "";
|
||||
case OTHER: return "";
|
||||
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 "?";
|
||||
}
|
||||
}
|
||||
public String getDefinition() {
|
||||
switch (this) {
|
||||
case DIET: return "Plan for the patient to consume food of a specified nature.";
|
||||
case DRUG: return "Plan for the patient to consume/receive a drug, vaccine or other product.";
|
||||
case ENCOUNTER: return "Plan to meet or communicate with the patient (in-patient, out-patient, phone call, etc.).";
|
||||
case OBSERVATION: return "Plan to capture information about a patient (vitals, labs, diagnostic images, etc.).";
|
||||
case PROCEDURE: return "Plan to modify the patient in some way (surgery, physiotherapy, education, counseling, etc.).";
|
||||
case SUPPLY: return "Plan to provide something to the patient (medication, medical supply, etc.).";
|
||||
case OTHER: return "Some other form of action.";
|
||||
case DIET: return "Plan for the patient to consume food of a specified nature";
|
||||
case DRUG: return "Plan for the patient to consume/receive a drug, vaccine or other product";
|
||||
case ENCOUNTER: return "Plan to meet or communicate with the patient (in-patient, out-patient, phone call, etc.)";
|
||||
case OBSERVATION: return "Plan to capture information about a patient (vitals, labs, diagnostic images, etc.)";
|
||||
case PROCEDURE: return "Plan to modify the patient in some way (surgery, physiotherapy, education, counseling, etc.)";
|
||||
case SUPPLY: return "Plan to provide something to the patient (medication, medical supply, etc.)";
|
||||
case OTHER: return "Some other form of action";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -276,15 +276,15 @@ public class CarePlan extends DomainResource {
|
|||
|
||||
public enum CarePlanActivityStatus {
|
||||
/**
|
||||
* Activity is planned but no action has yet been taken.
|
||||
* Activity is planned but no action has yet been taken
|
||||
*/
|
||||
NOTSTARTED,
|
||||
/**
|
||||
* Appointment or other booking has occurred but activity has not yet begun.
|
||||
* Appointment or other booking has occurred but activity has not yet begun
|
||||
*/
|
||||
SCHEDULED,
|
||||
/**
|
||||
* Activity has been started but is not yet complete.
|
||||
* Activity has been started but is not yet complete
|
||||
*/
|
||||
INPROGRESS,
|
||||
/**
|
||||
|
@ -292,11 +292,11 @@ public class CarePlan extends DomainResource {
|
|||
*/
|
||||
ONHOLD,
|
||||
/**
|
||||
* The activities have been completed (more or less) as planned.
|
||||
* The activities have been completed (more or less) as planned
|
||||
*/
|
||||
COMPLETED,
|
||||
/**
|
||||
* The activities have been ended prior to completion (perhaps even before they were started).
|
||||
* The activities have been ended prior to completion (perhaps even before they were started)
|
||||
*/
|
||||
CANCELLED,
|
||||
/**
|
||||
|
@ -333,23 +333,23 @@ public class CarePlan extends DomainResource {
|
|||
}
|
||||
public String getSystem() {
|
||||
switch (this) {
|
||||
case NOTSTARTED: return "";
|
||||
case SCHEDULED: return "";
|
||||
case INPROGRESS: return "";
|
||||
case ONHOLD: return "";
|
||||
case COMPLETED: return "";
|
||||
case CANCELLED: return "";
|
||||
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 "?";
|
||||
}
|
||||
}
|
||||
public String getDefinition() {
|
||||
switch (this) {
|
||||
case NOTSTARTED: return "Activity is planned but no action has yet been taken.";
|
||||
case SCHEDULED: return "Appointment or other booking has occurred but activity has not yet begun.";
|
||||
case INPROGRESS: return "Activity has been started but is not yet complete.";
|
||||
case NOTSTARTED: return "Activity is planned but no action has yet been taken";
|
||||
case SCHEDULED: return "Appointment or other booking has occurred but activity has not yet begun";
|
||||
case INPROGRESS: return "Activity has been started but is not yet complete";
|
||||
case ONHOLD: return "Activity was started but has temporarily ceased with an expectation of resumption at a future time.";
|
||||
case COMPLETED: return "The activities have been completed (more or less) as planned.";
|
||||
case CANCELLED: return "The activities have been ended prior to completion (perhaps even before they were started).";
|
||||
case COMPLETED: return "The activities have been completed (more or less) as planned";
|
||||
case CANCELLED: return "The activities have been ended prior to completion (perhaps even before they were started)";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
|
|
@ -29,12 +29,13 @@ package org.hl7.fhir.instance.model;
|
|||
|
||||
*/
|
||||
|
||||
// Generated on Fri, May 22, 2015 17:15-0400 for FHIR v0.5.0
|
||||
// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
|
||||
|
||||
import java.util.*;
|
||||
|
||||
import java.math.*;
|
||||
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;
|
||||
|
@ -47,7 +48,7 @@ import org.hl7.fhir.instance.model.api.*;
|
|||
@ResourceDef(name="Claim", profile="http://hl7.org/fhir/Profile/Claim")
|
||||
public class Claim extends DomainResource {
|
||||
|
||||
public enum TypeLink {
|
||||
public enum ClaimType {
|
||||
/**
|
||||
* A claim for Institution based, typically in-patient, goods and services.
|
||||
*/
|
||||
|
@ -72,7 +73,7 @@ public class Claim extends DomainResource {
|
|||
* added to help the parsers
|
||||
*/
|
||||
NULL;
|
||||
public static TypeLink fromCode(String codeString) throws Exception {
|
||||
public static ClaimType fromCode(String codeString) throws Exception {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("institutional".equals(codeString))
|
||||
|
@ -85,7 +86,7 @@ public class Claim extends DomainResource {
|
|||
return PROFESSIONAL;
|
||||
if ("vision".equals(codeString))
|
||||
return VISION;
|
||||
throw new Exception("Unknown TypeLink code '"+codeString+"'");
|
||||
throw new Exception("Unknown ClaimType code '"+codeString+"'");
|
||||
}
|
||||
public String toCode() {
|
||||
switch (this) {
|
||||
|
@ -99,11 +100,11 @@ public class Claim extends DomainResource {
|
|||
}
|
||||
public String getSystem() {
|
||||
switch (this) {
|
||||
case INSTITUTIONAL: return "";
|
||||
case ORAL: return "";
|
||||
case PHARMACY: return "";
|
||||
case PROFESSIONAL: return "";
|
||||
case VISION: return "";
|
||||
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 "?";
|
||||
}
|
||||
}
|
||||
|
@ -129,39 +130,39 @@ public class Claim extends DomainResource {
|
|||
}
|
||||
}
|
||||
|
||||
public static class TypeLinkEnumFactory implements EnumFactory<TypeLink> {
|
||||
public TypeLink fromCode(String codeString) throws IllegalArgumentException {
|
||||
public static class ClaimTypeEnumFactory implements EnumFactory<ClaimType> {
|
||||
public ClaimType fromCode(String codeString) throws IllegalArgumentException {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("institutional".equals(codeString))
|
||||
return TypeLink.INSTITUTIONAL;
|
||||
return ClaimType.INSTITUTIONAL;
|
||||
if ("oral".equals(codeString))
|
||||
return TypeLink.ORAL;
|
||||
return ClaimType.ORAL;
|
||||
if ("pharmacy".equals(codeString))
|
||||
return TypeLink.PHARMACY;
|
||||
return ClaimType.PHARMACY;
|
||||
if ("professional".equals(codeString))
|
||||
return TypeLink.PROFESSIONAL;
|
||||
return ClaimType.PROFESSIONAL;
|
||||
if ("vision".equals(codeString))
|
||||
return TypeLink.VISION;
|
||||
throw new IllegalArgumentException("Unknown TypeLink code '"+codeString+"'");
|
||||
return ClaimType.VISION;
|
||||
throw new IllegalArgumentException("Unknown ClaimType code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(TypeLink code) {
|
||||
if (code == TypeLink.INSTITUTIONAL)
|
||||
public String toCode(ClaimType code) {
|
||||
if (code == ClaimType.INSTITUTIONAL)
|
||||
return "institutional";
|
||||
if (code == TypeLink.ORAL)
|
||||
if (code == ClaimType.ORAL)
|
||||
return "oral";
|
||||
if (code == TypeLink.PHARMACY)
|
||||
if (code == ClaimType.PHARMACY)
|
||||
return "pharmacy";
|
||||
if (code == TypeLink.PROFESSIONAL)
|
||||
if (code == ClaimType.PROFESSIONAL)
|
||||
return "professional";
|
||||
if (code == TypeLink.VISION)
|
||||
if (code == ClaimType.VISION)
|
||||
return "vision";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
|
||||
public enum UseLink {
|
||||
public enum Use {
|
||||
/**
|
||||
* The treatment is complete and this represents a Claim for the services.
|
||||
*/
|
||||
|
@ -182,7 +183,7 @@ public class Claim extends DomainResource {
|
|||
* added to help the parsers
|
||||
*/
|
||||
NULL;
|
||||
public static UseLink fromCode(String codeString) throws Exception {
|
||||
public static Use fromCode(String codeString) throws Exception {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("complete".equals(codeString))
|
||||
|
@ -193,7 +194,7 @@ public class Claim extends DomainResource {
|
|||
return EXPLORATORY;
|
||||
if ("other".equals(codeString))
|
||||
return OTHER;
|
||||
throw new Exception("Unknown UseLink code '"+codeString+"'");
|
||||
throw new Exception("Unknown Use code '"+codeString+"'");
|
||||
}
|
||||
public String toCode() {
|
||||
switch (this) {
|
||||
|
@ -206,10 +207,10 @@ public class Claim extends DomainResource {
|
|||
}
|
||||
public String getSystem() {
|
||||
switch (this) {
|
||||
case COMPLETE: return "";
|
||||
case PROPOSED: return "";
|
||||
case EXPLORATORY: return "";
|
||||
case OTHER: return "";
|
||||
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 "?";
|
||||
}
|
||||
}
|
||||
|
@ -233,29 +234,29 @@ public class Claim extends DomainResource {
|
|||
}
|
||||
}
|
||||
|
||||
public static class UseLinkEnumFactory implements EnumFactory<UseLink> {
|
||||
public UseLink fromCode(String codeString) throws IllegalArgumentException {
|
||||
public static class UseEnumFactory implements EnumFactory<Use> {
|
||||
public Use fromCode(String codeString) throws IllegalArgumentException {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("complete".equals(codeString))
|
||||
return UseLink.COMPLETE;
|
||||
return Use.COMPLETE;
|
||||
if ("proposed".equals(codeString))
|
||||
return UseLink.PROPOSED;
|
||||
return Use.PROPOSED;
|
||||
if ("exploratory".equals(codeString))
|
||||
return UseLink.EXPLORATORY;
|
||||
return Use.EXPLORATORY;
|
||||
if ("other".equals(codeString))
|
||||
return UseLink.OTHER;
|
||||
throw new IllegalArgumentException("Unknown UseLink code '"+codeString+"'");
|
||||
return Use.OTHER;
|
||||
throw new IllegalArgumentException("Unknown Use code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(UseLink code) {
|
||||
if (code == UseLink.COMPLETE)
|
||||
public String toCode(Use code) {
|
||||
if (code == Use.COMPLETE)
|
||||
return "complete";
|
||||
if (code == UseLink.PROPOSED)
|
||||
if (code == Use.PROPOSED)
|
||||
return "proposed";
|
||||
if (code == UseLink.EXPLORATORY)
|
||||
if (code == Use.EXPLORATORY)
|
||||
return "exploratory";
|
||||
if (code == UseLink.OTHER)
|
||||
if (code == Use.OTHER)
|
||||
return "other";
|
||||
return "?";
|
||||
}
|
||||
|
@ -3288,7 +3289,7 @@ public class Claim extends DomainResource {
|
|||
*/
|
||||
@Child(name = "type", type = {CodeType.class}, order=0, min=1, max=1)
|
||||
@Description(shortDefinition="institutional | oral | pharmacy | professional | vision", formalDefinition="The category of claim this is." )
|
||||
protected Enumeration<TypeLink> type;
|
||||
protected Enumeration<ClaimType> type;
|
||||
|
||||
/**
|
||||
* The business identifier for the instance: invoice number, claim number, pre-determination or pre-authorization number.
|
||||
|
@ -3359,7 +3360,7 @@ public class Claim extends DomainResource {
|
|||
*/
|
||||
@Child(name = "use", type = {CodeType.class}, order=8, min=0, max=1)
|
||||
@Description(shortDefinition="complete | proposed | exploratory | other", formalDefinition="Complete (Bill or Claim), Proposed (Pre-Authorization), Exploratory (Pre-determination)." )
|
||||
protected Enumeration<UseLink> use;
|
||||
protected Enumeration<Use> use;
|
||||
|
||||
/**
|
||||
* Immediate (STAT), best effort (NORMAL), deferred (DEFER).
|
||||
|
@ -3531,7 +3532,7 @@ public class Claim extends DomainResource {
|
|||
@Description(shortDefinition="Only if type = oral", formalDefinition="A list of teeth which would be expected but are not found due to having been previously extracted or for other reasons." )
|
||||
protected List<MissingTeethComponent> missingTeeth;
|
||||
|
||||
private static final long serialVersionUID = 764017933L;
|
||||
private static final long serialVersionUID = 1120349447L;
|
||||
|
||||
/*
|
||||
* Constructor
|
||||
|
@ -3543,7 +3544,7 @@ public class Claim extends DomainResource {
|
|||
/*
|
||||
* Constructor
|
||||
*/
|
||||
public Claim(Enumeration<TypeLink> type, Reference patient) {
|
||||
public Claim(Enumeration<ClaimType> type, Reference patient) {
|
||||
super();
|
||||
this.type = type;
|
||||
this.patient = patient;
|
||||
|
@ -3552,12 +3553,12 @@ public class Claim extends DomainResource {
|
|||
/**
|
||||
* @return {@link #type} (The category of claim this is.). This is the underlying object with id, value and extensions. The accessor "getType" gives direct access to the value
|
||||
*/
|
||||
public Enumeration<TypeLink> getTypeElement() {
|
||||
public Enumeration<ClaimType> getTypeElement() {
|
||||
if (this.type == null)
|
||||
if (Configuration.errorOnAutoCreate())
|
||||
throw new Error("Attempt to auto-create Claim.type");
|
||||
else if (Configuration.doAutoCreate())
|
||||
this.type = new Enumeration<TypeLink>(new TypeLinkEnumFactory()); // bb
|
||||
this.type = new Enumeration<ClaimType>(new ClaimTypeEnumFactory()); // bb
|
||||
return this.type;
|
||||
}
|
||||
|
||||
|
@ -3572,7 +3573,7 @@ public class Claim extends DomainResource {
|
|||
/**
|
||||
* @param value {@link #type} (The category of claim this is.). This is the underlying object with id, value and extensions. The accessor "getType" gives direct access to the value
|
||||
*/
|
||||
public Claim setTypeElement(Enumeration<TypeLink> value) {
|
||||
public Claim setTypeElement(Enumeration<ClaimType> value) {
|
||||
this.type = value;
|
||||
return this;
|
||||
}
|
||||
|
@ -3580,16 +3581,16 @@ public class Claim extends DomainResource {
|
|||
/**
|
||||
* @return The category of claim this is.
|
||||
*/
|
||||
public TypeLink getType() {
|
||||
public ClaimType getType() {
|
||||
return this.type == null ? null : this.type.getValue();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value The category of claim this is.
|
||||
*/
|
||||
public Claim setType(TypeLink value) {
|
||||
public Claim setType(ClaimType value) {
|
||||
if (this.type == null)
|
||||
this.type = new Enumeration<TypeLink>(new TypeLinkEnumFactory());
|
||||
this.type = new Enumeration<ClaimType>(new ClaimTypeEnumFactory());
|
||||
this.type.setValue(value);
|
||||
return this;
|
||||
}
|
||||
|
@ -3866,12 +3867,12 @@ public class Claim extends DomainResource {
|
|||
/**
|
||||
* @return {@link #use} (Complete (Bill or Claim), Proposed (Pre-Authorization), Exploratory (Pre-determination).). This is the underlying object with id, value and extensions. The accessor "getUse" gives direct access to the value
|
||||
*/
|
||||
public Enumeration<UseLink> getUseElement() {
|
||||
public Enumeration<Use> getUseElement() {
|
||||
if (this.use == null)
|
||||
if (Configuration.errorOnAutoCreate())
|
||||
throw new Error("Attempt to auto-create Claim.use");
|
||||
else if (Configuration.doAutoCreate())
|
||||
this.use = new Enumeration<UseLink>(new UseLinkEnumFactory()); // bb
|
||||
this.use = new Enumeration<Use>(new UseEnumFactory()); // bb
|
||||
return this.use;
|
||||
}
|
||||
|
||||
|
@ -3886,7 +3887,7 @@ public class Claim extends DomainResource {
|
|||
/**
|
||||
* @param value {@link #use} (Complete (Bill or Claim), Proposed (Pre-Authorization), Exploratory (Pre-determination).). This is the underlying object with id, value and extensions. The accessor "getUse" gives direct access to the value
|
||||
*/
|
||||
public Claim setUseElement(Enumeration<UseLink> value) {
|
||||
public Claim setUseElement(Enumeration<Use> value) {
|
||||
this.use = value;
|
||||
return this;
|
||||
}
|
||||
|
@ -3894,19 +3895,19 @@ public class Claim extends DomainResource {
|
|||
/**
|
||||
* @return Complete (Bill or Claim), Proposed (Pre-Authorization), Exploratory (Pre-determination).
|
||||
*/
|
||||
public UseLink getUse() {
|
||||
public Use getUse() {
|
||||
return this.use == null ? null : this.use.getValue();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value Complete (Bill or Claim), Proposed (Pre-Authorization), Exploratory (Pre-determination).
|
||||
*/
|
||||
public Claim setUse(UseLink value) {
|
||||
public Claim setUse(Use value) {
|
||||
if (value == null)
|
||||
this.use = null;
|
||||
else {
|
||||
if (this.use == null)
|
||||
this.use = new Enumeration<UseLink>(new UseLinkEnumFactory());
|
||||
this.use = new Enumeration<Use>(new UseEnumFactory());
|
||||
this.use.setValue(value);
|
||||
}
|
||||
return this;
|
||||
|
|
|
@ -29,12 +29,13 @@ package org.hl7.fhir.instance.model;
|
|||
|
||||
*/
|
||||
|
||||
// Generated on Fri, May 22, 2015 17:15-0400 for FHIR v0.5.0
|
||||
// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
|
||||
|
||||
import java.util.*;
|
||||
|
||||
import java.math.*;
|
||||
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;
|
||||
|
@ -47,78 +48,6 @@ import org.hl7.fhir.instance.model.api.*;
|
|||
@ResourceDef(name="ClaimResponse", profile="http://hl7.org/fhir/Profile/ClaimResponse")
|
||||
public class ClaimResponse extends DomainResource {
|
||||
|
||||
public enum RSLink {
|
||||
/**
|
||||
* The processing completed without errors.
|
||||
*/
|
||||
COMPLETE,
|
||||
/**
|
||||
* The processing identified with errors.
|
||||
*/
|
||||
ERROR,
|
||||
/**
|
||||
* added to help the parsers
|
||||
*/
|
||||
NULL;
|
||||
public static RSLink fromCode(String codeString) throws Exception {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("complete".equals(codeString))
|
||||
return COMPLETE;
|
||||
if ("error".equals(codeString))
|
||||
return ERROR;
|
||||
throw new Exception("Unknown RSLink code '"+codeString+"'");
|
||||
}
|
||||
public String toCode() {
|
||||
switch (this) {
|
||||
case COMPLETE: return "complete";
|
||||
case ERROR: return "error";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
public String getSystem() {
|
||||
switch (this) {
|
||||
case COMPLETE: return "";
|
||||
case ERROR: return "";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
public String getDefinition() {
|
||||
switch (this) {
|
||||
case COMPLETE: return "The processing completed without errors.";
|
||||
case ERROR: return "The processing identified with errors.";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
public String getDisplay() {
|
||||
switch (this) {
|
||||
case COMPLETE: return "Complete";
|
||||
case ERROR: return "Error";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public static class RSLinkEnumFactory implements EnumFactory<RSLink> {
|
||||
public RSLink fromCode(String codeString) throws IllegalArgumentException {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("complete".equals(codeString))
|
||||
return RSLink.COMPLETE;
|
||||
if ("error".equals(codeString))
|
||||
return RSLink.ERROR;
|
||||
throw new IllegalArgumentException("Unknown RSLink code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(RSLink code) {
|
||||
if (code == RSLink.COMPLETE)
|
||||
return "complete";
|
||||
if (code == RSLink.ERROR)
|
||||
return "error";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
|
||||
@Block()
|
||||
public static class ItemsComponent extends BackboneElement implements IBaseBackboneElement {
|
||||
/**
|
||||
|
@ -3245,7 +3174,7 @@ public class ClaimResponse extends DomainResource {
|
|||
*/
|
||||
@Child(name = "outcome", type = {CodeType.class}, order=8, min=0, max=1)
|
||||
@Description(shortDefinition="complete | error", formalDefinition="Transaction status: error, complete." )
|
||||
protected Enumeration<RSLink> outcome;
|
||||
protected Enumeration<RemittanceOutcome> outcome;
|
||||
|
||||
/**
|
||||
* A description of the status of the adjudication.
|
||||
|
@ -3366,7 +3295,7 @@ public class ClaimResponse extends DomainResource {
|
|||
@Description(shortDefinition="Insurance or medical plan", formalDefinition="Financial instrument by which payment information for health care." )
|
||||
protected List<CoverageComponent> coverage;
|
||||
|
||||
private static final long serialVersionUID = -1720247756L;
|
||||
private static final long serialVersionUID = 2021598689L;
|
||||
|
||||
/*
|
||||
* Constructor
|
||||
|
@ -3691,12 +3620,12 @@ public class ClaimResponse extends DomainResource {
|
|||
/**
|
||||
* @return {@link #outcome} (Transaction status: error, complete.). This is the underlying object with id, value and extensions. The accessor "getOutcome" gives direct access to the value
|
||||
*/
|
||||
public Enumeration<RSLink> getOutcomeElement() {
|
||||
public Enumeration<RemittanceOutcome> getOutcomeElement() {
|
||||
if (this.outcome == null)
|
||||
if (Configuration.errorOnAutoCreate())
|
||||
throw new Error("Attempt to auto-create ClaimResponse.outcome");
|
||||
else if (Configuration.doAutoCreate())
|
||||
this.outcome = new Enumeration<RSLink>(new RSLinkEnumFactory()); // bb
|
||||
this.outcome = new Enumeration<RemittanceOutcome>(new RemittanceOutcomeEnumFactory()); // bb
|
||||
return this.outcome;
|
||||
}
|
||||
|
||||
|
@ -3711,7 +3640,7 @@ public class ClaimResponse extends DomainResource {
|
|||
/**
|
||||
* @param value {@link #outcome} (Transaction status: error, complete.). This is the underlying object with id, value and extensions. The accessor "getOutcome" gives direct access to the value
|
||||
*/
|
||||
public ClaimResponse setOutcomeElement(Enumeration<RSLink> value) {
|
||||
public ClaimResponse setOutcomeElement(Enumeration<RemittanceOutcome> value) {
|
||||
this.outcome = value;
|
||||
return this;
|
||||
}
|
||||
|
@ -3719,19 +3648,19 @@ public class ClaimResponse extends DomainResource {
|
|||
/**
|
||||
* @return Transaction status: error, complete.
|
||||
*/
|
||||
public RSLink getOutcome() {
|
||||
public RemittanceOutcome getOutcome() {
|
||||
return this.outcome == null ? null : this.outcome.getValue();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value Transaction status: error, complete.
|
||||
*/
|
||||
public ClaimResponse setOutcome(RSLink value) {
|
||||
public ClaimResponse setOutcome(RemittanceOutcome value) {
|
||||
if (value == null)
|
||||
this.outcome = null;
|
||||
else {
|
||||
if (this.outcome == null)
|
||||
this.outcome = new Enumeration<RSLink>(new RSLinkEnumFactory());
|
||||
this.outcome = new Enumeration<RemittanceOutcome>(new RemittanceOutcomeEnumFactory());
|
||||
this.outcome.setValue(value);
|
||||
}
|
||||
return this;
|
||||
|
|
|
@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
|
|||
|
||||
*/
|
||||
|
||||
// Generated on Fri, May 22, 2015 17:15-0400 for FHIR v0.5.0
|
||||
// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
|
||||
|
||||
import java.util.*;
|
||||
|
||||
|
@ -52,11 +52,11 @@ public class ClinicalImpression extends DomainResource {
|
|||
*/
|
||||
INPROGRESS,
|
||||
/**
|
||||
* The assessment is done and the results are final.
|
||||
* The assessment is done and the results are final
|
||||
*/
|
||||
COMPLETED,
|
||||
/**
|
||||
* This assessment was never actually done and the record is erroneous (e.g. Wrong patient).
|
||||
* This assessment was never actually done and the record is erroneous (e.g. Wrong patient)
|
||||
*/
|
||||
ENTEREDINERROR,
|
||||
/**
|
||||
|
@ -84,17 +84,17 @@ public class ClinicalImpression extends DomainResource {
|
|||
}
|
||||
public String getSystem() {
|
||||
switch (this) {
|
||||
case INPROGRESS: return "";
|
||||
case COMPLETED: return "";
|
||||
case ENTEREDINERROR: return "";
|
||||
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 "?";
|
||||
}
|
||||
}
|
||||
public String getDefinition() {
|
||||
switch (this) {
|
||||
case INPROGRESS: return "The assessment is still on-going and results are not yet final.";
|
||||
case COMPLETED: return "The assessment is done and the results are final.";
|
||||
case ENTEREDINERROR: return "This assessment was never actually done and the record is erroneous (e.g. Wrong patient).";
|
||||
case COMPLETED: return "The assessment is done and the results are final";
|
||||
case ENTEREDINERROR: return "This assessment was never actually done and the record is erroneous (e.g. Wrong patient)";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -583,14 +583,14 @@ public class ClinicalImpression extends DomainResource {
|
|||
}
|
||||
|
||||
/**
|
||||
* The patient being asssesed.
|
||||
* The patient being assessed.
|
||||
*/
|
||||
@Child(name = "patient", type = {Patient.class}, order=0, min=1, max=1)
|
||||
@Description(shortDefinition="The patient being asssesed", formalDefinition="The patient being asssesed." )
|
||||
@Description(shortDefinition="The patient being assessed", formalDefinition="The patient being assessed." )
|
||||
protected Reference patient;
|
||||
|
||||
/**
|
||||
* The actual object that is the target of the reference (The patient being asssesed.)
|
||||
* The actual object that is the target of the reference (The patient being assessed.)
|
||||
*/
|
||||
protected Patient patientTarget;
|
||||
|
||||
|
@ -750,7 +750,7 @@ public class ClinicalImpression extends DomainResource {
|
|||
}
|
||||
|
||||
/**
|
||||
* @return {@link #patient} (The patient being asssesed.)
|
||||
* @return {@link #patient} (The patient being assessed.)
|
||||
*/
|
||||
public Reference getPatient() {
|
||||
if (this.patient == null)
|
||||
|
@ -766,7 +766,7 @@ public class ClinicalImpression extends DomainResource {
|
|||
}
|
||||
|
||||
/**
|
||||
* @param value {@link #patient} (The patient being asssesed.)
|
||||
* @param value {@link #patient} (The patient being assessed.)
|
||||
*/
|
||||
public ClinicalImpression setPatient(Reference value) {
|
||||
this.patient = value;
|
||||
|
@ -774,7 +774,7 @@ public class ClinicalImpression extends DomainResource {
|
|||
}
|
||||
|
||||
/**
|
||||
* @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. (The patient being asssesed.)
|
||||
* @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. (The patient being assessed.)
|
||||
*/
|
||||
public Patient getPatientTarget() {
|
||||
if (this.patientTarget == null)
|
||||
|
@ -786,7 +786,7 @@ public class ClinicalImpression extends DomainResource {
|
|||
}
|
||||
|
||||
/**
|
||||
* @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. (The patient being asssesed.)
|
||||
* @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. (The patient being assessed.)
|
||||
*/
|
||||
public ClinicalImpression setPatientTarget(Patient value) {
|
||||
this.patientTarget = value;
|
||||
|
@ -1517,7 +1517,7 @@ public class ClinicalImpression extends DomainResource {
|
|||
|
||||
protected void listChildren(List<Property> childrenList) {
|
||||
super.listChildren(childrenList);
|
||||
childrenList.add(new Property("patient", "Reference(Patient)", "The patient being asssesed.", 0, java.lang.Integer.MAX_VALUE, patient));
|
||||
childrenList.add(new Property("patient", "Reference(Patient)", "The patient being assessed.", 0, java.lang.Integer.MAX_VALUE, patient));
|
||||
childrenList.add(new Property("assessor", "Reference(Practitioner)", "The clinician performing the assessment.", 0, java.lang.Integer.MAX_VALUE, assessor));
|
||||
childrenList.add(new Property("status", "code", "Identifies the workflow status of the assessment.", 0, java.lang.Integer.MAX_VALUE, status));
|
||||
childrenList.add(new Property("date", "dateTime", "The point in time at which the assessment was concluded (not when it was recorded).", 0, java.lang.Integer.MAX_VALUE, date));
|
||||
|
@ -1647,7 +1647,7 @@ public class ClinicalImpression extends DomainResource {
|
|||
public static final String SP_RULEDOUT = "ruledout";
|
||||
@SearchParamDefinition(name="problem", path="ClinicalImpression.problem", description="General assessment of patient state", type="reference" )
|
||||
public static final String SP_PROBLEM = "problem";
|
||||
@SearchParamDefinition(name="patient", path="ClinicalImpression.patient", description="The patient being asssesed", type="reference" )
|
||||
@SearchParamDefinition(name="patient", path="ClinicalImpression.patient", description="The patient being assessed", type="reference" )
|
||||
public static final String SP_PATIENT = "patient";
|
||||
@SearchParamDefinition(name="investigation", path="ClinicalImpression.investigations.item", description="Record of a specific investigation", type="reference" )
|
||||
public static final String SP_INVESTIGATION = "investigation";
|
||||
|
|
|
@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
|
|||
|
||||
*/
|
||||
|
||||
// Generated on Fri, May 22, 2015 17:15-0400 for FHIR v0.5.0
|
||||
// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
|
||||
|
||||
import java.util.*;
|
||||
|
||||
|
|
|
@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
|
|||
|
||||
*/
|
||||
|
||||
// Generated on Fri, May 22, 2015 17:15-0400 for FHIR v0.5.0
|
||||
// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
|
||||
|
||||
import java.util.*;
|
||||
|
||||
|
|
|
@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
|
|||
|
||||
*/
|
||||
|
||||
// Generated on Fri, May 22, 2015 17:15-0400 for FHIR v0.5.0
|
||||
// Generated on Sun, May 31, 2015 15:45-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 "";
|
||||
case COMPLETED: return "";
|
||||
case SUSPENDED: return "";
|
||||
case REJECTED: return "";
|
||||
case FAILED: return "";
|
||||
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 "?";
|
||||
}
|
||||
}
|
||||
|
|
|
@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
|
|||
|
||||
*/
|
||||
|
||||
// Generated on Fri, May 22, 2015 17:15-0400 for FHIR v0.5.0
|
||||
// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
|
||||
|
||||
import java.util.*;
|
||||
|
||||
|
@ -48,43 +48,43 @@ public class CommunicationRequest extends DomainResource {
|
|||
|
||||
public enum CommunicationRequestStatus {
|
||||
/**
|
||||
* The request has been proposed.
|
||||
* The request has been proposed
|
||||
*/
|
||||
PROPOSED,
|
||||
/**
|
||||
* The request has been planned.
|
||||
* The request has been planned
|
||||
*/
|
||||
PLANNED,
|
||||
/**
|
||||
* The request has been placed.
|
||||
* The request has been placed
|
||||
*/
|
||||
REQUESTED,
|
||||
/**
|
||||
* The receiving system has received the request but not yet decided whether it will be performed.
|
||||
* The receiving system has received the request but not yet decided whether it will be performed
|
||||
*/
|
||||
RECEIVED,
|
||||
/**
|
||||
* The receiving system has accepted the order, but work has not yet commenced.
|
||||
* The receiving system has accepted the order, but work has not yet commenced
|
||||
*/
|
||||
ACCEPTED,
|
||||
/**
|
||||
* The work to fulfill the order is happening.
|
||||
* The work to fulfill the order is happening
|
||||
*/
|
||||
INPROGRESS,
|
||||
/**
|
||||
* The work has been complete, the report(s) released, and no further work is planned.
|
||||
* The work has been complete, the report(s) released, and no further work is planned
|
||||
*/
|
||||
COMPLETED,
|
||||
/**
|
||||
* The request has been held by originating system/user request.
|
||||
* The request has been held by originating system/user request
|
||||
*/
|
||||
SUSPENDED,
|
||||
/**
|
||||
* The receiving system has declined to fulfill the request.
|
||||
* The receiving system has declined to fulfill the request
|
||||
*/
|
||||
REJECTED,
|
||||
/**
|
||||
* The communication was attempted, but due to some procedural error, it could not be completed.
|
||||
* The communication was attempted, but due to some procedural error, it could not be completed
|
||||
*/
|
||||
FAILED,
|
||||
/**
|
||||
|
@ -133,31 +133,31 @@ public class CommunicationRequest extends DomainResource {
|
|||
}
|
||||
public String getSystem() {
|
||||
switch (this) {
|
||||
case PROPOSED: return "";
|
||||
case PLANNED: return "";
|
||||
case REQUESTED: return "";
|
||||
case RECEIVED: return "";
|
||||
case ACCEPTED: return "";
|
||||
case INPROGRESS: return "";
|
||||
case COMPLETED: return "";
|
||||
case SUSPENDED: return "";
|
||||
case REJECTED: return "";
|
||||
case FAILED: return "";
|
||||
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 "?";
|
||||
}
|
||||
}
|
||||
public String getDefinition() {
|
||||
switch (this) {
|
||||
case PROPOSED: return "The request has been proposed.";
|
||||
case PLANNED: return "The request has been planned.";
|
||||
case REQUESTED: return "The request has been placed.";
|
||||
case RECEIVED: return "The receiving system has received the request but not yet decided whether it will be performed.";
|
||||
case ACCEPTED: return "The receiving system has accepted the order, but work has not yet commenced.";
|
||||
case INPROGRESS: return "The work to fulfill the order is happening.";
|
||||
case COMPLETED: return "The work has been complete, the report(s) released, and no further work is planned.";
|
||||
case SUSPENDED: return "The request has been held by originating system/user request.";
|
||||
case REJECTED: return "The receiving system has declined to fulfill the request.";
|
||||
case FAILED: return "The communication was attempted, but due to some procedural error, it could not be completed.";
|
||||
case PROPOSED: return "The request has been proposed";
|
||||
case PLANNED: return "The request has been planned";
|
||||
case REQUESTED: return "The request has been placed";
|
||||
case RECEIVED: return "The receiving system has received the request but not yet decided whether it will be performed";
|
||||
case ACCEPTED: return "The receiving system has accepted the order, but work has not yet commenced";
|
||||
case INPROGRESS: return "The work to fulfill the order is happening";
|
||||
case COMPLETED: return "The work has been complete, the report(s) released, and no further work is planned";
|
||||
case SUSPENDED: return "The request has been held by originating system/user request";
|
||||
case REJECTED: return "The receiving system has declined to fulfill the request";
|
||||
case FAILED: return "The communication was attempted, but due to some procedural error, it could not be completed";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
|
|
@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
|
|||
|
||||
*/
|
||||
|
||||
// Generated on Fri, May 22, 2015 17:15-0400 for FHIR v0.5.0
|
||||
// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
|
||||
|
||||
import java.util.*;
|
||||
|
||||
|
@ -48,7 +48,7 @@ public class Composition extends DomainResource {
|
|||
|
||||
public enum CompositionStatus {
|
||||
/**
|
||||
* This is a preliminary composition or document (also known as initial or interim). The content may be incomplete or unverified.
|
||||
* This is a preliminary composition or document (also known as initial or interim). The content may be incomplete or unverified
|
||||
*/
|
||||
PRELIMINARY,
|
||||
/**
|
||||
|
@ -56,15 +56,15 @@ public class Composition extends DomainResource {
|
|||
*/
|
||||
FINAL,
|
||||
/**
|
||||
* The composition or document has been modified subsequent to being released as "final", and is complete and verified by an authorized person. The modifications added new information to the composition or document, but did not revise existing content.
|
||||
* The composition or document has been modified subsequent to being released as "final", and is complete and verified by an authorized person. The modifications added new information to the composition or document, but did not revise existing content
|
||||
*/
|
||||
APPENDED,
|
||||
/**
|
||||
* The composition or document has been modified subsequent to being released as "final", and is complete and verified by an authorized person.
|
||||
* The composition or document has been modified subsequent to being released as "final", and is complete and verified by an authorized person
|
||||
*/
|
||||
AMENDED,
|
||||
/**
|
||||
* The composition or document was originally created/issued in error, and this is an amendment that marks that the entire series should not be considered as valid.
|
||||
* The composition or document was originally created/issued in error, and this is an amendment that marks that the entire series should not be considered as valid
|
||||
*/
|
||||
ENTEREDINERROR,
|
||||
/**
|
||||
|
@ -98,21 +98,21 @@ public class Composition extends DomainResource {
|
|||
}
|
||||
public String getSystem() {
|
||||
switch (this) {
|
||||
case PRELIMINARY: return "";
|
||||
case FINAL: return "";
|
||||
case APPENDED: return "";
|
||||
case AMENDED: return "";
|
||||
case ENTEREDINERROR: return "";
|
||||
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 "?";
|
||||
}
|
||||
}
|
||||
public String getDefinition() {
|
||||
switch (this) {
|
||||
case PRELIMINARY: return "This is a preliminary composition or document (also known as initial or interim). The content may be incomplete or unverified.";
|
||||
case PRELIMINARY: return "This is a preliminary composition or document (also known as initial or interim). The content may be incomplete or unverified";
|
||||
case FINAL: return "This version of the composition is complete and verified by an appropriate person and no further work is planned. Any subsequent updates would be on a new version of the composition.";
|
||||
case APPENDED: return "The composition or document has been modified subsequent to being released as 'final', and is complete and verified by an authorized person. The modifications added new information to the composition or document, but did not revise existing content.";
|
||||
case AMENDED: return "The composition or document has been modified subsequent to being released as 'final', and is complete and verified by an authorized person.";
|
||||
case ENTEREDINERROR: return "The composition or document was originally created/issued in error, and this is an amendment that marks that the entire series should not be considered as valid.";
|
||||
case APPENDED: return "The composition or document has been modified subsequent to being released as 'final', and is complete and verified by an authorized person. The modifications added new information to the composition or document, but did not revise existing content";
|
||||
case AMENDED: return "The composition or document has been modified subsequent to being released as 'final', and is complete and verified by an authorized person";
|
||||
case ENTEREDINERROR: return "The composition or document was originally created/issued in error, and this is an amendment that marks that the entire series should not be considered as valid";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -162,19 +162,19 @@ public class Composition extends DomainResource {
|
|||
|
||||
public enum CompositionAttestationMode {
|
||||
/**
|
||||
* The person authenticated the content in their personal capacity.
|
||||
* The person authenticated the content in their personal capacity
|
||||
*/
|
||||
PERSONAL,
|
||||
/**
|
||||
* The person authenticated the content in their professional capacity.
|
||||
* The person authenticated the content in their professional capacity
|
||||
*/
|
||||
PROFESSIONAL,
|
||||
/**
|
||||
* The person authenticated the content and accepted legal responsibility for its content.
|
||||
* The person authenticated the content and accepted legal responsibility for its content
|
||||
*/
|
||||
LEGAL,
|
||||
/**
|
||||
* The organization authenticated the content as consistent with their policies and procedures.
|
||||
* The organization authenticated the content as consistent with their policies and procedures
|
||||
*/
|
||||
OFFICIAL,
|
||||
/**
|
||||
|
@ -205,19 +205,19 @@ public class Composition extends DomainResource {
|
|||
}
|
||||
public String getSystem() {
|
||||
switch (this) {
|
||||
case PERSONAL: return "";
|
||||
case PROFESSIONAL: return "";
|
||||
case LEGAL: return "";
|
||||
case OFFICIAL: return "";
|
||||
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 "?";
|
||||
}
|
||||
}
|
||||
public String getDefinition() {
|
||||
switch (this) {
|
||||
case PERSONAL: return "The person authenticated the content in their personal capacity.";
|
||||
case PROFESSIONAL: return "The person authenticated the content in their professional capacity.";
|
||||
case LEGAL: return "The person authenticated the content and accepted legal responsibility for its content.";
|
||||
case OFFICIAL: return "The organization authenticated the content as consistent with their policies and procedures.";
|
||||
case PERSONAL: return "The person authenticated the content in their personal capacity";
|
||||
case PROFESSIONAL: return "The person authenticated the content in their professional capacity";
|
||||
case LEGAL: return "The person authenticated the content and accepted legal responsibility for its content";
|
||||
case OFFICIAL: return "The organization authenticated the content as consistent with their policies and procedures";
|
||||
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_;
|
||||
|
||||
|
|
|
@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
|
|||
|
||||
*/
|
||||
|
||||
// Generated on Fri, May 22, 2015 17:15-0400 for FHIR v0.5.0
|
||||
// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
|
||||
|
||||
import java.util.*;
|
||||
|
||||
|
@ -47,176 +47,6 @@ import org.hl7.fhir.instance.model.api.*;
|
|||
@ResourceDef(name="ConceptMap", profile="http://hl7.org/fhir/Profile/ConceptMap")
|
||||
public class ConceptMap extends DomainResource {
|
||||
|
||||
public enum ConceptEquivalence {
|
||||
/**
|
||||
* The definitions of the concepts mean the same thing (including when structural implications of meaning are considered) (i.e. extensionally identical).
|
||||
*/
|
||||
EQUIVALENT,
|
||||
/**
|
||||
* The definitions of the concepts are exactly the same (i.e. only grammatical differences) and structural implications of meaning are identifical or irrelevant (i.e. intensionally identical).
|
||||
*/
|
||||
EQUAL,
|
||||
/**
|
||||
* The target mapping is wider in meaning than the source concept.
|
||||
*/
|
||||
WIDER,
|
||||
/**
|
||||
* The target mapping subsumes the meaning of the source concept (e.g. the source is-a target).
|
||||
*/
|
||||
SUBSUMES,
|
||||
/**
|
||||
* 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.
|
||||
*/
|
||||
NARROWER,
|
||||
/**
|
||||
* The target mapping specialises the meaning of the source concept (e.g. the target is-a source).
|
||||
*/
|
||||
SPECIALISES,
|
||||
/**
|
||||
* 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.
|
||||
*/
|
||||
INEXACT,
|
||||
/**
|
||||
* There is no match for this concept in the destination concept system.
|
||||
*/
|
||||
UNMATCHED,
|
||||
/**
|
||||
* This is an explicit assertion that there is no mapping between the source and target concept.
|
||||
*/
|
||||
DISJOINT,
|
||||
/**
|
||||
* added to help the parsers
|
||||
*/
|
||||
NULL;
|
||||
public static ConceptEquivalence fromCode(String codeString) throws Exception {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("equivalent".equals(codeString))
|
||||
return EQUIVALENT;
|
||||
if ("equal".equals(codeString))
|
||||
return EQUAL;
|
||||
if ("wider".equals(codeString))
|
||||
return WIDER;
|
||||
if ("subsumes".equals(codeString))
|
||||
return SUBSUMES;
|
||||
if ("narrower".equals(codeString))
|
||||
return NARROWER;
|
||||
if ("specialises".equals(codeString))
|
||||
return SPECIALISES;
|
||||
if ("inexact".equals(codeString))
|
||||
return INEXACT;
|
||||
if ("unmatched".equals(codeString))
|
||||
return UNMATCHED;
|
||||
if ("disjoint".equals(codeString))
|
||||
return DISJOINT;
|
||||
throw new Exception("Unknown ConceptEquivalence code '"+codeString+"'");
|
||||
}
|
||||
public String toCode() {
|
||||
switch (this) {
|
||||
case EQUIVALENT: return "equivalent";
|
||||
case EQUAL: return "equal";
|
||||
case WIDER: return "wider";
|
||||
case SUBSUMES: return "subsumes";
|
||||
case NARROWER: return "narrower";
|
||||
case SPECIALISES: return "specialises";
|
||||
case INEXACT: return "inexact";
|
||||
case UNMATCHED: return "unmatched";
|
||||
case DISJOINT: return "disjoint";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
public String getSystem() {
|
||||
switch (this) {
|
||||
case EQUIVALENT: return "";
|
||||
case EQUAL: return "";
|
||||
case WIDER: return "";
|
||||
case SUBSUMES: return "";
|
||||
case NARROWER: return "";
|
||||
case SPECIALISES: return "";
|
||||
case INEXACT: return "";
|
||||
case UNMATCHED: return "";
|
||||
case DISJOINT: return "";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
public String getDefinition() {
|
||||
switch (this) {
|
||||
case EQUIVALENT: return "The definitions of the concepts mean the same thing (including when structural implications of meaning are considered) (i.e. extensionally identical).";
|
||||
case EQUAL: return "The definitions of the concepts are exactly the same (i.e. only grammatical differences) and structural implications of meaning are identifical or irrelevant (i.e. intensionally identical).";
|
||||
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 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.";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
public String getDisplay() {
|
||||
switch (this) {
|
||||
case EQUIVALENT: return "Equivalent";
|
||||
case EQUAL: return "Equal";
|
||||
case WIDER: return "Wider";
|
||||
case SUBSUMES: return "Subsumes";
|
||||
case NARROWER: return "Narrower";
|
||||
case SPECIALISES: return "Specialises";
|
||||
case INEXACT: return "Inexact";
|
||||
case UNMATCHED: return "Unmatched";
|
||||
case DISJOINT: return "Disjoint";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public static class ConceptEquivalenceEnumFactory implements EnumFactory<ConceptEquivalence> {
|
||||
public ConceptEquivalence fromCode(String codeString) throws IllegalArgumentException {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("equivalent".equals(codeString))
|
||||
return ConceptEquivalence.EQUIVALENT;
|
||||
if ("equal".equals(codeString))
|
||||
return ConceptEquivalence.EQUAL;
|
||||
if ("wider".equals(codeString))
|
||||
return ConceptEquivalence.WIDER;
|
||||
if ("subsumes".equals(codeString))
|
||||
return ConceptEquivalence.SUBSUMES;
|
||||
if ("narrower".equals(codeString))
|
||||
return ConceptEquivalence.NARROWER;
|
||||
if ("specialises".equals(codeString))
|
||||
return ConceptEquivalence.SPECIALISES;
|
||||
if ("inexact".equals(codeString))
|
||||
return ConceptEquivalence.INEXACT;
|
||||
if ("unmatched".equals(codeString))
|
||||
return ConceptEquivalence.UNMATCHED;
|
||||
if ("disjoint".equals(codeString))
|
||||
return ConceptEquivalence.DISJOINT;
|
||||
throw new IllegalArgumentException("Unknown ConceptEquivalence code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(ConceptEquivalence code) {
|
||||
if (code == ConceptEquivalence.EQUIVALENT)
|
||||
return "equivalent";
|
||||
if (code == ConceptEquivalence.EQUAL)
|
||||
return "equal";
|
||||
if (code == ConceptEquivalence.WIDER)
|
||||
return "wider";
|
||||
if (code == ConceptEquivalence.SUBSUMES)
|
||||
return "subsumes";
|
||||
if (code == ConceptEquivalence.NARROWER)
|
||||
return "narrower";
|
||||
if (code == ConceptEquivalence.SPECIALISES)
|
||||
return "specialises";
|
||||
if (code == ConceptEquivalence.INEXACT)
|
||||
return "inexact";
|
||||
if (code == ConceptEquivalence.UNMATCHED)
|
||||
return "unmatched";
|
||||
if (code == ConceptEquivalence.DISJOINT)
|
||||
return "disjoint";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
|
||||
@Block()
|
||||
public static class ConceptMapContactComponent extends BackboneElement implements IBaseBackboneElement {
|
||||
/**
|
||||
|
@ -890,7 +720,7 @@ public class ConceptMap extends DomainResource {
|
|||
*/
|
||||
@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<ConceptEquivalence> equivalence;
|
||||
protected Enumeration<ConceptMapEquivalence> equivalence;
|
||||
|
||||
/**
|
||||
* A description of status/issues in mapping that conveys additional information not represented in the structured data.
|
||||
|
@ -906,7 +736,7 @@ public class ConceptMap extends DomainResource {
|
|||
@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<OtherElementComponent> product;
|
||||
|
||||
private static final long serialVersionUID = 606421694L;
|
||||
private static final long serialVersionUID = 949452924L;
|
||||
|
||||
/*
|
||||
* Constructor
|
||||
|
@ -918,7 +748,7 @@ public class ConceptMap extends DomainResource {
|
|||
/*
|
||||
* Constructor
|
||||
*/
|
||||
public ConceptMapElementMapComponent(Enumeration<ConceptEquivalence> equivalence) {
|
||||
public ConceptMapElementMapComponent(Enumeration<ConceptMapEquivalence> equivalence) {
|
||||
super();
|
||||
this.equivalence = equivalence;
|
||||
}
|
||||
|
@ -1024,12 +854,12 @@ public class ConceptMap extends DomainResource {
|
|||
/**
|
||||
* @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<ConceptEquivalence> getEquivalenceElement() {
|
||||
public Enumeration<ConceptMapEquivalence> 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<ConceptEquivalence>(new ConceptEquivalenceEnumFactory()); // bb
|
||||
this.equivalence = new Enumeration<ConceptMapEquivalence>(new ConceptMapEquivalenceEnumFactory()); // bb
|
||||
return this.equivalence;
|
||||
}
|
||||
|
||||
|
@ -1044,7 +874,7 @@ public class ConceptMap extends DomainResource {
|
|||
/**
|
||||
* @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<ConceptEquivalence> value) {
|
||||
public ConceptMapElementMapComponent setEquivalenceElement(Enumeration<ConceptMapEquivalence> value) {
|
||||
this.equivalence = value;
|
||||
return this;
|
||||
}
|
||||
|
@ -1052,16 +882,16 @@ public class ConceptMap extends DomainResource {
|
|||
/**
|
||||
* @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 ConceptEquivalence getEquivalence() {
|
||||
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(ConceptEquivalence value) {
|
||||
public ConceptMapElementMapComponent setEquivalence(ConceptMapEquivalence value) {
|
||||
if (this.equivalence == null)
|
||||
this.equivalence = new Enumeration<ConceptEquivalence>(new ConceptEquivalenceEnumFactory());
|
||||
this.equivalence = new Enumeration<ConceptMapEquivalence>(new ConceptMapEquivalenceEnumFactory());
|
||||
this.equivalence.setValue(value);
|
||||
return this;
|
||||
}
|
||||
|
|
|
@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
|
|||
|
||||
*/
|
||||
|
||||
// Generated on Fri, May 22, 2015 17:15-0400 for FHIR v0.5.0
|
||||
// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
|
||||
|
||||
import java.util.*;
|
||||
|
||||
|
@ -46,36 +46,36 @@ import org.hl7.fhir.instance.model.api.*;
|
|||
@ResourceDef(name="Condition", profile="http://hl7.org/fhir/Profile/Condition")
|
||||
public class Condition extends DomainResource {
|
||||
|
||||
public enum ConditionStatus {
|
||||
public enum ConditionClinicalStatus {
|
||||
/**
|
||||
* This is a tentative diagnosis - still a candidate that is under consideration.
|
||||
* This is a tentative diagnosis - still a candidate that is under consideration
|
||||
*/
|
||||
PROVISIONAL,
|
||||
/**
|
||||
* The patient is being treated on the basis that this is the condition, but it is still not confirmed.
|
||||
* The patient is being treated on the basis that this is the condition, but it is still not confirmed
|
||||
*/
|
||||
WORKING,
|
||||
/**
|
||||
* There is sufficient diagnostic and/or clinical evidence to treat this as a confirmed condition.
|
||||
* There is sufficient diagnostic and/or clinical evidence to treat this as a confirmed condition
|
||||
*/
|
||||
CONFIRMED,
|
||||
/**
|
||||
* This condition has been ruled out by diagnostic and clinical evidence.
|
||||
* This condition has been ruled out by diagnostic and clinical evidence
|
||||
*/
|
||||
REFUTED,
|
||||
/**
|
||||
* The statement was entered in error and Is not valid.
|
||||
* The statement was entered in error and Is not valid
|
||||
*/
|
||||
ENTEREDINERROR,
|
||||
/**
|
||||
* The condition status is unknown. Note that "unknown" is a value of last resort and every attempt should be made to provide a meaningful value other than "unknown".
|
||||
* The condition status is unknown. Note that "unknown" is a value of last resort and every attempt should be made to provide a meaningful value other than "unknown"
|
||||
*/
|
||||
UNKNOWN,
|
||||
/**
|
||||
* added to help the parsers
|
||||
*/
|
||||
NULL;
|
||||
public static ConditionStatus fromCode(String codeString) throws Exception {
|
||||
public static ConditionClinicalStatus fromCode(String codeString) throws Exception {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("provisional".equals(codeString))
|
||||
|
@ -90,7 +90,7 @@ public class Condition extends DomainResource {
|
|||
return ENTEREDINERROR;
|
||||
if ("unknown".equals(codeString))
|
||||
return UNKNOWN;
|
||||
throw new Exception("Unknown ConditionStatus code '"+codeString+"'");
|
||||
throw new Exception("Unknown ConditionClinicalStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode() {
|
||||
switch (this) {
|
||||
|
@ -105,23 +105,23 @@ public class Condition extends DomainResource {
|
|||
}
|
||||
public String getSystem() {
|
||||
switch (this) {
|
||||
case PROVISIONAL: return "";
|
||||
case WORKING: return "";
|
||||
case CONFIRMED: return "";
|
||||
case REFUTED: return "";
|
||||
case ENTEREDINERROR: return "";
|
||||
case UNKNOWN: return "";
|
||||
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 "?";
|
||||
}
|
||||
}
|
||||
public String getDefinition() {
|
||||
switch (this) {
|
||||
case PROVISIONAL: return "This is a tentative diagnosis - still a candidate that is under consideration.";
|
||||
case WORKING: return "The patient is being treated on the basis that this is the condition, but it is still not confirmed.";
|
||||
case CONFIRMED: return "There is sufficient diagnostic and/or clinical evidence to treat this as a confirmed condition.";
|
||||
case REFUTED: return "This condition has been ruled out by diagnostic and clinical evidence.";
|
||||
case ENTEREDINERROR: return "The statement was entered in error and Is not valid.";
|
||||
case UNKNOWN: return "The condition status is unknown. Note that 'unknown' is a value of last resort and every attempt should be made to provide a meaningful value other than 'unknown'.";
|
||||
case PROVISIONAL: return "This is a tentative diagnosis - still a candidate that is under consideration";
|
||||
case WORKING: return "The patient is being treated on the basis that this is the condition, but it is still not confirmed";
|
||||
case CONFIRMED: return "There is sufficient diagnostic and/or clinical evidence to treat this as a confirmed condition";
|
||||
case REFUTED: return "This condition has been ruled out by diagnostic and clinical evidence";
|
||||
case ENTEREDINERROR: return "The statement was entered in error and Is not valid";
|
||||
case UNKNOWN: return "The condition status is unknown. Note that 'unknown' is a value of last resort and every attempt should be made to provide a meaningful value other than 'unknown'";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -138,37 +138,37 @@ public class Condition extends DomainResource {
|
|||
}
|
||||
}
|
||||
|
||||
public static class ConditionStatusEnumFactory implements EnumFactory<ConditionStatus> {
|
||||
public ConditionStatus fromCode(String codeString) throws IllegalArgumentException {
|
||||
public static class ConditionClinicalStatusEnumFactory implements EnumFactory<ConditionClinicalStatus> {
|
||||
public ConditionClinicalStatus fromCode(String codeString) throws IllegalArgumentException {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("provisional".equals(codeString))
|
||||
return ConditionStatus.PROVISIONAL;
|
||||
return ConditionClinicalStatus.PROVISIONAL;
|
||||
if ("working".equals(codeString))
|
||||
return ConditionStatus.WORKING;
|
||||
return ConditionClinicalStatus.WORKING;
|
||||
if ("confirmed".equals(codeString))
|
||||
return ConditionStatus.CONFIRMED;
|
||||
return ConditionClinicalStatus.CONFIRMED;
|
||||
if ("refuted".equals(codeString))
|
||||
return ConditionStatus.REFUTED;
|
||||
return ConditionClinicalStatus.REFUTED;
|
||||
if ("entered-in-error".equals(codeString))
|
||||
return ConditionStatus.ENTEREDINERROR;
|
||||
return ConditionClinicalStatus.ENTEREDINERROR;
|
||||
if ("unknown".equals(codeString))
|
||||
return ConditionStatus.UNKNOWN;
|
||||
throw new IllegalArgumentException("Unknown ConditionStatus code '"+codeString+"'");
|
||||
return ConditionClinicalStatus.UNKNOWN;
|
||||
throw new IllegalArgumentException("Unknown ConditionClinicalStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(ConditionStatus code) {
|
||||
if (code == ConditionStatus.PROVISIONAL)
|
||||
public String toCode(ConditionClinicalStatus code) {
|
||||
if (code == ConditionClinicalStatus.PROVISIONAL)
|
||||
return "provisional";
|
||||
if (code == ConditionStatus.WORKING)
|
||||
if (code == ConditionClinicalStatus.WORKING)
|
||||
return "working";
|
||||
if (code == ConditionStatus.CONFIRMED)
|
||||
if (code == ConditionClinicalStatus.CONFIRMED)
|
||||
return "confirmed";
|
||||
if (code == ConditionStatus.REFUTED)
|
||||
if (code == ConditionClinicalStatus.REFUTED)
|
||||
return "refuted";
|
||||
if (code == ConditionStatus.ENTEREDINERROR)
|
||||
if (code == ConditionClinicalStatus.ENTEREDINERROR)
|
||||
return "entered-in-error";
|
||||
if (code == ConditionStatus.UNKNOWN)
|
||||
if (code == ConditionClinicalStatus.UNKNOWN)
|
||||
return "unknown";
|
||||
return "?";
|
||||
}
|
||||
|
@ -900,7 +900,7 @@ public class Condition extends DomainResource {
|
|||
*/
|
||||
@Child(name = "clinicalStatus", type = {CodeType.class}, order=7, min=1, max=1)
|
||||
@Description(shortDefinition="provisional | working | confirmed | refuted | entered-in-error | unknown", formalDefinition="The clinical status of the condition." )
|
||||
protected Enumeration<ConditionStatus> clinicalStatus;
|
||||
protected Enumeration<ConditionClinicalStatus> clinicalStatus;
|
||||
|
||||
/**
|
||||
* A subjective assessment of the severity of the condition as evaluated by the clinician.
|
||||
|
@ -965,7 +965,7 @@ public class Condition extends DomainResource {
|
|||
@Description(shortDefinition="Additional information about the Condition", formalDefinition="Additional information about the Condition. This is a general notes/comments entry for description of the Condition, its diagnosis and prognosis." )
|
||||
protected StringType notes;
|
||||
|
||||
private static final long serialVersionUID = -1018838673L;
|
||||
private static final long serialVersionUID = -1214455844L;
|
||||
|
||||
/*
|
||||
* Constructor
|
||||
|
@ -977,7 +977,7 @@ public class Condition extends DomainResource {
|
|||
/*
|
||||
* Constructor
|
||||
*/
|
||||
public Condition(Reference patient, CodeableConcept code, Enumeration<ConditionStatus> clinicalStatus) {
|
||||
public Condition(Reference patient, CodeableConcept code, Enumeration<ConditionClinicalStatus> clinicalStatus) {
|
||||
super();
|
||||
this.patient = patient;
|
||||
this.code = code;
|
||||
|
@ -1251,12 +1251,12 @@ public class Condition extends DomainResource {
|
|||
/**
|
||||
* @return {@link #clinicalStatus} (The clinical status of the condition.). This is the underlying object with id, value and extensions. The accessor "getClinicalStatus" gives direct access to the value
|
||||
*/
|
||||
public Enumeration<ConditionStatus> getClinicalStatusElement() {
|
||||
public Enumeration<ConditionClinicalStatus> getClinicalStatusElement() {
|
||||
if (this.clinicalStatus == null)
|
||||
if (Configuration.errorOnAutoCreate())
|
||||
throw new Error("Attempt to auto-create Condition.clinicalStatus");
|
||||
else if (Configuration.doAutoCreate())
|
||||
this.clinicalStatus = new Enumeration<ConditionStatus>(new ConditionStatusEnumFactory()); // bb
|
||||
this.clinicalStatus = new Enumeration<ConditionClinicalStatus>(new ConditionClinicalStatusEnumFactory()); // bb
|
||||
return this.clinicalStatus;
|
||||
}
|
||||
|
||||
|
@ -1271,7 +1271,7 @@ public class Condition extends DomainResource {
|
|||
/**
|
||||
* @param value {@link #clinicalStatus} (The clinical status of the condition.). This is the underlying object with id, value and extensions. The accessor "getClinicalStatus" gives direct access to the value
|
||||
*/
|
||||
public Condition setClinicalStatusElement(Enumeration<ConditionStatus> value) {
|
||||
public Condition setClinicalStatusElement(Enumeration<ConditionClinicalStatus> value) {
|
||||
this.clinicalStatus = value;
|
||||
return this;
|
||||
}
|
||||
|
@ -1279,16 +1279,16 @@ public class Condition extends DomainResource {
|
|||
/**
|
||||
* @return The clinical status of the condition.
|
||||
*/
|
||||
public ConditionStatus getClinicalStatus() {
|
||||
public ConditionClinicalStatus getClinicalStatus() {
|
||||
return this.clinicalStatus == null ? null : this.clinicalStatus.getValue();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value The clinical status of the condition.
|
||||
*/
|
||||
public Condition setClinicalStatus(ConditionStatus value) {
|
||||
public Condition setClinicalStatus(ConditionClinicalStatus value) {
|
||||
if (this.clinicalStatus == null)
|
||||
this.clinicalStatus = new Enumeration<ConditionStatus>(new ConditionStatusEnumFactory());
|
||||
this.clinicalStatus = new Enumeration<ConditionClinicalStatus>(new ConditionClinicalStatusEnumFactory());
|
||||
this.clinicalStatus.setValue(value);
|
||||
return this;
|
||||
}
|
||||
|
|
|
@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
|
|||
|
||||
*/
|
||||
|
||||
// Generated on Fri, May 22, 2015 17:15-0400 for FHIR v0.5.0
|
||||
// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
|
||||
|
||||
import java.util.*;
|
||||
|
||||
|
@ -49,11 +49,11 @@ public class Conformance extends DomainResource {
|
|||
|
||||
public enum RestfulConformanceMode {
|
||||
/**
|
||||
* The application acts as a client for this resource.
|
||||
* The application acts as a client for this resource
|
||||
*/
|
||||
CLIENT,
|
||||
/**
|
||||
* The application acts as a server for this resource.
|
||||
* The application acts as a server for this resource
|
||||
*/
|
||||
SERVER,
|
||||
/**
|
||||
|
@ -78,15 +78,15 @@ public class Conformance extends DomainResource {
|
|||
}
|
||||
public String getSystem() {
|
||||
switch (this) {
|
||||
case CLIENT: return "";
|
||||
case SERVER: return "";
|
||||
case CLIENT: return "http://hl7.org.fhir/restful-conformance-mode";
|
||||
case SERVER: return "http://hl7.org.fhir/restful-conformance-mode";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
public String getDefinition() {
|
||||
switch (this) {
|
||||
case CLIENT: return "The application acts as a client for this resource.";
|
||||
case SERVER: return "The application acts as a server for this resource.";
|
||||
case CLIENT: return "The application acts as a client for this resource";
|
||||
case SERVER: return "The application acts as a server for this resource";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -121,39 +121,39 @@ public class Conformance extends DomainResource {
|
|||
|
||||
public enum TypeRestfulInteraction {
|
||||
/**
|
||||
*
|
||||
* null
|
||||
*/
|
||||
READ,
|
||||
/**
|
||||
*
|
||||
* null
|
||||
*/
|
||||
VREAD,
|
||||
/**
|
||||
*
|
||||
* null
|
||||
*/
|
||||
UPDATE,
|
||||
/**
|
||||
*
|
||||
* null
|
||||
*/
|
||||
DELETE,
|
||||
/**
|
||||
*
|
||||
* null
|
||||
*/
|
||||
HISTORYINSTANCE,
|
||||
/**
|
||||
*
|
||||
* null
|
||||
*/
|
||||
VALIDATE,
|
||||
/**
|
||||
*
|
||||
* null
|
||||
*/
|
||||
HISTORYTYPE,
|
||||
/**
|
||||
*
|
||||
* null
|
||||
*/
|
||||
CREATE,
|
||||
/**
|
||||
*
|
||||
* null
|
||||
*/
|
||||
SEARCHTYPE,
|
||||
/**
|
||||
|
@ -227,15 +227,15 @@ public class Conformance extends DomainResource {
|
|||
}
|
||||
public String getDisplay() {
|
||||
switch (this) {
|
||||
case READ: return "Read";
|
||||
case VREAD: return "Vread";
|
||||
case UPDATE: return "Update";
|
||||
case DELETE: return "Delete";
|
||||
case HISTORYINSTANCE: return "History Instance";
|
||||
case VALIDATE: return "Validate";
|
||||
case HISTORYTYPE: return "History Type";
|
||||
case CREATE: return "Create";
|
||||
case SEARCHTYPE: return "Search Type";
|
||||
case READ: return "read";
|
||||
case VREAD: return "vread";
|
||||
case UPDATE: return "update";
|
||||
case DELETE: return "delete";
|
||||
case HISTORYINSTANCE: return "history-instance";
|
||||
case VALIDATE: return "validate";
|
||||
case HISTORYTYPE: return "history-type";
|
||||
case CREATE: return "create";
|
||||
case SEARCHTYPE: return "search-type";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -289,24 +289,24 @@ public class Conformance extends DomainResource {
|
|||
}
|
||||
}
|
||||
|
||||
public enum VersioningPolicy {
|
||||
public enum ResourceVersionPolicy {
|
||||
/**
|
||||
* VersionId meta-property is not suppoerted (server) or used (client).
|
||||
* VersionId meta-property is not suppoerted (server) or used (client)
|
||||
*/
|
||||
NOVERSION,
|
||||
/**
|
||||
* VersionId meta-property is suppoerted (server) or used (client).
|
||||
* VersionId meta-property is suppoerted (server) or used (client)
|
||||
*/
|
||||
VERSIONED,
|
||||
/**
|
||||
* VersionId is must be correct for updates (server) or will be specified (If-match header) for updates (client).
|
||||
* VersionId is must be correct for updates (server) or will be specified (If-match header) for updates (client)
|
||||
*/
|
||||
VERSIONEDUPDATE,
|
||||
/**
|
||||
* added to help the parsers
|
||||
*/
|
||||
NULL;
|
||||
public static VersioningPolicy fromCode(String codeString) throws Exception {
|
||||
public static ResourceVersionPolicy fromCode(String codeString) throws Exception {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("no-version".equals(codeString))
|
||||
|
@ -315,7 +315,7 @@ public class Conformance extends DomainResource {
|
|||
return VERSIONED;
|
||||
if ("versioned-update".equals(codeString))
|
||||
return VERSIONEDUPDATE;
|
||||
throw new Exception("Unknown VersioningPolicy code '"+codeString+"'");
|
||||
throw new Exception("Unknown ResourceVersionPolicy code '"+codeString+"'");
|
||||
}
|
||||
public String toCode() {
|
||||
switch (this) {
|
||||
|
@ -327,17 +327,17 @@ public class Conformance extends DomainResource {
|
|||
}
|
||||
public String getSystem() {
|
||||
switch (this) {
|
||||
case NOVERSION: return "";
|
||||
case VERSIONED: return "";
|
||||
case VERSIONEDUPDATE: return "";
|
||||
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 "?";
|
||||
}
|
||||
}
|
||||
public String getDefinition() {
|
||||
switch (this) {
|
||||
case NOVERSION: return "VersionId meta-property is not suppoerted (server) or used (client).";
|
||||
case VERSIONED: return "VersionId meta-property is suppoerted (server) or used (client).";
|
||||
case VERSIONEDUPDATE: return "VersionId is must be correct for updates (server) or will be specified (If-match header) for updates (client).";
|
||||
case NOVERSION: return "VersionId meta-property is not suppoerted (server) or used (client)";
|
||||
case VERSIONED: return "VersionId meta-property is suppoerted (server) or used (client)";
|
||||
case VERSIONEDUPDATE: return "VersionId is must be correct for updates (server) or will be specified (If-match header) for updates (client)";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -351,197 +351,41 @@ public class Conformance extends DomainResource {
|
|||
}
|
||||
}
|
||||
|
||||
public static class VersioningPolicyEnumFactory implements EnumFactory<VersioningPolicy> {
|
||||
public VersioningPolicy fromCode(String codeString) throws IllegalArgumentException {
|
||||
public static class ResourceVersionPolicyEnumFactory implements EnumFactory<ResourceVersionPolicy> {
|
||||
public ResourceVersionPolicy fromCode(String codeString) throws IllegalArgumentException {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("no-version".equals(codeString))
|
||||
return VersioningPolicy.NOVERSION;
|
||||
return ResourceVersionPolicy.NOVERSION;
|
||||
if ("versioned".equals(codeString))
|
||||
return VersioningPolicy.VERSIONED;
|
||||
return ResourceVersionPolicy.VERSIONED;
|
||||
if ("versioned-update".equals(codeString))
|
||||
return VersioningPolicy.VERSIONEDUPDATE;
|
||||
throw new IllegalArgumentException("Unknown VersioningPolicy code '"+codeString+"'");
|
||||
return ResourceVersionPolicy.VERSIONEDUPDATE;
|
||||
throw new IllegalArgumentException("Unknown ResourceVersionPolicy code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(VersioningPolicy code) {
|
||||
if (code == VersioningPolicy.NOVERSION)
|
||||
public String toCode(ResourceVersionPolicy code) {
|
||||
if (code == ResourceVersionPolicy.NOVERSION)
|
||||
return "no-version";
|
||||
if (code == VersioningPolicy.VERSIONED)
|
||||
if (code == ResourceVersionPolicy.VERSIONED)
|
||||
return "versioned";
|
||||
if (code == VersioningPolicy.VERSIONEDUPDATE)
|
||||
if (code == ResourceVersionPolicy.VERSIONEDUPDATE)
|
||||
return "versioned-update";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
|
||||
public enum SearchParamType {
|
||||
/**
|
||||
* Search parameter SHALL be a number (a whole number, or a decimal).
|
||||
*/
|
||||
NUMBER,
|
||||
/**
|
||||
* Search parameter is on a date/time. The date format is the standard XML format, though other formats may be supported.
|
||||
*/
|
||||
DATE,
|
||||
/**
|
||||
* Search parameter is a simple string, like a name part. Search is case-insensitive and accent-insensitive. May match just the start of a string. String parameters may contain spaces.
|
||||
*/
|
||||
STRING,
|
||||
/**
|
||||
* Search parameter on a coded element or identifier. May be used to search through the text, displayname, code and code/codesystem (for codes) and label, system and key (for identifier). Its value is either a string or a pair of namespace and value, separated by a "|", depending on the modifier used.
|
||||
*/
|
||||
TOKEN,
|
||||
/**
|
||||
* A reference to another resource.
|
||||
*/
|
||||
REFERENCE,
|
||||
/**
|
||||
* A composite search parameter that combines a search on two values together.
|
||||
*/
|
||||
COMPOSITE,
|
||||
/**
|
||||
* A search parameter that searches on a quantity.
|
||||
*/
|
||||
QUANTITY,
|
||||
/**
|
||||
* A search parameter that searches on a URI (RFC 3986).
|
||||
*/
|
||||
URI,
|
||||
/**
|
||||
* added to help the parsers
|
||||
*/
|
||||
NULL;
|
||||
public static SearchParamType fromCode(String codeString) throws Exception {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("number".equals(codeString))
|
||||
return NUMBER;
|
||||
if ("date".equals(codeString))
|
||||
return DATE;
|
||||
if ("string".equals(codeString))
|
||||
return STRING;
|
||||
if ("token".equals(codeString))
|
||||
return TOKEN;
|
||||
if ("reference".equals(codeString))
|
||||
return REFERENCE;
|
||||
if ("composite".equals(codeString))
|
||||
return COMPOSITE;
|
||||
if ("quantity".equals(codeString))
|
||||
return QUANTITY;
|
||||
if ("uri".equals(codeString))
|
||||
return URI;
|
||||
throw new Exception("Unknown SearchParamType code '"+codeString+"'");
|
||||
}
|
||||
public String toCode() {
|
||||
switch (this) {
|
||||
case NUMBER: return "number";
|
||||
case DATE: return "date";
|
||||
case STRING: return "string";
|
||||
case TOKEN: return "token";
|
||||
case REFERENCE: return "reference";
|
||||
case COMPOSITE: return "composite";
|
||||
case QUANTITY: return "quantity";
|
||||
case URI: return "uri";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
public String getSystem() {
|
||||
switch (this) {
|
||||
case NUMBER: return "";
|
||||
case DATE: return "";
|
||||
case STRING: return "";
|
||||
case TOKEN: return "";
|
||||
case REFERENCE: return "";
|
||||
case COMPOSITE: return "";
|
||||
case QUANTITY: return "";
|
||||
case URI: return "";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
public String getDefinition() {
|
||||
switch (this) {
|
||||
case NUMBER: return "Search parameter SHALL be a number (a whole number, or a decimal).";
|
||||
case DATE: return "Search parameter is on a date/time. The date format is the standard XML format, though other formats may be supported.";
|
||||
case STRING: return "Search parameter is a simple string, like a name part. Search is case-insensitive and accent-insensitive. May match just the start of a string. String parameters may contain spaces.";
|
||||
case TOKEN: return "Search parameter on a coded element or identifier. May be used to search through the text, displayname, code and code/codesystem (for codes) and label, system and key (for identifier). Its value is either a string or a pair of namespace and value, separated by a '|', depending on the modifier used.";
|
||||
case REFERENCE: return "A reference to another resource.";
|
||||
case COMPOSITE: return "A composite search parameter that combines a search on two values together.";
|
||||
case QUANTITY: return "A search parameter that searches on a quantity.";
|
||||
case URI: return "A search parameter that searches on a URI (RFC 3986).";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
public String getDisplay() {
|
||||
switch (this) {
|
||||
case NUMBER: return "Number";
|
||||
case DATE: return "Date/DateTime";
|
||||
case STRING: return "String";
|
||||
case TOKEN: return "Token";
|
||||
case REFERENCE: return "Reference";
|
||||
case COMPOSITE: return "Composite";
|
||||
case QUANTITY: return "Quantity";
|
||||
case URI: return "URI";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public static class SearchParamTypeEnumFactory implements EnumFactory<SearchParamType> {
|
||||
public SearchParamType fromCode(String codeString) throws IllegalArgumentException {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("number".equals(codeString))
|
||||
return SearchParamType.NUMBER;
|
||||
if ("date".equals(codeString))
|
||||
return SearchParamType.DATE;
|
||||
if ("string".equals(codeString))
|
||||
return SearchParamType.STRING;
|
||||
if ("token".equals(codeString))
|
||||
return SearchParamType.TOKEN;
|
||||
if ("reference".equals(codeString))
|
||||
return SearchParamType.REFERENCE;
|
||||
if ("composite".equals(codeString))
|
||||
return SearchParamType.COMPOSITE;
|
||||
if ("quantity".equals(codeString))
|
||||
return SearchParamType.QUANTITY;
|
||||
if ("uri".equals(codeString))
|
||||
return SearchParamType.URI;
|
||||
throw new IllegalArgumentException("Unknown SearchParamType code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(SearchParamType code) {
|
||||
if (code == SearchParamType.NUMBER)
|
||||
return "number";
|
||||
if (code == SearchParamType.DATE)
|
||||
return "date";
|
||||
if (code == SearchParamType.STRING)
|
||||
return "string";
|
||||
if (code == SearchParamType.TOKEN)
|
||||
return "token";
|
||||
if (code == SearchParamType.REFERENCE)
|
||||
return "reference";
|
||||
if (code == SearchParamType.COMPOSITE)
|
||||
return "composite";
|
||||
if (code == SearchParamType.QUANTITY)
|
||||
return "quantity";
|
||||
if (code == SearchParamType.URI)
|
||||
return "uri";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
|
||||
public enum SystemRestfulInteraction {
|
||||
/**
|
||||
*
|
||||
* null
|
||||
*/
|
||||
TRANSACTION,
|
||||
/**
|
||||
*
|
||||
* null
|
||||
*/
|
||||
SEARCHSYSTEM,
|
||||
/**
|
||||
*
|
||||
* null
|
||||
*/
|
||||
HISTORYSYSTEM,
|
||||
/**
|
||||
|
@ -585,9 +429,9 @@ public class Conformance extends DomainResource {
|
|||
}
|
||||
public String getDisplay() {
|
||||
switch (this) {
|
||||
case TRANSACTION: return "Transaction";
|
||||
case SEARCHSYSTEM: return "Search System";
|
||||
case HISTORYSYSTEM: return "History System";
|
||||
case TRANSACTION: return "transaction";
|
||||
case SEARCHSYSTEM: return "search-system";
|
||||
case HISTORYSYSTEM: return "history-system";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -619,15 +463,15 @@ public class Conformance extends DomainResource {
|
|||
|
||||
public enum MessageSignificanceCategory {
|
||||
/**
|
||||
* The message represents/requests a change that should not be processed more than once. E.g. Making a booking for an appointment.
|
||||
* The message represents/requests a change that should not be processed more than once. E.g. Making a booking for an appointment
|
||||
*/
|
||||
CONSEQUENCE,
|
||||
/**
|
||||
* The message represents a response to query for current information. Retrospective processing is wrong and/or wasteful.
|
||||
* The message represents a response to query for current information. Retrospective processing is wrong and/or wasteful
|
||||
*/
|
||||
CURRENCY,
|
||||
/**
|
||||
* The content is not necessarily intended to be current, and it can be reprocessed, though there may be version issues created by processing old notifications.
|
||||
* The content is not necessarily intended to be current, and it can be reprocessed, though there may be version issues created by processing old notifications
|
||||
*/
|
||||
NOTIFICATION,
|
||||
/**
|
||||
|
@ -655,17 +499,17 @@ public class Conformance extends DomainResource {
|
|||
}
|
||||
public String getSystem() {
|
||||
switch (this) {
|
||||
case CONSEQUENCE: return "";
|
||||
case CURRENCY: return "";
|
||||
case NOTIFICATION: return "";
|
||||
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 "?";
|
||||
}
|
||||
}
|
||||
public String getDefinition() {
|
||||
switch (this) {
|
||||
case CONSEQUENCE: return "The message represents/requests a change that should not be processed more than once. E.g. Making a booking for an appointment.";
|
||||
case CURRENCY: return "The message represents a response to query for current information. Retrospective processing is wrong and/or wasteful.";
|
||||
case NOTIFICATION: return "The content is not necessarily intended to be current, and it can be reprocessed, though there may be version issues created by processing old notifications.";
|
||||
case CONSEQUENCE: return "The message represents/requests a change that should not be processed more than once. E.g. Making a booking for an appointment";
|
||||
case CURRENCY: return "The message represents a response to query for current information. Retrospective processing is wrong and/or wasteful";
|
||||
case NOTIFICATION: return "The content is not necessarily intended to be current, and it can be reprocessed, though there may be version issues created by processing old notifications";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -703,27 +547,27 @@ public class Conformance extends DomainResource {
|
|||
}
|
||||
}
|
||||
|
||||
public enum MessageConformanceEventMode {
|
||||
public enum ConformanceEventMode {
|
||||
/**
|
||||
* The application sends requests and receives responses.
|
||||
* The application sends requests and receives responses
|
||||
*/
|
||||
SENDER,
|
||||
/**
|
||||
* The application receives requests and sends responses.
|
||||
* The application receives requests and sends responses
|
||||
*/
|
||||
RECEIVER,
|
||||
/**
|
||||
* added to help the parsers
|
||||
*/
|
||||
NULL;
|
||||
public static MessageConformanceEventMode fromCode(String codeString) throws Exception {
|
||||
public static ConformanceEventMode fromCode(String codeString) throws Exception {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("sender".equals(codeString))
|
||||
return SENDER;
|
||||
if ("receiver".equals(codeString))
|
||||
return RECEIVER;
|
||||
throw new Exception("Unknown MessageConformanceEventMode code '"+codeString+"'");
|
||||
throw new Exception("Unknown ConformanceEventMode code '"+codeString+"'");
|
||||
}
|
||||
public String toCode() {
|
||||
switch (this) {
|
||||
|
@ -734,15 +578,15 @@ public class Conformance extends DomainResource {
|
|||
}
|
||||
public String getSystem() {
|
||||
switch (this) {
|
||||
case SENDER: return "";
|
||||
case RECEIVER: return "";
|
||||
case SENDER: return "http://hl7.org.fhir/message-conformance-event-mode";
|
||||
case RECEIVER: return "http://hl7.org.fhir/message-conformance-event-mode";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
public String getDefinition() {
|
||||
switch (this) {
|
||||
case SENDER: return "The application sends requests and receives responses.";
|
||||
case RECEIVER: return "The application receives requests and sends responses.";
|
||||
case SENDER: return "The application sends requests and receives responses";
|
||||
case RECEIVER: return "The application receives requests and sends responses";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -755,21 +599,21 @@ public class Conformance extends DomainResource {
|
|||
}
|
||||
}
|
||||
|
||||
public static class MessageConformanceEventModeEnumFactory implements EnumFactory<MessageConformanceEventMode> {
|
||||
public MessageConformanceEventMode fromCode(String codeString) throws IllegalArgumentException {
|
||||
public static class ConformanceEventModeEnumFactory implements EnumFactory<ConformanceEventMode> {
|
||||
public ConformanceEventMode fromCode(String codeString) throws IllegalArgumentException {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("sender".equals(codeString))
|
||||
return MessageConformanceEventMode.SENDER;
|
||||
return ConformanceEventMode.SENDER;
|
||||
if ("receiver".equals(codeString))
|
||||
return MessageConformanceEventMode.RECEIVER;
|
||||
throw new IllegalArgumentException("Unknown MessageConformanceEventMode code '"+codeString+"'");
|
||||
return ConformanceEventMode.RECEIVER;
|
||||
throw new IllegalArgumentException("Unknown ConformanceEventMode code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(MessageConformanceEventMode code) {
|
||||
if (code == MessageConformanceEventMode.SENDER)
|
||||
public String toCode(ConformanceEventMode code) {
|
||||
if (code == ConformanceEventMode.SENDER)
|
||||
return "sender";
|
||||
if (code == MessageConformanceEventMode.RECEIVER)
|
||||
if (code == ConformanceEventMode.RECEIVER)
|
||||
return "receiver";
|
||||
return "?";
|
||||
}
|
||||
|
@ -777,11 +621,11 @@ public class Conformance extends DomainResource {
|
|||
|
||||
public enum DocumentMode {
|
||||
/**
|
||||
* The application produces documents of the specified type.
|
||||
* The application produces documents of the specified type
|
||||
*/
|
||||
PRODUCER,
|
||||
/**
|
||||
* The application consumes documents of the specified type.
|
||||
* The application consumes documents of the specified type
|
||||
*/
|
||||
CONSUMER,
|
||||
/**
|
||||
|
@ -806,15 +650,15 @@ public class Conformance extends DomainResource {
|
|||
}
|
||||
public String getSystem() {
|
||||
switch (this) {
|
||||
case PRODUCER: return "";
|
||||
case CONSUMER: return "";
|
||||
case PRODUCER: return "http://hl7.org.fhir/document-mode";
|
||||
case CONSUMER: return "http://hl7.org.fhir/document-mode";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
public String getDefinition() {
|
||||
switch (this) {
|
||||
case PRODUCER: return "The application produces documents of the specified type.";
|
||||
case CONSUMER: return "The application consumes documents of the specified type.";
|
||||
case PRODUCER: return "The application produces documents of the specified type";
|
||||
case CONSUMER: return "The application consumes documents of the specified type";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -2367,7 +2211,7 @@ public class Conformance extends DomainResource {
|
|||
*/
|
||||
@Child(name = "versioning", type = {CodeType.class}, order=4, min=0, max=1)
|
||||
@Description(shortDefinition="no-version | versioned | versioned-update", formalDefinition="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." )
|
||||
protected Enumeration<VersioningPolicy> versioning;
|
||||
protected Enumeration<ResourceVersionPolicy> versioning;
|
||||
|
||||
/**
|
||||
* A flag for whether the server is able to return past versions as part of the vRead operation.
|
||||
|
@ -2418,7 +2262,7 @@ public class Conformance extends DomainResource {
|
|||
@Description(shortDefinition="Search params supported by implementation", formalDefinition="Search parameters for implementations to support and/or make use of - either references to ones defined in the specification, or additional ones defined for/by the implementation." )
|
||||
protected List<ConformanceRestResourceSearchParamComponent> searchParam;
|
||||
|
||||
private static final long serialVersionUID = 1477462605L;
|
||||
private static final long serialVersionUID = -1390359673L;
|
||||
|
||||
/*
|
||||
* Constructor
|
||||
|
@ -2567,12 +2411,12 @@ public class Conformance extends DomainResource {
|
|||
/**
|
||||
* @return {@link #versioning} (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.). This is the underlying object with id, value and extensions. The accessor "getVersioning" gives direct access to the value
|
||||
*/
|
||||
public Enumeration<VersioningPolicy> getVersioningElement() {
|
||||
public Enumeration<ResourceVersionPolicy> getVersioningElement() {
|
||||
if (this.versioning == null)
|
||||
if (Configuration.errorOnAutoCreate())
|
||||
throw new Error("Attempt to auto-create ConformanceRestResourceComponent.versioning");
|
||||
else if (Configuration.doAutoCreate())
|
||||
this.versioning = new Enumeration<VersioningPolicy>(new VersioningPolicyEnumFactory()); // bb
|
||||
this.versioning = new Enumeration<ResourceVersionPolicy>(new ResourceVersionPolicyEnumFactory()); // bb
|
||||
return this.versioning;
|
||||
}
|
||||
|
||||
|
@ -2587,7 +2431,7 @@ public class Conformance extends DomainResource {
|
|||
/**
|
||||
* @param value {@link #versioning} (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.). This is the underlying object with id, value and extensions. The accessor "getVersioning" gives direct access to the value
|
||||
*/
|
||||
public ConformanceRestResourceComponent setVersioningElement(Enumeration<VersioningPolicy> value) {
|
||||
public ConformanceRestResourceComponent setVersioningElement(Enumeration<ResourceVersionPolicy> value) {
|
||||
this.versioning = value;
|
||||
return this;
|
||||
}
|
||||
|
@ -2595,19 +2439,19 @@ public class Conformance extends DomainResource {
|
|||
/**
|
||||
* @return 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.
|
||||
*/
|
||||
public VersioningPolicy getVersioning() {
|
||||
public ResourceVersionPolicy getVersioning() {
|
||||
return this.versioning == null ? null : this.versioning.getValue();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value 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.
|
||||
*/
|
||||
public ConformanceRestResourceComponent setVersioning(VersioningPolicy value) {
|
||||
public ConformanceRestResourceComponent setVersioning(ResourceVersionPolicy value) {
|
||||
if (value == null)
|
||||
this.versioning = null;
|
||||
else {
|
||||
if (this.versioning == null)
|
||||
this.versioning = new Enumeration<VersioningPolicy>(new VersioningPolicyEnumFactory());
|
||||
this.versioning = new Enumeration<ResourceVersionPolicy>(new ResourceVersionPolicyEnumFactory());
|
||||
this.versioning.setValue(value);
|
||||
}
|
||||
return this;
|
||||
|
@ -4235,7 +4079,7 @@ public class Conformance extends DomainResource {
|
|||
*/
|
||||
@Child(name = "mode", type = {CodeType.class}, order=3, min=1, max=1)
|
||||
@Description(shortDefinition="sender | receiver", formalDefinition="The mode of this event declaration - whether application is sender or receiver." )
|
||||
protected Enumeration<MessageConformanceEventMode> mode;
|
||||
protected Enumeration<ConformanceEventMode> mode;
|
||||
|
||||
/**
|
||||
* A list of the messaging transport protocol(s) identifiers, supported by this endpoint.
|
||||
|
@ -4282,7 +4126,7 @@ public class Conformance extends DomainResource {
|
|||
@Description(shortDefinition="Endpoint-specific event documentation", formalDefinition="Guidance on how this event is handled, such as internal system trigger points, business rules, etc." )
|
||||
protected StringType documentation;
|
||||
|
||||
private static final long serialVersionUID = 1680159501L;
|
||||
private static final long serialVersionUID = 231905194L;
|
||||
|
||||
/*
|
||||
* Constructor
|
||||
|
@ -4294,7 +4138,7 @@ public class Conformance extends DomainResource {
|
|||
/*
|
||||
* Constructor
|
||||
*/
|
||||
public ConformanceMessagingEventComponent(Coding code, Enumeration<MessageConformanceEventMode> mode, CodeType focus, Reference request, Reference response) {
|
||||
public ConformanceMessagingEventComponent(Coding code, Enumeration<ConformanceEventMode> mode, CodeType focus, Reference request, Reference response) {
|
||||
super();
|
||||
this.code = code;
|
||||
this.mode = mode;
|
||||
|
@ -4379,12 +4223,12 @@ public class Conformance extends DomainResource {
|
|||
/**
|
||||
* @return {@link #mode} (The mode of this event declaration - whether application is sender or receiver.). This is the underlying object with id, value and extensions. The accessor "getMode" gives direct access to the value
|
||||
*/
|
||||
public Enumeration<MessageConformanceEventMode> getModeElement() {
|
||||
public Enumeration<ConformanceEventMode> getModeElement() {
|
||||
if (this.mode == null)
|
||||
if (Configuration.errorOnAutoCreate())
|
||||
throw new Error("Attempt to auto-create ConformanceMessagingEventComponent.mode");
|
||||
else if (Configuration.doAutoCreate())
|
||||
this.mode = new Enumeration<MessageConformanceEventMode>(new MessageConformanceEventModeEnumFactory()); // bb
|
||||
this.mode = new Enumeration<ConformanceEventMode>(new ConformanceEventModeEnumFactory()); // bb
|
||||
return this.mode;
|
||||
}
|
||||
|
||||
|
@ -4399,7 +4243,7 @@ public class Conformance extends DomainResource {
|
|||
/**
|
||||
* @param value {@link #mode} (The mode of this event declaration - whether application is sender or receiver.). This is the underlying object with id, value and extensions. The accessor "getMode" gives direct access to the value
|
||||
*/
|
||||
public ConformanceMessagingEventComponent setModeElement(Enumeration<MessageConformanceEventMode> value) {
|
||||
public ConformanceMessagingEventComponent setModeElement(Enumeration<ConformanceEventMode> value) {
|
||||
this.mode = value;
|
||||
return this;
|
||||
}
|
||||
|
@ -4407,16 +4251,16 @@ public class Conformance extends DomainResource {
|
|||
/**
|
||||
* @return The mode of this event declaration - whether application is sender or receiver.
|
||||
*/
|
||||
public MessageConformanceEventMode getMode() {
|
||||
public ConformanceEventMode getMode() {
|
||||
return this.mode == null ? null : this.mode.getValue();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value The mode of this event declaration - whether application is sender or receiver.
|
||||
*/
|
||||
public ConformanceMessagingEventComponent setMode(MessageConformanceEventMode value) {
|
||||
public ConformanceMessagingEventComponent setMode(ConformanceEventMode value) {
|
||||
if (this.mode == null)
|
||||
this.mode = new Enumeration<MessageConformanceEventMode>(new MessageConformanceEventModeEnumFactory());
|
||||
this.mode = new Enumeration<ConformanceEventMode>(new ConformanceEventModeEnumFactory());
|
||||
this.mode.setValue(value);
|
||||
return this;
|
||||
}
|
||||
|
|
|
@ -29,12 +29,12 @@ package org.hl7.fhir.instance.model;
|
|||
|
||||
*/
|
||||
|
||||
// Generated on Fri, May 22, 2015 17:15-0400 for FHIR v0.5.0
|
||||
// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
|
||||
|
||||
|
||||
public class Constants {
|
||||
|
||||
public final static String VERSION = "0.5.0";
|
||||
public final static String REVISION = "5283";
|
||||
public final static String DATE = "Fri May 22 17:15:32 EDT 2015";
|
||||
public final static String REVISION = "5320";
|
||||
public final static String DATE = "Sun May 31 15:45:19 EDT 2015";
|
||||
}
|
||||
|
|
|
@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
|
|||
|
||||
*/
|
||||
|
||||
// Generated on Fri, May 22, 2015 17:15-0400 for FHIR v0.5.0
|
||||
// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
|
||||
|
||||
import java.util.*;
|
||||
|
||||
|
@ -55,11 +55,11 @@ public class ContactPoint extends Type implements ICompositeType {
|
|||
*/
|
||||
FAX,
|
||||
/**
|
||||
* The value is an email address.
|
||||
* The value is an email address
|
||||
*/
|
||||
EMAIL,
|
||||
/**
|
||||
* The value is a url. This is intended for various personal contacts including blogs, Twitter, Facebook, etc. Do not use for email addresses.
|
||||
* The value is a url. This is intended for various personal contacts including blogs, Twitter, Facebook, etc. Do not use for email addresses
|
||||
*/
|
||||
URL,
|
||||
/**
|
||||
|
@ -90,10 +90,10 @@ public class ContactPoint extends Type implements ICompositeType {
|
|||
}
|
||||
public String getSystem() {
|
||||
switch (this) {
|
||||
case PHONE: return "";
|
||||
case FAX: return "";
|
||||
case EMAIL: return "";
|
||||
case URL: return "";
|
||||
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 "?";
|
||||
}
|
||||
}
|
||||
|
@ -101,8 +101,8 @@ public class ContactPoint extends Type implements ICompositeType {
|
|||
switch (this) {
|
||||
case PHONE: return "The value is a telephone number used for voice calls. Use of full international numbers starting with + is recommended to enable automatic dialing support but not required.";
|
||||
case FAX: return "The value is a fax machine. Use of full international numbers starting with + is recommended to enable automatic dialing support but not required.";
|
||||
case EMAIL: return "The value is an email address.";
|
||||
case URL: return "The value is a url. This is intended for various personal contacts including blogs, Twitter, Facebook, etc. Do not use for email addresses.";
|
||||
case EMAIL: return "The value is an email address";
|
||||
case URL: return "The value is a url. This is intended for various personal contacts including blogs, Twitter, Facebook, etc. Do not use for email addresses";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -159,11 +159,11 @@ public class ContactPoint extends Type implements ICompositeType {
|
|||
*/
|
||||
TEMP,
|
||||
/**
|
||||
* This contact point is no longer in use (or was never correct, but retained for records).
|
||||
* This contact point is no longer in use (or was never correct, but retained for records)
|
||||
*/
|
||||
OLD,
|
||||
/**
|
||||
* A telecommunication device that moves and stays with its owner. May have characteristics of all other use codes, suitable for urgent matters, not the first choice for routine business.
|
||||
* A telecommunication device that moves and stays with its owner. May have characteristics of all other use codes, suitable for urgent matters, not the first choice for routine business
|
||||
*/
|
||||
MOBILE,
|
||||
/**
|
||||
|
@ -197,11 +197,11 @@ public class ContactPoint extends Type implements ICompositeType {
|
|||
}
|
||||
public String getSystem() {
|
||||
switch (this) {
|
||||
case HOME: return "";
|
||||
case WORK: return "";
|
||||
case TEMP: return "";
|
||||
case OLD: return "";
|
||||
case MOBILE: return "";
|
||||
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 "?";
|
||||
}
|
||||
}
|
||||
|
@ -210,8 +210,8 @@ public class ContactPoint extends Type implements ICompositeType {
|
|||
case HOME: return "A communication contact point at a home; attempted contacts for business purposes might intrude privacy and chances are one will contact family or other household members instead of the person one wishes to call. Typically used with urgent cases, or if no other contacts are available.";
|
||||
case WORK: return "An office contact point. First choice for business related contacts during business hours.";
|
||||
case TEMP: return "A temporary contact point. The period can provide more detailed information.";
|
||||
case OLD: return "This contact point is no longer in use (or was never correct, but retained for records).";
|
||||
case MOBILE: return "A telecommunication device that moves and stays with its owner. May have characteristics of all other use codes, suitable for urgent matters, not the first choice for routine business.";
|
||||
case OLD: return "This contact point is no longer in use (or was never correct, but retained for records)";
|
||||
case MOBILE: return "A telecommunication device that moves and stays with its owner. May have characteristics of all other use codes, suitable for urgent matters, not the first choice for routine business";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
|
|
@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
|
|||
|
||||
*/
|
||||
|
||||
// Generated on Fri, May 22, 2015 17:15-0400 for FHIR v0.5.0
|
||||
// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
|
||||
|
||||
import java.util.*;
|
||||
|
||||
|
|
|
@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
|
|||
|
||||
*/
|
||||
|
||||
// Generated on Fri, May 22, 2015 17:15-0400 for FHIR v0.5.0
|
||||
// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
|
||||
|
||||
import java.util.*;
|
||||
|
||||
|
|
|
@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
|
|||
|
||||
*/
|
||||
|
||||
// Generated on Fri, May 22, 2015 17:15-0400 for FHIR v0.5.0
|
||||
// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
|
||||
|
||||
import org.hl7.fhir.instance.model.annotations.DatatypeDef;
|
||||
import org.hl7.fhir.instance.model.annotations.Block;
|
||||
|
|
|
@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
|
|||
|
||||
*/
|
||||
|
||||
// Generated on Fri, May 22, 2015 17:15-0400 for FHIR v0.5.0
|
||||
// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
|
||||
|
||||
import java.util.*;
|
||||
|
||||
|
|
|
@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
|
|||
|
||||
*/
|
||||
|
||||
// Generated on Fri, May 22, 2015 17:15-0400 for FHIR v0.5.0
|
||||
// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
|
||||
|
||||
import java.util.*;
|
||||
|
||||
|
@ -47,13 +47,13 @@ import org.hl7.fhir.instance.model.api.*;
|
|||
@ResourceDef(name="DataElement", profile="http://hl7.org/fhir/Profile/DataElement")
|
||||
public class DataElement extends DomainResource {
|
||||
|
||||
public enum DataelementSpecificity {
|
||||
public enum DataElementSpecificity {
|
||||
/**
|
||||
* The data element is sufficiently well-constrained that multiple pieces of data captured according to the constraints of the data element will be comparable (though in some cases, a degree of automated conversion/normalization may be required).
|
||||
*/
|
||||
COMPARABLE,
|
||||
/**
|
||||
* The data element is fully specified down to a single value set, single unit of measure, single data type, etc. Multiple pieces of data associated with this data element are fully compareable.
|
||||
* The data element is fully specified down to a single value set, single unit of measure, single data type, etc. Multiple pieces of data associated with this data element are fully compareable
|
||||
*/
|
||||
FULLYSPECIFIED,
|
||||
/**
|
||||
|
@ -61,11 +61,11 @@ public class DataElement extends DomainResource {
|
|||
*/
|
||||
EQUIVALENT,
|
||||
/**
|
||||
* The data element allows multiple units of measure that are convertable between each other (e.g. Inches and centimeters) and/or allows data to be captured in multiple value sets for which a known mapping exists allowing conversion of meaning.
|
||||
* The data element allows multiple units of measure that are convertable between each other (e.g. Inches and centimeters) and/or allows data to be captured in multiple value sets for which a known mapping exists allowing conversion of meaning
|
||||
*/
|
||||
CONVERTABLE,
|
||||
/**
|
||||
* A convertable data element where unit conversions are different only by a power of 10. E.g. g, mg, kg.
|
||||
* A convertable data element where unit conversions are different only by a power of 10. E.g. g, mg, kg
|
||||
*/
|
||||
SCALEABLE,
|
||||
/**
|
||||
|
@ -76,7 +76,7 @@ public class DataElement extends DomainResource {
|
|||
* added to help the parsers
|
||||
*/
|
||||
NULL;
|
||||
public static DataelementSpecificity fromCode(String codeString) throws Exception {
|
||||
public static DataElementSpecificity fromCode(String codeString) throws Exception {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("comparable".equals(codeString))
|
||||
|
@ -91,7 +91,7 @@ public class DataElement extends DomainResource {
|
|||
return SCALEABLE;
|
||||
if ("flexible".equals(codeString))
|
||||
return FLEXIBLE;
|
||||
throw new Exception("Unknown DataelementSpecificity code '"+codeString+"'");
|
||||
throw new Exception("Unknown DataElementSpecificity code '"+codeString+"'");
|
||||
}
|
||||
public String toCode() {
|
||||
switch (this) {
|
||||
|
@ -106,22 +106,22 @@ public class DataElement extends DomainResource {
|
|||
}
|
||||
public String getSystem() {
|
||||
switch (this) {
|
||||
case COMPARABLE: return "";
|
||||
case FULLYSPECIFIED: return "";
|
||||
case EQUIVALENT: return "";
|
||||
case CONVERTABLE: return "";
|
||||
case SCALEABLE: return "";
|
||||
case FLEXIBLE: return "";
|
||||
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 "?";
|
||||
}
|
||||
}
|
||||
public String getDefinition() {
|
||||
switch (this) {
|
||||
case COMPARABLE: return "The data element is sufficiently well-constrained that multiple pieces of data captured according to the constraints of the data element will be comparable (though in some cases, a degree of automated conversion/normalization may be required).";
|
||||
case FULLYSPECIFIED: return "The data element is fully specified down to a single value set, single unit of measure, single data type, etc. Multiple pieces of data associated with this data element are fully compareable.";
|
||||
case FULLYSPECIFIED: return "The data element is fully specified down to a single value set, single unit of measure, single data type, etc. Multiple pieces of data associated with this data element are fully compareable";
|
||||
case EQUIVALENT: return "The data element allows multiple units of measure having equivalent meaning. E.g. 'cc' (cubic centimeter) and 'mL'.";
|
||||
case CONVERTABLE: return "The data element allows multiple units of measure that are convertable between each other (e.g. Inches and centimeters) and/or allows data to be captured in multiple value sets for which a known mapping exists allowing conversion of meaning.";
|
||||
case SCALEABLE: return "A convertable data element where unit conversions are different only by a power of 10. E.g. g, mg, kg.";
|
||||
case CONVERTABLE: return "The data element allows multiple units of measure that are convertable between each other (e.g. Inches and centimeters) and/or allows data to be captured in multiple value sets for which a known mapping exists allowing conversion of meaning";
|
||||
case SCALEABLE: return "A convertable data element where unit conversions are different only by a power of 10. E.g. g, mg, kg";
|
||||
case FLEXIBLE: return "The data element is unconstrained in units, choice of data types and/or choice of vocabulary such that automated comparison of data captured using the data element is not possible.";
|
||||
default: return "?";
|
||||
}
|
||||
|
@ -139,37 +139,37 @@ public class DataElement extends DomainResource {
|
|||
}
|
||||
}
|
||||
|
||||
public static class DataelementSpecificityEnumFactory implements EnumFactory<DataelementSpecificity> {
|
||||
public DataelementSpecificity fromCode(String codeString) throws IllegalArgumentException {
|
||||
public static class DataElementSpecificityEnumFactory implements EnumFactory<DataElementSpecificity> {
|
||||
public DataElementSpecificity fromCode(String codeString) throws IllegalArgumentException {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("comparable".equals(codeString))
|
||||
return DataelementSpecificity.COMPARABLE;
|
||||
return DataElementSpecificity.COMPARABLE;
|
||||
if ("fully-specified".equals(codeString))
|
||||
return DataelementSpecificity.FULLYSPECIFIED;
|
||||
return DataElementSpecificity.FULLYSPECIFIED;
|
||||
if ("equivalent".equals(codeString))
|
||||
return DataelementSpecificity.EQUIVALENT;
|
||||
return DataElementSpecificity.EQUIVALENT;
|
||||
if ("convertable".equals(codeString))
|
||||
return DataelementSpecificity.CONVERTABLE;
|
||||
return DataElementSpecificity.CONVERTABLE;
|
||||
if ("scaleable".equals(codeString))
|
||||
return DataelementSpecificity.SCALEABLE;
|
||||
return DataElementSpecificity.SCALEABLE;
|
||||
if ("flexible".equals(codeString))
|
||||
return DataelementSpecificity.FLEXIBLE;
|
||||
throw new IllegalArgumentException("Unknown DataelementSpecificity code '"+codeString+"'");
|
||||
return DataElementSpecificity.FLEXIBLE;
|
||||
throw new IllegalArgumentException("Unknown DataElementSpecificity code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(DataelementSpecificity code) {
|
||||
if (code == DataelementSpecificity.COMPARABLE)
|
||||
public String toCode(DataElementSpecificity code) {
|
||||
if (code == DataElementSpecificity.COMPARABLE)
|
||||
return "comparable";
|
||||
if (code == DataelementSpecificity.FULLYSPECIFIED)
|
||||
if (code == DataElementSpecificity.FULLYSPECIFIED)
|
||||
return "fully-specified";
|
||||
if (code == DataelementSpecificity.EQUIVALENT)
|
||||
if (code == DataElementSpecificity.EQUIVALENT)
|
||||
return "equivalent";
|
||||
if (code == DataelementSpecificity.CONVERTABLE)
|
||||
if (code == DataElementSpecificity.CONVERTABLE)
|
||||
return "convertable";
|
||||
if (code == DataelementSpecificity.SCALEABLE)
|
||||
if (code == DataElementSpecificity.SCALEABLE)
|
||||
return "scaleable";
|
||||
if (code == DataelementSpecificity.FLEXIBLE)
|
||||
if (code == DataElementSpecificity.FLEXIBLE)
|
||||
return "flexible";
|
||||
return "?";
|
||||
}
|
||||
|
@ -702,7 +702,7 @@ public class DataElement extends DomainResource {
|
|||
*/
|
||||
@Child(name = "specificity", type = {CodeType.class}, order=11, min=0, max=1)
|
||||
@Description(shortDefinition="comparable | fully-specified | equivalent | convertable | scaleable | flexible", formalDefinition="Identifies how precise the data element is in its definition." )
|
||||
protected Enumeration<DataelementSpecificity> specificity;
|
||||
protected Enumeration<DataElementSpecificity> specificity;
|
||||
|
||||
/**
|
||||
* Identifies a specification (other than a terminology) that the elements that make up the DataElement hav some correspondance with.
|
||||
|
@ -718,7 +718,7 @@ public class DataElement extends DomainResource {
|
|||
@Description(shortDefinition="Definition of element", formalDefinition="Defines the structure, type, allowed values and other constraining characteristics of the data element." )
|
||||
protected List<ElementDefinition> element;
|
||||
|
||||
private static final long serialVersionUID = -1444116299L;
|
||||
private static final long serialVersionUID = 576052437L;
|
||||
|
||||
/*
|
||||
* Constructor
|
||||
|
@ -1226,12 +1226,12 @@ public class DataElement extends DomainResource {
|
|||
/**
|
||||
* @return {@link #specificity} (Identifies how precise the data element is in its definition.). This is the underlying object with id, value and extensions. The accessor "getSpecificity" gives direct access to the value
|
||||
*/
|
||||
public Enumeration<DataelementSpecificity> getSpecificityElement() {
|
||||
public Enumeration<DataElementSpecificity> getSpecificityElement() {
|
||||
if (this.specificity == null)
|
||||
if (Configuration.errorOnAutoCreate())
|
||||
throw new Error("Attempt to auto-create DataElement.specificity");
|
||||
else if (Configuration.doAutoCreate())
|
||||
this.specificity = new Enumeration<DataelementSpecificity>(new DataelementSpecificityEnumFactory()); // bb
|
||||
this.specificity = new Enumeration<DataElementSpecificity>(new DataElementSpecificityEnumFactory()); // bb
|
||||
return this.specificity;
|
||||
}
|
||||
|
||||
|
@ -1246,7 +1246,7 @@ public class DataElement extends DomainResource {
|
|||
/**
|
||||
* @param value {@link #specificity} (Identifies how precise the data element is in its definition.). This is the underlying object with id, value and extensions. The accessor "getSpecificity" gives direct access to the value
|
||||
*/
|
||||
public DataElement setSpecificityElement(Enumeration<DataelementSpecificity> value) {
|
||||
public DataElement setSpecificityElement(Enumeration<DataElementSpecificity> value) {
|
||||
this.specificity = value;
|
||||
return this;
|
||||
}
|
||||
|
@ -1254,19 +1254,19 @@ public class DataElement extends DomainResource {
|
|||
/**
|
||||
* @return Identifies how precise the data element is in its definition.
|
||||
*/
|
||||
public DataelementSpecificity getSpecificity() {
|
||||
public DataElementSpecificity getSpecificity() {
|
||||
return this.specificity == null ? null : this.specificity.getValue();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value Identifies how precise the data element is in its definition.
|
||||
*/
|
||||
public DataElement setSpecificity(DataelementSpecificity value) {
|
||||
public DataElement setSpecificity(DataElementSpecificity value) {
|
||||
if (value == null)
|
||||
this.specificity = null;
|
||||
else {
|
||||
if (this.specificity == null)
|
||||
this.specificity = new Enumeration<DataelementSpecificity>(new DataelementSpecificityEnumFactory());
|
||||
this.specificity = new Enumeration<DataElementSpecificity>(new DataElementSpecificityEnumFactory());
|
||||
this.specificity.setValue(value);
|
||||
}
|
||||
return this;
|
||||
|
|
|
@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
|
|||
|
||||
*/
|
||||
|
||||
// Generated on Fri, May 22, 2015 17:15-0400 for FHIR v0.5.0
|
||||
// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
|
||||
|
||||
import java.util.*;
|
||||
|
||||
|
@ -41,29 +41,29 @@ import org.hl7.fhir.instance.model.annotations.Description;
|
|||
import org.hl7.fhir.instance.model.annotations.Block;
|
||||
import org.hl7.fhir.instance.model.api.*;
|
||||
/**
|
||||
* This resource identifies an instance of a manufactured thing that is used in the provision of healthcare without being substantially changed through that activity. The device may be a machine, an insert, a computer, an application, etc. This includes durable (reusable) medical equipment as well as disposable equipment used for diagnostic, treatment, and research for healthcare and public health.
|
||||
* This resource identifies an instance of a manufactured thing that is used in the provision of healthcare without being substantially changed through that activity. The device may be a medical or non-medical device. Medical devices includes durable (reusable) medical equipment, implantable devices, as well as disposable equipment used for diagnostic, treatment, and research for healthcare and public health. Non medical devices may includes things such as a machine, a cellphone, a computer, an application, etc.
|
||||
*/
|
||||
@ResourceDef(name="Device", profile="http://hl7.org/fhir/Profile/Device")
|
||||
public class Device extends DomainResource {
|
||||
|
||||
public enum Devicestatus {
|
||||
public enum DeviceStatus {
|
||||
/**
|
||||
* The Device is available for use.
|
||||
* The Device is available for use
|
||||
*/
|
||||
AVAILABLE,
|
||||
/**
|
||||
* The Device is no longer available for use ( e.g lost, expired, damaged).
|
||||
* The Device is no longer available for use ( e.g lost, expired, damaged)
|
||||
*/
|
||||
NOTAVAILABLE,
|
||||
/**
|
||||
* The Device was entered in error and voided.
|
||||
* The Device was entered in error and voided
|
||||
*/
|
||||
ENTEREDINERROR,
|
||||
/**
|
||||
* added to help the parsers
|
||||
*/
|
||||
NULL;
|
||||
public static Devicestatus fromCode(String codeString) throws Exception {
|
||||
public static DeviceStatus fromCode(String codeString) throws Exception {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("available".equals(codeString))
|
||||
|
@ -72,7 +72,7 @@ public class Device extends DomainResource {
|
|||
return NOTAVAILABLE;
|
||||
if ("entered-in-error".equals(codeString))
|
||||
return ENTEREDINERROR;
|
||||
throw new Exception("Unknown Devicestatus code '"+codeString+"'");
|
||||
throw new Exception("Unknown DeviceStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode() {
|
||||
switch (this) {
|
||||
|
@ -84,17 +84,17 @@ public class Device extends DomainResource {
|
|||
}
|
||||
public String getSystem() {
|
||||
switch (this) {
|
||||
case AVAILABLE: return "";
|
||||
case NOTAVAILABLE: return "";
|
||||
case ENTEREDINERROR: return "";
|
||||
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 "?";
|
||||
}
|
||||
}
|
||||
public String getDefinition() {
|
||||
switch (this) {
|
||||
case AVAILABLE: return "The Device is available for use.";
|
||||
case NOTAVAILABLE: return "The Device is no longer available for use ( e.g lost, expired, damaged).";
|
||||
case ENTEREDINERROR: return "The Device was entered in error and voided.";
|
||||
case AVAILABLE: return "The Device is available for use";
|
||||
case NOTAVAILABLE: return "The Device is no longer available for use ( e.g lost, expired, damaged)";
|
||||
case ENTEREDINERROR: return "The Device was entered in error and voided";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -108,25 +108,25 @@ public class Device extends DomainResource {
|
|||
}
|
||||
}
|
||||
|
||||
public static class DevicestatusEnumFactory implements EnumFactory<Devicestatus> {
|
||||
public Devicestatus fromCode(String codeString) throws IllegalArgumentException {
|
||||
public static class DeviceStatusEnumFactory implements EnumFactory<DeviceStatus> {
|
||||
public DeviceStatus fromCode(String codeString) throws IllegalArgumentException {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("available".equals(codeString))
|
||||
return Devicestatus.AVAILABLE;
|
||||
return DeviceStatus.AVAILABLE;
|
||||
if ("not-available".equals(codeString))
|
||||
return Devicestatus.NOTAVAILABLE;
|
||||
return DeviceStatus.NOTAVAILABLE;
|
||||
if ("entered-in-error".equals(codeString))
|
||||
return Devicestatus.ENTEREDINERROR;
|
||||
throw new IllegalArgumentException("Unknown Devicestatus code '"+codeString+"'");
|
||||
return DeviceStatus.ENTEREDINERROR;
|
||||
throw new IllegalArgumentException("Unknown DeviceStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(Devicestatus code) {
|
||||
if (code == Devicestatus.AVAILABLE)
|
||||
public String toCode(DeviceStatus code) {
|
||||
if (code == DeviceStatus.AVAILABLE)
|
||||
return "available";
|
||||
if (code == Devicestatus.NOTAVAILABLE)
|
||||
if (code == DeviceStatus.NOTAVAILABLE)
|
||||
return "not-available";
|
||||
if (code == Devicestatus.ENTEREDINERROR)
|
||||
if (code == DeviceStatus.ENTEREDINERROR)
|
||||
return "entered-in-error";
|
||||
return "?";
|
||||
}
|
||||
|
@ -151,7 +151,7 @@ public class Device extends DomainResource {
|
|||
*/
|
||||
@Child(name = "status", type = {CodeType.class}, order=2, min=0, max=1)
|
||||
@Description(shortDefinition="available | not-available | entered-in-error", formalDefinition="Status of the Device availability." )
|
||||
protected Enumeration<Devicestatus> status;
|
||||
protected Enumeration<DeviceStatus> status;
|
||||
|
||||
/**
|
||||
* A name of the manufacturer.
|
||||
|
@ -252,7 +252,7 @@ public class Device extends DomainResource {
|
|||
@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 = -699591241L;
|
||||
private static final long serialVersionUID = -612440681L;
|
||||
|
||||
/*
|
||||
* Constructor
|
||||
|
@ -336,12 +336,12 @@ public class Device extends DomainResource {
|
|||
/**
|
||||
* @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
|
||||
*/
|
||||
public Enumeration<Devicestatus> getStatusElement() {
|
||||
public Enumeration<DeviceStatus> getStatusElement() {
|
||||
if (this.status == null)
|
||||
if (Configuration.errorOnAutoCreate())
|
||||
throw new Error("Attempt to auto-create Device.status");
|
||||
else if (Configuration.doAutoCreate())
|
||||
this.status = new Enumeration<Devicestatus>(new DevicestatusEnumFactory()); // bb
|
||||
this.status = new Enumeration<DeviceStatus>(new DeviceStatusEnumFactory()); // bb
|
||||
return this.status;
|
||||
}
|
||||
|
||||
|
@ -356,7 +356,7 @@ public class Device extends DomainResource {
|
|||
/**
|
||||
* @param value {@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
|
||||
*/
|
||||
public Device setStatusElement(Enumeration<Devicestatus> value) {
|
||||
public Device setStatusElement(Enumeration<DeviceStatus> value) {
|
||||
this.status = value;
|
||||
return this;
|
||||
}
|
||||
|
@ -364,19 +364,19 @@ public class Device extends DomainResource {
|
|||
/**
|
||||
* @return Status of the Device availability.
|
||||
*/
|
||||
public Devicestatus getStatus() {
|
||||
public DeviceStatus getStatus() {
|
||||
return this.status == null ? null : this.status.getValue();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value Status of the Device availability.
|
||||
*/
|
||||
public Device setStatus(Devicestatus value) {
|
||||
public Device setStatus(DeviceStatus value) {
|
||||
if (value == null)
|
||||
this.status = null;
|
||||
else {
|
||||
if (this.status == null)
|
||||
this.status = new Enumeration<Devicestatus>(new DevicestatusEnumFactory());
|
||||
this.status = new Enumeration<DeviceStatus>(new DeviceStatusEnumFactory());
|
||||
this.status.setValue(value);
|
||||
}
|
||||
return this;
|
||||
|
|
|
@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
|
|||
|
||||
*/
|
||||
|
||||
// Generated on Fri, May 22, 2015 17:15-0400 for FHIR v0.5.0
|
||||
// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
|
||||
|
||||
import java.util.*;
|
||||
|
||||
|
@ -46,56 +46,56 @@ import org.hl7.fhir.instance.model.api.*;
|
|||
@ResourceDef(name="DeviceComponent", profile="http://hl7.org/fhir/Profile/DeviceComponent")
|
||||
public class DeviceComponent extends DomainResource {
|
||||
|
||||
public enum MeasurementPrinciple {
|
||||
public enum MeasmntPrinciple {
|
||||
/**
|
||||
* Measurement principle isn't in the list.
|
||||
* Measurement principle isn't in the list
|
||||
*/
|
||||
OTHER,
|
||||
/**
|
||||
* Measurement is done using chemical.
|
||||
* Measurement is done using chemical
|
||||
*/
|
||||
CHEMICAL,
|
||||
/**
|
||||
* Measurement is done using electrical.
|
||||
* Measurement is done using electrical
|
||||
*/
|
||||
ELECTRICAL,
|
||||
/**
|
||||
* Measurement is done using impedance.
|
||||
* Measurement is done using impedance
|
||||
*/
|
||||
IMPEDANCE,
|
||||
/**
|
||||
* Measurement is done using nuclear.
|
||||
* Measurement is done using nuclear
|
||||
*/
|
||||
NUCLEAR,
|
||||
/**
|
||||
* Measurement is done using optical.
|
||||
* Measurement is done using optical
|
||||
*/
|
||||
OPTICAL,
|
||||
/**
|
||||
* Measurement is done using thermal.
|
||||
* Measurement is done using thermal
|
||||
*/
|
||||
THERMAL,
|
||||
/**
|
||||
* Measurement is done using biological.
|
||||
* Measurement is done using biological
|
||||
*/
|
||||
BIOLOGICAL,
|
||||
/**
|
||||
* Measurement is done using mechanical.
|
||||
* Measurement is done using mechanical
|
||||
*/
|
||||
MECHANICAL,
|
||||
/**
|
||||
* Measurement is done using acoustical.
|
||||
* Measurement is done using acoustical
|
||||
*/
|
||||
ACOUSTICAL,
|
||||
/**
|
||||
* Measurement is done using manual.
|
||||
* Measurement is done using manual
|
||||
*/
|
||||
MANUAL,
|
||||
/**
|
||||
* added to help the parsers
|
||||
*/
|
||||
NULL;
|
||||
public static MeasurementPrinciple fromCode(String codeString) throws Exception {
|
||||
public static MeasmntPrinciple fromCode(String codeString) throws Exception {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("other".equals(codeString))
|
||||
|
@ -120,7 +120,7 @@ public class DeviceComponent extends DomainResource {
|
|||
return ACOUSTICAL;
|
||||
if ("manual".equals(codeString))
|
||||
return MANUAL;
|
||||
throw new Exception("Unknown MeasurementPrinciple code '"+codeString+"'");
|
||||
throw new Exception("Unknown MeasmntPrinciple code '"+codeString+"'");
|
||||
}
|
||||
public String toCode() {
|
||||
switch (this) {
|
||||
|
@ -140,33 +140,33 @@ public class DeviceComponent extends DomainResource {
|
|||
}
|
||||
public String getSystem() {
|
||||
switch (this) {
|
||||
case OTHER: return "";
|
||||
case CHEMICAL: return "";
|
||||
case ELECTRICAL: return "";
|
||||
case IMPEDANCE: return "";
|
||||
case NUCLEAR: return "";
|
||||
case OPTICAL: return "";
|
||||
case THERMAL: return "";
|
||||
case BIOLOGICAL: return "";
|
||||
case MECHANICAL: return "";
|
||||
case ACOUSTICAL: return "";
|
||||
case MANUAL: return "";
|
||||
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 "?";
|
||||
}
|
||||
}
|
||||
public String getDefinition() {
|
||||
switch (this) {
|
||||
case OTHER: return "Measurement principle isn't in the list.";
|
||||
case CHEMICAL: return "Measurement is done using chemical.";
|
||||
case ELECTRICAL: return "Measurement is done using electrical.";
|
||||
case IMPEDANCE: return "Measurement is done using impedance.";
|
||||
case NUCLEAR: return "Measurement is done using nuclear.";
|
||||
case OPTICAL: return "Measurement is done using optical.";
|
||||
case THERMAL: return "Measurement is done using thermal.";
|
||||
case BIOLOGICAL: return "Measurement is done using biological.";
|
||||
case MECHANICAL: return "Measurement is done using mechanical.";
|
||||
case ACOUSTICAL: return "Measurement is done using acoustical.";
|
||||
case MANUAL: return "Measurement is done using manual.";
|
||||
case OTHER: return "Measurement principle isn't in the list";
|
||||
case CHEMICAL: return "Measurement is done using chemical";
|
||||
case ELECTRICAL: return "Measurement is done using electrical";
|
||||
case IMPEDANCE: return "Measurement is done using impedance";
|
||||
case NUCLEAR: return "Measurement is done using nuclear";
|
||||
case OPTICAL: return "Measurement is done using optical";
|
||||
case THERMAL: return "Measurement is done using thermal";
|
||||
case BIOLOGICAL: return "Measurement is done using biological";
|
||||
case MECHANICAL: return "Measurement is done using mechanical";
|
||||
case ACOUSTICAL: return "Measurement is done using acoustical";
|
||||
case MANUAL: return "Measurement is done using manual";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -188,57 +188,57 @@ public class DeviceComponent extends DomainResource {
|
|||
}
|
||||
}
|
||||
|
||||
public static class MeasurementPrincipleEnumFactory implements EnumFactory<MeasurementPrinciple> {
|
||||
public MeasurementPrinciple fromCode(String codeString) throws IllegalArgumentException {
|
||||
public static class MeasmntPrincipleEnumFactory implements EnumFactory<MeasmntPrinciple> {
|
||||
public MeasmntPrinciple fromCode(String codeString) throws IllegalArgumentException {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("other".equals(codeString))
|
||||
return MeasurementPrinciple.OTHER;
|
||||
return MeasmntPrinciple.OTHER;
|
||||
if ("chemical".equals(codeString))
|
||||
return MeasurementPrinciple.CHEMICAL;
|
||||
return MeasmntPrinciple.CHEMICAL;
|
||||
if ("electrical".equals(codeString))
|
||||
return MeasurementPrinciple.ELECTRICAL;
|
||||
return MeasmntPrinciple.ELECTRICAL;
|
||||
if ("impedance".equals(codeString))
|
||||
return MeasurementPrinciple.IMPEDANCE;
|
||||
return MeasmntPrinciple.IMPEDANCE;
|
||||
if ("nuclear".equals(codeString))
|
||||
return MeasurementPrinciple.NUCLEAR;
|
||||
return MeasmntPrinciple.NUCLEAR;
|
||||
if ("optical".equals(codeString))
|
||||
return MeasurementPrinciple.OPTICAL;
|
||||
return MeasmntPrinciple.OPTICAL;
|
||||
if ("thermal".equals(codeString))
|
||||
return MeasurementPrinciple.THERMAL;
|
||||
return MeasmntPrinciple.THERMAL;
|
||||
if ("biological".equals(codeString))
|
||||
return MeasurementPrinciple.BIOLOGICAL;
|
||||
return MeasmntPrinciple.BIOLOGICAL;
|
||||
if ("mechanical".equals(codeString))
|
||||
return MeasurementPrinciple.MECHANICAL;
|
||||
return MeasmntPrinciple.MECHANICAL;
|
||||
if ("acoustical".equals(codeString))
|
||||
return MeasurementPrinciple.ACOUSTICAL;
|
||||
return MeasmntPrinciple.ACOUSTICAL;
|
||||
if ("manual".equals(codeString))
|
||||
return MeasurementPrinciple.MANUAL;
|
||||
throw new IllegalArgumentException("Unknown MeasurementPrinciple code '"+codeString+"'");
|
||||
return MeasmntPrinciple.MANUAL;
|
||||
throw new IllegalArgumentException("Unknown MeasmntPrinciple code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(MeasurementPrinciple code) {
|
||||
if (code == MeasurementPrinciple.OTHER)
|
||||
public String toCode(MeasmntPrinciple code) {
|
||||
if (code == MeasmntPrinciple.OTHER)
|
||||
return "other";
|
||||
if (code == MeasurementPrinciple.CHEMICAL)
|
||||
if (code == MeasmntPrinciple.CHEMICAL)
|
||||
return "chemical";
|
||||
if (code == MeasurementPrinciple.ELECTRICAL)
|
||||
if (code == MeasmntPrinciple.ELECTRICAL)
|
||||
return "electrical";
|
||||
if (code == MeasurementPrinciple.IMPEDANCE)
|
||||
if (code == MeasmntPrinciple.IMPEDANCE)
|
||||
return "impedance";
|
||||
if (code == MeasurementPrinciple.NUCLEAR)
|
||||
if (code == MeasmntPrinciple.NUCLEAR)
|
||||
return "nuclear";
|
||||
if (code == MeasurementPrinciple.OPTICAL)
|
||||
if (code == MeasmntPrinciple.OPTICAL)
|
||||
return "optical";
|
||||
if (code == MeasurementPrinciple.THERMAL)
|
||||
if (code == MeasmntPrinciple.THERMAL)
|
||||
return "thermal";
|
||||
if (code == MeasurementPrinciple.BIOLOGICAL)
|
||||
if (code == MeasmntPrinciple.BIOLOGICAL)
|
||||
return "biological";
|
||||
if (code == MeasurementPrinciple.MECHANICAL)
|
||||
if (code == MeasmntPrinciple.MECHANICAL)
|
||||
return "mechanical";
|
||||
if (code == MeasurementPrinciple.ACOUSTICAL)
|
||||
if (code == MeasmntPrinciple.ACOUSTICAL)
|
||||
return "acoustical";
|
||||
if (code == MeasurementPrinciple.MANUAL)
|
||||
if (code == MeasmntPrinciple.MANUAL)
|
||||
return "manual";
|
||||
return "?";
|
||||
}
|
||||
|
@ -481,7 +481,7 @@ public class DeviceComponent extends DomainResource {
|
|||
*/
|
||||
@Child(name = "measurementPrinciple", type = {CodeType.class}, order=7, min=0, max=1)
|
||||
@Description(shortDefinition="other | chemical | electrical | impedance | nuclear | optical | thermal | biological | mechanical | acoustical | manual+", formalDefinition="Describes the physical principle of the measurement. For example: thermal, chemical, acoustical, etc." )
|
||||
protected Enumeration<MeasurementPrinciple> measurementPrinciple;
|
||||
protected Enumeration<MeasmntPrinciple> measurementPrinciple;
|
||||
|
||||
/**
|
||||
* Describes the production specification such as component revision, serial number, etc.
|
||||
|
@ -497,7 +497,7 @@ public class DeviceComponent extends DomainResource {
|
|||
@Description(shortDefinition="Language code for the human-readable text strings produced by the device", formalDefinition="Describes the language code for the human-readable text string produced by the device. This language code will follow the IETF language tag. Example: en-US." )
|
||||
protected CodeableConcept languageCode;
|
||||
|
||||
private static final long serialVersionUID = 1179239259L;
|
||||
private static final long serialVersionUID = -1742890034L;
|
||||
|
||||
/*
|
||||
* Constructor
|
||||
|
@ -764,12 +764,12 @@ public class DeviceComponent extends DomainResource {
|
|||
/**
|
||||
* @return {@link #measurementPrinciple} (Describes the physical principle of the measurement. For example: thermal, chemical, acoustical, etc.). This is the underlying object with id, value and extensions. The accessor "getMeasurementPrinciple" gives direct access to the value
|
||||
*/
|
||||
public Enumeration<MeasurementPrinciple> getMeasurementPrincipleElement() {
|
||||
public Enumeration<MeasmntPrinciple> getMeasurementPrincipleElement() {
|
||||
if (this.measurementPrinciple == null)
|
||||
if (Configuration.errorOnAutoCreate())
|
||||
throw new Error("Attempt to auto-create DeviceComponent.measurementPrinciple");
|
||||
else if (Configuration.doAutoCreate())
|
||||
this.measurementPrinciple = new Enumeration<MeasurementPrinciple>(new MeasurementPrincipleEnumFactory()); // bb
|
||||
this.measurementPrinciple = new Enumeration<MeasmntPrinciple>(new MeasmntPrincipleEnumFactory()); // bb
|
||||
return this.measurementPrinciple;
|
||||
}
|
||||
|
||||
|
@ -784,7 +784,7 @@ public class DeviceComponent extends DomainResource {
|
|||
/**
|
||||
* @param value {@link #measurementPrinciple} (Describes the physical principle of the measurement. For example: thermal, chemical, acoustical, etc.). This is the underlying object with id, value and extensions. The accessor "getMeasurementPrinciple" gives direct access to the value
|
||||
*/
|
||||
public DeviceComponent setMeasurementPrincipleElement(Enumeration<MeasurementPrinciple> value) {
|
||||
public DeviceComponent setMeasurementPrincipleElement(Enumeration<MeasmntPrinciple> value) {
|
||||
this.measurementPrinciple = value;
|
||||
return this;
|
||||
}
|
||||
|
@ -792,19 +792,19 @@ public class DeviceComponent extends DomainResource {
|
|||
/**
|
||||
* @return Describes the physical principle of the measurement. For example: thermal, chemical, acoustical, etc.
|
||||
*/
|
||||
public MeasurementPrinciple getMeasurementPrinciple() {
|
||||
public MeasmntPrinciple getMeasurementPrinciple() {
|
||||
return this.measurementPrinciple == null ? null : this.measurementPrinciple.getValue();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value Describes the physical principle of the measurement. For example: thermal, chemical, acoustical, etc.
|
||||
*/
|
||||
public DeviceComponent setMeasurementPrinciple(MeasurementPrinciple value) {
|
||||
public DeviceComponent setMeasurementPrinciple(MeasmntPrinciple value) {
|
||||
if (value == null)
|
||||
this.measurementPrinciple = null;
|
||||
else {
|
||||
if (this.measurementPrinciple == null)
|
||||
this.measurementPrinciple = new Enumeration<MeasurementPrinciple>(new MeasurementPrincipleEnumFactory());
|
||||
this.measurementPrinciple = new Enumeration<MeasmntPrinciple>(new MeasmntPrincipleEnumFactory());
|
||||
this.measurementPrinciple.setValue(value);
|
||||
}
|
||||
return this;
|
||||
|
|
|
@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
|
|||
|
||||
*/
|
||||
|
||||
// Generated on Fri, May 22, 2015 17:15-0400 for FHIR v0.5.0
|
||||
// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
|
||||
|
||||
import java.util.*;
|
||||
|
||||
|
@ -46,24 +46,24 @@ import org.hl7.fhir.instance.model.api.*;
|
|||
@ResourceDef(name="DeviceMetric", profile="http://hl7.org/fhir/Profile/DeviceMetric")
|
||||
public class DeviceMetric extends DomainResource {
|
||||
|
||||
public enum MetricOperationalStatus {
|
||||
public enum DeviceMetricOperationalStatus {
|
||||
/**
|
||||
* The DeviceMetric is operating and will generate DeviceObservations.
|
||||
* The DeviceMetric is operating and will generate DeviceObservations
|
||||
*/
|
||||
ON,
|
||||
/**
|
||||
* The DeviceMetric is not operating.
|
||||
* The DeviceMetric is not operating
|
||||
*/
|
||||
OFF,
|
||||
/**
|
||||
* The DeviceMetric is operating, but will not generate any DeviceObservations.
|
||||
* The DeviceMetric is operating, but will not generate any DeviceObservations
|
||||
*/
|
||||
STANDBY,
|
||||
/**
|
||||
* added to help the parsers
|
||||
*/
|
||||
NULL;
|
||||
public static MetricOperationalStatus fromCode(String codeString) throws Exception {
|
||||
public static DeviceMetricOperationalStatus fromCode(String codeString) throws Exception {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("on".equals(codeString))
|
||||
|
@ -72,7 +72,7 @@ public class DeviceMetric extends DomainResource {
|
|||
return OFF;
|
||||
if ("standby".equals(codeString))
|
||||
return STANDBY;
|
||||
throw new Exception("Unknown MetricOperationalStatus code '"+codeString+"'");
|
||||
throw new Exception("Unknown DeviceMetricOperationalStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode() {
|
||||
switch (this) {
|
||||
|
@ -84,17 +84,17 @@ public class DeviceMetric extends DomainResource {
|
|||
}
|
||||
public String getSystem() {
|
||||
switch (this) {
|
||||
case ON: return "";
|
||||
case OFF: return "";
|
||||
case STANDBY: return "";
|
||||
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 "?";
|
||||
}
|
||||
}
|
||||
public String getDefinition() {
|
||||
switch (this) {
|
||||
case ON: return "The DeviceMetric is operating and will generate DeviceObservations.";
|
||||
case OFF: return "The DeviceMetric is not operating.";
|
||||
case STANDBY: return "The DeviceMetric is operating, but will not generate any DeviceObservations.";
|
||||
case ON: return "The DeviceMetric is operating and will generate DeviceObservations";
|
||||
case OFF: return "The DeviceMetric is not operating";
|
||||
case STANDBY: return "The DeviceMetric is operating, but will not generate any DeviceObservations";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -108,68 +108,68 @@ public class DeviceMetric extends DomainResource {
|
|||
}
|
||||
}
|
||||
|
||||
public static class MetricOperationalStatusEnumFactory implements EnumFactory<MetricOperationalStatus> {
|
||||
public MetricOperationalStatus fromCode(String codeString) throws IllegalArgumentException {
|
||||
public static class DeviceMetricOperationalStatusEnumFactory implements EnumFactory<DeviceMetricOperationalStatus> {
|
||||
public DeviceMetricOperationalStatus fromCode(String codeString) throws IllegalArgumentException {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("on".equals(codeString))
|
||||
return MetricOperationalStatus.ON;
|
||||
return DeviceMetricOperationalStatus.ON;
|
||||
if ("off".equals(codeString))
|
||||
return MetricOperationalStatus.OFF;
|
||||
return DeviceMetricOperationalStatus.OFF;
|
||||
if ("standby".equals(codeString))
|
||||
return MetricOperationalStatus.STANDBY;
|
||||
throw new IllegalArgumentException("Unknown MetricOperationalStatus code '"+codeString+"'");
|
||||
return DeviceMetricOperationalStatus.STANDBY;
|
||||
throw new IllegalArgumentException("Unknown DeviceMetricOperationalStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(MetricOperationalStatus code) {
|
||||
if (code == MetricOperationalStatus.ON)
|
||||
public String toCode(DeviceMetricOperationalStatus code) {
|
||||
if (code == DeviceMetricOperationalStatus.ON)
|
||||
return "on";
|
||||
if (code == MetricOperationalStatus.OFF)
|
||||
if (code == DeviceMetricOperationalStatus.OFF)
|
||||
return "off";
|
||||
if (code == MetricOperationalStatus.STANDBY)
|
||||
if (code == DeviceMetricOperationalStatus.STANDBY)
|
||||
return "standby";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
|
||||
public enum MetricColor {
|
||||
public enum DeviceMetricColor {
|
||||
/**
|
||||
* Color for representation - black.
|
||||
* Color for representation - black
|
||||
*/
|
||||
BLACK,
|
||||
/**
|
||||
* Color for representation - red.
|
||||
* Color for representation - red
|
||||
*/
|
||||
RED,
|
||||
/**
|
||||
* Color for representation - green.
|
||||
* Color for representation - green
|
||||
*/
|
||||
GREEN,
|
||||
/**
|
||||
* Color for representation - yellow.
|
||||
* Color for representation - yellow
|
||||
*/
|
||||
YELLOW,
|
||||
/**
|
||||
* Color for representation - blue.
|
||||
* Color for representation - blue
|
||||
*/
|
||||
BLUE,
|
||||
/**
|
||||
* Color for representation - magenta.
|
||||
* Color for representation - magenta
|
||||
*/
|
||||
MAGENTA,
|
||||
/**
|
||||
* Color for representation - cyan.
|
||||
* Color for representation - cyan
|
||||
*/
|
||||
CYAN,
|
||||
/**
|
||||
* Color for representation - white.
|
||||
* Color for representation - white
|
||||
*/
|
||||
WHITE,
|
||||
/**
|
||||
* added to help the parsers
|
||||
*/
|
||||
NULL;
|
||||
public static MetricColor fromCode(String codeString) throws Exception {
|
||||
public static DeviceMetricColor fromCode(String codeString) throws Exception {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("black".equals(codeString))
|
||||
|
@ -188,7 +188,7 @@ public class DeviceMetric extends DomainResource {
|
|||
return CYAN;
|
||||
if ("white".equals(codeString))
|
||||
return WHITE;
|
||||
throw new Exception("Unknown MetricColor code '"+codeString+"'");
|
||||
throw new Exception("Unknown DeviceMetricColor code '"+codeString+"'");
|
||||
}
|
||||
public String toCode() {
|
||||
switch (this) {
|
||||
|
@ -205,27 +205,27 @@ public class DeviceMetric extends DomainResource {
|
|||
}
|
||||
public String getSystem() {
|
||||
switch (this) {
|
||||
case BLACK: return "";
|
||||
case RED: return "";
|
||||
case GREEN: return "";
|
||||
case YELLOW: return "";
|
||||
case BLUE: return "";
|
||||
case MAGENTA: return "";
|
||||
case CYAN: return "";
|
||||
case WHITE: return "";
|
||||
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 "?";
|
||||
}
|
||||
}
|
||||
public String getDefinition() {
|
||||
switch (this) {
|
||||
case BLACK: return "Color for representation - black.";
|
||||
case RED: return "Color for representation - red.";
|
||||
case GREEN: return "Color for representation - green.";
|
||||
case YELLOW: return "Color for representation - yellow.";
|
||||
case BLUE: return "Color for representation - blue.";
|
||||
case MAGENTA: return "Color for representation - magenta.";
|
||||
case CYAN: return "Color for representation - cyan.";
|
||||
case WHITE: return "Color for representation - white.";
|
||||
case BLACK: return "Color for representation - black";
|
||||
case RED: return "Color for representation - red";
|
||||
case GREEN: return "Color for representation - green";
|
||||
case YELLOW: return "Color for representation - yellow";
|
||||
case BLUE: return "Color for representation - blue";
|
||||
case MAGENTA: return "Color for representation - magenta";
|
||||
case CYAN: return "Color for representation - cyan";
|
||||
case WHITE: return "Color for representation - white";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -244,51 +244,51 @@ public class DeviceMetric extends DomainResource {
|
|||
}
|
||||
}
|
||||
|
||||
public static class MetricColorEnumFactory implements EnumFactory<MetricColor> {
|
||||
public MetricColor fromCode(String codeString) throws IllegalArgumentException {
|
||||
public static class DeviceMetricColorEnumFactory implements EnumFactory<DeviceMetricColor> {
|
||||
public DeviceMetricColor fromCode(String codeString) throws IllegalArgumentException {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("black".equals(codeString))
|
||||
return MetricColor.BLACK;
|
||||
return DeviceMetricColor.BLACK;
|
||||
if ("red".equals(codeString))
|
||||
return MetricColor.RED;
|
||||
return DeviceMetricColor.RED;
|
||||
if ("green".equals(codeString))
|
||||
return MetricColor.GREEN;
|
||||
return DeviceMetricColor.GREEN;
|
||||
if ("yellow".equals(codeString))
|
||||
return MetricColor.YELLOW;
|
||||
return DeviceMetricColor.YELLOW;
|
||||
if ("blue".equals(codeString))
|
||||
return MetricColor.BLUE;
|
||||
return DeviceMetricColor.BLUE;
|
||||
if ("magenta".equals(codeString))
|
||||
return MetricColor.MAGENTA;
|
||||
return DeviceMetricColor.MAGENTA;
|
||||
if ("cyan".equals(codeString))
|
||||
return MetricColor.CYAN;
|
||||
return DeviceMetricColor.CYAN;
|
||||
if ("white".equals(codeString))
|
||||
return MetricColor.WHITE;
|
||||
throw new IllegalArgumentException("Unknown MetricColor code '"+codeString+"'");
|
||||
return DeviceMetricColor.WHITE;
|
||||
throw new IllegalArgumentException("Unknown DeviceMetricColor code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(MetricColor code) {
|
||||
if (code == MetricColor.BLACK)
|
||||
public String toCode(DeviceMetricColor code) {
|
||||
if (code == DeviceMetricColor.BLACK)
|
||||
return "black";
|
||||
if (code == MetricColor.RED)
|
||||
if (code == DeviceMetricColor.RED)
|
||||
return "red";
|
||||
if (code == MetricColor.GREEN)
|
||||
if (code == DeviceMetricColor.GREEN)
|
||||
return "green";
|
||||
if (code == MetricColor.YELLOW)
|
||||
if (code == DeviceMetricColor.YELLOW)
|
||||
return "yellow";
|
||||
if (code == MetricColor.BLUE)
|
||||
if (code == DeviceMetricColor.BLUE)
|
||||
return "blue";
|
||||
if (code == MetricColor.MAGENTA)
|
||||
if (code == DeviceMetricColor.MAGENTA)
|
||||
return "magenta";
|
||||
if (code == MetricColor.CYAN)
|
||||
if (code == DeviceMetricColor.CYAN)
|
||||
return "cyan";
|
||||
if (code == MetricColor.WHITE)
|
||||
if (code == DeviceMetricColor.WHITE)
|
||||
return "white";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
|
||||
public enum MetricCategory {
|
||||
public enum DeviceMetricCategory {
|
||||
/**
|
||||
* DeviceObservations generated for this DeviceMetric are measured.
|
||||
*/
|
||||
|
@ -309,7 +309,7 @@ public class DeviceMetric extends DomainResource {
|
|||
* added to help the parsers
|
||||
*/
|
||||
NULL;
|
||||
public static MetricCategory fromCode(String codeString) throws Exception {
|
||||
public static DeviceMetricCategory fromCode(String codeString) throws Exception {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("measurement".equals(codeString))
|
||||
|
@ -320,7 +320,7 @@ public class DeviceMetric extends DomainResource {
|
|||
return CALCULATION;
|
||||
if ("unspecified".equals(codeString))
|
||||
return UNSPECIFIED;
|
||||
throw new Exception("Unknown MetricCategory code '"+codeString+"'");
|
||||
throw new Exception("Unknown DeviceMetricCategory code '"+codeString+"'");
|
||||
}
|
||||
public String toCode() {
|
||||
switch (this) {
|
||||
|
@ -333,10 +333,10 @@ public class DeviceMetric extends DomainResource {
|
|||
}
|
||||
public String getSystem() {
|
||||
switch (this) {
|
||||
case MEASUREMENT: return "";
|
||||
case SETTING: return "";
|
||||
case CALCULATION: return "";
|
||||
case UNSPECIFIED: return "";
|
||||
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 "?";
|
||||
}
|
||||
}
|
||||
|
@ -360,56 +360,56 @@ public class DeviceMetric extends DomainResource {
|
|||
}
|
||||
}
|
||||
|
||||
public static class MetricCategoryEnumFactory implements EnumFactory<MetricCategory> {
|
||||
public MetricCategory fromCode(String codeString) throws IllegalArgumentException {
|
||||
public static class DeviceMetricCategoryEnumFactory implements EnumFactory<DeviceMetricCategory> {
|
||||
public DeviceMetricCategory fromCode(String codeString) throws IllegalArgumentException {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("measurement".equals(codeString))
|
||||
return MetricCategory.MEASUREMENT;
|
||||
return DeviceMetricCategory.MEASUREMENT;
|
||||
if ("setting".equals(codeString))
|
||||
return MetricCategory.SETTING;
|
||||
return DeviceMetricCategory.SETTING;
|
||||
if ("calculation".equals(codeString))
|
||||
return MetricCategory.CALCULATION;
|
||||
return DeviceMetricCategory.CALCULATION;
|
||||
if ("unspecified".equals(codeString))
|
||||
return MetricCategory.UNSPECIFIED;
|
||||
throw new IllegalArgumentException("Unknown MetricCategory code '"+codeString+"'");
|
||||
return DeviceMetricCategory.UNSPECIFIED;
|
||||
throw new IllegalArgumentException("Unknown DeviceMetricCategory code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(MetricCategory code) {
|
||||
if (code == MetricCategory.MEASUREMENT)
|
||||
public String toCode(DeviceMetricCategory code) {
|
||||
if (code == DeviceMetricCategory.MEASUREMENT)
|
||||
return "measurement";
|
||||
if (code == MetricCategory.SETTING)
|
||||
if (code == DeviceMetricCategory.SETTING)
|
||||
return "setting";
|
||||
if (code == MetricCategory.CALCULATION)
|
||||
if (code == DeviceMetricCategory.CALCULATION)
|
||||
return "calculation";
|
||||
if (code == MetricCategory.UNSPECIFIED)
|
||||
if (code == DeviceMetricCategory.UNSPECIFIED)
|
||||
return "unspecified";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
|
||||
public enum MetricCalibrationType {
|
||||
public enum DeviceMetricCalibrationType {
|
||||
/**
|
||||
* TODO.
|
||||
* TODO
|
||||
*/
|
||||
UNSPECIFIED,
|
||||
/**
|
||||
* TODO.
|
||||
* TODO
|
||||
*/
|
||||
OFFSET,
|
||||
/**
|
||||
* TODO.
|
||||
* TODO
|
||||
*/
|
||||
GAIN,
|
||||
/**
|
||||
* TODO.
|
||||
* TODO
|
||||
*/
|
||||
TWOPOINT,
|
||||
/**
|
||||
* added to help the parsers
|
||||
*/
|
||||
NULL;
|
||||
public static MetricCalibrationType fromCode(String codeString) throws Exception {
|
||||
public static DeviceMetricCalibrationType fromCode(String codeString) throws Exception {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("unspecified".equals(codeString))
|
||||
|
@ -420,7 +420,7 @@ public class DeviceMetric extends DomainResource {
|
|||
return GAIN;
|
||||
if ("two-point".equals(codeString))
|
||||
return TWOPOINT;
|
||||
throw new Exception("Unknown MetricCalibrationType code '"+codeString+"'");
|
||||
throw new Exception("Unknown DeviceMetricCalibrationType code '"+codeString+"'");
|
||||
}
|
||||
public String toCode() {
|
||||
switch (this) {
|
||||
|
@ -433,19 +433,19 @@ public class DeviceMetric extends DomainResource {
|
|||
}
|
||||
public String getSystem() {
|
||||
switch (this) {
|
||||
case UNSPECIFIED: return "";
|
||||
case OFFSET: return "";
|
||||
case GAIN: return "";
|
||||
case TWOPOINT: return "";
|
||||
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 "?";
|
||||
}
|
||||
}
|
||||
public String getDefinition() {
|
||||
switch (this) {
|
||||
case UNSPECIFIED: return "TODO.";
|
||||
case OFFSET: return "TODO.";
|
||||
case GAIN: return "TODO.";
|
||||
case TWOPOINT: return "TODO.";
|
||||
case UNSPECIFIED: return "TODO";
|
||||
case OFFSET: return "TODO";
|
||||
case GAIN: return "TODO";
|
||||
case TWOPOINT: return "TODO";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -460,35 +460,35 @@ public class DeviceMetric extends DomainResource {
|
|||
}
|
||||
}
|
||||
|
||||
public static class MetricCalibrationTypeEnumFactory implements EnumFactory<MetricCalibrationType> {
|
||||
public MetricCalibrationType fromCode(String codeString) throws IllegalArgumentException {
|
||||
public static class DeviceMetricCalibrationTypeEnumFactory implements EnumFactory<DeviceMetricCalibrationType> {
|
||||
public DeviceMetricCalibrationType fromCode(String codeString) throws IllegalArgumentException {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("unspecified".equals(codeString))
|
||||
return MetricCalibrationType.UNSPECIFIED;
|
||||
return DeviceMetricCalibrationType.UNSPECIFIED;
|
||||
if ("offset".equals(codeString))
|
||||
return MetricCalibrationType.OFFSET;
|
||||
return DeviceMetricCalibrationType.OFFSET;
|
||||
if ("gain".equals(codeString))
|
||||
return MetricCalibrationType.GAIN;
|
||||
return DeviceMetricCalibrationType.GAIN;
|
||||
if ("two-point".equals(codeString))
|
||||
return MetricCalibrationType.TWOPOINT;
|
||||
throw new IllegalArgumentException("Unknown MetricCalibrationType code '"+codeString+"'");
|
||||
return DeviceMetricCalibrationType.TWOPOINT;
|
||||
throw new IllegalArgumentException("Unknown DeviceMetricCalibrationType code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(MetricCalibrationType code) {
|
||||
if (code == MetricCalibrationType.UNSPECIFIED)
|
||||
public String toCode(DeviceMetricCalibrationType code) {
|
||||
if (code == DeviceMetricCalibrationType.UNSPECIFIED)
|
||||
return "unspecified";
|
||||
if (code == MetricCalibrationType.OFFSET)
|
||||
if (code == DeviceMetricCalibrationType.OFFSET)
|
||||
return "offset";
|
||||
if (code == MetricCalibrationType.GAIN)
|
||||
if (code == DeviceMetricCalibrationType.GAIN)
|
||||
return "gain";
|
||||
if (code == MetricCalibrationType.TWOPOINT)
|
||||
if (code == DeviceMetricCalibrationType.TWOPOINT)
|
||||
return "two-point";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
|
||||
public enum MetricCalibrationState {
|
||||
public enum DeviceMetricCalibrationState {
|
||||
/**
|
||||
* The metric has not been calibrated.
|
||||
*/
|
||||
|
@ -509,7 +509,7 @@ public class DeviceMetric extends DomainResource {
|
|||
* added to help the parsers
|
||||
*/
|
||||
NULL;
|
||||
public static MetricCalibrationState fromCode(String codeString) throws Exception {
|
||||
public static DeviceMetricCalibrationState fromCode(String codeString) throws Exception {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("not-calibrated".equals(codeString))
|
||||
|
@ -520,7 +520,7 @@ public class DeviceMetric extends DomainResource {
|
|||
return CALIBRATED;
|
||||
if ("unspecified".equals(codeString))
|
||||
return UNSPECIFIED;
|
||||
throw new Exception("Unknown MetricCalibrationState code '"+codeString+"'");
|
||||
throw new Exception("Unknown DeviceMetricCalibrationState code '"+codeString+"'");
|
||||
}
|
||||
public String toCode() {
|
||||
switch (this) {
|
||||
|
@ -533,10 +533,10 @@ public class DeviceMetric extends DomainResource {
|
|||
}
|
||||
public String getSystem() {
|
||||
switch (this) {
|
||||
case NOTCALIBRATED: return "";
|
||||
case CALIBRATIONREQUIRED: return "";
|
||||
case CALIBRATED: return "";
|
||||
case UNSPECIFIED: return "";
|
||||
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 "?";
|
||||
}
|
||||
}
|
||||
|
@ -560,29 +560,29 @@ public class DeviceMetric extends DomainResource {
|
|||
}
|
||||
}
|
||||
|
||||
public static class MetricCalibrationStateEnumFactory implements EnumFactory<MetricCalibrationState> {
|
||||
public MetricCalibrationState fromCode(String codeString) throws IllegalArgumentException {
|
||||
public static class DeviceMetricCalibrationStateEnumFactory implements EnumFactory<DeviceMetricCalibrationState> {
|
||||
public DeviceMetricCalibrationState fromCode(String codeString) throws IllegalArgumentException {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("not-calibrated".equals(codeString))
|
||||
return MetricCalibrationState.NOTCALIBRATED;
|
||||
return DeviceMetricCalibrationState.NOTCALIBRATED;
|
||||
if ("calibration-required".equals(codeString))
|
||||
return MetricCalibrationState.CALIBRATIONREQUIRED;
|
||||
return DeviceMetricCalibrationState.CALIBRATIONREQUIRED;
|
||||
if ("calibrated".equals(codeString))
|
||||
return MetricCalibrationState.CALIBRATED;
|
||||
return DeviceMetricCalibrationState.CALIBRATED;
|
||||
if ("unspecified".equals(codeString))
|
||||
return MetricCalibrationState.UNSPECIFIED;
|
||||
throw new IllegalArgumentException("Unknown MetricCalibrationState code '"+codeString+"'");
|
||||
return DeviceMetricCalibrationState.UNSPECIFIED;
|
||||
throw new IllegalArgumentException("Unknown DeviceMetricCalibrationState code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(MetricCalibrationState code) {
|
||||
if (code == MetricCalibrationState.NOTCALIBRATED)
|
||||
public String toCode(DeviceMetricCalibrationState code) {
|
||||
if (code == DeviceMetricCalibrationState.NOTCALIBRATED)
|
||||
return "not-calibrated";
|
||||
if (code == MetricCalibrationState.CALIBRATIONREQUIRED)
|
||||
if (code == DeviceMetricCalibrationState.CALIBRATIONREQUIRED)
|
||||
return "calibration-required";
|
||||
if (code == MetricCalibrationState.CALIBRATED)
|
||||
if (code == DeviceMetricCalibrationState.CALIBRATED)
|
||||
return "calibrated";
|
||||
if (code == MetricCalibrationState.UNSPECIFIED)
|
||||
if (code == DeviceMetricCalibrationState.UNSPECIFIED)
|
||||
return "unspecified";
|
||||
return "?";
|
||||
}
|
||||
|
@ -595,14 +595,14 @@ public class DeviceMetric extends DomainResource {
|
|||
*/
|
||||
@Child(name = "type", type = {CodeType.class}, order=1, min=0, max=1)
|
||||
@Description(shortDefinition="unspecified | offset | gain | two-point", formalDefinition="Describes the type of the calibration method." )
|
||||
protected Enumeration<MetricCalibrationType> type;
|
||||
protected Enumeration<DeviceMetricCalibrationType> type;
|
||||
|
||||
/**
|
||||
* Describes the state of the calibration.
|
||||
*/
|
||||
@Child(name = "state", type = {CodeType.class}, order=2, min=0, max=1)
|
||||
@Description(shortDefinition="not-calibrated | calibration-required | calibrated | unspecified", formalDefinition="Describes the state of the calibration." )
|
||||
protected Enumeration<MetricCalibrationState> state;
|
||||
protected Enumeration<DeviceMetricCalibrationState> state;
|
||||
|
||||
/**
|
||||
* Describes the time last calibration has been performed.
|
||||
|
@ -611,7 +611,7 @@ public class DeviceMetric extends DomainResource {
|
|||
@Description(shortDefinition="Describes the time last calibration has been performed", formalDefinition="Describes the time last calibration has been performed." )
|
||||
protected InstantType time;
|
||||
|
||||
private static final long serialVersionUID = 407720126L;
|
||||
private static final long serialVersionUID = 1163986578L;
|
||||
|
||||
/*
|
||||
* Constructor
|
||||
|
@ -623,12 +623,12 @@ public class DeviceMetric extends DomainResource {
|
|||
/**
|
||||
* @return {@link #type} (Describes the type of the calibration method.). This is the underlying object with id, value and extensions. The accessor "getType" gives direct access to the value
|
||||
*/
|
||||
public Enumeration<MetricCalibrationType> getTypeElement() {
|
||||
public Enumeration<DeviceMetricCalibrationType> getTypeElement() {
|
||||
if (this.type == null)
|
||||
if (Configuration.errorOnAutoCreate())
|
||||
throw new Error("Attempt to auto-create DeviceMetricCalibrationComponent.type");
|
||||
else if (Configuration.doAutoCreate())
|
||||
this.type = new Enumeration<MetricCalibrationType>(new MetricCalibrationTypeEnumFactory()); // bb
|
||||
this.type = new Enumeration<DeviceMetricCalibrationType>(new DeviceMetricCalibrationTypeEnumFactory()); // bb
|
||||
return this.type;
|
||||
}
|
||||
|
||||
|
@ -643,7 +643,7 @@ public class DeviceMetric extends DomainResource {
|
|||
/**
|
||||
* @param value {@link #type} (Describes the type of the calibration method.). This is the underlying object with id, value and extensions. The accessor "getType" gives direct access to the value
|
||||
*/
|
||||
public DeviceMetricCalibrationComponent setTypeElement(Enumeration<MetricCalibrationType> value) {
|
||||
public DeviceMetricCalibrationComponent setTypeElement(Enumeration<DeviceMetricCalibrationType> value) {
|
||||
this.type = value;
|
||||
return this;
|
||||
}
|
||||
|
@ -651,19 +651,19 @@ public class DeviceMetric extends DomainResource {
|
|||
/**
|
||||
* @return Describes the type of the calibration method.
|
||||
*/
|
||||
public MetricCalibrationType getType() {
|
||||
public DeviceMetricCalibrationType getType() {
|
||||
return this.type == null ? null : this.type.getValue();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value Describes the type of the calibration method.
|
||||
*/
|
||||
public DeviceMetricCalibrationComponent setType(MetricCalibrationType value) {
|
||||
public DeviceMetricCalibrationComponent setType(DeviceMetricCalibrationType value) {
|
||||
if (value == null)
|
||||
this.type = null;
|
||||
else {
|
||||
if (this.type == null)
|
||||
this.type = new Enumeration<MetricCalibrationType>(new MetricCalibrationTypeEnumFactory());
|
||||
this.type = new Enumeration<DeviceMetricCalibrationType>(new DeviceMetricCalibrationTypeEnumFactory());
|
||||
this.type.setValue(value);
|
||||
}
|
||||
return this;
|
||||
|
@ -672,12 +672,12 @@ public class DeviceMetric extends DomainResource {
|
|||
/**
|
||||
* @return {@link #state} (Describes the state of the calibration.). This is the underlying object with id, value and extensions. The accessor "getState" gives direct access to the value
|
||||
*/
|
||||
public Enumeration<MetricCalibrationState> getStateElement() {
|
||||
public Enumeration<DeviceMetricCalibrationState> getStateElement() {
|
||||
if (this.state == null)
|
||||
if (Configuration.errorOnAutoCreate())
|
||||
throw new Error("Attempt to auto-create DeviceMetricCalibrationComponent.state");
|
||||
else if (Configuration.doAutoCreate())
|
||||
this.state = new Enumeration<MetricCalibrationState>(new MetricCalibrationStateEnumFactory()); // bb
|
||||
this.state = new Enumeration<DeviceMetricCalibrationState>(new DeviceMetricCalibrationStateEnumFactory()); // bb
|
||||
return this.state;
|
||||
}
|
||||
|
||||
|
@ -692,7 +692,7 @@ public class DeviceMetric extends DomainResource {
|
|||
/**
|
||||
* @param value {@link #state} (Describes the state of the calibration.). This is the underlying object with id, value and extensions. The accessor "getState" gives direct access to the value
|
||||
*/
|
||||
public DeviceMetricCalibrationComponent setStateElement(Enumeration<MetricCalibrationState> value) {
|
||||
public DeviceMetricCalibrationComponent setStateElement(Enumeration<DeviceMetricCalibrationState> value) {
|
||||
this.state = value;
|
||||
return this;
|
||||
}
|
||||
|
@ -700,19 +700,19 @@ public class DeviceMetric extends DomainResource {
|
|||
/**
|
||||
* @return Describes the state of the calibration.
|
||||
*/
|
||||
public MetricCalibrationState getState() {
|
||||
public DeviceMetricCalibrationState getState() {
|
||||
return this.state == null ? null : this.state.getValue();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value Describes the state of the calibration.
|
||||
*/
|
||||
public DeviceMetricCalibrationComponent setState(MetricCalibrationState value) {
|
||||
public DeviceMetricCalibrationComponent setState(DeviceMetricCalibrationState value) {
|
||||
if (value == null)
|
||||
this.state = null;
|
||||
else {
|
||||
if (this.state == null)
|
||||
this.state = new Enumeration<MetricCalibrationState>(new MetricCalibrationStateEnumFactory());
|
||||
this.state = new Enumeration<DeviceMetricCalibrationState>(new DeviceMetricCalibrationStateEnumFactory());
|
||||
this.state.setValue(value);
|
||||
}
|
||||
return this;
|
||||
|
@ -865,21 +865,21 @@ An example would be a DeviceComponent that represents a Channel. This reference
|
|||
*/
|
||||
@Child(name = "operationalStatus", type = {CodeType.class}, order=5, min=0, max=1)
|
||||
@Description(shortDefinition="on | off | standby", formalDefinition="Indicates current operational state of the device. For example: On, Off, Standby, etc." )
|
||||
protected Enumeration<MetricOperationalStatus> operationalStatus;
|
||||
protected Enumeration<DeviceMetricOperationalStatus> operationalStatus;
|
||||
|
||||
/**
|
||||
* Describes the typical color of the representation of observations that have been generated for this DeviceMetric.
|
||||
*/
|
||||
@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." )
|
||||
protected Enumeration<MetricColor> color;
|
||||
protected Enumeration<DeviceMetricColor> color;
|
||||
|
||||
/**
|
||||
* Indicates the category of the observation generation process. A DeviceMetric can be for example a setting, measurement, or calculation.
|
||||
*/
|
||||
@Child(name = "category", type = {CodeType.class}, order=7, min=1, max=1)
|
||||
@Description(shortDefinition="measurement | setting | calculation | unspecified", formalDefinition="Indicates the category of the observation generation process. A DeviceMetric can be for example a setting, measurement, or calculation." )
|
||||
protected Enumeration<MetricCategory> category;
|
||||
protected Enumeration<DeviceMetricCategory> category;
|
||||
|
||||
/**
|
||||
* Describes the measurement repetition time. This is not
|
||||
|
@ -897,7 +897,7 @@ period.
|
|||
@Description(shortDefinition="Describes the calibrations that have been performed or that are required to be performed", formalDefinition="Describes the calibrations that have been performed or that are required to be performed." )
|
||||
protected List<DeviceMetricCalibrationComponent> calibration;
|
||||
|
||||
private static final long serialVersionUID = -480554704L;
|
||||
private static final long serialVersionUID = 1786401018L;
|
||||
|
||||
/*
|
||||
* Constructor
|
||||
|
@ -909,7 +909,7 @@ period.
|
|||
/*
|
||||
* Constructor
|
||||
*/
|
||||
public DeviceMetric(CodeableConcept type, Identifier identifier, Enumeration<MetricCategory> category) {
|
||||
public DeviceMetric(CodeableConcept type, Identifier identifier, Enumeration<DeviceMetricCategory> category) {
|
||||
super();
|
||||
this.type = type;
|
||||
this.identifier = identifier;
|
||||
|
@ -1085,12 +1085,12 @@ An example would be a DeviceComponent that represents a Channel. This reference
|
|||
/**
|
||||
* @return {@link #operationalStatus} (Indicates current operational state of the device. For example: On, Off, Standby, etc.). This is the underlying object with id, value and extensions. The accessor "getOperationalStatus" gives direct access to the value
|
||||
*/
|
||||
public Enumeration<MetricOperationalStatus> getOperationalStatusElement() {
|
||||
public Enumeration<DeviceMetricOperationalStatus> getOperationalStatusElement() {
|
||||
if (this.operationalStatus == null)
|
||||
if (Configuration.errorOnAutoCreate())
|
||||
throw new Error("Attempt to auto-create DeviceMetric.operationalStatus");
|
||||
else if (Configuration.doAutoCreate())
|
||||
this.operationalStatus = new Enumeration<MetricOperationalStatus>(new MetricOperationalStatusEnumFactory()); // bb
|
||||
this.operationalStatus = new Enumeration<DeviceMetricOperationalStatus>(new DeviceMetricOperationalStatusEnumFactory()); // bb
|
||||
return this.operationalStatus;
|
||||
}
|
||||
|
||||
|
@ -1105,7 +1105,7 @@ An example would be a DeviceComponent that represents a Channel. This reference
|
|||
/**
|
||||
* @param value {@link #operationalStatus} (Indicates current operational state of the device. For example: On, Off, Standby, etc.). This is the underlying object with id, value and extensions. The accessor "getOperationalStatus" gives direct access to the value
|
||||
*/
|
||||
public DeviceMetric setOperationalStatusElement(Enumeration<MetricOperationalStatus> value) {
|
||||
public DeviceMetric setOperationalStatusElement(Enumeration<DeviceMetricOperationalStatus> value) {
|
||||
this.operationalStatus = value;
|
||||
return this;
|
||||
}
|
||||
|
@ -1113,19 +1113,19 @@ An example would be a DeviceComponent that represents a Channel. This reference
|
|||
/**
|
||||
* @return Indicates current operational state of the device. For example: On, Off, Standby, etc.
|
||||
*/
|
||||
public MetricOperationalStatus getOperationalStatus() {
|
||||
public DeviceMetricOperationalStatus getOperationalStatus() {
|
||||
return this.operationalStatus == null ? null : this.operationalStatus.getValue();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value Indicates current operational state of the device. For example: On, Off, Standby, etc.
|
||||
*/
|
||||
public DeviceMetric setOperationalStatus(MetricOperationalStatus value) {
|
||||
public DeviceMetric setOperationalStatus(DeviceMetricOperationalStatus value) {
|
||||
if (value == null)
|
||||
this.operationalStatus = null;
|
||||
else {
|
||||
if (this.operationalStatus == null)
|
||||
this.operationalStatus = new Enumeration<MetricOperationalStatus>(new MetricOperationalStatusEnumFactory());
|
||||
this.operationalStatus = new Enumeration<DeviceMetricOperationalStatus>(new DeviceMetricOperationalStatusEnumFactory());
|
||||
this.operationalStatus.setValue(value);
|
||||
}
|
||||
return this;
|
||||
|
@ -1134,12 +1134,12 @@ 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
|
||||
*/
|
||||
public Enumeration<MetricColor> getColorElement() {
|
||||
public Enumeration<DeviceMetricColor> getColorElement() {
|
||||
if (this.color == null)
|
||||
if (Configuration.errorOnAutoCreate())
|
||||
throw new Error("Attempt to auto-create DeviceMetric.color");
|
||||
else if (Configuration.doAutoCreate())
|
||||
this.color = new Enumeration<MetricColor>(new MetricColorEnumFactory()); // bb
|
||||
this.color = new Enumeration<DeviceMetricColor>(new DeviceMetricColorEnumFactory()); // bb
|
||||
return this.color;
|
||||
}
|
||||
|
||||
|
@ -1154,7 +1154,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
|
||||
*/
|
||||
public DeviceMetric setColorElement(Enumeration<MetricColor> value) {
|
||||
public DeviceMetric setColorElement(Enumeration<DeviceMetricColor> value) {
|
||||
this.color = value;
|
||||
return this;
|
||||
}
|
||||
|
@ -1162,19 +1162,19 @@ 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.
|
||||
*/
|
||||
public MetricColor getColor() {
|
||||
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.
|
||||
*/
|
||||
public DeviceMetric setColor(MetricColor value) {
|
||||
public DeviceMetric setColor(DeviceMetricColor value) {
|
||||
if (value == null)
|
||||
this.color = null;
|
||||
else {
|
||||
if (this.color == null)
|
||||
this.color = new Enumeration<MetricColor>(new MetricColorEnumFactory());
|
||||
this.color = new Enumeration<DeviceMetricColor>(new DeviceMetricColorEnumFactory());
|
||||
this.color.setValue(value);
|
||||
}
|
||||
return this;
|
||||
|
@ -1183,12 +1183,12 @@ An example would be a DeviceComponent that represents a Channel. This reference
|
|||
/**
|
||||
* @return {@link #category} (Indicates the category of the observation generation process. A DeviceMetric can be for example a setting, measurement, or calculation.). This is the underlying object with id, value and extensions. The accessor "getCategory" gives direct access to the value
|
||||
*/
|
||||
public Enumeration<MetricCategory> getCategoryElement() {
|
||||
public Enumeration<DeviceMetricCategory> getCategoryElement() {
|
||||
if (this.category == null)
|
||||
if (Configuration.errorOnAutoCreate())
|
||||
throw new Error("Attempt to auto-create DeviceMetric.category");
|
||||
else if (Configuration.doAutoCreate())
|
||||
this.category = new Enumeration<MetricCategory>(new MetricCategoryEnumFactory()); // bb
|
||||
this.category = new Enumeration<DeviceMetricCategory>(new DeviceMetricCategoryEnumFactory()); // bb
|
||||
return this.category;
|
||||
}
|
||||
|
||||
|
@ -1203,7 +1203,7 @@ An example would be a DeviceComponent that represents a Channel. This reference
|
|||
/**
|
||||
* @param value {@link #category} (Indicates the category of the observation generation process. A DeviceMetric can be for example a setting, measurement, or calculation.). This is the underlying object with id, value and extensions. The accessor "getCategory" gives direct access to the value
|
||||
*/
|
||||
public DeviceMetric setCategoryElement(Enumeration<MetricCategory> value) {
|
||||
public DeviceMetric setCategoryElement(Enumeration<DeviceMetricCategory> value) {
|
||||
this.category = value;
|
||||
return this;
|
||||
}
|
||||
|
@ -1211,16 +1211,16 @@ An example would be a DeviceComponent that represents a Channel. This reference
|
|||
/**
|
||||
* @return Indicates the category of the observation generation process. A DeviceMetric can be for example a setting, measurement, or calculation.
|
||||
*/
|
||||
public MetricCategory getCategory() {
|
||||
public DeviceMetricCategory getCategory() {
|
||||
return this.category == null ? null : this.category.getValue();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value Indicates the category of the observation generation process. A DeviceMetric can be for example a setting, measurement, or calculation.
|
||||
*/
|
||||
public DeviceMetric setCategory(MetricCategory value) {
|
||||
public DeviceMetric setCategory(DeviceMetricCategory value) {
|
||||
if (this.category == null)
|
||||
this.category = new Enumeration<MetricCategory>(new MetricCategoryEnumFactory());
|
||||
this.category = new Enumeration<DeviceMetricCategory>(new DeviceMetricCategoryEnumFactory());
|
||||
this.category.setValue(value);
|
||||
return this;
|
||||
}
|
||||
|
|
|
@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
|
|||
|
||||
*/
|
||||
|
||||
// Generated on Fri, May 22, 2015 17:15-0400 for FHIR v0.5.0
|
||||
// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
|
||||
|
||||
import java.util.*;
|
||||
|
||||
|
@ -48,43 +48,43 @@ public class DeviceUseRequest extends DomainResource {
|
|||
|
||||
public enum DeviceUseRequestStatus {
|
||||
/**
|
||||
* The request has been proposed.
|
||||
* The request has been proposed
|
||||
*/
|
||||
PROPOSED,
|
||||
/**
|
||||
* The request has been planned.
|
||||
* The request has been planned
|
||||
*/
|
||||
PLANNED,
|
||||
/**
|
||||
* The request has been placed.
|
||||
* The request has been placed
|
||||
*/
|
||||
REQUESTED,
|
||||
/**
|
||||
* The receiving system has received the request but not yet decided whether it will be performed.
|
||||
* The receiving system has received the request but not yet decided whether it will be performed
|
||||
*/
|
||||
RECEIVED,
|
||||
/**
|
||||
* The receiving system has accepted the request but work has not yet commenced.
|
||||
* The receiving system has accepted the request but work has not yet commenced
|
||||
*/
|
||||
ACCEPTED,
|
||||
/**
|
||||
* The work to fulfill the order is happening.
|
||||
* The work to fulfill the order is happening
|
||||
*/
|
||||
INPROGRESS,
|
||||
/**
|
||||
* The work has been complete, the report(s) released, and no further work is planned.
|
||||
* The work has been complete, the report(s) released, and no further work is planned
|
||||
*/
|
||||
COMPLETED,
|
||||
/**
|
||||
* The request has been held by originating system/user request.
|
||||
* The request has been held by originating system/user request
|
||||
*/
|
||||
SUSPENDED,
|
||||
/**
|
||||
* The receiving system has declined to fulfill the request.
|
||||
* The receiving system has declined to fulfill the request
|
||||
*/
|
||||
REJECTED,
|
||||
/**
|
||||
* The request was attempted, but due to some procedural error, it could not be completed.
|
||||
* The request was attempted, but due to some procedural error, it could not be completed
|
||||
*/
|
||||
ABORTED,
|
||||
/**
|
||||
|
@ -133,31 +133,31 @@ public class DeviceUseRequest extends DomainResource {
|
|||
}
|
||||
public String getSystem() {
|
||||
switch (this) {
|
||||
case PROPOSED: return "";
|
||||
case PLANNED: return "";
|
||||
case REQUESTED: return "";
|
||||
case RECEIVED: return "";
|
||||
case ACCEPTED: return "";
|
||||
case INPROGRESS: return "";
|
||||
case COMPLETED: return "";
|
||||
case SUSPENDED: return "";
|
||||
case REJECTED: return "";
|
||||
case ABORTED: return "";
|
||||
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 "?";
|
||||
}
|
||||
}
|
||||
public String getDefinition() {
|
||||
switch (this) {
|
||||
case PROPOSED: return "The request has been proposed.";
|
||||
case PLANNED: return "The request has been planned.";
|
||||
case REQUESTED: return "The request has been placed.";
|
||||
case RECEIVED: return "The receiving system has received the request but not yet decided whether it will be performed.";
|
||||
case ACCEPTED: return "The receiving system has accepted the request but work has not yet commenced.";
|
||||
case INPROGRESS: return "The work to fulfill the order is happening.";
|
||||
case COMPLETED: return "The work has been complete, the report(s) released, and no further work is planned.";
|
||||
case SUSPENDED: return "The request has been held by originating system/user request.";
|
||||
case REJECTED: return "The receiving system has declined to fulfill the request.";
|
||||
case ABORTED: return "The request was attempted, but due to some procedural error, it could not be completed.";
|
||||
case PROPOSED: return "The request has been proposed";
|
||||
case PLANNED: return "The request has been planned";
|
||||
case REQUESTED: return "The request has been placed";
|
||||
case RECEIVED: return "The receiving system has received the request but not yet decided whether it will be performed";
|
||||
case ACCEPTED: return "The receiving system has accepted the request but work has not yet commenced";
|
||||
case INPROGRESS: return "The work to fulfill the order is happening";
|
||||
case COMPLETED: return "The work has been complete, the report(s) released, and no further work is planned";
|
||||
case SUSPENDED: return "The request has been held by originating system/user request";
|
||||
case REJECTED: return "The receiving system has declined to fulfill the request";
|
||||
case ABORTED: return "The request was attempted, but due to some procedural error, it could not be completed";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -275,10 +275,10 @@ public class DeviceUseRequest extends DomainResource {
|
|||
}
|
||||
public String getSystem() {
|
||||
switch (this) {
|
||||
case ROUTINE: return "";
|
||||
case URGENT: return "";
|
||||
case STAT: return "";
|
||||
case ASAP: return "";
|
||||
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 "?";
|
||||
}
|
||||
}
|
||||
|
|
|
@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
|
|||
|
||||
*/
|
||||
|
||||
// Generated on Fri, May 22, 2015 17:15-0400 for FHIR v0.5.0
|
||||
// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
|
||||
|
||||
import java.util.*;
|
||||
|
||||
|
|
|
@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
|
|||
|
||||
*/
|
||||
|
||||
// Generated on Fri, May 22, 2015 17:15-0400 for FHIR v0.5.0
|
||||
// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
|
||||
|
||||
import java.util.*;
|
||||
|
||||
|
@ -48,55 +48,55 @@ public class DiagnosticOrder extends DomainResource {
|
|||
|
||||
public enum DiagnosticOrderStatus {
|
||||
/**
|
||||
* The request has been proposed.
|
||||
* The request has been proposed
|
||||
*/
|
||||
PROPOSED,
|
||||
/**
|
||||
* the request is in preliminary form prior to being sent.
|
||||
* the request is in preliminary form prior to being sent
|
||||
*/
|
||||
DRAFT,
|
||||
/**
|
||||
* The request has been planned.
|
||||
* The request has been planned
|
||||
*/
|
||||
PLANNED,
|
||||
/**
|
||||
* The request has been placed.
|
||||
* The request has been placed
|
||||
*/
|
||||
REQUESTED,
|
||||
/**
|
||||
* The receiving system has received the order, but not yet decided whether it will be performed.
|
||||
* The receiving system has received the order, but not yet decided whether it will be performed
|
||||
*/
|
||||
RECEIVED,
|
||||
/**
|
||||
* The receiving system has accepted the order, but work has not yet commenced.
|
||||
* The receiving system has accepted the order, but work has not yet commenced
|
||||
*/
|
||||
ACCEPTED,
|
||||
/**
|
||||
* The work to fulfill the order is happening.
|
||||
* The work to fulfill the order is happening
|
||||
*/
|
||||
INPROGRESS,
|
||||
/**
|
||||
* The work is complete, and the outcomes are being reviewed for approval.
|
||||
* The work is complete, and the outcomes are being reviewed for approval
|
||||
*/
|
||||
REVIEW,
|
||||
/**
|
||||
* The work has been complete, the report(s) released, and no further work is planned.
|
||||
* The work has been complete, the report(s) released, and no further work is planned
|
||||
*/
|
||||
COMPLETED,
|
||||
/**
|
||||
* the request has been withdrawn.
|
||||
* the request has been withdrawn
|
||||
*/
|
||||
CANCELLED,
|
||||
/**
|
||||
* The request has been held by originating system/user request.
|
||||
* The request has been held by originating system/user request
|
||||
*/
|
||||
SUSPENDED,
|
||||
/**
|
||||
* The receiving system has declined to fulfill the request.
|
||||
* The receiving system has declined to fulfill the request
|
||||
*/
|
||||
REJECTED,
|
||||
/**
|
||||
* The diagnostic investigation was attempted, but due to some procedural error, it could not be completed.
|
||||
* The diagnostic investigation was attempted, but due to some procedural error, it could not be completed
|
||||
*/
|
||||
FAILED,
|
||||
/**
|
||||
|
@ -154,37 +154,37 @@ public class DiagnosticOrder extends DomainResource {
|
|||
}
|
||||
public String getSystem() {
|
||||
switch (this) {
|
||||
case PROPOSED: return "";
|
||||
case DRAFT: return "";
|
||||
case PLANNED: return "";
|
||||
case REQUESTED: return "";
|
||||
case RECEIVED: return "";
|
||||
case ACCEPTED: return "";
|
||||
case INPROGRESS: return "";
|
||||
case REVIEW: return "";
|
||||
case COMPLETED: return "";
|
||||
case CANCELLED: return "";
|
||||
case SUSPENDED: return "";
|
||||
case REJECTED: return "";
|
||||
case FAILED: return "";
|
||||
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 "?";
|
||||
}
|
||||
}
|
||||
public String getDefinition() {
|
||||
switch (this) {
|
||||
case PROPOSED: return "The request has been proposed.";
|
||||
case DRAFT: return "the request is in preliminary form prior to being sent.";
|
||||
case PLANNED: return "The request has been planned.";
|
||||
case REQUESTED: return "The request has been placed.";
|
||||
case RECEIVED: return "The receiving system has received the order, but not yet decided whether it will be performed.";
|
||||
case ACCEPTED: return "The receiving system has accepted the order, but work has not yet commenced.";
|
||||
case INPROGRESS: return "The work to fulfill the order is happening.";
|
||||
case REVIEW: return "The work is complete, and the outcomes are being reviewed for approval.";
|
||||
case COMPLETED: return "The work has been complete, the report(s) released, and no further work is planned.";
|
||||
case CANCELLED: return "the request has been withdrawn.";
|
||||
case SUSPENDED: return "The request has been held by originating system/user request.";
|
||||
case REJECTED: return "The receiving system has declined to fulfill the request.";
|
||||
case FAILED: return "The diagnostic investigation was attempted, but due to some procedural error, it could not be completed.";
|
||||
case PROPOSED: return "The request has been proposed";
|
||||
case DRAFT: return "the request is in preliminary form prior to being sent";
|
||||
case PLANNED: return "The request has been planned";
|
||||
case REQUESTED: return "The request has been placed";
|
||||
case RECEIVED: return "The receiving system has received the order, but not yet decided whether it will be performed";
|
||||
case ACCEPTED: return "The receiving system has accepted the order, but work has not yet commenced";
|
||||
case INPROGRESS: return "The work to fulfill the order is happening";
|
||||
case REVIEW: return "The work is complete, and the outcomes are being reviewed for approval";
|
||||
case COMPLETED: return "The work has been complete, the report(s) released, and no further work is planned";
|
||||
case CANCELLED: return "the request has been withdrawn";
|
||||
case SUSPENDED: return "The request has been held by originating system/user request";
|
||||
case REJECTED: return "The receiving system has declined to fulfill the request";
|
||||
case FAILED: return "The diagnostic investigation was attempted, but due to some procedural error, it could not be completed";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -274,19 +274,19 @@ public class DiagnosticOrder extends DomainResource {
|
|||
|
||||
public enum DiagnosticOrderPriority {
|
||||
/**
|
||||
* The order has a normal priority.
|
||||
* The order has a normal priority
|
||||
*/
|
||||
ROUTINE,
|
||||
/**
|
||||
* The order should be urgently.
|
||||
* The order should be urgently
|
||||
*/
|
||||
URGENT,
|
||||
/**
|
||||
* The order is time-critical.
|
||||
* The order is time-critical
|
||||
*/
|
||||
STAT,
|
||||
/**
|
||||
* The order should be acted on as soon as possible.
|
||||
* The order should be acted on as soon as possible
|
||||
*/
|
||||
ASAP,
|
||||
/**
|
||||
|
@ -317,19 +317,19 @@ public class DiagnosticOrder extends DomainResource {
|
|||
}
|
||||
public String getSystem() {
|
||||
switch (this) {
|
||||
case ROUTINE: return "";
|
||||
case URGENT: return "";
|
||||
case STAT: return "";
|
||||
case ASAP: return "";
|
||||
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 "?";
|
||||
}
|
||||
}
|
||||
public String getDefinition() {
|
||||
switch (this) {
|
||||
case ROUTINE: return "The order has a normal priority.";
|
||||
case URGENT: return "The order should be urgently.";
|
||||
case STAT: return "The order is time-critical.";
|
||||
case ASAP: return "The order should be acted on as soon as possible.";
|
||||
case ROUTINE: return "The order has a normal priority";
|
||||
case URGENT: return "The order should be urgently";
|
||||
case STAT: return "The order is time-critical";
|
||||
case ASAP: return "The order should be acted on as soon as possible";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -976,10 +976,10 @@ public class DiagnosticOrder extends DomainResource {
|
|||
protected Practitioner ordererTarget;
|
||||
|
||||
/**
|
||||
* Identifiers assigned to this order by the order or by the receiver.
|
||||
* Identifiers assigned to this order by the orderer and/or the receiver and/or order fulfiller.
|
||||
*/
|
||||
@Child(name = "identifier", type = {Identifier.class}, order=2, min=0, max=Child.MAX_UNLIMITED)
|
||||
@Description(shortDefinition="Identifiers assigned to this order", formalDefinition="Identifiers assigned to this order by the order or by the receiver." )
|
||||
@Description(shortDefinition="Identifiers assigned to this order", formalDefinition="Identifiers assigned to this order by the orderer and/or the receiver and/or order fulfiller." )
|
||||
protected List<Identifier> identifier;
|
||||
|
||||
/**
|
||||
|
@ -1154,7 +1154,7 @@ public class DiagnosticOrder extends DomainResource {
|
|||
}
|
||||
|
||||
/**
|
||||
* @return {@link #identifier} (Identifiers assigned to this order by the order or by the receiver.)
|
||||
* @return {@link #identifier} (Identifiers assigned to this order by the orderer and/or the receiver and/or order fulfiller.)
|
||||
*/
|
||||
public List<Identifier> getIdentifier() {
|
||||
if (this.identifier == null)
|
||||
|
@ -1172,7 +1172,7 @@ public class DiagnosticOrder extends DomainResource {
|
|||
}
|
||||
|
||||
/**
|
||||
* @return {@link #identifier} (Identifiers assigned to this order by the order or by the receiver.)
|
||||
* @return {@link #identifier} (Identifiers assigned to this order by the orderer and/or the receiver and/or order fulfiller.)
|
||||
*/
|
||||
// syntactic sugar
|
||||
public Identifier addIdentifier() { //3
|
||||
|
@ -1578,7 +1578,7 @@ public class DiagnosticOrder extends DomainResource {
|
|||
super.listChildren(childrenList);
|
||||
childrenList.add(new Property("subject", "Reference(Patient|Group|Location|Device)", "Who or what the investigation is to be performed on. This is usually a human patient, but diagnostic tests can also be requested on animals, groups of humans or animals, devices such as dialysis machines, or even locations (typically for environmental scans).", 0, java.lang.Integer.MAX_VALUE, subject));
|
||||
childrenList.add(new Property("orderer", "Reference(Practitioner)", "The practitioner that holds legal responsibility for ordering the investigation.", 0, java.lang.Integer.MAX_VALUE, orderer));
|
||||
childrenList.add(new Property("identifier", "Identifier", "Identifiers assigned to this order by the order or by the receiver.", 0, java.lang.Integer.MAX_VALUE, identifier));
|
||||
childrenList.add(new Property("identifier", "Identifier", "Identifiers assigned to this order by the orderer and/or the receiver and/or order fulfiller.", 0, java.lang.Integer.MAX_VALUE, identifier));
|
||||
childrenList.add(new Property("encounter", "Reference(Encounter)", "An encounter that provides additional information about the healthcare context in which this request is made.", 0, java.lang.Integer.MAX_VALUE, encounter));
|
||||
childrenList.add(new Property("clinicalNotes", "string", "An explanation or justification for why this diagnostic investigation is being requested.", 0, java.lang.Integer.MAX_VALUE, clinicalNotes));
|
||||
childrenList.add(new Property("supportingInformation", "Reference(Observation|Condition|DocumentReference)", "Additional clinical information about the patient or specimen that may influence test interpretations.", 0, java.lang.Integer.MAX_VALUE, supportingInformation));
|
||||
|
|
|
@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
|
|||
|
||||
*/
|
||||
|
||||
// Generated on Fri, May 22, 2015 17:15-0400 for FHIR v0.5.0
|
||||
// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
|
||||
|
||||
import java.util.*;
|
||||
|
||||
|
@ -48,31 +48,31 @@ public class DiagnosticReport extends DomainResource {
|
|||
|
||||
public enum DiagnosticReportStatus {
|
||||
/**
|
||||
* The existence of the report is registered, but there is nothing yet available.
|
||||
* The existence of the report is registered, but there is nothing yet available
|
||||
*/
|
||||
REGISTERED,
|
||||
/**
|
||||
* This is a partial (e.g. initial, interim or preliminary) report: data in the report may be incomplete or unverified.
|
||||
* This is a partial (e.g. initial, interim or preliminary) report: data in the report may be incomplete or unverified
|
||||
*/
|
||||
PARTIAL,
|
||||
/**
|
||||
* The report is complete and verified by an authorized person.
|
||||
* The report is complete and verified by an authorized person
|
||||
*/
|
||||
FINAL,
|
||||
/**
|
||||
* The report has been modified subsequent to being Final, and is complete and verified by an authorized person.
|
||||
* The report has been modified subsequent to being Final, and is complete and verified by an authorized person
|
||||
*/
|
||||
CORRECTED,
|
||||
/**
|
||||
* The report has been modified subsequent to being Final, and is complete and verified by an authorized person. New content has been added, but existing content hasn't changed.
|
||||
* The report has been modified subsequent to being Final, and is complete and verified by an authorized person. New content has been added, but existing content hasn't changed
|
||||
*/
|
||||
APPENDED,
|
||||
/**
|
||||
* The report is unavailable because the measurement was not started or not completed (also sometimes called "aborted").
|
||||
* The report is unavailable because the measurement was not started or not completed (also sometimes called "aborted")
|
||||
*/
|
||||
CANCELLED,
|
||||
/**
|
||||
* The report has been withdrawn following previous Final release.
|
||||
* The report has been withdrawn following previous Final release
|
||||
*/
|
||||
ENTEREDINERROR,
|
||||
/**
|
||||
|
@ -112,25 +112,25 @@ public class DiagnosticReport extends DomainResource {
|
|||
}
|
||||
public String getSystem() {
|
||||
switch (this) {
|
||||
case REGISTERED: return "";
|
||||
case PARTIAL: return "";
|
||||
case FINAL: return "";
|
||||
case CORRECTED: return "";
|
||||
case APPENDED: return "";
|
||||
case CANCELLED: return "";
|
||||
case ENTEREDINERROR: return "";
|
||||
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 "?";
|
||||
}
|
||||
}
|
||||
public String getDefinition() {
|
||||
switch (this) {
|
||||
case REGISTERED: return "The existence of the report is registered, but there is nothing yet available.";
|
||||
case PARTIAL: return "This is a partial (e.g. initial, interim or preliminary) report: data in the report may be incomplete or unverified.";
|
||||
case FINAL: return "The report is complete and verified by an authorized person.";
|
||||
case CORRECTED: return "The report has been modified subsequent to being Final, and is complete and verified by an authorized person.";
|
||||
case APPENDED: return "The report has been modified subsequent to being Final, and is complete and verified by an authorized person. New content has been added, but existing content hasn't changed.";
|
||||
case CANCELLED: return "The report is unavailable because the measurement was not started or not completed (also sometimes called 'aborted').";
|
||||
case ENTEREDINERROR: return "The report has been withdrawn following previous Final release.";
|
||||
case REGISTERED: return "The existence of the report is registered, but there is nothing yet available";
|
||||
case PARTIAL: return "This is a partial (e.g. initial, interim or preliminary) report: data in the report may be incomplete or unverified";
|
||||
case FINAL: return "The report is complete and verified by an authorized person";
|
||||
case CORRECTED: return "The report has been modified subsequent to being Final, and is complete and verified by an authorized person";
|
||||
case APPENDED: return "The report has been modified subsequent to being Final, and is complete and verified by an authorized person. New content has been added, but existing content hasn't changed";
|
||||
case CANCELLED: return "The report is unavailable because the measurement was not started or not completed (also sometimes called 'aborted')";
|
||||
case ENTEREDINERROR: return "The report has been withdrawn following previous Final release";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -375,11 +375,11 @@ public class DiagnosticReport extends DomainResource {
|
|||
protected Enumeration<DiagnosticReportStatus> status;
|
||||
|
||||
/**
|
||||
* The date and/or time that this version of the report was released from the source diagnostic service.
|
||||
* The date and time that this version of the report was released from the source diagnostic service.
|
||||
*/
|
||||
@Child(name = "issued", type = {DateTimeType.class}, order=2, min=1, max=1)
|
||||
@Description(shortDefinition="Date this version was released", formalDefinition="The date and/or time that this version of the report was released from the source diagnostic service." )
|
||||
protected DateTimeType issued;
|
||||
@Child(name = "issued", type = {InstantType.class}, order=2, min=1, max=1)
|
||||
@Description(shortDefinition="DateTime this version was released", formalDefinition="The date and time that this version of the report was released from the source diagnostic service." )
|
||||
protected InstantType issued;
|
||||
|
||||
/**
|
||||
* 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.
|
||||
|
@ -444,11 +444,11 @@ public class DiagnosticReport extends DomainResource {
|
|||
protected CodeableConcept serviceCategory;
|
||||
|
||||
/**
|
||||
* The time or time-period the observed values are related to. 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.
|
||||
* 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.
|
||||
*/
|
||||
@Child(name = "diagnostic", type = {DateTimeType.class, Period.class}, order=9, min=1, max=1)
|
||||
@Description(shortDefinition="Physiologically Relevant time/time-period for report", formalDefinition="The time or time-period the observed values are related to. 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." )
|
||||
protected Type diagnostic;
|
||||
@Child(name = "effective", type = {DateTimeType.class, Period.class}, order=9, min=1, max=1)
|
||||
@Description(shortDefinition="Clinically Relevant time/time-period for report", formalDefinition="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." )
|
||||
protected Type effective;
|
||||
|
||||
/**
|
||||
* Details about the specimens on which this diagnostic report is based.
|
||||
|
@ -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<Attachment> presentedForm;
|
||||
|
||||
private static final long serialVersionUID = 140402748L;
|
||||
private static final long serialVersionUID = 486295410L;
|
||||
|
||||
/*
|
||||
* Constructor
|
||||
|
@ -526,14 +526,14 @@ public class DiagnosticReport extends DomainResource {
|
|||
/*
|
||||
* Constructor
|
||||
*/
|
||||
public DiagnosticReport(CodeableConcept name, Enumeration<DiagnosticReportStatus> status, DateTimeType issued, Reference subject, Reference performer, Type diagnostic) {
|
||||
public DiagnosticReport(CodeableConcept name, Enumeration<DiagnosticReportStatus> status, InstantType issued, Reference subject, Reference performer, Type effective) {
|
||||
super();
|
||||
this.name = name;
|
||||
this.status = status;
|
||||
this.issued = issued;
|
||||
this.subject = subject;
|
||||
this.performer = performer;
|
||||
this.diagnostic = diagnostic;
|
||||
this.effective = effective;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -606,14 +606,14 @@ public class DiagnosticReport extends DomainResource {
|
|||
}
|
||||
|
||||
/**
|
||||
* @return {@link #issued} (The date and/or time that this version of the report was released from the source diagnostic service.). This is the underlying object with id, value and extensions. The accessor "getIssued" gives direct access to the value
|
||||
* @return {@link #issued} (The date and time that this version of the report was released from the source diagnostic service.). This is the underlying object with id, value and extensions. The accessor "getIssued" gives direct access to the value
|
||||
*/
|
||||
public DateTimeType getIssuedElement() {
|
||||
public InstantType getIssuedElement() {
|
||||
if (this.issued == null)
|
||||
if (Configuration.errorOnAutoCreate())
|
||||
throw new Error("Attempt to auto-create DiagnosticReport.issued");
|
||||
else if (Configuration.doAutoCreate())
|
||||
this.issued = new DateTimeType(); // bb
|
||||
this.issued = new InstantType(); // bb
|
||||
return this.issued;
|
||||
}
|
||||
|
||||
|
@ -626,26 +626,26 @@ public class DiagnosticReport extends DomainResource {
|
|||
}
|
||||
|
||||
/**
|
||||
* @param value {@link #issued} (The date and/or time that this version of the report was released from the source diagnostic service.). This is the underlying object with id, value and extensions. The accessor "getIssued" gives direct access to the value
|
||||
* @param value {@link #issued} (The date and time that this version of the report was released from the source diagnostic service.). This is the underlying object with id, value and extensions. The accessor "getIssued" gives direct access to the value
|
||||
*/
|
||||
public DiagnosticReport setIssuedElement(DateTimeType value) {
|
||||
public DiagnosticReport setIssuedElement(InstantType value) {
|
||||
this.issued = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return The date and/or time that this version of the report was released from the source diagnostic service.
|
||||
* @return The date and time that this version of the report was released from the source diagnostic service.
|
||||
*/
|
||||
public Date getIssued() {
|
||||
return this.issued == null ? null : this.issued.getValue();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value The date and/or time that this version of the report was released from the source diagnostic service.
|
||||
* @param value The date and time that this version of the report was released from the source diagnostic service.
|
||||
*/
|
||||
public DiagnosticReport setIssued(Date value) {
|
||||
if (this.issued == null)
|
||||
this.issued = new DateTimeType();
|
||||
this.issued = new InstantType();
|
||||
this.issued.setValue(value);
|
||||
return this;
|
||||
}
|
||||
|
@ -898,39 +898,39 @@ public class DiagnosticReport extends DomainResource {
|
|||
}
|
||||
|
||||
/**
|
||||
* @return {@link #diagnostic} (The time or time-period the observed values are related to. 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.)
|
||||
* @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.)
|
||||
*/
|
||||
public Type getDiagnostic() {
|
||||
return this.diagnostic;
|
||||
public Type getEffective() {
|
||||
return this.effective;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {@link #diagnostic} (The time or time-period the observed values are related to. 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.)
|
||||
* @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.)
|
||||
*/
|
||||
public DateTimeType getDiagnosticDateTimeType() throws Exception {
|
||||
if (!(this.diagnostic instanceof DateTimeType))
|
||||
throw new Exception("Type mismatch: the type DateTimeType was expected, but "+this.diagnostic.getClass().getName()+" was encountered");
|
||||
return (DateTimeType) this.diagnostic;
|
||||
public DateTimeType getEffectiveDateTimeType() throws Exception {
|
||||
if (!(this.effective instanceof DateTimeType))
|
||||
throw new Exception("Type mismatch: the type DateTimeType was expected, but "+this.effective.getClass().getName()+" was encountered");
|
||||
return (DateTimeType) this.effective;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {@link #diagnostic} (The time or time-period the observed values are related to. 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.)
|
||||
* @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.)
|
||||
*/
|
||||
public Period getDiagnosticPeriod() throws Exception {
|
||||
if (!(this.diagnostic instanceof Period))
|
||||
throw new Exception("Type mismatch: the type Period was expected, but "+this.diagnostic.getClass().getName()+" was encountered");
|
||||
return (Period) this.diagnostic;
|
||||
public Period getEffectivePeriod() throws Exception {
|
||||
if (!(this.effective instanceof Period))
|
||||
throw new Exception("Type mismatch: the type Period was expected, but "+this.effective.getClass().getName()+" was encountered");
|
||||
return (Period) this.effective;
|
||||
}
|
||||
|
||||
public boolean hasDiagnostic() {
|
||||
return this.diagnostic != null && !this.diagnostic.isEmpty();
|
||||
public boolean hasEffective() {
|
||||
return this.effective != null && !this.effective.isEmpty();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value {@link #diagnostic} (The time or time-period the observed values are related to. 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.)
|
||||
* @param value {@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.)
|
||||
*/
|
||||
public DiagnosticReport setDiagnostic(Type value) {
|
||||
this.diagnostic = value;
|
||||
public DiagnosticReport setEffective(Type value) {
|
||||
this.effective = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
@ -1290,14 +1290,14 @@ public class DiagnosticReport extends DomainResource {
|
|||
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("status", "code", "The status of the diagnostic report as a whole.", 0, java.lang.Integer.MAX_VALUE, status));
|
||||
childrenList.add(new Property("issued", "dateTime", "The date and/or 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("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));
|
||||
childrenList.add(new Property("performer", "Reference(Practitioner|Organization)", "The diagnostic service that is responsible for issuing the report.", 0, java.lang.Integer.MAX_VALUE, performer));
|
||||
childrenList.add(new Property("encounter", "Reference(Encounter)", "The link to the health care event (encounter) when the order was made.", 0, java.lang.Integer.MAX_VALUE, encounter));
|
||||
childrenList.add(new Property("identifier", "Identifier", "The local ID assigned to the report by the order filler, usually by the Information System of the diagnostic service provider.", 0, java.lang.Integer.MAX_VALUE, identifier));
|
||||
childrenList.add(new Property("requestDetail", "Reference(DiagnosticOrder)", "Details concerning a test requested.", 0, java.lang.Integer.MAX_VALUE, requestDetail));
|
||||
childrenList.add(new Property("serviceCategory", "CodeableConcept", "The section of the diagnostic service that performs the examination e.g. biochemistry, hematology, MRI.", 0, java.lang.Integer.MAX_VALUE, serviceCategory));
|
||||
childrenList.add(new Property("diagnostic[x]", "dateTime|Period", "The time or time-period the observed values are related to. 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, diagnostic));
|
||||
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));
|
||||
|
@ -1327,7 +1327,7 @@ public class DiagnosticReport extends DomainResource {
|
|||
dst.requestDetail.add(i.copy());
|
||||
};
|
||||
dst.serviceCategory = serviceCategory == null ? null : serviceCategory.copy();
|
||||
dst.diagnostic = diagnostic == null ? null : diagnostic.copy();
|
||||
dst.effective = effective == null ? null : effective.copy();
|
||||
if (specimen != null) {
|
||||
dst.specimen = new ArrayList<Reference>();
|
||||
for (Reference i : specimen)
|
||||
|
@ -1376,7 +1376,7 @@ public class DiagnosticReport extends DomainResource {
|
|||
return compareDeep(name, o.name, 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(diagnostic, o.diagnostic, true)
|
||||
&& compareDeep(serviceCategory, o.serviceCategory, true) && compareDeep(effective, o.effective, true)
|
||||
&& compareDeep(specimen, o.specimen, true) && compareDeep(result, o.result, true) && compareDeep(imagingStudy, o.imagingStudy, true)
|
||||
&& compareDeep(image, o.image, true) && compareDeep(conclusion, o.conclusion, true) && compareDeep(codedDiagnosis, o.codedDiagnosis, true)
|
||||
&& compareDeep(presentedForm, o.presentedForm, true);
|
||||
|
@ -1398,7 +1398,7 @@ public class DiagnosticReport extends DomainResource {
|
|||
&& (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())
|
||||
&& (diagnostic == null || diagnostic.isEmpty()) && (specimen == null || specimen.isEmpty())
|
||||
&& (effective == null || effective.isEmpty()) && (specimen == null || specimen.isEmpty())
|
||||
&& (result == null || result.isEmpty()) && (imagingStudy == null || imagingStudy.isEmpty())
|
||||
&& (image == null || image.isEmpty()) && (conclusion == null || conclusion.isEmpty()) && (codedDiagnosis == null || codedDiagnosis.isEmpty())
|
||||
&& (presentedForm == null || presentedForm.isEmpty());
|
||||
|
@ -1409,7 +1409,7 @@ public class DiagnosticReport extends DomainResource {
|
|||
return ResourceType.DiagnosticReport;
|
||||
}
|
||||
|
||||
@SearchParamDefinition(name="date", path="DiagnosticReport.diagnostic[x]", description="The clinically relevant time of the report", type="date" )
|
||||
@SearchParamDefinition(name="date", path="DiagnosticReport.effective[x]", description="The clinically relevant time of the report", type="date" )
|
||||
public static final String SP_DATE = "date";
|
||||
@SearchParamDefinition(name="identifier", path="DiagnosticReport.identifier", description="An identifier for the report", type="token" )
|
||||
public static final String SP_IDENTIFIER = "identifier";
|
||||
|
|
|
@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
|
|||
|
||||
*/
|
||||
|
||||
// Generated on Fri, May 22, 2015 17:15-0400 for FHIR v0.5.0
|
||||
// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
|
||||
|
||||
import org.hl7.fhir.instance.model.annotations.DatatypeDef;
|
||||
import org.hl7.fhir.instance.model.annotations.Block;
|
||||
|
|
|
@ -29,11 +29,12 @@ package org.hl7.fhir.instance.model;
|
|||
|
||||
*/
|
||||
|
||||
// Generated on Fri, May 22, 2015 17:15-0400 for FHIR v0.5.0
|
||||
// Generated on Sun, May 31, 2015 15:45-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;
|
||||
|
@ -46,92 +47,6 @@ import org.hl7.fhir.instance.model.api.*;
|
|||
@ResourceDef(name="DocumentManifest", profile="http://hl7.org/fhir/Profile/DocumentManifest")
|
||||
public class DocumentManifest extends DomainResource {
|
||||
|
||||
public enum DocumentReferenceStatus {
|
||||
/**
|
||||
* This is the current reference for this document.
|
||||
*/
|
||||
CURRENT,
|
||||
/**
|
||||
* This reference has been superceded by another reference.
|
||||
*/
|
||||
SUPERCEDED,
|
||||
/**
|
||||
* This reference was created in error.
|
||||
*/
|
||||
ENTEREDINERROR,
|
||||
/**
|
||||
* added to help the parsers
|
||||
*/
|
||||
NULL;
|
||||
public static DocumentReferenceStatus fromCode(String codeString) throws Exception {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("current".equals(codeString))
|
||||
return CURRENT;
|
||||
if ("superceded".equals(codeString))
|
||||
return SUPERCEDED;
|
||||
if ("entered-in-error".equals(codeString))
|
||||
return ENTEREDINERROR;
|
||||
throw new Exception("Unknown DocumentReferenceStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode() {
|
||||
switch (this) {
|
||||
case CURRENT: return "current";
|
||||
case SUPERCEDED: return "superceded";
|
||||
case ENTEREDINERROR: return "entered-in-error";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
public String getSystem() {
|
||||
switch (this) {
|
||||
case CURRENT: return "";
|
||||
case SUPERCEDED: return "";
|
||||
case ENTEREDINERROR: return "";
|
||||
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 ENTEREDINERROR: return "This reference was created in error.";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
public String getDisplay() {
|
||||
switch (this) {
|
||||
case CURRENT: return "Current";
|
||||
case SUPERCEDED: return "Superceded";
|
||||
case ENTEREDINERROR: return "Entered In Error";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public static class DocumentReferenceStatusEnumFactory implements EnumFactory<DocumentReferenceStatus> {
|
||||
public DocumentReferenceStatus fromCode(String codeString) throws IllegalArgumentException {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("current".equals(codeString))
|
||||
return DocumentReferenceStatus.CURRENT;
|
||||
if ("superceded".equals(codeString))
|
||||
return DocumentReferenceStatus.SUPERCEDED;
|
||||
if ("entered-in-error".equals(codeString))
|
||||
return DocumentReferenceStatus.ENTEREDINERROR;
|
||||
throw new IllegalArgumentException("Unknown DocumentReferenceStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(DocumentReferenceStatus code) {
|
||||
if (code == DocumentReferenceStatus.CURRENT)
|
||||
return "current";
|
||||
if (code == DocumentReferenceStatus.SUPERCEDED)
|
||||
return "superceded";
|
||||
if (code == DocumentReferenceStatus.ENTEREDINERROR)
|
||||
return "entered-in-error";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
|
||||
@Block()
|
||||
public static class DocumentManifestContentComponent extends BackboneElement implements IBaseBackboneElement {
|
||||
/**
|
||||
|
|
|
@ -29,11 +29,12 @@ package org.hl7.fhir.instance.model;
|
|||
|
||||
*/
|
||||
|
||||
// Generated on Fri, May 22, 2015 17:15-0400 for FHIR v0.5.0
|
||||
// Generated on Sun, May 31, 2015 15:45-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;
|
||||
|
@ -46,107 +47,21 @@ import org.hl7.fhir.instance.model.api.*;
|
|||
@ResourceDef(name="DocumentReference", profile="http://hl7.org/fhir/Profile/DocumentReference")
|
||||
public class DocumentReference extends DomainResource {
|
||||
|
||||
public enum DocumentReferenceStatus {
|
||||
/**
|
||||
* This is the current reference for this document.
|
||||
*/
|
||||
CURRENT,
|
||||
/**
|
||||
* This reference has been superceded by another reference.
|
||||
*/
|
||||
SUPERCEDED,
|
||||
/**
|
||||
* This reference was created in error.
|
||||
*/
|
||||
ENTEREDINERROR,
|
||||
/**
|
||||
* added to help the parsers
|
||||
*/
|
||||
NULL;
|
||||
public static DocumentReferenceStatus fromCode(String codeString) throws Exception {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("current".equals(codeString))
|
||||
return CURRENT;
|
||||
if ("superceded".equals(codeString))
|
||||
return SUPERCEDED;
|
||||
if ("entered-in-error".equals(codeString))
|
||||
return ENTEREDINERROR;
|
||||
throw new Exception("Unknown DocumentReferenceStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode() {
|
||||
switch (this) {
|
||||
case CURRENT: return "current";
|
||||
case SUPERCEDED: return "superceded";
|
||||
case ENTEREDINERROR: return "entered-in-error";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
public String getSystem() {
|
||||
switch (this) {
|
||||
case CURRENT: return "";
|
||||
case SUPERCEDED: return "";
|
||||
case ENTEREDINERROR: return "";
|
||||
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 ENTEREDINERROR: return "This reference was created in error.";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
public String getDisplay() {
|
||||
switch (this) {
|
||||
case CURRENT: return "Current";
|
||||
case SUPERCEDED: return "Superceded";
|
||||
case ENTEREDINERROR: return "Entered In Error";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public static class DocumentReferenceStatusEnumFactory implements EnumFactory<DocumentReferenceStatus> {
|
||||
public DocumentReferenceStatus fromCode(String codeString) throws IllegalArgumentException {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("current".equals(codeString))
|
||||
return DocumentReferenceStatus.CURRENT;
|
||||
if ("superceded".equals(codeString))
|
||||
return DocumentReferenceStatus.SUPERCEDED;
|
||||
if ("entered-in-error".equals(codeString))
|
||||
return DocumentReferenceStatus.ENTEREDINERROR;
|
||||
throw new IllegalArgumentException("Unknown DocumentReferenceStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(DocumentReferenceStatus code) {
|
||||
if (code == DocumentReferenceStatus.CURRENT)
|
||||
return "current";
|
||||
if (code == DocumentReferenceStatus.SUPERCEDED)
|
||||
return "superceded";
|
||||
if (code == DocumentReferenceStatus.ENTEREDINERROR)
|
||||
return "entered-in-error";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
|
||||
public enum DocumentRelationshipType {
|
||||
/**
|
||||
* This document logically replaces or supercedes the target document.
|
||||
* This document logically replaces or supercedes the target document
|
||||
*/
|
||||
REPLACES,
|
||||
/**
|
||||
* This document was generated by transforming the target document (e.g. format or language conversion).
|
||||
* This document was generated by transforming the target document (e.g. format or language conversion)
|
||||
*/
|
||||
TRANSFORMS,
|
||||
/**
|
||||
* This document is a signature of the target document.
|
||||
* This document is a signature of the target document
|
||||
*/
|
||||
SIGNS,
|
||||
/**
|
||||
* This document adds additional information to the target document.
|
||||
* This document adds additional information to the target document
|
||||
*/
|
||||
APPENDS,
|
||||
/**
|
||||
|
@ -177,19 +92,19 @@ public class DocumentReference extends DomainResource {
|
|||
}
|
||||
public String getSystem() {
|
||||
switch (this) {
|
||||
case REPLACES: return "";
|
||||
case TRANSFORMS: return "";
|
||||
case SIGNS: return "";
|
||||
case APPENDS: return "";
|
||||
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 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.";
|
||||
case REPLACES: return "This document logically replaces or supercedes 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";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -886,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_;
|
||||
|
||||
|
|
|
@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
|
|||
|
||||
*/
|
||||
|
||||
// Generated on Fri, May 22, 2015 17:15-0400 for FHIR v0.5.0
|
||||
// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
|
||||
|
||||
import java.util.*;
|
||||
|
||||
|
|
|
@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
|
|||
|
||||
*/
|
||||
|
||||
// Generated on Fri, May 22, 2015 17:15-0400 for FHIR v0.5.0
|
||||
// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
|
||||
|
||||
import org.hl7.fhir.instance.model.annotations.DatatypeDef;
|
||||
import org.hl7.fhir.instance.model.annotations.Block;
|
||||
|
|
|
@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
|
|||
|
||||
*/
|
||||
|
||||
// Generated on Fri, May 22, 2015 17:15-0400 for FHIR v0.5.0
|
||||
// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
|
||||
|
||||
import java.util.*;
|
||||
|
||||
|
|
|
@ -29,11 +29,12 @@ package org.hl7.fhir.instance.model;
|
|||
|
||||
*/
|
||||
|
||||
// Generated on Fri, May 22, 2015 17:15-0400 for FHIR v0.5.0
|
||||
// Generated on Sun, May 31, 2015 15:45-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.Child;
|
||||
import org.hl7.fhir.instance.model.annotations.Description;
|
||||
import org.hl7.fhir.instance.model.annotations.DatatypeDef;
|
||||
|
@ -47,7 +48,7 @@ public class ElementDefinition extends Type implements ICompositeType {
|
|||
|
||||
public enum PropertyRepresentation {
|
||||
/**
|
||||
* In XML, this property is represented as an attribute not an element.
|
||||
* In XML, this property is represented as an attribute not an element
|
||||
*/
|
||||
XMLATTR,
|
||||
/**
|
||||
|
@ -69,13 +70,13 @@ public class ElementDefinition extends Type implements ICompositeType {
|
|||
}
|
||||
public String getSystem() {
|
||||
switch (this) {
|
||||
case XMLATTR: return "";
|
||||
case XMLATTR: return "http://hl7.org.fhir/property-representation";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
public String getDefinition() {
|
||||
switch (this) {
|
||||
case XMLATTR: return "In XML, this property is represented as an attribute not an element.";
|
||||
case XMLATTR: return "In XML, this property is represented as an attribute not an element";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -103,24 +104,24 @@ public class ElementDefinition extends Type implements ICompositeType {
|
|||
}
|
||||
}
|
||||
|
||||
public enum ResourceSlicingRules {
|
||||
public enum SlicingRules {
|
||||
/**
|
||||
* No additional content is allowed other than that described by the slices in this profile.
|
||||
* No additional content is allowed other than that described by the slices in this profile
|
||||
*/
|
||||
CLOSED,
|
||||
/**
|
||||
* Additional content is allowed anywhere in the list.
|
||||
* Additional content is allowed anywhere in the list
|
||||
*/
|
||||
OPEN,
|
||||
/**
|
||||
* Additional content is allowed, but only at the end of the list. Note that using this requires that the slices be ordered, which makes it hard to share uses. This should only be done where absolutely required.
|
||||
* Additional content is allowed, but only at the end of the list. Note that using this requires that the slices be ordered, which makes it hard to share uses. This should only be done where absolutely required
|
||||
*/
|
||||
OPENATEND,
|
||||
/**
|
||||
* added to help the parsers
|
||||
*/
|
||||
NULL;
|
||||
public static ResourceSlicingRules fromCode(String codeString) throws Exception {
|
||||
public static SlicingRules fromCode(String codeString) throws Exception {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("closed".equals(codeString))
|
||||
|
@ -129,7 +130,7 @@ public class ElementDefinition extends Type implements ICompositeType {
|
|||
return OPEN;
|
||||
if ("openAtEnd".equals(codeString))
|
||||
return OPENATEND;
|
||||
throw new Exception("Unknown ResourceSlicingRules code '"+codeString+"'");
|
||||
throw new Exception("Unknown SlicingRules code '"+codeString+"'");
|
||||
}
|
||||
public String toCode() {
|
||||
switch (this) {
|
||||
|
@ -141,17 +142,17 @@ public class ElementDefinition extends Type implements ICompositeType {
|
|||
}
|
||||
public String getSystem() {
|
||||
switch (this) {
|
||||
case CLOSED: return "";
|
||||
case OPEN: return "";
|
||||
case OPENATEND: return "";
|
||||
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 "?";
|
||||
}
|
||||
}
|
||||
public String getDefinition() {
|
||||
switch (this) {
|
||||
case CLOSED: return "No additional content is allowed other than that described by the slices in this profile.";
|
||||
case OPEN: return "Additional content is allowed anywhere in the list.";
|
||||
case OPENATEND: return "Additional content is allowed, but only at the end of the list. Note that using this requires that the slices be ordered, which makes it hard to share uses. This should only be done where absolutely required.";
|
||||
case CLOSED: return "No additional content is allowed other than that described by the slices in this profile";
|
||||
case OPEN: return "Additional content is allowed anywhere in the list";
|
||||
case OPENATEND: return "Additional content is allowed, but only at the end of the list. Note that using this requires that the slices be ordered, which makes it hard to share uses. This should only be done where absolutely required";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -165,48 +166,48 @@ public class ElementDefinition extends Type implements ICompositeType {
|
|||
}
|
||||
}
|
||||
|
||||
public static class ResourceSlicingRulesEnumFactory implements EnumFactory<ResourceSlicingRules> {
|
||||
public ResourceSlicingRules fromCode(String codeString) throws IllegalArgumentException {
|
||||
public static class SlicingRulesEnumFactory implements EnumFactory<SlicingRules> {
|
||||
public SlicingRules fromCode(String codeString) throws IllegalArgumentException {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("closed".equals(codeString))
|
||||
return ResourceSlicingRules.CLOSED;
|
||||
return SlicingRules.CLOSED;
|
||||
if ("open".equals(codeString))
|
||||
return ResourceSlicingRules.OPEN;
|
||||
return SlicingRules.OPEN;
|
||||
if ("openAtEnd".equals(codeString))
|
||||
return ResourceSlicingRules.OPENATEND;
|
||||
throw new IllegalArgumentException("Unknown ResourceSlicingRules code '"+codeString+"'");
|
||||
return SlicingRules.OPENATEND;
|
||||
throw new IllegalArgumentException("Unknown SlicingRules code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(ResourceSlicingRules code) {
|
||||
if (code == ResourceSlicingRules.CLOSED)
|
||||
public String toCode(SlicingRules code) {
|
||||
if (code == SlicingRules.CLOSED)
|
||||
return "closed";
|
||||
if (code == ResourceSlicingRules.OPEN)
|
||||
if (code == SlicingRules.OPEN)
|
||||
return "open";
|
||||
if (code == ResourceSlicingRules.OPENATEND)
|
||||
if (code == SlicingRules.OPENATEND)
|
||||
return "openAtEnd";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
|
||||
public enum ResourceAggregationMode {
|
||||
public enum AggregationMode {
|
||||
/**
|
||||
* The reference is a local reference to a contained resource.
|
||||
* The reference is a local reference to a contained resource
|
||||
*/
|
||||
CONTAINED,
|
||||
/**
|
||||
* The reference to a resource that has to be resolved externally to the resource that includes the reference.
|
||||
* The reference to a resource that has to be resolved externally to the resource that includes the reference
|
||||
*/
|
||||
REFERENCED,
|
||||
/**
|
||||
* The resource the reference points to will be found in the same bundle as the resource that includes the reference.
|
||||
* The resource the reference points to will be found in the same bundle as the resource that includes the reference
|
||||
*/
|
||||
BUNDLED,
|
||||
/**
|
||||
* added to help the parsers
|
||||
*/
|
||||
NULL;
|
||||
public static ResourceAggregationMode fromCode(String codeString) throws Exception {
|
||||
public static AggregationMode fromCode(String codeString) throws Exception {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("contained".equals(codeString))
|
||||
|
@ -215,7 +216,7 @@ public class ElementDefinition extends Type implements ICompositeType {
|
|||
return REFERENCED;
|
||||
if ("bundled".equals(codeString))
|
||||
return BUNDLED;
|
||||
throw new Exception("Unknown ResourceAggregationMode code '"+codeString+"'");
|
||||
throw new Exception("Unknown AggregationMode code '"+codeString+"'");
|
||||
}
|
||||
public String toCode() {
|
||||
switch (this) {
|
||||
|
@ -227,17 +228,17 @@ public class ElementDefinition extends Type implements ICompositeType {
|
|||
}
|
||||
public String getSystem() {
|
||||
switch (this) {
|
||||
case CONTAINED: return "";
|
||||
case REFERENCED: return "";
|
||||
case BUNDLED: return "";
|
||||
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 "?";
|
||||
}
|
||||
}
|
||||
public String getDefinition() {
|
||||
switch (this) {
|
||||
case CONTAINED: return "The reference is a local reference to a contained resource.";
|
||||
case REFERENCED: return "The reference to a resource that has to be resolved externally to the resource that includes the reference.";
|
||||
case BUNDLED: return "The resource the reference points to will be found in the same bundle as the resource that includes the reference.";
|
||||
case CONTAINED: return "The reference is a local reference to a contained resource";
|
||||
case REFERENCED: return "The reference to a resource that has to be resolved externally to the resource that includes the reference";
|
||||
case BUNDLED: return "The resource the reference points to will be found in the same bundle as the resource that includes the reference";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -251,25 +252,25 @@ public class ElementDefinition extends Type implements ICompositeType {
|
|||
}
|
||||
}
|
||||
|
||||
public static class ResourceAggregationModeEnumFactory implements EnumFactory<ResourceAggregationMode> {
|
||||
public ResourceAggregationMode fromCode(String codeString) throws IllegalArgumentException {
|
||||
public static class AggregationModeEnumFactory implements EnumFactory<AggregationMode> {
|
||||
public AggregationMode fromCode(String codeString) throws IllegalArgumentException {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("contained".equals(codeString))
|
||||
return ResourceAggregationMode.CONTAINED;
|
||||
return AggregationMode.CONTAINED;
|
||||
if ("referenced".equals(codeString))
|
||||
return ResourceAggregationMode.REFERENCED;
|
||||
return AggregationMode.REFERENCED;
|
||||
if ("bundled".equals(codeString))
|
||||
return ResourceAggregationMode.BUNDLED;
|
||||
throw new IllegalArgumentException("Unknown ResourceAggregationMode code '"+codeString+"'");
|
||||
return AggregationMode.BUNDLED;
|
||||
throw new IllegalArgumentException("Unknown AggregationMode code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(ResourceAggregationMode code) {
|
||||
if (code == ResourceAggregationMode.CONTAINED)
|
||||
public String toCode(AggregationMode code) {
|
||||
if (code == AggregationMode.CONTAINED)
|
||||
return "contained";
|
||||
if (code == ResourceAggregationMode.REFERENCED)
|
||||
if (code == AggregationMode.REFERENCED)
|
||||
return "referenced";
|
||||
if (code == ResourceAggregationMode.BUNDLED)
|
||||
if (code == AggregationMode.BUNDLED)
|
||||
return "bundled";
|
||||
return "?";
|
||||
}
|
||||
|
@ -277,7 +278,7 @@ public class ElementDefinition extends Type implements ICompositeType {
|
|||
|
||||
public enum ConstraintSeverity {
|
||||
/**
|
||||
* If the constraint is violated, the resource is not conformant.
|
||||
* If the constraint is violated, the resource is not conformant
|
||||
*/
|
||||
ERROR,
|
||||
/**
|
||||
|
@ -306,14 +307,14 @@ public class ElementDefinition extends Type implements ICompositeType {
|
|||
}
|
||||
public String getSystem() {
|
||||
switch (this) {
|
||||
case ERROR: return "";
|
||||
case WARNING: return "";
|
||||
case ERROR: return "http://hl7.org.fhir/constraint-severity";
|
||||
case WARNING: return "http://hl7.org.fhir/constraint-severity";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
public String getDefinition() {
|
||||
switch (this) {
|
||||
case ERROR: return "If the constraint is violated, the resource is not conformant.";
|
||||
case ERROR: return "If the constraint is violated, the resource is not conformant";
|
||||
case WARNING: return "If the constraint is violated, the resource is conformant, but it is not necessarily following best practice.";
|
||||
default: return "?";
|
||||
}
|
||||
|
@ -349,7 +350,7 @@ 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.
|
||||
* To be conformant, instances of this element SHALL include a code from the specified value set
|
||||
*/
|
||||
REQUIRED,
|
||||
/**
|
||||
|
@ -357,11 +358,11 @@ public class ElementDefinition extends Type implements ICompositeType {
|
|||
*/
|
||||
EXTENSIBLE,
|
||||
/**
|
||||
* Instances are encouraged to draw from the specified codes for interoperability purposes but are not required to do so to be considered conformant.
|
||||
* 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.
|
||||
* 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,
|
||||
/**
|
||||
|
@ -392,19 +393,19 @@ public class ElementDefinition extends Type implements ICompositeType {
|
|||
}
|
||||
public String getSystem() {
|
||||
switch (this) {
|
||||
case REQUIRED: return "";
|
||||
case EXTENSIBLE: return "";
|
||||
case PREFERRED: return "";
|
||||
case EXAMPLE: return "";
|
||||
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 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.";
|
||||
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 "?";
|
||||
}
|
||||
}
|
||||
|
@ -475,9 +476,9 @@ public class ElementDefinition extends Type implements ICompositeType {
|
|||
*/
|
||||
@Child(name = "rules", type = {CodeType.class}, order=4, min=1, max=1)
|
||||
@Description(shortDefinition="closed | open | openAtEnd", formalDefinition="Whether additional slices are allowed or not. When the slices are ordered, profile authors can also say that additional slices are only allowed at the end." )
|
||||
protected Enumeration<ResourceSlicingRules> rules;
|
||||
protected Enumeration<SlicingRules> rules;
|
||||
|
||||
private static final long serialVersionUID = -321298491L;
|
||||
private static final long serialVersionUID = 233544215L;
|
||||
|
||||
/*
|
||||
* Constructor
|
||||
|
@ -489,7 +490,7 @@ public class ElementDefinition extends Type implements ICompositeType {
|
|||
/*
|
||||
* Constructor
|
||||
*/
|
||||
public ElementDefinitionSlicingComponent(Enumeration<ResourceSlicingRules> rules) {
|
||||
public ElementDefinitionSlicingComponent(Enumeration<SlicingRules> rules) {
|
||||
super();
|
||||
this.rules = rules;
|
||||
}
|
||||
|
@ -645,12 +646,12 @@ public class ElementDefinition extends Type implements ICompositeType {
|
|||
/**
|
||||
* @return {@link #rules} (Whether additional slices are allowed or not. When the slices are ordered, profile authors can also say that additional slices are only allowed at the end.). This is the underlying object with id, value and extensions. The accessor "getRules" gives direct access to the value
|
||||
*/
|
||||
public Enumeration<ResourceSlicingRules> getRulesElement() {
|
||||
public Enumeration<SlicingRules> getRulesElement() {
|
||||
if (this.rules == null)
|
||||
if (Configuration.errorOnAutoCreate())
|
||||
throw new Error("Attempt to auto-create ElementDefinitionSlicingComponent.rules");
|
||||
else if (Configuration.doAutoCreate())
|
||||
this.rules = new Enumeration<ResourceSlicingRules>(new ResourceSlicingRulesEnumFactory()); // bb
|
||||
this.rules = new Enumeration<SlicingRules>(new SlicingRulesEnumFactory()); // bb
|
||||
return this.rules;
|
||||
}
|
||||
|
||||
|
@ -665,7 +666,7 @@ public class ElementDefinition extends Type implements ICompositeType {
|
|||
/**
|
||||
* @param value {@link #rules} (Whether additional slices are allowed or not. When the slices are ordered, profile authors can also say that additional slices are only allowed at the end.). This is the underlying object with id, value and extensions. The accessor "getRules" gives direct access to the value
|
||||
*/
|
||||
public ElementDefinitionSlicingComponent setRulesElement(Enumeration<ResourceSlicingRules> value) {
|
||||
public ElementDefinitionSlicingComponent setRulesElement(Enumeration<SlicingRules> value) {
|
||||
this.rules = value;
|
||||
return this;
|
||||
}
|
||||
|
@ -673,16 +674,16 @@ public class ElementDefinition extends Type implements ICompositeType {
|
|||
/**
|
||||
* @return Whether additional slices are allowed or not. When the slices are ordered, profile authors can also say that additional slices are only allowed at the end.
|
||||
*/
|
||||
public ResourceSlicingRules getRules() {
|
||||
public SlicingRules getRules() {
|
||||
return this.rules == null ? null : this.rules.getValue();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value Whether additional slices are allowed or not. When the slices are ordered, profile authors can also say that additional slices are only allowed at the end.
|
||||
*/
|
||||
public ElementDefinitionSlicingComponent setRules(ResourceSlicingRules value) {
|
||||
public ElementDefinitionSlicingComponent setRules(SlicingRules value) {
|
||||
if (this.rules == null)
|
||||
this.rules = new Enumeration<ResourceSlicingRules>(new ResourceSlicingRulesEnumFactory());
|
||||
this.rules = new Enumeration<SlicingRules>(new SlicingRulesEnumFactory());
|
||||
this.rules.setValue(value);
|
||||
return this;
|
||||
}
|
||||
|
@ -759,9 +760,9 @@ public class ElementDefinition extends Type implements ICompositeType {
|
|||
*/
|
||||
@Child(name = "aggregation", type = {CodeType.class}, order=3, min=0, max=Child.MAX_UNLIMITED)
|
||||
@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<Enumeration<ResourceAggregationMode>> aggregation;
|
||||
protected List<Enumeration<AggregationMode>> aggregation;
|
||||
|
||||
private static final long serialVersionUID = -1527133887L;
|
||||
private static final long serialVersionUID = -345007341L;
|
||||
|
||||
/*
|
||||
* Constructor
|
||||
|
@ -875,16 +876,16 @@ public class ElementDefinition extends Type implements ICompositeType {
|
|||
/**
|
||||
* @return {@link #aggregation} (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.)
|
||||
*/
|
||||
public List<Enumeration<ResourceAggregationMode>> getAggregation() {
|
||||
public List<Enumeration<AggregationMode>> getAggregation() {
|
||||
if (this.aggregation == null)
|
||||
this.aggregation = new ArrayList<Enumeration<ResourceAggregationMode>>();
|
||||
this.aggregation = new ArrayList<Enumeration<AggregationMode>>();
|
||||
return this.aggregation;
|
||||
}
|
||||
|
||||
public boolean hasAggregation() {
|
||||
if (this.aggregation == null)
|
||||
return false;
|
||||
for (Enumeration<ResourceAggregationMode> item : this.aggregation)
|
||||
for (Enumeration<AggregationMode> item : this.aggregation)
|
||||
if (!item.isEmpty())
|
||||
return true;
|
||||
return false;
|
||||
|
@ -894,10 +895,10 @@ public class ElementDefinition extends Type implements ICompositeType {
|
|||
* @return {@link #aggregation} (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.)
|
||||
*/
|
||||
// syntactic sugar
|
||||
public Enumeration<ResourceAggregationMode> addAggregationElement() {//2
|
||||
Enumeration<ResourceAggregationMode> t = new Enumeration<ResourceAggregationMode>(new ResourceAggregationModeEnumFactory());
|
||||
public Enumeration<AggregationMode> addAggregationElement() {//2
|
||||
Enumeration<AggregationMode> t = new Enumeration<AggregationMode>(new AggregationModeEnumFactory());
|
||||
if (this.aggregation == null)
|
||||
this.aggregation = new ArrayList<Enumeration<ResourceAggregationMode>>();
|
||||
this.aggregation = new ArrayList<Enumeration<AggregationMode>>();
|
||||
this.aggregation.add(t);
|
||||
return t;
|
||||
}
|
||||
|
@ -905,11 +906,11 @@ public class ElementDefinition extends Type implements ICompositeType {
|
|||
/**
|
||||
* @param value {@link #aggregation} (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.)
|
||||
*/
|
||||
public TypeRefComponent addAggregation(ResourceAggregationMode value) { //1
|
||||
Enumeration<ResourceAggregationMode> t = new Enumeration<ResourceAggregationMode>(new ResourceAggregationModeEnumFactory());
|
||||
public TypeRefComponent addAggregation(AggregationMode value) { //1
|
||||
Enumeration<AggregationMode> t = new Enumeration<AggregationMode>(new AggregationModeEnumFactory());
|
||||
t.setValue(value);
|
||||
if (this.aggregation == null)
|
||||
this.aggregation = new ArrayList<Enumeration<ResourceAggregationMode>>();
|
||||
this.aggregation = new ArrayList<Enumeration<AggregationMode>>();
|
||||
this.aggregation.add(t);
|
||||
return this;
|
||||
}
|
||||
|
@ -917,10 +918,10 @@ public class ElementDefinition extends Type implements ICompositeType {
|
|||
/**
|
||||
* @param value {@link #aggregation} (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.)
|
||||
*/
|
||||
public boolean hasAggregation(ResourceAggregationMode value) {
|
||||
public boolean hasAggregation(AggregationMode value) {
|
||||
if (this.aggregation == null)
|
||||
return false;
|
||||
for (Enumeration<ResourceAggregationMode> v : this.aggregation)
|
||||
for (Enumeration<AggregationMode> v : this.aggregation)
|
||||
if (v.equals(value)) // code
|
||||
return true;
|
||||
return false;
|
||||
|
@ -939,8 +940,8 @@ public class ElementDefinition extends Type implements ICompositeType {
|
|||
dst.code = code == null ? null : code.copy();
|
||||
dst.profile = profile == null ? null : profile.copy();
|
||||
if (aggregation != null) {
|
||||
dst.aggregation = new ArrayList<Enumeration<ResourceAggregationMode>>();
|
||||
for (Enumeration<ResourceAggregationMode> i : aggregation)
|
||||
dst.aggregation = new ArrayList<Enumeration<AggregationMode>>();
|
||||
for (Enumeration<AggregationMode> i : aggregation)
|
||||
dst.aggregation.add(i.copy());
|
||||
};
|
||||
return dst;
|
||||
|
@ -1853,7 +1854,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_;
|
||||
|
||||
|
|
|
@ -29,10 +29,11 @@ package org.hl7.fhir.instance.model;
|
|||
|
||||
*/
|
||||
|
||||
// Generated on Fri, May 22, 2015 17:15-0400 for FHIR v0.5.0
|
||||
// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
|
||||
|
||||
import java.util.*;
|
||||
|
||||
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;
|
||||
|
|
|
@ -29,11 +29,12 @@ package org.hl7.fhir.instance.model;
|
|||
|
||||
*/
|
||||
|
||||
// Generated on Fri, May 22, 2015 17:15-0400 for FHIR v0.5.0
|
||||
// Generated on Sun, May 31, 2015 15:45-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;
|
||||
|
@ -46,78 +47,6 @@ import org.hl7.fhir.instance.model.api.*;
|
|||
@ResourceDef(name="EligibilityResponse", profile="http://hl7.org/fhir/Profile/EligibilityResponse")
|
||||
public class EligibilityResponse extends DomainResource {
|
||||
|
||||
public enum RSLink {
|
||||
/**
|
||||
* The processing completed without errors.
|
||||
*/
|
||||
COMPLETE,
|
||||
/**
|
||||
* The processing identified with errors.
|
||||
*/
|
||||
ERROR,
|
||||
/**
|
||||
* added to help the parsers
|
||||
*/
|
||||
NULL;
|
||||
public static RSLink fromCode(String codeString) throws Exception {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("complete".equals(codeString))
|
||||
return COMPLETE;
|
||||
if ("error".equals(codeString))
|
||||
return ERROR;
|
||||
throw new Exception("Unknown RSLink code '"+codeString+"'");
|
||||
}
|
||||
public String toCode() {
|
||||
switch (this) {
|
||||
case COMPLETE: return "complete";
|
||||
case ERROR: return "error";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
public String getSystem() {
|
||||
switch (this) {
|
||||
case COMPLETE: return "";
|
||||
case ERROR: return "";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
public String getDefinition() {
|
||||
switch (this) {
|
||||
case COMPLETE: return "The processing completed without errors.";
|
||||
case ERROR: return "The processing identified with errors.";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
public String getDisplay() {
|
||||
switch (this) {
|
||||
case COMPLETE: return "Complete";
|
||||
case ERROR: return "Error";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public static class RSLinkEnumFactory implements EnumFactory<RSLink> {
|
||||
public RSLink fromCode(String codeString) throws IllegalArgumentException {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("complete".equals(codeString))
|
||||
return RSLink.COMPLETE;
|
||||
if ("error".equals(codeString))
|
||||
return RSLink.ERROR;
|
||||
throw new IllegalArgumentException("Unknown RSLink code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(RSLink code) {
|
||||
if (code == RSLink.COMPLETE)
|
||||
return "complete";
|
||||
if (code == RSLink.ERROR)
|
||||
return "error";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* The Response Business Identifier.
|
||||
*/
|
||||
|
@ -142,7 +71,7 @@ public class EligibilityResponse extends DomainResource {
|
|||
*/
|
||||
@Child(name = "outcome", type = {CodeType.class}, order=2, min=0, max=1)
|
||||
@Description(shortDefinition="complete | error", formalDefinition="Transaction status: error, complete." )
|
||||
protected Enumeration<RSLink> outcome;
|
||||
protected Enumeration<RemittanceOutcome> outcome;
|
||||
|
||||
/**
|
||||
* A description of the status of the adjudication.
|
||||
|
@ -208,7 +137,7 @@ public class EligibilityResponse extends DomainResource {
|
|||
*/
|
||||
protected Organization requestOrganizationTarget;
|
||||
|
||||
private static final long serialVersionUID = 241710852L;
|
||||
private static final long serialVersionUID = -299931023L;
|
||||
|
||||
/*
|
||||
* Constructor
|
||||
|
@ -304,12 +233,12 @@ public class EligibilityResponse extends DomainResource {
|
|||
/**
|
||||
* @return {@link #outcome} (Transaction status: error, complete.). This is the underlying object with id, value and extensions. The accessor "getOutcome" gives direct access to the value
|
||||
*/
|
||||
public Enumeration<RSLink> getOutcomeElement() {
|
||||
public Enumeration<RemittanceOutcome> getOutcomeElement() {
|
||||
if (this.outcome == null)
|
||||
if (Configuration.errorOnAutoCreate())
|
||||
throw new Error("Attempt to auto-create EligibilityResponse.outcome");
|
||||
else if (Configuration.doAutoCreate())
|
||||
this.outcome = new Enumeration<RSLink>(new RSLinkEnumFactory()); // bb
|
||||
this.outcome = new Enumeration<RemittanceOutcome>(new RemittanceOutcomeEnumFactory()); // bb
|
||||
return this.outcome;
|
||||
}
|
||||
|
||||
|
@ -324,7 +253,7 @@ public class EligibilityResponse extends DomainResource {
|
|||
/**
|
||||
* @param value {@link #outcome} (Transaction status: error, complete.). This is the underlying object with id, value and extensions. The accessor "getOutcome" gives direct access to the value
|
||||
*/
|
||||
public EligibilityResponse setOutcomeElement(Enumeration<RSLink> value) {
|
||||
public EligibilityResponse setOutcomeElement(Enumeration<RemittanceOutcome> value) {
|
||||
this.outcome = value;
|
||||
return this;
|
||||
}
|
||||
|
@ -332,19 +261,19 @@ public class EligibilityResponse extends DomainResource {
|
|||
/**
|
||||
* @return Transaction status: error, complete.
|
||||
*/
|
||||
public RSLink getOutcome() {
|
||||
public RemittanceOutcome getOutcome() {
|
||||
return this.outcome == null ? null : this.outcome.getValue();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value Transaction status: error, complete.
|
||||
*/
|
||||
public EligibilityResponse setOutcome(RSLink value) {
|
||||
public EligibilityResponse setOutcome(RemittanceOutcome value) {
|
||||
if (value == null)
|
||||
this.outcome = null;
|
||||
else {
|
||||
if (this.outcome == null)
|
||||
this.outcome = new Enumeration<RSLink>(new RSLinkEnumFactory());
|
||||
this.outcome = new Enumeration<RemittanceOutcome>(new RemittanceOutcomeEnumFactory());
|
||||
this.outcome.setValue(value);
|
||||
}
|
||||
return this;
|
||||
|
|
|
@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
|
|||
|
||||
*/
|
||||
|
||||
// Generated on Fri, May 22, 2015 17:15-0400 for FHIR v0.5.0
|
||||
// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
|
||||
|
||||
import java.util.*;
|
||||
|
||||
|
@ -48,27 +48,27 @@ public class Encounter extends DomainResource {
|
|||
|
||||
public enum EncounterState {
|
||||
/**
|
||||
* The Encounter has not yet started.
|
||||
* The Encounter has not yet started
|
||||
*/
|
||||
PLANNED,
|
||||
/**
|
||||
* The Patient is present for the encounter, however is not currently meeting with a practitioner.
|
||||
* The Patient is present for the encounter, however is not currently meeting with a practitioner
|
||||
*/
|
||||
ARRIVED,
|
||||
/**
|
||||
* The Encounter has begun and the patient is present / the practitioner and the patient are meeting.
|
||||
* The Encounter has begun and the patient is present / the practitioner and the patient are meeting
|
||||
*/
|
||||
INPROGRESS,
|
||||
/**
|
||||
* The Encounter has begun, but the patient is temporarily on leave.
|
||||
* The Encounter has begun, but the patient is temporarily on leave
|
||||
*/
|
||||
ONLEAVE,
|
||||
/**
|
||||
* The Encounter has ended.
|
||||
* The Encounter has ended
|
||||
*/
|
||||
FINISHED,
|
||||
/**
|
||||
* The Encounter has ended before it has begun.
|
||||
* The Encounter has ended before it has begun
|
||||
*/
|
||||
CANCELLED,
|
||||
/**
|
||||
|
@ -105,23 +105,23 @@ public class Encounter extends DomainResource {
|
|||
}
|
||||
public String getSystem() {
|
||||
switch (this) {
|
||||
case PLANNED: return "";
|
||||
case ARRIVED: return "";
|
||||
case INPROGRESS: return "";
|
||||
case ONLEAVE: return "";
|
||||
case FINISHED: return "";
|
||||
case CANCELLED: return "";
|
||||
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 "?";
|
||||
}
|
||||
}
|
||||
public String getDefinition() {
|
||||
switch (this) {
|
||||
case PLANNED: return "The Encounter has not yet started.";
|
||||
case ARRIVED: return "The Patient is present for the encounter, however is not currently meeting with a practitioner.";
|
||||
case INPROGRESS: return "The Encounter has begun and the patient is present / the practitioner and the patient are meeting.";
|
||||
case ONLEAVE: return "The Encounter has begun, but the patient is temporarily on leave.";
|
||||
case FINISHED: return "The Encounter has ended.";
|
||||
case CANCELLED: return "The Encounter has ended before it has begun.";
|
||||
case PLANNED: return "The Encounter has not yet started";
|
||||
case ARRIVED: return "The Patient is present for the encounter, however is not currently meeting with a practitioner";
|
||||
case INPROGRESS: return "The Encounter has begun and the patient is present / the practitioner and the patient are meeting";
|
||||
case ONLEAVE: return "The Encounter has begun, but the patient is temporarily on leave";
|
||||
case FINISHED: return "The Encounter has ended";
|
||||
case CANCELLED: return "The Encounter has ended before it has begun";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -176,39 +176,39 @@ public class Encounter extends DomainResource {
|
|||
|
||||
public enum EncounterClass {
|
||||
/**
|
||||
* An encounter during which the patient is hospitalized and stays overnight.
|
||||
* An encounter during which the patient is hospitalized and stays overnight
|
||||
*/
|
||||
INPATIENT,
|
||||
/**
|
||||
* An encounter during which the patient is not hospitalized overnight.
|
||||
* An encounter during which the patient is not hospitalized overnight
|
||||
*/
|
||||
OUTPATIENT,
|
||||
/**
|
||||
* An encounter where the patient visits the practitioner in his/her office, e.g. a G.P. visit.
|
||||
* An encounter where the patient visits the practitioner in his/her office, e.g. a G.P. visit
|
||||
*/
|
||||
AMBULATORY,
|
||||
/**
|
||||
* An encounter where the patient needs urgent care.
|
||||
* An encounter where the patient needs urgent care
|
||||
*/
|
||||
EMERGENCY,
|
||||
/**
|
||||
* An encounter where the practitioner visits the patient at his/her home.
|
||||
* An encounter where the practitioner visits the patient at his/her home
|
||||
*/
|
||||
HOME,
|
||||
/**
|
||||
* An encounter taking place outside the regular environment for giving care.
|
||||
* An encounter taking place outside the regular environment for giving care
|
||||
*/
|
||||
FIELD,
|
||||
/**
|
||||
* An encounter where the patient needs more prolonged treatment or investigations than outpatients, but who do not need to stay in the hospital overnight.
|
||||
* An encounter where the patient needs more prolonged treatment or investigations than outpatients, but who do not need to stay in the hospital overnight
|
||||
*/
|
||||
DAYTIME,
|
||||
/**
|
||||
* An encounter that takes place where the patient and practitioner do not physically meet but use electronic means for contact.
|
||||
* An encounter that takes place where the patient and practitioner do not physically meet but use electronic means for contact
|
||||
*/
|
||||
VIRTUAL,
|
||||
/**
|
||||
* Any other encounter type that is not described by one of the other values. Where this is used it is expected that an implementer will include an extension value to define what the actual other type is.
|
||||
* Any other encounter type that is not described by one of the other values. Where this is used it is expected that an implementer will include an extension value to define what the actual other type is
|
||||
*/
|
||||
OTHER,
|
||||
/**
|
||||
|
@ -254,29 +254,29 @@ public class Encounter extends DomainResource {
|
|||
}
|
||||
public String getSystem() {
|
||||
switch (this) {
|
||||
case INPATIENT: return "";
|
||||
case OUTPATIENT: return "";
|
||||
case AMBULATORY: return "";
|
||||
case EMERGENCY: return "";
|
||||
case HOME: return "";
|
||||
case FIELD: return "";
|
||||
case DAYTIME: return "";
|
||||
case VIRTUAL: return "";
|
||||
case OTHER: return "";
|
||||
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 "?";
|
||||
}
|
||||
}
|
||||
public String getDefinition() {
|
||||
switch (this) {
|
||||
case INPATIENT: return "An encounter during which the patient is hospitalized and stays overnight.";
|
||||
case OUTPATIENT: return "An encounter during which the patient is not hospitalized overnight.";
|
||||
case AMBULATORY: return "An encounter where the patient visits the practitioner in his/her office, e.g. a G.P. visit.";
|
||||
case EMERGENCY: return "An encounter where the patient needs urgent care.";
|
||||
case HOME: return "An encounter where the practitioner visits the patient at his/her home.";
|
||||
case FIELD: return "An encounter taking place outside the regular environment for giving care.";
|
||||
case DAYTIME: return "An encounter where the patient needs more prolonged treatment or investigations than outpatients, but who do not need to stay in the hospital overnight.";
|
||||
case VIRTUAL: return "An encounter that takes place where the patient and practitioner do not physically meet but use electronic means for contact.";
|
||||
case OTHER: return "Any other encounter type that is not described by one of the other values. Where this is used it is expected that an implementer will include an extension value to define what the actual other type is.";
|
||||
case INPATIENT: return "An encounter during which the patient is hospitalized and stays overnight";
|
||||
case OUTPATIENT: return "An encounter during which the patient is not hospitalized overnight";
|
||||
case AMBULATORY: return "An encounter where the patient visits the practitioner in his/her office, e.g. a G.P. visit";
|
||||
case EMERGENCY: return "An encounter where the patient needs urgent care";
|
||||
case HOME: return "An encounter where the practitioner visits the patient at his/her home";
|
||||
case FIELD: return "An encounter taking place outside the regular environment for giving care";
|
||||
case DAYTIME: return "An encounter where the patient needs more prolonged treatment or investigations than outpatients, but who do not need to stay in the hospital overnight";
|
||||
case VIRTUAL: return "An encounter that takes place where the patient and practitioner do not physically meet but use electronic means for contact";
|
||||
case OTHER: return "Any other encounter type that is not described by one of the other values. Where this is used it is expected that an implementer will include an extension value to define what the actual other type is";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -346,15 +346,15 @@ public class Encounter extends DomainResource {
|
|||
|
||||
public enum EncounterLocationStatus {
|
||||
/**
|
||||
* The patient is planned to be moved to this location at some point in the future.
|
||||
* The patient is planned to be moved to this location at some point in the future
|
||||
*/
|
||||
PLANNED,
|
||||
/**
|
||||
* The patient is currently at this location, or was between the period specified.
|
||||
* The patient is currently at this location, or was between the period specified
|
||||
*/
|
||||
PRESENT,
|
||||
/**
|
||||
* This location is held empty for this patient.
|
||||
* This location is held empty for this patient
|
||||
*/
|
||||
RESERVED,
|
||||
/**
|
||||
|
@ -382,17 +382,17 @@ public class Encounter extends DomainResource {
|
|||
}
|
||||
public String getSystem() {
|
||||
switch (this) {
|
||||
case PLANNED: return "";
|
||||
case PRESENT: return "";
|
||||
case RESERVED: return "";
|
||||
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 "?";
|
||||
}
|
||||
}
|
||||
public String getDefinition() {
|
||||
switch (this) {
|
||||
case PLANNED: return "The patient is planned to be moved to this location at some point in the future.";
|
||||
case PRESENT: return "The patient is currently at this location, or was between the period specified.";
|
||||
case RESERVED: return "This location is held empty for this patient.";
|
||||
case PLANNED: return "The patient is planned to be moved to this location at some point in the future";
|
||||
case PRESENT: return "The patient is currently at this location, or was between the period specified";
|
||||
case RESERVED: return "This location is held empty for this patient";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -1510,7 +1510,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<EncounterClass> class_;
|
||||
|
||||
|
|
|
@ -29,10 +29,11 @@ package org.hl7.fhir.instance.model;
|
|||
|
||||
*/
|
||||
|
||||
// Generated on Fri, May 22, 2015 17:15-0400 for FHIR v0.5.0
|
||||
// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
|
||||
|
||||
import java.util.*;
|
||||
|
||||
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;
|
||||
|
|
|
@ -29,11 +29,12 @@ package org.hl7.fhir.instance.model;
|
|||
|
||||
*/
|
||||
|
||||
// Generated on Fri, May 22, 2015 17:15-0400 for FHIR v0.5.0
|
||||
// Generated on Sun, May 31, 2015 15:45-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;
|
||||
|
@ -46,78 +47,6 @@ import org.hl7.fhir.instance.model.api.*;
|
|||
@ResourceDef(name="EnrollmentResponse", profile="http://hl7.org/fhir/Profile/EnrollmentResponse")
|
||||
public class EnrollmentResponse extends DomainResource {
|
||||
|
||||
public enum RSLink {
|
||||
/**
|
||||
* The processing completed without errors.
|
||||
*/
|
||||
COMPLETE,
|
||||
/**
|
||||
* The processing identified with errors.
|
||||
*/
|
||||
ERROR,
|
||||
/**
|
||||
* added to help the parsers
|
||||
*/
|
||||
NULL;
|
||||
public static RSLink fromCode(String codeString) throws Exception {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("complete".equals(codeString))
|
||||
return COMPLETE;
|
||||
if ("error".equals(codeString))
|
||||
return ERROR;
|
||||
throw new Exception("Unknown RSLink code '"+codeString+"'");
|
||||
}
|
||||
public String toCode() {
|
||||
switch (this) {
|
||||
case COMPLETE: return "complete";
|
||||
case ERROR: return "error";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
public String getSystem() {
|
||||
switch (this) {
|
||||
case COMPLETE: return "";
|
||||
case ERROR: return "";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
public String getDefinition() {
|
||||
switch (this) {
|
||||
case COMPLETE: return "The processing completed without errors.";
|
||||
case ERROR: return "The processing identified with errors.";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
public String getDisplay() {
|
||||
switch (this) {
|
||||
case COMPLETE: return "Complete";
|
||||
case ERROR: return "Error";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public static class RSLinkEnumFactory implements EnumFactory<RSLink> {
|
||||
public RSLink fromCode(String codeString) throws IllegalArgumentException {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("complete".equals(codeString))
|
||||
return RSLink.COMPLETE;
|
||||
if ("error".equals(codeString))
|
||||
return RSLink.ERROR;
|
||||
throw new IllegalArgumentException("Unknown RSLink code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(RSLink code) {
|
||||
if (code == RSLink.COMPLETE)
|
||||
return "complete";
|
||||
if (code == RSLink.ERROR)
|
||||
return "error";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* The Response Business Identifier.
|
||||
*/
|
||||
|
@ -142,7 +71,7 @@ public class EnrollmentResponse extends DomainResource {
|
|||
*/
|
||||
@Child(name = "outcome", type = {CodeType.class}, order=2, min=0, max=1)
|
||||
@Description(shortDefinition="complete | error", formalDefinition="Transaction status: error, complete." )
|
||||
protected Enumeration<RSLink> outcome;
|
||||
protected Enumeration<RemittanceOutcome> outcome;
|
||||
|
||||
/**
|
||||
* A description of the status of the adjudication.
|
||||
|
@ -208,7 +137,7 @@ public class EnrollmentResponse extends DomainResource {
|
|||
*/
|
||||
protected Organization requestOrganizationTarget;
|
||||
|
||||
private static final long serialVersionUID = -318929031L;
|
||||
private static final long serialVersionUID = -1740067108L;
|
||||
|
||||
/*
|
||||
* Constructor
|
||||
|
@ -304,12 +233,12 @@ public class EnrollmentResponse extends DomainResource {
|
|||
/**
|
||||
* @return {@link #outcome} (Transaction status: error, complete.). This is the underlying object with id, value and extensions. The accessor "getOutcome" gives direct access to the value
|
||||
*/
|
||||
public Enumeration<RSLink> getOutcomeElement() {
|
||||
public Enumeration<RemittanceOutcome> getOutcomeElement() {
|
||||
if (this.outcome == null)
|
||||
if (Configuration.errorOnAutoCreate())
|
||||
throw new Error("Attempt to auto-create EnrollmentResponse.outcome");
|
||||
else if (Configuration.doAutoCreate())
|
||||
this.outcome = new Enumeration<RSLink>(new RSLinkEnumFactory()); // bb
|
||||
this.outcome = new Enumeration<RemittanceOutcome>(new RemittanceOutcomeEnumFactory()); // bb
|
||||
return this.outcome;
|
||||
}
|
||||
|
||||
|
@ -324,7 +253,7 @@ public class EnrollmentResponse extends DomainResource {
|
|||
/**
|
||||
* @param value {@link #outcome} (Transaction status: error, complete.). This is the underlying object with id, value and extensions. The accessor "getOutcome" gives direct access to the value
|
||||
*/
|
||||
public EnrollmentResponse setOutcomeElement(Enumeration<RSLink> value) {
|
||||
public EnrollmentResponse setOutcomeElement(Enumeration<RemittanceOutcome> value) {
|
||||
this.outcome = value;
|
||||
return this;
|
||||
}
|
||||
|
@ -332,19 +261,19 @@ public class EnrollmentResponse extends DomainResource {
|
|||
/**
|
||||
* @return Transaction status: error, complete.
|
||||
*/
|
||||
public RSLink getOutcome() {
|
||||
public RemittanceOutcome getOutcome() {
|
||||
return this.outcome == null ? null : this.outcome.getValue();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value Transaction status: error, complete.
|
||||
*/
|
||||
public EnrollmentResponse setOutcome(RSLink value) {
|
||||
public EnrollmentResponse setOutcome(RemittanceOutcome value) {
|
||||
if (value == null)
|
||||
this.outcome = null;
|
||||
else {
|
||||
if (this.outcome == null)
|
||||
this.outcome = new Enumeration<RSLink>(new RSLinkEnumFactory());
|
||||
this.outcome = new Enumeration<RemittanceOutcome>(new RemittanceOutcomeEnumFactory());
|
||||
this.outcome.setValue(value);
|
||||
}
|
||||
return this;
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
|
|||
|
||||
*/
|
||||
|
||||
// Generated on Fri, May 22, 2015 17:15-0400 for FHIR v0.5.0
|
||||
// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
|
||||
|
||||
import java.util.*;
|
||||
|
||||
|
@ -48,27 +48,27 @@ public class EpisodeOfCare extends DomainResource {
|
|||
|
||||
public enum EpisodeOfCareStatus {
|
||||
/**
|
||||
* This episode of care is planned to start at the date specified in the period.start. During this status an organization may perform assessments to determine if they are eligible to receive services, or be organizing to make resources available to provide care services.
|
||||
* This episode of care is planned to start at the date specified in the period.start. During this status an organization may perform assessments to determine if they are eligible to receive services, or be organizing to make resources available to provide care services
|
||||
*/
|
||||
PLANNED,
|
||||
/**
|
||||
* This episode has been placed on a waitlist, pending the episode being made active (or cancelled).
|
||||
* This episode has been placed on a waitlist, pending the episode being made active (or cancelled)
|
||||
*/
|
||||
WAITLIST,
|
||||
/**
|
||||
* This episode of care is current.
|
||||
* This episode of care is current
|
||||
*/
|
||||
ACTIVE,
|
||||
/**
|
||||
* This episode of care is on hold, the organization has limited responsibility for the patient (such as while on respite).
|
||||
* This episode of care is on hold, the organization has limited responsibility for the patient (such as while on respite)
|
||||
*/
|
||||
ONHOLD,
|
||||
/**
|
||||
* This episode of care is finished at the organization is not expecting to be providing care to the patient. Can also be known as "closed", "completed" or other similar terms.
|
||||
* This episode of care is finished at the organization is not expecting to be providing care to the patient. Can also be known as "closed", "completed" or other similar terms
|
||||
*/
|
||||
FINISHED,
|
||||
/**
|
||||
* The episode of care was cancelled, or withdrawn from service, often selected during the planned stage as the patient may have gone elsewhere, or the circumstances have changed and the organization is unable to provide the care. It indicates that services terminated outside the planned/expected workflow.
|
||||
* The episode of care was cancelled, or withdrawn from service, often selected during the planned stage as the patient may have gone elsewhere, or the circumstances have changed and the organization is unable to provide the care. It indicates that services terminated outside the planned/expected workflow
|
||||
*/
|
||||
CANCELLED,
|
||||
/**
|
||||
|
@ -105,23 +105,23 @@ public class EpisodeOfCare extends DomainResource {
|
|||
}
|
||||
public String getSystem() {
|
||||
switch (this) {
|
||||
case PLANNED: return "";
|
||||
case WAITLIST: return "";
|
||||
case ACTIVE: return "";
|
||||
case ONHOLD: return "";
|
||||
case FINISHED: return "";
|
||||
case CANCELLED: return "";
|
||||
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 "?";
|
||||
}
|
||||
}
|
||||
public String getDefinition() {
|
||||
switch (this) {
|
||||
case PLANNED: return "This episode of care is planned to start at the date specified in the period.start. During this status an organization may perform assessments to determine if they are eligible to receive services, or be organizing to make resources available to provide care services.";
|
||||
case WAITLIST: return "This episode has been placed on a waitlist, pending the episode being made active (or cancelled).";
|
||||
case ACTIVE: return "This episode of care is current.";
|
||||
case ONHOLD: return "This episode of care is on hold, the organization has limited responsibility for the patient (such as while on respite).";
|
||||
case FINISHED: return "This episode of care is finished at the organization is not expecting to be providing care to the patient. Can also be known as 'closed', 'completed' or other similar terms.";
|
||||
case CANCELLED: return "The episode of care was cancelled, or withdrawn from service, often selected during the planned stage as the patient may have gone elsewhere, or the circumstances have changed and the organization is unable to provide the care. It indicates that services terminated outside the planned/expected workflow.";
|
||||
case PLANNED: return "This episode of care is planned to start at the date specified in the period.start. During this status an organization may perform assessments to determine if they are eligible to receive services, or be organizing to make resources available to provide care services";
|
||||
case WAITLIST: return "This episode has been placed on a waitlist, pending the episode being made active (or cancelled)";
|
||||
case ACTIVE: return "This episode of care is current";
|
||||
case ONHOLD: return "This episode of care is on hold, the organization has limited responsibility for the patient (such as while on respite)";
|
||||
case FINISHED: return "This episode of care is finished at the organization is not expecting to be providing care to the patient. Can also be known as 'closed', 'completed' or other similar terms";
|
||||
case CANCELLED: return "The episode of care was cancelled, or withdrawn from service, often selected during the planned stage as the patient may have gone elsewhere, or the circumstances have changed and the organization is unable to provide the care. It indicates that services terminated outside the planned/expected workflow";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
|
|
@ -29,11 +29,12 @@ package org.hl7.fhir.instance.model;
|
|||
|
||||
*/
|
||||
|
||||
// Generated on Fri, May 22, 2015 17:15-0400 for FHIR v0.5.0
|
||||
// Generated on Sun, May 31, 2015 15:45-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;
|
||||
|
@ -46,78 +47,6 @@ import org.hl7.fhir.instance.model.api.*;
|
|||
@ResourceDef(name="ExplanationOfBenefit", profile="http://hl7.org/fhir/Profile/ExplanationOfBenefit")
|
||||
public class ExplanationOfBenefit extends DomainResource {
|
||||
|
||||
public enum RSLink {
|
||||
/**
|
||||
* The processing completed without errors.
|
||||
*/
|
||||
COMPLETE,
|
||||
/**
|
||||
* The processing identified with errors.
|
||||
*/
|
||||
ERROR,
|
||||
/**
|
||||
* added to help the parsers
|
||||
*/
|
||||
NULL;
|
||||
public static RSLink fromCode(String codeString) throws Exception {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("complete".equals(codeString))
|
||||
return COMPLETE;
|
||||
if ("error".equals(codeString))
|
||||
return ERROR;
|
||||
throw new Exception("Unknown RSLink code '"+codeString+"'");
|
||||
}
|
||||
public String toCode() {
|
||||
switch (this) {
|
||||
case COMPLETE: return "complete";
|
||||
case ERROR: return "error";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
public String getSystem() {
|
||||
switch (this) {
|
||||
case COMPLETE: return "";
|
||||
case ERROR: return "";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
public String getDefinition() {
|
||||
switch (this) {
|
||||
case COMPLETE: return "The processing completed without errors.";
|
||||
case ERROR: return "The processing identified with errors.";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
public String getDisplay() {
|
||||
switch (this) {
|
||||
case COMPLETE: return "Complete";
|
||||
case ERROR: return "Error";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public static class RSLinkEnumFactory implements EnumFactory<RSLink> {
|
||||
public RSLink fromCode(String codeString) throws IllegalArgumentException {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("complete".equals(codeString))
|
||||
return RSLink.COMPLETE;
|
||||
if ("error".equals(codeString))
|
||||
return RSLink.ERROR;
|
||||
throw new IllegalArgumentException("Unknown RSLink code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(RSLink code) {
|
||||
if (code == RSLink.COMPLETE)
|
||||
return "complete";
|
||||
if (code == RSLink.ERROR)
|
||||
return "error";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* The Response Business Identifier.
|
||||
*/
|
||||
|
@ -142,7 +71,7 @@ public class ExplanationOfBenefit extends DomainResource {
|
|||
*/
|
||||
@Child(name = "outcome", type = {CodeType.class}, order=2, min=0, max=1)
|
||||
@Description(shortDefinition="complete | error", formalDefinition="Transaction status: error, complete." )
|
||||
protected Enumeration<RSLink> outcome;
|
||||
protected Enumeration<RemittanceOutcome> outcome;
|
||||
|
||||
/**
|
||||
* A description of the status of the adjudication.
|
||||
|
@ -208,7 +137,7 @@ public class ExplanationOfBenefit extends DomainResource {
|
|||
*/
|
||||
protected Organization requestOrganizationTarget;
|
||||
|
||||
private static final long serialVersionUID = 2098041034L;
|
||||
private static final long serialVersionUID = 205412587L;
|
||||
|
||||
/*
|
||||
* Constructor
|
||||
|
@ -304,12 +233,12 @@ public class ExplanationOfBenefit extends DomainResource {
|
|||
/**
|
||||
* @return {@link #outcome} (Transaction status: error, complete.). This is the underlying object with id, value and extensions. The accessor "getOutcome" gives direct access to the value
|
||||
*/
|
||||
public Enumeration<RSLink> getOutcomeElement() {
|
||||
public Enumeration<RemittanceOutcome> getOutcomeElement() {
|
||||
if (this.outcome == null)
|
||||
if (Configuration.errorOnAutoCreate())
|
||||
throw new Error("Attempt to auto-create ExplanationOfBenefit.outcome");
|
||||
else if (Configuration.doAutoCreate())
|
||||
this.outcome = new Enumeration<RSLink>(new RSLinkEnumFactory()); // bb
|
||||
this.outcome = new Enumeration<RemittanceOutcome>(new RemittanceOutcomeEnumFactory()); // bb
|
||||
return this.outcome;
|
||||
}
|
||||
|
||||
|
@ -324,7 +253,7 @@ public class ExplanationOfBenefit extends DomainResource {
|
|||
/**
|
||||
* @param value {@link #outcome} (Transaction status: error, complete.). This is the underlying object with id, value and extensions. The accessor "getOutcome" gives direct access to the value
|
||||
*/
|
||||
public ExplanationOfBenefit setOutcomeElement(Enumeration<RSLink> value) {
|
||||
public ExplanationOfBenefit setOutcomeElement(Enumeration<RemittanceOutcome> value) {
|
||||
this.outcome = value;
|
||||
return this;
|
||||
}
|
||||
|
@ -332,19 +261,19 @@ public class ExplanationOfBenefit extends DomainResource {
|
|||
/**
|
||||
* @return Transaction status: error, complete.
|
||||
*/
|
||||
public RSLink getOutcome() {
|
||||
public RemittanceOutcome getOutcome() {
|
||||
return this.outcome == null ? null : this.outcome.getValue();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value Transaction status: error, complete.
|
||||
*/
|
||||
public ExplanationOfBenefit setOutcome(RSLink value) {
|
||||
public ExplanationOfBenefit setOutcome(RemittanceOutcome value) {
|
||||
if (value == null)
|
||||
this.outcome = null;
|
||||
else {
|
||||
if (this.outcome == null)
|
||||
this.outcome = new Enumeration<RSLink>(new RSLinkEnumFactory());
|
||||
this.outcome = new Enumeration<RemittanceOutcome>(new RemittanceOutcomeEnumFactory());
|
||||
this.outcome.setValue(value);
|
||||
}
|
||||
return this;
|
||||
|
|
|
@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
|
|||
|
||||
*/
|
||||
|
||||
// Generated on Fri, May 22, 2015 17:15-0400 for FHIR v0.5.0
|
||||
// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
|
||||
|
||||
import java.util.*;
|
||||
|
||||
|
|
|
@ -29,11 +29,12 @@ package org.hl7.fhir.instance.model;
|
|||
|
||||
*/
|
||||
|
||||
// Generated on Fri, May 22, 2015 17:15-0400 for FHIR v0.5.0
|
||||
// Generated on Sun, May 31, 2015 15:45-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;
|
||||
|
@ -46,106 +47,6 @@ import org.hl7.fhir.instance.model.api.*;
|
|||
@ResourceDef(name="FamilyMemberHistory", profile="http://hl7.org/fhir/Profile/FamilyMemberHistory")
|
||||
public class FamilyMemberHistory extends DomainResource {
|
||||
|
||||
public enum AdministrativeGender {
|
||||
/**
|
||||
* Male
|
||||
*/
|
||||
MALE,
|
||||
/**
|
||||
* Female
|
||||
*/
|
||||
FEMALE,
|
||||
/**
|
||||
* Other
|
||||
*/
|
||||
OTHER,
|
||||
/**
|
||||
* Unknown
|
||||
*/
|
||||
UNKNOWN,
|
||||
/**
|
||||
* added to help the parsers
|
||||
*/
|
||||
NULL;
|
||||
public static AdministrativeGender fromCode(String codeString) throws Exception {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("male".equals(codeString))
|
||||
return MALE;
|
||||
if ("female".equals(codeString))
|
||||
return FEMALE;
|
||||
if ("other".equals(codeString))
|
||||
return OTHER;
|
||||
if ("unknown".equals(codeString))
|
||||
return UNKNOWN;
|
||||
throw new Exception("Unknown AdministrativeGender code '"+codeString+"'");
|
||||
}
|
||||
public String toCode() {
|
||||
switch (this) {
|
||||
case MALE: return "male";
|
||||
case FEMALE: return "female";
|
||||
case OTHER: return "other";
|
||||
case UNKNOWN: return "unknown";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
public String getSystem() {
|
||||
switch (this) {
|
||||
case MALE: return "";
|
||||
case FEMALE: return "";
|
||||
case OTHER: return "";
|
||||
case UNKNOWN: return "";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
public String getDefinition() {
|
||||
switch (this) {
|
||||
case MALE: return "Male";
|
||||
case FEMALE: return "Female";
|
||||
case OTHER: return "Other";
|
||||
case UNKNOWN: return "Unknown";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
public String getDisplay() {
|
||||
switch (this) {
|
||||
case MALE: return "Male";
|
||||
case FEMALE: return "Female";
|
||||
case OTHER: return "Other";
|
||||
case UNKNOWN: return "Unknown";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public static class AdministrativeGenderEnumFactory implements EnumFactory<AdministrativeGender> {
|
||||
public AdministrativeGender fromCode(String codeString) throws IllegalArgumentException {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("male".equals(codeString))
|
||||
return AdministrativeGender.MALE;
|
||||
if ("female".equals(codeString))
|
||||
return AdministrativeGender.FEMALE;
|
||||
if ("other".equals(codeString))
|
||||
return AdministrativeGender.OTHER;
|
||||
if ("unknown".equals(codeString))
|
||||
return AdministrativeGender.UNKNOWN;
|
||||
throw new IllegalArgumentException("Unknown AdministrativeGender code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(AdministrativeGender code) {
|
||||
if (code == AdministrativeGender.MALE)
|
||||
return "male";
|
||||
if (code == AdministrativeGender.FEMALE)
|
||||
return "female";
|
||||
if (code == AdministrativeGender.OTHER)
|
||||
return "other";
|
||||
if (code == AdministrativeGender.UNKNOWN)
|
||||
return "unknown";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
|
||||
@Block()
|
||||
public static class FamilyMemberHistoryConditionComponent extends BackboneElement implements IBaseBackboneElement {
|
||||
/**
|
||||
|
|
|
@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
|
|||
|
||||
*/
|
||||
|
||||
// Generated on Fri, May 22, 2015 17:15-0400 for FHIR v0.5.0
|
||||
// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
|
||||
|
||||
import java.util.*;
|
||||
|
||||
|
@ -48,15 +48,15 @@ public class Flag extends DomainResource {
|
|||
|
||||
public enum FlagStatus {
|
||||
/**
|
||||
* A current flag that should be displayed to a user. A system may use the category to determine which roles should view the flag.
|
||||
* A current flag that should be displayed to a user. A system may use the category to determine which roles should view the flag
|
||||
*/
|
||||
ACTIVE,
|
||||
/**
|
||||
* The flag does not need to be displayed any more.
|
||||
* The flag does not need to be displayed any more
|
||||
*/
|
||||
INACTIVE,
|
||||
/**
|
||||
* The flag was added in error, and should no longer be displayed.
|
||||
* The flag was added in error, and should no longer be displayed
|
||||
*/
|
||||
ENTEREDINERROR,
|
||||
/**
|
||||
|
@ -84,17 +84,17 @@ public class Flag extends DomainResource {
|
|||
}
|
||||
public String getSystem() {
|
||||
switch (this) {
|
||||
case ACTIVE: return "";
|
||||
case INACTIVE: return "";
|
||||
case ENTEREDINERROR: return "";
|
||||
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 "?";
|
||||
}
|
||||
}
|
||||
public String getDefinition() {
|
||||
switch (this) {
|
||||
case ACTIVE: return "A current flag that should be displayed to a user. A system may use the category to determine which roles should view the flag.";
|
||||
case INACTIVE: return "The flag does not need to be displayed any more.";
|
||||
case ENTEREDINERROR: return "The flag was added in error, and should no longer be displayed.";
|
||||
case ACTIVE: return "A current flag that should be displayed to a user. A system may use the category to determine which roles should view the flag";
|
||||
case INACTIVE: return "The flag does not need to be displayed any more";
|
||||
case ENTEREDINERROR: return "The flag was added in error, and should no longer be displayed";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
|
|
@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
|
|||
|
||||
*/
|
||||
|
||||
// Generated on Fri, May 22, 2015 17:15-0400 for FHIR v0.5.0
|
||||
// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
|
||||
|
||||
import java.util.*;
|
||||
|
||||
|
@ -48,35 +48,35 @@ public class Goal extends DomainResource {
|
|||
|
||||
public enum GoalStatus {
|
||||
/**
|
||||
* A goal is proposed for this patient.
|
||||
* A goal is proposed for this patient
|
||||
*/
|
||||
PROPOSED,
|
||||
/**
|
||||
* A goal is planned for this patient.
|
||||
* A goal is planned for this patient
|
||||
*/
|
||||
PLANNED,
|
||||
/**
|
||||
* 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).
|
||||
* 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.
|
||||
* 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.
|
||||
* The goal has been met, but ongoing activity is needed to sustain the goal objective
|
||||
*/
|
||||
SUSTAINING,
|
||||
/**
|
||||
* The goal is no longer being sought.
|
||||
* The goal is no longer being sought
|
||||
*/
|
||||
CANCELLED,
|
||||
/**
|
||||
* A proposed goal was accepted.
|
||||
* A proposed goal was accepted
|
||||
*/
|
||||
ACCEPTED,
|
||||
/**
|
||||
* A proposed goal was rejected.
|
||||
* A proposed goal was rejected
|
||||
*/
|
||||
REJECTED,
|
||||
/**
|
||||
|
@ -119,27 +119,27 @@ public class Goal extends DomainResource {
|
|||
}
|
||||
public String getSystem() {
|
||||
switch (this) {
|
||||
case PROPOSED: return "";
|
||||
case PLANNED: return "";
|
||||
case INPROGRESS: return "";
|
||||
case ACHIEVED: return "";
|
||||
case SUSTAINING: return "";
|
||||
case CANCELLED: return "";
|
||||
case ACCEPTED: return "";
|
||||
case REJECTED: return "";
|
||||
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 "?";
|
||||
}
|
||||
}
|
||||
public String getDefinition() {
|
||||
switch (this) {
|
||||
case PROPOSED: return "A goal is proposed for this patient.";
|
||||
case PLANNED: return "A goal is planned for this patient.";
|
||||
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.";
|
||||
case ACCEPTED: return "A proposed goal was accepted.";
|
||||
case REJECTED: return "A proposed goal was rejected.";
|
||||
case PROPOSED: return "A goal is proposed for this patient";
|
||||
case PLANNED: return "A goal is planned for this patient";
|
||||
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";
|
||||
case ACCEPTED: return "A proposed goal was accepted";
|
||||
case REJECTED: return "A proposed goal was rejected";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
|
|
@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
|
|||
|
||||
*/
|
||||
|
||||
// Generated on Fri, May 22, 2015 17:15-0400 for FHIR v0.5.0
|
||||
// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
|
||||
|
||||
import java.util.*;
|
||||
|
||||
|
@ -48,27 +48,27 @@ public class Group extends DomainResource {
|
|||
|
||||
public enum GroupType {
|
||||
/**
|
||||
* Group contains "person" Patient resources.
|
||||
* Group contains "person" Patient resources
|
||||
*/
|
||||
PERSON,
|
||||
/**
|
||||
* Group contains "animal" Patient resources.
|
||||
* Group contains "animal" Patient resources
|
||||
*/
|
||||
ANIMAL,
|
||||
/**
|
||||
* Group contains healthcare practitioner resources.
|
||||
* Group contains healthcare practitioner resources
|
||||
*/
|
||||
PRACTITIONER,
|
||||
/**
|
||||
* Group contains Device resources.
|
||||
* Group contains Device resources
|
||||
*/
|
||||
DEVICE,
|
||||
/**
|
||||
* Group contains Medication resources.
|
||||
* Group contains Medication resources
|
||||
*/
|
||||
MEDICATION,
|
||||
/**
|
||||
* Group contains Substance resources.
|
||||
* Group contains Substance resources
|
||||
*/
|
||||
SUBSTANCE,
|
||||
/**
|
||||
|
@ -105,23 +105,23 @@ public class Group extends DomainResource {
|
|||
}
|
||||
public String getSystem() {
|
||||
switch (this) {
|
||||
case PERSON: return "";
|
||||
case ANIMAL: return "";
|
||||
case PRACTITIONER: return "";
|
||||
case DEVICE: return "";
|
||||
case MEDICATION: return "";
|
||||
case SUBSTANCE: return "";
|
||||
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 "?";
|
||||
}
|
||||
}
|
||||
public String getDefinition() {
|
||||
switch (this) {
|
||||
case PERSON: return "Group contains 'person' Patient resources.";
|
||||
case ANIMAL: return "Group contains 'animal' Patient resources.";
|
||||
case PRACTITIONER: return "Group contains healthcare practitioner resources.";
|
||||
case DEVICE: return "Group contains Device resources.";
|
||||
case MEDICATION: return "Group contains Medication resources.";
|
||||
case SUBSTANCE: return "Group contains Substance resources.";
|
||||
case PERSON: return "Group contains 'person' Patient resources";
|
||||
case ANIMAL: return "Group contains 'animal' Patient resources";
|
||||
case PRACTITIONER: return "Group contains healthcare practitioner resources";
|
||||
case DEVICE: return "Group contains Device resources";
|
||||
case MEDICATION: return "Group contains Medication resources";
|
||||
case SUBSTANCE: return "Group contains Substance resources";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
|
|
@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
|
|||
|
||||
*/
|
||||
|
||||
// Generated on Fri, May 22, 2015 17:15-0400 for FHIR v0.5.0
|
||||
// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
|
||||
|
||||
import java.util.*;
|
||||
|
||||
|
@ -48,31 +48,31 @@ public class HealthcareService extends DomainResource {
|
|||
|
||||
public enum DaysOfWeek {
|
||||
/**
|
||||
* Monday.
|
||||
* Monday
|
||||
*/
|
||||
MON,
|
||||
/**
|
||||
* Tuesday.
|
||||
* Tuesday
|
||||
*/
|
||||
TUE,
|
||||
/**
|
||||
* Wednesday.
|
||||
* Wednesday
|
||||
*/
|
||||
WED,
|
||||
/**
|
||||
* Thursday.
|
||||
* Thursday
|
||||
*/
|
||||
THU,
|
||||
/**
|
||||
* Friday.
|
||||
* Friday
|
||||
*/
|
||||
FRI,
|
||||
/**
|
||||
* Saturday.
|
||||
* Saturday
|
||||
*/
|
||||
SAT,
|
||||
/**
|
||||
* Sunday.
|
||||
* Sunday
|
||||
*/
|
||||
SUN,
|
||||
/**
|
||||
|
@ -112,25 +112,25 @@ public class HealthcareService extends DomainResource {
|
|||
}
|
||||
public String getSystem() {
|
||||
switch (this) {
|
||||
case MON: return "";
|
||||
case TUE: return "";
|
||||
case WED: return "";
|
||||
case THU: return "";
|
||||
case FRI: return "";
|
||||
case SAT: return "";
|
||||
case SUN: return "";
|
||||
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 "?";
|
||||
}
|
||||
}
|
||||
public String getDefinition() {
|
||||
switch (this) {
|
||||
case MON: return "Monday.";
|
||||
case TUE: return "Tuesday.";
|
||||
case WED: return "Wednesday.";
|
||||
case THU: return "Thursday.";
|
||||
case FRI: return "Friday.";
|
||||
case SAT: return "Saturday.";
|
||||
case SUN: return "Sunday.";
|
||||
case MON: return "Monday";
|
||||
case TUE: return "Tuesday";
|
||||
case WED: return "Wednesday";
|
||||
case THU: return "Thursday";
|
||||
case FRI: return "Friday";
|
||||
case SAT: return "Saturday";
|
||||
case SUN: return "Sunday";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
|
|
@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
|
|||
|
||||
*/
|
||||
|
||||
// Generated on Fri, May 22, 2015 17:15-0400 for FHIR v0.5.0
|
||||
// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
|
||||
|
||||
import java.util.*;
|
||||
|
||||
|
@ -47,7 +47,7 @@ public class HumanName extends Type implements ICompositeType {
|
|||
|
||||
public enum NameUse {
|
||||
/**
|
||||
* Known as/conventional/the one you normally use.
|
||||
* Known as/conventional/the one you normally use
|
||||
*/
|
||||
USUAL,
|
||||
/**
|
||||
|
@ -59,15 +59,15 @@ public class HumanName extends Type implements ICompositeType {
|
|||
*/
|
||||
TEMP,
|
||||
/**
|
||||
* A name that is used to address the person in an informal manner, but is not part of their formal or usual name.
|
||||
* A name that is used to address the person in an informal manner, but is not part of their formal or usual name
|
||||
*/
|
||||
NICKNAME,
|
||||
/**
|
||||
* Anonymous assigned name, alias, or pseudonym (used to protect a person's identity for privacy reasons).
|
||||
* Anonymous assigned name, alias, or pseudonym (used to protect a person's identity for privacy reasons)
|
||||
*/
|
||||
ANONYMOUS,
|
||||
/**
|
||||
* This name is no longer in use (or was never correct, but retained for records).
|
||||
* This name is no longer in use (or was never correct, but retained for records)
|
||||
*/
|
||||
OLD,
|
||||
/**
|
||||
|
@ -111,24 +111,24 @@ public class HumanName extends Type implements ICompositeType {
|
|||
}
|
||||
public String getSystem() {
|
||||
switch (this) {
|
||||
case USUAL: return "";
|
||||
case OFFICIAL: return "";
|
||||
case TEMP: return "";
|
||||
case NICKNAME: return "";
|
||||
case ANONYMOUS: return "";
|
||||
case OLD: return "";
|
||||
case MAIDEN: return "";
|
||||
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 "?";
|
||||
}
|
||||
}
|
||||
public String getDefinition() {
|
||||
switch (this) {
|
||||
case USUAL: return "Known as/conventional/the one you normally use.";
|
||||
case USUAL: return "Known as/conventional/the one you normally use";
|
||||
case OFFICIAL: return "The formal name as registered in an official (government) registry, but which name might not be commonly used. May be called 'legal name'.";
|
||||
case TEMP: return "A temporary name. Name.period can provide more detailed information. This may also be used for temporary names assigned at birth or in emergency situations.";
|
||||
case NICKNAME: return "A name that is used to address the person in an informal manner, but is not part of their formal or usual name.";
|
||||
case ANONYMOUS: return "Anonymous assigned name, alias, or pseudonym (used to protect a person's identity for privacy reasons).";
|
||||
case OLD: return "This name is no longer in use (or was never correct, but retained for records).";
|
||||
case NICKNAME: return "A name that is used to address the person in an informal manner, but is not part of their formal or usual name";
|
||||
case ANONYMOUS: return "Anonymous assigned name, alias, or pseudonym (used to protect a person's identity for privacy reasons)";
|
||||
case OLD: return "This name is no longer in use (or was never correct, but retained for records)";
|
||||
case MAIDEN: return "A name used prior to marriage. Marriage naming customs vary greatly around the world. This name use is for use by applications that collect and store 'maiden' names. Though the concept of maiden name is often gender specific, the use of this term is not gender specific. The use of this term does not imply any particular history for a person's name, nor should the maiden name be determined algorithmically.";
|
||||
default: return "?";
|
||||
}
|
||||
|
|
|
@ -43,19 +43,43 @@ import org.hl7.fhir.instance.model.api.IIdType;
|
|||
import org.hl7.fhir.instance.model.api.IPrimitiveType;
|
||||
|
||||
/**
|
||||
* Represents the FHIR ID type. This is the actual resource ID, meaning the ID that will be used in RESTful URLs, Resource References, etc. to represent a specific instance of a resource.
|
||||
*
|
||||
* 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
|
||||
* is defined by the FHIR specification as:
|
||||
* <p>
|
||||
* <b>Description</b>: A whole number in the range 0 to 2^64-1 (optionally represented in hex), a uuid, an oid, or any other combination of lowercase letters, numerals, "-" and ".", with a length
|
||||
* limit of 36 characters.
|
||||
* <code>A whole number in the range 0 to 2^64-1 (optionally represented in hex),
|
||||
* a uuid, an oid, or any other combination of lowercase letters, numerals, "-"
|
||||
* and ".", with a length limit of 36 characters</code>
|
||||
* </p>
|
||||
* <p>
|
||||
* regex: [a-z0-9\-\.]{1,36}
|
||||
* This class contains that logical ID, and can optionally also contain a relative
|
||||
* or absolute URL representing the resource identity. For example, the following
|
||||
* are all valid values for IdType, and all might represent the same resource:
|
||||
* </p>
|
||||
* <ul>
|
||||
* <li><code>123</code> (just a resource's ID)</li>
|
||||
* <li><code>Patient/123</code> (a relative identity)</li>
|
||||
* <li><code>http://example.com/Patient/123 (an absolute identity)</code></li>
|
||||
* <li><code>http://example.com/Patient/123/_history/1 (an absolute identity with a version id)</code></li>
|
||||
* <li><code>Patient/123/_history/1 (a relative identity with a version id)</code></li>
|
||||
* </ul>
|
||||
* <p>
|
||||
* In most situations, you only need to populate the resource's ID (e.g. <code>123</code>) in
|
||||
* resources you are constructing and the encoder will infer the rest from the context in which
|
||||
* the object is being used. On the other hand, the parser will always try to populate the
|
||||
* complete absolute identity on objects it creates as a convenience.
|
||||
* </p>
|
||||
* <p>
|
||||
* Regex for ID: [a-z0-9\-\.]{1,36}
|
||||
* </p>
|
||||
*/
|
||||
@DatatypeDef(name = "id")
|
||||
public final class IdType extends UriType implements IPrimitiveType<String>, IIdType {
|
||||
|
||||
/**
|
||||
* This is the maximum length for the ID
|
||||
*/
|
||||
public static final int MAX_LENGTH = 64; // maximum length
|
||||
|
||||
private static final long serialVersionUID = 2L;
|
||||
private String myBaseUrl;
|
||||
private boolean myHaveComponentParts;
|
||||
|
|
|
@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
|
|||
|
||||
*/
|
||||
|
||||
// Generated on Fri, May 22, 2015 17:15-0400 for FHIR v0.5.0
|
||||
// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
|
||||
|
||||
import java.util.*;
|
||||
|
||||
|
@ -47,19 +47,19 @@ public class Identifier extends Type implements ICompositeType {
|
|||
|
||||
public enum IdentifierUse {
|
||||
/**
|
||||
* the identifier recommended for display and use in real-world interactions.
|
||||
* the identifier recommended for display and use in real-world interactions
|
||||
*/
|
||||
USUAL,
|
||||
/**
|
||||
* the identifier considered to be most trusted for the identification of this item.
|
||||
* the identifier considered to be most trusted for the identification of this item
|
||||
*/
|
||||
OFFICIAL,
|
||||
/**
|
||||
* A temporary identifier.
|
||||
* A temporary identifier
|
||||
*/
|
||||
TEMP,
|
||||
/**
|
||||
* An identifier that was assigned in secondary use - it serves to identify the object in a relative context, but cannot be consistently assigned to the same object again in a different context.
|
||||
* An identifier that was assigned in secondary use - it serves to identify the object in a relative context, but cannot be consistently assigned to the same object again in a different context
|
||||
*/
|
||||
SECONDARY,
|
||||
/**
|
||||
|
@ -90,19 +90,19 @@ public class Identifier extends Type implements ICompositeType {
|
|||
}
|
||||
public String getSystem() {
|
||||
switch (this) {
|
||||
case USUAL: return "";
|
||||
case OFFICIAL: return "";
|
||||
case TEMP: return "";
|
||||
case SECONDARY: return "";
|
||||
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 "?";
|
||||
}
|
||||
}
|
||||
public String getDefinition() {
|
||||
switch (this) {
|
||||
case USUAL: return "the identifier recommended for display and use in real-world interactions.";
|
||||
case OFFICIAL: return "the identifier considered to be most trusted for the identification of this item.";
|
||||
case TEMP: return "A temporary identifier.";
|
||||
case SECONDARY: return "An identifier that was assigned in secondary use - it serves to identify the object in a relative context, but cannot be consistently assigned to the same object again in a different context.";
|
||||
case USUAL: return "the identifier recommended for display and use in real-world interactions";
|
||||
case OFFICIAL: return "the identifier considered to be most trusted for the identification of this item";
|
||||
case TEMP: return "A temporary identifier";
|
||||
case SECONDARY: return "An identifier that was assigned in secondary use - it serves to identify the object in a relative context, but cannot be consistently assigned to the same object again in a different context";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
|
|
@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
|
|||
|
||||
*/
|
||||
|
||||
// Generated on Fri, May 22, 2015 17:15-0400 for FHIR v0.5.0
|
||||
// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
|
||||
|
||||
import java.util.*;
|
||||
|
||||
|
|
|
@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
|
|||
|
||||
*/
|
||||
|
||||
// Generated on Fri, May 22, 2015 17:15-0400 for FHIR v0.5.0
|
||||
// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
|
||||
|
||||
import java.util.*;
|
||||
|
||||
|
@ -48,147 +48,147 @@ 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,
|
||||
/**
|
||||
|
@ -397,42 +397,42 @@ public class ImagingStudy extends DomainResource {
|
|||
}
|
||||
public String getDisplay() {
|
||||
switch (this) {
|
||||
case AR: return "A R";
|
||||
case BMD: return "B M D";
|
||||
case BDUS: return "B D U S";
|
||||
case EPS: return "E P S";
|
||||
case CR: return "C R";
|
||||
case CT: return "C T";
|
||||
case DX: return "D X";
|
||||
case ECG: return "E C G";
|
||||
case ES: return "E S";
|
||||
case XC: return "X C";
|
||||
case GM: return "G M";
|
||||
case HD: return "H D";
|
||||
case IO: return "I O";
|
||||
case IVOCT: return "I V O C T";
|
||||
case IVUS: return "I V U S";
|
||||
case KER: return "K E R";
|
||||
case LEN: return "L E N";
|
||||
case MR: return "M R";
|
||||
case MG: return "M G";
|
||||
case NM: return "N M";
|
||||
case OAM: return "O A M";
|
||||
case OCT: return "O C T";
|
||||
case OPM: return "O P M";
|
||||
case OP: return "O P";
|
||||
case OPR: return "O P R";
|
||||
case OPT: return "O P T";
|
||||
case OPV: return "O P V";
|
||||
case PX: return "P X";
|
||||
case PT: return "P T";
|
||||
case RF: return "R F";
|
||||
case RG: return "R G";
|
||||
case SM: return "S M";
|
||||
case SRF: return "S R F";
|
||||
case US: return "U S";
|
||||
case VA: return "V A";
|
||||
case XA: return "X A";
|
||||
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 "?";
|
||||
}
|
||||
}
|
||||
|
@ -596,19 +596,19 @@ public class ImagingStudy extends DomainResource {
|
|||
|
||||
public enum InstanceAvailability {
|
||||
/**
|
||||
* Resources are immediately available,.
|
||||
* null
|
||||
*/
|
||||
ONLINE,
|
||||
/**
|
||||
* Resources need to be retrieved by manual intervention.
|
||||
* null
|
||||
*/
|
||||
OFFLINE,
|
||||
/**
|
||||
* Resources need to be retrieved from relatively slow media.
|
||||
* null
|
||||
*/
|
||||
NEARLINE,
|
||||
/**
|
||||
* Resources cannot be retrieved.
|
||||
* null
|
||||
*/
|
||||
UNAVAILABLE,
|
||||
/**
|
||||
|
@ -648,19 +648,19 @@ public class ImagingStudy extends DomainResource {
|
|||
}
|
||||
public String getDefinition() {
|
||||
switch (this) {
|
||||
case ONLINE: return "Resources are immediately available,.";
|
||||
case OFFLINE: return "Resources need to be retrieved by manual intervention.";
|
||||
case NEARLINE: return "Resources need to be retrieved from relatively slow media.";
|
||||
case UNAVAILABLE: return "Resources cannot be retrieved.";
|
||||
case ONLINE: return "";
|
||||
case OFFLINE: return "";
|
||||
case NEARLINE: return "";
|
||||
case UNAVAILABLE: return "";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
public String getDisplay() {
|
||||
switch (this) {
|
||||
case ONLINE: return "O N L I N E";
|
||||
case OFFLINE: return "O F F L I N E";
|
||||
case NEARLINE: return "N E A R L I N E";
|
||||
case UNAVAILABLE: return "U N A V A I L A B L E";
|
||||
case ONLINE: return "ONLINE";
|
||||
case OFFLINE: return "OFFLINE";
|
||||
case NEARLINE: return "NEARLINE";
|
||||
case UNAVAILABLE: return "UNAVAILABLE";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -696,215 +696,215 @@ public class ImagingStudy extends DomainResource {
|
|||
|
||||
public enum Modality {
|
||||
/**
|
||||
*
|
||||
* null
|
||||
*/
|
||||
AR,
|
||||
/**
|
||||
*
|
||||
* null
|
||||
*/
|
||||
AU,
|
||||
/**
|
||||
*
|
||||
* null
|
||||
*/
|
||||
BDUS,
|
||||
/**
|
||||
*
|
||||
* null
|
||||
*/
|
||||
BI,
|
||||
/**
|
||||
*
|
||||
* null
|
||||
*/
|
||||
BMD,
|
||||
/**
|
||||
*
|
||||
* null
|
||||
*/
|
||||
CR,
|
||||
/**
|
||||
*
|
||||
* null
|
||||
*/
|
||||
CT,
|
||||
/**
|
||||
*
|
||||
* null
|
||||
*/
|
||||
DG,
|
||||
/**
|
||||
*
|
||||
* null
|
||||
*/
|
||||
DX,
|
||||
/**
|
||||
*
|
||||
* null
|
||||
*/
|
||||
ECG,
|
||||
/**
|
||||
*
|
||||
* null
|
||||
*/
|
||||
EPS,
|
||||
/**
|
||||
*
|
||||
* null
|
||||
*/
|
||||
ES,
|
||||
/**
|
||||
*
|
||||
* null
|
||||
*/
|
||||
GM,
|
||||
/**
|
||||
*
|
||||
* null
|
||||
*/
|
||||
HC,
|
||||
/**
|
||||
*
|
||||
* null
|
||||
*/
|
||||
HD,
|
||||
/**
|
||||
*
|
||||
* null
|
||||
*/
|
||||
IO,
|
||||
/**
|
||||
*
|
||||
* null
|
||||
*/
|
||||
IVOCT,
|
||||
/**
|
||||
*
|
||||
* null
|
||||
*/
|
||||
IVUS,
|
||||
/**
|
||||
*
|
||||
* null
|
||||
*/
|
||||
KER,
|
||||
/**
|
||||
*
|
||||
* null
|
||||
*/
|
||||
KO,
|
||||
/**
|
||||
*
|
||||
* null
|
||||
*/
|
||||
LEN,
|
||||
/**
|
||||
*
|
||||
* null
|
||||
*/
|
||||
LS,
|
||||
/**
|
||||
*
|
||||
* null
|
||||
*/
|
||||
MG,
|
||||
/**
|
||||
*
|
||||
* null
|
||||
*/
|
||||
MR,
|
||||
/**
|
||||
*
|
||||
* null
|
||||
*/
|
||||
NM,
|
||||
/**
|
||||
*
|
||||
* null
|
||||
*/
|
||||
OAM,
|
||||
/**
|
||||
*
|
||||
* null
|
||||
*/
|
||||
OCT,
|
||||
/**
|
||||
*
|
||||
* null
|
||||
*/
|
||||
OP,
|
||||
/**
|
||||
*
|
||||
* null
|
||||
*/
|
||||
OPM,
|
||||
/**
|
||||
*
|
||||
* null
|
||||
*/
|
||||
OPT,
|
||||
/**
|
||||
*
|
||||
* null
|
||||
*/
|
||||
OPV,
|
||||
/**
|
||||
*
|
||||
* null
|
||||
*/
|
||||
OT,
|
||||
/**
|
||||
*
|
||||
* null
|
||||
*/
|
||||
PR,
|
||||
/**
|
||||
*
|
||||
* null
|
||||
*/
|
||||
PT,
|
||||
/**
|
||||
*
|
||||
* null
|
||||
*/
|
||||
PX,
|
||||
/**
|
||||
*
|
||||
* null
|
||||
*/
|
||||
REG,
|
||||
/**
|
||||
*
|
||||
* null
|
||||
*/
|
||||
RF,
|
||||
/**
|
||||
*
|
||||
* null
|
||||
*/
|
||||
RG,
|
||||
/**
|
||||
*
|
||||
* null
|
||||
*/
|
||||
RTDOSE,
|
||||
/**
|
||||
*
|
||||
* null
|
||||
*/
|
||||
RTIMAGE,
|
||||
/**
|
||||
*
|
||||
* null
|
||||
*/
|
||||
RTPLAN,
|
||||
/**
|
||||
*
|
||||
* null
|
||||
*/
|
||||
RTRECORD,
|
||||
/**
|
||||
*
|
||||
* null
|
||||
*/
|
||||
RTSTRUCT,
|
||||
/**
|
||||
*
|
||||
* null
|
||||
*/
|
||||
SEG,
|
||||
/**
|
||||
*
|
||||
* null
|
||||
*/
|
||||
SM,
|
||||
/**
|
||||
*
|
||||
* null
|
||||
*/
|
||||
SMR,
|
||||
/**
|
||||
*
|
||||
* null
|
||||
*/
|
||||
SR,
|
||||
/**
|
||||
*
|
||||
* null
|
||||
*/
|
||||
SRF,
|
||||
/**
|
||||
*
|
||||
* null
|
||||
*/
|
||||
TG,
|
||||
/**
|
||||
*
|
||||
* null
|
||||
*/
|
||||
US,
|
||||
/**
|
||||
*
|
||||
* null
|
||||
*/
|
||||
VA,
|
||||
/**
|
||||
*
|
||||
* null
|
||||
*/
|
||||
XA,
|
||||
/**
|
||||
*
|
||||
* null
|
||||
*/
|
||||
XC,
|
||||
/**
|
||||
|
@ -1198,59 +1198,59 @@ public class ImagingStudy extends DomainResource {
|
|||
}
|
||||
public String getDisplay() {
|
||||
switch (this) {
|
||||
case AR: return "A R";
|
||||
case AU: return "A U";
|
||||
case BDUS: return "B D U S";
|
||||
case BI: return "B I";
|
||||
case BMD: return "B M D";
|
||||
case CR: return "C R";
|
||||
case CT: return "C T";
|
||||
case DG: return "D G";
|
||||
case DX: return "D X";
|
||||
case ECG: return "E C G";
|
||||
case EPS: return "E P S";
|
||||
case ES: return "E S";
|
||||
case GM: return "G M";
|
||||
case HC: return "H C";
|
||||
case HD: return "H D";
|
||||
case IO: return "I O";
|
||||
case IVOCT: return "I V O C T";
|
||||
case IVUS: return "I V U S";
|
||||
case KER: return "K E R";
|
||||
case KO: return "K O";
|
||||
case LEN: return "L E N";
|
||||
case LS: return "L S";
|
||||
case MG: return "M G";
|
||||
case MR: return "M R";
|
||||
case NM: return "N M";
|
||||
case OAM: return "O A M";
|
||||
case OCT: return "O C T";
|
||||
case OP: return "O P";
|
||||
case OPM: return "O P M";
|
||||
case OPT: return "O P T";
|
||||
case OPV: return "O P V";
|
||||
case OT: return "O T";
|
||||
case PR: return "P R";
|
||||
case PT: return "P T";
|
||||
case PX: return "P X";
|
||||
case REG: return "R E G";
|
||||
case RF: return "R F";
|
||||
case RG: return "R G";
|
||||
case RTDOSE: return "R T D O S E";
|
||||
case RTIMAGE: return "R T I M A G E";
|
||||
case RTPLAN: return "R T P L A N";
|
||||
case RTRECORD: return "R T R E C O R D";
|
||||
case RTSTRUCT: return "R T S T R U C T";
|
||||
case SEG: return "S E G";
|
||||
case SM: return "S M";
|
||||
case SMR: return "S M R";
|
||||
case SR: return "S R";
|
||||
case SRF: return "S R F";
|
||||
case TG: return "T G";
|
||||
case US: return "U S";
|
||||
case VA: return "V A";
|
||||
case XA: return "X A";
|
||||
case XC: return "X C";
|
||||
case AR: return "AR";
|
||||
case AU: return "AU";
|
||||
case BDUS: return "BDUS";
|
||||
case BI: return "BI";
|
||||
case BMD: return "BMD";
|
||||
case CR: return "CR";
|
||||
case CT: return "CT";
|
||||
case DG: return "DG";
|
||||
case DX: return "DX";
|
||||
case ECG: return "ECG";
|
||||
case EPS: return "EPS";
|
||||
case ES: return "ES";
|
||||
case GM: return "GM";
|
||||
case HC: return "HC";
|
||||
case HD: return "HD";
|
||||
case IO: return "IO";
|
||||
case IVOCT: return "IVOCT";
|
||||
case IVUS: return "IVUS";
|
||||
case KER: return "KER";
|
||||
case KO: return "KO";
|
||||
case LEN: return "LEN";
|
||||
case LS: return "LS";
|
||||
case MG: return "MG";
|
||||
case MR: return "MR";
|
||||
case NM: return "NM";
|
||||
case OAM: return "OAM";
|
||||
case OCT: return "OCT";
|
||||
case OP: return "OP";
|
||||
case OPM: return "OPM";
|
||||
case OPT: return "OPT";
|
||||
case OPV: return "OPV";
|
||||
case OT: return "OT";
|
||||
case PR: return "PR";
|
||||
case PT: return "PT";
|
||||
case PX: return "PX";
|
||||
case REG: return "REG";
|
||||
case RF: return "RF";
|
||||
case RG: return "RG";
|
||||
case RTDOSE: return "RTDOSE";
|
||||
case RTIMAGE: return "RTIMAGE";
|
||||
case RTPLAN: return "RTPLAN";
|
||||
case RTRECORD: return "RTRECORD";
|
||||
case RTSTRUCT: return "RTSTRUCT";
|
||||
case SEG: return "SEG";
|
||||
case SM: return "SM";
|
||||
case SMR: return "SMR";
|
||||
case SR: return "SR";
|
||||
case SRF: return "SRF";
|
||||
case TG: return "TG";
|
||||
case US: return "US";
|
||||
case VA: return "VA";
|
||||
case XA: return "XA";
|
||||
case XC: return "XC";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
|
|
@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
|
|||
|
||||
*/
|
||||
|
||||
// Generated on Fri, May 22, 2015 17:15-0400 for FHIR v0.5.0
|
||||
// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
|
||||
|
||||
import java.util.*;
|
||||
|
||||
|
|
|
@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
|
|||
|
||||
*/
|
||||
|
||||
// Generated on Fri, May 22, 2015 17:15-0400 for FHIR v0.5.0
|
||||
// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
|
||||
|
||||
import java.util.*;
|
||||
|
||||
|
|
|
@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
|
|||
|
||||
*/
|
||||
|
||||
// Generated on Fri, May 22, 2015 17:15-0400 for FHIR v0.5.0
|
||||
// Generated on Sun, May 31, 2015 15:45-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 "";
|
||||
case RETIRED: return "";
|
||||
case ENTEREDINERROR: return "";
|
||||
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 "?";
|
||||
}
|
||||
}
|
||||
|
@ -134,15 +134,15 @@ public class List_ extends DomainResource {
|
|||
|
||||
public enum ListMode {
|
||||
/**
|
||||
* This list is the master list, maintained in an ongoing fashion with regular updates as the real world list it is tracking changes.
|
||||
* This list is the master list, maintained in an ongoing fashion with regular updates as the real world list it is tracking changes
|
||||
*/
|
||||
WORKING,
|
||||
/**
|
||||
* This list was prepared as a snapshot. It should not be assumed to be current.
|
||||
* This list was prepared as a snapshot. It should not be assumed to be current
|
||||
*/
|
||||
SNAPSHOT,
|
||||
/**
|
||||
* The list is prepared as a statement of changes that have been made or recommended.
|
||||
* The list is prepared as a statement of changes that have been made or recommended
|
||||
*/
|
||||
CHANGES,
|
||||
/**
|
||||
|
@ -170,17 +170,17 @@ public class List_ extends DomainResource {
|
|||
}
|
||||
public String getSystem() {
|
||||
switch (this) {
|
||||
case WORKING: return "";
|
||||
case SNAPSHOT: return "";
|
||||
case CHANGES: return "";
|
||||
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 "?";
|
||||
}
|
||||
}
|
||||
public String getDefinition() {
|
||||
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 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";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
|
|
@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
|
|||
|
||||
*/
|
||||
|
||||
// Generated on Fri, May 22, 2015 17:15-0400 for FHIR v0.5.0
|
||||
// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
|
||||
|
||||
import java.util.*;
|
||||
|
||||
|
@ -49,11 +49,11 @@ public class Location extends DomainResource {
|
|||
|
||||
public enum LocationMode {
|
||||
/**
|
||||
* The Location resource represents a specific instance of a Location (e.g. Operating Theatre 1A).
|
||||
* The Location resource represents a specific instance of a Location (e.g. Operating Theatre 1A)
|
||||
*/
|
||||
INSTANCE,
|
||||
/**
|
||||
* The Location represents a class of Locations (e.g. Any Operating Theatre). Although this class of locations could be constrained within a specific boundary (such as organization, or parent location, address etc).
|
||||
* The Location represents a class of Locations (e.g. Any Operating Theatre). Although this class of locations could be constrained within a specific boundary (such as organization, or parent location, address etc)
|
||||
*/
|
||||
KIND,
|
||||
/**
|
||||
|
@ -78,15 +78,15 @@ public class Location extends DomainResource {
|
|||
}
|
||||
public String getSystem() {
|
||||
switch (this) {
|
||||
case INSTANCE: return "";
|
||||
case KIND: return "";
|
||||
case INSTANCE: return "http://hl7.org.fhir/location-mode";
|
||||
case KIND: return "http://hl7.org.fhir/location-mode";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
public String getDefinition() {
|
||||
switch (this) {
|
||||
case INSTANCE: return "The Location resource represents a specific instance of a Location (e.g. Operating Theatre 1A).";
|
||||
case KIND: return "The Location represents a class of Locations (e.g. Any Operating Theatre). Although this class of locations could be constrained within a specific boundary (such as organization, or parent location, address etc).";
|
||||
case INSTANCE: return "The Location resource represents a specific instance of a Location (e.g. Operating Theatre 1A)";
|
||||
case KIND: return "The Location represents a class of Locations (e.g. Any Operating Theatre). Although this class of locations could be constrained within a specific boundary (such as organization, or parent location, address etc)";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -121,15 +121,15 @@ public class Location extends DomainResource {
|
|||
|
||||
public enum LocationStatus {
|
||||
/**
|
||||
* The location is operational.
|
||||
* The location is operational
|
||||
*/
|
||||
ACTIVE,
|
||||
/**
|
||||
* The location is temporarily closed.
|
||||
* The location is temporarily closed
|
||||
*/
|
||||
SUSPENDED,
|
||||
/**
|
||||
* The location is no longer used.
|
||||
* The location is no longer used
|
||||
*/
|
||||
INACTIVE,
|
||||
/**
|
||||
|
@ -157,17 +157,17 @@ public class Location extends DomainResource {
|
|||
}
|
||||
public String getSystem() {
|
||||
switch (this) {
|
||||
case ACTIVE: return "";
|
||||
case SUSPENDED: return "";
|
||||
case INACTIVE: return "";
|
||||
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 "?";
|
||||
}
|
||||
}
|
||||
public String getDefinition() {
|
||||
switch (this) {
|
||||
case ACTIVE: return "The location is operational.";
|
||||
case SUSPENDED: return "The location is temporarily closed.";
|
||||
case INACTIVE: return "The location is no longer used.";
|
||||
case ACTIVE: return "The location is operational";
|
||||
case SUSPENDED: return "The location is temporarily closed";
|
||||
case INACTIVE: return "The location is no longer used";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
|
|
@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
|
|||
|
||||
*/
|
||||
|
||||
// Generated on Fri, May 22, 2015 17:15-0400 for FHIR v0.5.0
|
||||
// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
|
||||
|
||||
import java.util.*;
|
||||
|
||||
|
@ -48,15 +48,15 @@ public class Media extends DomainResource {
|
|||
|
||||
public enum DigitalMediaType {
|
||||
/**
|
||||
* The media consists of one or more unmoving images, including photographs, computer-generated graphs and charts, and scanned documents.
|
||||
* The media consists of one or more unmoving images, including photographs, computer-generated graphs and charts, and scanned documents
|
||||
*/
|
||||
PHOTO,
|
||||
/**
|
||||
* The media consists of a series of frames that capture a moving image.
|
||||
* The media consists of a series of frames that capture a moving image
|
||||
*/
|
||||
VIDEO,
|
||||
/**
|
||||
* The media consists of a sound recording.
|
||||
* The media consists of a sound recording
|
||||
*/
|
||||
AUDIO,
|
||||
/**
|
||||
|
@ -84,17 +84,17 @@ public class Media extends DomainResource {
|
|||
}
|
||||
public String getSystem() {
|
||||
switch (this) {
|
||||
case PHOTO: return "";
|
||||
case VIDEO: return "";
|
||||
case AUDIO: return "";
|
||||
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 "?";
|
||||
}
|
||||
}
|
||||
public String getDefinition() {
|
||||
switch (this) {
|
||||
case PHOTO: return "The media consists of one or more unmoving images, including photographs, computer-generated graphs and charts, and scanned documents.";
|
||||
case VIDEO: return "The media consists of a series of frames that capture a moving image.";
|
||||
case AUDIO: return "The media consists of a sound recording.";
|
||||
case PHOTO: return "The media consists of one or more unmoving images, including photographs, computer-generated graphs and charts, and scanned documents";
|
||||
case VIDEO: return "The media consists of a series of frames that capture a moving image";
|
||||
case AUDIO: return "The media consists of a sound recording";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
|
|
@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
|
|||
|
||||
*/
|
||||
|
||||
// Generated on Fri, May 22, 2015 17:15-0400 for FHIR v0.5.0
|
||||
// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
|
||||
|
||||
import java.util.*;
|
||||
|
||||
|
@ -48,11 +48,11 @@ public class Medication extends DomainResource {
|
|||
|
||||
public enum MedicationKind {
|
||||
/**
|
||||
* The medication is a product.
|
||||
* The medication is a product
|
||||
*/
|
||||
PRODUCT,
|
||||
/**
|
||||
* The medication is a package - a contained group of one of more products.
|
||||
* The medication is a package - a contained group of one of more products
|
||||
*/
|
||||
PACKAGE,
|
||||
/**
|
||||
|
@ -77,15 +77,15 @@ public class Medication extends DomainResource {
|
|||
}
|
||||
public String getSystem() {
|
||||
switch (this) {
|
||||
case PRODUCT: return "";
|
||||
case PACKAGE: return "";
|
||||
case PRODUCT: return "http://hl7.org.fhir/medication-kind";
|
||||
case PACKAGE: return "http://hl7.org.fhir/medication-kind";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
public String getDefinition() {
|
||||
switch (this) {
|
||||
case PRODUCT: return "The medication is a product.";
|
||||
case PACKAGE: return "The medication is a package - a contained group of one of more products.";
|
||||
case PRODUCT: return "The medication is a product";
|
||||
case PACKAGE: return "The medication is a package - a contained group of one of more products";
|
||||
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_;
|
||||
|
||||
|
|
|
@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
|
|||
|
||||
*/
|
||||
|
||||
// Generated on Fri, May 22, 2015 17:15-0400 for FHIR v0.5.0
|
||||
// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
|
||||
|
||||
import java.util.*;
|
||||
|
||||
|
@ -46,7 +46,7 @@ import org.hl7.fhir.instance.model.api.*;
|
|||
@ResourceDef(name="MedicationAdministration", profile="http://hl7.org/fhir/Profile/MedicationAdministration")
|
||||
public class MedicationAdministration extends DomainResource {
|
||||
|
||||
public enum MedicationAdminStatus {
|
||||
public enum MedicationAdministrationStatus {
|
||||
/**
|
||||
* The administration has started but has not yet completed.
|
||||
*/
|
||||
|
@ -71,7 +71,7 @@ public class MedicationAdministration extends DomainResource {
|
|||
* added to help the parsers
|
||||
*/
|
||||
NULL;
|
||||
public static MedicationAdminStatus fromCode(String codeString) throws Exception {
|
||||
public static MedicationAdministrationStatus fromCode(String codeString) throws Exception {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("in-progress".equals(codeString))
|
||||
|
@ -84,7 +84,7 @@ public class MedicationAdministration extends DomainResource {
|
|||
return ENTEREDINERROR;
|
||||
if ("stopped".equals(codeString))
|
||||
return STOPPED;
|
||||
throw new Exception("Unknown MedicationAdminStatus code '"+codeString+"'");
|
||||
throw new Exception("Unknown MedicationAdministrationStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode() {
|
||||
switch (this) {
|
||||
|
@ -98,11 +98,11 @@ public class MedicationAdministration extends DomainResource {
|
|||
}
|
||||
public String getSystem() {
|
||||
switch (this) {
|
||||
case INPROGRESS: return "";
|
||||
case ONHOLD: return "";
|
||||
case COMPLETED: return "";
|
||||
case ENTEREDINERROR: return "";
|
||||
case STOPPED: return "";
|
||||
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 "?";
|
||||
}
|
||||
}
|
||||
|
@ -128,33 +128,33 @@ public class MedicationAdministration extends DomainResource {
|
|||
}
|
||||
}
|
||||
|
||||
public static class MedicationAdminStatusEnumFactory implements EnumFactory<MedicationAdminStatus> {
|
||||
public MedicationAdminStatus fromCode(String codeString) throws IllegalArgumentException {
|
||||
public static class MedicationAdministrationStatusEnumFactory implements EnumFactory<MedicationAdministrationStatus> {
|
||||
public MedicationAdministrationStatus fromCode(String codeString) throws IllegalArgumentException {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("in-progress".equals(codeString))
|
||||
return MedicationAdminStatus.INPROGRESS;
|
||||
return MedicationAdministrationStatus.INPROGRESS;
|
||||
if ("on-hold".equals(codeString))
|
||||
return MedicationAdminStatus.ONHOLD;
|
||||
return MedicationAdministrationStatus.ONHOLD;
|
||||
if ("completed".equals(codeString))
|
||||
return MedicationAdminStatus.COMPLETED;
|
||||
return MedicationAdministrationStatus.COMPLETED;
|
||||
if ("entered-in-error".equals(codeString))
|
||||
return MedicationAdminStatus.ENTEREDINERROR;
|
||||
return MedicationAdministrationStatus.ENTEREDINERROR;
|
||||
if ("stopped".equals(codeString))
|
||||
return MedicationAdminStatus.STOPPED;
|
||||
throw new IllegalArgumentException("Unknown MedicationAdminStatus code '"+codeString+"'");
|
||||
return MedicationAdministrationStatus.STOPPED;
|
||||
throw new IllegalArgumentException("Unknown MedicationAdministrationStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(MedicationAdminStatus code) {
|
||||
if (code == MedicationAdminStatus.INPROGRESS)
|
||||
public String toCode(MedicationAdministrationStatus code) {
|
||||
if (code == MedicationAdministrationStatus.INPROGRESS)
|
||||
return "in-progress";
|
||||
if (code == MedicationAdminStatus.ONHOLD)
|
||||
if (code == MedicationAdministrationStatus.ONHOLD)
|
||||
return "on-hold";
|
||||
if (code == MedicationAdminStatus.COMPLETED)
|
||||
if (code == MedicationAdministrationStatus.COMPLETED)
|
||||
return "completed";
|
||||
if (code == MedicationAdminStatus.ENTEREDINERROR)
|
||||
if (code == MedicationAdministrationStatus.ENTEREDINERROR)
|
||||
return "entered-in-error";
|
||||
if (code == MedicationAdminStatus.STOPPED)
|
||||
if (code == MedicationAdministrationStatus.STOPPED)
|
||||
return "stopped";
|
||||
return "?";
|
||||
}
|
||||
|
@ -446,7 +446,7 @@ public class MedicationAdministration extends DomainResource {
|
|||
*/
|
||||
@Child(name = "status", type = {CodeType.class}, order=1, min=1, max=1)
|
||||
@Description(shortDefinition="in-progress | on-hold | completed | entered-in-error | stopped", formalDefinition="Will generally be set to show that the administration has been completed. For some long running administrations such as infusions it is possible for an administration to be started but not completed or it may be paused while some other process is under way." )
|
||||
protected Enumeration<MedicationAdminStatus> status;
|
||||
protected Enumeration<MedicationAdministrationStatus> status;
|
||||
|
||||
/**
|
||||
* The person or animal to whom the medication was given.
|
||||
|
@ -557,7 +557,7 @@ public class MedicationAdministration extends DomainResource {
|
|||
@Description(shortDefinition="Details of how medication was taken", formalDefinition="Indicates how the medication is/was used by the patient." )
|
||||
protected MedicationAdministrationDosageComponent dosage;
|
||||
|
||||
private static final long serialVersionUID = -1612329478L;
|
||||
private static final long serialVersionUID = 1854331183L;
|
||||
|
||||
/*
|
||||
* Constructor
|
||||
|
@ -569,7 +569,7 @@ public class MedicationAdministration extends DomainResource {
|
|||
/*
|
||||
* Constructor
|
||||
*/
|
||||
public MedicationAdministration(Enumeration<MedicationAdminStatus> status, Reference patient, Type effectiveTime, Type medication) {
|
||||
public MedicationAdministration(Enumeration<MedicationAdministrationStatus> status, Reference patient, Type effectiveTime, Type medication) {
|
||||
super();
|
||||
this.status = status;
|
||||
this.patient = patient;
|
||||
|
@ -620,12 +620,12 @@ public class MedicationAdministration extends DomainResource {
|
|||
/**
|
||||
* @return {@link #status} (Will generally be set to show that the administration has been completed. For some long running administrations such as infusions it is possible for an administration to be started but not completed or it may be paused while some other process is under way.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value
|
||||
*/
|
||||
public Enumeration<MedicationAdminStatus> getStatusElement() {
|
||||
public Enumeration<MedicationAdministrationStatus> getStatusElement() {
|
||||
if (this.status == null)
|
||||
if (Configuration.errorOnAutoCreate())
|
||||
throw new Error("Attempt to auto-create MedicationAdministration.status");
|
||||
else if (Configuration.doAutoCreate())
|
||||
this.status = new Enumeration<MedicationAdminStatus>(new MedicationAdminStatusEnumFactory()); // bb
|
||||
this.status = new Enumeration<MedicationAdministrationStatus>(new MedicationAdministrationStatusEnumFactory()); // bb
|
||||
return this.status;
|
||||
}
|
||||
|
||||
|
@ -640,7 +640,7 @@ public class MedicationAdministration extends DomainResource {
|
|||
/**
|
||||
* @param value {@link #status} (Will generally be set to show that the administration has been completed. For some long running administrations such as infusions it is possible for an administration to be started but not completed or it may be paused while some other process is under way.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value
|
||||
*/
|
||||
public MedicationAdministration setStatusElement(Enumeration<MedicationAdminStatus> value) {
|
||||
public MedicationAdministration setStatusElement(Enumeration<MedicationAdministrationStatus> value) {
|
||||
this.status = value;
|
||||
return this;
|
||||
}
|
||||
|
@ -648,16 +648,16 @@ public class MedicationAdministration extends DomainResource {
|
|||
/**
|
||||
* @return Will generally be set to show that the administration has been completed. For some long running administrations such as infusions it is possible for an administration to be started but not completed or it may be paused while some other process is under way.
|
||||
*/
|
||||
public MedicationAdminStatus getStatus() {
|
||||
public MedicationAdministrationStatus getStatus() {
|
||||
return this.status == null ? null : this.status.getValue();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value Will generally be set to show that the administration has been completed. For some long running administrations such as infusions it is possible for an administration to be started but not completed or it may be paused while some other process is under way.
|
||||
*/
|
||||
public MedicationAdministration setStatus(MedicationAdminStatus value) {
|
||||
public MedicationAdministration setStatus(MedicationAdministrationStatus value) {
|
||||
if (this.status == null)
|
||||
this.status = new Enumeration<MedicationAdminStatus>(new MedicationAdminStatusEnumFactory());
|
||||
this.status = new Enumeration<MedicationAdministrationStatus>(new MedicationAdministrationStatusEnumFactory());
|
||||
this.status.setValue(value);
|
||||
return this;
|
||||
}
|
||||
|
|
|
@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
|
|||
|
||||
*/
|
||||
|
||||
// Generated on Fri, May 22, 2015 17:15-0400 for FHIR v0.5.0
|
||||
// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
|
||||
|
||||
import java.util.*;
|
||||
|
||||
|
@ -52,7 +52,7 @@ public class MedicationDispense extends DomainResource {
|
|||
*/
|
||||
INPROGRESS,
|
||||
/**
|
||||
* Actions implied by the administration have been temporarily halted, but are expected to continue later. May also be called "suspended".
|
||||
* Actions implied by the administration have been temporarily halted, but are expected to continue later. May also be called "suspended"
|
||||
*/
|
||||
ONHOLD,
|
||||
/**
|
||||
|
@ -98,18 +98,18 @@ public class MedicationDispense extends DomainResource {
|
|||
}
|
||||
public String getSystem() {
|
||||
switch (this) {
|
||||
case INPROGRESS: return "";
|
||||
case ONHOLD: return "";
|
||||
case COMPLETED: return "";
|
||||
case ENTEREDINERROR: return "";
|
||||
case STOPPED: return "";
|
||||
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 "?";
|
||||
}
|
||||
}
|
||||
public String getDefinition() {
|
||||
switch (this) {
|
||||
case INPROGRESS: return "The dispense has started but has not yet completed.";
|
||||
case ONHOLD: return "Actions implied by the administration have been temporarily halted, but are expected to continue later. May also be called 'suspended'.";
|
||||
case ONHOLD: return "Actions implied by the administration have been temporarily halted, but are expected to continue later. May also be called 'suspended'";
|
||||
case COMPLETED: return "All actions that are implied by the dispense have occurred.";
|
||||
case ENTEREDINERROR: return "The dispense was entered in error and therefore nullified.";
|
||||
case STOPPED: return "Actions implied by the dispense have been permanently halted, before all of them occurred.";
|
||||
|
|
|
@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
|
|||
|
||||
*/
|
||||
|
||||
// Generated on Fri, May 22, 2015 17:15-0400 for FHIR v0.5.0
|
||||
// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
|
||||
|
||||
import java.util.*;
|
||||
|
||||
|
@ -112,13 +112,13 @@ public class MedicationPrescription extends DomainResource {
|
|||
}
|
||||
public String getSystem() {
|
||||
switch (this) {
|
||||
case ACTIVE: return "";
|
||||
case ONHOLD: return "";
|
||||
case COMPLETED: return "";
|
||||
case ENTEREDINERROR: return "";
|
||||
case STOPPED: return "";
|
||||
case SUPERCEDED: return "";
|
||||
case DRAFT: return "";
|
||||
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";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
|
|
@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
|
|||
|
||||
*/
|
||||
|
||||
// Generated on Fri, May 22, 2015 17:15-0400 for FHIR v0.5.0
|
||||
// Generated on Sun, May 31, 2015 15:45-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 "";
|
||||
case COMPLETED: return "";
|
||||
case ENTEREDINERROR: return "";
|
||||
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 "?";
|
||||
}
|
||||
}
|
||||
|
|
|
@ -29,11 +29,12 @@ package org.hl7.fhir.instance.model;
|
|||
|
||||
*/
|
||||
|
||||
// Generated on Fri, May 22, 2015 17:15-0400 for FHIR v0.5.0
|
||||
// Generated on Sun, May 31, 2015 15:45-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;
|
||||
|
@ -46,13 +47,13 @@ import org.hl7.fhir.instance.model.api.*;
|
|||
@ResourceDef(name="MessageHeader", profile="http://hl7.org/fhir/Profile/MessageHeader")
|
||||
public class MessageHeader extends DomainResource {
|
||||
|
||||
public enum ResponseCode {
|
||||
public enum ResponseType {
|
||||
/**
|
||||
* The message was accepted and processed without error.
|
||||
* The message was accepted and processed without error
|
||||
*/
|
||||
OK,
|
||||
/**
|
||||
* Some internal unexpected error occurred - wait and try again. Note - this is usually used for things like database unavailable, which may be expected to resolve, though human intervention may be required.
|
||||
* Some internal unexpected error occurred - wait and try again. Note - this is usually used for things like database unavailable, which may be expected to resolve, though human intervention may be required
|
||||
*/
|
||||
TRANSIENTERROR,
|
||||
/**
|
||||
|
@ -63,7 +64,7 @@ public class MessageHeader extends DomainResource {
|
|||
* added to help the parsers
|
||||
*/
|
||||
NULL;
|
||||
public static ResponseCode fromCode(String codeString) throws Exception {
|
||||
public static ResponseType fromCode(String codeString) throws Exception {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("ok".equals(codeString))
|
||||
|
@ -72,7 +73,7 @@ public class MessageHeader extends DomainResource {
|
|||
return TRANSIENTERROR;
|
||||
if ("fatal-error".equals(codeString))
|
||||
return FATALERROR;
|
||||
throw new Exception("Unknown ResponseCode code '"+codeString+"'");
|
||||
throw new Exception("Unknown ResponseType code '"+codeString+"'");
|
||||
}
|
||||
public String toCode() {
|
||||
switch (this) {
|
||||
|
@ -84,16 +85,16 @@ public class MessageHeader extends DomainResource {
|
|||
}
|
||||
public String getSystem() {
|
||||
switch (this) {
|
||||
case OK: return "";
|
||||
case TRANSIENTERROR: return "";
|
||||
case FATALERROR: return "";
|
||||
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 "?";
|
||||
}
|
||||
}
|
||||
public String getDefinition() {
|
||||
switch (this) {
|
||||
case OK: return "The message was accepted and processed without error.";
|
||||
case TRANSIENTERROR: return "Some internal unexpected error occurred - wait and try again. Note - this is usually used for things like database unavailable, which may be expected to resolve, though human intervention may be required.";
|
||||
case OK: return "The message was accepted and processed without error";
|
||||
case TRANSIENTERROR: return "Some internal unexpected error occurred - wait and try again. Note - this is usually used for things like database unavailable, which may be expected to resolve, though human intervention may be required";
|
||||
case FATALERROR: return "The message was rejected because of some content in it. There is no point in re-sending without change. The response narrative SHALL describe what the issue is.";
|
||||
default: return "?";
|
||||
}
|
||||
|
@ -108,25 +109,25 @@ public class MessageHeader extends DomainResource {
|
|||
}
|
||||
}
|
||||
|
||||
public static class ResponseCodeEnumFactory implements EnumFactory<ResponseCode> {
|
||||
public ResponseCode fromCode(String codeString) throws IllegalArgumentException {
|
||||
public static class ResponseTypeEnumFactory implements EnumFactory<ResponseType> {
|
||||
public ResponseType fromCode(String codeString) throws IllegalArgumentException {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("ok".equals(codeString))
|
||||
return ResponseCode.OK;
|
||||
return ResponseType.OK;
|
||||
if ("transient-error".equals(codeString))
|
||||
return ResponseCode.TRANSIENTERROR;
|
||||
return ResponseType.TRANSIENTERROR;
|
||||
if ("fatal-error".equals(codeString))
|
||||
return ResponseCode.FATALERROR;
|
||||
throw new IllegalArgumentException("Unknown ResponseCode code '"+codeString+"'");
|
||||
return ResponseType.FATALERROR;
|
||||
throw new IllegalArgumentException("Unknown ResponseType code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(ResponseCode code) {
|
||||
if (code == ResponseCode.OK)
|
||||
public String toCode(ResponseType code) {
|
||||
if (code == ResponseType.OK)
|
||||
return "ok";
|
||||
if (code == ResponseCode.TRANSIENTERROR)
|
||||
if (code == ResponseType.TRANSIENTERROR)
|
||||
return "transient-error";
|
||||
if (code == ResponseCode.FATALERROR)
|
||||
if (code == ResponseType.FATALERROR)
|
||||
return "fatal-error";
|
||||
return "?";
|
||||
}
|
||||
|
@ -146,7 +147,7 @@ public class MessageHeader extends DomainResource {
|
|||
*/
|
||||
@Child(name = "code", type = {CodeType.class}, order=2, min=1, max=1)
|
||||
@Description(shortDefinition="ok | transient-error | fatal-error", formalDefinition="Code that identifies the type of response to the message - whether it was successful or not, and whether it should be resent or not." )
|
||||
protected Enumeration<ResponseCode> code;
|
||||
protected Enumeration<ResponseType> code;
|
||||
|
||||
/**
|
||||
* Full details of any issues found in the message.
|
||||
|
@ -160,7 +161,7 @@ public class MessageHeader extends DomainResource {
|
|||
*/
|
||||
protected OperationOutcome detailsTarget;
|
||||
|
||||
private static final long serialVersionUID = 1419103693L;
|
||||
private static final long serialVersionUID = -1008716838L;
|
||||
|
||||
/*
|
||||
* Constructor
|
||||
|
@ -172,7 +173,7 @@ public class MessageHeader extends DomainResource {
|
|||
/*
|
||||
* Constructor
|
||||
*/
|
||||
public MessageHeaderResponseComponent(IdType identifier, Enumeration<ResponseCode> code) {
|
||||
public MessageHeaderResponseComponent(IdType identifier, Enumeration<ResponseType> code) {
|
||||
super();
|
||||
this.identifier = identifier;
|
||||
this.code = code;
|
||||
|
@ -226,12 +227,12 @@ public class MessageHeader extends DomainResource {
|
|||
/**
|
||||
* @return {@link #code} (Code that identifies the type of response to the message - whether it was successful or not, and whether it should be resent or not.). This is the underlying object with id, value and extensions. The accessor "getCode" gives direct access to the value
|
||||
*/
|
||||
public Enumeration<ResponseCode> getCodeElement() {
|
||||
public Enumeration<ResponseType> getCodeElement() {
|
||||
if (this.code == null)
|
||||
if (Configuration.errorOnAutoCreate())
|
||||
throw new Error("Attempt to auto-create MessageHeaderResponseComponent.code");
|
||||
else if (Configuration.doAutoCreate())
|
||||
this.code = new Enumeration<ResponseCode>(new ResponseCodeEnumFactory()); // bb
|
||||
this.code = new Enumeration<ResponseType>(new ResponseTypeEnumFactory()); // bb
|
||||
return this.code;
|
||||
}
|
||||
|
||||
|
@ -246,7 +247,7 @@ public class MessageHeader extends DomainResource {
|
|||
/**
|
||||
* @param value {@link #code} (Code that identifies the type of response to the message - whether it was successful or not, and whether it should be resent or not.). This is the underlying object with id, value and extensions. The accessor "getCode" gives direct access to the value
|
||||
*/
|
||||
public MessageHeaderResponseComponent setCodeElement(Enumeration<ResponseCode> value) {
|
||||
public MessageHeaderResponseComponent setCodeElement(Enumeration<ResponseType> value) {
|
||||
this.code = value;
|
||||
return this;
|
||||
}
|
||||
|
@ -254,16 +255,16 @@ public class MessageHeader extends DomainResource {
|
|||
/**
|
||||
* @return Code that identifies the type of response to the message - whether it was successful or not, and whether it should be resent or not.
|
||||
*/
|
||||
public ResponseCode getCode() {
|
||||
public ResponseType getCode() {
|
||||
return this.code == null ? null : this.code.getValue();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value Code that identifies the type of response to the message - whether it was successful or not, and whether it should be resent or not.
|
||||
*/
|
||||
public MessageHeaderResponseComponent setCode(ResponseCode value) {
|
||||
public MessageHeaderResponseComponent setCode(ResponseType value) {
|
||||
if (this.code == null)
|
||||
this.code = new Enumeration<ResponseCode>(new ResponseCodeEnumFactory());
|
||||
this.code = new Enumeration<ResponseType>(new ResponseTypeEnumFactory());
|
||||
this.code.setValue(value);
|
||||
return this;
|
||||
}
|
||||
|
|
|
@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
|
|||
|
||||
*/
|
||||
|
||||
// Generated on Fri, May 22, 2015 17:15-0400 for FHIR v0.5.0
|
||||
// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
|
||||
|
||||
import java.util.*;
|
||||
|
||||
|
|
|
@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
|
|||
|
||||
*/
|
||||
|
||||
// Generated on Fri, May 22, 2015 17:15-0400 for FHIR v0.5.0
|
||||
// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
|
||||
|
||||
import org.hl7.fhir.instance.model.annotations.DatatypeDef;
|
||||
import org.hl7.fhir.instance.model.annotations.Block;
|
||||
|
|
|
@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
|
|||
|
||||
*/
|
||||
|
||||
// Generated on Fri, May 22, 2015 17:15-0400 for FHIR v0.5.0
|
||||
// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
|
||||
|
||||
import java.util.*;
|
||||
|
||||
|
@ -47,24 +47,24 @@ import org.hl7.fhir.instance.model.api.*;
|
|||
@ResourceDef(name="NamingSystem", profile="http://hl7.org/fhir/Profile/NamingSystem")
|
||||
public class NamingSystem extends DomainResource {
|
||||
|
||||
public enum NamingsystemType {
|
||||
public enum NamingSystemType {
|
||||
/**
|
||||
* The namingsystem is used to define concepts and symbols to represent those concepts. E.g. UCUM, LOINC, NDC code, local lab codes, etc.
|
||||
*/
|
||||
CODESYSTEM,
|
||||
/**
|
||||
* The namingsystem is used to manage identifiers (e.g. license numbers, order numbers, etc.).
|
||||
* The namingsystem is used to manage identifiers (e.g. license numbers, order numbers, etc.)
|
||||
*/
|
||||
IDENTIFIER,
|
||||
/**
|
||||
* The namingsystem is used as the root for other identifiers and namingsystems.
|
||||
* The namingsystem is used as the root for other identifiers and namingsystems
|
||||
*/
|
||||
ROOT,
|
||||
/**
|
||||
* added to help the parsers
|
||||
*/
|
||||
NULL;
|
||||
public static NamingsystemType fromCode(String codeString) throws Exception {
|
||||
public static NamingSystemType fromCode(String codeString) throws Exception {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("codesystem".equals(codeString))
|
||||
|
@ -73,7 +73,7 @@ public class NamingSystem extends DomainResource {
|
|||
return IDENTIFIER;
|
||||
if ("root".equals(codeString))
|
||||
return ROOT;
|
||||
throw new Exception("Unknown NamingsystemType code '"+codeString+"'");
|
||||
throw new Exception("Unknown NamingSystemType code '"+codeString+"'");
|
||||
}
|
||||
public String toCode() {
|
||||
switch (this) {
|
||||
|
@ -85,17 +85,17 @@ public class NamingSystem extends DomainResource {
|
|||
}
|
||||
public String getSystem() {
|
||||
switch (this) {
|
||||
case CODESYSTEM: return "";
|
||||
case IDENTIFIER: return "";
|
||||
case ROOT: return "";
|
||||
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 "?";
|
||||
}
|
||||
}
|
||||
public String getDefinition() {
|
||||
switch (this) {
|
||||
case CODESYSTEM: return "The namingsystem is used to define concepts and symbols to represent those concepts. E.g. UCUM, LOINC, NDC code, local lab codes, etc.";
|
||||
case IDENTIFIER: return "The namingsystem is used to manage identifiers (e.g. license numbers, order numbers, etc.).";
|
||||
case ROOT: return "The namingsystem is used as the root for other identifiers and namingsystems.";
|
||||
case IDENTIFIER: return "The namingsystem is used to manage identifiers (e.g. license numbers, order numbers, etc.)";
|
||||
case ROOT: return "The namingsystem is used as the root for other identifiers and namingsystems";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -109,52 +109,52 @@ public class NamingSystem extends DomainResource {
|
|||
}
|
||||
}
|
||||
|
||||
public static class NamingsystemTypeEnumFactory implements EnumFactory<NamingsystemType> {
|
||||
public NamingsystemType fromCode(String codeString) throws IllegalArgumentException {
|
||||
public static class NamingSystemTypeEnumFactory implements EnumFactory<NamingSystemType> {
|
||||
public NamingSystemType fromCode(String codeString) throws IllegalArgumentException {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("codesystem".equals(codeString))
|
||||
return NamingsystemType.CODESYSTEM;
|
||||
return NamingSystemType.CODESYSTEM;
|
||||
if ("identifier".equals(codeString))
|
||||
return NamingsystemType.IDENTIFIER;
|
||||
return NamingSystemType.IDENTIFIER;
|
||||
if ("root".equals(codeString))
|
||||
return NamingsystemType.ROOT;
|
||||
throw new IllegalArgumentException("Unknown NamingsystemType code '"+codeString+"'");
|
||||
return NamingSystemType.ROOT;
|
||||
throw new IllegalArgumentException("Unknown NamingSystemType code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(NamingsystemType code) {
|
||||
if (code == NamingsystemType.CODESYSTEM)
|
||||
public String toCode(NamingSystemType code) {
|
||||
if (code == NamingSystemType.CODESYSTEM)
|
||||
return "codesystem";
|
||||
if (code == NamingsystemType.IDENTIFIER)
|
||||
if (code == NamingSystemType.IDENTIFIER)
|
||||
return "identifier";
|
||||
if (code == NamingsystemType.ROOT)
|
||||
if (code == NamingSystemType.ROOT)
|
||||
return "root";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
|
||||
public enum NamingsystemIdentifierType {
|
||||
public enum NamingSystemIdentifierType {
|
||||
/**
|
||||
* An ISO object identifier. E.g. 1.2.3.4.5.
|
||||
* An ISO object identifier. E.g. 1.2.3.4.5
|
||||
*/
|
||||
OID,
|
||||
/**
|
||||
* A universally unique identifier of the form a5afddf4-e880-459b-876e-e4591b0acc11.
|
||||
* A universally unique identifier of the form a5afddf4-e880-459b-876e-e4591b0acc11
|
||||
*/
|
||||
UUID,
|
||||
/**
|
||||
* A uniform resource identifier (ideally a URL - uniform resource locator). E.g. http://unitsofmeasure.org.
|
||||
* A uniform resource identifier (ideally a URL - uniform resource locator). E.g. http://unitsofmeasure.org
|
||||
*/
|
||||
URI,
|
||||
/**
|
||||
* Some other type of unique identifier. E.g HL7-assigned reserved string such as LN for LOINC.
|
||||
* Some other type of unique identifier. E.g HL7-assigned reserved string such as LN for LOINC
|
||||
*/
|
||||
OTHER,
|
||||
/**
|
||||
* added to help the parsers
|
||||
*/
|
||||
NULL;
|
||||
public static NamingsystemIdentifierType fromCode(String codeString) throws Exception {
|
||||
public static NamingSystemIdentifierType fromCode(String codeString) throws Exception {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("oid".equals(codeString))
|
||||
|
@ -165,7 +165,7 @@ public class NamingSystem extends DomainResource {
|
|||
return URI;
|
||||
if ("other".equals(codeString))
|
||||
return OTHER;
|
||||
throw new Exception("Unknown NamingsystemIdentifierType code '"+codeString+"'");
|
||||
throw new Exception("Unknown NamingSystemIdentifierType code '"+codeString+"'");
|
||||
}
|
||||
public String toCode() {
|
||||
switch (this) {
|
||||
|
@ -178,19 +178,19 @@ public class NamingSystem extends DomainResource {
|
|||
}
|
||||
public String getSystem() {
|
||||
switch (this) {
|
||||
case OID: return "";
|
||||
case UUID: return "";
|
||||
case URI: return "";
|
||||
case OTHER: return "";
|
||||
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 "?";
|
||||
}
|
||||
}
|
||||
public String getDefinition() {
|
||||
switch (this) {
|
||||
case OID: return "An ISO object identifier. E.g. 1.2.3.4.5.";
|
||||
case UUID: return "A universally unique identifier of the form a5afddf4-e880-459b-876e-e4591b0acc11.";
|
||||
case URI: return "A uniform resource identifier (ideally a URL - uniform resource locator). E.g. http://unitsofmeasure.org.";
|
||||
case OTHER: return "Some other type of unique identifier. E.g HL7-assigned reserved string such as LN for LOINC.";
|
||||
case OID: return "An ISO object identifier. E.g. 1.2.3.4.5";
|
||||
case UUID: return "A universally unique identifier of the form a5afddf4-e880-459b-876e-e4591b0acc11";
|
||||
case URI: return "A uniform resource identifier (ideally a URL - uniform resource locator). E.g. http://unitsofmeasure.org";
|
||||
case OTHER: return "Some other type of unique identifier. E.g HL7-assigned reserved string such as LN for LOINC";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -205,29 +205,29 @@ public class NamingSystem extends DomainResource {
|
|||
}
|
||||
}
|
||||
|
||||
public static class NamingsystemIdentifierTypeEnumFactory implements EnumFactory<NamingsystemIdentifierType> {
|
||||
public NamingsystemIdentifierType fromCode(String codeString) throws IllegalArgumentException {
|
||||
public static class NamingSystemIdentifierTypeEnumFactory implements EnumFactory<NamingSystemIdentifierType> {
|
||||
public NamingSystemIdentifierType fromCode(String codeString) throws IllegalArgumentException {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("oid".equals(codeString))
|
||||
return NamingsystemIdentifierType.OID;
|
||||
return NamingSystemIdentifierType.OID;
|
||||
if ("uuid".equals(codeString))
|
||||
return NamingsystemIdentifierType.UUID;
|
||||
return NamingSystemIdentifierType.UUID;
|
||||
if ("uri".equals(codeString))
|
||||
return NamingsystemIdentifierType.URI;
|
||||
return NamingSystemIdentifierType.URI;
|
||||
if ("other".equals(codeString))
|
||||
return NamingsystemIdentifierType.OTHER;
|
||||
throw new IllegalArgumentException("Unknown NamingsystemIdentifierType code '"+codeString+"'");
|
||||
return NamingSystemIdentifierType.OTHER;
|
||||
throw new IllegalArgumentException("Unknown NamingSystemIdentifierType code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(NamingsystemIdentifierType code) {
|
||||
if (code == NamingsystemIdentifierType.OID)
|
||||
public String toCode(NamingSystemIdentifierType code) {
|
||||
if (code == NamingSystemIdentifierType.OID)
|
||||
return "oid";
|
||||
if (code == NamingsystemIdentifierType.UUID)
|
||||
if (code == NamingSystemIdentifierType.UUID)
|
||||
return "uuid";
|
||||
if (code == NamingsystemIdentifierType.URI)
|
||||
if (code == NamingSystemIdentifierType.URI)
|
||||
return "uri";
|
||||
if (code == NamingsystemIdentifierType.OTHER)
|
||||
if (code == NamingSystemIdentifierType.OTHER)
|
||||
return "other";
|
||||
return "?";
|
||||
}
|
||||
|
@ -240,7 +240,7 @@ public class NamingSystem extends DomainResource {
|
|||
*/
|
||||
@Child(name = "type", type = {CodeType.class}, order=1, min=1, max=1)
|
||||
@Description(shortDefinition="oid | uuid | uri | other", formalDefinition="Identifies the unique identifier scheme used for this particular identifier." )
|
||||
protected Enumeration<NamingsystemIdentifierType> type;
|
||||
protected Enumeration<NamingSystemIdentifierType> type;
|
||||
|
||||
/**
|
||||
* The string that should be sent over the wire to identify the code system or identifier system.
|
||||
|
@ -263,7 +263,7 @@ public class NamingSystem extends DomainResource {
|
|||
@Description(shortDefinition="When is identifier valid?", formalDefinition="Identifies the period of time over which this identifier is considered appropriate to refer to the namingsystem. Outside of this window, the identifier might be non-deterministic." )
|
||||
protected Period period;
|
||||
|
||||
private static final long serialVersionUID = -250649344L;
|
||||
private static final long serialVersionUID = -193711840L;
|
||||
|
||||
/*
|
||||
* Constructor
|
||||
|
@ -275,7 +275,7 @@ public class NamingSystem extends DomainResource {
|
|||
/*
|
||||
* Constructor
|
||||
*/
|
||||
public NamingSystemUniqueIdComponent(Enumeration<NamingsystemIdentifierType> type, StringType value) {
|
||||
public NamingSystemUniqueIdComponent(Enumeration<NamingSystemIdentifierType> type, StringType value) {
|
||||
super();
|
||||
this.type = type;
|
||||
this.value = value;
|
||||
|
@ -284,12 +284,12 @@ public class NamingSystem extends DomainResource {
|
|||
/**
|
||||
* @return {@link #type} (Identifies the unique identifier scheme used for this particular identifier.). This is the underlying object with id, value and extensions. The accessor "getType" gives direct access to the value
|
||||
*/
|
||||
public Enumeration<NamingsystemIdentifierType> getTypeElement() {
|
||||
public Enumeration<NamingSystemIdentifierType> getTypeElement() {
|
||||
if (this.type == null)
|
||||
if (Configuration.errorOnAutoCreate())
|
||||
throw new Error("Attempt to auto-create NamingSystemUniqueIdComponent.type");
|
||||
else if (Configuration.doAutoCreate())
|
||||
this.type = new Enumeration<NamingsystemIdentifierType>(new NamingsystemIdentifierTypeEnumFactory()); // bb
|
||||
this.type = new Enumeration<NamingSystemIdentifierType>(new NamingSystemIdentifierTypeEnumFactory()); // bb
|
||||
return this.type;
|
||||
}
|
||||
|
||||
|
@ -304,7 +304,7 @@ public class NamingSystem extends DomainResource {
|
|||
/**
|
||||
* @param value {@link #type} (Identifies the unique identifier scheme used for this particular identifier.). This is the underlying object with id, value and extensions. The accessor "getType" gives direct access to the value
|
||||
*/
|
||||
public NamingSystemUniqueIdComponent setTypeElement(Enumeration<NamingsystemIdentifierType> value) {
|
||||
public NamingSystemUniqueIdComponent setTypeElement(Enumeration<NamingSystemIdentifierType> value) {
|
||||
this.type = value;
|
||||
return this;
|
||||
}
|
||||
|
@ -312,16 +312,16 @@ public class NamingSystem extends DomainResource {
|
|||
/**
|
||||
* @return Identifies the unique identifier scheme used for this particular identifier.
|
||||
*/
|
||||
public NamingsystemIdentifierType getType() {
|
||||
public NamingSystemIdentifierType getType() {
|
||||
return this.type == null ? null : this.type.getValue();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value Identifies the unique identifier scheme used for this particular identifier.
|
||||
*/
|
||||
public NamingSystemUniqueIdComponent setType(NamingsystemIdentifierType value) {
|
||||
public NamingSystemUniqueIdComponent setType(NamingSystemIdentifierType value) {
|
||||
if (this.type == null)
|
||||
this.type = new Enumeration<NamingsystemIdentifierType>(new NamingsystemIdentifierTypeEnumFactory());
|
||||
this.type = new Enumeration<NamingSystemIdentifierType>(new NamingSystemIdentifierTypeEnumFactory());
|
||||
this.type.setValue(value);
|
||||
return this;
|
||||
}
|
||||
|
@ -651,7 +651,7 @@ public class NamingSystem extends DomainResource {
|
|||
*/
|
||||
@Child(name = "type", type = {CodeType.class}, order=0, min=1, max=1)
|
||||
@Description(shortDefinition="codesystem | identifier | root", formalDefinition="Indicates the purpose for the namingsystem - what kinds of things does it make unique?" )
|
||||
protected Enumeration<NamingsystemType> type;
|
||||
protected Enumeration<NamingSystemType> type;
|
||||
|
||||
/**
|
||||
* The descriptive name of this particular identifier type or code system.
|
||||
|
@ -742,7 +742,7 @@ public class NamingSystem extends DomainResource {
|
|||
*/
|
||||
protected NamingSystem replacedByTarget;
|
||||
|
||||
private static final long serialVersionUID = -241224889L;
|
||||
private static final long serialVersionUID = -610416793L;
|
||||
|
||||
/*
|
||||
* Constructor
|
||||
|
@ -754,7 +754,7 @@ public class NamingSystem extends DomainResource {
|
|||
/*
|
||||
* Constructor
|
||||
*/
|
||||
public NamingSystem(Enumeration<NamingsystemType> type, StringType name, DateTimeType date, Enumeration<ConformanceResourceStatus> status) {
|
||||
public NamingSystem(Enumeration<NamingSystemType> type, StringType name, DateTimeType date, Enumeration<ConformanceResourceStatus> status) {
|
||||
super();
|
||||
this.type = type;
|
||||
this.name = name;
|
||||
|
@ -765,12 +765,12 @@ public class NamingSystem extends DomainResource {
|
|||
/**
|
||||
* @return {@link #type} (Indicates the purpose for the namingsystem - what kinds of things does it make unique?). This is the underlying object with id, value and extensions. The accessor "getType" gives direct access to the value
|
||||
*/
|
||||
public Enumeration<NamingsystemType> getTypeElement() {
|
||||
public Enumeration<NamingSystemType> getTypeElement() {
|
||||
if (this.type == null)
|
||||
if (Configuration.errorOnAutoCreate())
|
||||
throw new Error("Attempt to auto-create NamingSystem.type");
|
||||
else if (Configuration.doAutoCreate())
|
||||
this.type = new Enumeration<NamingsystemType>(new NamingsystemTypeEnumFactory()); // bb
|
||||
this.type = new Enumeration<NamingSystemType>(new NamingSystemTypeEnumFactory()); // bb
|
||||
return this.type;
|
||||
}
|
||||
|
||||
|
@ -785,7 +785,7 @@ public class NamingSystem extends DomainResource {
|
|||
/**
|
||||
* @param value {@link #type} (Indicates the purpose for the namingsystem - what kinds of things does it make unique?). This is the underlying object with id, value and extensions. The accessor "getType" gives direct access to the value
|
||||
*/
|
||||
public NamingSystem setTypeElement(Enumeration<NamingsystemType> value) {
|
||||
public NamingSystem setTypeElement(Enumeration<NamingSystemType> value) {
|
||||
this.type = value;
|
||||
return this;
|
||||
}
|
||||
|
@ -793,16 +793,16 @@ public class NamingSystem extends DomainResource {
|
|||
/**
|
||||
* @return Indicates the purpose for the namingsystem - what kinds of things does it make unique?
|
||||
*/
|
||||
public NamingsystemType getType() {
|
||||
public NamingSystemType getType() {
|
||||
return this.type == null ? null : this.type.getValue();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value Indicates the purpose for the namingsystem - what kinds of things does it make unique?
|
||||
*/
|
||||
public NamingSystem setType(NamingsystemType value) {
|
||||
public NamingSystem setType(NamingSystemType value) {
|
||||
if (this.type == null)
|
||||
this.type = new Enumeration<NamingsystemType>(new NamingsystemTypeEnumFactory());
|
||||
this.type = new Enumeration<NamingSystemType>(new NamingSystemTypeEnumFactory());
|
||||
this.type.setValue(value);
|
||||
return this;
|
||||
}
|
||||
|
|
|
@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
|
|||
|
||||
*/
|
||||
|
||||
// Generated on Fri, May 22, 2015 17:15-0400 for FHIR v0.5.0
|
||||
// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
|
||||
|
||||
import java.util.*;
|
||||
import org.hl7.fhir.utilities.xhtml.XhtmlNode;
|
||||
|
@ -52,15 +52,15 @@ public class Narrative extends BaseNarrative implements INarrative {
|
|||
*/
|
||||
GENERATED,
|
||||
/**
|
||||
* The contents of the narrative are entirely generated from the structured data in the resource and some of the content is generated from extensions.
|
||||
* The contents of the narrative are entirely generated from the structured data in the resource and some of the content is generated from extensions
|
||||
*/
|
||||
EXTENSIONS,
|
||||
/**
|
||||
* The contents of the narrative contain additional information not found in the structured data.
|
||||
* The contents of the narrative contain additional information not found in the structured data
|
||||
*/
|
||||
ADDITIONAL,
|
||||
/**
|
||||
* the contents of the narrative are some equivalent of "No human-readable text provided for this resource".
|
||||
* the contents of the narrative are some equivalent of "No human-readable text provided for this resource"
|
||||
*/
|
||||
EMPTY,
|
||||
/**
|
||||
|
@ -91,19 +91,19 @@ public class Narrative extends BaseNarrative implements INarrative {
|
|||
}
|
||||
public String getSystem() {
|
||||
switch (this) {
|
||||
case GENERATED: return "";
|
||||
case EXTENSIONS: return "";
|
||||
case ADDITIONAL: return "";
|
||||
case EMPTY: return "";
|
||||
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 "?";
|
||||
}
|
||||
}
|
||||
public String getDefinition() {
|
||||
switch (this) {
|
||||
case GENERATED: return "The contents of the narrative are entirely generated from the structured data in the resource.";
|
||||
case EXTENSIONS: return "The contents of the narrative are entirely generated from the structured data in the resource and some of the content is generated from extensions.";
|
||||
case ADDITIONAL: return "The contents of the narrative contain additional information not found in the structured data.";
|
||||
case EMPTY: return "the contents of the narrative are some equivalent of 'No human-readable text provided for this resource'.";
|
||||
case EXTENSIONS: return "The contents of the narrative are entirely generated from the structured data in the resource and some of the content is generated from extensions";
|
||||
case ADDITIONAL: return "The contents of the narrative contain additional information not found in the structured data";
|
||||
case EMPTY: return "the contents of the narrative are some equivalent of 'No human-readable text provided for this resource'";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
|
|
@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
|
|||
|
||||
*/
|
||||
|
||||
// Generated on Fri, May 22, 2015 17:15-0400 for FHIR v0.5.0
|
||||
// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
|
||||
|
||||
import java.util.*;
|
||||
|
||||
|
@ -48,19 +48,19 @@ public class NutritionOrder extends DomainResource {
|
|||
|
||||
public enum NutritionOrderStatus {
|
||||
/**
|
||||
* The request has been proposed.
|
||||
* The request has been proposed
|
||||
*/
|
||||
PROPOSED,
|
||||
/**
|
||||
* The request is in preliminary form prior to being sent.
|
||||
* The request is in preliminary form prior to being sent
|
||||
*/
|
||||
DRAFT,
|
||||
/**
|
||||
* The request has been planned.
|
||||
* The request has been planned
|
||||
*/
|
||||
PLANNED,
|
||||
/**
|
||||
* The request has been placed.
|
||||
* The request has been placed
|
||||
*/
|
||||
REQUESTED,
|
||||
/**
|
||||
|
@ -119,23 +119,23 @@ public class NutritionOrder extends DomainResource {
|
|||
}
|
||||
public String getSystem() {
|
||||
switch (this) {
|
||||
case PROPOSED: return "";
|
||||
case DRAFT: return "";
|
||||
case PLANNED: return "";
|
||||
case REQUESTED: return "";
|
||||
case ACTIVE: return "";
|
||||
case ONHOLD: return "";
|
||||
case COMPLETED: return "";
|
||||
case CANCELLED: return "";
|
||||
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 "?";
|
||||
}
|
||||
}
|
||||
public String getDefinition() {
|
||||
switch (this) {
|
||||
case PROPOSED: return "The request has been proposed.";
|
||||
case DRAFT: return "The request is in preliminary form prior to being sent.";
|
||||
case PLANNED: return "The request has been planned.";
|
||||
case REQUESTED: return "The request has been placed.";
|
||||
case PROPOSED: return "The request has been proposed";
|
||||
case DRAFT: return "The request is in preliminary form prior to being sent";
|
||||
case PLANNED: return "The request has been planned";
|
||||
case REQUESTED: return "The request has been placed";
|
||||
case ACTIVE: return "The request is 'actionable', but not all actions that are implied by it have occurred yet.";
|
||||
case ONHOLD: return "Actions implied by the request have been temporarily halted, but are expected to continue later. May also be called 'suspended'.";
|
||||
case COMPLETED: return "All actions that are implied by the order have occurred and no continuation is planned (this will rarely be made explicit).";
|
||||
|
|
|
@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
|
|||
|
||||
*/
|
||||
|
||||
// Generated on Fri, May 22, 2015 17:15-0400 for FHIR v0.5.0
|
||||
// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
|
||||
|
||||
import java.util.*;
|
||||
|
||||
|
@ -48,31 +48,31 @@ public class Observation extends DomainResource {
|
|||
|
||||
public enum ObservationStatus {
|
||||
/**
|
||||
* The existence of the observation is registered, but there is no result yet available.
|
||||
* The existence of the observation is registered, but there is no result yet available
|
||||
*/
|
||||
REGISTERED,
|
||||
/**
|
||||
* This is an initial or interim observation: data may be incomplete or unverified.
|
||||
* This is an initial or interim observation: data may be incomplete or unverified
|
||||
*/
|
||||
PRELIMINARY,
|
||||
/**
|
||||
* The observation is complete and verified by an authorized person.
|
||||
* The observation is complete and verified by an authorized person
|
||||
*/
|
||||
FINAL,
|
||||
/**
|
||||
* The observation has been modified subsequent to being Final, and is complete and verified by an authorized person.
|
||||
* The observation has been modified subsequent to being Final, and is complete and verified by an authorized person
|
||||
*/
|
||||
AMENDED,
|
||||
/**
|
||||
* The observation is unavailable because the measurement was not started or not completed (also sometimes called "aborted").
|
||||
* The observation is unavailable because the measurement was not started or not completed (also sometimes called "aborted")
|
||||
*/
|
||||
CANCELLED,
|
||||
/**
|
||||
* The observation has been withdrawn following previous Final release.
|
||||
* The observation has been withdrawn following previous Final release
|
||||
*/
|
||||
ENTEREDINERROR,
|
||||
/**
|
||||
* The observation status is unknown. Note that "unknown" is a value of last resort and every attempt should be made to provide a meaningful value other than "unknown".
|
||||
* The observation status is unknown. Note that "unknown" is a value of last resort and every attempt should be made to provide a meaningful value other than "unknown"
|
||||
*/
|
||||
UNKNOWN,
|
||||
/**
|
||||
|
@ -112,25 +112,25 @@ public class Observation extends DomainResource {
|
|||
}
|
||||
public String getSystem() {
|
||||
switch (this) {
|
||||
case REGISTERED: return "";
|
||||
case PRELIMINARY: return "";
|
||||
case FINAL: return "";
|
||||
case AMENDED: return "";
|
||||
case CANCELLED: return "";
|
||||
case ENTEREDINERROR: return "";
|
||||
case UNKNOWN: return "";
|
||||
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 "?";
|
||||
}
|
||||
}
|
||||
public String getDefinition() {
|
||||
switch (this) {
|
||||
case REGISTERED: return "The existence of the observation is registered, but there is no result yet available.";
|
||||
case PRELIMINARY: return "This is an initial or interim observation: data may be incomplete or unverified.";
|
||||
case FINAL: return "The observation is complete and verified by an authorized person.";
|
||||
case AMENDED: return "The observation has been modified subsequent to being Final, and is complete and verified by an authorized person.";
|
||||
case CANCELLED: return "The observation is unavailable because the measurement was not started or not completed (also sometimes called 'aborted').";
|
||||
case ENTEREDINERROR: return "The observation has been withdrawn following previous Final release.";
|
||||
case UNKNOWN: return "The observation status is unknown. Note that 'unknown' is a value of last resort and every attempt should be made to provide a meaningful value other than 'unknown'.";
|
||||
case REGISTERED: return "The existence of the observation is registered, but there is no result yet available";
|
||||
case PRELIMINARY: return "This is an initial or interim observation: data may be incomplete or unverified";
|
||||
case FINAL: return "The observation is complete and verified by an authorized person";
|
||||
case AMENDED: return "The observation has been modified subsequent to being Final, and is complete and verified by an authorized person";
|
||||
case CANCELLED: return "The observation is unavailable because the measurement was not started or not completed (also sometimes called 'aborted')";
|
||||
case ENTEREDINERROR: return "The observation has been withdrawn following previous Final release";
|
||||
case UNKNOWN: return "The observation status is unknown. Note that 'unknown' is a value of last resort and every attempt should be made to provide a meaningful value other than 'unknown'";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -190,31 +190,31 @@ public class Observation extends DomainResource {
|
|||
|
||||
public enum ObservationReliability {
|
||||
/**
|
||||
* The result has no reliability concerns.
|
||||
* The result has no reliability concerns
|
||||
*/
|
||||
OK,
|
||||
/**
|
||||
* An early estimate of value; measurement is still occurring.
|
||||
* An early estimate of value; measurement is still occurring
|
||||
*/
|
||||
ONGOING,
|
||||
/**
|
||||
* An early estimate of value; processing is still occurring.
|
||||
* An early estimate of value; processing is still occurring
|
||||
*/
|
||||
EARLY,
|
||||
/**
|
||||
* The observation value should be treated with care.
|
||||
* The observation value should be treated with care
|
||||
*/
|
||||
QUESTIONABLE,
|
||||
/**
|
||||
* The result has been generated while calibration is occurring.
|
||||
* The result has been generated while calibration is occurring
|
||||
*/
|
||||
CALIBRATING,
|
||||
/**
|
||||
* The observation could not be completed because of an error.
|
||||
* The observation could not be completed because of an error
|
||||
*/
|
||||
ERROR,
|
||||
/**
|
||||
* No observation reliability value was available.
|
||||
* No observation reliability value was available
|
||||
*/
|
||||
UNKNOWN,
|
||||
/**
|
||||
|
@ -254,25 +254,25 @@ public class Observation extends DomainResource {
|
|||
}
|
||||
public String getSystem() {
|
||||
switch (this) {
|
||||
case OK: return "";
|
||||
case ONGOING: return "";
|
||||
case EARLY: return "";
|
||||
case QUESTIONABLE: return "";
|
||||
case CALIBRATING: return "";
|
||||
case ERROR: return "";
|
||||
case UNKNOWN: return "";
|
||||
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 "?";
|
||||
}
|
||||
}
|
||||
public String getDefinition() {
|
||||
switch (this) {
|
||||
case OK: return "The result has no reliability concerns.";
|
||||
case ONGOING: return "An early estimate of value; measurement is still occurring.";
|
||||
case EARLY: return "An early estimate of value; processing is still occurring.";
|
||||
case QUESTIONABLE: return "The observation value should be treated with care.";
|
||||
case CALIBRATING: return "The result has been generated while calibration is occurring.";
|
||||
case ERROR: return "The observation could not be completed because of an error.";
|
||||
case UNKNOWN: return "No observation reliability value was available.";
|
||||
case OK: return "The result has no reliability concerns";
|
||||
case ONGOING: return "An early estimate of value; measurement is still occurring";
|
||||
case EARLY: return "An early estimate of value; processing is still occurring";
|
||||
case QUESTIONABLE: return "The observation value should be treated with care";
|
||||
case CALIBRATING: return "The result has been generated while calibration is occurring";
|
||||
case ERROR: return "The observation could not be completed because of an error";
|
||||
case UNKNOWN: return "No observation reliability value was available";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -330,32 +330,32 @@ public class Observation extends DomainResource {
|
|||
}
|
||||
}
|
||||
|
||||
public enum ObservationRelationshiptypes {
|
||||
public enum ObservationRelationshipType {
|
||||
/**
|
||||
* 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.
|
||||
* 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,
|
||||
/**
|
||||
* This observation follows the target observation (e.g. timed tests such as Glucose Tolerance Test).
|
||||
* This observation follows the target observation (e.g. timed tests such as Glucose Tolerance Test)
|
||||
*/
|
||||
SEQUELTO,
|
||||
/**
|
||||
* This observation replaces a previous observation (i.e. a revised value). The target observation is now obsolete.
|
||||
* This observation replaces a previous observation (i.e. a revised value). The target observation is now obsolete
|
||||
*/
|
||||
REPLACES,
|
||||
/**
|
||||
* The value of the target observation qualifies (refines) the semantics of the source observation (e.g. a lipaemia measure target from a plasma measure).
|
||||
* The value of the target observation qualifies (refines) the semantics of the source observation (e.g. a lipaemia measure target from a plasma measure)
|
||||
*/
|
||||
QUALIFIEDBY,
|
||||
/**
|
||||
* The value of the target observation interferes (degardes quality, or prevents valid observation) with the semantics of the source observation (e.g. a hemolysis measure target from a plasma potassium measure which has no value).
|
||||
* The value of the target observation interferes (degardes quality, or prevents valid observation) with the semantics of the source observation (e.g. a hemolysis measure target from a plasma potassium measure which has no value)
|
||||
*/
|
||||
INTERFEREDBY,
|
||||
/**
|
||||
* added to help the parsers
|
||||
*/
|
||||
NULL;
|
||||
public static ObservationRelationshiptypes fromCode(String codeString) throws Exception {
|
||||
public static ObservationRelationshipType fromCode(String codeString) throws Exception {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("has-member".equals(codeString))
|
||||
|
@ -368,7 +368,7 @@ public class Observation extends DomainResource {
|
|||
return QUALIFIEDBY;
|
||||
if ("interfered-by".equals(codeString))
|
||||
return INTERFEREDBY;
|
||||
throw new Exception("Unknown ObservationRelationshiptypes code '"+codeString+"'");
|
||||
throw new Exception("Unknown ObservationRelationshipType code '"+codeString+"'");
|
||||
}
|
||||
public String toCode() {
|
||||
switch (this) {
|
||||
|
@ -382,21 +382,21 @@ public class Observation extends DomainResource {
|
|||
}
|
||||
public String getSystem() {
|
||||
switch (this) {
|
||||
case HASMEMBER: return "";
|
||||
case SEQUELTO: return "";
|
||||
case REPLACES: return "";
|
||||
case QUALIFIEDBY: return "";
|
||||
case INTERFEREDBY: return "";
|
||||
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";
|
||||
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 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).";
|
||||
case INTERFEREDBY: return "The value of the target observation interferes (degardes quality, or prevents valid observation) with the semantics of the source observation (e.g. a hemolysis measure target from a plasma potassium measure which has no value).";
|
||||
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 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)";
|
||||
case INTERFEREDBY: return "The value of the target observation interferes (degardes quality, or prevents valid observation) with the semantics of the source observation (e.g. a hemolysis measure target from a plasma potassium measure which has no value)";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -412,33 +412,33 @@ public class Observation extends DomainResource {
|
|||
}
|
||||
}
|
||||
|
||||
public static class ObservationRelationshiptypesEnumFactory implements EnumFactory<ObservationRelationshiptypes> {
|
||||
public ObservationRelationshiptypes fromCode(String codeString) throws IllegalArgumentException {
|
||||
public static class ObservationRelationshipTypeEnumFactory implements EnumFactory<ObservationRelationshipType> {
|
||||
public ObservationRelationshipType fromCode(String codeString) throws IllegalArgumentException {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("has-member".equals(codeString))
|
||||
return ObservationRelationshiptypes.HASMEMBER;
|
||||
return ObservationRelationshipType.HASMEMBER;
|
||||
if ("sequel-to".equals(codeString))
|
||||
return ObservationRelationshiptypes.SEQUELTO;
|
||||
return ObservationRelationshipType.SEQUELTO;
|
||||
if ("replaces".equals(codeString))
|
||||
return ObservationRelationshiptypes.REPLACES;
|
||||
return ObservationRelationshipType.REPLACES;
|
||||
if ("qualified-by".equals(codeString))
|
||||
return ObservationRelationshiptypes.QUALIFIEDBY;
|
||||
return ObservationRelationshipType.QUALIFIEDBY;
|
||||
if ("interfered-by".equals(codeString))
|
||||
return ObservationRelationshiptypes.INTERFEREDBY;
|
||||
throw new IllegalArgumentException("Unknown ObservationRelationshiptypes code '"+codeString+"'");
|
||||
return ObservationRelationshipType.INTERFEREDBY;
|
||||
throw new IllegalArgumentException("Unknown ObservationRelationshipType code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(ObservationRelationshiptypes code) {
|
||||
if (code == ObservationRelationshiptypes.HASMEMBER)
|
||||
public String toCode(ObservationRelationshipType code) {
|
||||
if (code == ObservationRelationshipType.HASMEMBER)
|
||||
return "has-member";
|
||||
if (code == ObservationRelationshiptypes.SEQUELTO)
|
||||
if (code == ObservationRelationshipType.SEQUELTO)
|
||||
return "sequel-to";
|
||||
if (code == ObservationRelationshiptypes.REPLACES)
|
||||
if (code == ObservationRelationshipType.REPLACES)
|
||||
return "replaces";
|
||||
if (code == ObservationRelationshiptypes.QUALIFIEDBY)
|
||||
if (code == ObservationRelationshipType.QUALIFIEDBY)
|
||||
return "qualified-by";
|
||||
if (code == ObservationRelationshiptypes.INTERFEREDBY)
|
||||
if (code == ObservationRelationshipType.INTERFEREDBY)
|
||||
return "interfered-by";
|
||||
return "?";
|
||||
}
|
||||
|
@ -691,7 +691,7 @@ public class Observation extends DomainResource {
|
|||
*/
|
||||
@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." )
|
||||
protected Enumeration<ObservationRelationshiptypes> type;
|
||||
protected Enumeration<ObservationRelationshipType> type;
|
||||
|
||||
/**
|
||||
* A reference to the observation that is related to this observation.
|
||||
|
@ -705,7 +705,7 @@ public class Observation extends DomainResource {
|
|||
*/
|
||||
protected Observation targetTarget;
|
||||
|
||||
private static final long serialVersionUID = 1078793488L;
|
||||
private static final long serialVersionUID = 1755337013L;
|
||||
|
||||
/*
|
||||
* Constructor
|
||||
|
@ -725,12 +725,12 @@ 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
|
||||
*/
|
||||
public Enumeration<ObservationRelationshiptypes> getTypeElement() {
|
||||
public Enumeration<ObservationRelationshipType> getTypeElement() {
|
||||
if (this.type == null)
|
||||
if (Configuration.errorOnAutoCreate())
|
||||
throw new Error("Attempt to auto-create ObservationRelatedComponent.type");
|
||||
else if (Configuration.doAutoCreate())
|
||||
this.type = new Enumeration<ObservationRelationshiptypes>(new ObservationRelationshiptypesEnumFactory()); // bb
|
||||
this.type = new Enumeration<ObservationRelationshipType>(new ObservationRelationshipTypeEnumFactory()); // bb
|
||||
return this.type;
|
||||
}
|
||||
|
||||
|
@ -745,7 +745,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
|
||||
*/
|
||||
public ObservationRelatedComponent setTypeElement(Enumeration<ObservationRelationshiptypes> value) {
|
||||
public ObservationRelatedComponent setTypeElement(Enumeration<ObservationRelationshipType> value) {
|
||||
this.type = value;
|
||||
return this;
|
||||
}
|
||||
|
@ -753,19 +753,19 @@ public class Observation extends DomainResource {
|
|||
/**
|
||||
* @return A code specifying the kind of relationship that exists with the target observation.
|
||||
*/
|
||||
public ObservationRelationshiptypes getType() {
|
||||
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.
|
||||
*/
|
||||
public ObservationRelatedComponent setType(ObservationRelationshiptypes value) {
|
||||
public ObservationRelatedComponent setType(ObservationRelationshipType value) {
|
||||
if (value == null)
|
||||
this.type = null;
|
||||
else {
|
||||
if (this.type == null)
|
||||
this.type = new Enumeration<ObservationRelationshiptypes>(new ObservationRelationshiptypesEnumFactory());
|
||||
this.type = new Enumeration<ObservationRelationshipType>(new ObservationRelationshipTypeEnumFactory());
|
||||
this.type.setValue(value);
|
||||
}
|
||||
return this;
|
||||
|
@ -1196,9 +1196,9 @@ public class Observation extends DomainResource {
|
|||
/**
|
||||
* 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.
|
||||
*/
|
||||
@Child(name = "applies", type = {DateTimeType.class, Period.class}, order=6, min=0, max=1)
|
||||
@Description(shortDefinition="Physiologically Relevant time/time-period for observation", formalDefinition="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." )
|
||||
protected Type applies;
|
||||
@Child(name = "effective", type = {DateTimeType.class, Period.class}, order=6, min=0, max=1)
|
||||
@Description(shortDefinition="Clinically Relevant time/time-period for observation", formalDefinition="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." )
|
||||
protected Type effective;
|
||||
|
||||
/**
|
||||
* The date and time this observation was made available.
|
||||
|
@ -1243,15 +1243,15 @@ public class Observation extends DomainResource {
|
|||
protected List<Identifier> identifier;
|
||||
|
||||
/**
|
||||
* The patient, or group of patients, location, or device whose characteristics (direct or indirect) are described by the observation and into whose record the observation is placed. Comments: Indirect characteristics may be those of a specimen, fetus,
|
||||
* The patient, or group of patients, location, or device whose characteristics (direct or indirect) are described by the observation and into whose record the observation is placed. Comments: Indirect characteristics may be those of a specimen, fetus, donor,
|
||||
other observer (for example a relative or EMT), or any observation made about the subject.
|
||||
*/
|
||||
@Child(name = "subject", type = {Patient.class, Group.class, Device.class, Location.class}, order=13, min=0, max=1)
|
||||
@Description(shortDefinition="Who and/or what this is about", formalDefinition="The patient, or group of patients, location, or device whose characteristics (direct or indirect) are described by the observation and into whose record the observation is placed. Comments: Indirect characteristics may be those of a specimen, fetus,\nother observer (for example a relative or EMT), or any observation made about the subject." )
|
||||
@Description(shortDefinition="Who and/or what this is about", formalDefinition="The patient, or group of patients, location, or device whose characteristics (direct or indirect) are described by the observation and into whose record the observation is placed. Comments: Indirect characteristics may be those of a specimen, fetus, donor, \nother observer (for example a relative or EMT), or any observation made about the subject." )
|
||||
protected Reference subject;
|
||||
|
||||
/**
|
||||
* The actual object that is the target of the reference (The patient, or group of patients, location, or device whose characteristics (direct or indirect) are described by the observation and into whose record the observation is placed. Comments: Indirect characteristics may be those of a specimen, fetus,
|
||||
* The actual object that is the target of the reference (The patient, or group of patients, location, or device whose characteristics (direct or indirect) are described by the observation and into whose record the observation is placed. Comments: Indirect characteristics may be those of a specimen, fetus, donor,
|
||||
other observer (for example a relative or EMT), or any observation made about the subject.)
|
||||
*/
|
||||
protected Resource subjectTarget;
|
||||
|
@ -1331,13 +1331,13 @@ other observer (for example a relative or EMT), or any observation made about th
|
|||
protected List<ObservationRelatedComponent> related;
|
||||
|
||||
/**
|
||||
* Some observations have multiple component observations. These component observations are expressed as separate code value pairs that share the same metadata. Examples include systolic and diastolic component observations for blood pressure measurement and multiple component observations for for genetics observations.
|
||||
* 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)
|
||||
@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 metadata. Examples include systolic and diastolic component observations for blood pressure measurement and multiple component observations for for genetics observations." )
|
||||
@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<ObservationComponentComponent> component;
|
||||
|
||||
private static final long serialVersionUID = -1610317643L;
|
||||
private static final long serialVersionUID = -1977481392L;
|
||||
|
||||
/*
|
||||
* Constructor
|
||||
|
@ -1610,39 +1610,39 @@ other observer (for example a relative or EMT), or any observation made about th
|
|||
}
|
||||
|
||||
/**
|
||||
* @return {@link #applies} (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.)
|
||||
* @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.)
|
||||
*/
|
||||
public Type getApplies() {
|
||||
return this.applies;
|
||||
public Type getEffective() {
|
||||
return this.effective;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {@link #applies} (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.)
|
||||
* @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.)
|
||||
*/
|
||||
public DateTimeType getAppliesDateTimeType() throws Exception {
|
||||
if (!(this.applies instanceof DateTimeType))
|
||||
throw new Exception("Type mismatch: the type DateTimeType was expected, but "+this.applies.getClass().getName()+" was encountered");
|
||||
return (DateTimeType) this.applies;
|
||||
public DateTimeType getEffectiveDateTimeType() throws Exception {
|
||||
if (!(this.effective instanceof DateTimeType))
|
||||
throw new Exception("Type mismatch: the type DateTimeType was expected, but "+this.effective.getClass().getName()+" was encountered");
|
||||
return (DateTimeType) this.effective;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {@link #applies} (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.)
|
||||
* @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.)
|
||||
*/
|
||||
public Period getAppliesPeriod() throws Exception {
|
||||
if (!(this.applies instanceof Period))
|
||||
throw new Exception("Type mismatch: the type Period was expected, but "+this.applies.getClass().getName()+" was encountered");
|
||||
return (Period) this.applies;
|
||||
public Period getEffectivePeriod() throws Exception {
|
||||
if (!(this.effective instanceof Period))
|
||||
throw new Exception("Type mismatch: the type Period was expected, but "+this.effective.getClass().getName()+" was encountered");
|
||||
return (Period) this.effective;
|
||||
}
|
||||
|
||||
public boolean hasApplies() {
|
||||
return this.applies != null && !this.applies.isEmpty();
|
||||
public boolean hasEffective() {
|
||||
return this.effective != null && !this.effective.isEmpty();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value {@link #applies} (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.)
|
||||
* @param value {@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.)
|
||||
*/
|
||||
public Observation setApplies(Type value) {
|
||||
this.applies = value;
|
||||
public Observation setEffective(Type value) {
|
||||
this.effective = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
@ -1891,7 +1891,7 @@ other observer (for example a relative or EMT), or any observation made about th
|
|||
}
|
||||
|
||||
/**
|
||||
* @return {@link #subject} (The patient, or group of patients, location, or device whose characteristics (direct or indirect) are described by the observation and into whose record the observation is placed. Comments: Indirect characteristics may be those of a specimen, fetus,
|
||||
* @return {@link #subject} (The patient, or group of patients, location, or device whose characteristics (direct or indirect) are described by the observation and into whose record the observation is placed. Comments: Indirect characteristics may be those of a specimen, fetus, donor,
|
||||
other observer (for example a relative or EMT), or any observation made about the subject.)
|
||||
*/
|
||||
public Reference getSubject() {
|
||||
|
@ -1908,7 +1908,7 @@ other observer (for example a relative or EMT), or any observation made about th
|
|||
}
|
||||
|
||||
/**
|
||||
* @param value {@link #subject} (The patient, or group of patients, location, or device whose characteristics (direct or indirect) are described by the observation and into whose record the observation is placed. Comments: Indirect characteristics may be those of a specimen, fetus,
|
||||
* @param value {@link #subject} (The patient, or group of patients, location, or device whose characteristics (direct or indirect) are described by the observation and into whose record the observation is placed. Comments: Indirect characteristics may be those of a specimen, fetus, donor,
|
||||
other observer (for example a relative or EMT), or any observation made about the subject.)
|
||||
*/
|
||||
public Observation setSubject(Reference value) {
|
||||
|
@ -1917,7 +1917,7 @@ other observer (for example a relative or EMT), or any observation made about th
|
|||
}
|
||||
|
||||
/**
|
||||
* @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. (The patient, or group of patients, location, or device whose characteristics (direct or indirect) are described by the observation and into whose record the observation is placed. Comments: Indirect characteristics may be those of a specimen, fetus,
|
||||
* @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. (The patient, or group of patients, location, or device whose characteristics (direct or indirect) are described by the observation and into whose record the observation is placed. Comments: Indirect characteristics may be those of a specimen, fetus, donor,
|
||||
other observer (for example a relative or EMT), or any observation made about the subject.)
|
||||
*/
|
||||
public Resource getSubjectTarget() {
|
||||
|
@ -1925,7 +1925,7 @@ other observer (for example a relative or EMT), or any observation made about th
|
|||
}
|
||||
|
||||
/**
|
||||
* @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. (The patient, or group of patients, location, or device whose characteristics (direct or indirect) are described by the observation and into whose record the observation is placed. Comments: Indirect characteristics may be those of a specimen, fetus,
|
||||
* @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. (The patient, or group of patients, location, or device whose characteristics (direct or indirect) are described by the observation and into whose record the observation is placed. Comments: Indirect characteristics may be those of a specimen, fetus, donor,
|
||||
other observer (for example a relative or EMT), or any observation made about the subject.)
|
||||
*/
|
||||
public Observation setSubjectTarget(Resource value) {
|
||||
|
@ -2239,7 +2239,7 @@ other observer (for example a relative or EMT), or any observation made about th
|
|||
}
|
||||
|
||||
/**
|
||||
* @return {@link #component} (Some observations have multiple component observations. These component observations are expressed as separate code value pairs that share the same metadata. Examples include systolic and diastolic component observations for blood pressure measurement and multiple component observations for for genetics observations.)
|
||||
* @return {@link #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.)
|
||||
*/
|
||||
public List<ObservationComponentComponent> getComponent() {
|
||||
if (this.component == null)
|
||||
|
@ -2257,7 +2257,7 @@ other observer (for example a relative or EMT), or any observation made about th
|
|||
}
|
||||
|
||||
/**
|
||||
* @return {@link #component} (Some observations have multiple component observations. These component observations are expressed as separate code value pairs that share the same metadata. Examples include systolic and diastolic component observations for blood pressure measurement and multiple component observations for for genetics observations.)
|
||||
* @return {@link #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.)
|
||||
*/
|
||||
// syntactic sugar
|
||||
public ObservationComponentComponent addComponent() { //3
|
||||
|
@ -2286,14 +2286,14 @@ other observer (for example a relative or EMT), or any observation made about th
|
|||
childrenList.add(new Property("dataAbsentReason", "CodeableConcept", "Provides a reason why the expected value in the element Observation.value[x] is missing.", 0, java.lang.Integer.MAX_VALUE, dataAbsentReason));
|
||||
childrenList.add(new Property("interpretation", "CodeableConcept", "The assessment made based on the result of the observation.", 0, java.lang.Integer.MAX_VALUE, interpretation));
|
||||
childrenList.add(new Property("comments", "string", "May include statements about significant, unexpected or unreliable values, or information about the source of the value where this may be relevant to the interpretation of the result.", 0, java.lang.Integer.MAX_VALUE, comments));
|
||||
childrenList.add(new Property("applies[x]", "dateTime|Period", "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.", 0, java.lang.Integer.MAX_VALUE, applies));
|
||||
childrenList.add(new Property("effective[x]", "dateTime|Period", "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.", 0, java.lang.Integer.MAX_VALUE, effective));
|
||||
childrenList.add(new Property("issued", "instant", "The date and time this observation was made available.", 0, java.lang.Integer.MAX_VALUE, issued));
|
||||
childrenList.add(new Property("status", "code", "The status of the result value.", 0, java.lang.Integer.MAX_VALUE, status));
|
||||
childrenList.add(new Property("reliability", "code", "An estimate of the degree to which quality issues have impacted on the value reported.", 0, java.lang.Integer.MAX_VALUE, reliability));
|
||||
childrenList.add(new Property("bodySite[x]", "CodeableConcept|Reference(BodySite)", "Indicates the site on the subject's body where the observation was made ( i.e. the target site).", 0, java.lang.Integer.MAX_VALUE, bodySite));
|
||||
childrenList.add(new Property("method", "CodeableConcept", "Indicates the mechanism used to perform the observation.", 0, java.lang.Integer.MAX_VALUE, method));
|
||||
childrenList.add(new Property("identifier", "Identifier", "A unique identifier for the simple observation.", 0, java.lang.Integer.MAX_VALUE, identifier));
|
||||
childrenList.add(new Property("subject", "Reference(Patient|Group|Device|Location)", "The patient, or group of patients, location, or device whose characteristics (direct or indirect) are described by the observation and into whose record the observation is placed. Comments: Indirect characteristics may be those of a specimen, fetus,\nother observer (for example a relative or EMT), or any observation made about the subject.", 0, java.lang.Integer.MAX_VALUE, subject));
|
||||
childrenList.add(new Property("subject", "Reference(Patient|Group|Device|Location)", "The patient, or group of patients, location, or device whose characteristics (direct or indirect) are described by the observation and into whose record the observation is placed. Comments: Indirect characteristics may be those of a specimen, fetus, donor, \nother observer (for example a relative or EMT), or any observation made about the subject.", 0, java.lang.Integer.MAX_VALUE, subject));
|
||||
childrenList.add(new Property("specimen", "Reference(Specimen)", "The specimen that was used when this observation was made.", 0, java.lang.Integer.MAX_VALUE, specimen));
|
||||
childrenList.add(new Property("performer", "Reference(Practitioner|Organization|Patient|RelatedPerson)", "Who was responsible for asserting the observed value as 'true'.", 0, java.lang.Integer.MAX_VALUE, performer));
|
||||
childrenList.add(new Property("device", "Reference(Device|DeviceMetric)", "The device used to generate the observation data.", 0, java.lang.Integer.MAX_VALUE, device));
|
||||
|
@ -2301,7 +2301,7 @@ other observer (for example a relative or EMT), or any observation made about th
|
|||
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("component", "", "Some observations have multiple component observations. These component observations are expressed as separate code value pairs that share the same metadata. 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));
|
||||
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));
|
||||
}
|
||||
|
||||
public Observation copy() {
|
||||
|
@ -2313,7 +2313,7 @@ other observer (for example a relative or EMT), or any observation made about th
|
|||
dst.dataAbsentReason = dataAbsentReason == null ? null : dataAbsentReason.copy();
|
||||
dst.interpretation = interpretation == null ? null : interpretation.copy();
|
||||
dst.comments = comments == null ? null : comments.copy();
|
||||
dst.applies = applies == null ? null : applies.copy();
|
||||
dst.effective = effective == null ? null : effective.copy();
|
||||
dst.issued = issued == null ? null : issued.copy();
|
||||
dst.status = status == null ? null : status.copy();
|
||||
dst.reliability = reliability == null ? null : reliability.copy();
|
||||
|
@ -2369,7 +2369,7 @@ other observer (for example a relative or EMT), or any observation made about th
|
|||
Observation o = (Observation) other;
|
||||
return compareDeep(code, o.code, true) && compareDeep(category, o.category, true) && compareDeep(value, o.value, true)
|
||||
&& compareDeep(dataAbsentReason, o.dataAbsentReason, true) && compareDeep(interpretation, o.interpretation, true)
|
||||
&& compareDeep(comments, o.comments, true) && compareDeep(applies, o.applies, true) && compareDeep(issued, o.issued, true)
|
||||
&& compareDeep(comments, o.comments, true) && compareDeep(effective, o.effective, true) && compareDeep(issued, o.issued, true)
|
||||
&& compareDeep(status, o.status, true) && compareDeep(reliability, o.reliability, true) && compareDeep(bodySite, o.bodySite, true)
|
||||
&& 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)
|
||||
|
@ -2393,7 +2393,7 @@ other observer (for example a relative or EMT), or any observation made about th
|
|||
return super.isEmpty() && (code == null || code.isEmpty()) && (category == null || category.isEmpty())
|
||||
&& (value == null || value.isEmpty()) && (dataAbsentReason == null || dataAbsentReason.isEmpty())
|
||||
&& (interpretation == null || interpretation.isEmpty()) && (comments == null || comments.isEmpty())
|
||||
&& (applies == null || applies.isEmpty()) && (issued == null || issued.isEmpty()) && (status == null || status.isEmpty())
|
||||
&& (effective == null || effective.isEmpty()) && (issued == null || issued.isEmpty()) && (status == null || status.isEmpty())
|
||||
&& (reliability == null || reliability.isEmpty()) && (bodySite == null || bodySite.isEmpty())
|
||||
&& (method == null || method.isEmpty()) && (identifier == null || identifier.isEmpty()) && (subject == null || subject.isEmpty())
|
||||
&& (specimen == null || specimen.isEmpty()) && (performer == null || performer.isEmpty())
|
||||
|
@ -2407,7 +2407,7 @@ other observer (for example a relative or EMT), or any observation made about th
|
|||
return ResourceType.Observation;
|
||||
}
|
||||
|
||||
@SearchParamDefinition(name="date", path="Observation.applies[x]", description="Obtained date/time. If the obtained element is a period, a date that falls in the period", type="date" )
|
||||
@SearchParamDefinition(name="date", path="Observation.effective[x]", description="Obtained date/time. If the obtained element is a period, a date that falls in the period", type="date" )
|
||||
public static final String SP_DATE = "date";
|
||||
@SearchParamDefinition(name="code", path="Observation.code", description="The code of the observation type", type="token" )
|
||||
public static final String SP_CODE = "code";
|
||||
|
|
|
@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
|
|||
|
||||
*/
|
||||
|
||||
// Generated on Fri, May 22, 2015 17:15-0400 for FHIR v0.5.0
|
||||
// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
|
||||
|
||||
import java.util.*;
|
||||
|
||||
|
@ -49,11 +49,11 @@ public class OperationDefinition extends DomainResource {
|
|||
|
||||
public enum OperationKind {
|
||||
/**
|
||||
* This operation is invoked as an operation.
|
||||
* This operation is invoked as an operation
|
||||
*/
|
||||
OPERATION,
|
||||
/**
|
||||
* This operation is a named query, invoked using the search mechanism.
|
||||
* This operation is a named query, invoked using the search mechanism
|
||||
*/
|
||||
QUERY,
|
||||
/**
|
||||
|
@ -78,15 +78,15 @@ public class OperationDefinition extends DomainResource {
|
|||
}
|
||||
public String getSystem() {
|
||||
switch (this) {
|
||||
case OPERATION: return "";
|
||||
case QUERY: return "";
|
||||
case OPERATION: return "http://hl7.org.fhir/operation-kind";
|
||||
case QUERY: return "http://hl7.org.fhir/operation-kind";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
public String getDefinition() {
|
||||
switch (this) {
|
||||
case OPERATION: return "This operation is invoked as an operation.";
|
||||
case QUERY: return "This operation is a named query, invoked using the search mechanism.";
|
||||
case OPERATION: return "This operation is invoked as an operation";
|
||||
case QUERY: return "This operation is a named query, invoked using the search mechanism";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
@ -121,11 +121,11 @@ public class OperationDefinition extends DomainResource {
|
|||
|
||||
public enum OperationParameterUse {
|
||||
/**
|
||||
* This is an input parameter.
|
||||
* This is an input parameter
|
||||
*/
|
||||
IN,
|
||||
/**
|
||||
* This is an output parameter.
|
||||
* This is an output parameter
|
||||
*/
|
||||
OUT,
|
||||
/**
|
||||
|
@ -150,15 +150,15 @@ public class OperationDefinition extends DomainResource {
|
|||
}
|
||||
public String getSystem() {
|
||||
switch (this) {
|
||||
case IN: return "";
|
||||
case OUT: return "";
|
||||
case IN: return "http://hl7.org.fhir/operation-parameter-use";
|
||||
case OUT: return "http://hl7.org.fhir/operation-parameter-use";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
public String getDefinition() {
|
||||
switch (this) {
|
||||
case IN: return "This is an input parameter.";
|
||||
case OUT: return "This is an output parameter.";
|
||||
case IN: return "This is an input parameter";
|
||||
case OUT: return "This is an output parameter";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
|
|
@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
|
|||
|
||||
*/
|
||||
|
||||
// Generated on Fri, May 22, 2015 17:15-0400 for FHIR v0.5.0
|
||||
// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
|
||||
|
||||
import java.util.*;
|
||||
|
||||
|
@ -48,19 +48,19 @@ public class OperationOutcome extends DomainResource {
|
|||
|
||||
public enum IssueSeverity {
|
||||
/**
|
||||
* The issue caused the action to fail, and no further checking could be performed.
|
||||
* The issue caused the action to fail, and no further checking could be performed
|
||||
*/
|
||||
FATAL,
|
||||
/**
|
||||
* The issue is sufficiently important to cause the action to fail.
|
||||
* The issue is sufficiently important to cause the action to fail
|
||||
*/
|
||||
ERROR,
|
||||
/**
|
||||
* The issue is not important enough to cause the action to fail, but may cause it to be performed suboptimally or in a way that is not as desired.
|
||||
* The issue is not important enough to cause the action to fail, but may cause it to be performed suboptimally or in a way that is not as desired
|
||||
*/
|
||||
WARNING,
|
||||
/**
|
||||
* The issue has no relation to the degree of success of the action.
|
||||
* The issue has no relation to the degree of success of the action
|
||||
*/
|
||||
INFORMATION,
|
||||
/**
|
||||
|
@ -91,19 +91,19 @@ public class OperationOutcome extends DomainResource {
|
|||
}
|
||||
public String getSystem() {
|
||||
switch (this) {
|
||||
case FATAL: return "";
|
||||
case ERROR: return "";
|
||||
case WARNING: return "";
|
||||
case INFORMATION: return "";
|
||||
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 "?";
|
||||
}
|
||||
}
|
||||
public String getDefinition() {
|
||||
switch (this) {
|
||||
case FATAL: return "The issue caused the action to fail, and no further checking could be performed.";
|
||||
case ERROR: return "The issue is sufficiently important to cause the action to fail.";
|
||||
case WARNING: return "The issue is not important enough to cause the action to fail, but may cause it to be performed suboptimally or in a way that is not as desired.";
|
||||
case INFORMATION: return "The issue has no relation to the degree of success of the action.";
|
||||
case FATAL: return "The issue caused the action to fail, and no further checking could be performed";
|
||||
case ERROR: return "The issue is sufficiently important to cause the action to fail";
|
||||
case WARNING: return "The issue is not important enough to cause the action to fail, but may cause it to be performed suboptimally or in a way that is not as desired";
|
||||
case INFORMATION: return "The issue has no relation to the degree of success of the action";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
|
|
@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
|
|||
|
||||
*/
|
||||
|
||||
// Generated on Fri, May 22, 2015 17:15-0400 for FHIR v0.5.0
|
||||
// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
|
||||
|
||||
import java.util.*;
|
||||
|
||||
|
|
|
@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
|
|||
|
||||
*/
|
||||
|
||||
// Generated on Fri, May 22, 2015 17:15-0400 for FHIR v0.5.0
|
||||
// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
|
||||
|
||||
import java.util.*;
|
||||
|
||||
|
@ -48,39 +48,39 @@ public class OrderResponse extends DomainResource {
|
|||
|
||||
public enum OrderStatus {
|
||||
/**
|
||||
* The order is known, but no processing has occurred at this time.
|
||||
* The order is known, but no processing has occurred at this time
|
||||
*/
|
||||
PENDING,
|
||||
/**
|
||||
* The order is undergoing initial processing to determine whether it will be accepted (usually this involves human review).
|
||||
* The order is undergoing initial processing to determine whether it will be accepted (usually this involves human review)
|
||||
*/
|
||||
REVIEW,
|
||||
/**
|
||||
* The order was rejected because of a workflow/business logic reason.
|
||||
* The order was rejected because of a workflow/business logic reason
|
||||
*/
|
||||
REJECTED,
|
||||
/**
|
||||
* The order was unable to be processed because of a technical error (i.e. unexpected error).
|
||||
* The order was unable to be processed because of a technical error (i.e. unexpected error)
|
||||
*/
|
||||
ERROR,
|
||||
/**
|
||||
* The order has been accepted, and work is in progress.
|
||||
* The order has been accepted, and work is in progress
|
||||
*/
|
||||
ACCEPTED,
|
||||
/**
|
||||
* Processing the order was halted at the initiators request.
|
||||
* Processing the order was halted at the initiators request
|
||||
*/
|
||||
CANCELLED,
|
||||
/**
|
||||
* The order has been cancelled and replaced by another.
|
||||
* The order has been cancelled and replaced by another
|
||||
*/
|
||||
REPLACED,
|
||||
/**
|
||||
* Processing the order was stopped because of some workflow/business logic reason.
|
||||
* Processing the order was stopped because of some workflow/business logic reason
|
||||
*/
|
||||
ABORTED,
|
||||
/**
|
||||
* The order has been completed.
|
||||
* The order has been completed
|
||||
*/
|
||||
COMPLETED,
|
||||
/**
|
||||
|
@ -126,29 +126,29 @@ public class OrderResponse extends DomainResource {
|
|||
}
|
||||
public String getSystem() {
|
||||
switch (this) {
|
||||
case PENDING: return "";
|
||||
case REVIEW: return "";
|
||||
case REJECTED: return "";
|
||||
case ERROR: return "";
|
||||
case ACCEPTED: return "";
|
||||
case CANCELLED: return "";
|
||||
case REPLACED: return "";
|
||||
case ABORTED: return "";
|
||||
case COMPLETED: return "";
|
||||
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 "?";
|
||||
}
|
||||
}
|
||||
public String getDefinition() {
|
||||
switch (this) {
|
||||
case PENDING: return "The order is known, but no processing has occurred at this time.";
|
||||
case REVIEW: return "The order is undergoing initial processing to determine whether it will be accepted (usually this involves human review).";
|
||||
case REJECTED: return "The order was rejected because of a workflow/business logic reason.";
|
||||
case ERROR: return "The order was unable to be processed because of a technical error (i.e. unexpected error).";
|
||||
case ACCEPTED: return "The order has been accepted, and work is in progress.";
|
||||
case CANCELLED: return "Processing the order was halted at the initiators request.";
|
||||
case REPLACED: return "The order has been cancelled and replaced by another.";
|
||||
case ABORTED: return "Processing the order was stopped because of some workflow/business logic reason.";
|
||||
case COMPLETED: return "The order has been completed.";
|
||||
case PENDING: return "The order is known, but no processing has occurred at this time";
|
||||
case REVIEW: return "The order is undergoing initial processing to determine whether it will be accepted (usually this involves human review)";
|
||||
case REJECTED: return "The order was rejected because of a workflow/business logic reason";
|
||||
case ERROR: return "The order was unable to be processed because of a technical error (i.e. unexpected error)";
|
||||
case ACCEPTED: return "The order has been accepted, and work is in progress";
|
||||
case CANCELLED: return "Processing the order was halted at the initiators request";
|
||||
case REPLACED: return "The order has been cancelled and replaced by another";
|
||||
case ABORTED: return "Processing the order was stopped because of some workflow/business logic reason";
|
||||
case COMPLETED: return "The order has been completed";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
|
|
|
@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
|
|||
|
||||
*/
|
||||
|
||||
// Generated on Fri, May 22, 2015 17:15-0400 for FHIR v0.5.0
|
||||
// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
|
||||
|
||||
import java.util.*;
|
||||
|
||||
|
|
|
@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
|
|||
|
||||
*/
|
||||
|
||||
// Generated on Fri, May 22, 2015 17:15-0400 for FHIR v0.5.0
|
||||
// Generated on Sun, May 31, 2015 15:45-0400 for FHIR v0.5.0
|
||||
|
||||
import java.util.*;
|
||||
|
||||
|
|
|
@ -29,11 +29,12 @@ package org.hl7.fhir.instance.model;
|
|||
|
||||
*/
|
||||
|
||||
// Generated on Fri, May 22, 2015 17:15-0400 for FHIR v0.5.0
|
||||
// Generated on Sun, May 31, 2015 15:45-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;
|
||||
|
@ -46,113 +47,13 @@ import org.hl7.fhir.instance.model.api.*;
|
|||
@ResourceDef(name="Patient", profile="http://hl7.org/fhir/Profile/Patient")
|
||||
public class Patient extends DomainResource {
|
||||
|
||||
public enum AdministrativeGender {
|
||||
/**
|
||||
* Male
|
||||
*/
|
||||
MALE,
|
||||
/**
|
||||
* Female
|
||||
*/
|
||||
FEMALE,
|
||||
/**
|
||||
* Other
|
||||
*/
|
||||
OTHER,
|
||||
/**
|
||||
* Unknown
|
||||
*/
|
||||
UNKNOWN,
|
||||
/**
|
||||
* added to help the parsers
|
||||
*/
|
||||
NULL;
|
||||
public static AdministrativeGender fromCode(String codeString) throws Exception {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("male".equals(codeString))
|
||||
return MALE;
|
||||
if ("female".equals(codeString))
|
||||
return FEMALE;
|
||||
if ("other".equals(codeString))
|
||||
return OTHER;
|
||||
if ("unknown".equals(codeString))
|
||||
return UNKNOWN;
|
||||
throw new Exception("Unknown AdministrativeGender code '"+codeString+"'");
|
||||
}
|
||||
public String toCode() {
|
||||
switch (this) {
|
||||
case MALE: return "male";
|
||||
case FEMALE: return "female";
|
||||
case OTHER: return "other";
|
||||
case UNKNOWN: return "unknown";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
public String getSystem() {
|
||||
switch (this) {
|
||||
case MALE: return "";
|
||||
case FEMALE: return "";
|
||||
case OTHER: return "";
|
||||
case UNKNOWN: return "";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
public String getDefinition() {
|
||||
switch (this) {
|
||||
case MALE: return "Male";
|
||||
case FEMALE: return "Female";
|
||||
case OTHER: return "Other";
|
||||
case UNKNOWN: return "Unknown";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
public String getDisplay() {
|
||||
switch (this) {
|
||||
case MALE: return "Male";
|
||||
case FEMALE: return "Female";
|
||||
case OTHER: return "Other";
|
||||
case UNKNOWN: return "Unknown";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public static class AdministrativeGenderEnumFactory implements EnumFactory<AdministrativeGender> {
|
||||
public AdministrativeGender fromCode(String codeString) throws IllegalArgumentException {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("male".equals(codeString))
|
||||
return AdministrativeGender.MALE;
|
||||
if ("female".equals(codeString))
|
||||
return AdministrativeGender.FEMALE;
|
||||
if ("other".equals(codeString))
|
||||
return AdministrativeGender.OTHER;
|
||||
if ("unknown".equals(codeString))
|
||||
return AdministrativeGender.UNKNOWN;
|
||||
throw new IllegalArgumentException("Unknown AdministrativeGender code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(AdministrativeGender code) {
|
||||
if (code == AdministrativeGender.MALE)
|
||||
return "male";
|
||||
if (code == AdministrativeGender.FEMALE)
|
||||
return "female";
|
||||
if (code == AdministrativeGender.OTHER)
|
||||
return "other";
|
||||
if (code == AdministrativeGender.UNKNOWN)
|
||||
return "unknown";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
|
||||
public enum LinkType {
|
||||
/**
|
||||
* The patient resource containing this link must no longer be used. The link points forward to another patient resource that must be used in lieu of the patient resource that contains the link.
|
||||
*/
|
||||
REPLACE,
|
||||
/**
|
||||
* The patient resource containing this link is in use and valid but not considered the main source of information about a patient. The link points forward to another patient resource that should be consulted to retrieve additional patient information.
|
||||
* The patient resource containing this link is in use and valid but not considered the main source of information about a patient. The link points forward to another patient resource that should be consulted to retrieve additional patient information
|
||||
*/
|
||||
REFER,
|
||||
/**
|
||||
|
@ -184,16 +85,16 @@ public class Patient extends DomainResource {
|
|||
}
|
||||
public String getSystem() {
|
||||
switch (this) {
|
||||
case REPLACE: return "";
|
||||
case REFER: return "";
|
||||
case SEEALSO: return "";
|
||||
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 "?";
|
||||
}
|
||||
}
|
||||
public String getDefinition() {
|
||||
switch (this) {
|
||||
case REPLACE: return "The patient resource containing this link must no longer be used. The link points forward to another patient resource that must be used in lieu of the patient resource that contains the link.";
|
||||
case REFER: return "The patient resource containing this link is in use and valid but not considered the main source of information about a patient. The link points forward to another patient resource that should be consulted to retrieve additional patient information.";
|
||||
case REFER: return "The patient resource containing this link is in use and valid but not considered the main source of information about a patient. The link points forward to another patient resource that should be consulted to retrieve additional patient information";
|
||||
case SEEALSO: return "The patient resource containing this link is in use and valid, but points to another patient resource that is known to contain data about the same person. Data in this resource might overlap or contradict information found in the other patient resource. This link does not indicate any relative importance of the resources concerned, and both should be regarded as equally valid.";
|
||||
default: return "?";
|
||||
}
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue