diff --git a/examples/src/main/java/example/ExampleProviders.java b/examples/src/main/java/example/ExampleProviders.java index e3c17420884..2b22983972e 100644 --- a/examples/src/main/java/example/ExampleProviders.java +++ b/examples/src/main/java/example/ExampleProviders.java @@ -37,7 +37,9 @@ public class PlainProvider { //START SNIPPET: plainProviderServer public class ExampleServlet extends RestfulServer { - /** Constructor */ + /** + * Constructor + */ public ExampleServlet() { /* * Plain providers are passed to the server in the same way @@ -56,21 +58,23 @@ public class ExampleServlet extends RestfulServer { } //END SNIPPET: plainProviderServer -//START SNIPPET: addressStrategy -public class MyServlet extends RestfulServer { + //START SNIPPET: addressStrategy + public class MyServlet extends RestfulServer { - /** Constructor */ - public MyServlet() { - - String serverBaseUrl = "http://foo.com/fhir"; - setServerAddressStrategy(new HardcodedServerAddressStrategy(serverBaseUrl)); - - // ...add some resource providers, etc... - List resourceProviders = new ArrayList(); - setResourceProviders(resourceProviders); - } - - } + /** + * Constructor + */ + public MyServlet() { + + String serverBaseUrl = "http://foo.com/fhir"; + setServerAddressStrategy(new HardcodedServerAddressStrategy(serverBaseUrl)); + + // ...add some resource providers, etc... + List resourceProviders = new ArrayList(); + setResourceProviders(resourceProviders); + } + + } //END SNIPPET: addressStrategy diff --git a/examples/src/main/java/example/PagingPatientProvider.java b/examples/src/main/java/example/PagingPatientProvider.java index 0e4de55f57a..40c2f7b3f77 100644 --- a/examples/src/main/java/example/PagingPatientProvider.java +++ b/examples/src/main/java/example/PagingPatientProvider.java @@ -37,7 +37,7 @@ public class PagingPatientProvider implements IResourceProvider { */ return new IBundleProvider() { - @Override + @Override public int size() { return matchingResourceIds.size(); } diff --git a/hapi-fhir-base/src/main/java/ca/uhn/fhir/context/BaseRuntimeElementDefinition.java b/hapi-fhir-base/src/main/java/ca/uhn/fhir/context/BaseRuntimeElementDefinition.java index df594b2bd84..ba87643ca92 100644 --- a/hapi-fhir-base/src/main/java/ca/uhn/fhir/context/BaseRuntimeElementDefinition.java +++ b/hapi-fhir-base/src/main/java/ca/uhn/fhir/context/BaseRuntimeElementDefinition.java @@ -105,7 +105,7 @@ public abstract class BaseRuntimeElementDefinition { return getImplementingClass().newInstance(); } else if (theArgument instanceof IValueSetEnumBinder) { return getImplementingClass().getConstructor(IValueSetEnumBinder.class).newInstance(theArgument); - }else { + } else { return getImplementingClass().getConstructor(IBaseEnumFactory.class).newInstance(theArgument); } } catch (InstantiationException e) { diff --git a/hapi-fhir-base/src/main/java/ca/uhn/fhir/context/FhirContext.java b/hapi-fhir-base/src/main/java/ca/uhn/fhir/context/FhirContext.java index 109b3af1044..cc354474c8b 100644 --- a/hapi-fhir-base/src/main/java/ca/uhn/fhir/context/FhirContext.java +++ b/hapi-fhir-base/src/main/java/ca/uhn/fhir/context/FhirContext.java @@ -28,6 +28,7 @@ import java.util.HashMap; import java.util.List; import java.util.Map; +import ca.uhn.fhir.model.base.composite.BaseCodingDt; import org.apache.commons.lang3.Validate; import org.apache.commons.lang3.text.WordUtils; import org.hl7.fhir.instance.model.IBase; diff --git a/hapi-fhir-base/src/main/java/ca/uhn/fhir/context/RuntimeChildEnumerationDatatypeDefinition.java b/hapi-fhir-base/src/main/java/ca/uhn/fhir/context/RuntimeChildEnumerationDatatypeDefinition.java index dc659f3b826..8618236db09 100644 --- a/hapi-fhir-base/src/main/java/ca/uhn/fhir/context/RuntimeChildEnumerationDatatypeDefinition.java +++ b/hapi-fhir-base/src/main/java/ca/uhn/fhir/context/RuntimeChildEnumerationDatatypeDefinition.java @@ -30,29 +30,29 @@ import ca.uhn.fhir.model.api.annotation.Description; public class RuntimeChildEnumerationDatatypeDefinition extends RuntimeChildPrimitiveDatatypeDefinition { - private Class> myBinderType; - private volatile IBaseEnumFactory myBinder; + private Class> myBinderType; + private volatile IBaseEnumFactory myBinder; - public RuntimeChildEnumerationDatatypeDefinition(Field theField, String theElementName, Child theChildAnnotation, Description theDescriptionAnnotation, Class theDatatype, Class> theBinderType) { - super(theField, theElementName, theDescriptionAnnotation, theChildAnnotation, theDatatype); + public RuntimeChildEnumerationDatatypeDefinition(Field theField, String theElementName, Child theChildAnnotation, Description theDescriptionAnnotation, Class theDatatype, Class> theBinderType) { + super(theField, theElementName, theDescriptionAnnotation, theChildAnnotation, theDatatype); - myBinderType = theBinderType; - } + myBinderType = theBinderType; + } - @Override - public IBaseEnumFactory getInstanceConstructorArguments() { - IBaseEnumFactory retVal = myBinder; - if (retVal == null) { - try { - retVal = myBinderType.newInstance(); - } catch (InstantiationException e) { - throw new IllegalStateException("Failed to instantiate " + myBinderType, e); - } catch (IllegalAccessException e) { - throw new IllegalStateException("Failed to instantiate " + myBinderType, e); - } - myBinder = retVal; - } - return retVal; - } + @Override + public IBaseEnumFactory getInstanceConstructorArguments() { + IBaseEnumFactory retVal = myBinder; + if (retVal == null) { + try { + retVal = myBinderType.newInstance(); + } catch (InstantiationException e) { + throw new IllegalStateException("Failed to instantiate " + myBinderType, e); + } catch (IllegalAccessException e) { + throw new IllegalStateException("Failed to instantiate " + myBinderType, e); + } + myBinder = retVal; + } + return retVal; + } } diff --git a/hapi-fhir-base/src/main/java/ca/uhn/fhir/context/RuntimeChildPrimitiveDatatypeDefinition.java b/hapi-fhir-base/src/main/java/ca/uhn/fhir/context/RuntimeChildPrimitiveDatatypeDefinition.java index ef5a7ecdefe..564aa30f333 100644 --- a/hapi-fhir-base/src/main/java/ca/uhn/fhir/context/RuntimeChildPrimitiveDatatypeDefinition.java +++ b/hapi-fhir-base/src/main/java/ca/uhn/fhir/context/RuntimeChildPrimitiveDatatypeDefinition.java @@ -32,7 +32,6 @@ public class RuntimeChildPrimitiveDatatypeDefinition extends BaseRuntimeChildDat public RuntimeChildPrimitiveDatatypeDefinition(Field theField, String theElementName, Description theDescriptionAnnotation, Child theChildAnnotation, Class theDatatype) { super(theField, theElementName, theChildAnnotation, theDescriptionAnnotation, theDatatype); } - - + } diff --git a/hapi-fhir-base/src/main/java/ca/uhn/fhir/model/api/ExtensionDt.java b/hapi-fhir-base/src/main/java/ca/uhn/fhir/model/api/ExtensionDt.java index 95a4374e695..831f57232b1 100644 --- a/hapi-fhir-base/src/main/java/ca/uhn/fhir/model/api/ExtensionDt.java +++ b/hapi-fhir-base/src/main/java/ca/uhn/fhir/model/api/ExtensionDt.java @@ -31,7 +31,7 @@ import ca.uhn.fhir.model.api.annotation.Child; import ca.uhn.fhir.model.api.annotation.DatatypeDef; import ca.uhn.fhir.model.primitive.StringDt; -@DatatypeDef(name="Extension") +@DatatypeDef(name = "Extension") public class ExtensionDt extends BaseIdentifiableElement implements ICompositeDatatype, IBaseExtension { private boolean myModifier; @@ -39,7 +39,7 @@ public class ExtensionDt extends BaseIdentifiableElement implements ICompositeDa @Child(name="url", type=StringDt.class, order=0, min=1, max=1) private StringDt myUrl; - @Child(name="value", type=IDatatype.class, order=1, min=0, max=1) + @Child(name = "value", type = IDatatype.class, order = 1, min = 0, max = 1) private IBaseDatatype myValue; public ExtensionDt() { @@ -66,12 +66,12 @@ public class ExtensionDt extends BaseIdentifiableElement implements ICompositeDa } /** - * Returns the URL for this extension. + * Returns the URL for this extension. *

* Note that before HAPI 0.9 this method returned a {@link StringDt} but as of * HAPI 0.9 this method returns a plain string. This was changed because it does not make sense to use a StringDt here * since the URL itself can not contain extensions and it was therefore misleading. - *

+ *

*/ public String getUrl() { return myUrl != null ? myUrl.getValue() : null; @@ -79,7 +79,7 @@ public class ExtensionDt extends BaseIdentifiableElement implements ICompositeDa /** * Retained for backward compatibility - * + * * @see ExtensionDt#getUrl() */ public String getUrlAsString() { diff --git a/hapi-fhir-base/src/main/java/ca/uhn/fhir/model/api/IFhirVersion.java b/hapi-fhir-base/src/main/java/ca/uhn/fhir/model/api/IFhirVersion.java index b500b9db3b8..7d3e0a7ca88 100644 --- a/hapi-fhir-base/src/main/java/ca/uhn/fhir/model/api/IFhirVersion.java +++ b/hapi-fhir-base/src/main/java/ca/uhn/fhir/model/api/IFhirVersion.java @@ -27,6 +27,7 @@ import org.hl7.fhir.instance.model.IBaseResource; import ca.uhn.fhir.context.FhirVersionEnum; import ca.uhn.fhir.context.RuntimeResourceDefinition; +import ca.uhn.fhir.model.base.composite.BaseCodingDt; import ca.uhn.fhir.rest.server.IResourceProvider; import ca.uhn.fhir.rest.server.IServerConformanceProvider; import ca.uhn.fhir.rest.server.RestfulServer; @@ -49,4 +50,7 @@ public interface IFhirVersion { Class getContainedType(); + BaseCodingDt newCodingDt(); + + } diff --git a/hapi-fhir-base/src/main/java/ca/uhn/fhir/model/api/ResourceMetadataKeyEnum.java b/hapi-fhir-base/src/main/java/ca/uhn/fhir/model/api/ResourceMetadataKeyEnum.java index 0cf0e4389b1..c77128a1ce7 100644 --- a/hapi-fhir-base/src/main/java/ca/uhn/fhir/model/api/ResourceMetadataKeyEnum.java +++ b/hapi-fhir-base/src/main/java/ca/uhn/fhir/model/api/ResourceMetadataKeyEnum.java @@ -28,6 +28,7 @@ import java.util.Date; import java.util.List; import java.util.Map; +import ca.uhn.fhir.model.base.composite.BaseCodingDt; import org.apache.commons.lang3.StringUtils; import ca.uhn.fhir.model.primitive.DecimalDt; @@ -62,6 +63,36 @@ import ca.uhn.fhir.rest.server.exceptions.InternalErrorException; */ public abstract class ResourceMetadataKeyEnum { + public static final ResourceMetadataKeyEnum> SECURITY_LABELS = new ResourceMetadataKeyEnum>("SECURITY_LABELS") { + @Override + public List get(IResource resource) { + Object obj = resource.getResourceMetadata().get(SECURITY_LABELS); + if (obj == null) { + return null; + } else { + try { + List securityLabels = (List) obj; + if (securityLabels.isEmpty()) + return null; + else + return securityLabels; + } catch (ClassCastException e) { + throw new InternalErrorException("Found an object of type '" + obj.getClass().getCanonicalName() + "' in resource metadata for key SECURITY_LABELS - Expected " + + BaseCodingDt.class.getCanonicalName()); + + } + + } + } + + @Override + public void put(IResource iResource, List labels) { + iResource.getResourceMetadata().put(SECURITY_LABELS, labels); + } + + }; + + /** * If present and populated with a date/time (as an instance of {@link InstantDt}), this value is an indication that the resource is in the deleted state. This key is only used in a limited number * of scenarios, such as POSTing transaction bundles to a server, or returning resource history. diff --git a/hapi-fhir-base/src/main/java/ca/uhn/fhir/model/api/annotation/Child.java b/hapi-fhir-base/src/main/java/ca/uhn/fhir/model/api/annotation/Child.java index 3e80a0c0203..8f001f3da6a 100644 --- a/hapi-fhir-base/src/main/java/ca/uhn/fhir/model/api/annotation/Child.java +++ b/hapi-fhir-base/src/main/java/ca/uhn/fhir/model/api/annotation/Child.java @@ -99,10 +99,10 @@ public @interface Child { // * HumanNameDt which adds extensions of your choosing) you could do that using a replacement field. // */ // String replaces() default ""; - + /** * For children which accept an {@link Enumeration} as the type, this - * field indicates the type to use for the enum factory + * field indicates the type to use for the enum factory */ Class> enumFactory() default NoEnumFactory.class; @@ -111,7 +111,7 @@ public @interface Child { private NoEnumFactory() { // non instantiable } - + @Override public Enum fromCode(String theCodeString) throws IllegalArgumentException { return null; @@ -121,7 +121,7 @@ public @interface Child { public String toCode(Enum theCode) { return null; } - + } } diff --git a/hapi-fhir-base/src/main/java/ca/uhn/fhir/model/api/annotation/SearchParamDefinition.java b/hapi-fhir-base/src/main/java/ca/uhn/fhir/model/api/annotation/SearchParamDefinition.java index 84ec07659dd..6f62be61f23 100644 --- a/hapi-fhir-base/src/main/java/ca/uhn/fhir/model/api/annotation/SearchParamDefinition.java +++ b/hapi-fhir-base/src/main/java/ca/uhn/fhir/model/api/annotation/SearchParamDefinition.java @@ -59,9 +59,9 @@ public @interface SearchParamDefinition { *

*/ String[] compositeOf() default {}; - + /** - * For search params of type "reference", this can optionally be used to + * For search params of type "reference", this can optionally be used to * specify the resource type(s) that this parameter applies to. */ Class[] target() default {}; diff --git a/hapi-fhir-base/src/main/java/ca/uhn/fhir/model/base/composite/BaseCodingDt.java b/hapi-fhir-base/src/main/java/ca/uhn/fhir/model/base/composite/BaseCodingDt.java index 0fa0f93cda7..9bc961b5def 100644 --- a/hapi-fhir-base/src/main/java/ca/uhn/fhir/model/base/composite/BaseCodingDt.java +++ b/hapi-fhir-base/src/main/java/ca/uhn/fhir/model/base/composite/BaseCodingDt.java @@ -65,10 +65,17 @@ public abstract class BaseCodingDt extends BaseIdentifiableElement implements IC * A representation of the meaning of the code in the system, following the rules of the system. *

*/ - public abstract StringDt getDisplayElement(); - + public abstract StringDt getDisplayElement(); + public abstract BaseCodingDt setDisplay( String theString); + /* + todo: handle version + public abstract StringDt getVersion(); + + public abstract BaseCodingDt setVersion ( String theString); + */ + /** * {@inheritDoc} */ diff --git a/hapi-fhir-base/src/main/java/ca/uhn/fhir/model/primitive/IdDt.java b/hapi-fhir-base/src/main/java/ca/uhn/fhir/model/primitive/IdDt.java index a1e3aaf5a29..c7b646ddeb0 100644 --- a/hapi-fhir-base/src/main/java/ca/uhn/fhir/model/primitive/IdDt.java +++ b/hapi-fhir-base/src/main/java/ca/uhn/fhir/model/primitive/IdDt.java @@ -127,7 +127,7 @@ public class IdDt extends UriDt implements IPrimitiveDatatype { /** * Constructor - * + * * @param theResourceType * The resource type (e.g. "Patient") * @param theId diff --git a/hapi-fhir-base/src/main/java/ca/uhn/fhir/parser/JsonParser.java b/hapi-fhir-base/src/main/java/ca/uhn/fhir/parser/JsonParser.java index 6ebb02a9352..2ef153675eb 100644 --- a/hapi-fhir-base/src/main/java/ca/uhn/fhir/parser/JsonParser.java +++ b/hapi-fhir-base/src/main/java/ca/uhn/fhir/parser/JsonParser.java @@ -49,6 +49,8 @@ import javax.json.stream.JsonGenerator; import javax.json.stream.JsonGeneratorFactory; import javax.json.stream.JsonParsingException; +import ca.uhn.fhir.model.base.composite.BaseCodingDt; +import ca.uhn.fhir.model.primitive.*; import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.Validate; import org.hl7.fhir.instance.model.IBase; @@ -550,11 +552,11 @@ public class JsonParser extends BaseParser implements IParser { if (primitive) { if (nextValue instanceof ISupportsUndeclaredExtensions) { List ext = ((ISupportsUndeclaredExtensions) nextValue).getUndeclaredExtensions(); - addToHeldExtensions(valueIdx, ext, extensions,false); + addToHeldExtensions(valueIdx, ext, extensions, false); ext = ((ISupportsUndeclaredExtensions) nextValue).getUndeclaredModifierExtensions(); - addToHeldExtensions(valueIdx, ext, modifierExtensions,true); - }else { + addToHeldExtensions(valueIdx, ext, modifierExtensions, true); + } else { if (nextValue instanceof IBaseHasExtensions) { IBaseHasExtensions element = (IBaseHasExtensions) nextValue; List> ext = element.getExtension(); @@ -668,11 +670,26 @@ public class JsonParser extends BaseParser implements IParser { if (myContext.getVersion().getVersion().isNewerThan(FhirVersionEnum.DSTU1) && theResource instanceof IResource) { IResource resource = (IResource) theResource; - if (!ElementUtil.isEmpty(resource.getId().getVersionIdPart(), ResourceMetadataKeyEnum.UPDATED.get(resource))) { + List securityLabels = ResourceMetadataKeyEnum.SECURITY_LABELS.get(resource); + if (securityLabels == null) { + securityLabels = Collections.emptyList(); + } + if (!ElementUtil.isEmpty(resource.getId().getVersionIdPart(), ResourceMetadataKeyEnum.UPDATED.get(resource), securityLabels)) { theEventWriter.writeStartObject("meta"); writeOptionalTagWithTextNode(theEventWriter, "versionId", resource.getId().getVersionIdPart()); writeOptionalTagWithTextNode(theEventWriter, "lastUpdated", ResourceMetadataKeyEnum.UPDATED.get(resource)); - theEventWriter.writeEnd(); + + if (securityLabels.isEmpty()==false) { + theEventWriter.writeStartArray("security"); + for (BaseCodingDt securityLabel : securityLabels) { + theEventWriter.writeStartObject(); + BaseRuntimeElementCompositeDefinition def = (BaseRuntimeElementCompositeDefinition) myContext.getElementDefinition(securityLabel.getClass()); + encodeCompositeElementChildrenToStreamWriter(resDef, resource, securityLabel, theEventWriter, def.getChildren(), theIsSubElementWithinResource); + theEventWriter.writeEnd(); + } + theEventWriter.writeEnd(); + } + theEventWriter.writeEnd(); //end meta } } @@ -1342,7 +1359,7 @@ public class JsonParser extends BaseParser implements IParser { if (myModifier) { theEventWriter.writeStartArray("modifierExtension"); - }else { + } else { theEventWriter.writeStartArray("extension"); } diff --git a/hapi-fhir-base/src/main/java/ca/uhn/fhir/parser/ParserState.java b/hapi-fhir-base/src/main/java/ca/uhn/fhir/parser/ParserState.java index e234453da87..d3f800bf13f 100644 --- a/hapi-fhir-base/src/main/java/ca/uhn/fhir/parser/ParserState.java +++ b/hapi-fhir-base/src/main/java/ca/uhn/fhir/parser/ParserState.java @@ -30,6 +30,8 @@ import java.util.Map; import javax.xml.stream.events.StartElement; import javax.xml.stream.events.XMLEvent; +import ca.uhn.fhir.model.base.composite.BaseCodingDt; + import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.Validate; import org.hl7.fhir.instance.model.IBase; @@ -52,30 +54,25 @@ import ca.uhn.fhir.context.ConfigurationException; import ca.uhn.fhir.context.FhirContext; import ca.uhn.fhir.context.FhirVersionEnum; import ca.uhn.fhir.context.RuntimeChildDeclaredExtensionDefinition; -import ca.uhn.fhir.context.RuntimeElemContainedResources; import ca.uhn.fhir.context.RuntimePrimitiveDatatypeDefinition; import ca.uhn.fhir.context.RuntimePrimitiveDatatypeNarrativeDefinition; import ca.uhn.fhir.context.RuntimeResourceBlockDefinition; import ca.uhn.fhir.context.RuntimeResourceDefinition; -import ca.uhn.fhir.context.RuntimeResourceReferenceDefinition; import ca.uhn.fhir.model.api.BaseBundle; import ca.uhn.fhir.model.api.Bundle; import ca.uhn.fhir.model.api.BundleEntry; import ca.uhn.fhir.model.api.ExtensionDt; import ca.uhn.fhir.model.api.ICompositeDatatype; -import ca.uhn.fhir.model.api.ICompositeElement; import ca.uhn.fhir.model.api.IElement; import ca.uhn.fhir.model.api.IExtension; import ca.uhn.fhir.model.api.IFhirVersion; import ca.uhn.fhir.model.api.IIdentifiableElement; import ca.uhn.fhir.model.api.IPrimitiveDatatype; import ca.uhn.fhir.model.api.IResource; -import ca.uhn.fhir.model.api.IResourceBlock; import ca.uhn.fhir.model.api.ISupportsUndeclaredExtensions; import ca.uhn.fhir.model.api.ResourceMetadataKeyEnum; import ca.uhn.fhir.model.api.Tag; import ca.uhn.fhir.model.api.TagList; -import ca.uhn.fhir.model.base.composite.BaseContainedDt; import ca.uhn.fhir.model.base.composite.BaseResourceReferenceDt; import ca.uhn.fhir.model.base.resource.BaseBinary; import ca.uhn.fhir.model.base.resource.ResourceMetadataMap; @@ -826,16 +823,16 @@ class ParserState { } else { if (theIsModifier == false) { if (getCurrentElement() instanceof IBaseHasExtensions) { - IBaseExtension ext = ((IBaseHasExtensions)getCurrentElement()).addExtension(); + IBaseExtension ext = ((IBaseHasExtensions) getCurrentElement()).addExtension(); ext.setUrl(theUrlAttr); ParserState.ExtensionState newState = new ExtensionState(myPreResourceState, ext); push(newState); } else { throw new DataFormatException("Type " + getCurrentElement() + " does not support undeclared extentions, and found an extension with URL: " + theUrlAttr); } - }else { + } else { if (getCurrentElement() instanceof IBaseHasModifierExtensions) { - IBaseExtension ext = ((IBaseHasModifierExtensions)getCurrentElement()).addModifierExtension(); + IBaseExtension ext = ((IBaseHasModifierExtensions) getCurrentElement()).addModifierExtension(); ext.setUrl(theUrlAttr); ParserState.ExtensionState newState = new ExtensionState(myPreResourceState, ext); push(newState); @@ -1664,6 +1661,21 @@ class ParserState { } + + private class SecurityLabelElementStateHapi extends ElementCompositeState { + + public SecurityLabelElementStateHapi(ParserState.PreResourceState thePreResourceState,BaseRuntimeElementCompositeDefinition theDef, BaseCodingDt codingDt) { + super(thePreResourceState, theDef, codingDt); + } + + @Override + public void endingElement() throws DataFormatException { + pop(); + } + + + } + private class MetaElementState extends BaseState { private ResourceMetadataMap myMap; @@ -1687,6 +1699,17 @@ class ParserState { InstantDt updated = new InstantDt(); push(new PrimitiveState(getPreResourceState(), updated)); myMap.put(ResourceMetadataKeyEnum.UPDATED, updated); + } else if (theLocalPart.equals("security")) { + @SuppressWarnings("unchecked") + List securityLabels = (List) myMap.get(ResourceMetadataKeyEnum.SECURITY_LABELS); + if (securityLabels == null) { + securityLabels = new ArrayList(); + myMap.put(ResourceMetadataKeyEnum.SECURITY_LABELS, securityLabels); + } + BaseCodingDt securityLabel= myContext.getVersion().newCodingDt(); + BaseRuntimeElementCompositeDefinition codinfDef = (BaseRuntimeElementCompositeDefinition) myContext.getElementDefinition(securityLabel.getClass()); + push(new SecurityLabelElementStateHapi(getPreResourceState(), codinfDef, securityLabel)); + securityLabels.add(securityLabel); } else { throw new DataFormatException("Unexpected element '" + theLocalPart + "' found in 'meta' element"); } @@ -1928,7 +1951,6 @@ class ParserState { return true; } - @SuppressWarnings("unchecked") @Override public void wereBack() { myContext.newTerser().visit(myInstance, new IModelVisitor() { diff --git a/hapi-fhir-base/src/main/java/ca/uhn/fhir/parser/XmlParser.java b/hapi-fhir-base/src/main/java/ca/uhn/fhir/parser/XmlParser.java index 4a3f95d9794..b0d3b9cc2a8 100644 --- a/hapi-fhir-base/src/main/java/ca/uhn/fhir/parser/XmlParser.java +++ b/hapi-fhir-base/src/main/java/ca/uhn/fhir/parser/XmlParser.java @@ -27,10 +27,9 @@ import java.io.Reader; import java.io.StringWriter; import java.io.Writer; import java.util.ArrayList; -import java.util.Collection; +import java.util.Collections; import java.util.Iterator; import java.util.List; -import java.util.ListIterator; import javax.xml.namespace.QName; import javax.xml.stream.FactoryConfigurationError; @@ -71,14 +70,12 @@ import ca.uhn.fhir.context.RuntimeChildUndeclaredExtensionDefinition; import ca.uhn.fhir.context.RuntimeResourceDefinition; import ca.uhn.fhir.model.api.Bundle; import ca.uhn.fhir.model.api.BundleEntry; -import ca.uhn.fhir.model.api.ExtensionDt; -import ca.uhn.fhir.model.api.IElement; -import ca.uhn.fhir.model.api.IPrimitiveDatatype; import ca.uhn.fhir.model.api.IResource; import ca.uhn.fhir.model.api.ISupportsUndeclaredExtensions; import ca.uhn.fhir.model.api.ResourceMetadataKeyEnum; import ca.uhn.fhir.model.api.Tag; import ca.uhn.fhir.model.api.TagList; +import ca.uhn.fhir.model.base.composite.BaseCodingDt; import ca.uhn.fhir.model.base.composite.BaseContainedDt; import ca.uhn.fhir.model.base.composite.BaseNarrativeDt; import ca.uhn.fhir.model.base.composite.BaseResourceReferenceDt; @@ -88,7 +85,6 @@ import ca.uhn.fhir.model.primitive.InstantDt; import ca.uhn.fhir.model.primitive.StringDt; import ca.uhn.fhir.model.primitive.XhtmlDt; import ca.uhn.fhir.narrative.INarrativeGenerator; -import ca.uhn.fhir.rest.method.BaseMethodBinding; import ca.uhn.fhir.util.NonPrettyPrintWriterWrapper; import ca.uhn.fhir.util.PrettyPrintWriterWrapper; import ca.uhn.fhir.util.XmlUtil; @@ -109,7 +105,8 @@ public class XmlParser extends BaseParser implements IParser { private boolean myPrettyPrint; /** - * Do not use this constructor, the recommended way to obtain a new instance of the XML parser is to invoke {@link FhirContext#newXmlParser()}. + * Do not use this constructor, the recommended way to obtain a new instance of the XML parser is to invoke + * {@link FhirContext#newXmlParser()}. */ public XmlParser(FhirContext theContext) { super(theContext); @@ -438,8 +435,7 @@ public class XmlParser extends BaseParser implements IParser { theEventWriter.close(); } - private void encodeChildElementToStreamWriter(IBaseResource theResource, XMLStreamWriter theEventWriter, IBase nextValue, String childName, BaseRuntimeElementDefinition childDef, - String theExtensionUrl, boolean theIncludedResource) throws XMLStreamException, DataFormatException { + private void encodeChildElementToStreamWriter(IBaseResource theResource, XMLStreamWriter theEventWriter, IBase nextValue, String childName, BaseRuntimeElementDefinition childDef, String theExtensionUrl, boolean theIncludedResource) throws XMLStreamException, DataFormatException { if (nextValue.isEmpty()) { if (childDef.getChildType() == ChildTypeEnum.CONTAINED_RESOURCES && getContainedResources().isEmpty() == false && theIncludedResource == false) { // We still want to go in.. @@ -483,9 +479,10 @@ public class XmlParser extends BaseParser implements IParser { case CONTAINED_RESOURCES: { BaseContainedDt value = (BaseContainedDt) nextValue; /* - * Disable per #103 for (IResource next : value.getContainedResources()) { if (getContainedResources().getResourceId(next) != null) { continue; } - * theEventWriter.writeStartElement("contained"); encodeResourceToXmlStreamWriter(next, theEventWriter, true, fixContainedResourceId(next.getId().getValue())); - * theEventWriter.writeEndElement(); } + * Disable per #103 for (IResource next : value.getContainedResources()) { if + * (getContainedResources().getResourceId(next) != null) { continue; } + * theEventWriter.writeStartElement("contained"); encodeResourceToXmlStreamWriter(next, theEventWriter, + * true, fixContainedResourceId(next.getId().getValue())); theEventWriter.writeEndElement(); } */ for (IBaseResource next : getContainedResources().getContainedResources()) { IdDt resourceId = getContainedResources().getResourceId(next); @@ -517,13 +514,12 @@ public class XmlParser extends BaseParser implements IParser { } - private void encodeCompositeElementChildrenToStreamWriter(IBaseResource theResource, IBase theElement, XMLStreamWriter theEventWriter, List children, - boolean theIncludedResource) throws XMLStreamException, DataFormatException { + private void encodeCompositeElementChildrenToStreamWriter(IBaseResource theResource, IBase theElement, XMLStreamWriter theEventWriter, List children, boolean theIncludedResource) throws XMLStreamException, DataFormatException { for (BaseRuntimeChildDefinition nextChild : children) { if (nextChild.getElementName().equals("extension") || nextChild.getElementName().equals("modifierExtension")) { continue; } - + if (nextChild instanceof RuntimeChildNarrativeDefinition && !theIncludedResource) { INarrativeGenerator gen = myContext.getNarrativeGenerator(); if (theResource instanceof IResource) { @@ -578,7 +574,7 @@ public class XmlParser extends BaseParser implements IParser { // This is called for the Query resource in DSTU1 only extensionUrl = ((IBaseExtension) nextValue).getUrl(); encodeChildElementToStreamWriter(theResource, theEventWriter, nextValue, childName, childDef, extensionUrl, theIncludedResource); - + } else if (extensionUrl != null && childName.equals("extension") == false) { RuntimeChildDeclaredExtensionDefinition extDef = (RuntimeChildDeclaredExtensionDefinition) nextChild; if (extDef.isModifier()) { @@ -599,8 +595,7 @@ public class XmlParser extends BaseParser implements IParser { } } - private void encodeCompositeElementToStreamWriter(IBaseResource theResource, IBase theElement, XMLStreamWriter theEventWriter, BaseRuntimeElementCompositeDefinition theElementDefinition, - boolean theIncludedResource) throws XMLStreamException, DataFormatException { + private void encodeCompositeElementToStreamWriter(IBaseResource theResource, IBase theElement, XMLStreamWriter theEventWriter, BaseRuntimeElementCompositeDefinition theElementDefinition, boolean theIncludedResource) throws XMLStreamException, DataFormatException { encodeExtensionsIfPresent(theResource, theEventWriter, theElement, theIncludedResource); encodeCompositeElementChildrenToStreamWriter(theResource, theElement, theEventWriter, theElementDefinition.getExtensions(), theIncludedResource); encodeCompositeElementChildrenToStreamWriter(theResource, theElement, theEventWriter, theElementDefinition.getChildren(), theIncludedResource); @@ -623,8 +618,9 @@ public class XmlParser extends BaseParser implements IParser { } /** - * This is just to work around the fact that casting java.util.List to java.util.List> seems to be - * rejected by the compiler some of the time. + * This is just to work around the fact that casting java.util.List to + * java.util.List> seems to be rejected by the compiler + * some of the time. */ private > List> toBaseExtensionList(final List theList) { List> retVal = new ArrayList>(theList.size()); @@ -647,11 +643,10 @@ public class XmlParser extends BaseParser implements IParser { } } - private void encodeResourceToStreamWriterInDstu2Format(RuntimeResourceDefinition theResDef, IBaseResource theResource, IBase theElement, XMLStreamWriter theEventWriter, - BaseRuntimeElementCompositeDefinition resDef, boolean theIncludedResource) throws XMLStreamException, DataFormatException { + private void encodeResourceToStreamWriterInDstu2Format(RuntimeResourceDefinition theResDef, IBaseResource theResource, IBase theElement, XMLStreamWriter theEventWriter, BaseRuntimeElementCompositeDefinition resDef, boolean theIncludedResource) throws XMLStreamException, DataFormatException { /* - * DSTU2 requires extensions to come in a specific spot within the encoded content - This is a bit of a messy way to make that happen, but hopefully this won't matter as much once we use the - * HL7 structures + * DSTU2 requires extensions to come in a specific spot within the encoded content - This is a bit of a messy + * way to make that happen, but hopefully this won't matter as much once we use the HL7 structures */ List preExtensionChildren = new ArrayList(); @@ -741,12 +736,17 @@ public class XmlParser extends BaseParser implements IParser { if (myContext.getVersion().getVersion().isNewerThan(FhirVersionEnum.DSTU1)) { // DSTU2+ + IResource resource = (IResource) theResource; writeOptionalTagWithValue(theEventWriter, "id", theResourceId); InstantDt updated = (InstantDt) resource.getResourceMetadata().get(ResourceMetadataKeyEnum.UPDATED); IdDt resourceId = resource.getId(); - if (resourceId != null && isNotBlank(resourceId.getVersionIdPart()) || (updated != null && !updated.isEmpty())) { + List securityLabels = ResourceMetadataKeyEnum.SECURITY_LABELS.get(resource); + if (securityLabels == null) { + securityLabels = Collections.emptyList(); + } + if ((resourceId != null && isNotBlank(resourceId.getVersionIdPart())) || (updated != null && !updated.isEmpty()) || !securityLabels.isEmpty()) { theEventWriter.writeStartElement("meta"); String versionIdPart = resourceId.getVersionIdPart(); if (isBlank(versionIdPart)) { @@ -756,6 +756,12 @@ public class XmlParser extends BaseParser implements IParser { if (updated != null) { writeOptionalTagWithValue(theEventWriter, "lastUpdated", updated.getValueAsString()); } + for (BaseCodingDt securityLabel : securityLabels) { + theEventWriter.writeStartElement("security"); + BaseRuntimeElementCompositeDefinition def = (BaseRuntimeElementCompositeDefinition) myContext.getElementDefinition(securityLabel.getClass()); + encodeCompositeElementChildrenToStreamWriter(resource, securityLabel, theEventWriter, def.getChildren(), theContainedResource); + theEventWriter.writeEndElement(); + } theEventWriter.writeEndElement(); } @@ -822,8 +828,7 @@ public class XmlParser extends BaseParser implements IParser { } } - private void encodeUndeclaredExtensions(IBaseResource theResource, XMLStreamWriter theWriter, List> theExtensions, String tagName, boolean theIncludedResource) - throws XMLStreamException, DataFormatException { + private void encodeUndeclaredExtensions(IBaseResource theResource, XMLStreamWriter theWriter, List> theExtensions, String tagName, boolean theIncludedResource) throws XMLStreamException, DataFormatException { for (IBaseExtension next : theExtensions) { if (next == null) { continue; diff --git a/hapi-fhir-base/src/main/java/ca/uhn/fhir/rest/client/BaseHttpClientInvocation.java b/hapi-fhir-base/src/main/java/ca/uhn/fhir/rest/client/BaseHttpClientInvocation.java index 41cd049f4d5..0cd4a316e8e 100644 --- a/hapi-fhir-base/src/main/java/ca/uhn/fhir/rest/client/BaseHttpClientInvocation.java +++ b/hapi-fhir-base/src/main/java/ca/uhn/fhir/rest/client/BaseHttpClientInvocation.java @@ -59,7 +59,7 @@ public abstract class BaseHttpClientInvocation { public abstract HttpRequestBase asHttpRequest(String theUrlBase, Map> theExtraParams, EncodingEnum theEncoding); protected static void appendExtraParamsWithQuestionMark(Map> theExtraParams, StringBuilder theUrlBuilder, boolean theWithQuestionMark) { - if (theExtraParams==null) { + if (theExtraParams == null) { return; } boolean first = theWithQuestionMark; diff --git a/hapi-fhir-base/src/main/java/ca/uhn/fhir/rest/gclient/IBaseQuery.java b/hapi-fhir-base/src/main/java/ca/uhn/fhir/rest/gclient/IBaseQuery.java index 15a90b995ed..b4ba4c80551 100644 --- a/hapi-fhir-base/src/main/java/ca/uhn/fhir/rest/gclient/IBaseQuery.java +++ b/hapi-fhir-base/src/main/java/ca/uhn/fhir/rest/gclient/IBaseQuery.java @@ -22,8 +22,8 @@ package ca.uhn.fhir.rest.gclient; public interface IBaseQuery { - T where(ICriterion theCriterion); + T where(ICriterion theCriterion); - T and(ICriterion theCriterion); + T and(ICriterion theCriterion); } diff --git a/hapi-fhir-base/src/main/java/ca/uhn/fhir/rest/gclient/ICreateTyped.java b/hapi-fhir-base/src/main/java/ca/uhn/fhir/rest/gclient/ICreateTyped.java index 9bea778502a..85e09f648f4 100644 --- a/hapi-fhir-base/src/main/java/ca/uhn/fhir/rest/gclient/ICreateTyped.java +++ b/hapi-fhir-base/src/main/java/ca/uhn/fhir/rest/gclient/ICreateTyped.java @@ -38,12 +38,11 @@ public interface ICreateTyped extends IClientExecutable[ResourceType]?[Parameters], - * for example: Patient?name=Smith&identifier=13.2.4.11.4%7C847366 - * + * for example: Patient?name=Smith&identifier=13.2.4.11.4%7C847366 * @since HAPI 0.9 / FHIR DSTU 2 */ ICreateTyped conditionalByUrl(String theSearchUrl); diff --git a/hapi-fhir-base/src/main/java/ca/uhn/fhir/rest/gclient/IDelete.java b/hapi-fhir-base/src/main/java/ca/uhn/fhir/rest/gclient/IDelete.java index 866c7652ef8..ccd30029fa4 100644 --- a/hapi-fhir-base/src/main/java/ca/uhn/fhir/rest/gclient/IDelete.java +++ b/hapi-fhir-base/src/main/java/ca/uhn/fhir/rest/gclient/IDelete.java @@ -32,12 +32,11 @@ public interface IDelete { IDeleteTyped resourceById(String theResourceType, String theLogicalId); /** - * Specifies that the delete should be performed as a conditional delete - * against a given search URL. - * + * Specifies that the delete should be performed as a conditional delete + * against a given search URL. + * * @param theSearchUrl The search URL to use. The format of this URL should be of the form [ResourceType]?[Parameters], - * for example: Patient?name=Smith&identifier=13.2.4.11.4%7C847366 - * + * for example: Patient?name=Smith&identifier=13.2.4.11.4%7C847366 * @since HAPI 0.9 / FHIR DSTU 2 */ IDeleteTyped resourceConditionalByUrl(String theSearchUrl); diff --git a/hapi-fhir-base/src/main/java/ca/uhn/fhir/rest/gclient/IQuery.java b/hapi-fhir-base/src/main/java/ca/uhn/fhir/rest/gclient/IQuery.java index 0e14d5cda70..20ab12f4404 100644 --- a/hapi-fhir-base/src/main/java/ca/uhn/fhir/rest/gclient/IQuery.java +++ b/hapi-fhir-base/src/main/java/ca/uhn/fhir/rest/gclient/IQuery.java @@ -24,7 +24,7 @@ import ca.uhn.fhir.model.api.Bundle; import ca.uhn.fhir.model.api.Include; import ca.uhn.fhir.rest.method.SearchStyleEnum; -public interface IQuery extends IClientExecutable, IBaseQuery { +public interface IQuery extends IClientExecutable, IBaseQuery { IQuery include(Include theIncludeManagingorganization); diff --git a/hapi-fhir-base/src/main/java/ca/uhn/fhir/rest/gclient/IUpdateTyped.java b/hapi-fhir-base/src/main/java/ca/uhn/fhir/rest/gclient/IUpdateTyped.java index e7f98612732..d8874fd1db1 100644 --- a/hapi-fhir-base/src/main/java/ca/uhn/fhir/rest/gclient/IUpdateTyped.java +++ b/hapi-fhir-base/src/main/java/ca/uhn/fhir/rest/gclient/IUpdateTyped.java @@ -29,12 +29,11 @@ public interface IUpdateTyped extends IUpdateExecutable { IUpdateExecutable withId(String theId); /** - * Specifies that the update should be performed as a conditional create - * against a given search URL. - * + * Specifies that the update should be performed as a conditional create + * against a given search URL. + * * @param theSearchUrl The search URL to use. The format of this URL should be of the form [ResourceType]?[Parameters], - * for example: Patient?name=Smith&identifier=13.2.4.11.4%7C847366 - * + * for example: Patient?name=Smith&identifier=13.2.4.11.4%7C847366 * @since HAPI 0.9 / FHIR DSTU 2 */ IUpdateTyped conditionalByUrl(String theSearchUrl); diff --git a/hapi-fhir-base/src/main/java/ca/uhn/fhir/rest/method/MethodUtil.java b/hapi-fhir-base/src/main/java/ca/uhn/fhir/rest/method/MethodUtil.java index c43f5605376..accc6f3ec55 100644 --- a/hapi-fhir-base/src/main/java/ca/uhn/fhir/rest/method/MethodUtil.java +++ b/hapi-fhir-base/src/main/java/ca/uhn/fhir/rest/method/MethodUtil.java @@ -197,11 +197,11 @@ public class MethodUtil { public static HttpPutClientInvocation createUpdateInvocation(FhirContext theContext, IResource theResource, String theResourceBody, Map> theMatchParams) { StringBuilder b = new StringBuilder(); - + String resourceType = theContext.getResourceDefinition(theResource).getName(); b.append(resourceType); - - boolean haveQuestionMark=false; + + boolean haveQuestionMark = false; for (Entry> nextEntry : theMatchParams.entrySet()) { for (String nextValue : nextEntry.getValue()) { b.append(haveQuestionMark ? '&' : '?'); @@ -216,7 +216,7 @@ public class MethodUtil { } } - + HttpPutClientInvocation retVal; if (StringUtils.isBlank(theResourceBody)) { retVal = new HttpPutClientInvocation(theContext, theResource, b.toString()); @@ -232,9 +232,9 @@ public class MethodUtil { public static HttpPutClientInvocation createUpdateInvocation(FhirContext theContext, IResource theResource, String theResourceBody, String theMatchUrl) { HttpPutClientInvocation retVal; if (StringUtils.isBlank(theResourceBody)) { - retVal = new HttpPutClientInvocation(theContext, theResource, theMatchUrl); + retVal = new HttpPutClientInvocation(theContext, theResource, theMatchUrl); } else { - retVal = new HttpPutClientInvocation(theContext, theResourceBody, false,theMatchUrl); + retVal = new HttpPutClientInvocation(theContext, theResourceBody, false, theMatchUrl); } addTagsToPostOrPut(theResource, retVal); @@ -245,10 +245,10 @@ public class MethodUtil { public static EncodingEnum detectEncoding(String theBody) { for (int i = 0; i < theBody.length(); i++) { switch (theBody.charAt(i)) { - case '<': - return EncodingEnum.XML; - case '{': - return EncodingEnum.JSON; + case '<': + return EncodingEnum.XML; + case '{': + return EncodingEnum.JSON; } } return EncodingEnum.XML; @@ -509,26 +509,26 @@ public class MethodUtil { public static IQueryParameterAnd parseQueryParams(RuntimeSearchParam theParamDef, String theUnqualifiedParamName, List theParameters) { QueryParameterAndBinder binder = null; switch (theParamDef.getParamType()) { - case COMPOSITE: - throw new UnsupportedOperationException(); - case DATE: - binder = new QueryParameterAndBinder(DateAndListParam.class, Collections.> emptyList()); - break; - case NUMBER: - binder = new QueryParameterAndBinder(NumberAndListParam.class, Collections.> emptyList()); - break; - case QUANTITY: - binder = new QueryParameterAndBinder(QuantityAndListParam.class, Collections.> emptyList()); - break; - case REFERENCE: - binder = new QueryParameterAndBinder(ReferenceAndListParam.class, Collections.> emptyList()); - break; - case STRING: - binder = new QueryParameterAndBinder(StringAndListParam.class, Collections.> emptyList()); - break; - case TOKEN: - binder = new QueryParameterAndBinder(TokenAndListParam.class, Collections.> emptyList()); - break; + case COMPOSITE: + throw new UnsupportedOperationException(); + case DATE: + binder = new QueryParameterAndBinder(DateAndListParam.class, Collections.>emptyList()); + break; + case NUMBER: + binder = new QueryParameterAndBinder(NumberAndListParam.class, Collections.>emptyList()); + break; + case QUANTITY: + binder = new QueryParameterAndBinder(QuantityAndListParam.class, Collections.>emptyList()); + break; + case REFERENCE: + binder = new QueryParameterAndBinder(ReferenceAndListParam.class, Collections.>emptyList()); + break; + case STRING: + binder = new QueryParameterAndBinder(StringAndListParam.class, Collections.>emptyList()); + break; + case TOKEN: + binder = new QueryParameterAndBinder(TokenAndListParam.class, Collections.>emptyList()); + break; } return binder.parse(theUnqualifiedParamName, theParameters); diff --git a/hapi-fhir-base/src/main/java/ca/uhn/fhir/rest/param/InternalCodingDt.java b/hapi-fhir-base/src/main/java/ca/uhn/fhir/rest/param/InternalCodingDt.java index dbd875641e6..a087c927640 100644 --- a/hapi-fhir-base/src/main/java/ca/uhn/fhir/rest/param/InternalCodingDt.java +++ b/hapi-fhir-base/src/main/java/ca/uhn/fhir/rest/param/InternalCodingDt.java @@ -49,8 +49,7 @@ import ca.uhn.fhir.model.primitive.CodeDt; import ca.uhn.fhir.model.primitive.StringDt; import ca.uhn.fhir.model.primitive.UriDt; -public class InternalCodingDt - extends BaseCodingDt implements ICompositeDatatype +public class InternalCodingDt extends BaseCodingDt implements ICompositeDatatype { /** diff --git a/hapi-fhir-base/src/main/java/org/hl7/fhir/instance/model/api/IBaseEnumFactory.java b/hapi-fhir-base/src/main/java/org/hl7/fhir/instance/model/api/IBaseEnumFactory.java index 7d70dfa27d9..fbbc9741c37 100644 --- a/hapi-fhir-base/src/main/java/org/hl7/fhir/instance/model/api/IBaseEnumFactory.java +++ b/hapi-fhir-base/src/main/java/org/hl7/fhir/instance/model/api/IBaseEnumFactory.java @@ -22,24 +22,21 @@ package org.hl7.fhir.instance.model.api; public interface IBaseEnumFactory> { - /** - * Read an enumeration value from the string that represents it on the XML or JSON - * - * @param codeString - * the value found in the XML or JSON - * @return the enumeration value - * @throws IllegalArgumentException - * is the value is not known - */ - public T fromCode(String codeString) throws IllegalArgumentException; + /** + * Read an enumeration value from the string that represents it on the XML or JSON + * + * @param codeString the value found in the XML or JSON + * @return the enumeration value + * @throws IllegalArgumentException is the value is not known + */ + public T fromCode(String codeString) throws IllegalArgumentException; - /** - * Get the XML/JSON representation for an enumerated value - * - * @param code - * - the enumeration value - * @return the XML/JSON representation - */ - public String toCode(T code); + /** + * Get the XML/JSON representation for an enumerated value + * + * @param code - the enumeration value + * @return the XML/JSON representation + */ + public String toCode(T code); } diff --git a/hapi-fhir-base/src/main/java/org/hl7/fhir/instance/model/api/IBaseExtension.java b/hapi-fhir-base/src/main/java/org/hl7/fhir/instance/model/api/IBaseExtension.java index 252513f94b6..2079feae03f 100644 --- a/hapi-fhir-base/src/main/java/org/hl7/fhir/instance/model/api/IBaseExtension.java +++ b/hapi-fhir-base/src/main/java/org/hl7/fhir/instance/model/api/IBaseExtension.java @@ -26,14 +26,14 @@ import org.hl7.fhir.instance.model.ICompositeType; public interface IBaseExtension extends ICompositeType { - List getExtension(); - + List getExtension(); + String getUrl(); - + IBaseDatatype getValue(); T setUrl(String theUrl); - + T setValue(IBaseDatatype theValue); } diff --git a/hapi-fhir-base/src/main/java/org/hl7/fhir/instance/model/api/IBaseHasExtensions.java b/hapi-fhir-base/src/main/java/org/hl7/fhir/instance/model/api/IBaseHasExtensions.java index 0af8e6554a2..566f88ebc8f 100644 --- a/hapi-fhir-base/src/main/java/org/hl7/fhir/instance/model/api/IBaseHasExtensions.java +++ b/hapi-fhir-base/src/main/java/org/hl7/fhir/instance/model/api/IBaseHasExtensions.java @@ -24,8 +24,8 @@ import java.util.List; public interface IBaseHasExtensions { - public List> getExtension(); + public List> getExtension(); + + public IBaseExtension addExtension(); - public IBaseExtension addExtension(); - } diff --git a/hapi-fhir-base/src/main/java/org/hl7/fhir/instance/model/api/IBaseHasModifierExtensions.java b/hapi-fhir-base/src/main/java/org/hl7/fhir/instance/model/api/IBaseHasModifierExtensions.java index 1a2de6e8fc0..fb8d57ac199 100644 --- a/hapi-fhir-base/src/main/java/org/hl7/fhir/instance/model/api/IBaseHasModifierExtensions.java +++ b/hapi-fhir-base/src/main/java/org/hl7/fhir/instance/model/api/IBaseHasModifierExtensions.java @@ -24,8 +24,8 @@ import java.util.List; public interface IBaseHasModifierExtensions { - public List> getModifierExtension(); + public List> getModifierExtension(); - public IBaseExtension addModifierExtension(); + public IBaseExtension addModifierExtension(); } diff --git a/hapi-fhir-base/testmindeps/src/test/java/ca/uhn/fhir/parser/MultiVersionJsonParserTest.java b/hapi-fhir-base/testmindeps/src/test/java/ca/uhn/fhir/parser/MultiVersionJsonParserTest.java index 113baa19ce1..f11e483cad1 100644 --- a/hapi-fhir-base/testmindeps/src/test/java/ca/uhn/fhir/parser/MultiVersionJsonParserTest.java +++ b/hapi-fhir-base/testmindeps/src/test/java/ca/uhn/fhir/parser/MultiVersionJsonParserTest.java @@ -21,8 +21,8 @@ public class MultiVersionJsonParserTest { String str = FhirContext.forDstu2().newJsonParser().encodeResourceToString(p); ourLog.info(str); - - assertThat(str,StringContains.containsString("{\"resourceType\":\"Patient\",\"extension\":[{\"url\":\"http://foo#ext\",\"valueQuantity\":{\"value\":2.2}}],\"identifier\":[{\"system\":\"urn:sys\",\"value\":\"001\"}]}")); + + assertThat(str, StringContains.containsString("{\"resourceType\":\"Patient\",\"extension\":[{\"url\":\"http://foo#ext\",\"valueQuantity\":{\"value\":2.2}}],\"identifier\":[{\"system\":\"urn:sys\",\"value\":\"001\"}]}")); } } diff --git a/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/BaseFhirDao.java b/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/BaseFhirDao.java index 16b747575b4..498cfe17aec 100644 --- a/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/BaseFhirDao.java +++ b/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/BaseFhirDao.java @@ -600,12 +600,12 @@ public abstract class BaseFhirDao implements IDao { String qualifier = null; for (int i = 0; i < paramMap.size(); i++) { switch (paramName.charAt(i)) { - case '.': - case ':': - qualifier = paramName.substring(i); - paramName = paramName.substring(0, i); - i = Integer.MAX_VALUE; - break; + case '.': + case ':': + qualifier = paramName.substring(i); + paramName = paramName.substring(0, i); + i = Integer.MAX_VALUE; + break; } } @@ -889,7 +889,7 @@ public abstract class BaseFhirDao implements IDao { } protected ResourceTable updateEntity(final IResource theResource, ResourceTable entity, boolean theUpdateHistory, Date theDeletedTimestampOrNull) { - return updateEntity(theResource, entity, theUpdateHistory, theDeletedTimestampOrNull, true,true); + return updateEntity(theResource, entity, theUpdateHistory, theDeletedTimestampOrNull, true, true); } protected ResourceTable updateEntity(final IResource theResource, ResourceTable entity, boolean theUpdateHistory, Date theDeletedTimestampOrNull, boolean thePerformIndexing, boolean theUpdateVersion) { @@ -972,7 +972,7 @@ public abstract class BaseFhirDao implements IDao { entity.setHasLinks(links.isEmpty() == false); } else { - + populateResourceIntoEntity(theResource, entity); entity.setUpdated(new Date()); entity.setLanguage(theResource.getLanguage().getValue()); diff --git a/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/DaoMethodOutcome.java b/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/DaoMethodOutcome.java index 0c7dd65b76c..d8c8b30be33 100644 --- a/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/DaoMethodOutcome.java +++ b/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/DaoMethodOutcome.java @@ -26,31 +26,31 @@ import ca.uhn.fhir.rest.api.MethodOutcome; public class DaoMethodOutcome extends MethodOutcome { - private ResourceTable myEntity; - private IResource myResource; + private ResourceTable myEntity; + private IResource myResource; - public ResourceTable getEntity() { - return myEntity; - } + public ResourceTable getEntity() { + return myEntity; + } - public IResource getResource() { - return myResource; - } + public IResource getResource() { + return myResource; + } - @Override - public DaoMethodOutcome setCreated(Boolean theCreated) { - super.setCreated(theCreated); - return this; - } + @Override + public DaoMethodOutcome setCreated(Boolean theCreated) { + super.setCreated(theCreated); + return this; + } - public DaoMethodOutcome setEntity(ResourceTable theEntity) { - myEntity = theEntity; - return this; - } + public DaoMethodOutcome setEntity(ResourceTable theEntity) { + myEntity = theEntity; + return this; + } - public DaoMethodOutcome setResource(IResource theResource) { - myResource = theResource; - return this; - } + public DaoMethodOutcome setResource(IResource theResource) { + myResource = theResource; + return this; + } } diff --git a/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/FhirResourceDao.java b/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/FhirResourceDao.java index a7f0f8f9e3a..98708c725e6 100644 --- a/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/FhirResourceDao.java +++ b/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/FhirResourceDao.java @@ -668,7 +668,7 @@ public class FhirResourceDao extends BaseFhirDao implements myEntityManager.persist(newEntity); myEntityManager.merge(entity); notifyWriteCompleted(); - ourLog.info("Processed addTag {}/{} on {} in {}ms", new Object[] { theScheme, theTerm, theId, w.getMillisAndRestart() }); + ourLog.info("Processed addTag {}/{} on {} in {}ms", new Object[]{theScheme, theTerm, theId, w.getMillisAndRestart()}); } @Override @@ -911,7 +911,7 @@ public class FhirResourceDao extends BaseFhirDao implements } Long pid = resource.iterator().next(); - + ResourceTable entity = myEntityManager.find(ResourceTable.class, pid); ResourceTable savedEntity = updateEntity(null, entity, true, new Date()); @@ -1190,7 +1190,7 @@ public class FhirResourceDao extends BaseFhirDao implements myEntityManager.merge(entity); - ourLog.info("Processed remove tag {}/{} on {} in {}ms", new Object[] { theScheme, theTerm, theId.getValue(), w.getMillisAndRestart() }); + ourLog.info("Processed remove tag {}/{} on {} in {}ms", new Object[]{theScheme, theTerm, theId.getValue(), w.getMillisAndRestart()}); } @Override @@ -1331,7 +1331,8 @@ public class FhirResourceDao extends BaseFhirDao implements } retVal.addAll(resources); } - } while (includePids.size() > 0 && previouslyLoadedPids.size() < getConfig().getIncludeLimit()); + } + while (includePids.size() > 0 && previouslyLoadedPids.size() < getConfig().getIncludeLimit()); if (previouslyLoadedPids.size() >= getConfig().getIncludeLimit()) { OperationOutcome oo = new OperationOutcome(); @@ -1351,7 +1352,7 @@ public class FhirResourceDao extends BaseFhirDao implements } }; - ourLog.info("Processed search for {} on {} in {}ms", new Object[] { myResourceName, theParams, w.getMillisAndRestart() }); + ourLog.info("Processed search for {} on {} in {}ms", new Object[]{myResourceName, theParams, w.getMillisAndRestart()}); return retVal; } @@ -1436,62 +1437,62 @@ public class FhirResourceDao extends BaseFhirDao implements RuntimeSearchParam nextParamDef = resourceDef.getSearchParam(nextParamName); if (nextParamDef != null) { switch (nextParamDef.getParamType()) { - case DATE: - for (List nextAnd : nextParamEntry.getValue()) { - pids = addPredicateDate(nextParamName, pids, nextAnd); - if (pids.isEmpty()) { - return new HashSet(); + case DATE: + for (List nextAnd : nextParamEntry.getValue()) { + pids = addPredicateDate(nextParamName, pids, nextAnd); + if (pids.isEmpty()) { + return new HashSet(); + } } - } - break; - case QUANTITY: - for (List nextAnd : nextParamEntry.getValue()) { - pids = addPredicateQuantity(nextParamName, pids, nextAnd); - if (pids.isEmpty()) { - return new HashSet(); + break; + case QUANTITY: + for (List nextAnd : nextParamEntry.getValue()) { + pids = addPredicateQuantity(nextParamName, pids, nextAnd); + if (pids.isEmpty()) { + return new HashSet(); + } } - } - break; - case REFERENCE: - for (List nextAnd : nextParamEntry.getValue()) { - pids = addPredicateReference(nextParamName, pids, nextAnd); - if (pids.isEmpty()) { - return new HashSet(); + break; + case REFERENCE: + for (List nextAnd : nextParamEntry.getValue()) { + pids = addPredicateReference(nextParamName, pids, nextAnd); + if (pids.isEmpty()) { + return new HashSet(); + } } - } - break; - case STRING: - for (List nextAnd : nextParamEntry.getValue()) { - pids = addPredicateString(nextParamName, pids, nextAnd); - if (pids.isEmpty()) { - return new HashSet(); + break; + case STRING: + for (List nextAnd : nextParamEntry.getValue()) { + pids = addPredicateString(nextParamName, pids, nextAnd); + if (pids.isEmpty()) { + return new HashSet(); + } } - } - break; - case TOKEN: - for (List nextAnd : nextParamEntry.getValue()) { - pids = addPredicateToken(nextParamName, pids, nextAnd); - if (pids.isEmpty()) { - return new HashSet(); + break; + case TOKEN: + for (List nextAnd : nextParamEntry.getValue()) { + pids = addPredicateToken(nextParamName, pids, nextAnd); + if (pids.isEmpty()) { + return new HashSet(); + } } - } - break; - case NUMBER: - for (List nextAnd : nextParamEntry.getValue()) { - pids = addPredicateNumber(nextParamName, pids, nextAnd); - if (pids.isEmpty()) { - return new HashSet(); + break; + case NUMBER: + for (List nextAnd : nextParamEntry.getValue()) { + pids = addPredicateNumber(nextParamName, pids, nextAnd); + if (pids.isEmpty()) { + return new HashSet(); + } } - } - break; - case COMPOSITE: - for (List nextAnd : nextParamEntry.getValue()) { - pids = addPredicateComposite(nextParamDef, pids, nextAnd); - if (pids.isEmpty()) { - return new HashSet(); + break; + case COMPOSITE: + for (List nextAnd : nextParamEntry.getValue()) { + pids = addPredicateComposite(nextParamDef, pids, nextAnd); + if (pids.isEmpty()) { + return new HashSet(); + } } - } - break; + break; } } } @@ -1568,14 +1569,14 @@ public class FhirResourceDao extends BaseFhirDao implements @Override public DaoMethodOutcome update(T theResource) { - return update(theResource,null); + return update(theResource, null); } - + @Override public DaoMethodOutcome update(T theResource, String theMatchUrl) { return update(theResource, theMatchUrl, true); } - + @Override public DaoMethodOutcome update(T theResource, String theMatchUrl, boolean thePerformIndexing) { StopWatch w = new StopWatch(); @@ -1599,7 +1600,7 @@ public class FhirResourceDao extends BaseFhirDao implements resourceId = theResource.getId(); entity = readEntityLatestVersion(resourceId); } - + if (resourceId.hasVersionIdPart() && resourceId.getVersionIdPartAsLong().longValue() != entity.getVersion()) { throw new InvalidRequestException("Trying to update " + resourceId + " but this is not the current version"); } diff --git a/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/FhirSystemDaoDstu2.java b/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/FhirSystemDaoDstu2.java index ba5bb94376d..447ae924e37 100644 --- a/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/FhirSystemDaoDstu2.java +++ b/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/FhirSystemDaoDstu2.java @@ -160,91 +160,91 @@ public class FhirSystemDaoDstu2 extends BaseFhirSystemDao { } switch (verb) { - case POST: { - // CREATE - @SuppressWarnings("rawtypes") - IFhirResourceDao resourceDao = getDao(res.getClass()); - res.setId(null); - DaoMethodOutcome outcome; - Entry newEntry = response.addEntry(); - outcome = resourceDao.create(res, nextEntry.getTransaction().getIfNoneExist(), false); - handleTransactionCreateOrUpdateOutcome(idSubstitutions, idToPersistedOutcome, nextResourceId, outcome, newEntry); - break; - } - case DELETE: { - // DELETE - Entry newEntry = response.addEntry(); - String url = extractTransactionUrlOrThrowException(nextEntry, verb); - UrlParts parts = parseUrl(verb.getCode(), url); - if (parts.getResourceId() != null) { - parts.getDao().delete(new IdDt(parts.getResourceType(), parts.getResourceId())); - } else { - parts.getDao().deleteByUrl(parts.getResourceType() + '?' + parts.getParams()); - } - - newEntry.getTransactionResponse().setStatus(Integer.toString(Constants.STATUS_HTTP_204_NO_CONTENT)); - break; - } - case PUT: { - // UPDATE - @SuppressWarnings("rawtypes") - IFhirResourceDao resourceDao = getDao(res.getClass()); - - DaoMethodOutcome outcome; - Entry newEntry = response.addEntry(); - - String url = extractTransactionUrlOrThrowException(nextEntry, verb); - - UrlParts parts = parseUrl(verb.getCode(), url); - if (parts.getResourceId() != null) { - res.setId(new IdDt(parts.getResourceType(), parts.getResourceId())); - outcome = resourceDao.update(res, null, false); - } else { + case POST: { + // CREATE + @SuppressWarnings("rawtypes") + IFhirResourceDao resourceDao = getDao(res.getClass()); res.setId(null); - outcome = resourceDao.update(res, parts.getResourceType() + '?' + parts.getParams(), false); + DaoMethodOutcome outcome; + Entry newEntry = response.addEntry(); + outcome = resourceDao.create(res, nextEntry.getTransaction().getIfNoneExist(), false); + handleTransactionCreateOrUpdateOutcome(idSubstitutions, idToPersistedOutcome, nextResourceId, outcome, newEntry); + break; } - - handleTransactionCreateOrUpdateOutcome(idSubstitutions, idToPersistedOutcome, nextResourceId, outcome, newEntry); - break; - } - case GET: { - // SEARCH/READ/VREAD - String url = extractTransactionUrlOrThrowException(nextEntry, verb); - UrlParts parts = parseUrl(verb.getCode(), url); - - @SuppressWarnings("rawtypes") - IFhirResourceDao resourceDao = parts.getDao(); - - if (parts.getResourceId() != null && parts.getParams() == null) { - IResource found; - if (parts.getVersionId() != null) { - found = resourceDao.read(new IdDt(parts.getResourceType(), parts.getResourceId(), parts.getVersionId())); + case DELETE: { + // DELETE + Entry newEntry = response.addEntry(); + String url = extractTransactionUrlOrThrowException(nextEntry, verb); + UrlParts parts = parseUrl(verb.getCode(), url); + if (parts.getResourceId() != null) { + parts.getDao().delete(new IdDt(parts.getResourceType(), parts.getResourceId())); } else { - found = resourceDao.read(new IdDt(parts.getResourceType(), parts.getResourceId())); + parts.getDao().deleteByUrl(parts.getResourceType() + '?' + parts.getParams()); + } + + newEntry.getTransactionResponse().setStatus(Integer.toString(Constants.STATUS_HTTP_204_NO_CONTENT)); + break; + } + case PUT: { + // UPDATE + @SuppressWarnings("rawtypes") + IFhirResourceDao resourceDao = getDao(res.getClass()); + + DaoMethodOutcome outcome; + Entry newEntry = response.addEntry(); + + String url = extractTransactionUrlOrThrowException(nextEntry, verb); + + UrlParts parts = parseUrl(verb.getCode(), url); + if (parts.getResourceId() != null) { + res.setId(new IdDt(parts.getResourceType(), parts.getResourceId())); + outcome = resourceDao.update(res, null, false); + } else { + res.setId(null); + outcome = resourceDao.update(res, parts.getResourceType() + '?' + parts.getParams(), false); + } + + handleTransactionCreateOrUpdateOutcome(idSubstitutions, idToPersistedOutcome, nextResourceId, outcome, newEntry); + break; + } + case GET: { + // SEARCH/READ/VREAD + String url = extractTransactionUrlOrThrowException(nextEntry, verb); + UrlParts parts = parseUrl(verb.getCode(), url); + + @SuppressWarnings("rawtypes") + IFhirResourceDao resourceDao = parts.getDao(); + + if (parts.getResourceId() != null && parts.getParams() == null) { + IResource found; + if (parts.getVersionId() != null) { + found = resourceDao.read(new IdDt(parts.getResourceType(), parts.getResourceId(), parts.getVersionId())); + } else { + found = resourceDao.read(new IdDt(parts.getResourceType(), parts.getResourceId())); + } + EntryTransactionResponse resp = response.addEntry().setResource(found).getTransactionResponse(); + resp.setLocation(found.getId().toUnqualified().getValue()); + resp.addEtag(found.getId().getVersionIdPart()); + } else if (parts.getParams() != null) { + RuntimeResourceDefinition def = getContext().getResourceDefinition(parts.getDao().getResourceType()); + SearchParameterMap params = translateMatchUrl(url, def); + IBundleProvider bundle = parts.getDao().search(params); + + Bundle searchBundle = new Bundle(); + searchBundle.setTotal(bundle.size()); + + int configuredMax = 100; // this should probably be configurable or something + if (bundle.size() > configuredMax) { + oo.addIssue().setSeverity(IssueSeverityEnum.WARNING).setDetails("Search nested within transaction found more than " + configuredMax + " matches, but paging is not supported in nested transactions"); + } + List resourcesToAdd = bundle.getResources(0, Math.min(bundle.size(), configuredMax)); + for (IResource next : resourcesToAdd) { + searchBundle.addEntry().setResource(next); + } + + response.addEntry().setResource(searchBundle); } - EntryTransactionResponse resp = response.addEntry().setResource(found).getTransactionResponse(); - resp.setLocation(found.getId().toUnqualified().getValue()); - resp.addEtag(found.getId().getVersionIdPart()); - } else if (parts.getParams() != null) { - RuntimeResourceDefinition def = getContext().getResourceDefinition(parts.getDao().getResourceType()); - SearchParameterMap params = translateMatchUrl(url, def); - IBundleProvider bundle = parts.getDao().search(params); - - Bundle searchBundle = new Bundle(); - searchBundle.setTotal(bundle.size()); - - int configuredMax = 100; // this should probably be configurable or something - if (bundle.size() > configuredMax) { - oo.addIssue().setSeverity(IssueSeverityEnum.WARNING).setDetails("Search nested within transaction found more than " + configuredMax + " matches, but paging is not supported in nested transactions"); - } - List resourcesToAdd = bundle.getResources(0, Math.min(bundle.size(), configuredMax)); - for (IResource next : resourcesToAdd) { - searchBundle.addEntry().setResource(next); - } - - response.addEntry().setResource(searchBundle); } - } } } @@ -452,7 +452,7 @@ public class FhirSystemDaoDstu2 extends BaseFhirSystemDao { // } long delay = System.currentTimeMillis() - start; - ourLog.info("Transaction completed in {}ms", new Object[] { delay }); + ourLog.info("Transaction completed in {}ms", new Object[]{delay}); oo.addIssue().setSeverity(IssueSeverityEnum.INFORMATION).setDetails("Transaction completed in " + delay + "ms"); diff --git a/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/IFhirResourceDao.java b/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/IFhirResourceDao.java index e5ac694c129..2fc5724d695 100644 --- a/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/IFhirResourceDao.java +++ b/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/dao/IFhirResourceDao.java @@ -41,9 +41,8 @@ public interface IFhirResourceDao extends IDao { DaoMethodOutcome create(T theResource, String theIfNoneExist); /** - * @param thePerformIndexing - * Use with caution! If you set this to false, you need to manually perform indexing or your resources - * won't be indexed and searches won't work. + * @param thePerformIndexing Use with caution! If you set this to false, you need to manually perform indexing or your resources + * won't be indexed and searches won't work. */ DaoMethodOutcome create(T theResource, String theIfNoneExist, boolean thePerformIndexing); @@ -75,9 +74,8 @@ public interface IFhirResourceDao extends IDao { BaseHasResource readEntity(IdDt theId); /** - * @param theCheckForForcedId - * If true, this method should fail if the requested ID contains a numeric PID which exists, but is - * obscured by a "forced ID" so should not exist as far as the outside world is concerned. + * @param theCheckForForcedId If true, this method should fail if the requested ID contains a numeric PID which exists, but is + * obscured by a "forced ID" so should not exist as far as the outside world is concerned. */ BaseHasResource readEntity(IdDt theId, boolean theCheckForForcedId); diff --git a/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/entity/ForcedId.java b/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/entity/ForcedId.java index b459b0c1ca9..e3c2a0512ea 100644 --- a/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/entity/ForcedId.java +++ b/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/entity/ForcedId.java @@ -34,11 +34,11 @@ import javax.persistence.UniqueConstraint; //@formatter:off @Entity() -@Table(name = "HFJ_FORCED_ID", uniqueConstraints = { - @UniqueConstraint(name = "IDX_FORCEDID", columnNames = { "FORCED_ID" }) +@Table(name = "HFJ_FORCED_ID", uniqueConstraints = { + @UniqueConstraint(name = "IDX_FORCEDID", columnNames = {"FORCED_ID"}) }) -@NamedQueries(value= { - @NamedQuery(name = "Q_GET_FORCED_ID", query = "SELECT f FROM ForcedId f WHERE myForcedId = :ID") +@NamedQueries(value = { + @NamedQuery(name = "Q_GET_FORCED_ID", query = "SELECT f FROM ForcedId f WHERE myForcedId = :ID") }) //@formatter:on public class ForcedId { diff --git a/hapi-fhir-jpaserver-base/src/test/java/ca/uhn/fhir/jpa/dao/FhirResourceDaoTest.java b/hapi-fhir-jpaserver-base/src/test/java/ca/uhn/fhir/jpa/dao/FhirResourceDaoTest.java index f16b60020fc..47a0b8e9e99 100644 --- a/hapi-fhir-jpaserver-base/src/test/java/ca/uhn/fhir/jpa/dao/FhirResourceDaoTest.java +++ b/hapi-fhir-jpaserver-base/src/test/java/ca/uhn/fhir/jpa/dao/FhirResourceDaoTest.java @@ -114,7 +114,7 @@ public class FhirResourceDaoTest { p.addIdentifier().setSystem("urn:system").setValue(methodName); p.addName().addFamily("Hello"); p.setId("Patient/" + methodName); - + ourPatientDao.update(p, "Patient?identifier=urn%3Asystem%7C" + methodName); p = ourPatientDao.read(id.toVersionless()); @@ -125,7 +125,7 @@ public class FhirResourceDaoTest { } - + @Test public void testCreateNumericIdFails() { Patient p = new Patient(); @@ -140,7 +140,7 @@ public class FhirResourceDaoTest { } } - + @Test public void testDeleteWithMatchUrl() { String methodName = "testDeleteWithMatchUrl"; @@ -171,14 +171,14 @@ public class FhirResourceDaoTest { IBundleProvider history = ourPatientDao.history(id, null); assertEquals(2, history.size()); - + assertNotNull(ResourceMetadataKeyEnum.DELETED_AT.get(history.getResources(0, 0).get(0))); assertNotNull(ResourceMetadataKeyEnum.DELETED_AT.get(history.getResources(0, 0).get(0)).getValue()); - assertNull(ResourceMetadataKeyEnum.DELETED_AT.get(history.getResources(1,1).get(0))); - + assertNull(ResourceMetadataKeyEnum.DELETED_AT.get(history.getResources(1, 1).get(0))); + } - + @Test public void testCreateWithIfNoneExist() { String methodName = "testCreateWithIfNoneExist"; diff --git a/hapi-fhir-jpaserver-base/src/test/java/ca/uhn/fhir/jpa/dao/FhirSystemDaoDstu1Test.java b/hapi-fhir-jpaserver-base/src/test/java/ca/uhn/fhir/jpa/dao/FhirSystemDaoDstu1Test.java index f50971f412f..fae4bd72bcd 100644 --- a/hapi-fhir-jpaserver-base/src/test/java/ca/uhn/fhir/jpa/dao/FhirSystemDaoDstu1Test.java +++ b/hapi-fhir-jpaserver-base/src/test/java/ca/uhn/fhir/jpa/dao/FhirSystemDaoDstu1Test.java @@ -34,381 +34,381 @@ import ca.uhn.fhir.rest.server.exceptions.InvalidRequestException; public class FhirSystemDaoDstu1Test { - private static ClassPathXmlApplicationContext ourCtx; - private static FhirContext ourFhirContext; - private static IFhirResourceDao ourLocationDao; - private static final org.slf4j.Logger ourLog = org.slf4j.LoggerFactory.getLogger(FhirSystemDaoDstu1Test.class); - private static IFhirResourceDao ourObservationDao; - private static IFhirResourceDao ourPatientDao; - private static IFhirSystemDao> ourSystemDao; + private static ClassPathXmlApplicationContext ourCtx; + private static FhirContext ourFhirContext; + private static IFhirResourceDao ourLocationDao; + private static final org.slf4j.Logger ourLog = org.slf4j.LoggerFactory.getLogger(FhirSystemDaoDstu1Test.class); + private static IFhirResourceDao ourObservationDao; + private static IFhirResourceDao ourPatientDao; + private static IFhirSystemDao> ourSystemDao; - @Test - public void testGetResourceCounts() { - Observation obs = new Observation(); - obs.getName().addCoding().setSystem("urn:system").setCode("testGetResourceCountsO01"); - ourObservationDao.create(obs); + @Test + public void testGetResourceCounts() { + Observation obs = new Observation(); + obs.getName().addCoding().setSystem("urn:system").setCode("testGetResourceCountsO01"); + ourObservationDao.create(obs); - Map oldCounts = ourSystemDao.getResourceCounts(); + Map oldCounts = ourSystemDao.getResourceCounts(); - Patient patient = new Patient(); - patient.addIdentifier().setSystem("urn:system").setValue("testGetResourceCountsP01"); - patient.addName().addFamily("Tester").addGiven("Joe"); - ourPatientDao.create(patient); + Patient patient = new Patient(); + patient.addIdentifier().setSystem("urn:system").setValue("testGetResourceCountsP01"); + patient.addName().addFamily("Tester").addGiven("Joe"); + ourPatientDao.create(patient); - Map newCounts = ourSystemDao.getResourceCounts(); + Map newCounts = ourSystemDao.getResourceCounts(); - if (oldCounts.containsKey("Patient")) { - assertEquals(oldCounts.get("Patient") + 1, (long) newCounts.get("Patient")); - } else { - assertEquals(1L, (long) newCounts.get("Patient")); - } + if (oldCounts.containsKey("Patient")) { + assertEquals(oldCounts.get("Patient") + 1, (long) newCounts.get("Patient")); + } else { + assertEquals(1L, (long) newCounts.get("Patient")); + } - assertEquals((long) oldCounts.get("Observation"), (long) newCounts.get("Observation")); + assertEquals((long) oldCounts.get("Observation"), (long) newCounts.get("Observation")); - } + } - @Test - public void testHistory() throws Exception { - Date start = new Date(); - Thread.sleep(10); + @Test + public void testHistory() throws Exception { + Date start = new Date(); + Thread.sleep(10); - Patient patient = new Patient(); - patient.addIdentifier().setSystem("urn:system").setValue("testHistory"); - patient.addName().addFamily("Tester").addGiven("Joe"); - IdDt pid = ourPatientDao.create(patient).getId().toVersionless(); + Patient patient = new Patient(); + patient.addIdentifier().setSystem("urn:system").setValue("testHistory"); + patient.addName().addFamily("Tester").addGiven("Joe"); + IdDt pid = ourPatientDao.create(patient).getId().toVersionless(); - Thread.sleep(10); - patient.setId(pid); - IdDt newpid = ourPatientDao.update(patient).getId(); + Thread.sleep(10); + patient.setId(pid); + IdDt newpid = ourPatientDao.update(patient).getId(); - Thread.sleep(10); - patient.setId(pid); - IdDt newpid2 = ourPatientDao.update(patient).getId(); + Thread.sleep(10); + patient.setId(pid); + IdDt newpid2 = ourPatientDao.update(patient).getId(); - Thread.sleep(10); - patient.setId(pid); - IdDt newpid3 = ourPatientDao.update(patient).getId(); + Thread.sleep(10); + patient.setId(pid); + IdDt newpid3 = ourPatientDao.update(patient).getId(); - IBundleProvider values = ourSystemDao.history(start); - assertEquals(4, values.size()); + IBundleProvider values = ourSystemDao.history(start); + assertEquals(4, values.size()); - List res = values.getResources(0, 4); - assertEquals(newpid3, res.get(0).getId()); - assertEquals(newpid2, res.get(1).getId()); - assertEquals(newpid, res.get(2).getId()); - assertEquals(pid.toUnqualifiedVersionless(), res.get(3).getId().toUnqualifiedVersionless()); + List res = values.getResources(0, 4); + assertEquals(newpid3, res.get(0).getId()); + assertEquals(newpid2, res.get(1).getId()); + assertEquals(newpid, res.get(2).getId()); + assertEquals(pid.toUnqualifiedVersionless(), res.get(3).getId().toUnqualifiedVersionless()); - Location loc = new Location(); - loc.getAddress().addLine("AAA"); - IdDt lid = ourLocationDao.create(loc).getId(); + Location loc = new Location(); + loc.getAddress().addLine("AAA"); + IdDt lid = ourLocationDao.create(loc).getId(); - Location loc2 = new Location(); - loc2.getAddress().addLine("AAA"); - ourLocationDao.create(loc2).getId(); + Location loc2 = new Location(); + loc2.getAddress().addLine("AAA"); + ourLocationDao.create(loc2).getId(); - Thread.sleep(2000); + Thread.sleep(2000); - values = ourLocationDao.history(start); - assertEquals(2, values.size()); + values = ourLocationDao.history(start); + assertEquals(2, values.size()); - values = ourLocationDao.history(lid.getIdPartAsLong(), start); - assertEquals(1, values.size()); + values = ourLocationDao.history(lid.getIdPartAsLong(), start); + assertEquals(1, values.size()); - } + } - @Test - public void testPersistWithSimpleLink() { - Patient patient = new Patient(); - patient.setId(new IdDt("Patient/testPersistWithSimpleLinkP01")); - patient.addIdentifier().setSystem("urn:system").setValue("testPersistWithSimpleLinkP01"); - patient.addName().addFamily("Tester").addGiven("Joe"); + @Test + public void testPersistWithSimpleLink() { + Patient patient = new Patient(); + patient.setId(new IdDt("Patient/testPersistWithSimpleLinkP01")); + patient.addIdentifier().setSystem("urn:system").setValue("testPersistWithSimpleLinkP01"); + patient.addName().addFamily("Tester").addGiven("Joe"); - Observation obs = new Observation(); - obs.getName().addCoding().setSystem("urn:system").setCode("testPersistWithSimpleLinkO01"); - obs.setSubject(new ResourceReferenceDt("Patient/testPersistWithSimpleLinkP01")); + Observation obs = new Observation(); + obs.getName().addCoding().setSystem("urn:system").setCode("testPersistWithSimpleLinkO01"); + obs.setSubject(new ResourceReferenceDt("Patient/testPersistWithSimpleLinkP01")); - ourSystemDao.transaction(Arrays.asList((IResource) patient, obs)); + ourSystemDao.transaction(Arrays.asList((IResource) patient, obs)); - String patientId = (patient.getId().getIdPart()); - String obsId = (obs.getId().getIdPart()); + String patientId = (patient.getId().getIdPart()); + String obsId = (obs.getId().getIdPart()); - // assertThat(patientId, greaterThan(0L)); - // assertEquals(patientVersion, 1L); - // assertThat(obsId, greaterThan(patientId)); - // assertEquals(obsVersion, 1L); + // assertThat(patientId, greaterThan(0L)); + // assertEquals(patientVersion, 1L); + // assertThat(obsId, greaterThan(patientId)); + // assertEquals(obsVersion, 1L); - // Try to search + // Try to search - IBundleProvider obsResults = ourObservationDao.search(Observation.SP_NAME, new IdentifierDt("urn:system", "testPersistWithSimpleLinkO01")); - assertEquals(1, obsResults.size()); + IBundleProvider obsResults = ourObservationDao.search(Observation.SP_NAME, new IdentifierDt("urn:system", "testPersistWithSimpleLinkO01")); + assertEquals(1, obsResults.size()); - IBundleProvider patResults = ourPatientDao.search(Patient.SP_IDENTIFIER, new IdentifierDt("urn:system", "testPersistWithSimpleLinkP01")); - assertEquals(1, obsResults.size()); + IBundleProvider patResults = ourPatientDao.search(Patient.SP_IDENTIFIER, new IdentifierDt("urn:system", "testPersistWithSimpleLinkP01")); + assertEquals(1, obsResults.size()); - IdDt foundPatientId = patResults.getResources(0, 1).get(0).getId(); - ResourceReferenceDt subject = obs.getSubject(); - assertEquals(foundPatientId.getIdPart(), subject.getReference().getIdPart()); + IdDt foundPatientId = patResults.getResources(0, 1).get(0).getId(); + ResourceReferenceDt subject = obs.getSubject(); + assertEquals(foundPatientId.getIdPart(), subject.getReference().getIdPart()); - // Update + // Update - patient = (Patient) patResults.getResources(0, 1).get(0); - obs = (Observation) obsResults.getResources(0, 1).get(0); - patient.addIdentifier().setSystem("urn:system").setValue("testPersistWithSimpleLinkP02"); - obs.getName().addCoding().setSystem("urn:system").setCode("testPersistWithSimpleLinkO02"); + patient = (Patient) patResults.getResources(0, 1).get(0); + obs = (Observation) obsResults.getResources(0, 1).get(0); + patient.addIdentifier().setSystem("urn:system").setValue("testPersistWithSimpleLinkP02"); + obs.getName().addCoding().setSystem("urn:system").setCode("testPersistWithSimpleLinkO02"); - ourSystemDao.transaction(Arrays.asList((IResource) patient, obs)); + ourSystemDao.transaction(Arrays.asList((IResource) patient, obs)); - String patientId2 = (patient.getId().getIdPart()); - String patientVersion2 = (patient.getId().getVersionIdPart()); - String obsId2 = (obs.getId().getIdPart()); - String obsVersion2 = (obs.getId().getVersionIdPart()); + String patientId2 = (patient.getId().getIdPart()); + String patientVersion2 = (patient.getId().getVersionIdPart()); + String obsId2 = (obs.getId().getIdPart()); + String obsVersion2 = (obs.getId().getVersionIdPart()); - assertEquals(patientId, patientId2); - assertEquals(patientVersion2, "2"); - assertEquals(obsId, obsId2); - assertEquals(obsVersion2, "2"); + assertEquals(patientId, patientId2); + assertEquals(patientVersion2, "2"); + assertEquals(obsId, obsId2); + assertEquals(obsVersion2, "2"); - } + } - @Test - public void testPersistWithUnknownId() { - Observation obs = new Observation(); - obs.getName().addCoding().setSystem("urn:system").setCode("testPersistWithSimpleLinkO01"); - obs.setSubject(new ResourceReferenceDt("Patient/999998888888")); + @Test + public void testPersistWithUnknownId() { + Observation obs = new Observation(); + obs.getName().addCoding().setSystem("urn:system").setCode("testPersistWithSimpleLinkO01"); + obs.setSubject(new ResourceReferenceDt("Patient/999998888888")); - try { - ourSystemDao.transaction(Arrays.asList((IResource) obs)); - } catch (InvalidRequestException e) { - assertThat(e.getMessage(), containsString("Resource Patient/999998888888 not found, specified in path: Observation.subject")); - } + try { + ourSystemDao.transaction(Arrays.asList((IResource) obs)); + } catch (InvalidRequestException e) { + assertThat(e.getMessage(), containsString("Resource Patient/999998888888 not found, specified in path: Observation.subject")); + } - obs = new Observation(); - obs.getName().addCoding().setSystem("urn:system").setCode("testPersistWithSimpleLinkO01"); - obs.setSubject(new ResourceReferenceDt("Patient/1.2.3.4")); + obs = new Observation(); + obs.getName().addCoding().setSystem("urn:system").setCode("testPersistWithSimpleLinkO01"); + obs.setSubject(new ResourceReferenceDt("Patient/1.2.3.4")); - try { - ourSystemDao.transaction(Arrays.asList((IResource) obs)); - } catch (InvalidRequestException e) { - assertThat(e.getMessage(), containsString("Resource Patient/1.2.3.4 not found, specified in path: Observation.subject")); - } + try { + ourSystemDao.transaction(Arrays.asList((IResource) obs)); + } catch (InvalidRequestException e) { + assertThat(e.getMessage(), containsString("Resource Patient/1.2.3.4 not found, specified in path: Observation.subject")); + } - } + } - @Test - public void testTagOperationss() throws Exception { + @Test + public void testTagOperationss() throws Exception { - TagList preSystemTl = ourSystemDao.getAllTags(); + TagList preSystemTl = ourSystemDao.getAllTags(); - TagList tl1 = new TagList(); - tl1.addTag("testGetAllTagsScheme1", "testGetAllTagsTerm1", "testGetAllTagsLabel1"); - Patient p1 = new Patient(); - p1.addIdentifier().setSystem("foo").setValue("testGetAllTags01"); - ResourceMetadataKeyEnum.TAG_LIST.put(p1, tl1); - ourPatientDao.create(p1); + TagList tl1 = new TagList(); + tl1.addTag("testGetAllTagsScheme1", "testGetAllTagsTerm1", "testGetAllTagsLabel1"); + Patient p1 = new Patient(); + p1.addIdentifier().setSystem("foo").setValue("testGetAllTags01"); + ResourceMetadataKeyEnum.TAG_LIST.put(p1, tl1); + ourPatientDao.create(p1); - TagList tl2 = new TagList(); - tl2.addTag("testGetAllTagsScheme2", "testGetAllTagsTerm2", "testGetAllTagsLabel2"); - Observation o1 = new Observation(); - o1.getName().setText("testGetAllTags02"); - ResourceMetadataKeyEnum.TAG_LIST.put(o1, tl2); - IdDt o1id = ourObservationDao.create(o1).getId(); - assertTrue(o1id.getVersionIdPart() != null); + TagList tl2 = new TagList(); + tl2.addTag("testGetAllTagsScheme2", "testGetAllTagsTerm2", "testGetAllTagsLabel2"); + Observation o1 = new Observation(); + o1.getName().setText("testGetAllTags02"); + ResourceMetadataKeyEnum.TAG_LIST.put(o1, tl2); + IdDt o1id = ourObservationDao.create(o1).getId(); + assertTrue(o1id.getVersionIdPart() != null); - TagList postSystemTl = ourSystemDao.getAllTags(); - assertEquals(preSystemTl.size() + 2, postSystemTl.size()); - assertEquals("testGetAllTagsLabel1", postSystemTl.getTag("testGetAllTagsScheme1", "testGetAllTagsTerm1").getLabel()); + TagList postSystemTl = ourSystemDao.getAllTags(); + assertEquals(preSystemTl.size() + 2, postSystemTl.size()); + assertEquals("testGetAllTagsLabel1", postSystemTl.getTag("testGetAllTagsScheme1", "testGetAllTagsTerm1").getLabel()); - TagList tags = ourPatientDao.getAllResourceTags(); - assertEquals("testGetAllTagsLabel1", tags.getTag("testGetAllTagsScheme1", "testGetAllTagsTerm1").getLabel()); - assertNull(tags.getTag("testGetAllTagsScheme2", "testGetAllTagsTerm2")); + TagList tags = ourPatientDao.getAllResourceTags(); + assertEquals("testGetAllTagsLabel1", tags.getTag("testGetAllTagsScheme1", "testGetAllTagsTerm1").getLabel()); + assertNull(tags.getTag("testGetAllTagsScheme2", "testGetAllTagsTerm2")); - TagList tags2 = ourObservationDao.getTags(o1id); - assertNull(tags2.getTag("testGetAllTagsScheme1", "testGetAllTagsTerm1")); - assertEquals("testGetAllTagsLabel2", tags2.getTag("testGetAllTagsScheme2", "testGetAllTagsTerm2").getLabel()); + TagList tags2 = ourObservationDao.getTags(o1id); + assertNull(tags2.getTag("testGetAllTagsScheme1", "testGetAllTagsTerm1")); + assertEquals("testGetAllTagsLabel2", tags2.getTag("testGetAllTagsScheme2", "testGetAllTagsTerm2").getLabel()); - o1.getResourceMetadata().remove(ResourceMetadataKeyEnum.TAG_LIST); - o1.setId(o1id); - IdDt o1id2 = ourObservationDao.update(o1).getId(); - assertTrue(o1id2.getVersionIdPart() != null); + o1.getResourceMetadata().remove(ResourceMetadataKeyEnum.TAG_LIST); + o1.setId(o1id); + IdDt o1id2 = ourObservationDao.update(o1).getId(); + assertTrue(o1id2.getVersionIdPart() != null); - tags2 = ourObservationDao.getTags(o1id); - assertNull(tags2.getTag("testGetAllTagsScheme1", "testGetAllTagsTerm1")); - assertEquals("testGetAllTagsLabel2", tags2.getTag("testGetAllTagsScheme2", "testGetAllTagsTerm2").getLabel()); + tags2 = ourObservationDao.getTags(o1id); + assertNull(tags2.getTag("testGetAllTagsScheme1", "testGetAllTagsTerm1")); + assertEquals("testGetAllTagsLabel2", tags2.getTag("testGetAllTagsScheme2", "testGetAllTagsTerm2").getLabel()); - tags2 = ourObservationDao.getTags(o1id2); - assertNull(tags2.getTag("testGetAllTagsScheme1", "testGetAllTagsTerm1")); - assertNotNull(tags2.getTag("testGetAllTagsScheme2", "testGetAllTagsTerm2")); + tags2 = ourObservationDao.getTags(o1id2); + assertNull(tags2.getTag("testGetAllTagsScheme1", "testGetAllTagsTerm1")); + assertNotNull(tags2.getTag("testGetAllTagsScheme2", "testGetAllTagsTerm2")); /* - * Remove a tag from a version + * Remove a tag from a version */ - ourObservationDao.removeTag(o1id2, "testGetAllTagsScheme2", "testGetAllTagsTerm2"); - tags2 = ourObservationDao.getTags(o1id2); - assertNull(tags2.getTag("testGetAllTagsScheme1", "testGetAllTagsTerm1")); - assertNull(tags2.getTag("testGetAllTagsScheme2", "testGetAllTagsTerm2")); + ourObservationDao.removeTag(o1id2, "testGetAllTagsScheme2", "testGetAllTagsTerm2"); + tags2 = ourObservationDao.getTags(o1id2); + assertNull(tags2.getTag("testGetAllTagsScheme1", "testGetAllTagsTerm1")); + assertNull(tags2.getTag("testGetAllTagsScheme2", "testGetAllTagsTerm2")); - tags2 = ourObservationDao.getTags(o1id); - assertNull(tags2.getTag("testGetAllTagsScheme1", "testGetAllTagsTerm1")); - assertNotNull(tags2.getTag("testGetAllTagsScheme2", "testGetAllTagsTerm2")); + tags2 = ourObservationDao.getTags(o1id); + assertNull(tags2.getTag("testGetAllTagsScheme1", "testGetAllTagsTerm1")); + assertNotNull(tags2.getTag("testGetAllTagsScheme2", "testGetAllTagsTerm2")); /* * Add a tag */ - ourObservationDao.addTag(o1id2, "testGetAllTagsScheme3", "testGetAllTagsTerm3", "testGetAllTagsLabel3"); - tags2 = ourObservationDao.getTags(o1id2); - assertNull(tags2.getTag("testGetAllTagsScheme1", "testGetAllTagsTerm1")); - assertNull(tags2.getTag("testGetAllTagsScheme2", "testGetAllTagsTerm2")); - assertNotNull(tags2.getTag("testGetAllTagsScheme3", "testGetAllTagsTerm3")); - assertEquals("testGetAllTagsLabel3", tags2.getTag("testGetAllTagsScheme3", "testGetAllTagsTerm3").getLabel()); + ourObservationDao.addTag(o1id2, "testGetAllTagsScheme3", "testGetAllTagsTerm3", "testGetAllTagsLabel3"); + tags2 = ourObservationDao.getTags(o1id2); + assertNull(tags2.getTag("testGetAllTagsScheme1", "testGetAllTagsTerm1")); + assertNull(tags2.getTag("testGetAllTagsScheme2", "testGetAllTagsTerm2")); + assertNotNull(tags2.getTag("testGetAllTagsScheme3", "testGetAllTagsTerm3")); + assertEquals("testGetAllTagsLabel3", tags2.getTag("testGetAllTagsScheme3", "testGetAllTagsTerm3").getLabel()); - tags2 = ourObservationDao.getTags(o1id); - assertNull(tags2.getTag("testGetAllTagsScheme1", "testGetAllTagsTerm1")); - assertNotNull(tags2.getTag("testGetAllTagsScheme2", "testGetAllTagsTerm2")); + tags2 = ourObservationDao.getTags(o1id); + assertNull(tags2.getTag("testGetAllTagsScheme1", "testGetAllTagsTerm1")); + assertNotNull(tags2.getTag("testGetAllTagsScheme2", "testGetAllTagsTerm2")); - } + } - @Test(expected = InvalidRequestException.class) - public void testTransactionFailsWithDuplicateIds() { - Patient patient1 = new Patient(); - patient1.setId(new IdDt("Patient/testTransactionFailsWithDusplicateIds")); - patient1.addIdentifier().setSystem("urn:system").setValue("testPersistWithSimpleLinkP01"); + @Test(expected = InvalidRequestException.class) + public void testTransactionFailsWithDuplicateIds() { + Patient patient1 = new Patient(); + patient1.setId(new IdDt("Patient/testTransactionFailsWithDusplicateIds")); + patient1.addIdentifier().setSystem("urn:system").setValue("testPersistWithSimpleLinkP01"); - Patient patient2 = new Patient(); - patient2.setId(new IdDt("Patient/testTransactionFailsWithDusplicateIds")); - patient2.addIdentifier().setSystem("urn:system").setValue("testPersistWithSimpleLinkP02"); + Patient patient2 = new Patient(); + patient2.setId(new IdDt("Patient/testTransactionFailsWithDusplicateIds")); + patient2.addIdentifier().setSystem("urn:system").setValue("testPersistWithSimpleLinkP02"); - ourSystemDao.transaction(Arrays.asList((IResource) patient1, patient2)); - } + ourSystemDao.transaction(Arrays.asList((IResource) patient1, patient2)); + } - @Test - public void testTransactionFromBundle() throws Exception { + @Test + public void testTransactionFromBundle() throws Exception { - InputStream bundleRes = FhirSystemDaoDstu1Test.class.getResourceAsStream("/bundle-dstu1.xml"); - Bundle bundle = ourFhirContext.newXmlParser().parseBundle(new InputStreamReader(bundleRes)); - List res = bundle.toListOfResources(); + InputStream bundleRes = FhirSystemDaoDstu1Test.class.getResourceAsStream("/bundle-dstu1.xml"); + Bundle bundle = ourFhirContext.newXmlParser().parseBundle(new InputStreamReader(bundleRes)); + List res = bundle.toListOfResources(); - ourSystemDao.transaction(res); + ourSystemDao.transaction(res); - Patient p1 = (Patient) res.get(0); - String id = p1.getId().getValue(); - ourLog.info("ID: {}", id); - assertThat(id, not(equalToIgnoringCase("74635"))); - assertThat(id, not(equalToIgnoringCase(""))); - } + Patient p1 = (Patient) res.get(0); + String id = p1.getId().getValue(); + ourLog.info("ID: {}", id); + assertThat(id, not(equalToIgnoringCase("74635"))); + assertThat(id, not(equalToIgnoringCase(""))); + } - /** - * Issue #55 - */ - @Test - public void testTransactionWithCidIds() throws Exception { - List res = new ArrayList(); + /** + * Issue #55 + */ + @Test + public void testTransactionWithCidIds() throws Exception { + List res = new ArrayList(); - Patient p1 = new Patient(); - p1.setId("cid:patient1"); - p1.addIdentifier().setSystem("system").setValue("testTransactionWithCidIds01"); - res.add(p1); + Patient p1 = new Patient(); + p1.setId("cid:patient1"); + p1.addIdentifier().setSystem("system").setValue("testTransactionWithCidIds01"); + res.add(p1); - Observation o1 = new Observation(); - o1.setId("cid:observation1"); - o1.getIdentifier().setSystem("system").setValue("testTransactionWithCidIds02"); - o1.setSubject(new ResourceReferenceDt("Patient/cid:patient1")); - res.add(o1); + Observation o1 = new Observation(); + o1.setId("cid:observation1"); + o1.getIdentifier().setSystem("system").setValue("testTransactionWithCidIds02"); + o1.setSubject(new ResourceReferenceDt("Patient/cid:patient1")); + res.add(o1); - Observation o2 = new Observation(); - o2.setId("cid:observation2"); - o2.getIdentifier().setSystem("system").setValue("testTransactionWithCidIds03"); - o2.setSubject(new ResourceReferenceDt("Patient/cid:patient1")); - res.add(o2); + Observation o2 = new Observation(); + o2.setId("cid:observation2"); + o2.getIdentifier().setSystem("system").setValue("testTransactionWithCidIds03"); + o2.setSubject(new ResourceReferenceDt("Patient/cid:patient1")); + res.add(o2); - ourSystemDao.transaction(res); + ourSystemDao.transaction(res); - assertTrue(p1.getId().getValue(), p1.getId().getIdPart().matches("^[0-9]+$")); - assertTrue(o1.getId().getValue(), o1.getId().getIdPart().matches("^[0-9]+$")); - assertTrue(o2.getId().getValue(), o2.getId().getIdPart().matches("^[0-9]+$")); + assertTrue(p1.getId().getValue(), p1.getId().getIdPart().matches("^[0-9]+$")); + assertTrue(o1.getId().getValue(), o1.getId().getIdPart().matches("^[0-9]+$")); + assertTrue(o2.getId().getValue(), o2.getId().getIdPart().matches("^[0-9]+$")); - assertThat(o1.getSubject().getReference().getValue(), endsWith("Patient/" + p1.getId().getIdPart())); - assertThat(o2.getSubject().getReference().getValue(), endsWith("Patient/" + p1.getId().getIdPart())); + assertThat(o1.getSubject().getReference().getValue(), endsWith("Patient/" + p1.getId().getIdPart())); + assertThat(o2.getSubject().getReference().getValue(), endsWith("Patient/" + p1.getId().getIdPart())); - } + } - @Test - public void testTransactionWithDelete() throws Exception { + @Test + public void testTransactionWithDelete() throws Exception { /* * Create 3 */ - List res; - res = new ArrayList(); + List res; + res = new ArrayList(); - Patient p1 = new Patient(); - p1.addIdentifier().setSystem("urn:system").setValue("testTransactionWithDelete"); - res.add(p1); + Patient p1 = new Patient(); + p1.addIdentifier().setSystem("urn:system").setValue("testTransactionWithDelete"); + res.add(p1); - Patient p2 = new Patient(); - p2.addIdentifier().setSystem("urn:system").setValue("testTransactionWithDelete"); - res.add(p2); + Patient p2 = new Patient(); + p2.addIdentifier().setSystem("urn:system").setValue("testTransactionWithDelete"); + res.add(p2); - Patient p3 = new Patient(); - p3.addIdentifier().setSystem("urn:system").setValue("testTransactionWithDelete"); - res.add(p3); + Patient p3 = new Patient(); + p3.addIdentifier().setSystem("urn:system").setValue("testTransactionWithDelete"); + res.add(p3); - ourSystemDao.transaction(res); + ourSystemDao.transaction(res); /* * Verify */ - IBundleProvider results = ourPatientDao.search(Patient.SP_IDENTIFIER, new TokenParam("urn:system", "testTransactionWithDelete")); - assertEquals(3, results.size()); + IBundleProvider results = ourPatientDao.search(Patient.SP_IDENTIFIER, new TokenParam("urn:system", "testTransactionWithDelete")); + assertEquals(3, results.size()); /* * Now delete 2 */ - res = new ArrayList(); - List existing = results.getResources(0, 3); + res = new ArrayList(); + List existing = results.getResources(0, 3); - p1 = new Patient(); - p1.setId(existing.get(0).getId()); - ResourceMetadataKeyEnum.DELETED_AT.put(p1, InstantDt.withCurrentTime()); - res.add(p1); + p1 = new Patient(); + p1.setId(existing.get(0).getId()); + ResourceMetadataKeyEnum.DELETED_AT.put(p1, InstantDt.withCurrentTime()); + res.add(p1); - p2 = new Patient(); - p2.setId(existing.get(1).getId()); - ResourceMetadataKeyEnum.DELETED_AT.put(p2, InstantDt.withCurrentTime()); - res.add(p2); + p2 = new Patient(); + p2.setId(existing.get(1).getId()); + ResourceMetadataKeyEnum.DELETED_AT.put(p2, InstantDt.withCurrentTime()); + res.add(p2); - ourSystemDao.transaction(res); + ourSystemDao.transaction(res); /* * Verify */ - IBundleProvider results2 = ourPatientDao.search(Patient.SP_IDENTIFIER, new TokenParam("urn:system", "testTransactionWithDelete")); - assertEquals(1, results2.size()); - List existing2 = results2.getResources(0, 1); - assertEquals(existing2.get(0).getId(), existing.get(2).getId()); + IBundleProvider results2 = ourPatientDao.search(Patient.SP_IDENTIFIER, new TokenParam("urn:system", "testTransactionWithDelete")); + assertEquals(1, results2.size()); + List existing2 = results2.getResources(0, 1); + assertEquals(existing2.get(0).getId(), existing.get(2).getId()); - } + } - @AfterClass - public static void afterClass() { - ourCtx.close(); - } + @AfterClass + public static void afterClass() { + ourCtx.close(); + } - @SuppressWarnings("unchecked") - @BeforeClass - public static void beforeClass() { - ourCtx = new ClassPathXmlApplicationContext("hapi-fhir-server-resourceproviders-dstu1.xml", "fhir-jpabase-spring-test-config.xml"); - ourFhirContext = ourCtx.getBean(FhirContext.class); - ourPatientDao = ourCtx.getBean("myPatientDaoDstu1", IFhirResourceDao.class); - ourObservationDao = ourCtx.getBean("myObservationDaoDstu1", IFhirResourceDao.class); - ourLocationDao = ourCtx.getBean("myLocationDaoDstu1", IFhirResourceDao.class); - ourSystemDao = ourCtx.getBean("mySystemDaoDstu1", IFhirSystemDao.class); - } + @SuppressWarnings("unchecked") + @BeforeClass + public static void beforeClass() { + ourCtx = new ClassPathXmlApplicationContext("hapi-fhir-server-resourceproviders-dstu1.xml", "fhir-jpabase-spring-test-config.xml"); + ourFhirContext = ourCtx.getBean(FhirContext.class); + ourPatientDao = ourCtx.getBean("myPatientDaoDstu1", IFhirResourceDao.class); + ourObservationDao = ourCtx.getBean("myObservationDaoDstu1", IFhirResourceDao.class); + ourLocationDao = ourCtx.getBean("myLocationDaoDstu1", IFhirResourceDao.class); + ourSystemDao = ourCtx.getBean("mySystemDaoDstu1", IFhirSystemDao.class); + } } diff --git a/hapi-fhir-jpaserver-base/src/test/java/ca/uhn/fhir/jpa/dao/FhirSystemDaoDstu2Test.java b/hapi-fhir-jpaserver-base/src/test/java/ca/uhn/fhir/jpa/dao/FhirSystemDaoDstu2Test.java index 691a99c877a..82501a6f10a 100644 --- a/hapi-fhir-jpaserver-base/src/test/java/ca/uhn/fhir/jpa/dao/FhirSystemDaoDstu2Test.java +++ b/hapi-fhir-jpaserver-base/src/test/java/ca/uhn/fhir/jpa/dao/FhirSystemDaoDstu2Test.java @@ -44,638 +44,637 @@ import ca.uhn.fhir.rest.server.exceptions.ResourceNotFoundException; public class FhirSystemDaoDstu2Test { - private static ClassPathXmlApplicationContext ourCtx; - private static FhirContext ourFhirContext; - private static final org.slf4j.Logger ourLog = org.slf4j.LoggerFactory.getLogger(FhirSystemDaoDstu2Test.class); - private static IFhirResourceDao ourPatientDao; - private static IFhirSystemDao ourSystemDao; - private static IFhirResourceDao ourObservationDao; - - @Test - public void testTransactionCreateMatchUrlWithOneMatch() { - String methodName = "testTransactionCreateMatchUrlWithOneMatch"; - Bundle request = new Bundle(); - - Patient p = new Patient(); - p.addIdentifier().setSystem("urn:system").setValue(methodName); - p.setId("Patient/" + methodName); - IdDt id = ourPatientDao.create(p).getId(); - ourLog.info("Created patient, got it: {}", id); - - p = new Patient(); - p.addIdentifier().setSystem("urn:system").setValue(methodName); - p.addName().addFamily("Hello"); - p.setId("Patient/" + methodName); - request.addEntry().setResource(p).getTransaction().setMethod(HTTPVerbEnum.POST).setIfNoneExist("Patient?identifier=urn%3Asystem%7C" + methodName); - - Observation o = new Observation(); - o.getName().setText("Some Observation"); - o.getSubject().setReference("Patient/" + methodName); - request.addEntry().setResource(o).getTransaction().setMethod(HTTPVerbEnum.POST); - - Bundle resp = ourSystemDao.transaction(request); - assertEquals(3, resp.getEntry().size()); - - Entry respEntry = resp.getEntry().get(1); - assertEquals(Constants.STATUS_HTTP_200_OK + "", respEntry.getTransactionResponse().getStatus()); - assertThat(respEntry.getTransactionResponse().getLocation(), endsWith("Patient/" + id.getIdPart() + "/_history/1")); - assertEquals("1", respEntry.getTransactionResponse().getEtag().get(0).getValue()); - - respEntry = resp.getEntry().get(2); - assertEquals(Constants.STATUS_HTTP_201_CREATED + "", respEntry.getTransactionResponse().getStatus()); - assertThat(respEntry.getTransactionResponse().getLocation(), containsString("Observation/")); - assertThat(respEntry.getTransactionResponse().getLocation(), endsWith("/_history/1")); - assertEquals("1", respEntry.getTransactionResponse().getEtag().get(0).getValue()); - - o = (Observation) ourObservationDao.read(new IdDt(respEntry.getTransactionResponse().getLocationElement())); - assertEquals(id.toVersionless(), o.getSubject().getReference()); - assertEquals("1", o.getId().getVersionIdPart()); - - } - - - @Test - public void testTransactionReadAndSearch() { - String methodName = "testTransactionReadAndSearch"; - - Patient p = new Patient(); - p.addIdentifier().setSystem("urn:system").setValue(methodName); - p.setId("Patient/" + methodName); - IdDt idv1 = ourPatientDao.create(p).getId(); - ourLog.info("Created patient, got id: {}", idv1); - - p = new Patient(); - p.addIdentifier().setSystem("urn:system").setValue(methodName); - p.addName().addFamily("Family Name"); - p.setId("Patient/" + methodName); - IdDt idv2 = ourPatientDao.update(p).getId(); - ourLog.info("Updated patient, got id: {}", idv2); - - Bundle request = new Bundle(); - request.addEntry().getTransaction().setMethod(HTTPVerbEnum.GET).setUrl(idv1.toUnqualifiedVersionless().getValue()); - request.addEntry().getTransaction().setMethod(HTTPVerbEnum.GET).setUrl(idv1.toUnqualified().getValue()); - request.addEntry().getTransaction().setMethod(HTTPVerbEnum.GET).setUrl("Patient?identifier=urn%3Asystem%7C" + methodName); - - Bundle resp = ourSystemDao.transaction(request); - - assertEquals(4, resp.getEntry().size()); - - Entry nextEntry; - - nextEntry = resp.getEntry().get(1); - assertEquals(Patient.class, nextEntry.getResource().getClass()); - assertEquals(idv2.toUnqualified(), nextEntry.getResource().getId().toUnqualified()); - - nextEntry = resp.getEntry().get(2); - assertEquals(Patient.class, nextEntry.getResource().getClass()); - assertEquals(idv1.toUnqualified(), nextEntry.getResource().getId().toUnqualified()); - - nextEntry = resp.getEntry().get(3); - assertEquals(Bundle.class, nextEntry.getResource().getClass()); - - Bundle respBundle = (Bundle)nextEntry.getResource(); - assertEquals(1, respBundle.getTotal().intValue()); - } - - - - @Test - public void testTransactionCreateMatchUrlWithTwoMatch() { - String methodName = "testTransactionCreateMatchUrlWithTwoMatch"; - - Patient p = new Patient(); - p.addIdentifier().setSystem("urn:system").setValue(methodName); - IdDt id = ourPatientDao.create(p).getId(); - ourLog.info("Created patient, got it: {}", id); - - p = new Patient(); - p.addIdentifier().setSystem("urn:system").setValue(methodName); - id = ourPatientDao.create(p).getId(); - ourLog.info("Created patient, got it: {}", id); - - Bundle request = new Bundle(); - p = new Patient(); - p.addIdentifier().setSystem("urn:system").setValue(methodName); - p.addName().addFamily("Hello"); - p.setId("Patient/" + methodName); - request.addEntry().setResource(p).getTransaction().setMethod(HTTPVerbEnum.POST).setIfNoneExist("Patient?identifier=urn%3Asystem%7C" + methodName); - - Observation o = new Observation(); - o.getName().setText("Some Observation"); - o.getSubject().setReference("Patient/" + methodName); - request.addEntry().setResource(o).getTransaction().setMethod(HTTPVerbEnum.POST); - - try { - ourSystemDao.transaction(request); - fail(); - } catch (PreconditionFailedException e) { - assertThat(e.getMessage(), containsString("with match URL \"Patient")); - } - } - - @Test - public void testTransactionCreateMatchUrlWithZeroMatch() { - String methodName = "testTransactionCreateMatchUrlWithZeroMatch"; - Bundle request = new Bundle(); - - Patient p = new Patient(); - p.addIdentifier().setSystem("urn:system").setValue(methodName); - p.addName().addFamily("Hello"); - p.setId("Patient/" + methodName); - request.addEntry().setResource(p).getTransaction().setMethod(HTTPVerbEnum.POST).setIfNoneExist("Patient?identifier=urn%3Asystem%7C" + methodName); - - Observation o = new Observation(); - o.getName().setText("Some Observation"); - o.getSubject().setReference("Patient/" + methodName); - request.addEntry().setResource(o).getTransaction().setMethod(HTTPVerbEnum.POST); - - Bundle resp = ourSystemDao.transaction(request); - assertEquals(3, resp.getEntry().size()); - - Entry respEntry = resp.getEntry().get(1); - assertEquals(Constants.STATUS_HTTP_201_CREATED + "", respEntry.getTransactionResponse().getStatus()); - String patientId = respEntry.getTransactionResponse().getLocation(); - assertThat(patientId, not(endsWith("Patient/" + methodName + "/_history/1"))); - assertThat(patientId, (endsWith("/_history/1"))); - assertThat(patientId, (containsString("Patient/"))); - assertEquals("1", respEntry.getTransactionResponse().getEtag().get(0).getValue()); - - respEntry = resp.getEntry().get(2); - assertEquals(Constants.STATUS_HTTP_201_CREATED + "", respEntry.getTransactionResponse().getStatus()); - assertThat(respEntry.getTransactionResponse().getLocation(), containsString("Observation/")); - assertThat(respEntry.getTransactionResponse().getLocation(), endsWith("/_history/1")); - assertEquals("1", respEntry.getTransactionResponse().getEtag().get(0).getValue()); - - o = (Observation) ourObservationDao.read(new IdDt(respEntry.getTransactionResponse().getLocationElement())); - assertEquals(new IdDt(patientId).toUnqualifiedVersionless(), o.getSubject().getReference()); - } - - @Test - public void testTransactionCreateNoMatchUrl() { - String methodName = "testTransactionCreateNoMatchUrl"; - Bundle request = new Bundle(); - - Patient p = new Patient(); - p.addIdentifier().setSystem("urn:system").setValue(methodName); - p.setId("Patient/" + methodName); - request.addEntry().setResource(p).getTransaction().setMethod(HTTPVerbEnum.POST).setIfNoneExist("Patient?identifier=urn%3Asystem%7C" + methodName); - - Bundle resp = ourSystemDao.transaction(request); - assertEquals(2, resp.getEntry().size()); - - Entry respEntry = resp.getEntry().get(1); - assertEquals(Constants.STATUS_HTTP_201_CREATED + "", respEntry.getTransactionResponse().getStatus()); - String patientId = respEntry.getTransactionResponse().getLocation(); - assertThat(patientId, not(containsString("test"))); - } - - @Test - public void testTransactionDeleteMatchUrlWithOneMatch() { - String methodName = "testTransactionDeleteMatchUrlWithOneMatch"; - - Patient p = new Patient(); - p.addIdentifier().setSystem("urn:system").setValue(methodName); - IdDt id = ourPatientDao.create(p).getId(); - ourLog.info("Created patient, got it: {}", id); - - Bundle request = new Bundle(); - request.addEntry().getTransaction().setMethod(HTTPVerbEnum.DELETE).setUrl("Patient?identifier=urn%3Asystem%7C" + methodName); - - Bundle resp = ourSystemDao.transaction(request); - assertEquals(2, resp.getEntry().size()); - - Entry nextEntry = resp.getEntry().get(1); - assertEquals(Constants.STATUS_HTTP_204_NO_CONTENT + "", nextEntry.getTransactionResponse().getStatus()); - - try { - ourPatientDao.read(id.toVersionless()); - fail(); - } catch (ResourceGoneException e) { - // ok - } - - try { - ourPatientDao.read(new IdDt("Patient/" + methodName)); - fail(); - } catch (ResourceNotFoundException e) { - // ok - } - - IBundleProvider history = ourPatientDao.history(id, null); - assertEquals(2, history.size()); - - assertNotNull(ResourceMetadataKeyEnum.DELETED_AT.get(history.getResources(0, 0).get(0))); - assertNotNull(ResourceMetadataKeyEnum.DELETED_AT.get(history.getResources(0, 0).get(0)).getValue()); - assertNull(ResourceMetadataKeyEnum.DELETED_AT.get(history.getResources(1, 1).get(0))); - - } - - @Test - public void testTransactionDeleteMatchUrlWithTwoMatch() { - String methodName = "testTransactionDeleteMatchUrlWithTwoMatch"; - - Patient p = new Patient(); - p.addIdentifier().setSystem("urn:system").setValue(methodName); - IdDt id = ourPatientDao.create(p).getId(); - ourLog.info("Created patient, got it: {}", id); - - p = new Patient(); - p.addIdentifier().setSystem("urn:system").setValue(methodName); - id = ourPatientDao.create(p).getId(); - ourLog.info("Created patient, got it: {}", id); - - p = new Patient(); - p.addIdentifier().setSystem("urn:system").setValue(methodName); - p.addName().addFamily("Hello"); - p.setId("Patient/" + methodName); - - Bundle request = new Bundle(); - request.addEntry().getTransaction().setMethod(HTTPVerbEnum.DELETE).setUrl("Patient?identifier=urn%3Asystem%7C" + methodName); - - try { - ourSystemDao.transaction(request); - fail(); - } catch (ResourceNotFoundException e) { - assertThat(e.getMessage(), containsString("resource with match URL \"Patient?")); - } - } - - @Test - public void testTransactionDeleteByResourceId() { - String methodName = "testTransactionDeleteByResourceId"; - - Patient p1 = new Patient(); - p1.addIdentifier().setSystem("urn:system").setValue(methodName); - IdDt id1 = ourPatientDao.create(p1).getId(); - ourLog.info("Created patient, got it: {}", id1); - - Patient p2 = new Patient(); - p2.addIdentifier().setSystem("urn:system").setValue(methodName); - p2.setId("Patient/" + methodName); - IdDt id2 = ourPatientDao.create(p2).getId(); - ourLog.info("Created patient, got it: {}", id2); - - Bundle request = new Bundle(); - - request.addEntry().getTransaction().setMethod(HTTPVerbEnum.DELETE).setUrl("Patient/" + id1.getIdPart()); - request.addEntry().getTransaction().setMethod(HTTPVerbEnum.DELETE).setUrl("Patient/" + id2.getIdPart()); - - ourPatientDao.read(id1.toVersionless()); - ourPatientDao.read(id2.toVersionless()); - - Bundle resp = ourSystemDao.transaction(request); - - assertEquals(3, resp.getEntry().size()); - assertEquals("204", resp.getEntry().get(1).getTransactionResponse().getStatus()); - assertEquals("204", resp.getEntry().get(2).getTransactionResponse().getStatus()); - - try { - ourPatientDao.read(id1.toVersionless()); - fail(); - } catch (ResourceGoneException e) { - // good - } - - try { - ourPatientDao.read(id2.toVersionless()); - fail(); - } catch (ResourceGoneException e) { - // good - } - - } - - @Test - public void testTransactionDeleteMatchUrlWithZeroMatch() { - String methodName = "testTransactionDeleteMatchUrlWithZeroMatch"; - - Bundle request = new Bundle(); - request.addEntry().getTransaction().setMethod(HTTPVerbEnum.DELETE).setUrl("Patient?identifier=urn%3Asystem%7C" + methodName); - - try { - ourSystemDao.transaction(request); - fail(); - } catch (ResourceNotFoundException e) { - assertThat(e.getMessage(), containsString("resource matching URL \"Patient?")); - } - } - - @Test - public void testTransactionDeleteNoMatchUrl() { - String methodName = "testTransactionDeleteNoMatchUrl"; - - Patient p = new Patient(); - p.addIdentifier().setSystem("urn:system").setValue(methodName); - p.setId("Patient/" + methodName); - IdDt id = ourPatientDao.create(p).getId(); - ourLog.info("Created patient, got it: {}", id); - - Bundle request = new Bundle(); - request.addEntry().getTransaction().setMethod(HTTPVerbEnum.DELETE).setUrl("Patient?identifier=urn%3Asystem%7C" + methodName); - - Bundle res = ourSystemDao.transaction(request); - assertEquals(2, res.getEntry().size()); - - assertEquals(Constants.STATUS_HTTP_204_NO_CONTENT + "", res.getEntry().get(1).getTransactionResponse().getStatus()); - - try { - ourPatientDao.read(id.toVersionless()); - fail(); - } catch (ResourceGoneException e) { - // ok - } - } - - @Test(expected = InvalidRequestException.class) - public void testTransactionFailsWithDuplicateIds() { - Bundle request = new Bundle(); - - Patient patient1 = new Patient(); - patient1.setId(new IdDt("Patient/testTransactionFailsWithDusplicateIds")); - patient1.addIdentifier().setSystem("urn:system").setValue("testPersistWithSimpleLinkP01"); - request.addEntry().setResource(patient1).getTransaction().setMethod(HTTPVerbEnum.POST); - - Patient patient2 = new Patient(); - patient2.setId(new IdDt("Patient/testTransactionFailsWithDusplicateIds")); - patient2.addIdentifier().setSystem("urn:system").setValue("testPersistWithSimpleLinkP02"); - request.addEntry().setResource(patient2).getTransaction().setMethod(HTTPVerbEnum.POST); - - ourSystemDao.transaction(request); - } - - @Test - public void testTransactionUpdateMatchUrlWithOneMatch() { - String methodName = "testTransactionUpdateMatchUrlWithOneMatch"; - Bundle request = new Bundle(); - - Patient p = new Patient(); - p.addIdentifier().setSystem("urn:system").setValue(methodName); - IdDt id = ourPatientDao.create(p).getId(); - ourLog.info("Created patient, got it: {}", id); - - p = new Patient(); - p.addIdentifier().setSystem("urn:system").setValue(methodName); - p.addName().addFamily("Hello"); - p.setId("Patient/" + methodName); - request.addEntry().setResource(p).getTransaction().setMethod(HTTPVerbEnum.PUT).setUrl("Patient?identifier=urn%3Asystem%7C" + methodName); - - Observation o = new Observation(); - o.getName().setText("Some Observation"); - o.getSubject().setReference("Patient/" + methodName); - request.addEntry().setResource(o).getTransaction().setMethod(HTTPVerbEnum.POST); - - Bundle resp = ourSystemDao.transaction(request); - assertEquals(3, resp.getEntry().size()); - - Entry nextEntry = resp.getEntry().get(1); - assertEquals("200", nextEntry.getTransactionResponse().getStatus()); - assertThat(nextEntry.getTransactionResponse().getLocation(), not(containsString("test"))); - assertEquals(id.toVersionless(), p.getId().toVersionless()); - assertNotEquals(id, p.getId()); - assertThat(p.getId().toString(), endsWith("/_history/2")); - - nextEntry = resp.getEntry().get(1); - assertEquals(""+Constants.STATUS_HTTP_200_OK, nextEntry.getTransactionResponse().getStatus()); - assertThat(nextEntry.getTransactionResponse().getLocation(), not(emptyString())); - - nextEntry = resp.getEntry().get(2); - o = ourObservationDao.read(new IdDt(nextEntry.getTransactionResponse().getLocation())); - assertEquals(id.toVersionless(), o.getSubject().getReference()); - - } - - @Test - public void testTransactionUpdateMatchUrlWithTwoMatch() { - String methodName = "testTransactionUpdateMatchUrlWithTwoMatch"; - Bundle request = new Bundle(); - - Patient p = new Patient(); - p.addIdentifier().setSystem("urn:system").setValue(methodName); - IdDt id = ourPatientDao.create(p).getId(); - ourLog.info("Created patient, got it: {}", id); - - p = new Patient(); - p.addIdentifier().setSystem("urn:system").setValue(methodName); - id = ourPatientDao.create(p).getId(); - ourLog.info("Created patient, got it: {}", id); - - p = new Patient(); - p.addIdentifier().setSystem("urn:system").setValue(methodName); - p.addName().addFamily("Hello"); - p.setId("Patient/" + methodName); - request.addEntry().setResource(p).getTransaction().setMethod(HTTPVerbEnum.PUT).setUrl("Patient?identifier=urn%3Asystem%7C" + methodName); - - Observation o = new Observation(); - o.getName().setText("Some Observation"); - o.getSubject().setReference("Patient/" + methodName); - request.addEntry().setResource(o).getTransaction().setMethod(HTTPVerbEnum.POST); - - try { - ourSystemDao.transaction(request); - fail(); - } catch (PreconditionFailedException e) { - assertThat(e.getMessage(), containsString("with match URL \"Patient")); - } - } - - @Test - public void testTransactionUpdateMatchUrlWithZeroMatch() { - String methodName = "testTransactionUpdateMatchUrlWithZeroMatch"; - Bundle request = new Bundle(); - - Patient p = new Patient(); - p.addName().addFamily("Hello"); - IdDt id = ourPatientDao.create(p).getId(); - - p = new Patient(); - p.addIdentifier().setSystem("urn:system").setValue(methodName); - p.addName().addFamily("Hello"); - p.setId(id); - request.addEntry().setResource(p).getTransaction().setMethod(HTTPVerbEnum.PUT).setUrl("Patient?identifier=urn%3Asystem%7C" + methodName); - - Observation o = new Observation(); - o.getName().setText("Some Observation"); - o.getSubject().setReference(id); - request.addEntry().setResource(o).getTransaction().setMethod(HTTPVerbEnum.POST); - - Bundle resp = ourSystemDao.transaction(request); - assertEquals(3, resp.getEntry().size()); - - Entry nextEntry = resp.getEntry().get(1); - assertEquals(Constants.STATUS_HTTP_201_CREATED + "", nextEntry.getTransactionResponse().getStatus()); - - assertThat(nextEntry.getTransactionResponse().getLocation(), not(containsString("test"))); - assertNotEquals(id.toVersionless(), new IdDt(nextEntry.getTransactionResponse().getLocation()).toVersionless()); - - assertThat(nextEntry.getTransactionResponse().getLocation(), endsWith("/_history/1")); - - nextEntry = resp.getEntry().get(1); - assertEquals(""+Constants.STATUS_HTTP_201_CREATED, nextEntry.getTransactionResponse().getStatus()); - - nextEntry = resp.getEntry().get(2); - o = ourObservationDao.read(new IdDt(nextEntry.getTransactionResponse().getLocation())); - assertEquals(id.toVersionless(), o.getSubject().getReference()); - - } - - - @Test - public void testTransactionUpdateNoMatchUrl() { - String methodName = "testTransactionUpdateNoMatchUrl"; - Bundle request = new Bundle(); - - Patient p = new Patient(); - p.addIdentifier().setSystem("urn:system").setValue(methodName); - p.setId("Patient/" + methodName); - IdDt id = ourPatientDao.create(p).getId(); - ourLog.info("Created patient, got it: {}", id); - - p = new Patient(); - p.addIdentifier().setSystem("urn:system").setValue(methodName); - p.addName().addFamily("Hello"); - p.setId("Patient/" + methodName); - request.addEntry().setResource(p).getTransaction().setMethod(HTTPVerbEnum.PUT).setUrl("Patient/"+ id.getIdPart()); - - Observation o = new Observation(); - o.getName().setText("Some Observation"); - o.getSubject().setReference("Patient/" + methodName); - request.addEntry().setResource(o).getTransaction().setMethod(HTTPVerbEnum.POST); - - Bundle resp = ourSystemDao.transaction(request); - assertEquals(3, resp.getEntry().size()); - - Entry nextEntry = resp.getEntry().get(1); - assertEquals("200", nextEntry.getTransactionResponse().getStatus()); - - assertThat(nextEntry.getTransactionResponse().getLocation(), (containsString("test"))); - assertEquals(id.toVersionless(), new IdDt(nextEntry.getTransactionResponse().getLocation()).toVersionless()); - assertNotEquals(id, new IdDt(nextEntry.getTransactionResponse().getLocation())); - assertThat(nextEntry.getTransactionResponse().getLocation(), endsWith("/_history/2")); - - nextEntry = resp.getEntry().get(2); - assertEquals(""+Constants.STATUS_HTTP_201_CREATED, nextEntry.getTransactionResponse().getStatus()); - - o = ourObservationDao.read(new IdDt(resp.getEntry().get(2).getTransactionResponse().getLocation())); - assertEquals(id.toVersionless(), o.getSubject().getReference()); - - } - - // - // - // /** - // * Issue #55 - // */ - // @Test - // public void testTransactionWithCidIds() throws Exception { - // Bundle request = new Bundle(); - // - // Patient p1 = new Patient(); - // p1.setId("cid:patient1"); - // p1.addIdentifier().setSystem("system").setValue("testTransactionWithCidIds01"); - // res.add(p1); - // - // Observation o1 = new Observation(); - // o1.setId("cid:observation1"); - // o1.getIdentifier().setSystem("system").setValue("testTransactionWithCidIds02"); - // o1.setSubject(new ResourceReferenceDt("Patient/cid:patient1")); - // res.add(o1); - // - // Observation o2 = new Observation(); - // o2.setId("cid:observation2"); - // o2.getIdentifier().setSystem("system").setValue("testTransactionWithCidIds03"); - // o2.setSubject(new ResourceReferenceDt("Patient/cid:patient1")); - // res.add(o2); - // - // ourSystemDao.transaction(res); - // - // assertTrue(p1.getId().getValue(), p1.getId().getIdPart().matches("^[0-9]+$")); - // assertTrue(o1.getId().getValue(), o1.getId().getIdPart().matches("^[0-9]+$")); - // assertTrue(o2.getId().getValue(), o2.getId().getIdPart().matches("^[0-9]+$")); - // - // assertThat(o1.getSubject().getReference().getValue(), endsWith("Patient/" + p1.getId().getIdPart())); - // assertThat(o2.getSubject().getReference().getValue(), endsWith("Patient/" + p1.getId().getIdPart())); - // - // } - // - // @Test - // public void testTransactionWithDelete() throws Exception { - // Bundle request = new Bundle(); - // - // /* - // * Create 3 - // */ - // - // List res; - // res = new ArrayList(); - // - // Patient p1 = new Patient(); - // p1.addIdentifier().setSystem("urn:system").setValue("testTransactionWithDelete"); - // res.add(p1); - // - // Patient p2 = new Patient(); - // p2.addIdentifier().setSystem("urn:system").setValue("testTransactionWithDelete"); - // res.add(p2); - // - // Patient p3 = new Patient(); - // p3.addIdentifier().setSystem("urn:system").setValue("testTransactionWithDelete"); - // res.add(p3); - // - // ourSystemDao.transaction(res); - // - // /* - // * Verify - // */ - // - // IBundleProvider results = ourPatientDao.search(Patient.SP_IDENTIFIER, new TokenParam("urn:system", - // "testTransactionWithDelete")); - // assertEquals(3, results.size()); - // - // /* - // * Now delete 2 - // */ - // - // request = new Bundle(); - // res = new ArrayList(); - // List existing = results.getResources(0, 3); - // - // p1 = new Patient(); - // p1.setId(existing.get(0).getId()); - // ResourceMetadataKeyEnum.DELETED_AT.put(p1, InstantDt.withCurrentTime()); - // res.add(p1); - // - // p2 = new Patient(); - // p2.setId(existing.get(1).getId()); - // ResourceMetadataKeyEnum.DELETED_AT.put(p2, InstantDt.withCurrentTime()); - // res.add(p2); - // - // ourSystemDao.transaction(res); - // - // /* - // * Verify - // */ - // - // IBundleProvider results2 = ourPatientDao.search(Patient.SP_IDENTIFIER, new TokenParam("urn:system", - // "testTransactionWithDelete")); - // assertEquals(1, results2.size()); - // List existing2 = results2.getResources(0, 1); - // assertEquals(existing2.get(0).getId(), existing.get(2).getId()); - // - // } - - @AfterClass - public static void afterClass() { - ourCtx.close(); - } - - @SuppressWarnings("unchecked") - @BeforeClass - public static void beforeClass() { - ourCtx = new ClassPathXmlApplicationContext("hapi-fhir-server-resourceproviders-dstu2.xml", "fhir-jpabase-spring-test-config.xml"); - ourFhirContext = ourCtx.getBean(FhirContext.class); - assertEquals(FhirVersionEnum.DSTU2, ourFhirContext.getVersion().getVersion()); - ourPatientDao = ourCtx.getBean("myPatientDaoDstu2", IFhirResourceDao.class); - ourObservationDao = ourCtx.getBean("myObservationDaoDstu2", IFhirResourceDao.class); - ourSystemDao = ourCtx.getBean("mySystemDaoDstu2", IFhirSystemDao.class); - } + private static ClassPathXmlApplicationContext ourCtx; + private static FhirContext ourFhirContext; + private static final org.slf4j.Logger ourLog = org.slf4j.LoggerFactory.getLogger(FhirSystemDaoDstu2Test.class); + private static IFhirResourceDao ourPatientDao; + private static IFhirSystemDao ourSystemDao; + private static IFhirResourceDao ourObservationDao; + + @Test + public void testTransactionCreateMatchUrlWithOneMatch() { + String methodName = "testTransactionCreateMatchUrlWithOneMatch"; + Bundle request = new Bundle(); + + Patient p = new Patient(); + p.addIdentifier().setSystem("urn:system").setValue(methodName); + p.setId("Patient/" + methodName); + IdDt id = ourPatientDao.create(p).getId(); + ourLog.info("Created patient, got it: {}", id); + + p = new Patient(); + p.addIdentifier().setSystem("urn:system").setValue(methodName); + p.addName().addFamily("Hello"); + p.setId("Patient/" + methodName); + request.addEntry().setResource(p).getTransaction().setMethod(HTTPVerbEnum.POST).setIfNoneExist("Patient?identifier=urn%3Asystem%7C" + methodName); + + Observation o = new Observation(); + o.getName().setText("Some Observation"); + o.getSubject().setReference("Patient/" + methodName); + request.addEntry().setResource(o).getTransaction().setMethod(HTTPVerbEnum.POST); + + Bundle resp = ourSystemDao.transaction(request); + assertEquals(3, resp.getEntry().size()); + + Entry respEntry = resp.getEntry().get(1); + assertEquals(Constants.STATUS_HTTP_200_OK + "", respEntry.getTransactionResponse().getStatus()); + assertThat(respEntry.getTransactionResponse().getLocation(), endsWith("Patient/" + id.getIdPart() + "/_history/1")); + assertEquals("1", respEntry.getTransactionResponse().getEtag().get(0).getValue()); + + respEntry = resp.getEntry().get(2); + assertEquals(Constants.STATUS_HTTP_201_CREATED + "", respEntry.getTransactionResponse().getStatus()); + assertThat(respEntry.getTransactionResponse().getLocation(), containsString("Observation/")); + assertThat(respEntry.getTransactionResponse().getLocation(), endsWith("/_history/1")); + assertEquals("1", respEntry.getTransactionResponse().getEtag().get(0).getValue()); + + o = (Observation) ourObservationDao.read(new IdDt(respEntry.getTransactionResponse().getLocationElement())); + assertEquals(id.toVersionless(), o.getSubject().getReference()); + assertEquals("1", o.getId().getVersionIdPart()); + + } + + + @Test + public void testTransactionReadAndSearch() { + String methodName = "testTransactionReadAndSearch"; + + Patient p = new Patient(); + p.addIdentifier().setSystem("urn:system").setValue(methodName); + p.setId("Patient/" + methodName); + IdDt idv1 = ourPatientDao.create(p).getId(); + ourLog.info("Created patient, got id: {}", idv1); + + p = new Patient(); + p.addIdentifier().setSystem("urn:system").setValue(methodName); + p.addName().addFamily("Family Name"); + p.setId("Patient/" + methodName); + IdDt idv2 = ourPatientDao.update(p).getId(); + ourLog.info("Updated patient, got id: {}", idv2); + + Bundle request = new Bundle(); + request.addEntry().getTransaction().setMethod(HTTPVerbEnum.GET).setUrl(idv1.toUnqualifiedVersionless().getValue()); + request.addEntry().getTransaction().setMethod(HTTPVerbEnum.GET).setUrl(idv1.toUnqualified().getValue()); + request.addEntry().getTransaction().setMethod(HTTPVerbEnum.GET).setUrl("Patient?identifier=urn%3Asystem%7C" + methodName); + + Bundle resp = ourSystemDao.transaction(request); + + assertEquals(4, resp.getEntry().size()); + + Entry nextEntry; + + nextEntry = resp.getEntry().get(1); + assertEquals(Patient.class, nextEntry.getResource().getClass()); + assertEquals(idv2.toUnqualified(), nextEntry.getResource().getId().toUnqualified()); + + nextEntry = resp.getEntry().get(2); + assertEquals(Patient.class, nextEntry.getResource().getClass()); + assertEquals(idv1.toUnqualified(), nextEntry.getResource().getId().toUnqualified()); + + nextEntry = resp.getEntry().get(3); + assertEquals(Bundle.class, nextEntry.getResource().getClass()); + + Bundle respBundle = (Bundle) nextEntry.getResource(); + assertEquals(1, respBundle.getTotal().intValue()); + } + + + @Test + public void testTransactionCreateMatchUrlWithTwoMatch() { + String methodName = "testTransactionCreateMatchUrlWithTwoMatch"; + + Patient p = new Patient(); + p.addIdentifier().setSystem("urn:system").setValue(methodName); + IdDt id = ourPatientDao.create(p).getId(); + ourLog.info("Created patient, got it: {}", id); + + p = new Patient(); + p.addIdentifier().setSystem("urn:system").setValue(methodName); + id = ourPatientDao.create(p).getId(); + ourLog.info("Created patient, got it: {}", id); + + Bundle request = new Bundle(); + p = new Patient(); + p.addIdentifier().setSystem("urn:system").setValue(methodName); + p.addName().addFamily("Hello"); + p.setId("Patient/" + methodName); + request.addEntry().setResource(p).getTransaction().setMethod(HTTPVerbEnum.POST).setIfNoneExist("Patient?identifier=urn%3Asystem%7C" + methodName); + + Observation o = new Observation(); + o.getName().setText("Some Observation"); + o.getSubject().setReference("Patient/" + methodName); + request.addEntry().setResource(o).getTransaction().setMethod(HTTPVerbEnum.POST); + + try { + ourSystemDao.transaction(request); + fail(); + } catch (PreconditionFailedException e) { + assertThat(e.getMessage(), containsString("with match URL \"Patient")); + } + } + + @Test + public void testTransactionCreateMatchUrlWithZeroMatch() { + String methodName = "testTransactionCreateMatchUrlWithZeroMatch"; + Bundle request = new Bundle(); + + Patient p = new Patient(); + p.addIdentifier().setSystem("urn:system").setValue(methodName); + p.addName().addFamily("Hello"); + p.setId("Patient/" + methodName); + request.addEntry().setResource(p).getTransaction().setMethod(HTTPVerbEnum.POST).setIfNoneExist("Patient?identifier=urn%3Asystem%7C" + methodName); + + Observation o = new Observation(); + o.getName().setText("Some Observation"); + o.getSubject().setReference("Patient/" + methodName); + request.addEntry().setResource(o).getTransaction().setMethod(HTTPVerbEnum.POST); + + Bundle resp = ourSystemDao.transaction(request); + assertEquals(3, resp.getEntry().size()); + + Entry respEntry = resp.getEntry().get(1); + assertEquals(Constants.STATUS_HTTP_201_CREATED + "", respEntry.getTransactionResponse().getStatus()); + String patientId = respEntry.getTransactionResponse().getLocation(); + assertThat(patientId, not(endsWith("Patient/" + methodName + "/_history/1"))); + assertThat(patientId, (endsWith("/_history/1"))); + assertThat(patientId, (containsString("Patient/"))); + assertEquals("1", respEntry.getTransactionResponse().getEtag().get(0).getValue()); + + respEntry = resp.getEntry().get(2); + assertEquals(Constants.STATUS_HTTP_201_CREATED + "", respEntry.getTransactionResponse().getStatus()); + assertThat(respEntry.getTransactionResponse().getLocation(), containsString("Observation/")); + assertThat(respEntry.getTransactionResponse().getLocation(), endsWith("/_history/1")); + assertEquals("1", respEntry.getTransactionResponse().getEtag().get(0).getValue()); + + o = (Observation) ourObservationDao.read(new IdDt(respEntry.getTransactionResponse().getLocationElement())); + assertEquals(new IdDt(patientId).toUnqualifiedVersionless(), o.getSubject().getReference()); + } + + @Test + public void testTransactionCreateNoMatchUrl() { + String methodName = "testTransactionCreateNoMatchUrl"; + Bundle request = new Bundle(); + + Patient p = new Patient(); + p.addIdentifier().setSystem("urn:system").setValue(methodName); + p.setId("Patient/" + methodName); + request.addEntry().setResource(p).getTransaction().setMethod(HTTPVerbEnum.POST).setIfNoneExist("Patient?identifier=urn%3Asystem%7C" + methodName); + + Bundle resp = ourSystemDao.transaction(request); + assertEquals(2, resp.getEntry().size()); + + Entry respEntry = resp.getEntry().get(1); + assertEquals(Constants.STATUS_HTTP_201_CREATED + "", respEntry.getTransactionResponse().getStatus()); + String patientId = respEntry.getTransactionResponse().getLocation(); + assertThat(patientId, not(containsString("test"))); + } + + @Test + public void testTransactionDeleteMatchUrlWithOneMatch() { + String methodName = "testTransactionDeleteMatchUrlWithOneMatch"; + + Patient p = new Patient(); + p.addIdentifier().setSystem("urn:system").setValue(methodName); + IdDt id = ourPatientDao.create(p).getId(); + ourLog.info("Created patient, got it: {}", id); + + Bundle request = new Bundle(); + request.addEntry().getTransaction().setMethod(HTTPVerbEnum.DELETE).setUrl("Patient?identifier=urn%3Asystem%7C" + methodName); + + Bundle resp = ourSystemDao.transaction(request); + assertEquals(2, resp.getEntry().size()); + + Entry nextEntry = resp.getEntry().get(1); + assertEquals(Constants.STATUS_HTTP_204_NO_CONTENT + "", nextEntry.getTransactionResponse().getStatus()); + + try { + ourPatientDao.read(id.toVersionless()); + fail(); + } catch (ResourceGoneException e) { + // ok + } + + try { + ourPatientDao.read(new IdDt("Patient/" + methodName)); + fail(); + } catch (ResourceNotFoundException e) { + // ok + } + + IBundleProvider history = ourPatientDao.history(id, null); + assertEquals(2, history.size()); + + assertNotNull(ResourceMetadataKeyEnum.DELETED_AT.get(history.getResources(0, 0).get(0))); + assertNotNull(ResourceMetadataKeyEnum.DELETED_AT.get(history.getResources(0, 0).get(0)).getValue()); + assertNull(ResourceMetadataKeyEnum.DELETED_AT.get(history.getResources(1, 1).get(0))); + + } + + @Test + public void testTransactionDeleteMatchUrlWithTwoMatch() { + String methodName = "testTransactionDeleteMatchUrlWithTwoMatch"; + + Patient p = new Patient(); + p.addIdentifier().setSystem("urn:system").setValue(methodName); + IdDt id = ourPatientDao.create(p).getId(); + ourLog.info("Created patient, got it: {}", id); + + p = new Patient(); + p.addIdentifier().setSystem("urn:system").setValue(methodName); + id = ourPatientDao.create(p).getId(); + ourLog.info("Created patient, got it: {}", id); + + p = new Patient(); + p.addIdentifier().setSystem("urn:system").setValue(methodName); + p.addName().addFamily("Hello"); + p.setId("Patient/" + methodName); + + Bundle request = new Bundle(); + request.addEntry().getTransaction().setMethod(HTTPVerbEnum.DELETE).setUrl("Patient?identifier=urn%3Asystem%7C" + methodName); + + try { + ourSystemDao.transaction(request); + fail(); + } catch (ResourceNotFoundException e) { + assertThat(e.getMessage(), containsString("resource with match URL \"Patient?")); + } + } + + @Test + public void testTransactionDeleteByResourceId() { + String methodName = "testTransactionDeleteByResourceId"; + + Patient p1 = new Patient(); + p1.addIdentifier().setSystem("urn:system").setValue(methodName); + IdDt id1 = ourPatientDao.create(p1).getId(); + ourLog.info("Created patient, got it: {}", id1); + + Patient p2 = new Patient(); + p2.addIdentifier().setSystem("urn:system").setValue(methodName); + p2.setId("Patient/" + methodName); + IdDt id2 = ourPatientDao.create(p2).getId(); + ourLog.info("Created patient, got it: {}", id2); + + Bundle request = new Bundle(); + + request.addEntry().getTransaction().setMethod(HTTPVerbEnum.DELETE).setUrl("Patient/" + id1.getIdPart()); + request.addEntry().getTransaction().setMethod(HTTPVerbEnum.DELETE).setUrl("Patient/" + id2.getIdPart()); + + ourPatientDao.read(id1.toVersionless()); + ourPatientDao.read(id2.toVersionless()); + + Bundle resp = ourSystemDao.transaction(request); + + assertEquals(3, resp.getEntry().size()); + assertEquals("204", resp.getEntry().get(1).getTransactionResponse().getStatus()); + assertEquals("204", resp.getEntry().get(2).getTransactionResponse().getStatus()); + + try { + ourPatientDao.read(id1.toVersionless()); + fail(); + } catch (ResourceGoneException e) { + // good + } + + try { + ourPatientDao.read(id2.toVersionless()); + fail(); + } catch (ResourceGoneException e) { + // good + } + + } + + @Test + public void testTransactionDeleteMatchUrlWithZeroMatch() { + String methodName = "testTransactionDeleteMatchUrlWithZeroMatch"; + + Bundle request = new Bundle(); + request.addEntry().getTransaction().setMethod(HTTPVerbEnum.DELETE).setUrl("Patient?identifier=urn%3Asystem%7C" + methodName); + + try { + ourSystemDao.transaction(request); + fail(); + } catch (ResourceNotFoundException e) { + assertThat(e.getMessage(), containsString("resource matching URL \"Patient?")); + } + } + + @Test + public void testTransactionDeleteNoMatchUrl() { + String methodName = "testTransactionDeleteNoMatchUrl"; + + Patient p = new Patient(); + p.addIdentifier().setSystem("urn:system").setValue(methodName); + p.setId("Patient/" + methodName); + IdDt id = ourPatientDao.create(p).getId(); + ourLog.info("Created patient, got it: {}", id); + + Bundle request = new Bundle(); + request.addEntry().getTransaction().setMethod(HTTPVerbEnum.DELETE).setUrl("Patient?identifier=urn%3Asystem%7C" + methodName); + + Bundle res = ourSystemDao.transaction(request); + assertEquals(2, res.getEntry().size()); + + assertEquals(Constants.STATUS_HTTP_204_NO_CONTENT + "", res.getEntry().get(1).getTransactionResponse().getStatus()); + + try { + ourPatientDao.read(id.toVersionless()); + fail(); + } catch (ResourceGoneException e) { + // ok + } + } + + @Test(expected = InvalidRequestException.class) + public void testTransactionFailsWithDuplicateIds() { + Bundle request = new Bundle(); + + Patient patient1 = new Patient(); + patient1.setId(new IdDt("Patient/testTransactionFailsWithDusplicateIds")); + patient1.addIdentifier().setSystem("urn:system").setValue("testPersistWithSimpleLinkP01"); + request.addEntry().setResource(patient1).getTransaction().setMethod(HTTPVerbEnum.POST); + + Patient patient2 = new Patient(); + patient2.setId(new IdDt("Patient/testTransactionFailsWithDusplicateIds")); + patient2.addIdentifier().setSystem("urn:system").setValue("testPersistWithSimpleLinkP02"); + request.addEntry().setResource(patient2).getTransaction().setMethod(HTTPVerbEnum.POST); + + ourSystemDao.transaction(request); + } + + @Test + public void testTransactionUpdateMatchUrlWithOneMatch() { + String methodName = "testTransactionUpdateMatchUrlWithOneMatch"; + Bundle request = new Bundle(); + + Patient p = new Patient(); + p.addIdentifier().setSystem("urn:system").setValue(methodName); + IdDt id = ourPatientDao.create(p).getId(); + ourLog.info("Created patient, got it: {}", id); + + p = new Patient(); + p.addIdentifier().setSystem("urn:system").setValue(methodName); + p.addName().addFamily("Hello"); + p.setId("Patient/" + methodName); + request.addEntry().setResource(p).getTransaction().setMethod(HTTPVerbEnum.PUT).setUrl("Patient?identifier=urn%3Asystem%7C" + methodName); + + Observation o = new Observation(); + o.getName().setText("Some Observation"); + o.getSubject().setReference("Patient/" + methodName); + request.addEntry().setResource(o).getTransaction().setMethod(HTTPVerbEnum.POST); + + Bundle resp = ourSystemDao.transaction(request); + assertEquals(3, resp.getEntry().size()); + + Entry nextEntry = resp.getEntry().get(1); + assertEquals("200", nextEntry.getTransactionResponse().getStatus()); + assertThat(nextEntry.getTransactionResponse().getLocation(), not(containsString("test"))); + assertEquals(id.toVersionless(), p.getId().toVersionless()); + assertNotEquals(id, p.getId()); + assertThat(p.getId().toString(), endsWith("/_history/2")); + + nextEntry = resp.getEntry().get(1); + assertEquals("" + Constants.STATUS_HTTP_200_OK, nextEntry.getTransactionResponse().getStatus()); + assertThat(nextEntry.getTransactionResponse().getLocation(), not(emptyString())); + + nextEntry = resp.getEntry().get(2); + o = ourObservationDao.read(new IdDt(nextEntry.getTransactionResponse().getLocation())); + assertEquals(id.toVersionless(), o.getSubject().getReference()); + + } + + @Test + public void testTransactionUpdateMatchUrlWithTwoMatch() { + String methodName = "testTransactionUpdateMatchUrlWithTwoMatch"; + Bundle request = new Bundle(); + + Patient p = new Patient(); + p.addIdentifier().setSystem("urn:system").setValue(methodName); + IdDt id = ourPatientDao.create(p).getId(); + ourLog.info("Created patient, got it: {}", id); + + p = new Patient(); + p.addIdentifier().setSystem("urn:system").setValue(methodName); + id = ourPatientDao.create(p).getId(); + ourLog.info("Created patient, got it: {}", id); + + p = new Patient(); + p.addIdentifier().setSystem("urn:system").setValue(methodName); + p.addName().addFamily("Hello"); + p.setId("Patient/" + methodName); + request.addEntry().setResource(p).getTransaction().setMethod(HTTPVerbEnum.PUT).setUrl("Patient?identifier=urn%3Asystem%7C" + methodName); + + Observation o = new Observation(); + o.getName().setText("Some Observation"); + o.getSubject().setReference("Patient/" + methodName); + request.addEntry().setResource(o).getTransaction().setMethod(HTTPVerbEnum.POST); + + try { + ourSystemDao.transaction(request); + fail(); + } catch (PreconditionFailedException e) { + assertThat(e.getMessage(), containsString("with match URL \"Patient")); + } + } + + @Test + public void testTransactionUpdateMatchUrlWithZeroMatch() { + String methodName = "testTransactionUpdateMatchUrlWithZeroMatch"; + Bundle request = new Bundle(); + + Patient p = new Patient(); + p.addName().addFamily("Hello"); + IdDt id = ourPatientDao.create(p).getId(); + + p = new Patient(); + p.addIdentifier().setSystem("urn:system").setValue(methodName); + p.addName().addFamily("Hello"); + p.setId(id); + request.addEntry().setResource(p).getTransaction().setMethod(HTTPVerbEnum.PUT).setUrl("Patient?identifier=urn%3Asystem%7C" + methodName); + + Observation o = new Observation(); + o.getName().setText("Some Observation"); + o.getSubject().setReference(id); + request.addEntry().setResource(o).getTransaction().setMethod(HTTPVerbEnum.POST); + + Bundle resp = ourSystemDao.transaction(request); + assertEquals(3, resp.getEntry().size()); + + Entry nextEntry = resp.getEntry().get(1); + assertEquals(Constants.STATUS_HTTP_201_CREATED + "", nextEntry.getTransactionResponse().getStatus()); + + assertThat(nextEntry.getTransactionResponse().getLocation(), not(containsString("test"))); + assertNotEquals(id.toVersionless(), new IdDt(nextEntry.getTransactionResponse().getLocation()).toVersionless()); + + assertThat(nextEntry.getTransactionResponse().getLocation(), endsWith("/_history/1")); + + nextEntry = resp.getEntry().get(1); + assertEquals("" + Constants.STATUS_HTTP_201_CREATED, nextEntry.getTransactionResponse().getStatus()); + + nextEntry = resp.getEntry().get(2); + o = ourObservationDao.read(new IdDt(nextEntry.getTransactionResponse().getLocation())); + assertEquals(id.toVersionless(), o.getSubject().getReference()); + + } + + + @Test + public void testTransactionUpdateNoMatchUrl() { + String methodName = "testTransactionUpdateNoMatchUrl"; + Bundle request = new Bundle(); + + Patient p = new Patient(); + p.addIdentifier().setSystem("urn:system").setValue(methodName); + p.setId("Patient/" + methodName); + IdDt id = ourPatientDao.create(p).getId(); + ourLog.info("Created patient, got it: {}", id); + + p = new Patient(); + p.addIdentifier().setSystem("urn:system").setValue(methodName); + p.addName().addFamily("Hello"); + p.setId("Patient/" + methodName); + request.addEntry().setResource(p).getTransaction().setMethod(HTTPVerbEnum.PUT).setUrl("Patient/" + id.getIdPart()); + + Observation o = new Observation(); + o.getName().setText("Some Observation"); + o.getSubject().setReference("Patient/" + methodName); + request.addEntry().setResource(o).getTransaction().setMethod(HTTPVerbEnum.POST); + + Bundle resp = ourSystemDao.transaction(request); + assertEquals(3, resp.getEntry().size()); + + Entry nextEntry = resp.getEntry().get(1); + assertEquals("200", nextEntry.getTransactionResponse().getStatus()); + + assertThat(nextEntry.getTransactionResponse().getLocation(), (containsString("test"))); + assertEquals(id.toVersionless(), new IdDt(nextEntry.getTransactionResponse().getLocation()).toVersionless()); + assertNotEquals(id, new IdDt(nextEntry.getTransactionResponse().getLocation())); + assertThat(nextEntry.getTransactionResponse().getLocation(), endsWith("/_history/2")); + + nextEntry = resp.getEntry().get(2); + assertEquals("" + Constants.STATUS_HTTP_201_CREATED, nextEntry.getTransactionResponse().getStatus()); + + o = ourObservationDao.read(new IdDt(resp.getEntry().get(2).getTransactionResponse().getLocation())); + assertEquals(id.toVersionless(), o.getSubject().getReference()); + + } + + // + // + // /** + // * Issue #55 + // */ + // @Test + // public void testTransactionWithCidIds() throws Exception { + // Bundle request = new Bundle(); + // + // Patient p1 = new Patient(); + // p1.setId("cid:patient1"); + // p1.addIdentifier().setSystem("system").setValue("testTransactionWithCidIds01"); + // res.add(p1); + // + // Observation o1 = new Observation(); + // o1.setId("cid:observation1"); + // o1.getIdentifier().setSystem("system").setValue("testTransactionWithCidIds02"); + // o1.setSubject(new ResourceReferenceDt("Patient/cid:patient1")); + // res.add(o1); + // + // Observation o2 = new Observation(); + // o2.setId("cid:observation2"); + // o2.getIdentifier().setSystem("system").setValue("testTransactionWithCidIds03"); + // o2.setSubject(new ResourceReferenceDt("Patient/cid:patient1")); + // res.add(o2); + // + // ourSystemDao.transaction(res); + // + // assertTrue(p1.getId().getValue(), p1.getId().getIdPart().matches("^[0-9]+$")); + // assertTrue(o1.getId().getValue(), o1.getId().getIdPart().matches("^[0-9]+$")); + // assertTrue(o2.getId().getValue(), o2.getId().getIdPart().matches("^[0-9]+$")); + // + // assertThat(o1.getSubject().getReference().getValue(), endsWith("Patient/" + p1.getId().getIdPart())); + // assertThat(o2.getSubject().getReference().getValue(), endsWith("Patient/" + p1.getId().getIdPart())); + // + // } + // + // @Test + // public void testTransactionWithDelete() throws Exception { + // Bundle request = new Bundle(); + // + // /* + // * Create 3 + // */ + // + // List res; + // res = new ArrayList(); + // + // Patient p1 = new Patient(); + // p1.addIdentifier().setSystem("urn:system").setValue("testTransactionWithDelete"); + // res.add(p1); + // + // Patient p2 = new Patient(); + // p2.addIdentifier().setSystem("urn:system").setValue("testTransactionWithDelete"); + // res.add(p2); + // + // Patient p3 = new Patient(); + // p3.addIdentifier().setSystem("urn:system").setValue("testTransactionWithDelete"); + // res.add(p3); + // + // ourSystemDao.transaction(res); + // + // /* + // * Verify + // */ + // + // IBundleProvider results = ourPatientDao.search(Patient.SP_IDENTIFIER, new TokenParam("urn:system", + // "testTransactionWithDelete")); + // assertEquals(3, results.size()); + // + // /* + // * Now delete 2 + // */ + // + // request = new Bundle(); + // res = new ArrayList(); + // List existing = results.getResources(0, 3); + // + // p1 = new Patient(); + // p1.setId(existing.get(0).getId()); + // ResourceMetadataKeyEnum.DELETED_AT.put(p1, InstantDt.withCurrentTime()); + // res.add(p1); + // + // p2 = new Patient(); + // p2.setId(existing.get(1).getId()); + // ResourceMetadataKeyEnum.DELETED_AT.put(p2, InstantDt.withCurrentTime()); + // res.add(p2); + // + // ourSystemDao.transaction(res); + // + // /* + // * Verify + // */ + // + // IBundleProvider results2 = ourPatientDao.search(Patient.SP_IDENTIFIER, new TokenParam("urn:system", + // "testTransactionWithDelete")); + // assertEquals(1, results2.size()); + // List existing2 = results2.getResources(0, 1); + // assertEquals(existing2.get(0).getId(), existing.get(2).getId()); + // + // } + + @AfterClass + public static void afterClass() { + ourCtx.close(); + } + + @SuppressWarnings("unchecked") + @BeforeClass + public static void beforeClass() { + ourCtx = new ClassPathXmlApplicationContext("hapi-fhir-server-resourceproviders-dstu2.xml", "fhir-jpabase-spring-test-config.xml"); + ourFhirContext = ourCtx.getBean(FhirContext.class); + assertEquals(FhirVersionEnum.DSTU2, ourFhirContext.getVersion().getVersion()); + ourPatientDao = ourCtx.getBean("myPatientDaoDstu2", IFhirResourceDao.class); + ourObservationDao = ourCtx.getBean("myObservationDaoDstu2", IFhirResourceDao.class); + ourSystemDao = ourCtx.getBean("mySystemDaoDstu2", IFhirSystemDao.class); + } } diff --git a/hapi-fhir-jpaserver-base/src/test/resources/bundle-dstu1.xml b/hapi-fhir-jpaserver-base/src/test/resources/bundle-dstu1.xml index c8c8106e0c4..218e9a4c322 100644 --- a/hapi-fhir-jpaserver-base/src/test/resources/bundle-dstu1.xml +++ b/hapi-fhir-jpaserver-base/src/test/resources/bundle-dstu1.xml @@ -1,158 +1,184 @@ - Search results for resource type Patient - urn:uuid:d05b8832-2ec2-4df1-9a8f-905ba57823 - - - - - - 2015-02-21T17:08:03Z - 303 - - Patient "74635" Version "2" - http://fhir.healthintersections.com.au/open/Patient/74635 - - 2015-01-29T13:54:03Z - - Anonymous (24.130.25.156) - - 2015-02-21T17:08:03Z - - - - -
-

- Generated Narrative -

-

- identifier: ??

-

- name: Eve Everywoman

-

- telecom: ph: 555-555-2003(work)

-

- gender: Female - (Details : {http://hl7.org/fhir/v3/AdministrativeGender code "F" := "Female", given as "Female"}) -

-

- birthDate: 1955-01-06

-

- address: 2222 Home Street, (home)

-

- photo:

-

- active: -1

-
-
- - - - - - - - - - - - - - - - - - - - - -
- - - -
- - - - - - -
-
- -
Generated Narrative identifier: ?? name: Eve Everywoman telecom: ph: 555-555-2003(work) gender: Female (Details : {http://hl7.org/fhir/v3/AdministrativeGender code "F" := "Female", given as "Female"}) birthDate: 1955-01-06 address: 2222 Home Street…
-
-
- - Patient "8483548" Version "1" - http://fhir.healthintersections.com.au/open/Patient/8483548 - - - 2015-01-29T02:19:50Z - - Anonymous (service) - - 2015-02-21T17:08:03Z - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - -
NamePeter James - Chalmers("Jim")
Address534 Erewhon, Pleasantville, Orange County, 3999
ContactsHome: unknown. Work: (03) 5555 6473
IdMRN: 12345 (Acme Healthcare)
-
- - - - - - - -
- - - - - - - - -
- -
-
- -
Name Peter James Chalmers ("Jim") Address 534 Erewhon, Pleasantville, Orange County, 3999 Contacts Home: unknown. Work: (03) 5555 6473 …
-
-
+ Search results for resource type Patient + urn:uuid:d05b8832-2ec2-4df1-9a8f-905ba57823 + + + + + + 2015-02-21T17:08:03Z + 303 + + Patient "74635" Version "2" + http://fhir.healthintersections.com.au/open/Patient/74635 + + 2015-01-29T13:54:03Z + + Anonymous (24.130.25.156) + + 2015-02-21T17:08:03Z + + + + +
+

+ Generated Narrative +

+

+ identifier: ?? +

+

+ name: Eve Everywoman +

+

+ telecom: ph: 555-555-2003(work) +

+

+ gender: Female + (Details : + {http://hl7.org/fhir/v3/AdministrativeGender code "F" := "Female", given as "Female"}) + +

+

+ birthDate: 1955-01-06 +

+

+ address: 2222 Home Street, (home) +

+

+ photo: +

+

+ active: -1 +

+
+
+ + + + + + + + + + + + + + + + + + + + + +
+ + + +
+ + + + + + +
+
+ +
Generated Narrative identifier: ?? name: Eve + Everywoman telecom: ph: 555-555-2003(work) gender: Female (Details : + {http://hl7.org/fhir/v3/AdministrativeGender code "F" := "Female", given as "Female"}) birthDate: + 1955-01-06 address: 2222 Home Street…
+
+
+ + Patient "8483548" Version "1" + http://fhir.healthintersections.com.au/open/Patient/8483548 + + + 2015-01-29T02:19:50Z + + Anonymous (service) + + 2015-02-21T17:08:03Z + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
NamePeter James + Chalmers("Jim") +
Address534 Erewhon, Pleasantville, Orange County, 3999
ContactsHome: unknown. Work: (03) 5555 6473
IdMRN: 12345 (Acme Healthcare)
+
+
+ + + + + + + +
+ + + + + + + + +
+ +
+
+ +
Name Peter James Chalmers ("Jim") Address + 534 Erewhon, Pleasantville, Orange County, 3999 Contacts Home: unknown. Work: (03) + 5555 6473 …
+
+
diff --git a/hapi-fhir-jpaserver-uhnfhirtest/src/main/java/ca/uhn/fhirtest/MySqlServer.java b/hapi-fhir-jpaserver-uhnfhirtest/src/main/java/ca/uhn/fhirtest/MySqlServer.java new file mode 100644 index 00000000000..31610b254cd --- /dev/null +++ b/hapi-fhir-jpaserver-uhnfhirtest/src/main/java/ca/uhn/fhirtest/MySqlServer.java @@ -0,0 +1,20 @@ +package ca.uhn.fhirtest; + +import org.springframework.beans.factory.DisposableBean; +import org.springframework.beans.factory.InitializingBean; + +/** + * Created by mochaholic on 18/02/2015. + */ +public class MySqlServer implements InitializingBean, DisposableBean { + private static final org.slf4j.Logger ourLog = org.slf4j.LoggerFactory.getLogger(MySqlServer.class); + + @Override + public void destroy() throws Exception { + } + + @Override + public void afterPropertiesSet() throws Exception { + } + +} \ No newline at end of file diff --git a/hapi-fhir-jpaserver-uhnfhirtest/src/main/java/ca/uhn/fhirtest/TestRestfulServer.java b/hapi-fhir-jpaserver-uhnfhirtest/src/main/java/ca/uhn/fhirtest/TestRestfulServer.java index 93498cec5af..e8ebe4eea95 100644 --- a/hapi-fhir-jpaserver-uhnfhirtest/src/main/java/ca/uhn/fhirtest/TestRestfulServer.java +++ b/hapi-fhir-jpaserver-uhnfhirtest/src/main/java/ca/uhn/fhirtest/TestRestfulServer.java @@ -1,11 +1,13 @@ package ca.uhn.fhirtest; +import java.util.ArrayList; import java.util.List; import javax.servlet.ServletContext; import javax.servlet.ServletException; import javax.servlet.http.HttpServletRequest; +import ca.uhn.fhir.jpa.provider.JpaSystemProviderDstu2; import org.apache.commons.lang3.StringUtils; import org.springframework.context.ApplicationContext; import org.springframework.web.context.ContextLoaderListener; @@ -50,7 +52,8 @@ public class TestRestfulServer extends RestfulServer { // retrieve all the appropriate resource providers and the // conformance provider List beans; - JpaSystemProviderDstu1 systemProvider; + JpaSystemProviderDstu1 systemProviderDstu1 = null; + JpaSystemProviderDstu2 systemProviderDstu2 = null; IFhirSystemDao systemDao; ETagSupportEnum etagSupport; String baseUrlProperty; @@ -58,7 +61,7 @@ public class TestRestfulServer extends RestfulServer { case "BASE": { setFhirContext(FhirContext.forDstu1()); beans = myAppCtx.getBean("myResourceProvidersDstu1", List.class); - systemProvider = myAppCtx.getBean("mySystemProviderDstu1", JpaSystemProviderDstu1.class); + systemProviderDstu1 = myAppCtx.getBean("mySystemProviderDstu1", JpaSystemProviderDstu1.class); systemDao = myAppCtx.getBean("mySystemDaoDstu1", IFhirSystemDao.class); etagSupport = ETagSupportEnum.DISABLED; JpaConformanceProviderDstu1 confProvider = new JpaConformanceProviderDstu1(this, systemDao); @@ -70,7 +73,7 @@ public class TestRestfulServer extends RestfulServer { case "DSTU1": { setFhirContext(FhirContext.forDstu1()); beans = myAppCtx.getBean("myResourceProvidersDstu1", List.class); - systemProvider = myAppCtx.getBean("mySystemProviderDstu1", JpaSystemProviderDstu1.class); + systemProviderDstu1 = myAppCtx.getBean("mySystemProviderDstu1", JpaSystemProviderDstu1.class); systemDao = myAppCtx.getBean("mySystemDaoDstu1", IFhirSystemDao.class); etagSupport = ETagSupportEnum.DISABLED; JpaConformanceProviderDstu1 confProvider = new JpaConformanceProviderDstu1(this, systemDao); @@ -82,7 +85,7 @@ public class TestRestfulServer extends RestfulServer { case "DSTU2": { setFhirContext(FhirContext.forDstu2()); beans = myAppCtx.getBean("myResourceProvidersDstu2", List.class); - systemProvider = myAppCtx.getBean("mySystemProviderDstu2", JpaSystemProviderDstu1.class); + systemProviderDstu2 = myAppCtx.getBean("mySystemProviderDstu2", JpaSystemProviderDstu2.class); systemDao = myAppCtx.getBean("mySystemDaoDstu2", IFhirSystemDao.class); etagSupport = ETagSupportEnum.ENABLED; JpaConformanceProviderDstu2 confProvider = new JpaConformanceProviderDstu2(this, systemDao); @@ -115,7 +118,13 @@ public class TestRestfulServer extends RestfulServer { ourLog.info(" * Have resource provider for: {}", nextResourceProvider.getResourceType().getSimpleName()); } setResourceProviders(beans); - setPlainProviders(systemProvider); + + List provList = new ArrayList(); + if (systemProviderDstu1 != null) + provList.add(systemProviderDstu1); + if (systemProviderDstu2 != null) + provList.add(systemProviderDstu2); + setPlainProviders(provList); /* * This tells the server to use "incorrect" MIME types if it detects that the diff --git a/hapi-fhir-jpaserver-uhnfhirtest/src/main/webapp/WEB-INF/hapi-fhir-server-database-config.xml b/hapi-fhir-jpaserver-uhnfhirtest/src/main/webapp/WEB-INF/hapi-fhir-server-database-config.xml index 32b386941d4..80719eaa17a 100644 --- a/hapi-fhir-jpaserver-uhnfhirtest/src/main/webapp/WEB-INF/hapi-fhir-server-database-config.xml +++ b/hapi-fhir-jpaserver-uhnfhirtest/src/main/webapp/WEB-INF/hapi-fhir-server-database-config.xml @@ -1,7 +1,8 @@ + + + @@ -36,7 +43,19 @@ - + + + + @@ -47,6 +66,7 @@ + diff --git a/hapi-fhir-structures-dev/src/main/java/ca/uhn/fhir/model/dev/FhirDev.java b/hapi-fhir-structures-dev/src/main/java/ca/uhn/fhir/model/dev/FhirDev.java index 579434ad2da..ba2fa8739cc 100644 --- a/hapi-fhir-structures-dev/src/main/java/ca/uhn/fhir/model/dev/FhirDev.java +++ b/hapi-fhir-structures-dev/src/main/java/ca/uhn/fhir/model/dev/FhirDev.java @@ -29,8 +29,10 @@ import ca.uhn.fhir.context.FhirVersionEnum; import ca.uhn.fhir.context.RuntimeResourceDefinition; import ca.uhn.fhir.model.api.IFhirVersion; import ca.uhn.fhir.model.api.IResource; +import ca.uhn.fhir.model.base.composite.BaseCodingDt; import ca.uhn.fhir.model.base.composite.BaseContainedDt; import ca.uhn.fhir.model.base.composite.BaseResourceReferenceDt; +import ca.uhn.fhir.model.dev.composite.CodingDt; import ca.uhn.fhir.model.dev.composite.ContainedDt; import ca.uhn.fhir.model.dev.composite.ResourceReferenceDt; import ca.uhn.fhir.model.dev.resource.Profile; @@ -102,4 +104,9 @@ public class FhirDev implements IFhirVersion { return ContainedDt.class; } + @Override + public BaseCodingDt newCodingDt() { + return new CodingDt(); + } + } diff --git a/hapi-fhir-structures-dstu/src/main/java/ca/uhn/fhir/model/dstu/FhirDstu1.java b/hapi-fhir-structures-dstu/src/main/java/ca/uhn/fhir/model/dstu/FhirDstu1.java index e271fca91e4..588e2352fd9 100644 --- a/hapi-fhir-structures-dstu/src/main/java/ca/uhn/fhir/model/dstu/FhirDstu1.java +++ b/hapi-fhir-structures-dstu/src/main/java/ca/uhn/fhir/model/dstu/FhirDstu1.java @@ -61,8 +61,10 @@ import ca.uhn.fhir.model.api.IFhirVersion; import ca.uhn.fhir.model.api.IPrimitiveDatatype; import ca.uhn.fhir.model.api.IResource; import ca.uhn.fhir.model.api.annotation.Child; +import ca.uhn.fhir.model.base.composite.BaseCodingDt; import ca.uhn.fhir.model.base.composite.BaseContainedDt; import ca.uhn.fhir.model.base.composite.BaseResourceReferenceDt; +import ca.uhn.fhir.model.dstu.composite.CodingDt; import ca.uhn.fhir.model.dstu.composite.ContainedDt; import ca.uhn.fhir.model.dstu.composite.ResourceReferenceDt; import ca.uhn.fhir.model.dstu.resource.Profile; @@ -377,4 +379,10 @@ public class FhirDstu1 implements IFhirVersion { return ContainedDt.class; } + @Override + public BaseCodingDt newCodingDt() { + return new CodingDt(); + } + + } diff --git a/hapi-fhir-structures-dstu/src/test/java/ca/uhn/fhir/parser/JsonParserTest.java b/hapi-fhir-structures-dstu/src/test/java/ca/uhn/fhir/parser/JsonParserTest.java index 9a924807c49..127c3b3a077 100644 --- a/hapi-fhir-structures-dstu/src/test/java/ca/uhn/fhir/parser/JsonParserTest.java +++ b/hapi-fhir-structures-dstu/src/test/java/ca/uhn/fhir/parser/JsonParserTest.java @@ -99,7 +99,7 @@ public class JsonParserTest { assertThat(out, containsString("hello")); } - + @Test public void testEncodeAndParseExtensions() throws Exception { @@ -113,11 +113,11 @@ public class JsonParserTest { ExtensionDt parent = new ExtensionDt().setUrl("http://example.com#parent"); patient.addUndeclaredExtension(parent); - ExtensionDt child1 = new ExtensionDt().setUrl( "http://example.com#child").setValue( new StringDt("value1")); + ExtensionDt child1 = new ExtensionDt().setUrl("http://example.com#child").setValue(new StringDt("value1")); parent.addUndeclaredExtension(child1); - ExtensionDt child2 = new ExtensionDt().setUrl( "http://example.com#child").setValue( new StringDt("value2")); + ExtensionDt child2 = new ExtensionDt().setUrl("http://example.com#child").setValue(new StringDt("value2")); parent.addUndeclaredExtension(child2); - + ExtensionDt modExt = new ExtensionDt(); modExt.setUrl("http://example.com/extensions#modext"); modExt.setValue(new DateDt("1995-01-02")); @@ -141,74 +141,74 @@ public class JsonParserTest { ourLog.info(output); String enc = ourCtx.newJsonParser().encodeResourceToString(patient); - assertThat(enc, org.hamcrest.Matchers.stringContainsInOrder("{\"resourceType\":\"Patient\",", - "\"extension\":[{\"url\":\"http://example.com/extensions#someext\",\"valueDateTime\":\"2011-01-02T11:13:15\"}", + assertThat(enc, org.hamcrest.Matchers.stringContainsInOrder("{\"resourceType\":\"Patient\",", + "\"extension\":[{\"url\":\"http://example.com/extensions#someext\",\"valueDateTime\":\"2011-01-02T11:13:15\"}", "{\"url\":\"http://example.com#parent\",\"extension\":[{\"url\":\"http://example.com#child\",\"valueString\":\"value1\"},{\"url\":\"http://example.com#child\",\"valueString\":\"value2\"}]}" - )); - assertThat(enc, org.hamcrest.Matchers.stringContainsInOrder("\"modifierExtension\":[" + - "{" + - "\"url\":\"http://example.com/extensions#modext\"," + - "\"valueDate\":\"1995-01-02\"" + - "}" + + )); + assertThat(enc, org.hamcrest.Matchers.stringContainsInOrder("\"modifierExtension\":[" + + "{" + + "\"url\":\"http://example.com/extensions#modext\"," + + "\"valueDate\":\"1995-01-02\"" + + "}" + "],")); - assertThat(enc, containsString("\"_given\":[" + - "{" + - "\"extension\":[" + - "{" + - "\"url\":\"http://examples.com#givenext\"," + - "\"valueString\":\"given\"" + - "}" + - "]" + - "}," + - "{" + - "\"extension\":[" + - "{" + - "\"url\":\"http://examples.com#givenext_parent\"," + - "\"extension\":[" + - "{" + - "\"url\":\"http://examples.com#givenext_child\"," + - "\"valueString\":\"CHILD\"" + - "}" + - "]" + - "}" + - "]" + + assertThat(enc, containsString("\"_given\":[" + + "{" + + "\"extension\":[" + + "{" + + "\"url\":\"http://examples.com#givenext\"," + + "\"valueString\":\"given\"" + + "}" + + "]" + + "}," + + "{" + + "\"extension\":[" + + "{" + + "\"url\":\"http://examples.com#givenext_parent\"," + + "\"extension\":[" + + "{" + + "\"url\":\"http://examples.com#givenext_child\"," + + "\"valueString\":\"CHILD\"" + + "}" + + "]" + + "}" + + "]" + "}")); /* * Now parse this back */ - - Patient parsed =ourCtx.newJsonParser().parseResource(Patient.class, enc); + + Patient parsed = ourCtx.newJsonParser().parseResource(Patient.class, enc); ext = parsed.getUndeclaredExtensions().get(0); assertEquals("http://example.com/extensions#someext", ext.getUrl()); - assertEquals("2011-01-02T11:13:15", ((DateTimeDt)ext.getValue()).getValueAsString()); + assertEquals("2011-01-02T11:13:15", ((DateTimeDt) ext.getValue()).getValueAsString()); parent = patient.getUndeclaredExtensions().get(1); assertEquals("http://example.com#parent", parent.getUrl()); assertNull(parent.getValue()); child1 = parent.getExtension().get(0); - assertEquals( "http://example.com#child", child1.getUrl()); - assertEquals("value1", ((StringDt)child1.getValue()).getValueAsString()); + assertEquals("http://example.com#child", child1.getUrl()); + assertEquals("value1", ((StringDt) child1.getValue()).getValueAsString()); child2 = parent.getExtension().get(1); - assertEquals( "http://example.com#child", child2.getUrl()); - assertEquals("value2", ((StringDt)child2.getValue()).getValueAsString()); + assertEquals("http://example.com#child", child2.getUrl()); + assertEquals("value2", ((StringDt) child2.getValue()).getValueAsString()); modExt = parsed.getUndeclaredModifierExtensions().get(0); assertEquals("http://example.com/extensions#modext", modExt.getUrl()); - assertEquals("1995-01-02", ((DateDt)modExt.getValue()).getValueAsString()); + assertEquals("1995-01-02", ((DateDt) modExt.getValue()).getValueAsString()); name = parsed.getName().get(0); ext2 = name.getGiven().get(0).getUndeclaredExtensions().get(0); assertEquals("http://examples.com#givenext", ext2.getUrl()); - assertEquals("given", ((StringDt)ext2.getValue()).getValueAsString()); + assertEquals("given", ((StringDt) ext2.getValue()).getValueAsString()); given2ext = name.getGiven().get(1).getUndeclaredExtensions().get(0); assertEquals("http://examples.com#givenext_parent", given2ext.getUrl()); assertNull(given2ext.getValue()); ExtensionDt given2ext2 = given2ext.getExtension().get(0); assertEquals("http://examples.com#givenext_child", given2ext2.getUrl()); - assertEquals("CHILD", ((StringDt)given2ext2.getValue()).getValue()); + assertEquals("CHILD", ((StringDt) given2ext2.getValue()).getValue()); } diff --git a/hapi-fhir-structures-dstu/src/test/java/ca/uhn/fhir/parser/XmlParserTest.java b/hapi-fhir-structures-dstu/src/test/java/ca/uhn/fhir/parser/XmlParserTest.java index 5e154491072..9592db55a38 100644 --- a/hapi-fhir-structures-dstu/src/test/java/ca/uhn/fhir/parser/XmlParserTest.java +++ b/hapi-fhir-structures-dstu/src/test/java/ca/uhn/fhir/parser/XmlParserTest.java @@ -152,7 +152,7 @@ public class XmlParserTest { } - + @Test public void testEncodeAndParseExtensions() throws Exception { @@ -166,11 +166,11 @@ public class XmlParserTest { ExtensionDt parent = new ExtensionDt().setUrl("http://example.com#parent"); patient.addUndeclaredExtension(parent); - ExtensionDt child1 = new ExtensionDt().setUrl( "http://example.com#child").setValue( new StringDt("value1")); + ExtensionDt child1 = new ExtensionDt().setUrl("http://example.com#child").setValue(new StringDt("value1")); parent.addUndeclaredExtension(child1); - ExtensionDt child2 = new ExtensionDt().setUrl( "http://example.com#child").setValue( new StringDt("value2")); + ExtensionDt child2 = new ExtensionDt().setUrl("http://example.com#child").setValue(new StringDt("value2")); parent.addUndeclaredExtension(child2); - + ExtensionDt modExt = new ExtensionDt(); modExt.setUrl("http://example.com/extensions#modext"); modExt.setValue(new DateDt("1995-01-02")); @@ -205,42 +205,42 @@ public class XmlParserTest { /* * Now parse this back */ - - Patient parsed =ourCtx.newXmlParser().parseResource(Patient.class, enc); + + Patient parsed = ourCtx.newXmlParser().parseResource(Patient.class, enc); ext = parsed.getUndeclaredExtensions().get(0); assertEquals("http://example.com/extensions#someext", ext.getUrl()); - assertEquals("2011-01-02T11:13:15", ((DateTimeDt)ext.getValue()).getValueAsString()); + assertEquals("2011-01-02T11:13:15", ((DateTimeDt) ext.getValue()).getValueAsString()); parent = patient.getUndeclaredExtensions().get(1); assertEquals("http://example.com#parent", parent.getUrl()); assertNull(parent.getValue()); child1 = parent.getExtension().get(0); - assertEquals( "http://example.com#child", child1.getUrl()); - assertEquals("value1", ((StringDt)child1.getValue()).getValueAsString()); + assertEquals("http://example.com#child", child1.getUrl()); + assertEquals("value1", ((StringDt) child1.getValue()).getValueAsString()); child2 = parent.getExtension().get(1); - assertEquals( "http://example.com#child", child2.getUrl()); - assertEquals("value2", ((StringDt)child2.getValue()).getValueAsString()); + assertEquals("http://example.com#child", child2.getUrl()); + assertEquals("value2", ((StringDt) child2.getValue()).getValueAsString()); modExt = parsed.getUndeclaredModifierExtensions().get(0); assertEquals("http://example.com/extensions#modext", modExt.getUrl()); - assertEquals("1995-01-02", ((DateDt)modExt.getValue()).getValueAsString()); + assertEquals("1995-01-02", ((DateDt) modExt.getValue()).getValueAsString()); name = parsed.getName().get(0); ext2 = name.getGiven().get(0).getUndeclaredExtensions().get(0); assertEquals("http://examples.com#givenext", ext2.getUrl()); - assertEquals("given", ((StringDt)ext2.getValue()).getValueAsString()); + assertEquals("given", ((StringDt) ext2.getValue()).getValueAsString()); given2ext = name.getGiven().get(1).getUndeclaredExtensions().get(0); assertEquals("http://examples.com#givenext_parent", given2ext.getUrl()); assertNull(given2ext.getValue()); ExtensionDt given2ext2 = given2ext.getExtension().get(0); assertEquals("http://examples.com#givenext_child", given2ext2.getUrl()); - assertEquals("CHILD", ((StringDt)given2ext2.getValue()).getValue()); + assertEquals("CHILD", ((StringDt) given2ext2.getValue()).getValue()); } - + @Test public void testEncodeBundle() throws InterruptedException { Bundle b = new Bundle(); diff --git a/hapi-fhir-structures-dstu2/src/main/java/ca/uhn/fhir/model/dstu2/FhirDstu2.java b/hapi-fhir-structures-dstu2/src/main/java/ca/uhn/fhir/model/dstu2/FhirDstu2.java index 615c4e8bce2..d6fe2e73a83 100644 --- a/hapi-fhir-structures-dstu2/src/main/java/ca/uhn/fhir/model/dstu2/FhirDstu2.java +++ b/hapi-fhir-structures-dstu2/src/main/java/ca/uhn/fhir/model/dstu2/FhirDstu2.java @@ -23,18 +23,18 @@ package ca.uhn.fhir.model.dstu2; import java.io.InputStream; import org.apache.commons.lang3.StringUtils; -import org.hl7.fhir.instance.model.api.IBaseExtension; import ca.uhn.fhir.context.ConfigurationException; import ca.uhn.fhir.context.FhirVersionEnum; import ca.uhn.fhir.context.RuntimeResourceDefinition; -import ca.uhn.fhir.model.api.ExtensionDt; -import ca.uhn.fhir.model.api.IDatatype; import ca.uhn.fhir.model.api.IFhirVersion; import ca.uhn.fhir.model.api.IResource; +import ca.uhn.fhir.model.base.composite.BaseCodingDt; import ca.uhn.fhir.model.base.composite.BaseContainedDt; import ca.uhn.fhir.model.base.composite.BaseResourceReferenceDt; +import ca.uhn.fhir.model.dstu2.composite.CodingDt; import ca.uhn.fhir.model.dstu2.composite.ContainedDt; +import ca.uhn.fhir.model.dstu2.composite.CountDt; import ca.uhn.fhir.model.dstu2.composite.ResourceReferenceDt; import ca.uhn.fhir.model.dstu2.resource.Profile; import ca.uhn.fhir.model.primitive.IdDt; @@ -103,5 +103,11 @@ public class FhirDstu2 implements IFhirVersion { public Class getContainedType() { return ContainedDt.class; } + + @Override + public BaseCodingDt newCodingDt() { + return new CodingDt(); + } + } diff --git a/hapi-fhir-structures-dstu2/src/test/java/ca/uhn/fhir/parser/JsonParserTest.java b/hapi-fhir-structures-dstu2/src/test/java/ca/uhn/fhir/parser/JsonParserTest.java index e41c511eddc..a9ac3b42e56 100644 --- a/hapi-fhir-structures-dstu2/src/test/java/ca/uhn/fhir/parser/JsonParserTest.java +++ b/hapi-fhir-structures-dstu2/src/test/java/ca/uhn/fhir/parser/JsonParserTest.java @@ -1,12 +1,11 @@ package ca.uhn.fhir.parser; -import static org.hamcrest.Matchers.containsString; -import static org.junit.Assert.assertEquals; -import static org.junit.Assert.assertNull; -import static org.junit.Assert.assertThat; -import static org.junit.Assert.assertTrue; +import static org.hamcrest.Matchers.*; +import static org.junit.Assert.*; import java.io.IOException; +import java.util.ArrayList; +import java.util.List; import net.sf.json.JSON; import net.sf.json.JSONSerializer; @@ -21,14 +20,15 @@ import ca.uhn.fhir.context.FhirContext; import ca.uhn.fhir.model.api.Bundle; import ca.uhn.fhir.model.api.ExtensionDt; import ca.uhn.fhir.model.api.ResourceMetadataKeyEnum; +import ca.uhn.fhir.model.base.composite.BaseCodingDt; +import ca.uhn.fhir.model.dstu2.composite.CodingDt; import ca.uhn.fhir.model.dstu2.composite.HumanNameDt; +import ca.uhn.fhir.model.dstu2.composite.ResourceReferenceDt; import ca.uhn.fhir.model.dstu2.resource.Binary; import ca.uhn.fhir.model.dstu2.resource.MedicationPrescription; import ca.uhn.fhir.model.dstu2.resource.Patient; import ca.uhn.fhir.model.dstu2.resource.QuestionnaireAnswers; import ca.uhn.fhir.model.dstu2.valueset.IdentifierUseEnum; -import ca.uhn.fhir.model.primitive.BooleanDt; -import ca.uhn.fhir.model.primitive.CodeDt; import ca.uhn.fhir.model.primitive.DateDt; import ca.uhn.fhir.model.primitive.DateTimeDt; import ca.uhn.fhir.model.primitive.IdDt; @@ -50,6 +50,80 @@ public class JsonParserTest { assertEquals("{\"resourceType\":\"Binary\",\"id\":\"11\",\"meta\":{\"versionId\":\"22\"},\"contentType\":\"foo\",\"content\":\"AQIDBA==\"}", val); } + @Test + public void testEncodeAndParseSecurityLabels() { + Patient p = new Patient(); + p.addName().addFamily("FAMILY"); + + List labels = new ArrayList(); + labels.add(new CodingDt().setSystem("SYSTEM1").setCode("CODE1").setDisplay("DISPLAY1").setPrimary(true).setVersion("VERSION1").setValueSet(new ResourceReferenceDt("ValueSet1"))); + labels.add(new CodingDt().setSystem("SYSTEM2").setCode("CODE2").setDisplay("DISPLAY2").setPrimary(false).setVersion("VERSION2").setValueSet(new ResourceReferenceDt("ValueSet2"))); + + ResourceMetadataKeyEnum.SECURITY_LABELS.put(p, labels); + + String enc = ourCtx.newJsonParser().setPrettyPrint(true).encodeResourceToString(p); + ourLog.info(enc); + + //@formatter:off + assertEquals("{\n" + + " \"resourceType\":\"Patient\",\n" + + " \"meta\":{\n" + + " \"security\":[\n" + + " {\n" + + " \"system\":\"SYSTEM1\",\n" + + " \"version\":\"VERSION1\",\n" + + " \"code\":\"CODE1\",\n" + + " \"display\":\"DISPLAY1\",\n" + + " \"primary\":true,\n" + + " \"valueSet\":{\n" + + " \"reference\":\"ValueSet1\"\n" + + " }\n" + + " },\n" + + " {\n" + + " \"system\":\"SYSTEM2\",\n" + + " \"version\":\"VERSION2\",\n" + + " \"code\":\"CODE2\",\n" + + " \"display\":\"DISPLAY2\",\n" + + " \"primary\":false,\n" + + " \"valueSet\":{\n" + + " \"reference\":\"ValueSet2\"\n" + + " }\n" + + " }\n" + + " ]\n" + + " },\n" + + " \"name\":[\n" + + " {\n" + + " \"family\":[\n" + + " \"FAMILY\"\n" + + " ]\n" + + " }\n" + + " ]\n" + + "}", enc.trim()); + //@formatter:on + + Patient parsed = ourCtx.newJsonParser().parseResource(Patient.class, enc); + List gotLabels = ResourceMetadataKeyEnum.SECURITY_LABELS.get(parsed); + + assertEquals(2,gotLabels.size()); + + CodingDt label = (CodingDt) gotLabels.get(0); + assertEquals("SYSTEM1", label.getSystem()); + assertEquals("CODE1", label.getCode()); + assertEquals("DISPLAY1", label.getDisplay()); + assertEquals(true, label.getPrimary()); + assertEquals("VERSION1", label.getVersion()); + assertEquals("ValueSet1", label.getValueSet().getReference().getValue()); + + label = (CodingDt) gotLabels.get(1); + assertEquals("SYSTEM2", label.getSystem()); + assertEquals("CODE2", label.getCode()); + assertEquals("DISPLAY2", label.getDisplay()); + assertEquals(false, label.getPrimary()); + assertEquals("VERSION2", label.getVersion()); + assertEquals("ValueSet2", label.getValueSet().getReference().getValue()); + } + + /** * Fixing #89 */ @@ -82,11 +156,11 @@ public class JsonParserTest { ExtensionDt parent = new ExtensionDt().setUrl("http://example.com#parent"); patient.addUndeclaredExtension(parent); - ExtensionDt child1 = new ExtensionDt().setUrl( "http://example.com#child").setValue( new StringDt("value1")); + ExtensionDt child1 = new ExtensionDt().setUrl("http://example.com#child").setValue(new StringDt("value1")); parent.addUndeclaredExtension(child1); - ExtensionDt child2 = new ExtensionDt().setUrl( "http://example.com#child").setValue( new StringDt("value2")); + ExtensionDt child2 = new ExtensionDt().setUrl("http://example.com#child").setValue(new StringDt("value2")); parent.addUndeclaredExtension(child2); - + ExtensionDt modExt = new ExtensionDt(); modExt.setUrl("http://example.com/extensions#modext"); modExt.setValue(new DateDt("1995-01-02")); @@ -110,74 +184,74 @@ public class JsonParserTest { ourLog.info(output); String enc = ourCtx.newJsonParser().encodeResourceToString(patient); - assertThat(enc, Matchers.stringContainsInOrder("{\"resourceType\":\"Patient\",", - "\"extension\":[{\"url\":\"http://example.com/extensions#someext\",\"valueDateTime\":\"2011-01-02T11:13:15\"}", + assertThat(enc, Matchers.stringContainsInOrder("{\"resourceType\":\"Patient\",", + "\"extension\":[{\"url\":\"http://example.com/extensions#someext\",\"valueDateTime\":\"2011-01-02T11:13:15\"}", "{\"url\":\"http://example.com#parent\",\"extension\":[{\"url\":\"http://example.com#child\",\"valueString\":\"value1\"},{\"url\":\"http://example.com#child\",\"valueString\":\"value2\"}]}" - )); - assertThat(enc, Matchers.stringContainsInOrder("\"modifierExtension\":[" + - "{" + - "\"url\":\"http://example.com/extensions#modext\"," + - "\"valueDate\":\"1995-01-02\"" + - "}" + + )); + assertThat(enc, Matchers.stringContainsInOrder("\"modifierExtension\":[" + + "{" + + "\"url\":\"http://example.com/extensions#modext\"," + + "\"valueDate\":\"1995-01-02\"" + + "}" + "],")); - assertThat(enc, containsString("\"_given\":[" + - "{" + - "\"extension\":[" + - "{" + - "\"url\":\"http://examples.com#givenext\"," + - "\"valueString\":\"given\"" + - "}" + - "]" + - "}," + - "{" + - "\"extension\":[" + - "{" + - "\"url\":\"http://examples.com#givenext_parent\"," + - "\"extension\":[" + - "{" + - "\"url\":\"http://examples.com#givenext_child\"," + - "\"valueString\":\"CHILD\"" + - "}" + - "]" + - "}" + - "]" + + assertThat(enc, containsString("\"_given\":[" + + "{" + + "\"extension\":[" + + "{" + + "\"url\":\"http://examples.com#givenext\"," + + "\"valueString\":\"given\"" + + "}" + + "]" + + "}," + + "{" + + "\"extension\":[" + + "{" + + "\"url\":\"http://examples.com#givenext_parent\"," + + "\"extension\":[" + + "{" + + "\"url\":\"http://examples.com#givenext_child\"," + + "\"valueString\":\"CHILD\"" + + "}" + + "]" + + "}" + + "]" + "}")); /* * Now parse this back */ - - Patient parsed =ourCtx.newJsonParser().parseResource(Patient.class, enc); + + Patient parsed = ourCtx.newJsonParser().parseResource(Patient.class, enc); ext = parsed.getUndeclaredExtensions().get(0); assertEquals("http://example.com/extensions#someext", ext.getUrl()); - assertEquals("2011-01-02T11:13:15", ((DateTimeDt)ext.getValue()).getValueAsString()); + assertEquals("2011-01-02T11:13:15", ((DateTimeDt) ext.getValue()).getValueAsString()); parent = patient.getUndeclaredExtensions().get(1); assertEquals("http://example.com#parent", parent.getUrl()); assertNull(parent.getValue()); child1 = parent.getExtension().get(0); - assertEquals( "http://example.com#child", child1.getUrl()); - assertEquals("value1", ((StringDt)child1.getValue()).getValueAsString()); + assertEquals("http://example.com#child", child1.getUrl()); + assertEquals("value1", ((StringDt) child1.getValue()).getValueAsString()); child2 = parent.getExtension().get(1); - assertEquals( "http://example.com#child", child2.getUrl()); - assertEquals("value2", ((StringDt)child2.getValue()).getValueAsString()); + assertEquals("http://example.com#child", child2.getUrl()); + assertEquals("value2", ((StringDt) child2.getValue()).getValueAsString()); modExt = parsed.getUndeclaredModifierExtensions().get(0); assertEquals("http://example.com/extensions#modext", modExt.getUrl()); - assertEquals("1995-01-02", ((DateDt)modExt.getValue()).getValueAsString()); + assertEquals("1995-01-02", ((DateDt) modExt.getValue()).getValueAsString()); name = parsed.getName().get(0); ext2 = name.getGiven().get(0).getUndeclaredExtensions().get(0); assertEquals("http://examples.com#givenext", ext2.getUrl()); - assertEquals("given", ((StringDt)ext2.getValue()).getValueAsString()); + assertEquals("given", ((StringDt) ext2.getValue()).getValueAsString()); given2ext = name.getGiven().get(1).getUndeclaredExtensions().get(0); assertEquals("http://examples.com#givenext_parent", given2ext.getUrl()); assertNull(given2ext.getValue()); ExtensionDt given2ext2 = given2ext.getExtension().get(0); assertEquals("http://examples.com#givenext_child", given2ext2.getUrl()); - assertEquals("CHILD", ((StringDt)given2ext2.getValue()).getValue()); + assertEquals("CHILD", ((StringDt) given2ext2.getValue()).getValue()); } diff --git a/hapi-fhir-structures-dstu2/src/test/java/ca/uhn/fhir/parser/XmlParserTest.java b/hapi-fhir-structures-dstu2/src/test/java/ca/uhn/fhir/parser/XmlParserTest.java index f93e9f862c4..a1f8d724ddb 100644 --- a/hapi-fhir-structures-dstu2/src/test/java/ca/uhn/fhir/parser/XmlParserTest.java +++ b/hapi-fhir-structures-dstu2/src/test/java/ca/uhn/fhir/parser/XmlParserTest.java @@ -1,8 +1,6 @@ package ca.uhn.fhir.parser; -import static org.hamcrest.Matchers.containsString; -import static org.hamcrest.Matchers.emptyOrNullString; -import static org.hamcrest.Matchers.not; +import static org.hamcrest.Matchers.*; import static org.junit.Assert.assertArrayEquals; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNull; @@ -10,6 +8,8 @@ import static org.junit.Assert.assertThat; import static org.junit.Assert.assertTrue; import java.io.StringReader; +import java.util.ArrayList; +import java.util.List; import org.apache.commons.io.IOUtils; import org.custommonkey.xmlunit.Diff; @@ -21,8 +21,11 @@ import ca.uhn.fhir.context.FhirContext; import ca.uhn.fhir.model.api.Bundle; import ca.uhn.fhir.model.api.ExtensionDt; import ca.uhn.fhir.model.api.ResourceMetadataKeyEnum; +import ca.uhn.fhir.model.base.composite.BaseCodingDt; +import ca.uhn.fhir.model.dstu2.composite.CodingDt; import ca.uhn.fhir.model.dstu2.composite.DurationDt; import ca.uhn.fhir.model.dstu2.composite.HumanNameDt; +import ca.uhn.fhir.model.dstu2.composite.ResourceReferenceDt; import ca.uhn.fhir.model.dstu2.resource.AllergyIntolerance; import ca.uhn.fhir.model.dstu2.resource.Binary; import ca.uhn.fhir.model.dstu2.resource.Composition; @@ -47,6 +50,73 @@ public class XmlParserTest { XMLUnit.setIgnoreWhitespace(true); } + @Test + public void testEncodeAndParseSecurityLabels() { + Patient p = new Patient(); + p.addName().addFamily("FAMILY"); + + List labels = new ArrayList(); + labels.add(new CodingDt().setSystem("SYSTEM1").setCode("CODE1").setDisplay("DISPLAY1").setPrimary(true).setVersion("VERSION1").setValueSet(new ResourceReferenceDt("ValueSet1"))); + labels.add(new CodingDt().setSystem("SYSTEM2").setCode("CODE2").setDisplay("DISPLAY2").setPrimary(false).setVersion("VERSION2").setValueSet(new ResourceReferenceDt("ValueSet2"))); + + ResourceMetadataKeyEnum.SECURITY_LABELS.put(p, labels); + + String enc = ourCtx.newXmlParser().setPrettyPrint(true).encodeResourceToString(p); + ourLog.info(enc); + + //@formatter:off + assertThat(enc, stringContainsInOrder("", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "")); + //@formatter:on + + Patient parsed = ourCtx.newXmlParser().parseResource(Patient.class, enc); + List gotLabels = ResourceMetadataKeyEnum.SECURITY_LABELS.get(parsed); + + assertEquals(2,gotLabels.size()); + + CodingDt label = (CodingDt) gotLabels.get(0); + assertEquals("SYSTEM1", label.getSystem()); + assertEquals("CODE1", label.getCode()); + assertEquals("DISPLAY1", label.getDisplay()); + assertEquals(true, label.getPrimary()); + assertEquals("VERSION1", label.getVersion()); + assertEquals("ValueSet1", label.getValueSet().getReference().getValue()); + + label = (CodingDt) gotLabels.get(1); + assertEquals("SYSTEM2", label.getSystem()); + assertEquals("CODE2", label.getCode()); + assertEquals("DISPLAY2", label.getDisplay()); + assertEquals(false, label.getPrimary()); + assertEquals("VERSION2", label.getVersion()); + assertEquals("ValueSet2", label.getValueSet().getReference().getValue()); + } + + @Test public void testDuration() { Encounter enc = new Encounter(); @@ -287,7 +357,7 @@ public class XmlParserTest { parsed = parser.parseResource(Composition.class, string); assertEquals(2, parsed.getContained().getContainedResources().size()); } - + @Test public void testEncodeAndParseExtensions() throws Exception { @@ -301,11 +371,11 @@ public class XmlParserTest { ExtensionDt parent = new ExtensionDt().setUrl("http://example.com#parent"); patient.addUndeclaredExtension(parent); - ExtensionDt child1 = new ExtensionDt().setUrl( "http://example.com#child").setValue( new StringDt("value1")); + ExtensionDt child1 = new ExtensionDt().setUrl("http://example.com#child").setValue(new StringDt("value1")); parent.addUndeclaredExtension(child1); - ExtensionDt child2 = new ExtensionDt().setUrl( "http://example.com#child").setValue( new StringDt("value2")); + ExtensionDt child2 = new ExtensionDt().setUrl("http://example.com#child").setValue(new StringDt("value2")); parent.addUndeclaredExtension(child2); - + ExtensionDt modExt = new ExtensionDt(); modExt.setUrl("http://example.com/extensions#modext"); modExt.setValue(new DateDt("1995-01-02")); @@ -340,38 +410,38 @@ public class XmlParserTest { /* * Now parse this back */ - - Patient parsed =ourCtx.newXmlParser().parseResource(Patient.class, enc); + + Patient parsed = ourCtx.newXmlParser().parseResource(Patient.class, enc); ext = parsed.getUndeclaredExtensions().get(0); assertEquals("http://example.com/extensions#someext", ext.getUrl()); - assertEquals("2011-01-02T11:13:15", ((DateTimeDt)ext.getValue()).getValueAsString()); + assertEquals("2011-01-02T11:13:15", ((DateTimeDt) ext.getValue()).getValueAsString()); parent = patient.getUndeclaredExtensions().get(1); assertEquals("http://example.com#parent", parent.getUrl()); assertNull(parent.getValue()); child1 = parent.getExtension().get(0); - assertEquals( "http://example.com#child", child1.getUrl()); - assertEquals("value1", ((StringDt)child1.getValue()).getValueAsString()); + assertEquals("http://example.com#child", child1.getUrl()); + assertEquals("value1", ((StringDt) child1.getValue()).getValueAsString()); child2 = parent.getExtension().get(1); - assertEquals( "http://example.com#child", child2.getUrl()); - assertEquals("value2", ((StringDt)child2.getValue()).getValueAsString()); + assertEquals("http://example.com#child", child2.getUrl()); + assertEquals("value2", ((StringDt) child2.getValue()).getValueAsString()); modExt = parsed.getUndeclaredModifierExtensions().get(0); assertEquals("http://example.com/extensions#modext", modExt.getUrl()); - assertEquals("1995-01-02", ((DateDt)modExt.getValue()).getValueAsString()); + assertEquals("1995-01-02", ((DateDt) modExt.getValue()).getValueAsString()); name = parsed.getName().get(0); ext2 = name.getGiven().get(0).getUndeclaredExtensions().get(0); assertEquals("http://examples.com#givenext", ext2.getUrl()); - assertEquals("given", ((StringDt)ext2.getValue()).getValueAsString()); + assertEquals("given", ((StringDt) ext2.getValue()).getValueAsString()); given2ext = name.getGiven().get(1).getUndeclaredExtensions().get(0); assertEquals("http://examples.com#givenext_parent", given2ext.getUrl()); assertNull(given2ext.getValue()); ExtensionDt given2ext2 = given2ext.getExtension().get(0); assertEquals("http://examples.com#givenext_child", given2ext2.getUrl()); - assertEquals("CHILD", ((StringDt)given2ext2.getValue()).getValue()); + assertEquals("CHILD", ((StringDt) given2ext2.getValue()).getValue()); } diff --git a/hapi-fhir-structures-dstu2/src/test/java/ca/uhn/fhir/rest/client/GenericClientTestDstu2.java b/hapi-fhir-structures-dstu2/src/test/java/ca/uhn/fhir/rest/client/GenericClientTestDstu2.java index 7851bbdb3f9..fe208635a73 100644 --- a/hapi-fhir-structures-dstu2/src/test/java/ca/uhn/fhir/rest/client/GenericClientTestDstu2.java +++ b/hapi-fhir-structures-dstu2/src/test/java/ca/uhn/fhir/rest/client/GenericClientTestDstu2.java @@ -33,180 +33,180 @@ import ca.uhn.fhir.rest.server.Constants; import ca.uhn.fhir.rest.server.EncodingEnum; public class GenericClientTestDstu2 { - private static FhirContext ourCtx; - private HttpClient myHttpClient; - private HttpResponse myHttpResponse; + private static FhirContext ourCtx; + private HttpClient myHttpClient; + private HttpResponse myHttpResponse; - @BeforeClass - public static void beforeClass() { - ourCtx = FhirContext.forDstu2(); - } + @BeforeClass + public static void beforeClass() { + ourCtx = FhirContext.forDstu2(); + } - - @Before - public void before() { - myHttpClient = mock(HttpClient.class, new ReturnsDeepStubs()); - ourCtx.getRestfulClientFactory().setHttpClient(myHttpClient); - ourCtx.getRestfulClientFactory().setServerValidationModeEnum(ServerValidationModeEnum.NEVER); - myHttpResponse = mock(HttpResponse.class, new ReturnsDeepStubs()); - } - - @Test - public void testSearchByString() throws Exception { - String msg = "{\"resourceType\":\"Bundle\",\"id\":null,\"base\":\"http://localhost:57931/fhir/contextDev\",\"total\":1,\"link\":[{\"relation\":\"self\",\"url\":\"http://localhost:57931/fhir/contextDev/Patient?identifier=urn%3AMultiFhirVersionTest%7CtestSubmitPatient01&_format=json\"}],\"entry\":[{\"resource\":{\"resourceType\":\"Patient\",\"id\":\"1\",\"meta\":{\"versionId\":\"1\",\"lastUpdated\":\"2014-12-20T18:41:29.706-05:00\"},\"identifier\":[{\"system\":\"urn:MultiFhirVersionTest\",\"value\":\"testSubmitPatient01\"}]}}]}"; + @Before + public void before() { + myHttpClient = mock(HttpClient.class, new ReturnsDeepStubs()); + ourCtx.getRestfulClientFactory().setHttpClient(myHttpClient); + ourCtx.getRestfulClientFactory().setServerValidationModeEnum(ServerValidationModeEnum.NEVER); + myHttpResponse = mock(HttpResponse.class, new ReturnsDeepStubs()); + } - ArgumentCaptor capt = ArgumentCaptor.forClass(HttpUriRequest.class); - when(myHttpClient.execute(capt.capture())).thenReturn(myHttpResponse); - when(myHttpResponse.getStatusLine()).thenReturn(new BasicStatusLine(new ProtocolVersion("HTTP", 1, 1), 200, "OK")); - when(myHttpResponse.getEntity().getContentType()).thenReturn(new BasicHeader("content-type", Constants.CT_FHIR_JSON + "; charset=UTF-8")); - when(myHttpResponse.getEntity().getContent()).thenReturn(new ReaderInputStream(new StringReader(msg), Charset.forName("UTF-8"))); - IGenericClient client = ourCtx.newRestfulGenericClient("http://example.com/fhir"); + @Test + public void testSearchByString() throws Exception { + String msg = "{\"resourceType\":\"Bundle\",\"id\":null,\"base\":\"http://localhost:57931/fhir/contextDev\",\"total\":1,\"link\":[{\"relation\":\"self\",\"url\":\"http://localhost:57931/fhir/contextDev/Patient?identifier=urn%3AMultiFhirVersionTest%7CtestSubmitPatient01&_format=json\"}],\"entry\":[{\"resource\":{\"resourceType\":\"Patient\",\"id\":\"1\",\"meta\":{\"versionId\":\"1\",\"lastUpdated\":\"2014-12-20T18:41:29.706-05:00\"},\"identifier\":[{\"system\":\"urn:MultiFhirVersionTest\",\"value\":\"testSubmitPatient01\"}]}}]}"; - //@formatter:off - Bundle response = client.search() - .forResource("Patient") - .where(Patient.NAME.matches().value("james")) - .execute(); - //@formatter:on + ArgumentCaptor capt = ArgumentCaptor.forClass(HttpUriRequest.class); + when(myHttpClient.execute(capt.capture())).thenReturn(myHttpResponse); + when(myHttpResponse.getStatusLine()).thenReturn(new BasicStatusLine(new ProtocolVersion("HTTP", 1, 1), 200, "OK")); + when(myHttpResponse.getEntity().getContentType()).thenReturn(new BasicHeader("content-type", Constants.CT_FHIR_JSON + "; charset=UTF-8")); + when(myHttpResponse.getEntity().getContent()).thenReturn(new ReaderInputStream(new StringReader(msg), Charset.forName("UTF-8"))); - assertEquals("http://example.com/fhir/Patient?name=james", capt.getValue().getURI().toString()); - assertEquals(Patient.class, response.getEntries().get(0).getResource().getClass()); + IGenericClient client = ourCtx.newRestfulGenericClient("http://example.com/fhir"); - } + //@formatter:off + Bundle response = client.search() + .forResource("Patient") + .where(Patient.NAME.matches().value("james")) + .execute(); + //@formatter:on - @Test - public void testDeleteConditional() throws Exception { - ArgumentCaptor capt = ArgumentCaptor.forClass(HttpUriRequest.class); - when(myHttpClient.execute(capt.capture())).thenReturn(myHttpResponse); - when(myHttpResponse.getStatusLine()).thenReturn(new BasicStatusLine(new ProtocolVersion("HTTP", 1, 1), Constants.STATUS_HTTP_204_NO_CONTENT, "")); + assertEquals("http://example.com/fhir/Patient?name=james", capt.getValue().getURI().toString()); + assertEquals(Patient.class, response.getEntries().get(0).getResource().getClass()); + + } + + @Test + public void testDeleteConditional() throws Exception { + ArgumentCaptor capt = ArgumentCaptor.forClass(HttpUriRequest.class); + when(myHttpClient.execute(capt.capture())).thenReturn(myHttpResponse); + when(myHttpResponse.getStatusLine()).thenReturn(new BasicStatusLine(new ProtocolVersion("HTTP", 1, 1), Constants.STATUS_HTTP_204_NO_CONTENT, "")); // when(myHttpResponse.getEntity().getContentType()).thenReturn(new BasicHeader("content-type", Constants.CT_TEXT + "; charset=UTF-8")); - when(myHttpResponse.getEntity().getContent()).then(new Answer() { - @Override - public ReaderInputStream answer(InvocationOnMock theInvocation) throws Throwable { - return new ReaderInputStream(new StringReader(""), Charset.forName("UTF-8")); - } - }); + when(myHttpResponse.getEntity().getContent()).then(new Answer() { + @Override + public ReaderInputStream answer(InvocationOnMock theInvocation) throws Throwable { + return new ReaderInputStream(new StringReader(""), Charset.forName("UTF-8")); + } + }); - IGenericClient client = ourCtx.newRestfulGenericClient("http://example.com/fhir"); + IGenericClient client = ourCtx.newRestfulGenericClient("http://example.com/fhir"); - int idx = 0; - - client.delete().resourceById(new IdDt("Patient/123")).execute(); - assertEquals("DELETE", capt.getAllValues().get(idx).getMethod()); - assertEquals("http://example.com/fhir/Patient/123", capt.getAllValues().get(idx).getURI().toString()); - idx++; - - client.delete().resourceConditionalByUrl("Patient?name=foo").execute(); - assertEquals("DELETE", capt.getAllValues().get(idx).getMethod()); - assertEquals("http://example.com/fhir/Patient?name=foo", capt.getAllValues().get(idx).getURI().toString()); - idx++; + int idx = 0; - client.delete().resourceConditionalByType("Patient").where(Patient.NAME.matches().value("foo")).execute(); - assertEquals("DELETE", capt.getAllValues().get(idx).getMethod()); - assertEquals("http://example.com/fhir/Patient?name=foo", capt.getAllValues().get(idx).getURI().toString()); - idx++; + client.delete().resourceById(new IdDt("Patient/123")).execute(); + assertEquals("DELETE", capt.getAllValues().get(idx).getMethod()); + assertEquals("http://example.com/fhir/Patient/123", capt.getAllValues().get(idx).getURI().toString()); + idx++; - } + client.delete().resourceConditionalByUrl("Patient?name=foo").execute(); + assertEquals("DELETE", capt.getAllValues().get(idx).getMethod()); + assertEquals("http://example.com/fhir/Patient?name=foo", capt.getAllValues().get(idx).getURI().toString()); + idx++; - @Test - public void testCreateConditional() throws Exception { - ArgumentCaptor capt = ArgumentCaptor.forClass(HttpUriRequest.class); - when(myHttpClient.execute(capt.capture())).thenReturn(myHttpResponse); - when(myHttpResponse.getStatusLine()).thenReturn(new BasicStatusLine(new ProtocolVersion("HTTP", 1, 1), Constants.STATUS_HTTP_204_NO_CONTENT, "")); - when(myHttpResponse.getEntity().getContent()).then(new Answer() { - @Override - public ReaderInputStream answer(InvocationOnMock theInvocation) throws Throwable { - return new ReaderInputStream(new StringReader(""), Charset.forName("UTF-8")); - } - }); + client.delete().resourceConditionalByType("Patient").where(Patient.NAME.matches().value("foo")).execute(); + assertEquals("DELETE", capt.getAllValues().get(idx).getMethod()); + assertEquals("http://example.com/fhir/Patient?name=foo", capt.getAllValues().get(idx).getURI().toString()); + idx++; - IGenericClient client = ourCtx.newRestfulGenericClient("http://example.com/fhir"); + } - int idx = 0; - - Patient p = new Patient(); - p.addName().addFamily("FOOFAMILY"); - - client.create().resource(p).conditionalByUrl("Patient?name=foo").execute(); - assertEquals(1, capt.getAllValues().get(idx).getHeaders(Constants.HEADER_CONTENT_TYPE).length); - assertEquals(EncodingEnum.XML.getResourceContentType() + Constants.HEADER_SUFFIX_CT_UTF_8, capt.getAllValues().get(idx).getFirstHeader(Constants.HEADER_CONTENT_TYPE).getValue()); - assertThat(extractBody(capt, idx), containsString("")); - assertEquals("http://example.com/fhir/Patient", capt.getAllValues().get(idx).getURI().toString()); - assertEquals("http://example.com/fhir/Patient?name=foo", capt.getAllValues().get(idx).getFirstHeader(Constants.HEADER_IF_NONE_EXIST).getValue()); - assertEquals("POST", capt.getAllValues().get(idx).getRequestLine().getMethod()); - idx++; + @Test + public void testCreateConditional() throws Exception { + ArgumentCaptor capt = ArgumentCaptor.forClass(HttpUriRequest.class); + when(myHttpClient.execute(capt.capture())).thenReturn(myHttpResponse); + when(myHttpResponse.getStatusLine()).thenReturn(new BasicStatusLine(new ProtocolVersion("HTTP", 1, 1), Constants.STATUS_HTTP_204_NO_CONTENT, "")); + when(myHttpResponse.getEntity().getContent()).then(new Answer() { + @Override + public ReaderInputStream answer(InvocationOnMock theInvocation) throws Throwable { + return new ReaderInputStream(new StringReader(""), Charset.forName("UTF-8")); + } + }); - client.create().resource(p).conditional().where(Patient.NAME.matches().value("foo")).execute(); - assertEquals(1, capt.getAllValues().get(idx).getHeaders(Constants.HEADER_CONTENT_TYPE).length); - assertEquals(EncodingEnum.XML.getResourceContentType() + Constants.HEADER_SUFFIX_CT_UTF_8, capt.getAllValues().get(idx).getFirstHeader(Constants.HEADER_CONTENT_TYPE).getValue()); - assertThat(extractBody(capt, idx), containsString("")); - assertEquals("http://example.com/fhir/Patient", capt.getAllValues().get(idx).getURI().toString()); - assertEquals("http://example.com/fhir/Patient?name=foo", capt.getAllValues().get(idx).getFirstHeader(Constants.HEADER_IF_NONE_EXIST).getValue()); - assertEquals("POST", capt.getAllValues().get(idx).getRequestLine().getMethod()); - idx++; + IGenericClient client = ourCtx.newRestfulGenericClient("http://example.com/fhir"); - } + int idx = 0; + + Patient p = new Patient(); + p.addName().addFamily("FOOFAMILY"); + + client.create().resource(p).conditionalByUrl("Patient?name=foo").execute(); + assertEquals(1, capt.getAllValues().get(idx).getHeaders(Constants.HEADER_CONTENT_TYPE).length); + assertEquals(EncodingEnum.XML.getResourceContentType() + Constants.HEADER_SUFFIX_CT_UTF_8, capt.getAllValues().get(idx).getFirstHeader(Constants.HEADER_CONTENT_TYPE).getValue()); + assertThat(extractBody(capt, idx), containsString("")); + assertEquals("http://example.com/fhir/Patient", capt.getAllValues().get(idx).getURI().toString()); + assertEquals("http://example.com/fhir/Patient?name=foo", capt.getAllValues().get(idx).getFirstHeader(Constants.HEADER_IF_NONE_EXIST).getValue()); + assertEquals("POST", capt.getAllValues().get(idx).getRequestLine().getMethod()); + idx++; + + client.create().resource(p).conditional().where(Patient.NAME.matches().value("foo")).execute(); + assertEquals(1, capt.getAllValues().get(idx).getHeaders(Constants.HEADER_CONTENT_TYPE).length); + assertEquals(EncodingEnum.XML.getResourceContentType() + Constants.HEADER_SUFFIX_CT_UTF_8, capt.getAllValues().get(idx).getFirstHeader(Constants.HEADER_CONTENT_TYPE).getValue()); + assertThat(extractBody(capt, idx), containsString("")); + assertEquals("http://example.com/fhir/Patient", capt.getAllValues().get(idx).getURI().toString()); + assertEquals("http://example.com/fhir/Patient?name=foo", capt.getAllValues().get(idx).getFirstHeader(Constants.HEADER_IF_NONE_EXIST).getValue()); + assertEquals("POST", capt.getAllValues().get(idx).getRequestLine().getMethod()); + idx++; + + } - @Test - public void testUpdateConditional() throws Exception { - ArgumentCaptor capt = ArgumentCaptor.forClass(HttpUriRequest.class); - when(myHttpClient.execute(capt.capture())).thenReturn(myHttpResponse); - when(myHttpResponse.getStatusLine()).thenReturn(new BasicStatusLine(new ProtocolVersion("HTTP", 1, 1), Constants.STATUS_HTTP_204_NO_CONTENT, "")); - when(myHttpResponse.getEntity().getContent()).then(new Answer() { - @Override - public ReaderInputStream answer(InvocationOnMock theInvocation) throws Throwable { - return new ReaderInputStream(new StringReader(""), Charset.forName("UTF-8")); - } - }); + @Test + public void testUpdateConditional() throws Exception { + ArgumentCaptor capt = ArgumentCaptor.forClass(HttpUriRequest.class); + when(myHttpClient.execute(capt.capture())).thenReturn(myHttpResponse); + when(myHttpResponse.getStatusLine()).thenReturn(new BasicStatusLine(new ProtocolVersion("HTTP", 1, 1), Constants.STATUS_HTTP_204_NO_CONTENT, "")); + when(myHttpResponse.getEntity().getContent()).then(new Answer() { + @Override + public ReaderInputStream answer(InvocationOnMock theInvocation) throws Throwable { + return new ReaderInputStream(new StringReader(""), Charset.forName("UTF-8")); + } + }); - IGenericClient client = ourCtx.newRestfulGenericClient("http://example.com/fhir"); + IGenericClient client = ourCtx.newRestfulGenericClient("http://example.com/fhir"); - int idx = 0; - - Patient p = new Patient(); - p.addName().addFamily("FOOFAMILY"); - - client.update().resource(p).conditionalByUrl("Patient?name=foo").execute(); - assertEquals(1, capt.getAllValues().get(idx).getHeaders(Constants.HEADER_CONTENT_TYPE).length); - assertEquals(EncodingEnum.XML.getResourceContentType() + Constants.HEADER_SUFFIX_CT_UTF_8, capt.getAllValues().get(idx).getFirstHeader(Constants.HEADER_CONTENT_TYPE).getValue()); - assertThat(extractBody(capt, idx), containsString("")); - assertEquals("PUT", capt.getAllValues().get(idx).getRequestLine().getMethod()); - assertEquals("http://example.com/fhir/Patient?name=foo", capt.getAllValues().get(idx).getURI().toString()); - idx++; + int idx = 0; - client.update().resource(ourCtx.newXmlParser().encodeResourceToString(p)).conditionalByUrl("Patient?name=foo").execute(); - assertEquals(1, capt.getAllValues().get(idx).getHeaders(Constants.HEADER_CONTENT_TYPE).length); - assertEquals(EncodingEnum.XML.getResourceContentType() + Constants.HEADER_SUFFIX_CT_UTF_8, capt.getAllValues().get(idx).getFirstHeader(Constants.HEADER_CONTENT_TYPE).getValue()); - assertThat(extractBody(capt, idx), containsString("")); - assertEquals("PUT", capt.getAllValues().get(idx).getRequestLine().getMethod()); - assertEquals("http://example.com/fhir/Patient?name=foo", capt.getAllValues().get(idx).getURI().toString()); - idx++; + Patient p = new Patient(); + p.addName().addFamily("FOOFAMILY"); - client.update().resource(p).conditional().where(Patient.NAME.matches().value("foo")).and(Patient.ADDRESS.matches().value("AAA|BBB")).execute(); - assertEquals(1, capt.getAllValues().get(idx).getHeaders(Constants.HEADER_CONTENT_TYPE).length); - assertEquals(EncodingEnum.XML.getResourceContentType() + Constants.HEADER_SUFFIX_CT_UTF_8, capt.getAllValues().get(idx).getFirstHeader(Constants.HEADER_CONTENT_TYPE).getValue()); - assertThat(extractBody(capt, idx), containsString("")); - assertEquals("PUT", capt.getAllValues().get(idx).getRequestLine().getMethod()); - assertEquals("http://example.com/fhir/Patient?name=foo&address=AAA%5C%7CBBB", capt.getAllValues().get(idx).getURI().toString()); - idx++; + client.update().resource(p).conditionalByUrl("Patient?name=foo").execute(); + assertEquals(1, capt.getAllValues().get(idx).getHeaders(Constants.HEADER_CONTENT_TYPE).length); + assertEquals(EncodingEnum.XML.getResourceContentType() + Constants.HEADER_SUFFIX_CT_UTF_8, capt.getAllValues().get(idx).getFirstHeader(Constants.HEADER_CONTENT_TYPE).getValue()); + assertThat(extractBody(capt, idx), containsString("")); + assertEquals("PUT", capt.getAllValues().get(idx).getRequestLine().getMethod()); + assertEquals("http://example.com/fhir/Patient?name=foo", capt.getAllValues().get(idx).getURI().toString()); + idx++; - client.update().resource(ourCtx.newXmlParser().encodeResourceToString(p)).conditional().where(Patient.NAME.matches().value("foo")).and(Patient.ADDRESS.matches().value("AAA|BBB")).execute(); - assertEquals(1, capt.getAllValues().get(idx).getHeaders(Constants.HEADER_CONTENT_TYPE).length); - assertEquals(EncodingEnum.XML.getResourceContentType() + Constants.HEADER_SUFFIX_CT_UTF_8, capt.getAllValues().get(idx).getFirstHeader(Constants.HEADER_CONTENT_TYPE).getValue()); - assertThat(extractBody(capt, idx), containsString("")); - assertEquals("PUT", capt.getAllValues().get(idx).getRequestLine().getMethod()); - assertEquals("http://example.com/fhir/Patient?name=foo&address=AAA%5C%7CBBB", capt.getAllValues().get(idx).getURI().toString()); - idx++; + client.update().resource(ourCtx.newXmlParser().encodeResourceToString(p)).conditionalByUrl("Patient?name=foo").execute(); + assertEquals(1, capt.getAllValues().get(idx).getHeaders(Constants.HEADER_CONTENT_TYPE).length); + assertEquals(EncodingEnum.XML.getResourceContentType() + Constants.HEADER_SUFFIX_CT_UTF_8, capt.getAllValues().get(idx).getFirstHeader(Constants.HEADER_CONTENT_TYPE).getValue()); + assertThat(extractBody(capt, idx), containsString("")); + assertEquals("PUT", capt.getAllValues().get(idx).getRequestLine().getMethod()); + assertEquals("http://example.com/fhir/Patient?name=foo", capt.getAllValues().get(idx).getURI().toString()); + idx++; - } + client.update().resource(p).conditional().where(Patient.NAME.matches().value("foo")).and(Patient.ADDRESS.matches().value("AAA|BBB")).execute(); + assertEquals(1, capt.getAllValues().get(idx).getHeaders(Constants.HEADER_CONTENT_TYPE).length); + assertEquals(EncodingEnum.XML.getResourceContentType() + Constants.HEADER_SUFFIX_CT_UTF_8, capt.getAllValues().get(idx).getFirstHeader(Constants.HEADER_CONTENT_TYPE).getValue()); + assertThat(extractBody(capt, idx), containsString("")); + assertEquals("PUT", capt.getAllValues().get(idx).getRequestLine().getMethod()); + assertEquals("http://example.com/fhir/Patient?name=foo&address=AAA%5C%7CBBB", capt.getAllValues().get(idx).getURI().toString()); + idx++; - private String extractBody(ArgumentCaptor capt, int count) throws IOException { - String body = IOUtils.toString(((HttpEntityEnclosingRequestBase) capt.getAllValues().get(count)).getEntity().getContent(), "UTF-8"); - return body; - } + client.update().resource(ourCtx.newXmlParser().encodeResourceToString(p)).conditional().where(Patient.NAME.matches().value("foo")).and(Patient.ADDRESS.matches().value("AAA|BBB")).execute(); + assertEquals(1, capt.getAllValues().get(idx).getHeaders(Constants.HEADER_CONTENT_TYPE).length); + assertEquals(EncodingEnum.XML.getResourceContentType() + Constants.HEADER_SUFFIX_CT_UTF_8, capt.getAllValues().get(idx).getFirstHeader(Constants.HEADER_CONTENT_TYPE).getValue()); + assertThat(extractBody(capt, idx), containsString("")); + assertEquals("PUT", capt.getAllValues().get(idx).getRequestLine().getMethod()); + assertEquals("http://example.com/fhir/Patient?name=foo&address=AAA%5C%7CBBB", capt.getAllValues().get(idx).getURI().toString()); + idx++; + + } + + private String extractBody(ArgumentCaptor capt, int count) throws IOException { + String body = IOUtils.toString(((HttpEntityEnclosingRequestBase) capt.getAllValues().get(count)).getEntity().getContent(), "UTF-8"); + return body; + } } diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/FhirDstu2Hl7Org.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/FhirDstu2Hl7Org.java index c007c5a0e57..e1d6b3a0613 100644 --- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/FhirDstu2Hl7Org.java +++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/FhirDstu2Hl7Org.java @@ -26,20 +26,14 @@ import java.util.ArrayList; import org.apache.commons.lang3.StringUtils; import org.hl7.fhir.instance.conf.ServerConformanceProvider; import org.hl7.fhir.instance.conf.ServerProfileProvider; -import org.hl7.fhir.instance.model.Extension; import org.hl7.fhir.instance.model.Profile; import org.hl7.fhir.instance.model.Reference; -import org.hl7.fhir.instance.model.api.IBaseExtension; import ca.uhn.fhir.context.ConfigurationException; import ca.uhn.fhir.context.FhirVersionEnum; import ca.uhn.fhir.context.RuntimeResourceDefinition; -import ca.uhn.fhir.model.api.ExtensionDt; import ca.uhn.fhir.model.api.IFhirVersion; -import ca.uhn.fhir.model.api.IResource; -import ca.uhn.fhir.model.base.composite.BaseContainedDt; -import ca.uhn.fhir.model.base.composite.BaseResourceReferenceDt; -import ca.uhn.fhir.model.primitive.IdDt; +import ca.uhn.fhir.model.base.composite.BaseCodingDt; import ca.uhn.fhir.rest.server.IResourceProvider; import ca.uhn.fhir.rest.server.RestfulServer; @@ -106,4 +100,9 @@ public class FhirDstu2Hl7Org implements IFhirVersion { return ArrayList.class; } + @Override + public BaseCodingDt newCodingDt() { + throw new UnsupportedOperationException(); + } + } diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Address.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Address.java index 2e95f7f14fe..1b631e860ed 100644 --- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Address.java +++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Address.java @@ -146,57 +146,57 @@ public class Address extends Type implements ICompositeType { /** * The purpose of this address. */ - @Child(name="use", type={CodeType.class}, order=0, min=0, max=1) + @Child(name = "use", type = {CodeType.class}, order = 0, min = 0, max = 1) @Description(shortDefinition="home | work | temp | old - purpose of this address", formalDefinition="The purpose of this address." ) protected Enumeration use; /** * A full text representation of the address. */ - @Child(name="text", type={StringType.class}, order=1, min=0, max=1) + @Child(name = "text", type = {StringType.class}, order = 1, min = 0, max = 1) @Description(shortDefinition="Text representation of the address", formalDefinition="A full text representation of the address." ) protected StringType text; /** - * This component contains the house number, apartment number, street name, street direction, + * This component contains the house number, apartment number, street name, street direction, P.O. Box number, delivery hints, and similar address information. */ - @Child(name="line", type={StringType.class}, order=2, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "line", type = {StringType.class}, order = 2, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Street name, number, direction & P.O. Box etc", formalDefinition="This component contains the house number, apartment number, street name, street direction, \nP.O. Box number, delivery hints, and similar address information." ) protected List line; /** * The name of the city, town, village or other community or delivery center. */ - @Child(name="city", type={StringType.class}, order=3, min=0, max=1) + @Child(name = "city", type = {StringType.class}, order = 3, min = 0, max = 1) @Description(shortDefinition="Name of city, town etc.", formalDefinition="The name of the city, town, village or other community or delivery center." ) protected StringType city; /** * Sub-unit of a country with limited sovereignty in a federally organized country. A code may be used if codes are in common use (i.e. US 2 letter state codes). */ - @Child(name="state", type={StringType.class}, order=4, min=0, max=1) + @Child(name = "state", type = {StringType.class}, order = 4, min = 0, max = 1) @Description(shortDefinition="Sub-unit of country (abreviations ok)", formalDefinition="Sub-unit of a country with limited sovereignty in a federally organized country. A code may be used if codes are in common use (i.e. US 2 letter state codes)." ) protected StringType state; /** * A postal code designating a region defined by the postal service. */ - @Child(name="postalCode", type={StringType.class}, order=5, min=0, max=1) + @Child(name = "postalCode", type = {StringType.class}, order = 5, min = 0, max = 1) @Description(shortDefinition="Postal code for area", formalDefinition="A postal code designating a region defined by the postal service." ) protected StringType postalCode; /** * Country - a nation as commonly understood or generally accepted. */ - @Child(name="country", type={StringType.class}, order=6, min=0, max=1) + @Child(name = "country", type = {StringType.class}, order = 6, min = 0, max = 1) @Description(shortDefinition="Country (can be ISO 3166 3 letter code)", formalDefinition="Country - a nation as commonly understood or generally accepted." ) protected StringType country; /** * Time period when address was/is in use. */ - @Child(name="period", type={Period.class}, order=7, min=0, max=1) + @Child(name = "period", type = {Period.class}, order = 7, min = 0, max = 1) @Description(shortDefinition="Time period when address was/is in use", formalDefinition="Time period when address was/is in use." ) protected Period period; @@ -305,7 +305,7 @@ P.O. Box number, delivery hints, and similar address information. } /** - * @return {@link #line} (This component contains the house number, apartment number, street name, street direction, + * @return {@link #line} (This component contains the house number, apartment number, street name, street direction, P.O. Box number, delivery hints, and similar address information.) */ public List getLine() { @@ -324,7 +324,7 @@ P.O. Box number, delivery hints, and similar address information.) } /** - * @return {@link #line} (This component contains the house number, apartment number, street name, street direction, + * @return {@link #line} (This component contains the house number, apartment number, street name, street direction, P.O. Box number, delivery hints, and similar address information.) */ // syntactic sugar @@ -337,7 +337,7 @@ P.O. Box number, delivery hints, and similar address information.) } /** - * @param value {@link #line} (This component contains the house number, apartment number, street name, street direction, + * @param value {@link #line} (This component contains the house number, apartment number, street name, street direction, P.O. Box number, delivery hints, and similar address information.) */ public Address addLine(String value) { //1 @@ -350,7 +350,7 @@ P.O. Box number, delivery hints, and similar address information.) } /** - * @param value {@link #line} (This component contains the house number, apartment number, street name, street direction, + * @param value {@link #line} (This component contains the house number, apartment number, street name, street direction, P.O. Box number, delivery hints, and similar address information.) */ public boolean hasLine(String value) { diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Alert.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Alert.java index 0583487b9b3..52ce1c943fc 100644 --- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Alert.java +++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Alert.java @@ -134,28 +134,28 @@ public class Alert extends DomainResource { /** * Identifier assigned to the alert for external use (outside the FHIR environment). */ - @Child(name="identifier", type={Identifier.class}, order=0, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "identifier", type = {Identifier.class}, order = 0, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Business identifier", formalDefinition="Identifier assigned to the alert for external use (outside the FHIR environment)." ) protected List identifier; /** * Allows an alert to be divided into different categories like clinical, administrative etc. */ - @Child(name="category", type={CodeableConcept.class}, order=1, min=0, max=1) + @Child(name = "category", type = {CodeableConcept.class}, order = 1, min = 0, max = 1) @Description(shortDefinition="Clinical, administrative, etc.", formalDefinition="Allows an alert to be divided into different categories like clinical, administrative etc." ) protected CodeableConcept category; /** * Supports basic workflow. */ - @Child(name="status", type={CodeType.class}, order=2, min=1, max=1) + @Child(name = "status", type = {CodeType.class}, order = 2, min = 1, max = 1) @Description(shortDefinition="active | inactive | entered-in-error", formalDefinition="Supports basic workflow." ) protected Enumeration status; /** * The person who this alert concerns. */ - @Child(name="subject", type={Patient.class}, order=3, min=1, max=1) + @Child(name = "subject", type = {Patient.class}, order = 3, min = 1, max = 1) @Description(shortDefinition="Who is alert about?", formalDefinition="The person who this alert concerns." ) protected Reference subject; @@ -167,7 +167,7 @@ public class Alert extends DomainResource { /** * The person or device that created the alert. */ - @Child(name="author", type={Practitioner.class, Patient.class, Device.class}, order=4, min=0, max=1) + @Child(name = "author", type = {Practitioner.class, Patient.class, Device.class}, order = 4, min = 0, max = 1) @Description(shortDefinition="Alert creator", formalDefinition="The person or device that created the alert." ) protected Reference author; @@ -179,17 +179,17 @@ public class Alert extends DomainResource { /** * The coded value or textual component of the alert to display to the user. */ - @Child(name="note", type={CodeableConcept.class}, order=5, min=1, max=1) - @Description(shortDefinition="Partially deaf, Requires easy open caps, No permanent address, etc.", formalDefinition="The coded value or textual component of the alert to display to the user." ) + @Child(name = "note", type = {CodeableConcept.class}, order = 5, min = 1, max = 1) + @Description(shortDefinition = "Partially deaf, Requires easy open caps, No permanent address, etc.", formalDefinition = "The coded value or textual component of the alert to display to the user.") protected CodeableConcept note; - private static final long serialVersionUID = -1519932996L; + private static final long serialVersionUID = -1519932996L; public Alert() { super(); } - public Alert(Enumeration status, Reference subject, CodeableConcept note) { + public Alert(Enumeration status, Reference subject, CodeableConcept note) { super(); this.status = status; this.subject = subject; @@ -467,7 +467,7 @@ public class Alert extends DomainResource { @SearchParamDefinition(name="subject", path="Alert.subject", description="The identity of a subject to list alerts for", type="reference" ) public static final String SP_SUBJECT = "subject"; - @SearchParamDefinition(name="patient", path="Alert.subject", description="The identity of a subject to list alerts for", type="reference" ) + @SearchParamDefinition(name = "patient", path = "Alert.subject", description = "The identity of a subject to list alerts for", type = "reference") public static final String SP_PATIENT = "patient"; } diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/AllergyIntolerance.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/AllergyIntolerance.java index 516f79d891c..7654f4424ec 100644 --- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/AllergyIntolerance.java +++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/AllergyIntolerance.java @@ -1049,21 +1049,21 @@ public class AllergyIntolerance extends DomainResource { /** * This records identifiers associated with this allergy/intolerance concern that are defined by business processed and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation). */ - @Child(name="identifier", type={Identifier.class}, order=0, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "identifier", type = {Identifier.class}, order = 0, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="External Ids for this item", formalDefinition="This records identifiers associated with this allergy/intolerance concern that are defined by business processed and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation)." ) protected List identifier; /** * Date when the sensitivity was recorded. */ - @Child(name="recordedDate", type={DateTimeType.class}, order=1, min=0, max=1) + @Child(name = "recordedDate", type = {DateTimeType.class}, order = 1, min = 0, max = 1) @Description(shortDefinition="When recorded", formalDefinition="Date when the sensitivity was recorded." ) protected DateTimeType recordedDate; /** * Indicates who has responsibility for the record. */ - @Child(name="recorder", type={Practitioner.class, Patient.class}, order=2, min=0, max=1) + @Child(name = "recorder", type = {Practitioner.class, Patient.class}, order = 2, min = 0, max = 1) @Description(shortDefinition="Who recorded the sensitivity", formalDefinition="Indicates who has responsibility for the record." ) protected Reference recorder; @@ -1075,7 +1075,7 @@ public class AllergyIntolerance extends DomainResource { /** * The patient who has the allergy or intolerance. */ - @Child(name="subject", type={Patient.class}, order=3, min=1, max=1) + @Child(name = "subject", type = {Patient.class}, order = 3, min = 1, max = 1) @Description(shortDefinition="Who the sensitivity is for", formalDefinition="The patient who has the allergy or intolerance." ) protected Reference subject; @@ -1087,56 +1087,56 @@ public class AllergyIntolerance extends DomainResource { /** * Identification of a substance, or a class of substances, that is considered to be responsible for the Adverse reaction risk. */ - @Child(name="substance", type={CodeableConcept.class}, order=4, min=1, max=1) + @Child(name = "substance", type = {CodeableConcept.class}, order = 4, min = 1, max = 1) @Description(shortDefinition="Substance, (or class) considered to be responsible for risk", formalDefinition="Identification of a substance, or a class of substances, that is considered to be responsible for the Adverse reaction risk." ) protected CodeableConcept substance; /** * Assertion about certainty associated with the propensity, or potential risk, of a reaction to the identified Substance. */ - @Child(name="status", type={CodeType.class}, order=5, min=0, max=1) + @Child(name = "status", type = {CodeType.class}, order = 5, min = 0, max = 1) @Description(shortDefinition="unconfirmed | confirmed | resolved | refuted", formalDefinition="Assertion about certainty associated with the propensity, or potential risk, of a reaction to the identified Substance." ) protected Enumeration status; /** * Estimate of the potential clinical harm, or seriousness, of the reaction to the identified Substance. */ - @Child(name="criticality", type={CodeType.class}, order=6, min=0, max=1) + @Child(name = "criticality", type = {CodeType.class}, order = 6, min = 0, max = 1) @Description(shortDefinition="low | high | unassessible - Estimated potential clinical harm", formalDefinition="Estimate of the potential clinical harm, or seriousness, of the reaction to the identified Substance." ) protected Enumeration criticality; /** * Identification of the underlying physiological mechanism for the Reaction Risk. */ - @Child(name="type", type={CodeType.class}, order=7, min=0, max=1) + @Child(name = "type", type = {CodeType.class}, order = 7, min = 0, max = 1) @Description(shortDefinition="immune | non-immune - Underlying mechanism (if known)", formalDefinition="Identification of the underlying physiological mechanism for the Reaction Risk." ) protected Enumeration type; /** * Category of the identified Substance. */ - @Child(name="category", type={CodeType.class}, order=8, min=0, max=1) + @Child(name = "category", type = {CodeType.class}, order = 8, min = 0, max = 1) @Description(shortDefinition="food | medication | environment - Category of Substance", formalDefinition="Category of the identified Substance." ) protected Enumeration category; /** * Represents the date and/or time of the last known occurence of a reaction event. */ - @Child(name="lastOccurence", type={DateTimeType.class}, order=9, min=0, max=1) + @Child(name = "lastOccurence", type = {DateTimeType.class}, order = 9, min = 0, max = 1) @Description(shortDefinition="Date(/time) of last known occurence of a reaction", formalDefinition="Represents the date and/or time of the last known occurence of a reaction event." ) protected DateTimeType lastOccurence; /** * Additional narrative about the propensity for the Adverse Reaction, not captured in other fields. */ - @Child(name="comment", type={StringType.class}, order=10, min=0, max=1) + @Child(name = "comment", type = {StringType.class}, order = 10, min = 0, max = 1) @Description(shortDefinition="Additional text not captured in other fields", formalDefinition="Additional narrative about the propensity for the Adverse Reaction, not captured in other fields." ) protected StringType comment; /** * Details about each Adverse Reaction Event linked to exposure to the identified Substance. */ - @Child(name="event", type={}, order=11, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "event", type = {}, order = 11, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Adverse Reaction Events linked to exposure to substance", formalDefinition="Details about each Adverse Reaction Event linked to exposure to the identified Substance." ) protected List event; @@ -1751,34 +1751,34 @@ public class AllergyIntolerance extends DomainResource { public static final String SP_SEVERITY = "severity"; @SearchParamDefinition(name="date", path="AllergyIntolerance.recordedDate", description="When recorded", type="date" ) public static final String SP_DATE = "date"; - @SearchParamDefinition(name="identifier", path="AllergyIntolerance.identifier", description="External Ids for this item", type="token" ) - public static final String SP_IDENTIFIER = "identifier"; - @SearchParamDefinition(name="manifestation", path="AllergyIntolerance.event.manifestation", description="Clinical symptoms/signs associated with the Event", type="token" ) - public static final String SP_MANIFESTATION = "manifestation"; - @SearchParamDefinition(name="recorder", path="AllergyIntolerance.recorder", description="Who recorded the sensitivity", type="reference" ) - public static final String SP_RECORDER = "recorder"; - @SearchParamDefinition(name="subject", path="AllergyIntolerance.subject", description="Who the sensitivity is for", type="reference" ) - public static final String SP_SUBJECT = "subject"; + @SearchParamDefinition(name = "identifier", path = "AllergyIntolerance.identifier", description = "External Ids for this item", type = "token") + public static final String SP_IDENTIFIER = "identifier"; + @SearchParamDefinition(name = "manifestation", path = "AllergyIntolerance.event.manifestation", description = "Clinical symptoms/signs associated with the Event", type = "token") + public static final String SP_MANIFESTATION = "manifestation"; + @SearchParamDefinition(name = "recorder", path = "AllergyIntolerance.recorder", description = "Who recorded the sensitivity", type = "reference") + public static final String SP_RECORDER = "recorder"; + @SearchParamDefinition(name = "subject", path = "AllergyIntolerance.subject", description = "Who the sensitivity is for", type = "reference") + public static final String SP_SUBJECT = "subject"; @SearchParamDefinition(name="substance", path="AllergyIntolerance.substance|AllergyIntolerance.event.substance", description="Substance, (or class) considered to be responsible for risk", type="token" ) public static final String SP_SUBSTANCE = "substance"; @SearchParamDefinition(name="criticality", path="AllergyIntolerance.criticality", description="low | high | unassessible - Estimated potential clinical harm", type="token" ) public static final String SP_CRITICALITY = "criticality"; - @SearchParamDefinition(name="type", path="AllergyIntolerance.type", description="immune | non-immune - Underlying mechanism (if known)", type="token" ) - public static final String SP_TYPE = "type"; - @SearchParamDefinition(name="onset", path="AllergyIntolerance.event.onset", description="Date(/time) when manifestations showed", type="date" ) - public static final String SP_ONSET = "onset"; + @SearchParamDefinition(name = "type", path = "AllergyIntolerance.type", description = "immune | non-immune - Underlying mechanism (if known)", type = "token") + public static final String SP_TYPE = "type"; + @SearchParamDefinition(name = "onset", path = "AllergyIntolerance.event.onset", description = "Date(/time) when manifestations showed", type = "date") + public static final String SP_ONSET = "onset"; @SearchParamDefinition(name="duration", path="AllergyIntolerance.event.duration", description="How long Manifestations persisted", type="quantity" ) public static final String SP_DURATION = "duration"; @SearchParamDefinition(name="route", path="AllergyIntolerance.event.exposureRoute", description="How the subject was exposed to the substance", type="token" ) public static final String SP_ROUTE = "route"; - @SearchParamDefinition(name="patient", path="AllergyIntolerance.subject", description="Who the sensitivity is for", type="reference" ) - public static final String SP_PATIENT = "patient"; - @SearchParamDefinition(name="category", path="AllergyIntolerance.category", description="food | medication | environment - Category of Substance", type="token" ) - public static final String SP_CATEGORY = "category"; - @SearchParamDefinition(name="last-date", path="AllergyIntolerance.lastOccurence", description="Date(/time) of last known occurence of a reaction", type="date" ) - public static final String SP_LASTDATE = "last-date"; - @SearchParamDefinition(name="status", path="AllergyIntolerance.status", description="unconfirmed | confirmed | resolved | refuted", type="token" ) - public static final String SP_STATUS = "status"; + @SearchParamDefinition(name = "patient", path = "AllergyIntolerance.subject", description = "Who the sensitivity is for", type = "reference") + public static final String SP_PATIENT = "patient"; + @SearchParamDefinition(name = "category", path = "AllergyIntolerance.category", description = "food | medication | environment - Category of Substance", type = "token") + public static final String SP_CATEGORY = "category"; + @SearchParamDefinition(name = "last-date", path = "AllergyIntolerance.lastOccurence", description = "Date(/time) of last known occurence of a reaction", type = "date") + public static final String SP_LASTDATE = "last-date"; + @SearchParamDefinition(name = "status", path = "AllergyIntolerance.status", description = "unconfirmed | confirmed | resolved | refuted", type = "token") + public static final String SP_STATUS = "status"; } diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Appointment.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Appointment.java index 16799d49428..19c245521e9 100644 --- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Appointment.java +++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Appointment.java @@ -649,63 +649,63 @@ public class Appointment extends DomainResource { /** * This records identifiers associated with this appointment concern that are defined by business processed and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation). */ - @Child(name="identifier", type={Identifier.class}, order=0, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "identifier", type = {Identifier.class}, order = 0, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="External Ids for this item", formalDefinition="This records identifiers associated with this appointment concern that are defined by business processed and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation)." ) protected List identifier; /** * The priority of the appointment. Can be used to make informed decisions if needing to re-prioritize appointments. (The iCal Standard specifies 0 as undefined, 1 as highest, 9 as lowest priority) (Need to change back to CodeableConcept). */ - @Child(name="priority", type={IntegerType.class}, order=1, min=0, max=1) + @Child(name = "priority", type = {IntegerType.class}, order = 1, min = 0, max = 1) @Description(shortDefinition="The priority of the appointment. Can be used to make informed decisions if needing to re-prioritize appointments. (The iCal Standard specifies 0 as undefined, 1 as highest, 9 as lowest priority) (Need to change back to CodeableConcept)", formalDefinition="The priority of the appointment. Can be used to make informed decisions if needing to re-prioritize appointments. (The iCal Standard specifies 0 as undefined, 1 as highest, 9 as lowest priority) (Need to change back to CodeableConcept)." ) protected IntegerType priority; /** * 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. */ - @Child(name="status", type={CodeType.class}, order=2, min=1, max=1) + @Child(name = "status", type = {CodeType.class}, order = 2, 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 status; /** * The type of appointments that is being booked (ideally this would be an identifiable service - which is at a location, rather than the location itself). */ - @Child(name="type", type={CodeableConcept.class}, order=3, min=0, max=1) + @Child(name = "type", type = {CodeableConcept.class}, order = 3, min = 0, max = 1) @Description(shortDefinition="The type of appointments that is being booked (ideally this would be an identifiable service - which is at a location, rather than the location itself)", formalDefinition="The type of appointments that is being booked (ideally this would be an identifiable service - which is at a location, rather than the location itself)." ) protected CodeableConcept type; /** * The reason that this appointment is being scheduled, this is more clinical than administrative. */ - @Child(name="reason", type={CodeableConcept.class}, order=4, min=0, max=1) + @Child(name = "reason", type = {CodeableConcept.class}, order = 4, min = 0, max = 1) @Description(shortDefinition="The reason that this appointment is being scheduled, this is more clinical than administrative", formalDefinition="The reason that this appointment is being scheduled, this is more clinical than administrative." ) protected CodeableConcept reason; /** * The brief description of the appointment as would be shown on a subject line in a meeting request, or appointment list. Detailed or expanded information should be put in the comment field. */ - @Child(name="description", type={StringType.class}, order=5, min=0, max=1) + @Child(name = "description", type = {StringType.class}, order = 5, min = 0, max = 1) @Description(shortDefinition="The brief description of the appointment as would be shown on a subject line in a meeting request, or appointment list. Detailed or expanded information should be put in the comment field", formalDefinition="The brief description of the appointment as would be shown on a subject line in a meeting request, or appointment list. Detailed or expanded information should be put in the comment field." ) protected StringType description; /** * Date/Time that the appointment is to take place. */ - @Child(name="start", type={InstantType.class}, order=6, min=1, max=1) + @Child(name = "start", type = {InstantType.class}, order = 6, min = 1, max = 1) @Description(shortDefinition="Date/Time that the appointment is to take place", formalDefinition="Date/Time that the appointment is to take place." ) protected InstantType start; /** * Date/Time that the appointment is to conclude. */ - @Child(name="end", type={InstantType.class}, order=7, min=1, max=1) + @Child(name = "end", type = {InstantType.class}, order = 7, min = 1, max = 1) @Description(shortDefinition="Date/Time that the appointment is to conclude", formalDefinition="Date/Time that the appointment is to conclude." ) protected InstantType end; /** * The slot that this appointment is filling. If provided then the schedule will not be provided as slots are not recursive, and the start/end values MUST be the same as from the slot. */ - @Child(name="slot", type={Slot.class}, order=8, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "slot", type = {Slot.class}, order = 8, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="The slot that this appointment is filling. If provided then the schedule will not be provided as slots are not recursive, and the start/end values MUST be the same as from the slot", formalDefinition="The slot that this appointment is filling. If provided then the schedule will not be provided as slots are not recursive, and the start/end values MUST be the same as from the slot." ) protected List slot; /** @@ -717,7 +717,7 @@ public class Appointment extends DomainResource { /** * The primary location that this appointment is to take place. */ - @Child(name="location", type={Location.class}, order=9, min=0, max=1) + @Child(name = "location", type = {Location.class}, order = 9, min = 0, max = 1) @Description(shortDefinition="The primary location that this appointment is to take place", formalDefinition="The primary location that this appointment is to take place." ) protected Reference location; @@ -729,14 +729,14 @@ public class Appointment extends DomainResource { /** * Additional comments about the appointment. */ - @Child(name="comment", type={StringType.class}, order=10, min=0, max=1) + @Child(name = "comment", type = {StringType.class}, order = 10, min = 0, max = 1) @Description(shortDefinition="Additional comments about the appointment", formalDefinition="Additional comments about the appointment." ) protected StringType comment; /** * An Order that lead to the creation of this appointment. */ - @Child(name="order", type={Order.class}, order=11, min=0, max=1) + @Child(name = "order", type = {Order.class}, order = 11, min = 0, max = 1) @Description(shortDefinition="An Order that lead to the creation of this appointment", formalDefinition="An Order that lead to the creation of this appointment." ) protected Reference order; @@ -748,14 +748,14 @@ public class Appointment extends DomainResource { /** * List of participants involved in the appointment. */ - @Child(name="participant", type={}, order=12, min=1, max=Child.MAX_UNLIMITED) + @Child(name = "participant", type = {}, order = 12, min = 1, max = Child.MAX_UNLIMITED) @Description(shortDefinition="List of participants involved in the appointment", formalDefinition="List of participants involved in the appointment." ) protected List participant; /** * Who recorded the appointment. */ - @Child(name="lastModifiedBy", type={Practitioner.class, Patient.class, RelatedPerson.class}, order=13, min=0, max=1) + @Child(name = "lastModifiedBy", type = {Practitioner.class, Patient.class, RelatedPerson.class}, order = 13, min = 0, max = 1) @Description(shortDefinition="Who recorded the appointment", formalDefinition="Who recorded the appointment." ) protected Reference lastModifiedBy; @@ -767,7 +767,7 @@ public class Appointment extends DomainResource { /** * Date when the appointment was recorded. */ - @Child(name="lastModified", type={DateTimeType.class}, order=14, min=0, max=1) + @Child(name = "lastModified", type = {DateTimeType.class}, order = 14, min = 0, max = 1) @Description(shortDefinition="Date when the appointment was recorded", formalDefinition="Date when the appointment was recorded." ) protected DateTimeType lastModified; @@ -1494,10 +1494,10 @@ public class Appointment extends DomainResource { return ResourceType.Appointment; } - @SearchParamDefinition(name="date", path="Appointment.start", description="Appointment date/time.", type="date" ) - public static final String SP_DATE = "date"; - @SearchParamDefinition(name="actor", path="Appointment.participant.actor", description="Any one of the individuals participating in the appointment", type="reference" ) - public static final String SP_ACTOR = "actor"; + @SearchParamDefinition(name = "date", path = "Appointment.start", description = "Appointment date/time.", type = "date") + public static final String SP_DATE = "date"; + @SearchParamDefinition(name = "actor", path = "Appointment.participant.actor", description = "Any one of the individuals participating in the appointment", type = "reference") + public static final String SP_ACTOR = "actor"; @SearchParamDefinition(name="partstatus", path="Appointment.participant.status", description="The Participation status of the subject, or other participant on the appointment", type="token" ) public static final String SP_PARTSTATUS = "partstatus"; @SearchParamDefinition(name="patient", path="Appointment.participant.actor", description="One of the individuals of the appointment is this patient", type="reference" ) diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/AppointmentResponse.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/AppointmentResponse.java index 49ffec5ac3e..6f6ccdbed96 100644 --- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/AppointmentResponse.java +++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/AppointmentResponse.java @@ -176,14 +176,14 @@ public class AppointmentResponse extends DomainResource { /** * This records identifiers associated with this appointment concern that are defined by business processed and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation). */ - @Child(name="identifier", type={Identifier.class}, order=0, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "identifier", type = {Identifier.class}, order = 0, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="External Ids for this item", formalDefinition="This records identifiers associated with this appointment concern that are defined by business processed and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation)." ) protected List identifier; /** * Parent appointment that this response is replying to. */ - @Child(name="appointment", type={Appointment.class}, order=1, min=1, max=1) + @Child(name = "appointment", type = {Appointment.class}, order = 1, min = 1, max = 1) @Description(shortDefinition="Parent appointment that this response is replying to", formalDefinition="Parent appointment that this response is replying to." ) protected Reference appointment; @@ -195,14 +195,14 @@ public class AppointmentResponse extends DomainResource { /** * Role of participant in the appointment. */ - @Child(name="participantType", type={CodeableConcept.class}, order=2, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "participantType", type = {CodeableConcept.class}, order = 2, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Role of participant in the appointment", formalDefinition="Role of participant in the appointment." ) protected List participantType; /** * A Person of device that is participating in the appointment, usually Practitioner, Patient, RelatedPerson or Device. */ - @Child(name="individual", type={}, order=3, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "individual", type = {}, order = 3, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="A Person of device that is participating in the appointment, usually Practitioner, Patient, RelatedPerson or Device", formalDefinition="A Person of device that is participating in the appointment, usually Practitioner, Patient, RelatedPerson or Device." ) protected List individual; /** @@ -214,35 +214,35 @@ public class AppointmentResponse extends DomainResource { /** * Participation status of the Patient. */ - @Child(name="participantStatus", type={CodeType.class}, order=4, min=1, max=1) + @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 Patient." ) protected Enumeration participantStatus; /** * Additional comments about the appointment. */ - @Child(name="comment", type={StringType.class}, order=5, min=0, max=1) + @Child(name = "comment", type = {StringType.class}, order = 5, min = 0, max = 1) @Description(shortDefinition="Additional comments about the appointment", formalDefinition="Additional comments about the appointment." ) protected StringType comment; /** * Date/Time that the appointment is to take place. */ - @Child(name="start", type={InstantType.class}, order=6, min=0, max=1) + @Child(name = "start", type = {InstantType.class}, order = 6, min = 0, max = 1) @Description(shortDefinition="Date/Time that the appointment is to take place", formalDefinition="Date/Time that the appointment is to take place." ) protected InstantType start; /** * Date/Time that the appointment is to conclude. */ - @Child(name="end", type={InstantType.class}, order=7, min=0, max=1) + @Child(name = "end", type = {InstantType.class}, order = 7, min = 0, max = 1) @Description(shortDefinition="Date/Time that the appointment is to conclude", formalDefinition="Date/Time that the appointment is to conclude." ) protected InstantType end; /** * Who recorded the appointment response. */ - @Child(name="lastModifiedBy", type={Practitioner.class, Patient.class, RelatedPerson.class}, order=8, min=0, max=1) + @Child(name = "lastModifiedBy", type = {Practitioner.class, Patient.class, RelatedPerson.class}, order = 8, min = 0, max = 1) @Description(shortDefinition="Who recorded the appointment response", formalDefinition="Who recorded the appointment response." ) protected Reference lastModifiedBy; @@ -254,7 +254,7 @@ public class AppointmentResponse extends DomainResource { /** * Date when the response was recorded or last updated. */ - @Child(name="lastModified", type={DateTimeType.class}, order=9, min=0, max=1) + @Child(name = "lastModified", type = {DateTimeType.class}, order = 9, min = 0, max = 1) @Description(shortDefinition="Date when the response was recorded or last updated", formalDefinition="Date when the response was recorded or last updated." ) protected DateTimeType lastModified; diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Attachment.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Attachment.java index 493c048e6a9..f2a69f544a6 100644 --- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Attachment.java +++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Attachment.java @@ -41,54 +41,54 @@ import org.hl7.fhir.instance.model.annotations.DatatypeDef; * For referring to data content defined in other formats. */ @DatatypeDef(name="Attachment") -public class Attachment extends Type implements ICompositeType { +public class Attachment extends Type implements ICompositeType { /** * Identifies the type of the data in the attachment and allows a method to be chosen to interpret or render the data. Includes mime type parameters such as charset where appropriate. */ - @Child(name="contentType", type={CodeType.class}, order=0, min=0, max=1) + @Child(name = "contentType", type = {CodeType.class}, order = 0, min = 0, max = 1) @Description(shortDefinition="Mime type of the content, with charset etc.", formalDefinition="Identifies the type of the data in the attachment and allows a method to be chosen to interpret or render the data. Includes mime type parameters such as charset where appropriate." ) protected CodeType contentType; /** * The human language of the content. The value can be any valid value according to BCP 47. */ - @Child(name="language", type={CodeType.class}, order=1, min=0, max=1) + @Child(name = "language", type = {CodeType.class}, order = 1, min = 0, max = 1) @Description(shortDefinition="Human language of the content (BCP-47)", formalDefinition="The human language of the content. The value can be any valid value according to BCP 47." ) protected CodeType language; /** * The actual data of the attachment - a sequence of bytes. In XML, represented using base64. */ - @Child(name="data", type={Base64BinaryType.class}, order=2, min=0, max=1) + @Child(name = "data", type = {Base64BinaryType.class}, order = 2, min = 0, max = 1) @Description(shortDefinition="Data inline, base64ed", formalDefinition="The actual data of the attachment - a sequence of bytes. In XML, represented using base64." ) protected Base64BinaryType data; /** * An alternative location where the data can be accessed. */ - @Child(name="url", type={UriType.class}, order=3, min=0, max=1) + @Child(name = "url", type = {UriType.class}, order = 3, min = 0, max = 1) @Description(shortDefinition="Uri where the data can be found", formalDefinition="An alternative location where the data can be accessed." ) protected UriType url; /** * The number of bytes of data that make up this attachment. */ - @Child(name="size", type={IntegerType.class}, order=4, min=0, max=1) + @Child(name = "size", type = {IntegerType.class}, order = 4, min = 0, max = 1) @Description(shortDefinition="Number of bytes of content (if url provided)", formalDefinition="The number of bytes of data that make up this attachment." ) protected IntegerType size; /** * The calculated hash of the data using SHA-1. Represented using base64. */ - @Child(name="hash", type={Base64BinaryType.class}, order=5, min=0, max=1) + @Child(name = "hash", type = {Base64BinaryType.class}, order = 5, min = 0, max = 1) @Description(shortDefinition="Hash of the data (sha-1, base64ed )", formalDefinition="The calculated hash of the data using SHA-1. Represented using base64." ) protected Base64BinaryType hash; /** * A label or set of text to display in place of the data. */ - @Child(name="title", type={StringType.class}, order=6, min=0, max=1) + @Child(name = "title", type = {StringType.class}, order = 6, min = 0, max = 1) @Description(shortDefinition="Label to display in place of the data", formalDefinition="A label or set of text to display in place of the data." ) protected StringType title; diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/BackboneElement.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/BackboneElement.java index 8558a11dcc6..a2a98a3300b 100644 --- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/BackboneElement.java +++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/BackboneElement.java @@ -48,7 +48,7 @@ public abstract class BackboneElement extends Element implements IBackboneElemen /** * May be used to represent additional information that is not part of the basic definition of the element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions. */ - @Child(name="modifierExtension", type={Extension.class}, order=0, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "modifierExtension", type = {Extension.class}, order = 0, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Extensions that cannot be ignored", formalDefinition="May be used to represent additional information that is not part of the basic definition of the element, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions." ) protected List modifierExtension; diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Basic.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Basic.java index ff748c0b33f..3c6f127f1e8 100644 --- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Basic.java +++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Basic.java @@ -47,21 +47,21 @@ public class Basic extends DomainResource { /** * Identifier assigned to the resource for business purposes, outside the context of FHIR. */ - @Child(name="identifier", type={Identifier.class}, order=0, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "identifier", type = {Identifier.class}, order = 0, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Business identifier", formalDefinition="Identifier assigned to the resource for business purposes, outside the context of FHIR." ) protected List identifier; /** * Identifies the 'type' of resource - equivalent to the resource name for other resources. */ - @Child(name="code", type={CodeableConcept.class}, order=1, min=1, max=1) + @Child(name = "code", type = {CodeableConcept.class}, order = 1, min = 1, max = 1) @Description(shortDefinition="Kind of Resource", formalDefinition="Identifies the 'type' of resource - equivalent to the resource name for other resources." ) protected CodeableConcept code; /** * Identifies the patient, practitioner, device or any other resource that is the "focus" of this resoruce. */ - @Child(name="subject", type={}, order=2, min=0, max=1) + @Child(name = "subject", type = {}, order = 2, min = 0, max = 1) @Description(shortDefinition="Identifies the", formalDefinition="Identifies the patient, practitioner, device or any other resource that is the 'focus' of this resoruce." ) protected Reference subject; @@ -73,7 +73,7 @@ public class Basic extends DomainResource { /** * Indicates who was responsible for creating the resource instance. */ - @Child(name="author", type={Practitioner.class, Patient.class, RelatedPerson.class}, order=3, min=0, max=1) + @Child(name = "author", type = {Practitioner.class, Patient.class, RelatedPerson.class}, order = 3, min = 0, max = 1) @Description(shortDefinition="Who created", formalDefinition="Indicates who was responsible for creating the resource instance." ) protected Reference author; @@ -85,7 +85,7 @@ public class Basic extends DomainResource { /** * Identifies when the resource was first created. */ - @Child(name="created", type={DateType.class}, order=4, min=0, max=1) + @Child(name = "created", type = {DateType.class}, order = 4, min = 0, max = 1) @Description(shortDefinition="When created", formalDefinition="Identifies when the resource was first created." ) protected DateType created; @@ -343,12 +343,12 @@ public class Basic extends DomainResource { @SearchParamDefinition(name="code", path="Basic.code", description="Kind of Resource", type="token" ) public static final String SP_CODE = "code"; - @SearchParamDefinition(name="subject", path="Basic.subject", description="Identifies the", type="reference" ) - public static final String SP_SUBJECT = "subject"; - @SearchParamDefinition(name="created", path="Basic.created", description="When created", type="date" ) - public static final String SP_CREATED = "created"; - @SearchParamDefinition(name="patient", path="Basic.subject", description="Identifies the", type="reference" ) - public static final String SP_PATIENT = "patient"; + @SearchParamDefinition(name = "subject", path = "Basic.subject", description = "Identifies the", type = "reference") + public static final String SP_SUBJECT = "subject"; + @SearchParamDefinition(name = "created", path = "Basic.created", description = "When created", type = "date") + public static final String SP_CREATED = "created"; + @SearchParamDefinition(name = "patient", path = "Basic.subject", description = "Identifies the", type = "reference") + public static final String SP_PATIENT = "patient"; } diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Binary.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Binary.java index 96beb3cd92d..718db72ffc7 100644 --- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Binary.java +++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Binary.java @@ -48,14 +48,14 @@ public class Binary extends Resource { /** * MimeType of the binary content represented as a standard MimeType (BCP 13). */ - @Child(name="contentType", type={CodeType.class}, order=0, min=1, max=1) + @Child(name = "contentType", type = {CodeType.class}, order = 0, min = 1, max = 1) @Description(shortDefinition="MimeType of the binary content", formalDefinition="MimeType of the binary content represented as a standard MimeType (BCP 13)." ) protected CodeType contentType; /** * The actual content, base64 encoded. */ - @Child(name="content", type={Base64BinaryType.class}, order=1, min=1, max=1) + @Child(name = "content", type = {Base64BinaryType.class}, order = 1, min = 1, max = 1) @Description(shortDefinition="The actual content", formalDefinition="The actual content, base64 encoded." ) protected Base64BinaryType content; diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/BodySite.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/BodySite.java index 8ef8942ce7e..e62560b9073 100644 --- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/BodySite.java +++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/BodySite.java @@ -393,35 +393,35 @@ public class BodySite extends DomainResource { /** * Identifier for this instance of the anatomical location. */ - @Child(name="identifier", type={Identifier.class}, order=0, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "identifier", type = {Identifier.class}, order = 0, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Bodysite identifier", formalDefinition="Identifier for this instance of the anatomical location." ) protected List identifier; /** * The Specific and identified anatomical location. */ - @Child(name="specificLocation", type={}, order=1, min=0, max=1) + @Child(name = "specificLocation", type = {}, order = 1, min = 0, max = 1) @Description(shortDefinition="Specific anatomical location", formalDefinition="The Specific and identified anatomical location." ) protected BodySiteSpecificLocationComponent specificLocation; /** * Qualifiers to identify non-specific location eg 5cm (distance) inferior (aspect) to the tibial tuberosity (landmark). There may be more than one relative location required to provide a cross reference. */ - @Child(name="relativeLocation", type={}, order=2, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "relativeLocation", type = {}, order = 2, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Relative anatomical location(s)", formalDefinition="Qualifiers to identify non-specific location eg 5cm (distance) inferior (aspect) to the tibial tuberosity (landmark). There may be more than one relative location required to provide a cross reference." ) protected List relativeLocation; /** * Description of anatomical location. */ - @Child(name="description", type={StringType.class}, order=3, min=0, max=1) + @Child(name = "description", type = {StringType.class}, order = 3, min = 0, max = 1) @Description(shortDefinition="The Description of anatomical location", formalDefinition="Description of anatomical location." ) protected StringType description; /** * Image or images used to identify a location. */ - @Child(name="image", type={Attachment.class}, order=4, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "image", type = {Attachment.class}, order = 4, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Attached images", formalDefinition="Image or images used to identify a location." ) protected List image; diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Bundle.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Bundle.java index 3cce37099d8..bf527090803 100644 --- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Bundle.java +++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Bundle.java @@ -947,7 +947,7 @@ public class Bundle extends Resource implements IBaseBundle { /** * Only perform the operation if the last updated date matches. For more information, see the API section "Managing Resource Contention". */ - @Child(name="ifModifiedSince", type={InstantType.class}, order=5, min=0, max=1) + @Child(name = "ifModifiedSince", type = {InstantType.class}, order = 5, min = 0, max = 1) @Description(shortDefinition="For managing update contention", formalDefinition="Only perform the operation if the last updated date matches. For more information, see the API section 'Managing Resource Contention'." ) protected InstantType ifModifiedSince; @@ -1166,7 +1166,7 @@ public class Bundle extends Resource implements IBaseBundle { if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create BundleEntryTransactionComponent.ifModifiedSince"); else if (Configuration.doAutoCreate()) - this.ifModifiedSince = new InstantType(); // bb + this.ifModifiedSince = new InstantType(); // bb return this.ifModifiedSince; } @@ -1196,12 +1196,12 @@ public class Bundle extends Resource implements IBaseBundle { /** * @param value Only perform the operation if the last updated date matches. For more information, see the API section "Managing Resource Contention". */ - public BundleEntryTransactionComponent setIfModifiedSince(Date value) { - if (value == null) + public BundleEntryTransactionComponent setIfModifiedSince(Date value) { + if (value == null) this.ifModifiedSince = null; else { if (this.ifModifiedSince == null) - this.ifModifiedSince = new InstantType(); + this.ifModifiedSince = new InstantType(); this.ifModifiedSince.setValue(value); } return this; @@ -1262,7 +1262,7 @@ public class Bundle extends Resource implements IBaseBundle { childrenList.add(new Property("url", "uri", "A search URL for this resource that specifies how the resource is matched to an existing resource when processing a transaction (see transaction documentation).", 0, java.lang.Integer.MAX_VALUE, url)); childrenList.add(new Property("ifNoneMatch", "string", "If the ETag values match, return a 304 Not modified status. See the read/vread interaction documentation.", 0, java.lang.Integer.MAX_VALUE, ifNoneMatch)); childrenList.add(new Property("ifMatch", "string", "Only perform the operation if the Etag value matches. For more information, see the API section 'Managing Resource Contention'.", 0, java.lang.Integer.MAX_VALUE, ifMatch)); - childrenList.add(new Property("ifModifiedSince", "instant", "Only perform the operation if the last updated date matches. For more information, see the API section 'Managing Resource Contention'.", 0, java.lang.Integer.MAX_VALUE, ifModifiedSince)); + childrenList.add(new Property("ifModifiedSince", "instant", "Only perform the operation if the last updated date matches. For more information, see the API section 'Managing Resource Contention'.", 0, java.lang.Integer.MAX_VALUE, ifModifiedSince)); childrenList.add(new Property("ifNoneExist", "string", "Instruct the server not to perform the create if a specified resource already exists. For further information, see 'Conditional Create'.", 0, java.lang.Integer.MAX_VALUE, ifNoneExist)); } @@ -1330,15 +1330,15 @@ public class Bundle extends Resource implements IBaseBundle { /** * The etag for the resource, it the operation for the entry produced a versioned resource. */ - @Child(name="etag", type={StringType.class}, order=3, min=0, max=1) + @Child(name = "etag", type = {StringType.class}, order = 3, min = 0, max = 1) @Description(shortDefinition="The etag for the resource (if relevant)", formalDefinition="The etag for the resource, it the operation for the entry produced a versioned resource." ) protected StringType etag; /** * The date/time that the resource was modified on the server. */ - @Child(name="lastModified", type={InstantType.class}, order=4, min=0, max=1) - @Description(shortDefinition="Server's date time modified", formalDefinition="The date/time that the resource was modified on the server." ) + @Child(name = "lastModified", type = {InstantType.class}, order = 4, min = 0, max = 1) + @Description(shortDefinition = "Server's date time modified", formalDefinition = "The date/time that the resource was modified on the server.") protected InstantType lastModified; private static final long serialVersionUID = -1526413234L; @@ -1451,97 +1451,97 @@ public class Bundle extends Resource implements IBaseBundle { */ public StringType getEtagElement() { if (this.etag == null) - if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create BundleEntryTransactionResponseComponent.etag"); - else if (Configuration.doAutoCreate()) - this.etag = new StringType(); // bb + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create BundleEntryTransactionResponseComponent.etag"); + else if (Configuration.doAutoCreate()) + this.etag = new StringType(); // bb return this.etag; } - public boolean hasEtagElement() { - return this.etag != null && !this.etag.isEmpty(); + public boolean hasEtagElement() { + return this.etag != null && !this.etag.isEmpty(); } - public boolean hasEtag() { - return this.etag != null && !this.etag.isEmpty(); + public boolean hasEtag() { + return this.etag != null && !this.etag.isEmpty(); } /** * @param value {@link #etag} (The etag for the resource, it the operation for the entry produced a versioned resource.). This is the underlying object with id, value and extensions. The accessor "getEtag" gives direct access to the value */ - public BundleEntryTransactionResponseComponent setEtagElement(StringType value) { - this.etag = value; - return this; + public BundleEntryTransactionResponseComponent setEtagElement(StringType value) { + this.etag = value; + return this; } /** * @return The etag for the resource, it the operation for the entry produced a versioned resource. */ - public String getEtag() { - return this.etag == null ? null : this.etag.getValue(); + public String getEtag() { + return this.etag == null ? null : this.etag.getValue(); } /** * @param value The etag for the resource, it the operation for the entry produced a versioned resource. */ - public BundleEntryTransactionResponseComponent setEtag(String value) { - if (Utilities.noString(value)) - this.etag = null; - else { - if (this.etag == null) - this.etag = new StringType(); - this.etag.setValue(value); - } + public BundleEntryTransactionResponseComponent setEtag(String value) { + if (Utilities.noString(value)) + this.etag = null; + else { + if (this.etag == null) + this.etag = new StringType(); + this.etag.setValue(value); + } return this; } /** * @return {@link #lastModified} (The date/time that the resource was modified on the server.). This is the underlying object with id, value and extensions. The accessor "getLastModified" gives direct access to the value */ - public InstantType getLastModifiedElement() { - if (this.lastModified == null) - if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create BundleEntryTransactionResponseComponent.lastModified"); - else if (Configuration.doAutoCreate()) - this.lastModified = new InstantType(); // bb - return this.lastModified; + public InstantType getLastModifiedElement() { + if (this.lastModified == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create BundleEntryTransactionResponseComponent.lastModified"); + else if (Configuration.doAutoCreate()) + this.lastModified = new InstantType(); // bb + return this.lastModified; } - public boolean hasLastModifiedElement() { - return this.lastModified != null && !this.lastModified.isEmpty(); + public boolean hasLastModifiedElement() { + return this.lastModified != null && !this.lastModified.isEmpty(); } - public boolean hasLastModified() { - return this.lastModified != null && !this.lastModified.isEmpty(); + public boolean hasLastModified() { + return this.lastModified != null && !this.lastModified.isEmpty(); } /** * @param value {@link #lastModified} (The date/time that the resource was modified on the server.). This is the underlying object with id, value and extensions. The accessor "getLastModified" gives direct access to the value */ - public BundleEntryTransactionResponseComponent setLastModifiedElement(InstantType value) { - this.lastModified = value; - return this; + public BundleEntryTransactionResponseComponent setLastModifiedElement(InstantType value) { + this.lastModified = value; + return this; } /** * @return The date/time that the resource was modified on the server. */ - public Date getLastModified() { - return this.lastModified == null ? null : this.lastModified.getValue(); + public Date getLastModified() { + return this.lastModified == null ? null : this.lastModified.getValue(); } /** * @param value The date/time that the resource was modified on the server. */ - public BundleEntryTransactionResponseComponent setLastModified(Date value) { - if (value == null) - this.lastModified = null; - else { - if (this.lastModified == null) - this.lastModified = new InstantType(); - this.lastModified.setValue(value); - } - return this; + public BundleEntryTransactionResponseComponent setLastModified(Date value) { + if (value == null) + this.lastModified = null; + else { + if (this.lastModified == null) + this.lastModified = new InstantType(); + this.lastModified.setValue(value); + } + return this; } protected void listChildren(List childrenList) { @@ -1549,7 +1549,7 @@ public class Bundle extends Resource implements IBaseBundle { childrenList.add(new Property("status", "string", "The status code returned by processing this entry.", 0, java.lang.Integer.MAX_VALUE, status)); childrenList.add(new Property("location", "uri", "The location header created by processing this operation.", 0, java.lang.Integer.MAX_VALUE, location)); childrenList.add(new Property("etag", "string", "The etag for the resource, it the operation for the entry produced a versioned resource.", 0, java.lang.Integer.MAX_VALUE, etag)); - childrenList.add(new Property("lastModified", "instant", "The date/time that the resource was modified on the server.", 0, java.lang.Integer.MAX_VALUE, lastModified)); + childrenList.add(new Property("lastModified", "instant", "The date/time that the resource was modified on the server.", 0, java.lang.Integer.MAX_VALUE, lastModified)); } public BundleEntryTransactionResponseComponent copy() { @@ -1557,8 +1557,8 @@ public class Bundle extends Resource implements IBaseBundle { copyValues(dst); dst.status = status == null ? null : status.copy(); dst.location = location == null ? null : location.copy(); - dst.etag = etag == null ? null : etag.copy(); - dst.lastModified = lastModified == null ? null : lastModified.copy(); + dst.etag = etag == null ? null : etag.copy(); + dst.lastModified = lastModified == null ? null : lastModified.copy(); return dst; } @@ -1570,7 +1570,7 @@ public class Bundle extends Resource implements IBaseBundle { return false; BundleEntryTransactionResponseComponent o = (BundleEntryTransactionResponseComponent) other; return compareDeep(status, o.status, true) && compareDeep(location, o.location, true) && compareDeep(etag, o.etag, true) - && compareDeep(lastModified, o.lastModified, true); + && compareDeep(lastModified, o.lastModified, true); } @Override @@ -1581,12 +1581,12 @@ public class Bundle extends Resource implements IBaseBundle { return false; BundleEntryTransactionResponseComponent o = (BundleEntryTransactionResponseComponent) other; return compareValues(status, o.status, true) && compareValues(location, o.location, true) && compareValues(etag, o.etag, true) - && compareValues(lastModified, o.lastModified, true); + && compareValues(lastModified, o.lastModified, true); } public boolean isEmpty() { return super.isEmpty() && (status == null || status.isEmpty()) && (location == null || location.isEmpty()) - && (etag == null || etag.isEmpty()) && (lastModified == null || lastModified.isEmpty()); + && (etag == null || etag.isEmpty()) && (lastModified == null || lastModified.isEmpty()); } } @@ -1594,42 +1594,42 @@ public class Bundle extends Resource implements IBaseBundle { /** * Indicates the purpose of this bundle- how it was intended to be used. */ - @Child(name="type", type={CodeType.class}, order=0, min=1, max=1) + @Child(name = "type", type = {CodeType.class}, order = 0, min = 1, max = 1) @Description(shortDefinition="document | message | transaction | transaction-response | history | searchset | collection", formalDefinition="Indicates the purpose of this bundle- how it was intended to be used." ) protected Enumeration type; /** * The base URL for the service that provided these resources. All relative URLs are relative to this one (equivalent to xml:base). */ - @Child(name="base", type={UriType.class}, order=1, min=0, max=1) + @Child(name = "base", type = {UriType.class}, order = 1, min = 0, max = 1) @Description(shortDefinition="Stated Base URL", formalDefinition="The base URL for the service that provided these resources. All relative URLs are relative to this one (equivalent to xml:base)." ) protected UriType base; /** * If a set of search matches, this is the total number of matches for the search (as opposed to the number of results in this bundle). */ - @Child(name="total", type={IntegerType.class}, order=2, min=0, max=1) + @Child(name = "total", type = {IntegerType.class}, order = 2, min = 0, max = 1) @Description(shortDefinition="If search, the total number of matches", formalDefinition="If a set of search matches, this is the total number of matches for the search (as opposed to the number of results in this bundle)." ) protected IntegerType total; /** * A series of links that provide context to this bundle. */ - @Child(name="link", type={}, order=3, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "link", type = {}, order = 3, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Links related to this Bundle", formalDefinition="A series of links that provide context to this bundle." ) protected List link; /** * An entry in a bundle resource - will either contain a resource, or information about a resource (transactions and history only). */ - @Child(name="entry", type={}, order=4, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "entry", type = {}, order = 4, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Entry in the bundle - will have a resource, or information", formalDefinition="An entry in a bundle resource - will either contain a resource, or information about a resource (transactions and history only)." ) protected List entry; /** * XML Digital Signature - base64 encoded. */ - @Child(name="signature", type={Base64BinaryType.class}, order=5, min=0, max=1) + @Child(name = "signature", type = {Base64BinaryType.class}, order = 5, min = 0, max = 1) @Description(shortDefinition="XML Digital Signature (base64 encoded)", formalDefinition="XML Digital Signature - base64 encoded." ) protected Base64BinaryType signature; @@ -1964,8 +1964,8 @@ public class Bundle extends Resource implements IBaseBundle { public static final String SP_COMPOSITION = "composition"; @SearchParamDefinition(name="type", path="Bundle.type", description="document | message | transaction | transaction-response | history | searchset | collection", type="token" ) public static final String SP_TYPE = "type"; - @SearchParamDefinition(name="message", path="", description="The first resource in the bundle, if the bundle type is 'message' - this is a message header, and this parameter provides access to search it's contents", type="reference" ) - public static final String SP_MESSAGE = "message"; + @SearchParamDefinition(name = "message", path = "", description = "The first resource in the bundle, if the bundle type is 'message' - this is a message header, and this parameter provides access to search it's contents", type = "reference") + public static final String SP_MESSAGE = "message"; } diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/CarePlan.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/CarePlan.java index 9e0c4a4d794..003df978e4f 100644 --- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/CarePlan.java +++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/CarePlan.java @@ -1855,14 +1855,14 @@ public class CarePlan extends DomainResource { /** * This records identifiers associated with this care plan that are defined by business processed and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation). */ - @Child(name="identifier", type={Identifier.class}, order=0, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "identifier", type = {Identifier.class}, order = 0, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="External Ids for this plan", formalDefinition="This records identifiers associated with this care plan that are defined by business processed and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation)." ) protected List identifier; /** * Identifies the patient/subject whose intended care is described by the plan. */ - @Child(name="patient", type={Patient.class}, order=1, min=0, max=1) + @Child(name = "patient", type = {Patient.class}, order = 1, min = 0, max = 1) @Description(shortDefinition="Who care plan is for", formalDefinition="Identifies the patient/subject whose intended care is described by the plan." ) protected Reference patient; @@ -1874,28 +1874,28 @@ public class CarePlan extends DomainResource { /** * Indicates whether the plan is currently being acted upon, represents future intentions or is now just historical record. */ - @Child(name="status", type={CodeType.class}, order=2, min=1, max=1) + @Child(name = "status", type = {CodeType.class}, order = 2, min = 1, max = 1) @Description(shortDefinition="planned | active | completed", formalDefinition="Indicates whether the plan is currently being acted upon, represents future intentions or is now just historical record." ) protected Enumeration status; /** * Indicates when the plan did (or is intended to) come into effect and end. */ - @Child(name="period", type={Period.class}, order=3, min=0, max=1) + @Child(name = "period", type = {Period.class}, order = 3, min = 0, max = 1) @Description(shortDefinition="Time period plan covers", formalDefinition="Indicates when the plan did (or is intended to) come into effect and end." ) protected Period period; /** * Identifies the most recent date on which the plan has been revised. */ - @Child(name="modified", type={DateTimeType.class}, order=4, min=0, max=1) + @Child(name = "modified", type = {DateTimeType.class}, order = 4, min = 0, max = 1) @Description(shortDefinition="When last updated", formalDefinition="Identifies the most recent date on which the plan has been revised." ) protected DateTimeType modified; /** * Identifies the conditions/problems/concerns/diagnoses/etc. whose management and/or mitigation are handled by this plan. */ - @Child(name="concern", type={Condition.class}, order=5, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "concern", type = {Condition.class}, order = 5, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Health issues this plan addresses", formalDefinition="Identifies the conditions/problems/concerns/diagnoses/etc. whose management and/or mitigation are handled by this plan." ) protected List concern; /** @@ -1907,28 +1907,28 @@ public class CarePlan extends DomainResource { /** * Identifies all people and organizations who are expected to be involved in the care envisioned by this plan. */ - @Child(name="participant", type={}, order=6, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "participant", type = {}, order = 6, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Who's involved in plan?", formalDefinition="Identifies all people and organizations who are expected to be involved in the care envisioned by this plan." ) protected List participant; /** * Describes the intended objective(s) of carrying out the Care Plan. */ - @Child(name="goal", type={}, order=7, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "goal", type = {}, order = 7, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Desired outcome of plan", formalDefinition="Describes the intended objective(s) of carrying out the Care Plan." ) protected List goal; /** * Identifies a planned action to occur as part of the plan. For example, a medication to be used, lab tests to perform, self-monitoring, education, etc. */ - @Child(name="activity", type={}, order=8, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "activity", type = {}, order = 8, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Action to occur as part of plan", formalDefinition="Identifies a planned action to occur as part of the plan. For example, a medication to be used, lab tests to perform, self-monitoring, education, etc." ) protected List activity; /** * General notes about the care plan not covered elsewhere. */ - @Child(name="notes", type={StringType.class}, order=9, min=0, max=1) + @Child(name = "notes", type = {StringType.class}, order = 9, min = 0, max = 1) @Description(shortDefinition="Comments about the plan", formalDefinition="General notes about the care plan not covered elsewhere." ) protected StringType notes; @@ -2416,18 +2416,18 @@ public class CarePlan extends DomainResource { return ResourceType.CarePlan; } - @SearchParamDefinition(name="date", path="CarePlan.period", description="Time period plan covers", type="date" ) - public static final String SP_DATE = "date"; + @SearchParamDefinition(name = "date", path = "CarePlan.period", description = "Time period plan covers", type = "date") + public static final String SP_DATE = "date"; @SearchParamDefinition(name="activitycode", path="CarePlan.activity.simple.code", description="Detail type of activity", type="token" ) public static final String SP_ACTIVITYCODE = "activitycode"; @SearchParamDefinition(name="activitydate", path="CarePlan.activity.simple.scheduled[x]", description="Specified date occurs within period specified by CarePlan.activity.timingSchedule", type="date" ) public static final String SP_ACTIVITYDATE = "activitydate"; - @SearchParamDefinition(name="activitydetail", path="CarePlan.activity.detail", description="Activity details defined in specific resource", type="reference" ) - public static final String SP_ACTIVITYDETAIL = "activitydetail"; - @SearchParamDefinition(name="condition", path="CarePlan.concern", description="Health issues this plan addresses", type="reference" ) - public static final String SP_CONDITION = "condition"; - @SearchParamDefinition(name="patient", path="CarePlan.patient", description="Who care plan is for", type="reference" ) - public static final String SP_PATIENT = "patient"; + @SearchParamDefinition(name = "activitydetail", path = "CarePlan.activity.detail", description = "Activity details defined in specific resource", type = "reference") + public static final String SP_ACTIVITYDETAIL = "activitydetail"; + @SearchParamDefinition(name = "condition", path = "CarePlan.concern", description = "Health issues this plan addresses", type = "reference") + public static final String SP_CONDITION = "condition"; + @SearchParamDefinition(name = "patient", path = "CarePlan.patient", description = "Who care plan is for", type = "reference") + public static final String SP_PATIENT = "patient"; @SearchParamDefinition(name="participant", path="CarePlan.participant.member", description="Who is involved", type="reference" ) public static final String SP_PARTICIPANT = "participant"; diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/CarePlan2.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/CarePlan2.java index 2f67449bc2d..7addcd6ea0f 100644 --- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/CarePlan2.java +++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/CarePlan2.java @@ -270,14 +270,14 @@ public class CarePlan2 extends DomainResource { /** * This records identifiers associated with this care plan that are defined by business processed and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation). */ - @Child(name="identifier", type={Identifier.class}, order=0, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "identifier", type = {Identifier.class}, order = 0, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="External Ids for this plan", formalDefinition="This records identifiers associated with this care plan that are defined by business processed and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation)." ) protected List identifier; /** * Identifies the patient/subject whose intended care is described by the plan. */ - @Child(name="patient", type={Patient.class}, order=1, min=0, max=1) + @Child(name = "patient", type = {Patient.class}, order = 1, min = 0, max = 1) @Description(shortDefinition="Who care plan is for", formalDefinition="Identifies the patient/subject whose intended care is described by the plan." ) protected Reference patient; @@ -289,28 +289,28 @@ public class CarePlan2 extends DomainResource { /** * Indicates whether the plan is currently being acted upon, represents future intentions or is now just historical record. */ - @Child(name="status", type={CodeType.class}, order=2, min=1, max=1) + @Child(name = "status", type = {CodeType.class}, order = 2, min = 1, max = 1) @Description(shortDefinition="planned | active | completed", formalDefinition="Indicates whether the plan is currently being acted upon, represents future intentions or is now just historical record." ) protected Enumeration status; /** * Indicates when the plan did (or is intended to) come into effect and end. */ - @Child(name="period", type={Period.class}, order=3, min=0, max=1) + @Child(name = "period", type = {Period.class}, order = 3, min = 0, max = 1) @Description(shortDefinition="Time period plan covers", formalDefinition="Indicates when the plan did (or is intended to) come into effect and end." ) protected Period period; /** * Identifies the most recent date on which the plan has been revised. */ - @Child(name="modified", type={DateTimeType.class}, order=4, min=0, max=1) + @Child(name = "modified", type = {DateTimeType.class}, order = 4, min = 0, max = 1) @Description(shortDefinition="When last updated", formalDefinition="Identifies the most recent date on which the plan has been revised." ) protected DateTimeType modified; /** * Identifies the conditions/problems/concerns/diagnoses/etc. whose management and/or mitigation are handled by this plan. */ - @Child(name="concern", type={Condition.class}, order=5, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "concern", type = {Condition.class}, order = 5, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Health issues this plan addresses", formalDefinition="Identifies the conditions/problems/concerns/diagnoses/etc. whose management and/or mitigation are handled by this plan." ) protected List concern; /** @@ -322,21 +322,21 @@ public class CarePlan2 extends DomainResource { /** * Identifies all people and organizations who are expected to be involved in the care envisioned by this plan. */ - @Child(name="participant", type={}, order=6, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "participant", type = {}, order = 6, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Who's involved in plan?", formalDefinition="Identifies all people and organizations who are expected to be involved in the care envisioned by this plan." ) protected List participant; /** * General notes about the care plan not covered elsewhere. */ - @Child(name="notes", type={StringType.class}, order=7, min=0, max=1) + @Child(name = "notes", type = {StringType.class}, order = 7, min = 0, max = 1) @Description(shortDefinition="Comments about the plan", formalDefinition="General notes about the care plan not covered elsewhere." ) protected StringType notes; /** * Describes the intended objective(s) of carrying out the Care Plan. */ - @Child(name="goal", type={Goal.class}, order=8, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "goal", type = {Goal.class}, order = 8, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="CarePlan Goal", formalDefinition="Describes the intended objective(s) of carrying out the Care Plan." ) protected List goal; /** @@ -348,7 +348,7 @@ public class CarePlan2 extends DomainResource { /** * Identifies an action that is planned to happen as part of the careplan. For example, a medication to be used, lab tests to perform, self-monitoring, education, etc. */ - @Child(name="activity", type={ProcedureRequest.class, MedicationPrescription.class, DiagnosticOrder.class, ReferralRequest.class, CommunicationRequest.class, NutritionOrder.class}, order=9, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "activity", type = {ProcedureRequest.class, MedicationPrescription.class, DiagnosticOrder.class, ReferralRequest.class, CommunicationRequest.class, NutritionOrder.class}, order = 9, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="CarePlan Activity", formalDefinition="Identifies an action that is planned to happen as part of the careplan. For example, a medication to be used, lab tests to perform, self-monitoring, education, etc." ) protected List activity; /** @@ -871,11 +871,11 @@ public class CarePlan2 extends DomainResource { return ResourceType.CarePlan2; } - @SearchParamDefinition(name="date", path="CarePlan2.period", description="Time period plan covers", type="date" ) + @SearchParamDefinition(name = "date", path = "CarePlan2.period", description = "Time period plan covers", type = "date") public static final String SP_DATE = "date"; @SearchParamDefinition(name="condition", path="CarePlan2.concern", description="Health issues this plan addresses", type="reference" ) public static final String SP_CONDITION = "condition"; - @SearchParamDefinition(name="patient", path="CarePlan2.patient", description="Who care plan is for", type="reference" ) + @SearchParamDefinition(name = "patient", path = "CarePlan2.patient", description = "Who care plan is for", type = "reference") public static final String SP_PATIENT = "patient"; @SearchParamDefinition(name="participant", path="CarePlan2.participant.member", description="Who is involved", type="reference" ) public static final String SP_PARTICIPANT = "participant"; diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/ClaimResponse.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/ClaimResponse.java index 9c83c26786f..28b71852adc 100644 --- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/ClaimResponse.java +++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/ClaimResponse.java @@ -2536,14 +2536,14 @@ public class ClaimResponse extends DomainResource { /** * The Response Business Identifier. */ - @Child(name="identifier", type={Identifier.class}, order=0, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "identifier", type = {Identifier.class}, order = 0, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Response number", formalDefinition="The Response Business Identifier." ) protected List identifier; /** * Original request resource referrence. */ - @Child(name="request", type={OralHealthClaim.class, PharmacyClaim.class, VisionClaim.class, ProfessionalClaim.class, InstitutionalClaim.class}, order=1, min=0, max=1) + @Child(name = "request", type = {OralHealthClaim.class, PharmacyClaim.class, VisionClaim.class, ProfessionalClaim.class, InstitutionalClaim.class}, order = 1, min = 0, max = 1) @Description(shortDefinition="Id of resource triggering adjudication", formalDefinition="Original request resource referrence." ) protected Reference request; @@ -2555,28 +2555,28 @@ public class ClaimResponse extends DomainResource { /** * The version of the style of resource contents. This should be mapped to the allowable profiles for this and supporting resources. */ - @Child(name="ruleset", type={Coding.class}, order=2, min=0, max=1) + @Child(name = "ruleset", type = {Coding.class}, order = 2, min = 0, max = 1) @Description(shortDefinition="Resource version", formalDefinition="The version of the style of resource contents. This should be mapped to the allowable profiles for this and supporting resources." ) protected Coding ruleset; /** * The style (standard) and version of the original material which was converted into this resource. */ - @Child(name="originalRuleset", type={Coding.class}, order=3, min=0, max=1) + @Child(name = "originalRuleset", type = {Coding.class}, order = 3, min = 0, max = 1) @Description(shortDefinition="Original version", formalDefinition="The style (standard) and version of the original material which was converted into this resource." ) protected Coding originalRuleset; /** * The date when the enclosed suite of services were performed or completed. */ - @Child(name="created", type={DateTimeType.class}, order=4, min=0, max=1) + @Child(name = "created", type = {DateTimeType.class}, order = 4, min = 0, max = 1) @Description(shortDefinition="Creation date", formalDefinition="The date when the enclosed suite of services were performed or completed." ) protected DateTimeType created; /** * The Insurer who produced this adjudicated response. */ - @Child(name="organization", type={Organization.class}, order=5, min=0, max=1) + @Child(name = "organization", type = {Organization.class}, order = 5, min = 0, max = 1) @Description(shortDefinition="Insurer", formalDefinition="The Insurer who produced this adjudicated response." ) protected Reference organization; @@ -2588,7 +2588,7 @@ public class ClaimResponse extends DomainResource { /** * The practitioner who is responsible for the services rendered to the patient. */ - @Child(name="requestProvider", type={Practitioner.class}, order=6, min=0, max=1) + @Child(name = "requestProvider", type = {Practitioner.class}, order = 6, min = 0, max = 1) @Description(shortDefinition="Responsible practitioner", formalDefinition="The practitioner who is responsible for the services rendered to the patient." ) protected Reference requestProvider; @@ -2600,7 +2600,7 @@ public class ClaimResponse extends DomainResource { /** * The organization which is responsible for the services rendered to the patient. */ - @Child(name="requestOrganization", type={Organization.class}, order=7, min=0, max=1) + @Child(name = "requestOrganization", type = {Organization.class}, order = 7, min = 0, max = 1) @Description(shortDefinition="Responsible organization", formalDefinition="The organization which is responsible for the services rendered to the patient." ) protected Reference requestOrganization; @@ -2612,119 +2612,119 @@ public class ClaimResponse extends DomainResource { /** * Transaction status: error, complete. */ - @Child(name="outcome", type={CodeType.class}, order=8, min=0, max=1) + @Child(name = "outcome", type = {CodeType.class}, order = 8, min = 0, max = 1) @Description(shortDefinition="complete | error", formalDefinition="Transaction status: error, complete." ) protected Enumeration outcome; /** * A description of the status of the adjudication. */ - @Child(name="disposition", type={StringType.class}, order=9, min=0, max=1) + @Child(name = "disposition", type = {StringType.class}, order = 9, min = 0, max = 1) @Description(shortDefinition="Disposition Message", formalDefinition="A description of the status of the adjudication." ) protected StringType disposition; /** * Party to be reimbursed: Subscriber, provider, other. */ - @Child(name="payeeType", type={Coding.class}, order=10, min=0, max=1) + @Child(name = "payeeType", type = {Coding.class}, order = 10, min = 0, max = 1) @Description(shortDefinition="Party to be paid any benefits payable", formalDefinition="Party to be reimbursed: Subscriber, provider, other." ) protected Coding payeeType; /** * The first tier service adjudications for submitted services. */ - @Child(name="item", type={}, order=11, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "item", type = {}, order = 11, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Line items", formalDefinition="The first tier service adjudications for submitted services." ) protected List item; /** * The first tier service adjudications for payor added services. */ - @Child(name="additem", type={}, order=12, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "additem", type = {}, order = 12, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Insurer added line items", formalDefinition="The first tier service adjudications for payor added services." ) protected List additem; /** * Mutually exclusive with Services Provided (Item). */ - @Child(name="error", type={}, order=13, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "error", type = {}, order = 13, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Processing errors", formalDefinition="Mutually exclusive with Services Provided (Item)." ) protected List error; /** * The total cost of the services reported. */ - @Child(name="totalCost", type={Money.class}, order=14, min=0, max=1) + @Child(name = "totalCost", type = {Money.class}, order = 14, min = 0, max = 1) @Description(shortDefinition="Total Cost of service from the Claim", formalDefinition="The total cost of the services reported." ) protected Money totalCost; /** * The amount of deductable applied which was not allocated to any particular service line. */ - @Child(name="unallocDeductable", type={Money.class}, order=15, min=0, max=1) + @Child(name = "unallocDeductable", type = {Money.class}, order = 15, min = 0, max = 1) @Description(shortDefinition="Unallocated deductable", formalDefinition="The amount of deductable applied which was not allocated to any particular service line." ) protected Money unallocDeductable; /** * Total amount of benefit payable (Equal to sum of the Benefit amounts from all detail lines and additions less the Unallocated Deductable). */ - @Child(name="totalBenefit", type={Money.class}, order=16, min=0, max=1) + @Child(name = "totalBenefit", type = {Money.class}, order = 16, min = 0, max = 1) @Description(shortDefinition="Total benefit payable for the Claim", formalDefinition="Total amount of benefit payable (Equal to sum of the Benefit amounts from all detail lines and additions less the Unallocated Deductable)." ) protected Money totalBenefit; /** * Adjustment to the payment of this transaction which is not related to adjudication of this transaction. */ - @Child(name="paymentAdjustment", type={Money.class}, order=17, min=0, max=1) + @Child(name = "paymentAdjustment", type = {Money.class}, order = 17, min = 0, max = 1) @Description(shortDefinition="Payment adjustment for non-Claim issues", formalDefinition="Adjustment to the payment of this transaction which is not related to adjudication of this transaction." ) protected Money paymentAdjustment; /** * Reason for the payment adjustment. */ - @Child(name="paymentAdjustmentReason", type={Coding.class}, order=18, min=0, max=1) + @Child(name = "paymentAdjustmentReason", type = {Coding.class}, order = 18, min = 0, max = 1) @Description(shortDefinition="Reason for Payment adjustment", formalDefinition="Reason for the payment adjustment." ) protected Coding paymentAdjustmentReason; /** * Estimated payment data. */ - @Child(name="paymentDate", type={DateType.class}, order=19, min=0, max=1) + @Child(name = "paymentDate", type = {DateType.class}, order = 19, min = 0, max = 1) @Description(shortDefinition="Expected data of Payment", formalDefinition="Estimated payment data." ) protected DateType paymentDate; /** * Payable less any payment adjustment. */ - @Child(name="paymentAmount", type={Money.class}, order=20, min=0, max=1) + @Child(name = "paymentAmount", type = {Money.class}, order = 20, min = 0, max = 1) @Description(shortDefinition="Payment amount", formalDefinition="Payable less any payment adjustment." ) protected Money paymentAmount; /** * Payment identifer. */ - @Child(name="paymentRef", type={Identifier.class}, order=21, min=0, max=1) + @Child(name = "paymentRef", type = {Identifier.class}, order = 21, min = 0, max = 1) @Description(shortDefinition="Payment identifier", formalDefinition="Payment identifer." ) protected Identifier paymentRef; /** * Status of funds reservation (For provider, for Patient, None). */ - @Child(name="reserved", type={Coding.class}, order=22, min=0, max=1) + @Child(name = "reserved", type = {Coding.class}, order = 22, min = 0, max = 1) @Description(shortDefinition="Funds reserved status", formalDefinition="Status of funds reservation (For provider, for Patient, None)." ) protected Coding reserved; /** * The form to be used for printing the content. */ - @Child(name="form", type={Coding.class}, order=23, min=0, max=1) + @Child(name = "form", type = {Coding.class}, order = 23, min = 0, max = 1) @Description(shortDefinition="Printed Form Identifier", formalDefinition="The form to be used for printing the content." ) protected Coding form; /** * Note text. */ - @Child(name="note", type={}, order=24, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "note", type = {}, order = 24, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Processing notes", formalDefinition="Note text." ) protected List note; diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/ClinicalAssessment.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/ClinicalAssessment.java index 2ccfc334015..de77414476f 100644 --- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/ClinicalAssessment.java +++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/ClinicalAssessment.java @@ -470,7 +470,7 @@ public class ClinicalAssessment extends DomainResource { /** * The patient being asssesed. */ - @Child(name="patient", type={Patient.class}, order=0, min=1, max=1) + @Child(name = "patient", type = {Patient.class}, order = 0, min = 1, max = 1) @Description(shortDefinition="The patient being asssesed", formalDefinition="The patient being asssesed." ) protected Reference patient; @@ -482,7 +482,7 @@ public class ClinicalAssessment extends DomainResource { /** * The clinicial performing the assessment. */ - @Child(name="assessor", type={Practitioner.class}, order=1, min=1, max=1) + @Child(name = "assessor", type = {Practitioner.class}, order = 1, min = 1, max = 1) @Description(shortDefinition="The clinicial performing the assessment", formalDefinition="The clinicial performing the assessment." ) protected Reference assessor; @@ -494,21 +494,21 @@ public class ClinicalAssessment extends DomainResource { /** * The point in time at which the assessment was concluded (not when it was recorded). */ - @Child(name="date", type={DateTimeType.class}, order=2, min=1, max=1) + @Child(name = "date", type = {DateTimeType.class}, order = 2, min = 1, max = 1) @Description(shortDefinition="When the assessment occurred", formalDefinition="The point in time at which the assessment was concluded (not when it was recorded)." ) protected DateTimeType date; /** * A summary of the context and/or cause of the assessment - why / where was it peformed, and what patient events/sstatus prompted it. */ - @Child(name="description", type={StringType.class}, order=3, min=0, max=1) + @Child(name = "description", type = {StringType.class}, order = 3, min = 0, max = 1) @Description(shortDefinition="Why/how the assessment was performed", formalDefinition="A summary of the context and/or cause of the assessment - why / where was it peformed, and what patient events/sstatus prompted it." ) protected StringType description; /** * A reference to the last assesment that was conducted bon this patient. Assessments are often/usually ongoing in nature; a care provider (practitioner or team) will make new assessments on an ongoing basis as new data arises or the patient's conditions changes. */ - @Child(name="previous", type={ClinicalAssessment.class}, order=4, min=0, max=1) + @Child(name = "previous", type = {ClinicalAssessment.class}, order = 4, min = 0, max = 1) @Description(shortDefinition="Reference to last assessment", formalDefinition="A reference to the last assesment that was conducted bon this patient. Assessments are often/usually ongoing in nature; a care provider (practitioner or team) will make new assessments on an ongoing basis as new data arises or the patient's conditions changes." ) protected Reference previous; @@ -520,7 +520,7 @@ public class ClinicalAssessment extends DomainResource { /** * This a list of the general problems/conditions for a patient. */ - @Child(name="problem", type={Condition.class, AllergyIntolerance.class}, order=5, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "problem", type = {Condition.class, AllergyIntolerance.class}, order = 5, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="General assessment of patient state", formalDefinition="This a list of the general problems/conditions for a patient." ) protected List problem; /** @@ -532,7 +532,7 @@ public class ClinicalAssessment extends DomainResource { /** * A reference to a specific care plan that prompted this assessment. The care plan provides further context for the assessment. */ - @Child(name="careplan", type={CarePlan.class}, order=6, min=0, max=1) + @Child(name = "careplan", type = {CarePlan.class}, order = 6, min = 0, max = 1) @Description(shortDefinition="A specific careplan that prompted this assessment", formalDefinition="A reference to a specific care plan that prompted this assessment. The care plan provides further context for the assessment." ) protected Reference careplan; @@ -544,7 +544,7 @@ public class ClinicalAssessment extends DomainResource { /** * A reference to a specific care plan that prompted this assessment. The referral request may provide further context for the assessment. */ - @Child(name="referral", type={ReferralRequest.class}, order=7, min=0, max=1) + @Child(name = "referral", type = {ReferralRequest.class}, order = 7, min = 0, max = 1) @Description(shortDefinition="A specific referral that lead to this assessment", formalDefinition="A reference to a specific care plan that prompted this assessment. The referral request may provide further context for the assessment." ) protected Reference referral; @@ -556,56 +556,56 @@ public class ClinicalAssessment extends DomainResource { /** * One or more sets of investigations (signs, symptions, etc). The actual grouping of investigations vary greatly depending on the type and context of the assessment. These investigations may include data generated during the assessment process, or data previously generated and recorded that is pertinent to the outcomes. */ - @Child(name="investigations", type={}, order=8, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "investigations", type = {}, order = 8, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="One or more sets of investigations (signs, symptions, etc)", formalDefinition="One or more sets of investigations (signs, symptions, etc). The actual grouping of investigations vary greatly depending on the type and context of the assessment. These investigations may include data generated during the assessment process, or data previously generated and recorded that is pertinent to the outcomes." ) protected List investigations; /** * Reference to a specific published clinical protocol that was followed during this assessment, and/or that provides evidence in support of the diagnosis. */ - @Child(name="protocol", type={UriType.class}, order=9, min=0, max=1) + @Child(name = "protocol", type = {UriType.class}, order = 9, min = 0, max = 1) @Description(shortDefinition="Clinical Protocol followed", formalDefinition="Reference to a specific published clinical protocol that was followed during this assessment, and/or that provides evidence in support of the diagnosis." ) protected UriType protocol; /** * A text summary of the investigations and the diagnosis. */ - @Child(name="summary", type={StringType.class}, order=10, min=0, max=1) + @Child(name = "summary", type = {StringType.class}, order = 10, min = 0, max = 1) @Description(shortDefinition="Summary of the assessment", formalDefinition="A text summary of the investigations and the diagnosis." ) protected StringType summary; /** * An specific diagnosis that was considered likely or relevant to ongoing treatment. */ - @Child(name="diagnosis", type={}, order=11, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "diagnosis", type = {}, order = 11, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Possible or likely diagnosis", formalDefinition="An specific diagnosis that was considered likely or relevant to ongoing treatment." ) protected List diagnosis; /** * Diagnoses/conditions resolved since the last assessment. */ - @Child(name="resolved", type={CodeableConcept.class}, order=12, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "resolved", type = {CodeableConcept.class}, order = 12, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Diagnosies/conditions resolved since previous assessment", formalDefinition="Diagnoses/conditions resolved since the last assessment." ) protected List resolved; /** * Diagnosis considered not possible. */ - @Child(name="ruledOut", type={}, order=13, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "ruledOut", type = {}, order = 13, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Diagnosis considered not possible", formalDefinition="Diagnosis considered not possible." ) protected List ruledOut; /** * Estimate of likely outcome. */ - @Child(name="prognosis", type={StringType.class}, order=14, min=0, max=1) + @Child(name = "prognosis", type = {StringType.class}, order = 14, min = 0, max = 1) @Description(shortDefinition="Estimate of likely outcome", formalDefinition="Estimate of likely outcome." ) protected StringType prognosis; /** * Plan of action after assessment. */ - @Child(name="plan", type={CarePlan.class}, order=15, min=0, max=1) + @Child(name = "plan", type = {CarePlan.class}, order = 15, min = 0, max = 1) @Description(shortDefinition="Plan of action after assessment", formalDefinition="Plan of action after assessment." ) protected Reference plan; @@ -617,7 +617,7 @@ public class ClinicalAssessment extends DomainResource { /** * Actions taken during assessment. */ - @Child(name="action", type={ReferralRequest.class, ProcedureRequest.class, Procedure.class, MedicationPrescription.class, DiagnosticOrder.class, NutritionOrder.class, Supply.class, Appointment.class}, order=16, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "action", type = {ReferralRequest.class, ProcedureRequest.class, Procedure.class, MedicationPrescription.class, DiagnosticOrder.class, NutritionOrder.class, Supply.class, Appointment.class}, order = 16, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Actions taken during assessment", formalDefinition="Actions taken during assessment." ) protected List action; /** @@ -1457,29 +1457,29 @@ public class ClinicalAssessment extends DomainResource { @SearchParamDefinition(name="date", path="ClinicalAssessment.date", description="When the assessment occurred", type="date" ) public static final String SP_DATE = "date"; - @SearchParamDefinition(name="previous", path="ClinicalAssessment.previous", description="Reference to last assessment", type="reference" ) + @SearchParamDefinition(name = "previous", path = "ClinicalAssessment.previous", description = "Reference to last assessment", type = "reference") public static final String SP_PREVIOUS = "previous"; - @SearchParamDefinition(name="assessor", path="ClinicalAssessment.assessor", description="The clinicial performing the assessment", type="reference" ) + @SearchParamDefinition(name = "assessor", path = "ClinicalAssessment.assessor", description = "The clinicial performing the assessment", type = "reference") public static final String SP_ASSESSOR = "assessor"; @SearchParamDefinition(name="careplan", path="ClinicalAssessment.careplan", description="A specific careplan that prompted this assessment", type="reference" ) public static final String SP_CAREPLAN = "careplan"; - @SearchParamDefinition(name="diagnosis", path="ClinicalAssessment.diagnosis.item", description="Specific text or code for diagnosis", type="token" ) + @SearchParamDefinition(name = "diagnosis", path = "ClinicalAssessment.diagnosis.item", description = "Specific text or code for diagnosis", type = "token") public static final String SP_DIAGNOSIS = "diagnosis"; @SearchParamDefinition(name="ruledout", path="ClinicalAssessment.ruledOut.item", description="Specific text of code for diagnosis", type="token" ) public static final String SP_RULEDOUT = "ruledout"; - @SearchParamDefinition(name="problem", path="ClinicalAssessment.problem", description="General assessment of patient state", type="reference" ) + @SearchParamDefinition(name = "problem", path = "ClinicalAssessment.problem", description = "General assessment of patient state", type = "reference") public static final String SP_PROBLEM = "problem"; - @SearchParamDefinition(name="referral", path="ClinicalAssessment.referral", description="A specific referral that lead to this assessment", type="reference" ) + @SearchParamDefinition(name = "referral", path = "ClinicalAssessment.referral", description = "A specific referral that lead to this assessment", type = "reference") public static final String SP_REFERRAL = "referral"; @SearchParamDefinition(name="patient", path="ClinicalAssessment.patient", description="The patient being asssesed", type="reference" ) public static final String SP_PATIENT = "patient"; @SearchParamDefinition(name="investigation", path="ClinicalAssessment.investigations.item", description="Record of a specific investigation", type="reference" ) public static final String SP_INVESTIGATION = "investigation"; - @SearchParamDefinition(name="action", path="ClinicalAssessment.action", description="Actions taken during assessment", type="reference" ) + @SearchParamDefinition(name = "action", path = "ClinicalAssessment.action", description = "Actions taken during assessment", type = "reference") public static final String SP_ACTION = "action"; - @SearchParamDefinition(name="plan", path="ClinicalAssessment.plan", description="Plan of action after assessment", type="reference" ) + @SearchParamDefinition(name = "plan", path = "ClinicalAssessment.plan", description = "Plan of action after assessment", type = "reference") public static final String SP_PLAN = "plan"; - @SearchParamDefinition(name="resolved", path="ClinicalAssessment.resolved", description="Diagnosies/conditions resolved since previous assessment", type="token" ) + @SearchParamDefinition(name = "resolved", path = "ClinicalAssessment.resolved", description = "Diagnosies/conditions resolved since previous assessment", type = "token") public static final String SP_RESOLVED = "resolved"; } diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/CodeType.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/CodeType.java index 3e11dcd1144..14322f56ad6 100644 --- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/CodeType.java +++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/CodeType.java @@ -35,7 +35,7 @@ import org.hl7.fhir.instance.model.annotations.DatatypeDef; /** * Primitive type "code" in FHIR, when not bound to an enumerated list of codes */ -@DatatypeDef(name="code") +@DatatypeDef(name = "code") public class CodeType extends PrimitiveType implements Comparable { private static final long serialVersionUID = 3L; diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/CodeableConcept.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/CodeableConcept.java index 4a205bf6450..41cceda235e 100644 --- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/CodeableConcept.java +++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/CodeableConcept.java @@ -41,19 +41,19 @@ import org.hl7.fhir.instance.model.annotations.DatatypeDef; * A concept that may be defined by a formal reference to a terminology or ontology or may be provided by text. */ @DatatypeDef(name="CodeableConcept") -public class CodeableConcept extends Type implements ICompositeType { +public class CodeableConcept extends Type implements ICompositeType { /** * A reference to a code defined by a terminology system. */ - @Child(name="coding", type={Coding.class}, order=0, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "coding", type = {Coding.class}, order = 0, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Code defined by a terminology system", formalDefinition="A reference to a code defined by a terminology system." ) protected List coding; /** * A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user. */ - @Child(name="text", type={StringType.class}, order=1, min=0, max=1) + @Child(name = "text", type = {StringType.class}, order = 1, min = 0, max = 1) @Description(shortDefinition="Plain text representation of the concept", formalDefinition="A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user." ) protected StringType text; diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Coding.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Coding.java index 6361030272a..5001695b79f 100644 --- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Coding.java +++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Coding.java @@ -47,42 +47,42 @@ public class Coding extends Type implements ICoding, ICompositeType { /** * The identification of the code system that defines the meaning of the symbol in the code. */ - @Child(name="system", type={UriType.class}, order=0, min=0, max=1) + @Child(name = "system", type = {UriType.class}, order = 0, min = 0, max = 1) @Description(shortDefinition="Identity of the terminology system", formalDefinition="The identification of the code system that defines the meaning of the symbol in the code." ) protected UriType system; /** * The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured. and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged. */ - @Child(name="version", type={StringType.class}, order=1, min=0, max=1) + @Child(name = "version", type = {StringType.class}, order = 1, min = 0, max = 1) @Description(shortDefinition="Version of the system - if relevant", formalDefinition="The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured. and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged." ) protected StringType version; /** * A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination). */ - @Child(name="code", type={CodeType.class}, order=2, min=0, max=1) + @Child(name = "code", type = {CodeType.class}, order = 2, min = 0, max = 1) @Description(shortDefinition="Symbol in syntax defined by the system", formalDefinition="A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination)." ) protected CodeType code; /** * A representation of the meaning of the code in the system, following the rules of the system. */ - @Child(name="display", type={StringType.class}, order=3, min=0, max=1) + @Child(name = "display", type = {StringType.class}, order = 3, min = 0, max = 1) @Description(shortDefinition="Representation defined by the system", formalDefinition="A representation of the meaning of the code in the system, following the rules of the system." ) protected StringType display; /** * Indicates that this code was chosen by a user directly - i.e. off a pick list of available items (codes or displays). */ - @Child(name="primary", type={BooleanType.class}, order=4, min=0, max=1) + @Child(name = "primary", type = {BooleanType.class}, order = 4, min = 0, max = 1) @Description(shortDefinition="If this code was chosen directly by the user", formalDefinition="Indicates that this code was chosen by a user directly - i.e. off a pick list of available items (codes or displays)." ) protected BooleanType primary; /** * The set of possible coded values this coding was chosen from or constrained by. */ - @Child(name="valueSet", type={ValueSet.class}, order=5, min=0, max=1) + @Child(name = "valueSet", type = {ValueSet.class}, order = 5, min = 0, max = 1) @Description(shortDefinition="Set this coding was chosen from", formalDefinition="The set of possible coded values this coding was chosen from or constrained by." ) protected Reference valueSet; diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Communication.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Communication.java index 98017f6b27f..24f7e319466 100644 --- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Communication.java +++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Communication.java @@ -266,21 +266,21 @@ public class Communication extends DomainResource { /** * Identifiers associated with this Communication that are defined by business processes and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation). */ - @Child(name="identifier", type={Identifier.class}, order=0, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "identifier", type = {Identifier.class}, order = 0, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Unique identifier", formalDefinition="Identifiers associated with this Communication that are defined by business processes and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation)." ) protected List identifier; /** * The type of message such as alert, notification, reminder, instruction, etc. */ - @Child(name="category", type={CodeableConcept.class}, order=1, min=0, max=1) + @Child(name = "category", type = {CodeableConcept.class}, order = 1, min = 0, max = 1) @Description(shortDefinition="Message category", formalDefinition="The type of message such as alert, notification, reminder, instruction, etc." ) protected CodeableConcept category; /** * The entity (e.g., person, organization, clinical information system, or device) which is the source of the communication. */ - @Child(name="sender", type={Patient.class, Practitioner.class, Device.class, RelatedPerson.class, Organization.class}, order=2, min=0, max=1) + @Child(name = "sender", type = {Patient.class, Practitioner.class, Device.class, RelatedPerson.class, Organization.class}, order = 2, min = 0, max = 1) @Description(shortDefinition="Message sender", formalDefinition="The entity (e.g., person, organization, clinical information system, or device) which is the source of the communication." ) protected Reference sender; @@ -292,7 +292,7 @@ public class Communication extends DomainResource { /** * The entity (e.g., person, organization, clinical information system, or device) which is the target of the communication. */ - @Child(name="recipient", type={Patient.class, Device.class, RelatedPerson.class, Practitioner.class}, order=3, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "recipient", type = {Patient.class, Device.class, RelatedPerson.class, Practitioner.class}, order = 3, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Message recipient", formalDefinition="The entity (e.g., person, organization, clinical information system, or device) which is the target of the communication." ) protected List recipient; /** @@ -304,28 +304,28 @@ public class Communication extends DomainResource { /** * Text, attachment(s), or resource(s) to be communicated to the recipient. */ - @Child(name="payload", type={}, order=4, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "payload", type = {}, order = 4, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Message payload", formalDefinition="Text, attachment(s), or resource(s) to be communicated to the recipient." ) protected List payload; /** * The communication medium, e.g., email, fax. */ - @Child(name="medium", type={CodeableConcept.class}, order=5, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "medium", type = {CodeableConcept.class}, order = 5, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Communication medium", formalDefinition="The communication medium, e.g., email, fax." ) protected List medium; /** * The status of the transmission. */ - @Child(name="status", type={CodeType.class}, order=6, min=0, max=1) + @Child(name = "status", type = {CodeType.class}, order = 6, min = 0, max = 1) @Description(shortDefinition="in-progress | completed | suspended | rejected | failed", formalDefinition="The status of the transmission." ) protected Enumeration status; /** * The encounter within which the communication was sent. */ - @Child(name="encounter", type={Encounter.class}, order=7, min=0, max=1) + @Child(name = "encounter", type = {Encounter.class}, order = 7, min = 0, max = 1) @Description(shortDefinition="Encounter leading to message", formalDefinition="The encounter within which the communication was sent." ) protected Reference encounter; @@ -337,28 +337,28 @@ public class Communication extends DomainResource { /** * The time when this communication was sent. */ - @Child(name="sent", type={DateTimeType.class}, order=8, min=0, max=1) + @Child(name = "sent", type = {DateTimeType.class}, order = 8, min = 0, max = 1) @Description(shortDefinition="When sent", formalDefinition="The time when this communication was sent." ) protected DateTimeType sent; /** * The time when this communication arrived at the destination. */ - @Child(name="received", type={DateTimeType.class}, order=9, min=0, max=1) + @Child(name = "received", type = {DateTimeType.class}, order = 9, min = 0, max = 1) @Description(shortDefinition="When received", formalDefinition="The time when this communication arrived at the destination." ) protected DateTimeType received; /** * The reason or justification for the communication. */ - @Child(name="reason", type={CodeableConcept.class}, order=10, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "reason", type = {CodeableConcept.class}, order = 10, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Indication for message", formalDefinition="The reason or justification for the communication." ) protected List reason; /** * The patient who is the focus of this communication. */ - @Child(name="subject", type={Patient.class}, order=11, min=0, max=1) + @Child(name = "subject", type = {Patient.class}, order = 11, min = 0, max = 1) @Description(shortDefinition="Focus of message", formalDefinition="The patient who is the focus of this communication." ) protected Reference subject; @@ -926,27 +926,27 @@ public class Communication extends DomainResource { return ResourceType.Communication; } - @SearchParamDefinition(name="identifier", path="Communication.identifier", description="Unique identifier", type="token" ) + @SearchParamDefinition(name = "identifier", path = "Communication.identifier", description = "Unique identifier", type = "token") public static final String SP_IDENTIFIER = "identifier"; @SearchParamDefinition(name="sender", path="Communication.sender", description="Message sender", type="reference" ) public static final String SP_SENDER = "sender"; @SearchParamDefinition(name="subject", path="Communication.subject", description="Focus of message", type="reference" ) public static final String SP_SUBJECT = "subject"; - @SearchParamDefinition(name="patient", path="Communication.subject", description="Focus of message", type="reference" ) + @SearchParamDefinition(name = "patient", path = "Communication.subject", description = "Focus of message", type = "reference") public static final String SP_PATIENT = "patient"; - @SearchParamDefinition(name="recipient", path="Communication.recipient", description="Message recipient", type="reference" ) + @SearchParamDefinition(name = "recipient", path = "Communication.recipient", description = "Message recipient", type = "reference") public static final String SP_RECIPIENT = "recipient"; @SearchParamDefinition(name="received", path="Communication.received", description="When received", type="date" ) public static final String SP_RECEIVED = "received"; @SearchParamDefinition(name="medium", path="Communication.medium", description="Communication medium", type="token" ) public static final String SP_MEDIUM = "medium"; - @SearchParamDefinition(name="encounter", path="Communication.encounter", description="Encounter leading to message", type="reference" ) + @SearchParamDefinition(name = "encounter", path = "Communication.encounter", description = "Encounter leading to message", type = "reference") public static final String SP_ENCOUNTER = "encounter"; - @SearchParamDefinition(name="category", path="Communication.category", description="Message category", type="token" ) + @SearchParamDefinition(name = "category", path = "Communication.category", description = "Message category", type = "token") public static final String SP_CATEGORY = "category"; - @SearchParamDefinition(name="sent", path="Communication.sent", description="When sent", type="date" ) + @SearchParamDefinition(name = "sent", path = "Communication.sent", description = "When sent", type = "date") public static final String SP_SENT = "sent"; - @SearchParamDefinition(name="status", path="Communication.status", description="in-progress | completed | suspended | rejected | failed", type="token" ) + @SearchParamDefinition(name = "status", path = "Communication.status", description = "in-progress | completed | suspended | rejected | failed", type = "token") public static final String SP_STATUS = "status"; } diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/CommunicationRequest.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/CommunicationRequest.java index 1cc6f06f053..91e68443758 100644 --- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/CommunicationRequest.java +++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/CommunicationRequest.java @@ -336,21 +336,21 @@ public class CommunicationRequest extends DomainResource { /** * A unique ID of this request for reference purposes. It must be provided if user wants it returned as part of any output, otherwise it will be auto-generated, if needed, by CDS system. Does not need to be the actual ID of the source system. */ - @Child(name="identifier", type={Identifier.class}, order=0, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "identifier", type = {Identifier.class}, order = 0, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Unique identifier", formalDefinition="A unique ID of this request for reference purposes. It must be provided if user wants it returned as part of any output, otherwise it will be auto-generated, if needed, by CDS system. Does not need to be the actual ID of the source system." ) protected List identifier; /** * The type of message such as alert, notification, reminder, instruction, etc. */ - @Child(name="category", type={CodeableConcept.class}, order=1, min=0, max=1) + @Child(name = "category", type = {CodeableConcept.class}, order = 1, min = 0, max = 1) @Description(shortDefinition="Message category", formalDefinition="The type of message such as alert, notification, reminder, instruction, etc." ) protected CodeableConcept category; /** * The entity (e.g., person, organization, clinical information system, or device) which is the source of the communication. */ - @Child(name="sender", type={Patient.class, Practitioner.class, Device.class, RelatedPerson.class, Organization.class}, order=2, min=0, max=1) + @Child(name = "sender", type = {Patient.class, Practitioner.class, Device.class, RelatedPerson.class, Organization.class}, order = 2, min = 0, max = 1) @Description(shortDefinition="Message sender", formalDefinition="The entity (e.g., person, organization, clinical information system, or device) which is the source of the communication." ) protected Reference sender; @@ -362,7 +362,7 @@ public class CommunicationRequest extends DomainResource { /** * The entity (e.g., person, organization, clinical information system, or device) which is the intended target of the communication. */ - @Child(name="recipient", type={Patient.class, Device.class, RelatedPerson.class, Practitioner.class}, order=3, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "recipient", type = {Patient.class, Device.class, RelatedPerson.class, Practitioner.class}, order = 3, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Message recipient", formalDefinition="The entity (e.g., person, organization, clinical information system, or device) which is the intended target of the communication." ) protected List recipient; /** @@ -374,21 +374,21 @@ public class CommunicationRequest extends DomainResource { /** * Text, attachment(s), or resource(s) to be communicated to the recipient. */ - @Child(name="payload", type={}, order=4, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "payload", type = {}, order = 4, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Message payload", formalDefinition="Text, attachment(s), or resource(s) to be communicated to the recipient." ) protected List payload; /** * The communication medium, e.g., email, fax. */ - @Child(name="medium", type={CodeableConcept.class}, order=5, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "medium", type = {CodeableConcept.class}, order = 5, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Communication medium", formalDefinition="The communication medium, e.g., email, fax." ) protected List medium; /** * The responsible person who authorizes this order, e.g., physician. This may be different than the author of the order statement, e.g., clerk, who may have entered the statement into the order entry application. */ - @Child(name="requester", type={Practitioner.class, Patient.class, RelatedPerson.class}, order=6, min=0, max=1) + @Child(name = "requester", type = {Practitioner.class, Patient.class, RelatedPerson.class}, order = 6, min = 0, max = 1) @Description(shortDefinition="Requester of communication", formalDefinition="The responsible person who authorizes this order, e.g., physician. This may be different than the author of the order statement, e.g., clerk, who may have entered the statement into the order entry application." ) protected Reference requester; @@ -400,14 +400,14 @@ public class CommunicationRequest extends DomainResource { /** * The status of the proposal or order. */ - @Child(name="status", type={CodeType.class}, order=7, min=0, max=1) + @Child(name = "status", type = {CodeType.class}, order = 7, min = 0, max = 1) @Description(shortDefinition="proposed | planned | requested | received | accepted | in-progress | completed | suspended | rejected | failed", formalDefinition="The status of the proposal or order." ) protected Enumeration status; /** * The encounter within which the communication request was created. */ - @Child(name="encounter", type={Encounter.class}, order=8, min=0, max=1) + @Child(name = "encounter", type = {Encounter.class}, order = 8, min = 0, max = 1) @Description(shortDefinition="Encounter leading to message", formalDefinition="The encounter within which the communication request was created." ) protected Reference encounter; @@ -419,28 +419,28 @@ public class CommunicationRequest extends DomainResource { /** * The time when this communication is to occur. */ - @Child(name="scheduledTime", type={DateTimeType.class}, order=9, min=0, max=1) + @Child(name = "scheduledTime", type = {DateTimeType.class}, order = 9, min = 0, max = 1) @Description(shortDefinition="When scheduled", formalDefinition="The time when this communication is to occur." ) protected DateTimeType scheduledTime; /** * The reason or justification for the communication request. */ - @Child(name="reason", type={CodeableConcept.class}, order=10, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "reason", type = {CodeableConcept.class}, order = 10, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Indication for message", formalDefinition="The reason or justification for the communication request." ) protected List reason; /** * The time when the request was made. */ - @Child(name="orderedOn", type={DateTimeType.class}, order=11, min=0, max=1) + @Child(name = "orderedOn", type = {DateTimeType.class}, order = 11, min = 0, max = 1) @Description(shortDefinition="When ordered or proposed", formalDefinition="The time when the request was made." ) protected DateTimeType orderedOn; /** * The patient who is the focus of this communication request. */ - @Child(name="subject", type={Patient.class}, order=12, min=0, max=1) + @Child(name = "subject", type = {Patient.class}, order = 12, min = 0, max = 1) @Description(shortDefinition="Focus of message", formalDefinition="The patient who is the focus of this communication request." ) protected Reference subject; @@ -452,7 +452,7 @@ public class CommunicationRequest extends DomainResource { /** * Characterizes how quickly the proposed act must be initiated. Includes concepts such as stat, urgent, routine. */ - @Child(name="priority", type={CodeableConcept.class}, order=13, min=0, max=1) + @Child(name = "priority", type = {CodeableConcept.class}, order = 13, min = 0, max = 1) @Description(shortDefinition="Message urgency", formalDefinition="Characterizes how quickly the proposed act must be initiated. Includes concepts such as stat, urgent, routine." ) protected CodeableConcept priority; @@ -1087,27 +1087,27 @@ public class CommunicationRequest extends DomainResource { public static final String SP_REQUESTER = "requester"; @SearchParamDefinition(name="identifier", path="CommunicationRequest.identifier", description="Unique identifier", type="token" ) public static final String SP_IDENTIFIER = "identifier"; - @SearchParamDefinition(name="ordered", path="CommunicationRequest.orderedOn", description="When ordered or proposed", type="date" ) + @SearchParamDefinition(name = "ordered", path = "CommunicationRequest.orderedOn", description = "When ordered or proposed", type = "date") public static final String SP_ORDERED = "ordered"; - @SearchParamDefinition(name="subject", path="CommunicationRequest.subject", description="Focus of message", type="reference" ) + @SearchParamDefinition(name = "subject", path = "CommunicationRequest.subject", description = "Focus of message", type = "reference") public static final String SP_SUBJECT = "subject"; @SearchParamDefinition(name="medium", path="CommunicationRequest.medium", description="Communication medium", type="token" ) public static final String SP_MEDIUM = "medium"; - @SearchParamDefinition(name="encounter", path="CommunicationRequest.encounter", description="Encounter leading to message", type="reference" ) + @SearchParamDefinition(name = "encounter", path = "CommunicationRequest.encounter", description = "Encounter leading to message", type = "reference") public static final String SP_ENCOUNTER = "encounter"; - @SearchParamDefinition(name="priority", path="CommunicationRequest.priority", description="Message urgency", type="token" ) + @SearchParamDefinition(name = "priority", path = "CommunicationRequest.priority", description = "Message urgency", type = "token") public static final String SP_PRIORITY = "priority"; - @SearchParamDefinition(name="sender", path="CommunicationRequest.sender", description="Message sender", type="reference" ) + @SearchParamDefinition(name = "sender", path = "CommunicationRequest.sender", description = "Message sender", type = "reference") public static final String SP_SENDER = "sender"; - @SearchParamDefinition(name="patient", path="CommunicationRequest.subject", description="Focus of message", type="reference" ) + @SearchParamDefinition(name = "patient", path = "CommunicationRequest.subject", description = "Focus of message", type = "reference") public static final String SP_PATIENT = "patient"; @SearchParamDefinition(name="recipient", path="CommunicationRequest.recipient", description="Message recipient", type="reference" ) public static final String SP_RECIPIENT = "recipient"; - @SearchParamDefinition(name="time", path="CommunicationRequest.scheduledTime", description="When scheduled", type="date" ) + @SearchParamDefinition(name = "time", path = "CommunicationRequest.scheduledTime", description = "When scheduled", type = "date") public static final String SP_TIME = "time"; - @SearchParamDefinition(name="category", path="CommunicationRequest.category", description="Message category", type="token" ) + @SearchParamDefinition(name = "category", path = "CommunicationRequest.category", description = "Message category", type = "token") public static final String SP_CATEGORY = "category"; - @SearchParamDefinition(name="status", path="CommunicationRequest.status", description="proposed | planned | requested | received | accepted | in-progress | completed | suspended | rejected | failed", type="token" ) + @SearchParamDefinition(name = "status", path = "CommunicationRequest.status", description = "proposed | planned | requested | received | accepted | in-progress | completed | suspended | rejected | failed", type = "token") public static final String SP_STATUS = "status"; } diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Composition.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Composition.java index 8460ee13cfb..6ec043207e8 100644 --- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Composition.java +++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Composition.java @@ -898,56 +898,56 @@ public class Composition extends DomainResource { /** * Logical Identifier for the composition, assigned when created. This identifier stays constant as the composition is changed over time. */ - @Child(name="identifier", type={Identifier.class}, order=0, min=0, max=1) + @Child(name = "identifier", type = {Identifier.class}, order = 0, min = 0, max = 1) @Description(shortDefinition="Logical identifier of composition (version-independent)", formalDefinition="Logical Identifier for the composition, assigned when created. This identifier stays constant as the composition is changed over time." ) protected Identifier identifier; /** * The composition editing time, when the composition was last logically changed by the author. */ - @Child(name="date", type={DateTimeType.class}, order=1, min=1, max=1) + @Child(name = "date", type = {DateTimeType.class}, order = 1, min = 1, max = 1) @Description(shortDefinition="Composition editing time", formalDefinition="The composition editing time, when the composition was last logically changed by the author." ) protected DateTimeType date; /** * Specifies the particular kind of composition (e.g. History and Physical, Discharge Summary, Progress Note). This usually equates to the purpose of making the composition. */ - @Child(name="type", type={CodeableConcept.class}, order=2, min=1, max=1) + @Child(name = "type", type = {CodeableConcept.class}, order = 2, min = 1, max = 1) @Description(shortDefinition="Kind of composition (LOINC if possible)", formalDefinition="Specifies the particular kind of composition (e.g. History and Physical, Discharge Summary, Progress Note). This usually equates to the purpose of making the composition." ) protected CodeableConcept type; /** * 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_; /** * Official human-readable label for the composition. */ - @Child(name="title", type={StringType.class}, order=4, min=0, max=1) + @Child(name = "title", type = {StringType.class}, order = 4, min = 0, max = 1) @Description(shortDefinition="Human Readable name/title", formalDefinition="Official human-readable label for the composition." ) protected StringType title; /** * The workflow/clinical status of this composition. The status is a marker for the clinical standing of the document. */ - @Child(name="status", type={CodeType.class}, order=5, min=1, max=1) + @Child(name = "status", type = {CodeType.class}, order = 5, min = 1, max = 1) @Description(shortDefinition="preliminary | final | appended | amended | entered-in-error", formalDefinition="The workflow/clinical status of this composition. The status is a marker for the clinical standing of the document." ) protected Enumeration status; /** * The code specifying the level of confidentiality of the Composition. */ - @Child(name="confidentiality", type={Coding.class}, order=6, min=1, max=1) + @Child(name = "confidentiality", type = {Coding.class}, order = 6, min = 1, max = 1) @Description(shortDefinition="As defined by affinity domain", formalDefinition="The code specifying the level of confidentiality of the Composition." ) protected Coding confidentiality; /** * Who or what the composition is about. The composition can be about a person, (patient or healthcare practitioner), a device (I.e. machine) or even a group of subjects (such as a document about a herd of livestock, or a set of patients that share a common exposure). */ - @Child(name="subject", type={Patient.class, Practitioner.class, Group.class, Device.class, Location.class}, order=7, min=1, max=1) + @Child(name = "subject", type = {Patient.class, Practitioner.class, Group.class, Device.class, Location.class}, order = 7, min = 1, max = 1) @Description(shortDefinition="Who and/or what the composition is about", formalDefinition="Who or what the composition is about. The composition can be about a person, (patient or healthcare practitioner), a device (I.e. machine) or even a group of subjects (such as a document about a herd of livestock, or a set of patients that share a common exposure)." ) protected Reference subject; @@ -959,7 +959,7 @@ public class Composition extends DomainResource { /** * Identifies who is responsible for the information in the composition. (Not necessarily who typed it in.). */ - @Child(name="author", type={Practitioner.class, Device.class, Patient.class, RelatedPerson.class}, order=8, min=1, max=Child.MAX_UNLIMITED) + @Child(name = "author", type = {Practitioner.class, Device.class, Patient.class, RelatedPerson.class}, order = 8, min = 1, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Who and/or what authored the composition", formalDefinition="Identifies who is responsible for the information in the composition. (Not necessarily who typed it in.)." ) protected List author; /** @@ -971,14 +971,14 @@ public class Composition extends DomainResource { /** * A participant who has attested to the accuracy of the composition/document. */ - @Child(name="attester", type={}, order=9, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "attester", type = {}, order = 9, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Attests to accuracy of composition", formalDefinition="A participant who has attested to the accuracy of the composition/document." ) protected List attester; /** * Identifies the organization or group who is responsible for ongoing maintenance of and access to the composition/document information. */ - @Child(name="custodian", type={Organization.class}, order=10, min=0, max=1) + @Child(name = "custodian", type = {Organization.class}, order = 10, min = 0, max = 1) @Description(shortDefinition="Org which maintains the composition", formalDefinition="Identifies the organization or group who is responsible for ongoing maintenance of and access to the composition/document information." ) protected Reference custodian; @@ -990,14 +990,14 @@ public class Composition extends DomainResource { /** * The clinical service, such as a colonoscopy or an appendectomy, being documented. */ - @Child(name="event", type={}, order=11, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "event", type = {}, order = 11, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="The clinical service(s) being documented", formalDefinition="The clinical service, such as a colonoscopy or an appendectomy, being documented." ) protected List event; /** * Describes the clinical encounter or type of care this documentation is associated with. */ - @Child(name="encounter", type={Encounter.class}, order=12, min=0, max=1) + @Child(name = "encounter", type = {Encounter.class}, order = 12, min = 0, max = 1) @Description(shortDefinition="Context of the conposition", formalDefinition="Describes the clinical encounter or type of care this documentation is associated with." ) protected Reference encounter; @@ -1009,7 +1009,7 @@ public class Composition extends DomainResource { /** * The root of the sections that make up the composition. */ - @Child(name="section", type={}, order=13, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "section", type = {}, order = 13, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Composition is broken into sections", formalDefinition="The root of the sections that make up the composition." ) protected List section; @@ -1619,34 +1619,34 @@ public class Composition extends DomainResource { @SearchParamDefinition(name="date", path="Composition.date", description="Composition editing time", type="date" ) public static final String SP_DATE = "date"; - @SearchParamDefinition(name="identifier", path="Composition.identifier", description="Logical identifier of composition (version-independent)", type="token" ) - public static final String SP_IDENTIFIER = "identifier"; - @SearchParamDefinition(name="period", path="Composition.event.period", description="The period covered by the documentation", type="date" ) - public static final String SP_PERIOD = "period"; - @SearchParamDefinition(name="subject", path="Composition.subject", description="Who and/or what the composition is about", type="reference" ) - public static final String SP_SUBJECT = "subject"; + @SearchParamDefinition(name = "identifier", path = "Composition.identifier", description = "Logical identifier of composition (version-independent)", type = "token") + public static final String SP_IDENTIFIER = "identifier"; + @SearchParamDefinition(name = "period", path = "Composition.event.period", description = "The period covered by the documentation", type = "date") + public static final String SP_PERIOD = "period"; + @SearchParamDefinition(name = "subject", path = "Composition.subject", description = "Who and/or what the composition is about", type = "reference") + public static final String SP_SUBJECT = "subject"; @SearchParamDefinition(name="author", path="Composition.author", description="Who and/or what authored the composition", type="reference" ) public static final String SP_AUTHOR = "author"; - @SearchParamDefinition(name="confidentiality", path="Composition.confidentiality", description="As defined by affinity domain", type="token" ) - public static final String SP_CONFIDENTIALITY = "confidentiality"; - @SearchParamDefinition(name="section-code", path="Composition.section.code", description="Classification of section (recommended)", type="token" ) - public static final String SP_SECTIONCODE = "section-code"; - @SearchParamDefinition(name="section", path="Composition.section.content", description="The Content of the section", type="reference" ) - public static final String SP_SECTION = "section"; - @SearchParamDefinition(name="type", path="Composition.type", description="Kind of composition (LOINC if possible)", type="token" ) - public static final String SP_TYPE = "type"; + @SearchParamDefinition(name = "confidentiality", path = "Composition.confidentiality", description = "As defined by affinity domain", type = "token") + public static final String SP_CONFIDENTIALITY = "confidentiality"; + @SearchParamDefinition(name = "section-code", path = "Composition.section.code", description = "Classification of section (recommended)", type = "token") + public static final String SP_SECTIONCODE = "section-code"; + @SearchParamDefinition(name = "section", path = "Composition.section.content", description = "The Content of the section", type = "reference") + public static final String SP_SECTION = "section"; + @SearchParamDefinition(name = "type", path = "Composition.type", description = "Kind of composition (LOINC if possible)", type = "token") + public static final String SP_TYPE = "type"; @SearchParamDefinition(name="title", path="Composition.title", description="Human Readable name/title", type="string" ) public static final String SP_TITLE = "title"; @SearchParamDefinition(name="attester", path="Composition.attester.party", description="Who attested the composition", type="reference" ) public static final String SP_ATTESTER = "attester"; - @SearchParamDefinition(name="patient", path="Composition.subject", description="Who and/or what the composition is about", type="reference" ) - public static final String SP_PATIENT = "patient"; + @SearchParamDefinition(name = "patient", path = "Composition.subject", description = "Who and/or what the composition is about", type = "reference") + public static final String SP_PATIENT = "patient"; @SearchParamDefinition(name="context", path="Composition.event.code", description="Code(s) that apply to the event being documented", type="token" ) public static final String SP_CONTEXT = "context"; - @SearchParamDefinition(name="class", path="Composition.class", description="Categorization of Composition", type="token" ) - public static final String SP_CLASS = "class"; - @SearchParamDefinition(name="status", path="Composition.status", description="preliminary | final | appended | amended | entered-in-error", type="token" ) - public static final String SP_STATUS = "status"; + @SearchParamDefinition(name = "class", path = "Composition.class", description = "Categorization of Composition", type = "token") + public static final String SP_CLASS = "class"; + @SearchParamDefinition(name = "status", path = "Composition.status", description = "preliminary | final | appended | amended | entered-in-error", type = "token") + public static final String SP_STATUS = "status"; } diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/ConceptMap.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/ConceptMap.java index 99ab342b186..e14985dc0f1 100644 --- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/ConceptMap.java +++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/ConceptMap.java @@ -1092,91 +1092,91 @@ public class ConceptMap extends DomainResource { /** * The identifier that is used to identify this concept map when it is referenced in a specification, model, design or an instance (should be globally unique OID, UUID, or URI). */ - @Child(name="identifier", type={StringType.class}, order=0, min=0, max=1) + @Child(name = "identifier", type = {StringType.class}, order = 0, min = 0, max = 1) @Description(shortDefinition="Logical id to reference this concept map", formalDefinition="The identifier that is used to identify this concept map when it is referenced in a specification, model, design or an instance (should be globally unique OID, UUID, or URI)." ) protected StringType identifier; /** * The identifier that is used to identify this version of the concept map when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the profile author manually and the value should be a timestamp. */ - @Child(name="version", type={StringType.class}, order=1, min=0, max=1) + @Child(name = "version", type = {StringType.class}, order = 1, min = 0, max = 1) @Description(shortDefinition="Logical id for this version of the concept map", formalDefinition="The identifier that is used to identify this version of the concept map when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the profile author manually and the value should be a timestamp." ) protected StringType version; /** * A free text natural language name describing the concept map. */ - @Child(name="name", type={StringType.class}, order=2, min=0, max=1) + @Child(name = "name", type = {StringType.class}, order = 2, min = 0, max = 1) @Description(shortDefinition="Informal name for this concept map", formalDefinition="A free text natural language name describing the concept map." ) protected StringType name; /** * The name of the individual or organization that published the concept map. */ - @Child(name="publisher", type={StringType.class}, order=3, min=0, max=1) + @Child(name = "publisher", type = {StringType.class}, order = 3, min = 0, max = 1) @Description(shortDefinition="Name of the publisher (Organization or individual)", formalDefinition="The name of the individual or organization that published the concept map." ) protected StringType publisher; /** * Contacts of the publisher to assist a user in finding and communicating with the publisher. */ - @Child(name="telecom", type={ContactPoint.class}, order=4, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "telecom", type = {ContactPoint.class}, order = 4, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Contact information of the publisher", formalDefinition="Contacts of the publisher to assist a user in finding and communicating with the publisher." ) protected List telecom; /** * A free text natural language description of the use of the concept map - reason for definition, conditions of use, etc. */ - @Child(name="description", type={StringType.class}, order=5, min=0, max=1) + @Child(name = "description", type = {StringType.class}, order = 5, min = 0, max = 1) @Description(shortDefinition="Human language description of the concept map", formalDefinition="A free text natural language description of the use of the concept map - reason for definition, conditions of use, etc." ) protected StringType description; /** * A copyright statement relating to the concept map and/or its contents. */ - @Child(name="copyright", type={StringType.class}, order=6, min=0, max=1) + @Child(name = "copyright", type = {StringType.class}, order = 6, min = 0, max = 1) @Description(shortDefinition="About the concept map or its content", formalDefinition="A copyright statement relating to the concept map and/or its contents." ) protected StringType copyright; /** * The status of the concept map. */ - @Child(name="status", type={CodeType.class}, order=7, min=1, max=1) + @Child(name = "status", type = {CodeType.class}, order = 7, min = 1, max = 1) @Description(shortDefinition="draft | active | retired", formalDefinition="The status of the concept map." ) protected Enumeration status; /** * This ConceptMap was authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage. */ - @Child(name="experimental", type={BooleanType.class}, order=8, min=0, max=1) + @Child(name = "experimental", type = {BooleanType.class}, order = 8, min = 0, max = 1) @Description(shortDefinition="If for testing purposes, not real usage", formalDefinition="This ConceptMap was authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage." ) protected BooleanType experimental; /** * The date that the concept map status was last changed. */ - @Child(name="date", type={DateTimeType.class}, order=9, min=0, max=1) + @Child(name = "date", type = {DateTimeType.class}, order = 9, min = 0, max = 1) @Description(shortDefinition="Date for given status", formalDefinition="The date that the concept map status was last changed." ) protected DateTimeType date; /** * The source value set that specifies the concepts that are being mapped. */ - @Child(name="source", type={UriType.class, ValueSet.class, Profile.class}, order=10, min=1, max=1) + @Child(name = "source", type = {UriType.class, ValueSet.class, Profile.class}, order = 10, min = 1, max = 1) @Description(shortDefinition="Identifies the source of the concepts which are being mapped", formalDefinition="The source value set that specifies the concepts that are being mapped." ) protected Type source; /** * The target value set provides context to the mappings. Note that the mapping is made between concepts, not between value sets, but the value set provides important context about how the concept mapping choices are made. */ - @Child(name="target", type={UriType.class, ValueSet.class, Profile.class}, order=11, min=1, max=1) + @Child(name = "target", type = {UriType.class, ValueSet.class, Profile.class}, order = 11, min = 1, max = 1) @Description(shortDefinition="Provides context to the mappings", formalDefinition="The target value set provides context to the mappings. Note that the mapping is made between concepts, not between value sets, but the value set provides important context about how the concept mapping choices are made." ) protected Type target; /** * Mappings for an individual concept in the source to one or more concepts in the target. */ - @Child(name="element", type={}, order=12, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "element", type = {}, order = 12, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Mappings for a concept from the source set", formalDefinition="Mappings for an individual concept in the source to one or more concepts in the target." ) protected List element; @@ -1849,30 +1849,30 @@ public class ConceptMap extends DomainResource { return ResourceType.ConceptMap; } - @SearchParamDefinition(name="date", path="ConceptMap.date", description="The concept map publication date", type="date" ) - public static final String SP_DATE = "date"; - @SearchParamDefinition(name="identifier", path="ConceptMap.identifier", description="The identifier of the concept map", type="token" ) - public static final String SP_IDENTIFIER = "identifier"; + @SearchParamDefinition(name = "date", path = "ConceptMap.date", description = "The concept map publication date", type = "date") + public static final String SP_DATE = "date"; + @SearchParamDefinition(name = "identifier", path = "ConceptMap.identifier", description = "The identifier of the concept map", type = "token") + public static final String SP_IDENTIFIER = "identifier"; @SearchParamDefinition(name="product", path="ConceptMap.element.map.product.element", description="Reference to element/field/valueset mapping depends on", type="token" ) public static final String SP_PRODUCT = "product"; @SearchParamDefinition(name="system", path="ConceptMap.element.map.codeSystem", description="The system for any destination concepts mapped by this map", type="token" ) public static final String SP_SYSTEM = "system"; - @SearchParamDefinition(name="dependson", path="ConceptMap.element.dependsOn.element", description="Reference to element/field/valueset mapping depends on", type="token" ) - public static final String SP_DEPENDSON = "dependson"; + @SearchParamDefinition(name = "dependson", path = "ConceptMap.element.dependsOn.element", description = "Reference to element/field/valueset mapping depends on", type = "token") + public static final String SP_DEPENDSON = "dependson"; @SearchParamDefinition(name="name", path="ConceptMap.name", description="Name of the concept map", type="string" ) public static final String SP_NAME = "name"; @SearchParamDefinition(name="publisher", path="ConceptMap.publisher", description="Name of the publisher of the concept map", type="string" ) public static final String SP_PUBLISHER = "publisher"; - @SearchParamDefinition(name="description", path="ConceptMap.description", description="Text search in the description of the concept map", type="string" ) - public static final String SP_DESCRIPTION = "description"; - @SearchParamDefinition(name="source", path="ConceptMap.source[x]", description="The system for any concepts mapped by this concept map", type="reference" ) - public static final String SP_SOURCE = "source"; + @SearchParamDefinition(name = "description", path = "ConceptMap.description", description = "Text search in the description of the concept map", type = "string") + public static final String SP_DESCRIPTION = "description"; + @SearchParamDefinition(name = "source", path = "ConceptMap.source[x]", description = "The system for any concepts mapped by this concept map", type = "reference") + public static final String SP_SOURCE = "source"; @SearchParamDefinition(name="version", path="ConceptMap.version", description="The version identifier of the concept map", type="token" ) public static final String SP_VERSION = "version"; - @SearchParamDefinition(name="status", path="ConceptMap.status", description="Status of the concept map", type="token" ) - public static final String SP_STATUS = "status"; - @SearchParamDefinition(name="target", path="ConceptMap.target[x]", description="Provides context to the mappings", type="reference" ) - public static final String SP_TARGET = "target"; + @SearchParamDefinition(name = "status", path = "ConceptMap.status", description = "Status of the concept map", type = "token") + public static final String SP_STATUS = "status"; + @SearchParamDefinition(name = "target", path = "ConceptMap.target[x]", description = "Provides context to the mappings", type = "reference") + public static final String SP_TARGET = "target"; } diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Condition.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Condition.java index 6d6ab86331e..da9c9a247dc 100644 --- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Condition.java +++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Condition.java @@ -818,14 +818,14 @@ public class Condition extends DomainResource { /** * This records identifiers associated with this condition that are defined by business processed and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation). */ - @Child(name="identifier", type={Identifier.class}, order=0, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "identifier", type = {Identifier.class}, order = 0, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="External Ids for this condition", formalDefinition="This records identifiers associated with this condition that are defined by business processed and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation)." ) protected List identifier; /** * Indicates the patient who the condition record is associated with. */ - @Child(name="subject", type={Patient.class}, order=1, min=1, max=1) + @Child(name = "subject", type = {Patient.class}, order = 1, min = 1, max = 1) @Description(shortDefinition="Who has the condition?", formalDefinition="Indicates the patient who the condition record is associated with." ) protected Reference subject; @@ -837,7 +837,7 @@ public class Condition extends DomainResource { /** * Encounter during which the condition was first asserted. */ - @Child(name="encounter", type={Encounter.class}, order=2, min=0, max=1) + @Child(name = "encounter", type = {Encounter.class}, order = 2, min = 0, max = 1) @Description(shortDefinition="Encounter when condition first asserted", formalDefinition="Encounter during which the condition was first asserted." ) protected Reference encounter; @@ -849,7 +849,7 @@ public class Condition extends DomainResource { /** * Person who takes responsibility for asserting the existence of the condition as part of the electronic record. */ - @Child(name="asserter", type={Practitioner.class, Patient.class}, order=3, min=0, max=1) + @Child(name = "asserter", type = {Practitioner.class, Patient.class}, order = 3, min = 0, max = 1) @Description(shortDefinition="Person who asserts this condition", formalDefinition="Person who takes responsibility for asserting the existence of the condition as part of the electronic record." ) protected Reference asserter; @@ -861,98 +861,98 @@ public class Condition extends DomainResource { /** * Estimated or actual date the condition/problem/diagnosis was first detected/suspected. */ - @Child(name="dateAsserted", type={DateType.class}, order=4, min=0, max=1) + @Child(name = "dateAsserted", type = {DateType.class}, order = 4, min = 0, max = 1) @Description(shortDefinition="When first detected/suspected/entered", formalDefinition="Estimated or actual date the condition/problem/diagnosis was first detected/suspected." ) protected DateType dateAsserted; /** * Identification of the condition, problem or diagnosis. */ - @Child(name="code", type={CodeableConcept.class}, order=5, min=1, max=1) + @Child(name = "code", type = {CodeableConcept.class}, order = 5, min = 1, max = 1) @Description(shortDefinition="Identification of the condition, problem or diagnosis", formalDefinition="Identification of the condition, problem or diagnosis." ) protected CodeableConcept code; /** * A category assigned to the condition. E.g. complaint | symptom | finding | diagnosis. */ - @Child(name="category", type={CodeableConcept.class}, order=6, min=0, max=1) + @Child(name = "category", type = {CodeableConcept.class}, order = 6, min = 0, max = 1) @Description(shortDefinition="E.g. complaint | symptom | finding | diagnosis", formalDefinition="A category assigned to the condition. E.g. complaint | symptom | finding | diagnosis." ) protected CodeableConcept category; /** * The clinical status of the condition. */ - @Child(name="status", type={CodeType.class}, order=7, min=1, max=1) + @Child(name = "status", type = {CodeType.class}, order = 7, min = 1, max = 1) @Description(shortDefinition="provisional | working | confirmed | refuted", formalDefinition="The clinical status of the condition." ) protected Enumeration status; /** * The degree of confidence that this condition is correct. */ - @Child(name="certainty", type={CodeableConcept.class}, order=8, min=0, max=1) + @Child(name = "certainty", type = {CodeableConcept.class}, order = 8, min = 0, max = 1) @Description(shortDefinition="Degree of confidence", formalDefinition="The degree of confidence that this condition is correct." ) protected CodeableConcept certainty; /** * A subjective assessment of the severity of the condition as evaluated by the clinician. */ - @Child(name="severity", type={CodeableConcept.class}, order=9, min=0, max=1) + @Child(name = "severity", type = {CodeableConcept.class}, order = 9, min = 0, max = 1) @Description(shortDefinition="Subjective severity of condition", formalDefinition="A subjective assessment of the severity of the condition as evaluated by the clinician." ) protected CodeableConcept severity; /** * Estimated or actual date or date-time the condition began, in the opinion of the clinician. */ - @Child(name="onset", type={DateTimeType.class, Age.class}, order=10, min=0, max=1) + @Child(name = "onset", type = {DateTimeType.class, Age.class}, order = 10, min = 0, max = 1) @Description(shortDefinition="Estimated or actual date, date-time, or age", formalDefinition="Estimated or actual date or date-time the condition began, in the opinion of the clinician." ) protected Type onset; /** * The date or estimated date that the condition resolved or went into remission. This is called "abatement" because of the many overloaded connotations associated with "remission" or "resolution" - Conditions are never really resolved, but they can abate. */ - @Child(name="abatement", type={DateType.class, Age.class, BooleanType.class}, order=11, min=0, max=1) + @Child(name = "abatement", type = {DateType.class, Age.class, BooleanType.class}, order = 11, min = 0, max = 1) @Description(shortDefinition="If/when in resolution/remission", formalDefinition="The date or estimated date that the condition resolved or went into remission. This is called 'abatement' because of the many overloaded connotations associated with 'remission' or 'resolution' - Conditions are never really resolved, but they can abate." ) protected Type abatement; /** * Clinical stage or grade of a condition. May include formal severity assessments. */ - @Child(name="stage", type={}, order=12, min=0, max=1) + @Child(name = "stage", type = {}, order = 12, min = 0, max = 1) @Description(shortDefinition="Stage/grade, usually assessed formally", formalDefinition="Clinical stage or grade of a condition. May include formal severity assessments." ) protected ConditionStageComponent stage; /** * Supporting Evidence / manifestations that are the basis on which this condition is suspected or confirmed. */ - @Child(name="evidence", type={}, order=13, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "evidence", type = {}, order = 13, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Supporting evidence", formalDefinition="Supporting Evidence / manifestations that are the basis on which this condition is suspected or confirmed." ) protected List evidence; /** * The anatomical location where this condition manifests itself. */ - @Child(name="location", type={}, order=14, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "location", type = {}, order = 14, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Anatomical location, if relevant", formalDefinition="The anatomical location where this condition manifests itself." ) protected List location; /** * Further conditions, problems, diagnoses, procedures or events or the substance that caused/triggered this Condition. */ - @Child(name="dueTo", type={}, order=15, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "dueTo", type = {}, order = 15, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Causes for this Condition", formalDefinition="Further conditions, problems, diagnoses, procedures or events or the substance that caused/triggered this Condition." ) protected List dueTo; /** * Further conditions, problems, diagnoses, procedures or events or the substance that preceded this Condition. */ - @Child(name="occurredFollowing", type={}, order=16, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "occurredFollowing", type = {}, order = 16, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Precedent for this Condition", formalDefinition="Further conditions, problems, diagnoses, procedures or events or the substance that preceded this Condition." ) protected List occurredFollowing; /** * Additional information about the Condition. This is a general notes/comments entry for description of the Condition, its diagnosis and prognosis. */ - @Child(name="notes", type={StringType.class}, order=17, min=0, max=1) + @Child(name = "notes", type = {StringType.class}, order = 17, min = 0, max = 1) @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; @@ -1709,35 +1709,35 @@ public class Condition extends DomainResource { public static final String SP_SEVERITY = "severity"; @SearchParamDefinition(name="code", path="Condition.code", description="Code for the condition", type="token" ) public static final String SP_CODE = "code"; - @SearchParamDefinition(name="evidence", path="Condition.evidence.code", description="Manifestation/symptom", type="token" ) + @SearchParamDefinition(name = "evidence", path = "Condition.evidence.code", description = "Manifestation/symptom", type = "token") public static final String SP_EVIDENCE = "evidence"; @SearchParamDefinition(name="date-asserted", path="Condition.dateAsserted", description="When first detected/suspected/entered", type="date" ) public static final String SP_DATEASSERTED = "date-asserted"; - @SearchParamDefinition(name="subject", path="Condition.subject", description="Who has the condition?", type="reference" ) + @SearchParamDefinition(name = "subject", path = "Condition.subject", description = "Who has the condition?", type = "reference") public static final String SP_SUBJECT = "subject"; - @SearchParamDefinition(name="dueto-item", path="Condition.dueTo.target", description="Relationship target resource", type="reference" ) + @SearchParamDefinition(name = "dueto-item", path = "Condition.dueTo.target", description = "Relationship target resource", type = "reference") public static final String SP_DUETOITEM = "dueto-item"; - @SearchParamDefinition(name="encounter", path="Condition.encounter", description="Encounter when condition first asserted", type="reference" ) + @SearchParamDefinition(name = "encounter", path = "Condition.encounter", description = "Encounter when condition first asserted", type = "reference") public static final String SP_ENCOUNTER = "encounter"; - @SearchParamDefinition(name="onset", path="Condition.onset[x]", description="When the Condition started (if started on a date)", type="date" ) + @SearchParamDefinition(name = "onset", path = "Condition.onset[x]", description = "When the Condition started (if started on a date)", type = "date") public static final String SP_ONSET = "onset"; - @SearchParamDefinition(name="asserter", path="Condition.asserter", description="Person who asserts this condition", type="reference" ) + @SearchParamDefinition(name = "asserter", path = "Condition.asserter", description = "Person who asserts this condition", type = "reference") public static final String SP_ASSERTER = "asserter"; @SearchParamDefinition(name="stage", path="Condition.stage.summary", description="Simple summary (disease specific)", type="token" ) public static final String SP_STAGE = "stage"; - @SearchParamDefinition(name="following-item", path="Condition.occurredFollowing.target", description="Relationship target resource", type="reference" ) + @SearchParamDefinition(name = "following-item", path = "Condition.occurredFollowing.target", description = "Relationship target resource", type = "reference") public static final String SP_FOLLOWINGITEM = "following-item"; @SearchParamDefinition(name="patient", path="Condition.subject", description="Who has the condition?", type="reference" ) public static final String SP_PATIENT = "patient"; - @SearchParamDefinition(name="dueto-code", path="Condition.dueTo.codeableConcept", description="Relationship target by means of a predefined code", type="token" ) + @SearchParamDefinition(name = "dueto-code", path = "Condition.dueTo.codeableConcept", description = "Relationship target by means of a predefined code", type = "token") public static final String SP_DUETOCODE = "dueto-code"; - @SearchParamDefinition(name="location", path="Condition.location.code", description="Location - may include laterality", type="token" ) + @SearchParamDefinition(name = "location", path = "Condition.location.code", description = "Location - may include laterality", type = "token") public static final String SP_LOCATION = "location"; - @SearchParamDefinition(name="category", path="Condition.category", description="The category of the condition", type="token" ) + @SearchParamDefinition(name = "category", path = "Condition.category", description = "The category of the condition", type = "token") public static final String SP_CATEGORY = "category"; - @SearchParamDefinition(name="following-code", path="Condition.occurredFollowing.codeableConcept", description="Relationship target by means of a predefined code", type="token" ) + @SearchParamDefinition(name = "following-code", path = "Condition.occurredFollowing.codeableConcept", description = "Relationship target by means of a predefined code", type = "token") public static final String SP_FOLLOWINGCODE = "following-code"; - @SearchParamDefinition(name="status", path="Condition.status", description="The status of the condition", type="token" ) + @SearchParamDefinition(name = "status", path = "Condition.status", description = "The status of the condition", type = "token") public static final String SP_STATUS = "status"; } diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Conformance.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Conformance.java index 9f857e107e8..86997a8702c 100644 --- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Conformance.java +++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Conformance.java @@ -169,15 +169,19 @@ public class Conformance extends DomainResource { } 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 "?"; } } public String getDisplay() { switch (this) { - case CLIENT: return "Client"; - case SERVER: return "Server"; + case CLIENT: + return "Client"; + case SERVER: + return "Server"; default: return "?"; } } @@ -4621,105 +4625,105 @@ public class Conformance extends DomainResource { /** * The identifier that is used to identify this conformance statement when it is referenced in a specification, model, design or an instance (should be globally unique OID, UUID, or URI). */ - @Child(name="identifier", type={StringType.class}, order=0, min=0, max=1) + @Child(name = "identifier", type = {StringType.class}, order = 0, min = 0, max = 1) @Description(shortDefinition="Logical id to reference this statement", formalDefinition="The identifier that is used to identify this conformance statement when it is referenced in a specification, model, design or an instance (should be globally unique OID, UUID, or URI)." ) protected StringType identifier; /** * The identifier that is used to identify this version of the conformance statement when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the profile author manually and the value should be a timestamp. */ - @Child(name="version", type={StringType.class}, order=1, min=0, max=1) + @Child(name = "version", type = {StringType.class}, order = 1, min = 0, max = 1) @Description(shortDefinition="Logical id for this version of the statement", formalDefinition="The identifier that is used to identify this version of the conformance statement when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the profile author manually and the value should be a timestamp." ) protected StringType version; /** * A free text natural language name identifying the conformance statement. */ - @Child(name="name", type={StringType.class}, order=2, min=0, max=1) + @Child(name = "name", type = {StringType.class}, order = 2, min = 0, max = 1) @Description(shortDefinition="Informal name for this conformance statement", formalDefinition="A free text natural language name identifying the conformance statement." ) protected StringType name; /** * Name of Organization publishing this conformance statement. */ - @Child(name="publisher", type={StringType.class}, order=3, min=1, max=1) + @Child(name = "publisher", type = {StringType.class}, order = 3, min = 1, max = 1) @Description(shortDefinition="Publishing Organization", formalDefinition="Name of Organization publishing this conformance statement." ) protected StringType publisher; /** * Contacts for Organization relevant to this conformance statement. The contacts may be a website, email, phone numbers, etc. */ - @Child(name="telecom", type={ContactPoint.class}, order=4, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "telecom", type = {ContactPoint.class}, order = 4, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Contacts for Organization", formalDefinition="Contacts for Organization relevant to this conformance statement. The contacts may be a website, email, phone numbers, etc." ) protected List telecom; /** * A free text natural language description of the conformance statement and its use. Typically, this is used when the profile describes a desired rather than an actual solution, for example as a formal expression of requirements as part of an RFP. */ - @Child(name="description", type={StringType.class}, order=5, min=0, max=1) + @Child(name = "description", type = {StringType.class}, order = 5, min = 0, max = 1) @Description(shortDefinition="Human description of the conformance statement", formalDefinition="A free text natural language description of the conformance statement and its use. Typically, this is used when the profile describes a desired rather than an actual solution, for example as a formal expression of requirements as part of an RFP." ) protected StringType description; /** * The status of this conformance statement. */ - @Child(name="status", type={CodeType.class}, order=6, min=0, max=1) + @Child(name = "status", type = {CodeType.class}, order = 6, min = 0, max = 1) @Description(shortDefinition="draft | active | retired", formalDefinition="The status of this conformance statement." ) protected Enumeration status; /** * A flag to indicate that this conformance statement is authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage. */ - @Child(name="experimental", type={BooleanType.class}, order=7, min=0, max=1) + @Child(name = "experimental", type = {BooleanType.class}, order = 7, min = 0, max = 1) @Description(shortDefinition="If for testing purposes, not real usage", formalDefinition="A flag to indicate that this conformance statement is authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage." ) protected BooleanType experimental; /** * The date (and optionally time) when the conformance statement was published. */ - @Child(name="date", type={DateTimeType.class}, order=8, min=1, max=1) + @Child(name = "date", type = {DateTimeType.class}, order = 8, min = 1, max = 1) @Description(shortDefinition="Publication Date(/time)", formalDefinition="The date (and optionally time) when the conformance statement was published." ) protected DateTimeType date; /** * Software that is covered by this conformance statement. It is used when the profile describes the capabilities of a particular software version, independent of an installation. */ - @Child(name="software", type={}, order=9, min=0, max=1) + @Child(name = "software", type = {}, order = 9, min = 0, max = 1) @Description(shortDefinition="Software that is covered by this conformance statement", formalDefinition="Software that is covered by this conformance statement. It is used when the profile describes the capabilities of a particular software version, independent of an installation." ) protected ConformanceSoftwareComponent software; /** * Identifies a specific implementation instance that is described by the conformance statement - i.e. a particular installation, rather than the capabilities of a software program. */ - @Child(name="implementation", type={}, order=10, min=0, max=1) + @Child(name = "implementation", type = {}, order = 10, min = 0, max = 1) @Description(shortDefinition="If this describes a specific instance", formalDefinition="Identifies a specific implementation instance that is described by the conformance statement - i.e. a particular installation, rather than the capabilities of a software program." ) protected ConformanceImplementationComponent implementation; /** * The version of the FHIR specification on which this conformance statement is based. */ - @Child(name="fhirVersion", type={IdType.class}, order=11, min=1, max=1) + @Child(name = "fhirVersion", type = {IdType.class}, order = 11, min = 1, max = 1) @Description(shortDefinition="FHIR Version", formalDefinition="The version of the FHIR specification on which this conformance statement is based." ) protected IdType fhirVersion; /** * A flag that indicates whether the application accepts unknown elements as part of a resource. */ - @Child(name="acceptUnknown", type={BooleanType.class}, order=12, min=1, max=1) + @Child(name = "acceptUnknown", type = {BooleanType.class}, order = 12, min = 1, max = 1) @Description(shortDefinition="True if application accepts unknown elements", formalDefinition="A flag that indicates whether the application accepts unknown elements as part of a resource." ) protected BooleanType acceptUnknown; /** * A list of the formats supported by this implementation. */ - @Child(name="format", type={CodeType.class}, order=13, min=1, max=Child.MAX_UNLIMITED) + @Child(name = "format", type = {CodeType.class}, order = 13, min = 1, max = Child.MAX_UNLIMITED) @Description(shortDefinition="formats supported (xml | json | mime type)", formalDefinition="A list of the formats supported by this implementation." ) protected List format; /** * A list of profiles supported by the system. For a server, "supported by the system" means the system hosts/produces a set of resources, conformant to a particular profile, and allows its clients to search using this profile and to find appropriate data. For a client, it means the system will search by this profile and process data according to the guidance implicit in the profile. */ - @Child(name="profile", type={Profile.class}, order=14, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "profile", type = {Profile.class}, order = 14, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Profiles supported by the system", formalDefinition="A list of profiles supported by the system. For a server, 'supported by the system' means the system hosts/produces a set of resources, conformant to a particular profile, and allows its clients to search using this profile and to find appropriate data. For a client, it means the system will search by this profile and process data according to the guidance implicit in the profile." ) protected List profile; /** @@ -4731,21 +4735,21 @@ public class Conformance extends DomainResource { /** * A definition of the restful capabilities of the solution, if any. */ - @Child(name="rest", type={}, order=15, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "rest", type = {}, order = 15, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="If the endpoint is a RESTful one", formalDefinition="A definition of the restful capabilities of the solution, if any." ) protected List rest; /** * A description of the messaging capabilities of the solution. */ - @Child(name="messaging", type={}, order=16, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "messaging", type = {}, order = 16, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="If messaging is supported", formalDefinition="A description of the messaging capabilities of the solution." ) protected List messaging; /** * A document definition. */ - @Child(name="document", type={}, order=17, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "document", type = {}, order = 17, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Document definition", formalDefinition="A document definition." ) protected List document; @@ -5625,38 +5629,38 @@ public class Conformance extends DomainResource { return ResourceType.Conformance; } - @SearchParamDefinition(name="date", path="Conformance.date", description="The conformance statement publication date", type="date" ) - public static final String SP_DATE = "date"; - @SearchParamDefinition(name="identifier", path="Conformance.identifier", description="The identifier of the conformance statement", type="token" ) - public static final String SP_IDENTIFIER = "identifier"; - @SearchParamDefinition(name="software", path="Conformance.software.name", description="Part of a the name of a software application", type="string" ) - public static final String SP_SOFTWARE = "software"; + @SearchParamDefinition(name = "date", path = "Conformance.date", description = "The conformance statement publication date", type = "date") + public static final String SP_DATE = "date"; + @SearchParamDefinition(name = "identifier", path = "Conformance.identifier", description = "The identifier of the conformance statement", type = "token") + public static final String SP_IDENTIFIER = "identifier"; + @SearchParamDefinition(name = "software", path = "Conformance.software.name", description = "Part of a the name of a software application", type = "string") + public static final String SP_SOFTWARE = "software"; @SearchParamDefinition(name="resource", path="Conformance.rest.resource.type", description="Name of a resource mentioned in a conformance statement", type="token" ) public static final String SP_RESOURCE = "resource"; - @SearchParamDefinition(name="profile", path="Conformance.rest.resource.profile", description="A profile id invoked in a conformance statement", type="reference" ) - public static final String SP_PROFILE = "profile"; + @SearchParamDefinition(name = "profile", path = "Conformance.rest.resource.profile", description = "A profile id invoked in a conformance statement", type = "reference") + public static final String SP_PROFILE = "profile"; @SearchParamDefinition(name="format", path="Conformance.format", description="formats supported (xml | json | mime type)", type="token" ) public static final String SP_FORMAT = "format"; - @SearchParamDefinition(name="description", path="Conformance.description", description="Text search in the description of the conformance statement", type="string" ) - public static final String SP_DESCRIPTION = "description"; - @SearchParamDefinition(name="fhirversion", path="Conformance.version", description="The version of FHIR", type="token" ) - public static final String SP_FHIRVERSION = "fhirversion"; + @SearchParamDefinition(name = "description", path = "Conformance.description", description = "Text search in the description of the conformance statement", type = "string") + public static final String SP_DESCRIPTION = "description"; + @SearchParamDefinition(name = "fhirversion", path = "Conformance.version", description = "The version of FHIR", type = "token") + public static final String SP_FHIRVERSION = "fhirversion"; @SearchParamDefinition(name="version", path="Conformance.version", description="The version identifier of the conformance statement", type="token" ) public static final String SP_VERSION = "version"; - @SearchParamDefinition(name="supported-profile", path="Conformance.profile", description="Profiles supported by the system", type="reference" ) - public static final String SP_SUPPORTEDPROFILE = "supported-profile"; + @SearchParamDefinition(name = "supported-profile", path = "Conformance.profile", description = "Profiles supported by the system", type = "reference") + public static final String SP_SUPPORTEDPROFILE = "supported-profile"; @SearchParamDefinition(name="mode", path="Conformance.rest.mode", description="Mode - restful (server/client) or messaging (sender/receiver)", type="token" ) public static final String SP_MODE = "mode"; - @SearchParamDefinition(name="security", path="Conformance.rest.security", description="Information about security of implementation", type="token" ) - public static final String SP_SECURITY = "security"; + @SearchParamDefinition(name = "security", path = "Conformance.rest.security", description = "Information about security of implementation", type = "token") + public static final String SP_SECURITY = "security"; @SearchParamDefinition(name="name", path="Conformance.name", description="Name of the conformance statement", type="string" ) public static final String SP_NAME = "name"; - @SearchParamDefinition(name="publisher", path="Conformance.publisher", description="Name of the publisher of the conformance statement", type="string" ) - public static final String SP_PUBLISHER = "publisher"; - @SearchParamDefinition(name="event", path="Conformance.messaging.event.code", description="Event code in a conformance statement", type="token" ) - public static final String SP_EVENT = "event"; - @SearchParamDefinition(name="status", path="Conformance.status", description="The current status of the conformance statement", type="token" ) - public static final String SP_STATUS = "status"; + @SearchParamDefinition(name = "publisher", path = "Conformance.publisher", description = "Name of the publisher of the conformance statement", type = "string") + public static final String SP_PUBLISHER = "publisher"; + @SearchParamDefinition(name = "event", path = "Conformance.messaging.event.code", description = "Event code in a conformance statement", type = "token") + public static final String SP_EVENT = "event"; + @SearchParamDefinition(name = "status", path = "Conformance.status", description = "The current status of the conformance statement", type = "token") + public static final String SP_STATUS = "status"; } diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Constants.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Constants.java index b99b1af2756..1838393b536 100644 --- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Constants.java +++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Constants.java @@ -35,6 +35,6 @@ package org.hl7.fhir.instance.model; public class Constants { public final static String VERSION = "0.4.0"; - public final static String REVISION = "4117"; - public final static String DATE = "Wed Feb 18 12:09:23 EST 2015"; + public final static String REVISION = "4117"; + public final static String DATE = "Wed Feb 18 12:09:23 EST 2015"; } diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/ContactPoint.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/ContactPoint.java index 91571b84f9c..e8fabd25cec 100644 --- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/ContactPoint.java +++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/ContactPoint.java @@ -41,7 +41,7 @@ import org.hl7.fhir.instance.model.annotations.DatatypeDef; * Details for All kinds of technology mediated contact points for a person or organization, including telephone, email, etc. */ @DatatypeDef(name="ContactPoint") -public class ContactPoint extends Type implements ICompositeType { +public class ContactPoint extends Type implements ICompositeType { public enum ContactPointSystem { /** @@ -260,28 +260,28 @@ public class ContactPoint extends Type implements ICompositeType { /** * Telecommunications form for contact point - what communications system is required to make use of the contact. */ - @Child(name="system", type={CodeType.class}, order=0, min=0, max=1) + @Child(name = "system", type = {CodeType.class}, order = 0, min = 0, max = 1) @Description(shortDefinition="phone | fax | email | url", formalDefinition="Telecommunications form for contact point - what communications system is required to make use of the contact." ) protected Enumeration system; /** * The actual contact point details, in a form that is meaningful to the designated communication system (i.e. phone number or email address). */ - @Child(name="value", type={StringType.class}, order=1, min=0, max=1) + @Child(name = "value", type = {StringType.class}, order = 1, min = 0, max = 1) @Description(shortDefinition="The actual contact point details", formalDefinition="The actual contact point details, in a form that is meaningful to the designated communication system (i.e. phone number or email address)." ) protected StringType value; /** * Identifies the purpose for the contact point. */ - @Child(name="use", type={CodeType.class}, order=2, min=0, max=1) + @Child(name = "use", type = {CodeType.class}, order = 2, min = 0, max = 1) @Description(shortDefinition="home | work | temp | old | mobile - purpose of this contact point", formalDefinition="Identifies the purpose for the contact point." ) protected Enumeration use; /** * Time period when the contact point was/is in use. */ - @Child(name="period", type={Period.class}, order=3, min=0, max=1) + @Child(name = "period", type = {Period.class}, order = 3, min = 0, max = 1) @Description(shortDefinition="Time period when the contact point was/is in use", formalDefinition="Time period when the contact point was/is in use." ) protected Period period; diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Contract.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Contract.java index 9a666f4160b..731baca1a56 100644 --- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Contract.java +++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Contract.java @@ -765,14 +765,14 @@ public class Contract extends DomainResource { /** * Unique Id for this contract. */ - @Child(name="identifier", type={Identifier.class}, order=0, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "identifier", type = {Identifier.class}, order = 0, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Contract identifier", formalDefinition="Unique Id for this contract." ) protected List identifier; /** * Who and/or what this is about: typically Patient, Organization, property. */ - @Child(name="subject", type={}, order=1, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "subject", type = {}, order = 1, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Subject", formalDefinition="Who and/or what this is about: typically Patient, Organization, property." ) protected List subject; /** @@ -784,7 +784,7 @@ public class Contract extends DomainResource { /** * A formally or informally recognized grouping of people or organizations formed for the purpose of achieving some form of collective action. Includes companies, institutions, corporations, departments, community groups, healthcare practice groups, etc. */ - @Child(name="authority", type={Organization.class}, order=2, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "authority", type = {Organization.class}, order = 2, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Authority", formalDefinition="A formally or informally recognized grouping of people or organizations formed for the purpose of achieving some form of collective action. Includes companies, institutions, corporations, departments, community groups, healthcare practice groups, etc." ) protected List authority; /** @@ -796,7 +796,7 @@ public class Contract extends DomainResource { /** * A Location includes both incidental locations (a place which is used for healthcare without prior designation or authorization) and dedicated, formally appointed locations. */ - @Child(name="domain", type={Location.class}, order=3, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "domain", type = {Location.class}, order = 3, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Domain", formalDefinition="A Location includes both incidental locations (a place which is used for healthcare without prior designation or authorization) and dedicated, formally appointed locations." ) protected List domain; /** @@ -808,70 +808,70 @@ public class Contract extends DomainResource { /** * Type of contract (Privacy-Security, Agreement, Insurance). */ - @Child(name="type", type={CodeableConcept.class}, order=4, min=0, max=1) + @Child(name = "type", type = {CodeableConcept.class}, order = 4, min = 0, max = 1) @Description(shortDefinition="Type of contract", formalDefinition="Type of contract (Privacy-Security, Agreement, Insurance)." ) protected CodeableConcept type; /** * More specific type of contract (Privacy, Disclosure-Authorization, Advanced-Directive, DNR, Authorization-to-Treat). */ - @Child(name="subtype", type={CodeableConcept.class}, order=5, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "subtype", type = {CodeableConcept.class}, order = 5, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Subtype of contract", formalDefinition="More specific type of contract (Privacy, Disclosure-Authorization, Advanced-Directive, DNR, Authorization-to-Treat)." ) protected List subtype; /** * When this was issued. */ - @Child(name="issued", type={DateTimeType.class}, order=6, min=0, max=1) + @Child(name = "issued", type = {DateTimeType.class}, order = 6, min = 0, max = 1) @Description(shortDefinition="When this was issued", formalDefinition="When this was issued." ) protected DateTimeType issued; /** * Relevant time/time-period when applicable. */ - @Child(name="applies", type={Period.class}, order=7, min=0, max=1) + @Child(name = "applies", type = {Period.class}, order = 7, min = 0, max = 1) @Description(shortDefinition="Effective time", formalDefinition="Relevant time/time-period when applicable." ) protected Period applies; /** * The number of repetitions of a service or product. */ - @Child(name="quantity", type={Quantity.class}, order=8, min=0, max=1) + @Child(name = "quantity", type = {Quantity.class}, order = 8, min = 0, max = 1) @Description(shortDefinition="Count of Products or Services", formalDefinition="The number of repetitions of a service or product." ) protected Quantity quantity; /** * The unit price product. */ - @Child(name="unitPrice", type={Money.class}, order=9, min=0, max=1) + @Child(name = "unitPrice", type = {Money.class}, order = 9, min = 0, max = 1) @Description(shortDefinition="Fee, charge or cost per point", formalDefinition="The unit price product." ) protected Money unitPrice; /** * A real number that represents a multiplier used in determining the overall value of services delivered and/or goods received. The concept of a Factor allows for a discount or surcharge multiplier to be applied to a monetary amount. */ - @Child(name="factor", type={DecimalType.class}, order=10, min=0, max=1) + @Child(name = "factor", type = {DecimalType.class}, order = 10, min = 0, max = 1) @Description(shortDefinition="Price scaling factor", formalDefinition="A real number that represents a multiplier used in determining the overall value of services delivered and/or goods received. The concept of a Factor allows for a discount or surcharge multiplier to be applied to a monetary amount." ) protected DecimalType factor; /** * An amount that expresses the weighting (based on difficulty, cost and/or resource intensiveness) associated with the good or service delivered. The concept of Points allows for assignment of point values for services and/or goods, such that a monetary amount can be assigned to each point. */ - @Child(name="points", type={DecimalType.class}, order=11, min=0, max=1) + @Child(name = "points", type = {DecimalType.class}, order = 11, min = 0, max = 1) @Description(shortDefinition="Difficulty scaling factor", formalDefinition="An amount that expresses the weighting (based on difficulty, cost and/or resource intensiveness) associated with the good or service delivered. The concept of Points allows for assignment of point values for services and/or goods, such that a monetary amount can be assigned to each point." ) protected DecimalType points; /** * The quantity times the unit price for an additional service or product or charge. For example, the formula: unit Quantity * unit Price (Cost per Point) * factor Number * points = net Amount. Quantity, factor and points are assumed to be 1 if not supplied. */ - @Child(name="net", type={Money.class}, order=12, min=0, max=1) + @Child(name = "net", type = {Money.class}, order = 12, min = 0, max = 1) @Description(shortDefinition="Total item cost", formalDefinition="The quantity times the unit price for an additional service or product or charge. For example, the formula: unit Quantity * unit Price (Cost per Point) * factor Number * points = net Amount. Quantity, factor and points are assumed to be 1 if not supplied." ) protected Money net; /** * Contract author or responsible party. */ - @Child(name="author", type={Practitioner.class, RelatedPerson.class, Organization.class}, order=13, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "author", type = {Practitioner.class, RelatedPerson.class, Organization.class}, order = 13, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Contract author or responsible party", formalDefinition="Contract author or responsible party." ) protected List author; /** @@ -883,7 +883,7 @@ public class Contract extends DomainResource { /** * First Party to the contract, may be the party who confers or delegates the rights defined in the contract. */ - @Child(name="grantor", type={Practitioner.class, RelatedPerson.class, Organization.class, Patient.class}, order=14, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "grantor", type = {Practitioner.class, RelatedPerson.class, Organization.class, Patient.class}, order = 14, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="First Party or delegator", formalDefinition="First Party to the contract, may be the party who confers or delegates the rights defined in the contract." ) protected List grantor; /** @@ -895,7 +895,7 @@ public class Contract extends DomainResource { /** * The Second party to the contract, may be the party who accepts obligations or be that to which rights are delegated. */ - @Child(name="grantee", type={Practitioner.class, RelatedPerson.class, Organization.class, Patient.class}, order=15, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "grantee", type = {Practitioner.class, RelatedPerson.class, Organization.class, Patient.class}, order = 15, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Second Party or delegatee", formalDefinition="The Second party to the contract, may be the party who accepts obligations or be that to which rights are delegated." ) protected List grantee; /** @@ -907,7 +907,7 @@ public class Contract extends DomainResource { /** * Who witnesses the contract. */ - @Child(name="witness", type={Practitioner.class, RelatedPerson.class, Patient.class}, order=16, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "witness", type = {Practitioner.class, RelatedPerson.class, Patient.class}, order = 16, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Witness to the contract", formalDefinition="Who witnesses the contract." ) protected List witness; /** @@ -919,7 +919,7 @@ public class Contract extends DomainResource { /** * First Party to the contract, may be the party who confers or delegates the rights defined in the contract. */ - @Child(name="executor", type={Practitioner.class, RelatedPerson.class, Organization.class, Patient.class}, order=17, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "executor", type = {Practitioner.class, RelatedPerson.class, Organization.class, Patient.class}, order = 17, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Trustee", formalDefinition="First Party to the contract, may be the party who confers or delegates the rights defined in the contract." ) protected List executor; /** @@ -931,7 +931,7 @@ public class Contract extends DomainResource { /** * First Party to the contract, may be the party who confers or delegates the rights defined in the contract. */ - @Child(name="notary", type={Practitioner.class, RelatedPerson.class, Organization.class, Patient.class}, order=18, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "notary", type = {Practitioner.class, RelatedPerson.class, Organization.class, Patient.class}, order = 18, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Notary Public", formalDefinition="First Party to the contract, may be the party who confers or delegates the rights defined in the contract." ) protected List notary; /** @@ -943,70 +943,70 @@ public class Contract extends DomainResource { /** * List or contract signatures. */ - @Child(name="signer", type={}, order=19, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "signer", type = {}, order = 19, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Signer", formalDefinition="List or contract signatures." ) protected List signer; /** * The itemized terms of the contract. The legal clause or conditions of the Contract that requires or prevents either one or both parties to perform a particular requirement by some specified time. */ - @Child(name="term", type={}, order=20, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "term", type = {}, order = 20, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="The terms of the Contract", formalDefinition="The itemized terms of the contract. The legal clause or conditions of the Contract that requires or prevents either one or both parties to perform a particular requirement by some specified time." ) protected List term; /** * Legally binding contract. */ - @Child(name="binding", type={Attachment.class}, order=21, min=0, max=1) + @Child(name = "binding", type = {Attachment.class}, order = 21, min = 0, max = 1) @Description(shortDefinition="Binding Contract", formalDefinition="Legally binding contract." ) protected Attachment binding; /** * Relevant time/time-period when applicable. */ - @Child(name="bindingDateTime", type={DateTimeType.class}, order=22, min=0, max=1) + @Child(name = "bindingDateTime", type = {DateTimeType.class}, order = 22, min = 0, max = 1) @Description(shortDefinition="Binding Contract effective time", formalDefinition="Relevant time/time-period when applicable." ) protected DateTimeType bindingDateTime; /** * Friendly Human readable form (might be a reference to the UI used to capture the contract). */ - @Child(name="friendly", type={Attachment.class}, order=23, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "friendly", type = {Attachment.class}, order = 23, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Human readable contract text", formalDefinition="Friendly Human readable form (might be a reference to the UI used to capture the contract)." ) protected List friendly; /** * Relevant time/time-period when applicable. */ - @Child(name="friendlyDateTime", type={DateTimeType.class}, order=24, min=0, max=1) + @Child(name = "friendlyDateTime", type = {DateTimeType.class}, order = 24, min = 0, max = 1) @Description(shortDefinition="Human readable contract text effective time", formalDefinition="Relevant time/time-period when applicable." ) protected DateTimeType friendlyDateTime; /** * Legal text in Human readable form. */ - @Child(name="legal", type={Attachment.class}, order=25, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "legal", type = {Attachment.class}, order = 25, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Legal contract text", formalDefinition="Legal text in Human readable form." ) protected List legal; /** * Relevant time/time-period when applicable. */ - @Child(name="legalDateTime", type={DateTimeType.class}, order=26, min=0, max=1) + @Child(name = "legalDateTime", type = {DateTimeType.class}, order = 26, min = 0, max = 1) @Description(shortDefinition="Legal contract text date time", formalDefinition="Relevant time/time-period when applicable." ) protected DateTimeType legalDateTime; /** * Computable Policy rules (e.g. XACML, DKAL, SecPal). */ - @Child(name="rule", type={Attachment.class}, order=27, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "rule", type = {Attachment.class}, order = 27, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Computable contract text", formalDefinition="Computable Policy rules (e.g. XACML, DKAL, SecPal)." ) protected List rule; /** * Relevant time/time-period when applicable. */ - @Child(name="ruleDateTime", type={DateTimeType.class}, order=28, min=0, max=1) + @Child(name = "ruleDateTime", type = {DateTimeType.class}, order = 28, min = 0, max = 1) @Description(shortDefinition="Computable contract text effect time", formalDefinition="Relevant time/time-period when applicable." ) protected DateTimeType ruleDateTime; @@ -2279,8 +2279,8 @@ public class Contract extends DomainResource { @SearchParamDefinition(name="subject", path="Contract.subject", description="The identity of the target of the contract", type="reference" ) public static final String SP_SUBJECT = "subject"; - @SearchParamDefinition(name="patient", path="Contract.subject", description="The identity of the target of the contract (if a patient)", type="reference" ) - public static final String SP_PATIENT = "patient"; + @SearchParamDefinition(name = "patient", path = "Contract.subject", description = "The identity of the target of the contract (if a patient)", type = "reference") + public static final String SP_PATIENT = "patient"; } diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Contraindication.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Contraindication.java index dab774fee1b..33fe7c57768 100644 --- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Contraindication.java +++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Contraindication.java @@ -248,7 +248,7 @@ public class Contraindication extends DomainResource { /** * Indicates the patient whose record the contraindication is associated with. */ - @Child(name="patient", type={Patient.class}, order=0, min=0, max=1) + @Child(name = "patient", type = {Patient.class}, order = 0, min = 0, max = 1) @Description(shortDefinition="Associated patient", formalDefinition="Indicates the patient whose record the contraindication is associated with." ) protected Reference patient; @@ -260,21 +260,21 @@ public class Contraindication extends DomainResource { /** * Identifies the general type of issue identified. */ - @Child(name="category", type={CodeableConcept.class}, order=1, min=0, max=1) + @Child(name = "category", type = {CodeableConcept.class}, order = 1, min = 0, max = 1) @Description(shortDefinition="E.g. Drug-drug, duplicate therapy, etc.", formalDefinition="Identifies the general type of issue identified." ) protected CodeableConcept category; /** * Indicates the degree of importance associated with the identified issue based on the potential impact on the patient. */ - @Child(name="severity", type={CodeType.class}, order=2, min=0, max=1) + @Child(name = "severity", type = {CodeType.class}, order = 2, min = 0, max = 1) @Description(shortDefinition="high | medium | low", formalDefinition="Indicates the degree of importance associated with the identified issue based on the potential impact on the patient." ) protected CodeType severity; /** * Indicates the resource representing the current activity or proposed activity that. */ - @Child(name="implicated", type={}, order=3, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "implicated", type = {}, order = 3, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Problem resource", formalDefinition="Indicates the resource representing the current activity or proposed activity that." ) protected List implicated; /** @@ -286,21 +286,21 @@ public class Contraindication extends DomainResource { /** * A textual explanation of the contraindication. */ - @Child(name="detail", type={StringType.class}, order=4, min=0, max=1) + @Child(name = "detail", type = {StringType.class}, order = 4, min = 0, max = 1) @Description(shortDefinition="Description and context", formalDefinition="A textual explanation of the contraindication." ) protected StringType detail; /** * The date or date-time when the contraindication was initially identified. */ - @Child(name="date", type={DateTimeType.class}, order=5, min=0, max=1) + @Child(name = "date", type = {DateTimeType.class}, order = 5, min = 0, max = 1) @Description(shortDefinition="When identified", formalDefinition="The date or date-time when the contraindication was initially identified." ) protected DateTimeType date; /** * Identifies the provider or software that identified the. */ - @Child(name="author", type={Practitioner.class, Device.class}, order=6, min=0, max=1) + @Child(name = "author", type = {Practitioner.class, Device.class}, order = 6, min = 0, max = 1) @Description(shortDefinition="Who found issue?", formalDefinition="Identifies the provider or software that identified the." ) protected Reference author; @@ -312,21 +312,21 @@ public class Contraindication extends DomainResource { /** * Business identifier associated with the contraindication record. */ - @Child(name="identifier", type={Identifier.class}, order=7, min=0, max=1) + @Child(name = "identifier", type = {Identifier.class}, order = 7, min = 0, max = 1) @Description(shortDefinition="Unique id for the contraindication", formalDefinition="Business identifier associated with the contraindication record." ) protected Identifier identifier; /** * The literature, knowledge-base or similar reference that describes the propensity for the contraindication identified. */ - @Child(name="reference", type={UriType.class}, order=8, min=0, max=1) + @Child(name = "reference", type = {UriType.class}, order = 8, min = 0, max = 1) @Description(shortDefinition="Authority for issue", formalDefinition="The literature, knowledge-base or similar reference that describes the propensity for the contraindication identified." ) protected UriType reference; /** * Indicates an action that has been taken or is committed to to reduce or eliminate the likelihood of the risk identified by the contraindicaiton from manifesting. Can also reflect an observation of known mitigating factors that may reduce/eliminate the need for any action. */ - @Child(name="mitigation", type={}, order=9, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "mitigation", type = {}, order = 9, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Step taken to address", formalDefinition="Indicates an action that has been taken or is committed to to reduce or eliminate the likelihood of the risk identified by the contraindicaiton from manifesting. Can also reflect an observation of known mitigating factors that may reduce/eliminate the need for any action." ) protected List mitigation; @@ -815,11 +815,11 @@ public class Contraindication extends DomainResource { public static final String SP_DATE = "date"; @SearchParamDefinition(name="identifier", path="Contraindication.identifier", description="Unique id for the contraindication", type="token" ) public static final String SP_IDENTIFIER = "identifier"; - @SearchParamDefinition(name="patient", path="Contraindication.patient", description="Associated patient", type="reference" ) + @SearchParamDefinition(name = "patient", path = "Contraindication.patient", description = "Associated patient", type = "reference") public static final String SP_PATIENT = "patient"; - @SearchParamDefinition(name="implicated", path="Contraindication.implicated", description="Problem resource", type="reference" ) + @SearchParamDefinition(name = "implicated", path = "Contraindication.implicated", description = "Problem resource", type = "reference") public static final String SP_IMPLICATED = "implicated"; - @SearchParamDefinition(name="category", path="Contraindication.category", description="E.g. Drug-drug, duplicate therapy, etc.", type="token" ) + @SearchParamDefinition(name = "category", path = "Contraindication.category", description = "E.g. Drug-drug, duplicate therapy, etc.", type = "token") public static final String SP_CATEGORY = "category"; } diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Coverage.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Coverage.java index e4b428ffe38..86505890b3a 100644 --- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Coverage.java +++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Coverage.java @@ -48,7 +48,7 @@ public class Coverage extends DomainResource { /** * The program or plan underwriter or payor. */ - @Child(name="issuer", type={Organization.class}, order=0, min=0, max=1) + @Child(name = "issuer", type = {Organization.class}, order = 0, min = 0, max = 1) @Description(shortDefinition="An identifier for the plan issuer", formalDefinition="The program or plan underwriter or payor." ) protected Reference issuer; @@ -60,63 +60,63 @@ public class Coverage extends DomainResource { /** * Time period during which the coverage is in force. A missing start date indicates the start date isn't known, a missing end date means the coverage is continuing to be in force. */ - @Child(name="period", type={Period.class}, order=1, min=0, max=1) + @Child(name = "period", type = {Period.class}, order = 1, min = 0, max = 1) @Description(shortDefinition="Coverage start and end dates", formalDefinition="Time period during which the coverage is in force. A missing start date indicates the start date isn't known, a missing end date means the coverage is continuing to be in force." ) protected Period period; /** * The type of coverage: social program, medical plan, accident coverage (workers compensation, auto), group health. */ - @Child(name="type", type={Coding.class}, order=2, min=0, max=1) + @Child(name = "type", type = {Coding.class}, order = 2, min = 0, max = 1) @Description(shortDefinition="Type of coverage", formalDefinition="The type of coverage: social program, medical plan, accident coverage (workers compensation, auto), group health." ) protected Coding type; /** * The main (and possibly only) identifier for the coverage - often referred to as a Subscriber Id, Certificate number or Personal Health Number or Case ID. */ - @Child(name="identifier", type={Identifier.class}, order=3, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "identifier", type = {Identifier.class}, order = 3, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="The primary coverage ID", formalDefinition="The main (and possibly only) identifier for the coverage - often referred to as a Subscriber Id, Certificate number or Personal Health Number or Case ID." ) protected List identifier; /** * Identifies a style or collective of coverage issues by the underwriter, for example may be used to identify a class of coverage or employer group. May also be referred to as a Policy or Group ID. */ - @Child(name="group", type={StringType.class}, order=4, min=0, max=1) + @Child(name = "group", type = {StringType.class}, order = 4, min = 0, max = 1) @Description(shortDefinition="An identifier for the group", formalDefinition="Identifies a style or collective of coverage issues by the underwriter, for example may be used to identify a class of coverage or employer group. May also be referred to as a Policy or Group ID." ) protected StringType group; /** * Identifies a style or collective of coverage issues by the underwriter, for example may be used to identify a class of coverage or employer group. May also be referred to as a Policy or Group ID. */ - @Child(name="plan", type={StringType.class}, order=5, min=0, max=1) + @Child(name = "plan", type = {StringType.class}, order = 5, min = 0, max = 1) @Description(shortDefinition="An identifier for the plan", formalDefinition="Identifies a style or collective of coverage issues by the underwriter, for example may be used to identify a class of coverage or employer group. May also be referred to as a Policy or Group ID." ) protected StringType plan; /** * Identifies a sub-style or sub-collective of coverage issues by the underwriter, for example may be used to identify a specific employer group within a class of employers. May be referred to as a Section or Division ID. */ - @Child(name="subplan", type={StringType.class}, order=6, min=0, max=1) + @Child(name = "subplan", type = {StringType.class}, order = 6, min = 0, max = 1) @Description(shortDefinition="An identifier for the subsection of the plan", formalDefinition="Identifies a sub-style or sub-collective of coverage issues by the underwriter, for example may be used to identify a specific employer group within a class of employers. May be referred to as a Section or Division ID." ) protected StringType subplan; /** * A unique identifier for a dependent under the coverage. */ - @Child(name="dependent", type={IntegerType.class}, order=7, min=0, max=1) + @Child(name = "dependent", type = {IntegerType.class}, order = 7, min = 0, max = 1) @Description(shortDefinition="The dependent number", formalDefinition="A unique identifier for a dependent under the coverage." ) protected IntegerType dependent; /** * An optional counter for a particular instance of the identified coverage which increments upon each renewal. */ - @Child(name="sequence", type={IntegerType.class}, order=8, min=0, max=1) + @Child(name = "sequence", type = {IntegerType.class}, order = 8, min = 0, max = 1) @Description(shortDefinition="The plan instance or sequence counter", formalDefinition="An optional counter for a particular instance of the identified coverage which increments upon each renewal." ) protected IntegerType sequence; /** * The party who 'owns' the insurance contractual relationship to the policy or to whom the benefit of the policy is due. */ - @Child(name="subscriber", type={Patient.class}, order=9, min=0, max=1) + @Child(name = "subscriber", type = {Patient.class}, order = 9, min = 0, max = 1) @Description(shortDefinition="Plan holder information", formalDefinition="The party who 'owns' the insurance contractual relationship to the policy or to whom the benefit of the policy is due." ) protected Reference subscriber; @@ -128,14 +128,14 @@ public class Coverage extends DomainResource { /** * The identifier for a community of providers. */ - @Child(name="network", type={Identifier.class}, order=10, min=0, max=1) + @Child(name = "network", type = {Identifier.class}, order = 10, min = 0, max = 1) @Description(shortDefinition="Insurer network", formalDefinition="The identifier for a community of providers." ) protected Identifier network; /** * The policy(s) which constitute this insurance coverage. */ - @Child(name="contract", type={Contract.class}, order=11, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "contract", type = {Contract.class}, order = 11, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Contract details", formalDefinition="The policy(s) which constitute this insurance coverage." ) protected List contract; /** @@ -712,20 +712,20 @@ public class Coverage extends DomainResource { return ResourceType.Coverage; } - @SearchParamDefinition(name="identifier", path="Coverage.identifier", description="The primary identifier of the insured", type="token" ) - public static final String SP_IDENTIFIER = "identifier"; + @SearchParamDefinition(name = "identifier", path = "Coverage.identifier", description = "The primary identifier of the insured", type = "token") + public static final String SP_IDENTIFIER = "identifier"; @SearchParamDefinition(name="sequence", path="Coverage.sequence", description="Sequence number", type="token" ) public static final String SP_SEQUENCE = "sequence"; - @SearchParamDefinition(name="subplan", path="Coverage.subplan", description="Sub-plan identifier", type="token" ) - public static final String SP_SUBPLAN = "subplan"; - @SearchParamDefinition(name="type", path="Coverage.type", description="The kind of coverage", type="token" ) - public static final String SP_TYPE = "type"; - @SearchParamDefinition(name="plan", path="Coverage.plan", description="A plan or policy identifier", type="token" ) - public static final String SP_PLAN = "plan"; + @SearchParamDefinition(name = "subplan", path = "Coverage.subplan", description = "Sub-plan identifier", type = "token") + public static final String SP_SUBPLAN = "subplan"; + @SearchParamDefinition(name = "type", path = "Coverage.type", description = "The kind of coverage", type = "token") + public static final String SP_TYPE = "type"; + @SearchParamDefinition(name = "plan", path = "Coverage.plan", description = "A plan or policy identifier", type = "token") + public static final String SP_PLAN = "plan"; @SearchParamDefinition(name="dependent", path="Coverage.dependent", description="Dependent number", type="token" ) public static final String SP_DEPENDENT = "dependent"; - @SearchParamDefinition(name="issuer", path="Coverage.issuer", description="The identity of the insurer", type="reference" ) - public static final String SP_ISSUER = "issuer"; + @SearchParamDefinition(name = "issuer", path = "Coverage.issuer", description = "The identity of the insurer", type = "reference") + public static final String SP_ISSUER = "issuer"; @SearchParamDefinition(name="group", path="Coverage.group", description="Group identifier", type="token" ) public static final String SP_GROUP = "group"; diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/DataElement.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/DataElement.java index 8f299c5b446..08a4c90ce5e 100644 --- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/DataElement.java +++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/DataElement.java @@ -964,154 +964,154 @@ public class DataElement extends DomainResource { /** * The identifier that is used to identify this data element when it is referenced in a Profile, Questionnaire or an instance. */ - @Child(name="identifier", type={Identifier.class}, order=0, min=0, max=1) + @Child(name = "identifier", type = {Identifier.class}, order = 0, min = 0, max = 1) @Description(shortDefinition="Logical id to reference this data element", formalDefinition="The identifier that is used to identify this data element when it is referenced in a Profile, Questionnaire or an instance." ) protected Identifier identifier; /** * The identifier that is used to identify this version of the data element when it is referenced in a Profile, Questionnaire or instance. This is an arbitrary value managed by the definition author manually. */ - @Child(name="version", type={StringType.class}, order=1, min=0, max=1) + @Child(name = "version", type = {StringType.class}, order = 1, min = 0, max = 1) @Description(shortDefinition="Logical id for this version of the data element", formalDefinition="The identifier that is used to identify this version of the data element when it is referenced in a Profile, Questionnaire or instance. This is an arbitrary value managed by the definition author manually." ) protected StringType version; /** * Details of the individual or organization who accepts responsibility for publishing the data element. */ - @Child(name="publisher", type={StringType.class}, order=2, min=0, max=1) + @Child(name = "publisher", type = {StringType.class}, order = 2, min = 0, max = 1) @Description(shortDefinition="Name of the publisher (Organization or individual)", formalDefinition="Details of the individual or organization who accepts responsibility for publishing the data element." ) protected StringType publisher; /** * Contact details to assist a user in finding and communicating with the publisher. */ - @Child(name="telecom", type={ContactPoint.class}, order=3, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "telecom", type = {ContactPoint.class}, order = 3, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Contact information of the publisher", formalDefinition="Contact details to assist a user in finding and communicating with the publisher." ) protected List telecom; /** * The status of the data element. */ - @Child(name="status", type={CodeType.class}, order=4, min=1, max=1) + @Child(name = "status", type = {CodeType.class}, order = 4, min = 1, max = 1) @Description(shortDefinition="draft | active | retired", formalDefinition="The status of the data element." ) protected Enumeration status; /** * The date that the status for this business version of the data element became effective. (I.e. Date the draft was created, date element became active or date element became retired). */ - @Child(name="date", type={DateTimeType.class}, order=5, min=0, max=1) + @Child(name = "date", type = {DateTimeType.class}, order = 5, min = 0, max = 1) @Description(shortDefinition="Date for this version of the data element", formalDefinition="The date that the status for this business version of the data element became effective. (I.e. Date the draft was created, date element became active or date element became retired)." ) protected DateTimeType date; /** * The term used by humans to refer to the data element. Should ideally be unique within the context in which the data element is expected to be used. */ - @Child(name="name", type={StringType.class}, order=6, min=0, max=1) + @Child(name = "name", type = {StringType.class}, order = 6, min = 0, max = 1) @Description(shortDefinition="Descriptive label for this element definition", formalDefinition="The term used by humans to refer to the data element. Should ideally be unique within the context in which the data element is expected to be used." ) protected StringType name; /** * A set of terms from external terminologies that may be used to assist with indexing and searching of data element definitions. */ - @Child(name="category", type={CodeableConcept.class}, order=7, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "category", type = {CodeableConcept.class}, order = 7, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Assist with indexing and finding", formalDefinition="A set of terms from external terminologies that may be used to assist with indexing and searching of data element definitions." ) protected List category; /** * Identifies how precise the data element is in its definition. */ - @Child(name="granularity", type={CodeType.class}, order=8, min=0, max=1) + @Child(name = "granularity", type = {CodeType.class}, order = 8, 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 granularity; /** * A code that provides the meaning for a data element according to a particular terminology. */ - @Child(name="code", type={Coding.class}, order=9, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "code", type = {Coding.class}, order = 9, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Identifying concept", formalDefinition="A code that provides the meaning for a data element according to a particular terminology." ) protected List code; /** * The default/suggested phrasing to use when prompting a human to capture the data element in question form (e.g. In a survey). */ - @Child(name="question", type={StringType.class}, order=10, min=0, max=1) + @Child(name = "question", type = {StringType.class}, order = 10, min = 0, max = 1) @Description(shortDefinition="Prompt for element phrased as question", formalDefinition="The default/suggested phrasing to use when prompting a human to capture the data element in question form (e.g. In a survey)." ) protected StringType question; /** * The text to display beside the element indicating its meaning or to use to prompt for the element in a user display or form. */ - @Child(name="label", type={StringType.class}, order=11, min=0, max=1) + @Child(name = "label", type = {StringType.class}, order = 11, min = 0, max = 1) @Description(shortDefinition="Name for element to display with or prompt for element", formalDefinition="The text to display beside the element indicating its meaning or to use to prompt for the element in a user display or form." ) protected StringType label; /** * Provides a complete explanation of the meaning of the data element for human readability. */ - @Child(name="definition", type={StringType.class}, order=12, min=0, max=1) + @Child(name = "definition", type = {StringType.class}, order = 12, min = 0, max = 1) @Description(shortDefinition="Definition/description as narrative text", formalDefinition="Provides a complete explanation of the meaning of the data element for human readability." ) protected StringType definition; /** * Comments about the use of the element, including notes about how to use the data properly, exceptions to proper use, etc. */ - @Child(name="comments", type={StringType.class}, order=13, min=0, max=1) + @Child(name = "comments", type = {StringType.class}, order = 13, min = 0, max = 1) @Description(shortDefinition="Comments about the use of this element", formalDefinition="Comments about the use of the element, including notes about how to use the data properly, exceptions to proper use, etc." ) protected StringType comments; /** * Explains why this element is needed and why it's been constrained as it has. */ - @Child(name="requirements", type={StringType.class}, order=14, min=0, max=1) + @Child(name = "requirements", type = {StringType.class}, order = 14, min = 0, max = 1) @Description(shortDefinition="Why is this needed?", formalDefinition="Explains why this element is needed and why it's been constrained as it has." ) protected StringType requirements; /** * Identifies additional names by which this element might also be known. */ - @Child(name="synonym", type={StringType.class}, order=15, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "synonym", type = {StringType.class}, order = 15, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Other names", formalDefinition="Identifies additional names by which this element might also be known." ) protected List synonym; /** * The FHIR data type that is the type for data that corresponds to this data element. */ - @Child(name="type", type={CodeType.class}, order=16, min=0, max=1) + @Child(name = "type", type = {CodeType.class}, order = 16, min = 0, max = 1) @Description(shortDefinition="Name of Data type", formalDefinition="The FHIR data type that is the type for data that corresponds to this data element." ) protected CodeType type; /** * A sample value for this element demonstrating the type of information that would typically be captured. */ - @Child(name="example", type={}, order=17, min=0, max=1) + @Child(name = "example", type = {}, order = 17, min = 0, max = 1) @Description(shortDefinition="Example value: [as defined for type]", formalDefinition="A sample value for this element demonstrating the type of information that would typically be captured." ) protected org.hl7.fhir.instance.model.Type example; /** * Indicates the shortest length that SHALL be supported by conformant instances without truncation. */ - @Child(name="maxLength", type={IntegerType.class}, order=18, min=0, max=1) + @Child(name = "maxLength", type = {IntegerType.class}, order = 18, min = 0, max = 1) @Description(shortDefinition="Length for strings", formalDefinition="Indicates the shortest length that SHALL be supported by conformant instances without truncation." ) protected IntegerType maxLength; /** * Identifies the units of measure in which the data element should be captured or expressed. */ - @Child(name="units", type={CodeableConcept.class, ValueSet.class}, order=19, min=0, max=1) + @Child(name = "units", type = {CodeableConcept.class, ValueSet.class}, order = 19, min = 0, max = 1) @Description(shortDefinition="Units to use for measured value", formalDefinition="Identifies the units of measure in which the data element should be captured or expressed." ) protected Type units; /** * Binds to a value set if this element is coded (code, Coding, CodeableConcept). */ - @Child(name="binding", type={}, order=20, min=0, max=1) + @Child(name = "binding", type = {}, order = 20, min = 0, max = 1) @Description(shortDefinition="ValueSet details if this is coded", formalDefinition="Binds to a value set if this element is coded (code, Coding, CodeableConcept)." ) protected DataElementBindingComponent binding; /** * Identifies a concept from an external specification that roughly corresponds to this element. */ - @Child(name="mapping", type={}, order=21, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "mapping", type = {}, order = 21, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Map element to another set of definitions", formalDefinition="Identifies a concept from an external specification that roughly corresponds to this element." ) protected List mapping; @@ -2163,20 +2163,20 @@ public class DataElement extends DomainResource { public static final String SP_DATE = "date"; @SearchParamDefinition(name="identifier", path="DataElement.identifier", description="The identifier of the data element", type="token" ) public static final String SP_IDENTIFIER = "identifier"; - @SearchParamDefinition(name="code", path="DataElement.code", description="A code for the data element (server may choose to do subsumption)", type="token" ) - public static final String SP_CODE = "code"; - @SearchParamDefinition(name="name", path="DataElement.name", description="Name of the data element", type="string" ) - public static final String SP_NAME = "name"; + @SearchParamDefinition(name = "code", path = "DataElement.code", description = "A code for the data element (server may choose to do subsumption)", type = "token") + public static final String SP_CODE = "code"; + @SearchParamDefinition(name = "name", path = "DataElement.name", description = "Name of the data element", type = "string") + public static final String SP_NAME = "name"; @SearchParamDefinition(name="publisher", path="DataElement.publisher", description="Name of the publisher of the data element", type="string" ) public static final String SP_PUBLISHER = "publisher"; - @SearchParamDefinition(name="description", path="DataElement.definition", description="Text search in the description of the data element", type="string" ) - public static final String SP_DESCRIPTION = "description"; - @SearchParamDefinition(name="category", path="DataElement.category", description="A category assigned to the data element (server may choose to do subsumption)", type="token" ) - public static final String SP_CATEGORY = "category"; + @SearchParamDefinition(name = "description", path = "DataElement.definition", description = "Text search in the description of the data element", type = "string") + public static final String SP_DESCRIPTION = "description"; + @SearchParamDefinition(name = "category", path = "DataElement.category", description = "A category assigned to the data element (server may choose to do subsumption)", type = "token") + public static final String SP_CATEGORY = "category"; @SearchParamDefinition(name="version", path="DataElement.version", description="The version identifier of the data element", type="string" ) public static final String SP_VERSION = "version"; - @SearchParamDefinition(name="status", path="DataElement.status", description="The current status of the data element", type="token" ) - public static final String SP_STATUS = "status"; + @SearchParamDefinition(name = "status", path = "DataElement.status", description = "The current status of the data element", type = "token") + public static final String SP_STATUS = "status"; } diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Device.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Device.java index 9e563e658ff..2c6f33e0e8b 100644 --- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Device.java +++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Device.java @@ -48,63 +48,63 @@ public class Device extends DomainResource { /** * Unique instance identifiers assigned to a device by organizations like manufacturers, owners or regulatory agencies. If the identifier identifies the type of device, Device.type should be used. An example is the FDA Mandated Unique Device Identifier (UDI) which identifies an instance of a device uniquely if the serial number is present, . - see http://www.fda.gov/MedicalDevices/DeviceRegulationandGuidance/UniqueDeviceIdentification/default.htm. */ - @Child(name="identifier", type={Identifier.class}, order=0, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "identifier", type = {Identifier.class}, order = 0, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Instance id from manufacturer, owner, regulatory agencies and others", formalDefinition="Unique instance identifiers assigned to a device by organizations like manufacturers, owners or regulatory agencies. If the identifier identifies the type of device, Device.type should be used. An example is the FDA Mandated Unique Device Identifier (UDI) which identifies an instance of a device uniquely if the serial number is present, . - see http://www.fda.gov/MedicalDevices/DeviceRegulationandGuidance/UniqueDeviceIdentification/default.htm." ) protected List identifier; /** * Code or identifier to identify a kind of device An example is the FDA Mandated Unique Device Identifier (UDI) which identifies a type of a device when the serial number is absent, otherwise it uniquely identifies the device instance and Device.identifier should be used instead of Device.type. - see http://www.fda.gov/MedicalDevices/DeviceRegulationandGuidance/UniqueDeviceIdentification/default.htm. */ - @Child(name="type", type={CodeableConcept.class}, order=1, min=1, max=1) + @Child(name = "type", type = {CodeableConcept.class}, order = 1, min = 1, max = 1) @Description(shortDefinition="What kind of device this is", formalDefinition="Code or identifier to identify a kind of device An example is the FDA Mandated Unique Device Identifier (UDI) which identifies a type of a device when the serial number is absent, otherwise it uniquely identifies the device instance and Device.identifier should be used instead of Device.type. - see http://www.fda.gov/MedicalDevices/DeviceRegulationandGuidance/UniqueDeviceIdentification/default.htm." ) protected CodeableConcept type; /** * A name of the manufacturer. */ - @Child(name="manufacturer", type={StringType.class}, order=2, min=0, max=1) + @Child(name = "manufacturer", type = {StringType.class}, order = 2, min = 0, max = 1) @Description(shortDefinition="Name of device manufacturer", formalDefinition="A name of the manufacturer." ) protected StringType manufacturer; /** * The "model" - an identifier assigned by the manufacturer to identify the product by its type. This number is shared by the all devices sold as the same type. */ - @Child(name="model", type={StringType.class}, order=3, min=0, max=1) + @Child(name = "model", type = {StringType.class}, order = 3, min = 0, max = 1) @Description(shortDefinition="Model id assigned by the manufacturer", formalDefinition="The 'model' - an identifier assigned by the manufacturer to identify the product by its type. This number is shared by the all devices sold as the same type." ) protected StringType model; /** * The version of the device, if the device has multiple releases under the same model, or if the device is software or carries firmware. */ - @Child(name="version", type={StringType.class}, order=4, min=0, max=1) + @Child(name = "version", type = {StringType.class}, order = 4, min = 0, max = 1) @Description(shortDefinition="Version number (i.e. software)", formalDefinition="The version of the device, if the device has multiple releases under the same model, or if the device is software or carries firmware." ) protected StringType version; /** * The Date and time when the device was manufactured. */ - @Child(name="manufactureDate", type={DateTimeType.class}, order=5, min=0, max=1) + @Child(name = "manufactureDate", type = {DateTimeType.class}, order = 5, min = 0, max = 1) @Description(shortDefinition="Manufacture date", formalDefinition="The Date and time when the device was manufactured." ) protected DateTimeType manufactureDate; /** * The date and time beyond which this device is no longer valid or should not be used (if applicable). */ - @Child(name="expiry", type={DateTimeType.class}, order=6, min=0, max=1) + @Child(name = "expiry", type = {DateTimeType.class}, order = 6, min = 0, max = 1) @Description(shortDefinition="Date and time of expiry of this device (if applicable)", formalDefinition="The date and time beyond which this device is no longer valid or should not be used (if applicable)." ) protected DateTimeType expiry; /** * Lot number assigned by the manufacturer. */ - @Child(name="lotNumber", type={StringType.class}, order=7, min=0, max=1) + @Child(name = "lotNumber", type = {StringType.class}, order = 7, min = 0, max = 1) @Description(shortDefinition="Lot number of manufacture", formalDefinition="Lot number assigned by the manufacturer." ) protected StringType lotNumber; /** * An organization that is responsible for the provision and ongoing maintenance of the device. */ - @Child(name="owner", type={Organization.class}, order=8, min=0, max=1) + @Child(name = "owner", type = {Organization.class}, order = 8, min = 0, max = 1) @Description(shortDefinition="Organization responsible for device", formalDefinition="An organization that is responsible for the provision and ongoing maintenance of the device." ) protected Reference owner; @@ -116,7 +116,7 @@ public class Device extends DomainResource { /** * The resource may be found in a literal location (i.e. GPS coordinates), a logical place (i.e. "in/with the patient"), or a coded location. */ - @Child(name="location", type={Location.class}, order=9, min=0, max=1) + @Child(name = "location", type = {Location.class}, order = 9, min = 0, max = 1) @Description(shortDefinition="Where the resource is found", formalDefinition="The resource may be found in a literal location (i.e. GPS coordinates), a logical place (i.e. 'in/with the patient'), or a coded location." ) protected Reference location; @@ -128,7 +128,7 @@ public class Device extends DomainResource { /** * Patient information, if the resource is affixed to a person. */ - @Child(name="patient", type={Patient.class}, order=10, min=0, max=1) + @Child(name = "patient", type = {Patient.class}, order = 10, min = 0, max = 1) @Description(shortDefinition="If the resource is affixed to a person", formalDefinition="Patient information, if the resource is affixed to a person." ) protected Reference patient; @@ -140,14 +140,14 @@ public class Device extends DomainResource { /** * Contact details for an organization or a particular human that is responsible for the device. */ - @Child(name="contact", type={ContactPoint.class}, order=11, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "contact", type = {ContactPoint.class}, order = 11, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Details for human/organization for support", formalDefinition="Contact details for an organization or a particular human that is responsible for the device." ) protected List contact; /** * A network address on which the device may be contacted directly. */ - @Child(name="url", type={UriType.class}, order=12, min=0, max=1) + @Child(name = "url", type = {UriType.class}, order = 12, min = 0, max = 1) @Description(shortDefinition="Network address to contact device", formalDefinition="A network address on which the device may be contacted directly." ) protected UriType url; @@ -809,10 +809,10 @@ public class Device extends DomainResource { return ResourceType.Device; } - @SearchParamDefinition(name="identifier", path="Device.identifier", description="Instance id from manufacturer, owner, regulatory agencies and others", type="token" ) - public static final String SP_IDENTIFIER = "identifier"; - @SearchParamDefinition(name="patient", path="Device.patient", description="Patient information, if the resource is affixed to a person", type="reference" ) - public static final String SP_PATIENT = "patient"; + @SearchParamDefinition(name = "identifier", path = "Device.identifier", description = "Instance id from manufacturer, owner, regulatory agencies and others", type = "token") + public static final String SP_IDENTIFIER = "identifier"; + @SearchParamDefinition(name = "patient", path = "Device.patient", description = "Patient information, if the resource is affixed to a person", type = "reference") + public static final String SP_PATIENT = "patient"; @SearchParamDefinition(name="organization", path="Device.owner", description="The organization responsible for the device", type="reference" ) public static final String SP_ORGANIZATION = "organization"; @SearchParamDefinition(name="model", path="Device.model", description="The model of the device", type="string" ) @@ -821,8 +821,8 @@ public class Device extends DomainResource { public static final String SP_LOCATION = "location"; @SearchParamDefinition(name="type", path="Device.type", description="The type of the device", type="token" ) public static final String SP_TYPE = "type"; - @SearchParamDefinition(name="manufacturer", path="Device.manufacturer", description="The manufacturer of the device", type="string" ) - public static final String SP_MANUFACTURER = "manufacturer"; + @SearchParamDefinition(name = "manufacturer", path = "Device.manufacturer", description = "The manufacturer of the device", type = "string") + public static final String SP_MANUFACTURER = "manufacturer"; } diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/DeviceComponent.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/DeviceComponent.java index 3b9c740fe3f..475ef8f3b98 100644 --- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/DeviceComponent.java +++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/DeviceComponent.java @@ -416,28 +416,28 @@ public class DeviceComponent extends DomainResource { /** * Describes the specific component type as defined in the object-oriented or metric nomenclature partition. */ - @Child(name="type", type={CodeableConcept.class}, order=0, min=1, max=1) + @Child(name = "type", type = {CodeableConcept.class}, order = 0, min = 1, max = 1) @Description(shortDefinition="What kind of component it is", formalDefinition="Describes the specific component type as defined in the object-oriented or metric nomenclature partition." ) protected CodeableConcept type; /** * Describes the local assigned unique identification by the software. For example: handle ID. */ - @Child(name="identifier", type={Identifier.class}, order=1, min=1, max=1) + @Child(name = "identifier", type = {Identifier.class}, order = 1, min = 1, max = 1) @Description(shortDefinition="Instance id assigned by the software stack", formalDefinition="Describes the local assigned unique identification by the software. For example: handle ID." ) protected Identifier identifier; /** * Describes the timestamp for the most recent system change which includes device configuration or setting change. */ - @Child(name="lastSystemChange", type={InstantType.class}, order=2, min=1, max=1) + @Child(name = "lastSystemChange", type = {InstantType.class}, order = 2, min = 1, max = 1) @Description(shortDefinition="Recent system change timestamp", formalDefinition="Describes the timestamp for the most recent system change which includes device configuration or setting change." ) protected InstantType lastSystemChange; /** * Describes the link to the source Device that contains administrative device information such as manufacture, serial number, etc. */ - @Child(name="source", type={Device.class}, order=3, min=0, max=1) + @Child(name = "source", type = {Device.class}, order = 3, min = 0, max = 1) @Description(shortDefinition="A source device of this component", formalDefinition="Describes the link to the source Device that contains administrative device information such as manufacture, serial number, etc." ) protected Reference source; @@ -449,7 +449,7 @@ public class DeviceComponent extends DomainResource { /** * Describes the link to the parent resource. For example: Channel is linked to its VMD parent. */ - @Child(name="parent", type={DeviceComponent.class}, order=4, min=0, max=1) + @Child(name = "parent", type = {DeviceComponent.class}, order = 4, min = 0, max = 1) @Description(shortDefinition="Parent resource link", formalDefinition="Describes the link to the parent resource. For example: Channel is linked to its VMD parent." ) protected Reference parent; @@ -461,35 +461,35 @@ public class DeviceComponent extends DomainResource { /** * Indicates current operational status of the device. For example: On, Off, Standby, etc. */ - @Child(name="operationalStatus", type={CodeableConcept.class}, order=5, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "operationalStatus", type = {CodeableConcept.class}, order = 5, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Component operational status", formalDefinition="Indicates current operational status of the device. For example: On, Off, Standby, etc." ) protected List operationalStatus; /** * Describes the parameter group supported by the current device component that is based on some nomenclature, e.g., cardiovascular. */ - @Child(name="parameterGroup", type={CodeableConcept.class}, order=6, min=0, max=1) + @Child(name = "parameterGroup", type = {CodeableConcept.class}, order = 6, min = 0, max = 1) @Description(shortDefinition="Current supported parameter group", formalDefinition="Describes the parameter group supported by the current device component that is based on some nomenclature, e.g., cardiovascular." ) protected CodeableConcept parameterGroup; /** * Describes the physical principle of the measurement. For example: thermal, chemical, acoustical, etc. */ - @Child(name="measurementPrinciple", type={CodeType.class}, order=7, min=0, max=1) + @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; /** * Describes the production specification such as component revision, serial number, etc. */ - @Child(name="productionSpecification", type={}, order=8, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "productionSpecification", type = {}, order = 8, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Production specification of the component", formalDefinition="Describes the production specification such as component revision, serial number, etc." ) protected List productionSpecification; /** * 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. */ - @Child(name="languageCode", type={CodeableConcept.class}, order=9, min=0, max=1) + @Child(name = "languageCode", type = {CodeableConcept.class}, order = 9, min = 0, max = 1) @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; @@ -927,7 +927,7 @@ public class DeviceComponent extends DomainResource { @SearchParamDefinition(name="parent", path="DeviceComponent.parent", description="The parent DeviceComponent resource", type="reference" ) public static final String SP_PARENT = "parent"; - @SearchParamDefinition(name="source", path="DeviceComponent.source", description="The device source", type="reference" ) + @SearchParamDefinition(name = "source", path = "DeviceComponent.source", description = "The device source", type = "reference") public static final String SP_SOURCE = "source"; @SearchParamDefinition(name="type", path="DeviceComponent.type", description="The device component type", type="token" ) public static final String SP_TYPE = "type"; diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/DeviceMetric.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/DeviceMetric.java index e85ecdc128a..53e75bee1b5 100644 --- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/DeviceMetric.java +++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/DeviceMetric.java @@ -655,29 +655,29 @@ public class DeviceMetric extends Resource { /** * Describes the type of the metric. For example: Heart Rate, PEEP Setting, etc. */ - @Child(name="type", type={CodeableConcept.class}, order=0, min=1, max=1) + @Child(name = "type", type = {CodeableConcept.class}, order = 0, min = 1, max = 1) @Description(shortDefinition="Type of metric", formalDefinition="Describes the type of the metric. For example: Heart Rate, PEEP Setting, etc." ) protected CodeableConcept type; /** - * Describes the unique identification of this metric that has been assigned by the device or gateway software. For example: handle ID. + * Describes the unique identification of this metric that has been assigned by the device or gateway software. For example: handle ID. It should be noted that in order to make the identifier unique, the system element of the identifier should be set to the unique identifier of the device. */ - @Child(name="identifier", type={Identifier.class}, order=1, min=1, max=1) + @Child(name = "identifier", type = {Identifier.class}, order = 1, min = 1, max = 1) @Description(shortDefinition="Unique identifier of this DeviceMetric", formalDefinition="Describes the unique identification of this metric that has been assigned by the device or gateway software. For example: handle ID. \nIt should be noted that in order to make the identifier unique, the system element of the identifier should be set to the unique identifier of the device." ) protected Identifier identifier; /** * Describes the unit that an observed value determined for this metric will have. For example: Percent, Seconds, etc. */ - @Child(name="unit", type={CodeableConcept.class}, order=2, min=0, max=1) + @Child(name = "unit", type = {CodeableConcept.class}, order = 2, min = 0, max = 1) @Description(shortDefinition="Unit of metric", formalDefinition="Describes the unit that an observed value determined for this metric will have. For example: Percent, Seconds, etc." ) protected CodeableConcept unit; /** * Describes the link to the Device that this DeviceMetric belongs to and that contains administrative device information such as manufacture, serial number, etc. */ - @Child(name="source", type={Device.class}, order=3, min=0, max=1) + @Child(name = "source", type = {Device.class}, order = 3, min = 0, max = 1) @Description(shortDefinition="Describes the link to the source Device", formalDefinition="Describes the link to the Device that this DeviceMetric belongs to and that contains administrative device information such as manufacture, serial number, etc." ) protected Reference source; @@ -687,15 +687,15 @@ It should be noted that in order to make the identifier unique, the system eleme protected Device sourceTarget; /** - * Describes the link to the DeviceComponent that this DeviceMetric belongs to and that provide information about the location of this DeviceMetric in the containment structure of the parent Device. + * Describes the link to the DeviceComponent that this DeviceMetric belongs to and that provide information about the location of this DeviceMetric in the containment structure of the parent Device. An example would be a DeviceComponent that represents a Channel. This reference can be used by a client application to distinguish DeviceMetrics that have the same type, but should be interpreted based on their containment location. */ - @Child(name="parent", type={DeviceComponent.class}, order=4, min=0, max=1) + @Child(name = "parent", type = {DeviceComponent.class}, order = 4, min = 0, max = 1) @Description(shortDefinition="Describes the link to the parent DeviceComponent", formalDefinition="Describes the link to the DeviceComponent that this DeviceMetric belongs to and that provide information about the location of this DeviceMetric in the containment structure of the parent Device.\nAn example would be a DeviceComponent that represents a Channel. This reference can be used by a client application to distinguish DeviceMetrics that have the same type, but should be interpreted based on their containment location." ) protected Reference parent; /** - * The actual object that is the target of the reference (Describes the link to the DeviceComponent that this DeviceMetric belongs to and that provide information about the location of this DeviceMetric in the containment structure of the parent Device. + * The actual object that is the target of the reference (Describes the link to the DeviceComponent that this DeviceMetric belongs to and that provide information about the location of this DeviceMetric in the containment structure of the parent Device. An example would be a DeviceComponent that represents a Channel. This reference can be used by a client application to distinguish DeviceMetrics that have the same type, but should be interpreted based on their containment location.) */ protected DeviceComponent parentTarget; @@ -703,44 +703,44 @@ An example would be a DeviceComponent that represents a Channel. This reference /** * Indicates current operational state of the device. For example: On, Off, Standby, etc. */ - @Child(name="operationalState", type={CodeType.class}, order=5, min=0, max=1) + @Child(name = "operationalState", 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 operationalState; /** * Describes the physical principle of the measurement. For example: thermal, chemical, acoustical, etc. */ - @Child(name="measurementMode", type={Identifier.class}, order=6, min=0, max=1) + @Child(name = "measurementMode", type = {Identifier.class}, order = 6, min = 0, max = 1) @Description(shortDefinition="Describes the physical principle of the measurement", formalDefinition="Describes the physical principle of the measurement. For example: thermal, chemical, acoustical, etc." ) protected Identifier measurementMode; /** * Describes the typical color of the representation of observations that have been generated for this DeviceMetric. */ - @Child(name="color", type={Identifier.class}, order=7, min=0, max=1) + @Child(name = "color", type = {Identifier.class}, order = 7, min = 0, max = 1) @Description(shortDefinition="Describes the typical color of representation", formalDefinition="Describes the typical color of the representation of observations that have been generated for this DeviceMetric." ) protected Identifier 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=8, min=1, max=1) + @Child(name = "category", type = {CodeType.class}, order = 8, 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 category; /** - * Describes the measurement repetition time. This is not -necessarily the same as the update + * Describes the measurement repetition time. This is not +necessarily the same as the update period. */ - @Child(name="measurementPeriod", type={Timing.class}, order=9, min=0, max=1) + @Child(name = "measurementPeriod", type = {Timing.class}, order = 9, min = 0, max = 1) @Description(shortDefinition="Describes the measurement repetition time", formalDefinition="Describes the measurement repetition time. This is not\nnecessarily the same as the update\nperiod." ) protected Timing measurementPeriod; /** * Describes the calibrations that have been performed or that are required to be performed. */ - @Child(name="calibrationInfo", type={}, order=10, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "calibrationInfo", type = {}, order = 10, min = 0, max = Child.MAX_UNLIMITED) @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 calibrationInfo; @@ -782,7 +782,7 @@ period. } /** - * @return {@link #identifier} (Describes the unique identification of this metric that has been assigned by the device or gateway software. For example: handle ID. + * @return {@link #identifier} (Describes the unique identification of this metric that has been assigned by the device or gateway software. For example: handle ID. It should be noted that in order to make the identifier unique, the system element of the identifier should be set to the unique identifier of the device.) */ public Identifier getIdentifier() { @@ -799,7 +799,7 @@ It should be noted that in order to make the identifier unique, the system eleme } /** - * @param value {@link #identifier} (Describes the unique identification of this metric that has been assigned by the device or gateway software. For example: handle ID. + * @param value {@link #identifier} (Describes the unique identification of this metric that has been assigned by the device or gateway software. For example: handle ID. It should be noted that in order to make the identifier unique, the system element of the identifier should be set to the unique identifier of the device.) */ public DeviceMetric setIdentifier(Identifier value) { @@ -876,7 +876,7 @@ It should be noted that in order to make the identifier unique, the system eleme } /** - * @return {@link #parent} (Describes the link to the DeviceComponent that this DeviceMetric belongs to and that provide information about the location of this DeviceMetric in the containment structure of the parent Device. + * @return {@link #parent} (Describes the link to the DeviceComponent that this DeviceMetric belongs to and that provide information about the location of this DeviceMetric in the containment structure of the parent Device. An example would be a DeviceComponent that represents a Channel. This reference can be used by a client application to distinguish DeviceMetrics that have the same type, but should be interpreted based on their containment location.) */ public Reference getParent() { @@ -893,7 +893,7 @@ An example would be a DeviceComponent that represents a Channel. This reference } /** - * @param value {@link #parent} (Describes the link to the DeviceComponent that this DeviceMetric belongs to and that provide information about the location of this DeviceMetric in the containment structure of the parent Device. + * @param value {@link #parent} (Describes the link to the DeviceComponent that this DeviceMetric belongs to and that provide information about the location of this DeviceMetric in the containment structure of the parent Device. An example would be a DeviceComponent that represents a Channel. This reference can be used by a client application to distinguish DeviceMetrics that have the same type, but should be interpreted based on their containment location.) */ public DeviceMetric setParent(Reference value) { @@ -902,7 +902,7 @@ An example would be a DeviceComponent that represents a Channel. This reference } /** - * @return {@link #parent} 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. (Describes the link to the DeviceComponent that this DeviceMetric belongs to and that provide information about the location of this DeviceMetric in the containment structure of the parent Device. + * @return {@link #parent} 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. (Describes the link to the DeviceComponent that this DeviceMetric belongs to and that provide information about the location of this DeviceMetric in the containment structure of the parent Device. An example would be a DeviceComponent that represents a Channel. This reference can be used by a client application to distinguish DeviceMetrics that have the same type, but should be interpreted based on their containment location.) */ public DeviceComponent getParentTarget() { @@ -915,7 +915,7 @@ An example would be a DeviceComponent that represents a Channel. This reference } /** - * @param value {@link #parent} 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. (Describes the link to the DeviceComponent that this DeviceMetric belongs to and that provide information about the location of this DeviceMetric in the containment structure of the parent Device. + * @param value {@link #parent} 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. (Describes the link to the DeviceComponent that this DeviceMetric belongs to and that provide information about the location of this DeviceMetric in the containment structure of the parent Device. An example would be a DeviceComponent that represents a Channel. This reference can be used by a client application to distinguish DeviceMetrics that have the same type, but should be interpreted based on their containment location.) */ public DeviceMetric setParentTarget(DeviceComponent value) { @@ -1066,8 +1066,8 @@ An example would be a DeviceComponent that represents a Channel. This reference } /** - * @return {@link #measurementPeriod} (Describes the measurement repetition time. This is not -necessarily the same as the update + * @return {@link #measurementPeriod} (Describes the measurement repetition time. This is not +necessarily the same as the update period.) */ public Timing getMeasurementPeriod() { @@ -1084,8 +1084,8 @@ period.) } /** - * @param value {@link #measurementPeriod} (Describes the measurement repetition time. This is not -necessarily the same as the update + * @param value {@link #measurementPeriod} (Describes the measurement repetition time. This is not +necessarily the same as the update period.) */ public DeviceMetric setMeasurementPeriod(Timing value) { @@ -1205,12 +1205,12 @@ period.) public static final String SP_PARENT = "parent"; @SearchParamDefinition(name="identifier", path="DeviceMetric.identifier", description="The identifier of the metric", type="token" ) public static final String SP_IDENTIFIER = "identifier"; - @SearchParamDefinition(name="source", path="DeviceMetric.source", description="The device resource", type="reference" ) - public static final String SP_SOURCE = "source"; - @SearchParamDefinition(name="type", path="DeviceMetric.type", description="The component type", type="token" ) - public static final String SP_TYPE = "type"; - @SearchParamDefinition(name="category", path="DeviceMetric.category", description="The category of the metric", type="token" ) - public static final String SP_CATEGORY = "category"; + @SearchParamDefinition(name = "source", path = "DeviceMetric.source", description = "The device resource", type = "reference") + public static final String SP_SOURCE = "source"; + @SearchParamDefinition(name = "type", path = "DeviceMetric.type", description = "The component type", type = "token") + public static final String SP_TYPE = "type"; + @SearchParamDefinition(name = "category", path = "DeviceMetric.category", description = "The category of the metric", type = "token") + public static final String SP_CATEGORY = "category"; } diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/DeviceUseRequest.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/DeviceUseRequest.java index f5a16a29c74..1bcbe97130e 100644 --- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/DeviceUseRequest.java +++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/DeviceUseRequest.java @@ -332,21 +332,21 @@ public class DeviceUseRequest extends DomainResource { /** * Body site where the device is to be used. */ - @Child(name="bodySite", type={CodeableConcept.class}, order=0, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "bodySite", type = {CodeableConcept.class}, order = 0, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Target body site", formalDefinition="Body site where the device is to be used." ) protected List bodySite; /** * The status of the request. */ - @Child(name="status", type={CodeType.class}, order=1, min=0, max=1) + @Child(name = "status", type = {CodeType.class}, order = 1, min = 0, max = 1) @Description(shortDefinition="proposed | planned | requested | received | accepted | in-progress | completed | suspended | rejected | aborted", formalDefinition="The status of the request." ) protected Enumeration status; /** * The details of the device to be used. */ - @Child(name="device", type={Device.class}, order=2, min=1, max=1) + @Child(name = "device", type = {Device.class}, order = 2, min = 1, max = 1) @Description(shortDefinition="Device requested", formalDefinition="The details of the device to be used." ) protected Reference device; @@ -358,7 +358,7 @@ public class DeviceUseRequest extends DomainResource { /** * An encounter that provides additional context in which this request is made. */ - @Child(name="encounter", type={Encounter.class}, order=3, min=0, max=1) + @Child(name = "encounter", type = {Encounter.class}, order = 3, min = 0, max = 1) @Description(shortDefinition="Encounter motivating request", formalDefinition="An encounter that provides additional context in which this request is made." ) protected Reference encounter; @@ -370,49 +370,49 @@ public class DeviceUseRequest extends DomainResource { /** * Identifiers assigned to this order by the orderer or by the receiver. */ - @Child(name="identifier", type={Identifier.class}, order=4, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "identifier", type = {Identifier.class}, order = 4, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Request identifier", formalDefinition="Identifiers assigned to this order by the orderer or by the receiver." ) protected List identifier; /** * Reason or justification for the use of this device. */ - @Child(name="indication", type={CodeableConcept.class}, order=5, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "indication", type = {CodeableConcept.class}, order = 5, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Reason for request", formalDefinition="Reason or justification for the use of this device." ) protected List indication; /** * Details about this request that were not represented at all or sufficiently in one of the attributes provided in a class. These may include for example a comment, an instruction, or a note associated with the statement. */ - @Child(name="notes", type={StringType.class}, order=6, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "notes", type = {StringType.class}, order = 6, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Notes or comments", formalDefinition="Details about this request that were not represented at all or sufficiently in one of the attributes provided in a class. These may include for example a comment, an instruction, or a note associated with the statement." ) protected List notes; /** * The proposed act must be performed if the indicated conditions occur, e.g.., shortness of breath, SpO2 less than x%. */ - @Child(name="prnReason", type={CodeableConcept.class}, order=7, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "prnReason", type = {CodeableConcept.class}, order = 7, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="PRN", formalDefinition="The proposed act must be performed if the indicated conditions occur, e.g.., shortness of breath, SpO2 less than x%." ) protected List prnReason; /** * The time when the request was made. */ - @Child(name="orderedOn", type={DateTimeType.class}, order=8, min=0, max=1) + @Child(name = "orderedOn", type = {DateTimeType.class}, order = 8, min = 0, max = 1) @Description(shortDefinition="When ordered", formalDefinition="The time when the request was made." ) protected DateTimeType orderedOn; /** * The time at which the request was made/recorded. */ - @Child(name="recordedOn", type={DateTimeType.class}, order=9, min=0, max=1) + @Child(name = "recordedOn", type = {DateTimeType.class}, order = 9, min = 0, max = 1) @Description(shortDefinition="When recorded", formalDefinition="The time at which the request was made/recorded." ) protected DateTimeType recordedOn; /** * The patient who will use the device. */ - @Child(name="subject", type={Patient.class}, order=10, min=1, max=1) + @Child(name = "subject", type = {Patient.class}, order = 10, min = 1, max = 1) @Description(shortDefinition="Focus of request", formalDefinition="The patient who will use the device." ) protected Reference subject; @@ -424,14 +424,14 @@ public class DeviceUseRequest extends DomainResource { /** * The timing schedule for the use of the device The Schedule data type allows many different expressions, for example. "Every 8 hours"; "Three times a day"; "1/2 an hour before breakfast for 10 days from 23-Dec 2011:"; "15 Oct 2013, 17 Oct 2013 and 1 Nov 2013". */ - @Child(name="timing", type={Timing.class, Period.class, DateTimeType.class}, order=11, min=0, max=1) + @Child(name = "timing", type = {Timing.class, Period.class, DateTimeType.class}, order = 11, min = 0, max = 1) @Description(shortDefinition="Schedule for use", formalDefinition="The timing schedule for the use of the device The Schedule data type allows many different expressions, for example. 'Every 8 hours'; 'Three times a day'; '1/2 an hour before breakfast for 10 days from 23-Dec 2011:'; '15 Oct 2013, 17 Oct 2013 and 1 Nov 2013'." ) protected Type timing; /** * Characterizes how quickly the use of device must be initiated. Includes concepts such as stat, urgent, routine. */ - @Child(name="priority", type={CodeType.class}, order=12, min=0, max=1) + @Child(name = "priority", type = {CodeType.class}, order = 12, min = 0, max = 1) @Description(shortDefinition="routine | urgent | stat | asap", formalDefinition="Characterizes how quickly the use of device must be initiated. Includes concepts such as stat, urgent, routine." ) protected Enumeration priority; @@ -1096,8 +1096,8 @@ public class DeviceUseRequest extends DomainResource { @SearchParamDefinition(name="subject", path="DeviceUseRequest.subject", description="Search by subject", type="reference" ) public static final String SP_SUBJECT = "subject"; - @SearchParamDefinition(name="patient", path="DeviceUseRequest.subject", description="Search by subject - a patient", type="reference" ) - public static final String SP_PATIENT = "patient"; + @SearchParamDefinition(name = "patient", path = "DeviceUseRequest.subject", description = "Search by subject - a patient", type = "reference") + public static final String SP_PATIENT = "patient"; } diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/DeviceUseStatement.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/DeviceUseStatement.java index 1a9b2bb2469..7c450546a9e 100644 --- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/DeviceUseStatement.java +++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/DeviceUseStatement.java @@ -48,21 +48,21 @@ public class DeviceUseStatement extends DomainResource { /** * Body site where the device was used. */ - @Child(name="bodySite", type={CodeableConcept.class}, order=0, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "bodySite", type = {CodeableConcept.class}, order = 0, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="", formalDefinition="Body site where the device was used." ) protected List bodySite; /** * The time period over which the device was used. */ - @Child(name="whenUsed", type={Period.class}, order=1, min=0, max=1) + @Child(name = "whenUsed", type = {Period.class}, order = 1, min = 0, max = 1) @Description(shortDefinition="", formalDefinition="The time period over which the device was used." ) protected Period whenUsed; /** * The details of the device used. */ - @Child(name="device", type={Device.class}, order=2, min=1, max=1) + @Child(name = "device", type = {Device.class}, order = 2, min = 1, max = 1) @Description(shortDefinition="", formalDefinition="The details of the device used." ) protected Reference device; @@ -74,35 +74,35 @@ public class DeviceUseStatement extends DomainResource { /** * An external identifier for this statement such as an IRI. */ - @Child(name="identifier", type={Identifier.class}, order=3, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "identifier", type = {Identifier.class}, order = 3, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="", formalDefinition="An external identifier for this statement such as an IRI." ) protected List identifier; /** * Reason or justification for the use of the device. */ - @Child(name="indication", type={CodeableConcept.class}, order=4, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "indication", type = {CodeableConcept.class}, order = 4, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="", formalDefinition="Reason or justification for the use of the device." ) protected List indication; /** * Details about the device statement that were not represented at all or sufficiently in one of the attributes provided in a class. These may include for example a comment, an instruction, or a note associated with the statement. */ - @Child(name="notes", type={StringType.class}, order=5, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "notes", type = {StringType.class}, order = 5, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="", formalDefinition="Details about the device statement that were not represented at all or sufficiently in one of the attributes provided in a class. These may include for example a comment, an instruction, or a note associated with the statement." ) protected List notes; /** * The time at which the statement was made/recorded. */ - @Child(name="recordedOn", type={DateTimeType.class}, order=6, min=0, max=1) + @Child(name = "recordedOn", type = {DateTimeType.class}, order = 6, min = 0, max = 1) @Description(shortDefinition="", formalDefinition="The time at which the statement was made/recorded." ) protected DateTimeType recordedOn; /** * The patient who used the device. */ - @Child(name="subject", type={Patient.class}, order=7, min=1, max=1) + @Child(name = "subject", type = {Patient.class}, order = 7, min = 1, max = 1) @Description(shortDefinition="", formalDefinition="The patient who used the device." ) protected Reference subject; @@ -114,7 +114,7 @@ public class DeviceUseStatement extends DomainResource { /** * How often the device was used. */ - @Child(name="timing", type={Timing.class, Period.class, DateTimeType.class}, order=8, min=0, max=1) + @Child(name = "timing", type = {Timing.class, Period.class, DateTimeType.class}, order = 8, min = 0, max = 1) @Description(shortDefinition="", formalDefinition="How often the device was used." ) protected Type timing; @@ -566,8 +566,8 @@ public class DeviceUseStatement extends DomainResource { @SearchParamDefinition(name="subject", path="DeviceUseStatement.subject", description="Search by subject", type="reference" ) public static final String SP_SUBJECT = "subject"; - @SearchParamDefinition(name="patient", path="DeviceUseStatement.subject", description="Search by subject - a patient", type="reference" ) - public static final String SP_PATIENT = "patient"; + @SearchParamDefinition(name = "patient", path = "DeviceUseStatement.subject", description = "Search by subject - a patient", type = "reference") + public static final String SP_PATIENT = "patient"; } diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/DiagnosticOrder.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/DiagnosticOrder.java index 5fcc1ceb900..a82599a64bc 100644 --- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/DiagnosticOrder.java +++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/DiagnosticOrder.java @@ -49,11 +49,11 @@ public class DiagnosticOrder extends DomainResource { /** * The request has been proposed. */ - PROPOSED, + PROPOSED, /** * The request has been planned. */ - PLANNED, + PLANNED, /** * The request has been placed. */ @@ -97,10 +97,10 @@ public class DiagnosticOrder extends DomainResource { public static DiagnosticOrderStatus fromCode(String codeString) throws Exception { if (codeString == null || "".equals(codeString)) return null; - if ("proposed".equals(codeString)) - return PROPOSED; - if ("planned".equals(codeString)) - return PLANNED; + if ("proposed".equals(codeString)) + return PROPOSED; + if ("planned".equals(codeString)) + return PLANNED; if ("requested".equals(codeString)) return REQUESTED; if ("received".equals(codeString)) @@ -123,8 +123,10 @@ public class DiagnosticOrder extends DomainResource { } public String toCode() { switch (this) { - case PROPOSED: return "proposed"; - case PLANNED: return "planned"; + case PROPOSED: + return "proposed"; + case PLANNED: + return "planned"; case REQUESTED: return "requested"; case RECEIVED: return "received"; case ACCEPTED: return "accepted"; @@ -139,8 +141,10 @@ public class DiagnosticOrder extends DomainResource { } public String getSystem() { switch (this) { - case PROPOSED: return ""; - case PLANNED: return ""; + case PROPOSED: + return ""; + case PLANNED: + return ""; case REQUESTED: return ""; case RECEIVED: return ""; case ACCEPTED: return ""; @@ -155,8 +159,10 @@ public class DiagnosticOrder extends DomainResource { } public String getDefinition() { switch (this) { - case PROPOSED: return "The request has been proposed."; - case PLANNED: return "The request has been planned."; + 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 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."; @@ -171,8 +177,10 @@ public class DiagnosticOrder extends DomainResource { } public String getDisplay() { switch (this) { - case PROPOSED: return "proposed"; - case PLANNED: return "planned"; + case PROPOSED: + return "proposed"; + case PLANNED: + return "planned"; case REQUESTED: return "requested"; case RECEIVED: return "received"; case ACCEPTED: return "accepted"; @@ -193,9 +201,9 @@ public class DiagnosticOrder extends DomainResource { if (codeString == null || "".equals(codeString)) return null; if ("proposed".equals(codeString)) - return DiagnosticOrderStatus.PROPOSED; + return DiagnosticOrderStatus.PROPOSED; if ("planned".equals(codeString)) - return DiagnosticOrderStatus.PLANNED; + return DiagnosticOrderStatus.PLANNED; if ("requested".equals(codeString)) return DiagnosticOrderStatus.REQUESTED; if ("received".equals(codeString)) @@ -217,10 +225,10 @@ public class DiagnosticOrder extends DomainResource { throw new IllegalArgumentException("Unknown DiagnosticOrderStatus code '"+codeString+"'"); } public String toCode(DiagnosticOrderStatus code) { - if (code == DiagnosticOrderStatus.PROPOSED) - return "proposed"; - if (code == DiagnosticOrderStatus.PLANNED) - return "planned"; + if (code == DiagnosticOrderStatus.PROPOSED) + return "proposed"; + if (code == DiagnosticOrderStatus.PLANNED) + return "planned"; if (code == DiagnosticOrderStatus.REQUESTED) return "requested"; if (code == DiagnosticOrderStatus.RECEIVED) @@ -349,7 +357,7 @@ public class DiagnosticOrder extends DomainResource { * The status for the event. */ @Child(name="status", type={CodeType.class}, order=1, min=1, max=1) - @Description(shortDefinition="proposed | planned | requested | received | accepted | in-progress | review | completed | suspended | rejected | failed", formalDefinition="The status for the event." ) + @Description(shortDefinition = "proposed | planned | requested | received | accepted | in-progress | review | completed | suspended | rejected | failed", formalDefinition = "The status for the event.") protected Enumeration status; /** @@ -621,7 +629,7 @@ public class DiagnosticOrder extends DomainResource { * The status of this individual item within the order. */ @Child(name="status", type={CodeType.class}, order=4, min=0, max=1) - @Description(shortDefinition="proposed | planned | requested | received | accepted | in-progress | review | completed | suspended | rejected | failed", formalDefinition="The status of this individual item within the order." ) + @Description(shortDefinition = "proposed | planned | requested | received | accepted | in-progress | review | completed | suspended | rejected | failed", formalDefinition = "The status of this individual item within the order.") protected Enumeration status; /** @@ -893,7 +901,7 @@ public class DiagnosticOrder extends DomainResource { /** * 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). */ - @Child(name="subject", type={Patient.class, Group.class, Location.class, Device.class}, order=0, min=1, max=1) + @Child(name = "subject", type = {Patient.class, Group.class, Location.class, Device.class}, order = 0, min = 1, max = 1) @Description(shortDefinition="Who and/or what test is about", formalDefinition="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)." ) protected Reference subject; @@ -905,7 +913,7 @@ public class DiagnosticOrder extends DomainResource { /** * The practitioner that holds legal responsibility for ordering the investigation. */ - @Child(name="orderer", type={Practitioner.class}, order=1, min=0, max=1) + @Child(name = "orderer", type = {Practitioner.class}, order = 1, min = 0, max = 1) @Description(shortDefinition="Who ordered the test", formalDefinition="The practitioner that holds legal responsibility for ordering the investigation." ) protected Reference orderer; @@ -917,14 +925,14 @@ public class DiagnosticOrder extends DomainResource { /** * Identifiers assigned to this order by the order or by the receiver. */ - @Child(name="identifier", type={Identifier.class}, order=2, min=0, max=Child.MAX_UNLIMITED) + @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." ) protected List identifier; /** * An encounter that provides additional information about the healthcare context in which this request is made. */ - @Child(name="encounter", type={Encounter.class}, order=3, min=0, max=1) + @Child(name = "encounter", type = {Encounter.class}, order = 3, min = 0, max = 1) @Description(shortDefinition="The encounter that this diagnostic order is associated with", formalDefinition="An encounter that provides additional information about the healthcare context in which this request is made." ) protected Reference encounter; @@ -936,15 +944,15 @@ public class DiagnosticOrder extends DomainResource { /** * An explanation or justification for why this diagnostic investigation is being requested. */ - @Child(name="clinicalNotes", type={StringType.class}, order=4, min=0, max=1) + @Child(name = "clinicalNotes", type = {StringType.class}, order = 4, min = 0, max = 1) @Description(shortDefinition="Explanation/Justification for test", formalDefinition="An explanation or justification for why this diagnostic investigation is being requested." ) protected StringType clinicalNotes; /** * Additional clinical information about the patient or specimen that may influence test interpretations. */ - @Child(name="supportingInformation", type={Observation.class, Condition.class, DocumentReference.class}, order=5, min=0, max=Child.MAX_UNLIMITED) - @Description(shortDefinition="Additional clinical information", formalDefinition="Additional clinical information about the patient or specimen that may influence test interpretations." ) + @Child(name = "supportingInformation", type = {Observation.class, Condition.class, DocumentReference.class}, order = 5, min = 0, max = Child.MAX_UNLIMITED) + @Description(shortDefinition = "Additional clinical information", formalDefinition = "Additional clinical information about the patient or specimen that may influence test interpretations.") protected List supportingInformation; /** * The actual objects that are the target of the reference (Additional clinical information about the patient or specimen that may influence test interpretations.) @@ -955,7 +963,7 @@ public class DiagnosticOrder extends DomainResource { /** * One or more specimens that the diagnostic investigation is about. */ - @Child(name="specimen", type={Specimen.class}, order=6, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "specimen", type = {Specimen.class}, order = 6, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="If the whole order relates to specific specimens", formalDefinition="One or more specimens that the diagnostic investigation is about." ) protected List specimen; /** @@ -967,28 +975,28 @@ public class DiagnosticOrder extends DomainResource { /** * The status of the order. */ - @Child(name="status", type={CodeType.class}, order=7, min=0, max=1) - @Description(shortDefinition="proposed | planned | requested | received | accepted | in-progress | review | completed | suspended | rejected | failed", formalDefinition="The status of the order." ) + @Child(name = "status", type = {CodeType.class}, order = 7, min = 0, max = 1) + @Description(shortDefinition = "proposed | planned | requested | received | accepted | in-progress | review | completed | suspended | rejected | failed", formalDefinition = "The status of the order.") protected Enumeration status; /** * The clinical priority associated with this order. */ - @Child(name="priority", type={CodeType.class}, order=8, min=0, max=1) + @Child(name = "priority", type = {CodeType.class}, order = 8, min = 0, max = 1) @Description(shortDefinition="routine | urgent | stat | asap", formalDefinition="The clinical priority associated with this order." ) protected Enumeration priority; /** * A summary of the events of interest that have occurred as the request is processed. E.g. when the order was made, various processing steps (specimens received), when it was completed. */ - @Child(name="event", type={}, order=9, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "event", type = {}, order = 9, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="A list of events of interest in the lifecycle", formalDefinition="A summary of the events of interest that have occurred as the request is processed. E.g. when the order was made, various processing steps (specimens received), when it was completed." ) protected List event; /** * The specific diagnostic investigations that are requested as part of this request. Sometimes, there can only be one item per request, but in most contexts, more than one investigation can be requested. */ - @Child(name="item", type={}, order=10, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "item", type = {}, order = 10, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="The items the orderer requested", formalDefinition="The specific diagnostic investigations that are requested as part of this request. Sometimes, there can only be one item per request, but in most contexts, more than one investigation can be requested." ) protected List item; @@ -1464,7 +1472,7 @@ public class DiagnosticOrder extends DomainResource { 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("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)); + 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)); childrenList.add(new Property("specimen", "Reference(Specimen)", "One or more specimens that the diagnostic investigation is about.", 0, java.lang.Integer.MAX_VALUE, specimen)); childrenList.add(new Property("status", "code", "The status of the order.", 0, java.lang.Integer.MAX_VALUE, status)); childrenList.add(new Property("priority", "code", "The clinical priority associated with this order.", 0, java.lang.Integer.MAX_VALUE, priority)); @@ -1551,40 +1559,40 @@ public class DiagnosticOrder extends DomainResource { return ResourceType.DiagnosticOrder; } - @SearchParamDefinition(name="item-past-status", path="DiagnosticOrder.item.event.status", description="proposed | planned | requested | received | accepted | in-progress | review | completed | suspended | rejected | failed", type="token" ) - public static final String SP_ITEMPASTSTATUS = "item-past-status"; - @SearchParamDefinition(name="identifier", path="DiagnosticOrder.identifier", description="Identifiers assigned to this order", type="token" ) - public static final String SP_IDENTIFIER = "identifier"; - @SearchParamDefinition(name="bodysite", path="DiagnosticOrder.item.bodySite[x]", description="Location of requested test (if applicable)", type="token" ) - public static final String SP_BODYSITE = "bodysite"; + @SearchParamDefinition(name = "item-past-status", path = "DiagnosticOrder.item.event.status", description = "proposed | planned | requested | received | accepted | in-progress | review | completed | suspended | rejected | failed", type = "token") + public static final String SP_ITEMPASTSTATUS = "item-past-status"; + @SearchParamDefinition(name = "identifier", path = "DiagnosticOrder.identifier", description = "Identifiers assigned to this order", type = "token") + public static final String SP_IDENTIFIER = "identifier"; + @SearchParamDefinition(name = "bodysite", path = "DiagnosticOrder.item.bodySite[x]", description = "Location of requested test (if applicable)", type = "token") + public static final String SP_BODYSITE = "bodysite"; @SearchParamDefinition(name="code", path="DiagnosticOrder.item.code", description="Code to indicate the item (test or panel) being ordered", type="token" ) public static final String SP_CODE = "code"; - @SearchParamDefinition(name="event-date", path="DiagnosticOrder.event.dateTime", description="The date at which the event happened", type="date" ) - public static final String SP_EVENTDATE = "event-date"; - @SearchParamDefinition(name="event-status-date", path="", description="A combination of past-status and date", type="composite" ) - public static final String SP_EVENTSTATUSDATE = "event-status-date"; - @SearchParamDefinition(name="subject", path="DiagnosticOrder.subject", description="Who and/or what test is about", type="reference" ) - public static final String SP_SUBJECT = "subject"; + @SearchParamDefinition(name = "event-date", path = "DiagnosticOrder.event.dateTime", description = "The date at which the event happened", type = "date") + public static final String SP_EVENTDATE = "event-date"; + @SearchParamDefinition(name = "event-status-date", path = "", description = "A combination of past-status and date", type = "composite") + public static final String SP_EVENTSTATUSDATE = "event-status-date"; + @SearchParamDefinition(name = "subject", path = "DiagnosticOrder.subject", description = "Who and/or what test is about", type = "reference") + public static final String SP_SUBJECT = "subject"; @SearchParamDefinition(name="encounter", path="DiagnosticOrder.encounter", description="The encounter that this diagnostic order is associated with", type="reference" ) public static final String SP_ENCOUNTER = "encounter"; - @SearchParamDefinition(name="actor", path="DiagnosticOrder.event.actor|DiagnosticOrder.item.event.actor", description="Who recorded or did this", type="reference" ) - public static final String SP_ACTOR = "actor"; + @SearchParamDefinition(name = "actor", path = "DiagnosticOrder.event.actor|DiagnosticOrder.item.event.actor", description = "Who recorded or did this", type = "reference") + public static final String SP_ACTOR = "actor"; @SearchParamDefinition(name="item-date", path="DiagnosticOrder.item.event.dateTime", description="The date at which the event happened", type="date" ) public static final String SP_ITEMDATE = "item-date"; @SearchParamDefinition(name="item-status-date", path="", description="A combination of item-past-status and item-date", type="composite" ) public static final String SP_ITEMSTATUSDATE = "item-status-date"; - @SearchParamDefinition(name="event-status", path="DiagnosticOrder.event.status", description="proposed | planned | requested | received | accepted | in-progress | review | completed | suspended | rejected | failed", type="token" ) - public static final String SP_EVENTSTATUS = "event-status"; - @SearchParamDefinition(name="item-status", path="DiagnosticOrder.item.status", description="proposed | planned | requested | received | accepted | in-progress | review | completed | suspended | rejected | failed", type="token" ) - public static final String SP_ITEMSTATUS = "item-status"; - @SearchParamDefinition(name="patient", path="DiagnosticOrder.subject", description="Who and/or what test is about", type="reference" ) - public static final String SP_PATIENT = "patient"; - @SearchParamDefinition(name="orderer", path="DiagnosticOrder.orderer", description="Who ordered the test", type="reference" ) - public static final String SP_ORDERER = "orderer"; - @SearchParamDefinition(name="specimen", path="DiagnosticOrder.specimen|DiagnosticOrder.item.specimen", description="If the whole order relates to specific specimens", type="reference" ) - public static final String SP_SPECIMEN = "specimen"; - @SearchParamDefinition(name="status", path="DiagnosticOrder.status", description="proposed | planned | requested | received | accepted | in-progress | review | completed | suspended | rejected | failed", type="token" ) - public static final String SP_STATUS = "status"; + @SearchParamDefinition(name = "event-status", path = "DiagnosticOrder.event.status", description = "proposed | planned | requested | received | accepted | in-progress | review | completed | suspended | rejected | failed", type = "token") + public static final String SP_EVENTSTATUS = "event-status"; + @SearchParamDefinition(name = "item-status", path = "DiagnosticOrder.item.status", description = "proposed | planned | requested | received | accepted | in-progress | review | completed | suspended | rejected | failed", type = "token") + public static final String SP_ITEMSTATUS = "item-status"; + @SearchParamDefinition(name = "patient", path = "DiagnosticOrder.subject", description = "Who and/or what test is about", type = "reference") + public static final String SP_PATIENT = "patient"; + @SearchParamDefinition(name = "orderer", path = "DiagnosticOrder.orderer", description = "Who ordered the test", type = "reference") + public static final String SP_ORDERER = "orderer"; + @SearchParamDefinition(name = "specimen", path = "DiagnosticOrder.specimen|DiagnosticOrder.item.specimen", description = "If the whole order relates to specific specimens", type = "reference") + public static final String SP_SPECIMEN = "specimen"; + @SearchParamDefinition(name = "status", path = "DiagnosticOrder.status", description = "proposed | planned | requested | received | accepted | in-progress | review | completed | suspended | rejected | failed", type = "token") + public static final String SP_STATUS = "status"; } diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/DiagnosticReport.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/DiagnosticReport.java index 4d694d1f338..4b7fdd00bdb 100644 --- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/DiagnosticReport.java +++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/DiagnosticReport.java @@ -370,28 +370,28 @@ public class DiagnosticReport extends DomainResource { /** * A code or name that describes this diagnostic report. */ - @Child(name="name", type={CodeableConcept.class}, order=0, min=1, max=1) + @Child(name = "name", type = {CodeableConcept.class}, order = 0, min = 1, max = 1) @Description(shortDefinition="Name/Code for this diagnostic report", formalDefinition="A code or name that describes this diagnostic report." ) protected CodeableConcept name; /** * The status of the diagnostic report as a whole. */ - @Child(name="status", type={CodeType.class}, order=1, min=1, max=1) + @Child(name = "status", type = {CodeType.class}, order = 1, min = 1, max = 1) @Description(shortDefinition="registered | partial | final | corrected +", formalDefinition="The status of the diagnostic report as a whole." ) protected Enumeration status; /** * The date and/or 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) + @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; /** * 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. */ - @Child(name="subject", type={Patient.class, Group.class, Device.class, Location.class}, order=3, min=1, max=1) + @Child(name = "subject", type = {Patient.class, Group.class, Device.class, Location.class}, order = 3, min = 1, max = 1) @Description(shortDefinition="The subject of the report, usually, but not always, the patient", formalDefinition="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." ) protected Reference subject; @@ -403,7 +403,7 @@ public class DiagnosticReport extends DomainResource { /** * The diagnostic service that is responsible for issuing the report. */ - @Child(name="performer", type={Practitioner.class, Organization.class}, order=4, min=1, max=1) + @Child(name = "performer", type = {Practitioner.class, Organization.class}, order = 4, min = 1, max = 1) @Description(shortDefinition="Responsible Diagnostic Service", formalDefinition="The diagnostic service that is responsible for issuing the report." ) protected Reference performer; @@ -415,7 +415,7 @@ public class DiagnosticReport extends DomainResource { /** * The link to the health care event (encounter) when the order was made. */ - @Child(name="encounter", type={Encounter.class}, order=5, min=0, max=1) + @Child(name = "encounter", type = {Encounter.class}, order = 5, min = 0, max = 1) @Description(shortDefinition="Health care event when test ordered", formalDefinition="The link to the health care event (encounter) when the order was made." ) protected Reference encounter; @@ -427,14 +427,14 @@ public class DiagnosticReport extends DomainResource { /** * The local ID assigned to the report by the order filler, usually by the Information System of the diagnostic service provider. */ - @Child(name="identifier", type={Identifier.class}, order=6, min=0, max=1) + @Child(name = "identifier", type = {Identifier.class}, order = 6, min = 0, max = 1) @Description(shortDefinition="Id for external references to this report", formalDefinition="The local ID assigned to the report by the order filler, usually by the Information System of the diagnostic service provider." ) protected Identifier identifier; /** * Details concerning a test requested. */ - @Child(name="requestDetail", type={DiagnosticOrder.class}, order=7, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "requestDetail", type = {DiagnosticOrder.class}, order = 7, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="What was requested", formalDefinition="Details concerning a test requested." ) protected List requestDetail; /** @@ -446,21 +446,21 @@ public class DiagnosticReport extends DomainResource { /** * The section of the diagnostic service that performs the examination e.g. biochemistry, hematology, MRI. */ - @Child(name="serviceCategory", type={CodeableConcept.class}, order=8, min=0, max=1) + @Child(name = "serviceCategory", type = {CodeableConcept.class}, order = 8, min = 0, max = 1) @Description(shortDefinition="Biochemistry, Hematology etc.", formalDefinition="The section of the diagnostic service that performs the examination e.g. biochemistry, hematology, MRI." ) 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. */ - @Child(name="diagnostic", type={DateTimeType.class, Period.class}, order=9, min=1, max=1) + @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; /** * Details about the specimens on which this diagnostic report is based. */ - @Child(name="specimen", type={Specimen.class}, order=10, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "specimen", type = {Specimen.class}, order = 10, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Specimens this report is based on", formalDefinition="Details about the specimens on which this diagnostic report is based." ) protected List specimen; /** @@ -472,7 +472,7 @@ public class DiagnosticReport extends DomainResource { /** * 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"). */ - @Child(name="result", type={Observation.class}, order=11, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "result", type = {Observation.class}, order = 11, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Observations - simple, or complex nested groups", formalDefinition="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')." ) protected List result; /** @@ -484,7 +484,7 @@ public class DiagnosticReport extends DomainResource { /** * One or more links to full details of any imaging performed during the diagnostic investigation. Typically, this is imaging performed by DICOM enabled modalities, but this is not required. A fully enabled PACS viewer can use this information to provide views of the source images. */ - @Child(name="imagingStudy", type={ImagingStudy.class}, order=12, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "imagingStudy", type = {ImagingStudy.class}, order = 12, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Reference to full details of imaging associated with the diagnostic report", formalDefinition="One or more links to full details of any imaging performed during the diagnostic investigation. Typically, this is imaging performed by DICOM enabled modalities, but this is not required. A fully enabled PACS viewer can use this information to provide views of the source images." ) protected List imagingStudy; /** @@ -496,28 +496,28 @@ public class DiagnosticReport extends DomainResource { /** * A list of key images associated with this report. The images are generally created during the diagnostic process, and may be directly of the patient, or of treated specimens (i.e. slides of interest). */ - @Child(name="image", type={}, order=13, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "image", type = {}, order = 13, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Key images associated with this report", formalDefinition="A list of key images associated with this report. The images are generally created during the diagnostic process, and may be directly of the patient, or of treated specimens (i.e. slides of interest)." ) protected List image; /** * Concise and clinically contextualized narrative interpretation of the diagnostic report. */ - @Child(name="conclusion", type={StringType.class}, order=14, min=0, max=1) + @Child(name = "conclusion", type = {StringType.class}, order = 14, min = 0, max = 1) @Description(shortDefinition="Clinical Interpretation of test results", formalDefinition="Concise and clinically contextualized narrative interpretation of the diagnostic report." ) protected StringType conclusion; /** * Codes for the conclusion. */ - @Child(name="codedDiagnosis", type={CodeableConcept.class}, order=15, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "codedDiagnosis", type = {CodeableConcept.class}, order = 15, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Codes for the conclusion", formalDefinition="Codes for the conclusion." ) protected List codedDiagnosis; /** * Rich text representation of the entire result as issued by the diagnostic service. Multiple formats are allowed but they SHALL be semantically equivalent. */ - @Child(name="presentedForm", type={Attachment.class}, order=16, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "presentedForm", type = {Attachment.class}, order = 16, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Entire Report as issued", formalDefinition="Rich text representation of the entire result as issued by the diagnostic service. Multiple formats are allowed but they SHALL be semantically equivalent." ) protected List presentedForm; @@ -1320,15 +1320,15 @@ 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.diagnostic[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" ) + @SearchParamDefinition(name = "identifier", path = "DiagnosticReport.identifier", description = "An identifier for the report", type = "token") public static final String SP_IDENTIFIER = "identifier"; - @SearchParamDefinition(name="image", path="DiagnosticReport.image.link", description="Reference to the image source", type="reference" ) + @SearchParamDefinition(name = "image", path = "DiagnosticReport.image.link", description = "Reference to the image source", type = "reference") public static final String SP_IMAGE = "image"; - @SearchParamDefinition(name="request", path="DiagnosticReport.requestDetail", description="What was requested", type="reference" ) + @SearchParamDefinition(name = "request", path = "DiagnosticReport.requestDetail", description = "What was requested", type = "reference") public static final String SP_REQUEST = "request"; - @SearchParamDefinition(name="performer", path="DiagnosticReport.performer", description="Who was the source of the report (organization)", type="reference" ) + @SearchParamDefinition(name = "performer", path = "DiagnosticReport.performer", description = "Who was the source of the report (organization)", type = "reference") public static final String SP_PERFORMER = "performer"; @SearchParamDefinition(name="subject", path="DiagnosticReport.subject", description="The subject of the report", type="reference" ) public static final String SP_SUBJECT = "subject"; @@ -1336,9 +1336,9 @@ public class DiagnosticReport extends DomainResource { public static final String SP_DIAGNOSIS = "diagnosis"; @SearchParamDefinition(name="encounter", path="DiagnosticReport.encounter", description="The Encounter when the order was made", type="reference" ) public static final String SP_ENCOUNTER = "encounter"; - @SearchParamDefinition(name="result", path="DiagnosticReport.result", description="Link to an atomic result (observation resource)", type="reference" ) + @SearchParamDefinition(name = "result", path = "DiagnosticReport.result", description = "Link to an atomic result (observation resource)", type = "reference") public static final String SP_RESULT = "result"; - @SearchParamDefinition(name="service", path="DiagnosticReport.serviceCategory", description="Which diagnostic discipline/department created the report", type="token" ) + @SearchParamDefinition(name = "service", path = "DiagnosticReport.serviceCategory", description = "Which diagnostic discipline/department created the report", type = "token") public static final String SP_SERVICE = "service"; @SearchParamDefinition(name="patient", path="DiagnosticReport.subject", description="The subject of the report if a patient", type="reference" ) public static final String SP_PATIENT = "patient"; @@ -1346,9 +1346,9 @@ public class DiagnosticReport extends DomainResource { public static final String SP_SPECIMEN = "specimen"; @SearchParamDefinition(name="name", path="DiagnosticReport.name", description="The name of the report (e.g. the code for the report as a whole, as opposed to codes for the atomic results, which are the names on the observation resource referred to from the result)", type="token" ) public static final String SP_NAME = "name"; - @SearchParamDefinition(name="issued", path="DiagnosticReport.issued", description="When the report was issued", type="date" ) + @SearchParamDefinition(name = "issued", path = "DiagnosticReport.issued", description = "When the report was issued", type = "date") public static final String SP_ISSUED = "issued"; - @SearchParamDefinition(name="status", path="DiagnosticReport.status", description="The status of the report", type="token" ) + @SearchParamDefinition(name = "status", path = "DiagnosticReport.status", description = "The status of the report", type = "token") public static final String SP_STATUS = "status"; } diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/DocumentManifest.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/DocumentManifest.java index 2272212044e..6bee9e5f2ac 100644 --- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/DocumentManifest.java +++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/DocumentManifest.java @@ -134,21 +134,21 @@ public class DocumentManifest extends DomainResource { /** * A single identifier that uniquely identifies this manifest. Principally used to refer to the manifest in non-FHIR contexts. */ - @Child(name="masterIdentifier", type={Identifier.class}, order=0, min=0, max=1) + @Child(name = "masterIdentifier", type = {Identifier.class}, order = 0, min = 0, max = 1) @Description(shortDefinition="Unique Identifier for the set of documents", formalDefinition="A single identifier that uniquely identifies this manifest. Principally used to refer to the manifest in non-FHIR contexts." ) protected Identifier masterIdentifier; /** * Other identifiers associated with the document, including version independent, source record and workflow related identifiers. */ - @Child(name="identifier", type={Identifier.class}, order=1, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "identifier", type = {Identifier.class}, order = 1, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Other identifiers for the manifest", formalDefinition="Other identifiers associated with the document, including version independent, source record and workflow related identifiers." ) protected List identifier; /** * Who or what the set of documents is about. The documents can be about a person, (patient or healthcare practitioner), a device (i.e. machine) or even a group of subjects (such as a document about a herd of farm animals, or a set of patients that share a common exposure). If the documents cross more than one subject, then more than one subject is allowed here (unusual use case). */ - @Child(name="subject", type={Patient.class, Practitioner.class, Group.class, Device.class}, order=2, min=0, max=1) + @Child(name = "subject", type = {Patient.class, Practitioner.class, Group.class, Device.class}, order = 2, min = 0, max = 1) @Description(shortDefinition="The subject of the set of documents", formalDefinition="Who or what the set of documents is about. The documents can be about a person, (patient or healthcare practitioner), a device (i.e. machine) or even a group of subjects (such as a document about a herd of farm animals, or a set of patients that share a common exposure). If the documents cross more than one subject, then more than one subject is allowed here (unusual use case)." ) protected Reference subject; @@ -160,7 +160,7 @@ public class DocumentManifest extends DomainResource { /** * A patient, practitioner, or organization for which this set of documents is intended. */ - @Child(name="recipient", type={Patient.class, Practitioner.class, Organization.class}, order=3, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "recipient", type = {Patient.class, Practitioner.class, Organization.class}, order = 3, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Intended to get notified about this set of documents", formalDefinition="A patient, practitioner, or organization for which this set of documents is intended." ) protected List recipient; /** @@ -172,14 +172,14 @@ public class DocumentManifest extends DomainResource { /** * Specifies the kind of this set of documents (e.g. Patient Summary, Discharge Summary, Prescription, etc.). The type of a set of documents may be the same as one of the documents in it - especially if there is only one - but it may be wider. */ - @Child(name="type", type={CodeableConcept.class}, order=4, min=0, max=1) + @Child(name = "type", type = {CodeableConcept.class}, order = 4, min = 0, max = 1) @Description(shortDefinition="What kind of document set this is", formalDefinition="Specifies the kind of this set of documents (e.g. Patient Summary, Discharge Summary, Prescription, etc.). The type of a set of documents may be the same as one of the documents in it - especially if there is only one - but it may be wider." ) protected CodeableConcept type; /** * Identifies who is responsible for adding the information to the document. */ - @Child(name="author", type={Practitioner.class, Organization.class, Device.class, Patient.class, RelatedPerson.class}, order=5, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "author", type = {Practitioner.class, Organization.class, Device.class, Patient.class, RelatedPerson.class}, order = 5, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Who and/or what authored the document", formalDefinition="Identifies who is responsible for adding the information to the document." ) protected List author; /** @@ -191,28 +191,28 @@ public class DocumentManifest extends DomainResource { /** * When the document manifest was created for submission to the server (not necessarily the same thing as the actual resource last modified time, since it may be modified, replicated etc). */ - @Child(name="created", type={DateTimeType.class}, order=6, min=0, max=1) + @Child(name = "created", type = {DateTimeType.class}, order = 6, min = 0, max = 1) @Description(shortDefinition="When this document manifest created", formalDefinition="When the document manifest was created for submission to the server (not necessarily the same thing as the actual resource last modified time, since it may be modified, replicated etc)." ) protected DateTimeType created; /** * Identifies the source system, application, or software that produced the document manifest. */ - @Child(name="source", type={UriType.class}, order=7, min=0, max=1) + @Child(name = "source", type = {UriType.class}, order = 7, min = 0, max = 1) @Description(shortDefinition="The source system/application/software", formalDefinition="Identifies the source system, application, or software that produced the document manifest." ) protected UriType source; /** * The status of this document manifest. */ - @Child(name="status", type={CodeType.class}, order=8, min=1, max=1) + @Child(name = "status", type = {CodeType.class}, order = 8, min = 1, max = 1) @Description(shortDefinition="current | superceded | entered-in-error", formalDefinition="The status of this document manifest." ) protected Enumeration status; /** * Whether this document manifest replaces another. */ - @Child(name="supercedes", type={DocumentManifest.class}, order=9, min=0, max=1) + @Child(name = "supercedes", type = {DocumentManifest.class}, order = 9, min = 0, max = 1) @Description(shortDefinition="If this document manifest replaces another", formalDefinition="Whether this document manifest replaces another." ) protected Reference supercedes; @@ -224,21 +224,21 @@ public class DocumentManifest extends DomainResource { /** * Human-readable description of the source document. This is sometimes known as the "title". */ - @Child(name="description", type={StringType.class}, order=10, min=0, max=1) + @Child(name = "description", type = {StringType.class}, order = 10, min = 0, max = 1) @Description(shortDefinition="Human-readable description (title)", formalDefinition="Human-readable description of the source document. This is sometimes known as the 'title'." ) protected StringType description; /** * A code specifying the level of confidentiality of this set of Documents. */ - @Child(name="confidentiality", type={CodeableConcept.class}, order=11, min=0, max=1) + @Child(name = "confidentiality", type = {CodeableConcept.class}, order = 11, min = 0, max = 1) @Description(shortDefinition="Sensitivity of set of documents", formalDefinition="A code specifying the level of confidentiality of this set of Documents." ) protected CodeableConcept confidentiality; /** * The list of resources that describe the parts of this document reference. Usually, these would be document references, but direct references to binary attachments and images are also allowed. */ - @Child(name="content", type={DocumentReference.class, Binary.class, Media.class}, order=12, min=1, max=Child.MAX_UNLIMITED) + @Child(name = "content", type = {DocumentReference.class, Binary.class, Media.class}, order = 12, min = 1, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Contents of this set of documents", formalDefinition="The list of resources that describe the parts of this document reference. Usually, these would be document references, but direct references to binary attachments and images are also allowed." ) protected List content; /** @@ -848,7 +848,7 @@ public class DocumentManifest extends DomainResource { return ResourceType.DocumentManifest; } - @SearchParamDefinition(name="identifier", path="DocumentManifest.masterIdentifier|DocumentManifest.identifier", description="Unique Identifier for the set of documents", type="token" ) + @SearchParamDefinition(name = "identifier", path = "DocumentManifest.masterIdentifier|DocumentManifest.identifier", description = "Unique Identifier for the set of documents", type = "token") public static final String SP_IDENTIFIER = "identifier"; @SearchParamDefinition(name="subject", path="DocumentManifest.subject", description="The subject of the set of documents", type="reference" ) public static final String SP_SUBJECT = "subject"; @@ -858,21 +858,21 @@ public class DocumentManifest extends DomainResource { public static final String SP_CREATED = "created"; @SearchParamDefinition(name="confidentiality", path="DocumentManifest.confidentiality", description="Sensitivity of set of documents", type="token" ) public static final String SP_CONFIDENTIALITY = "confidentiality"; - @SearchParamDefinition(name="description", path="DocumentManifest.description", description="Human-readable description (title)", type="string" ) + @SearchParamDefinition(name = "description", path = "DocumentManifest.description", description = "Human-readable description (title)", type = "string") public static final String SP_DESCRIPTION = "description"; - @SearchParamDefinition(name="source", path="DocumentManifest.source", description="The source system/application/software", type="string" ) + @SearchParamDefinition(name = "source", path = "DocumentManifest.source", description = "The source system/application/software", type = "string") public static final String SP_SOURCE = "source"; - @SearchParamDefinition(name="type", path="DocumentManifest.type", description="What kind of document set this is", type="token" ) + @SearchParamDefinition(name = "type", path = "DocumentManifest.type", description = "What kind of document set this is", type = "token") public static final String SP_TYPE = "type"; - @SearchParamDefinition(name="content", path="DocumentManifest.content", description="Contents of this set of documents", type="reference" ) + @SearchParamDefinition(name = "content", path = "DocumentManifest.content", description = "Contents of this set of documents", type = "reference") public static final String SP_CONTENT = "content"; - @SearchParamDefinition(name="supersedes", path="DocumentManifest.supercedes", description="If this document manifest replaces another", type="reference" ) + @SearchParamDefinition(name = "supersedes", path = "DocumentManifest.supercedes", description = "If this document manifest replaces another", type = "reference") public static final String SP_SUPERSEDES = "supersedes"; - @SearchParamDefinition(name="patient", path="DocumentManifest.subject", description="The subject of the set of documents", type="reference" ) + @SearchParamDefinition(name = "patient", path = "DocumentManifest.subject", description = "The subject of the set of documents", type = "reference") public static final String SP_PATIENT = "patient"; - @SearchParamDefinition(name="recipient", path="DocumentManifest.recipient", description="Intended to get notified about this set of documents", type="reference" ) + @SearchParamDefinition(name = "recipient", path = "DocumentManifest.recipient", description = "Intended to get notified about this set of documents", type = "reference") public static final String SP_RECIPIENT = "recipient"; - @SearchParamDefinition(name="status", path="DocumentManifest.status", description="current | superceded | entered-in-error", type="token" ) + @SearchParamDefinition(name = "status", path = "DocumentManifest.status", description = "current | superceded | entered-in-error", type = "token") public static final String SP_STATUS = "status"; } diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/DocumentReference.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/DocumentReference.java index c5e1791e4b3..83c19be223c 100644 --- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/DocumentReference.java +++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/DocumentReference.java @@ -552,21 +552,21 @@ public class DocumentReference extends DomainResource { /** * Document identifier as assigned by the source of the document. This identifier is specific to this version of the document. This unique identifier may be used elsewhere to identify this version of the document. */ - @Child(name="masterIdentifier", type={Identifier.class}, order=0, min=0, max=1) + @Child(name = "masterIdentifier", type = {Identifier.class}, order = 0, min = 0, max = 1) @Description(shortDefinition="Master Version Specific Identifier", formalDefinition="Document identifier as assigned by the source of the document. This identifier is specific to this version of the document. This unique identifier may be used elsewhere to identify this version of the document." ) protected Identifier masterIdentifier; /** * Other identifiers associated with the document, including version independent, source record and workflow related identifiers. */ - @Child(name="identifier", type={Identifier.class}, order=1, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "identifier", type = {Identifier.class}, order = 1, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Other identifiers for the document", formalDefinition="Other identifiers associated with the document, including version independent, source record and workflow related identifiers." ) protected List identifier; /** * Who or what the document is about. The document can be about a person, (patient or healthcare practitioner), a device (I.e. machine) or even a group of subjects (such as a document about a herd of farm animals, or a set of patients that share a common exposure). */ - @Child(name="subject", type={Patient.class, Practitioner.class, Group.class, Device.class}, order=2, min=0, max=1) + @Child(name = "subject", type = {Patient.class, Practitioner.class, Group.class, Device.class}, order = 2, min = 0, max = 1) @Description(shortDefinition="Who|what is the subject of the document", formalDefinition="Who or what the document is about. The document can be about a person, (patient or healthcare practitioner), a device (I.e. machine) or even a group of subjects (such as a document about a herd of farm animals, or a set of patients that share a common exposure)." ) protected Reference subject; @@ -578,28 +578,28 @@ public class DocumentReference extends DomainResource { /** * The type code specifies the precise type of document from the user perspective. It is recommended that the value Set be drawn from a coding scheme providing a fine level of granularity such as LOINC. (e.g. Patient Summary, Discharge Summary, Prescription, etc.). */ - @Child(name="type", type={CodeableConcept.class}, order=3, min=1, max=1) + @Child(name = "type", type = {CodeableConcept.class}, order = 3, min = 1, max = 1) @Description(shortDefinition="Precice type of document", formalDefinition="The type code specifies the precise type of document from the user perspective. It is recommended that the value Set be drawn from a coding scheme providing a fine level of granularity such as LOINC. (e.g. Patient Summary, Discharge Summary, Prescription, etc.)." ) protected CodeableConcept type; /** * The class code specifying the high-level use classification of the document type (e.g., Report, Summary, Images, Treatment Plan, Patient Preferences, Workflow). */ - @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="High-level classification of document", formalDefinition="The class code specifying the high-level use classification of the document type (e.g., Report, Summary, Images, Treatment Plan, Patient Preferences, Workflow)." ) protected CodeableConcept class_; /** * An identifier that identifies the the document encoding, structure and template that the document conforms to beyond the base format indicated in the mimeType. */ - @Child(name="format", type={UriType.class}, order=5, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "format", type = {UriType.class}, order = 5, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Format/content rules for the document", formalDefinition="An identifier that identifies the the document encoding, structure and template that the document conforms to beyond the base format indicated in the mimeType." ) protected List format; /** * Identifies who is responsible for adding the information to the document. */ - @Child(name="author", type={Practitioner.class, Organization.class, Device.class, Patient.class, RelatedPerson.class}, order=6, min=1, max=Child.MAX_UNLIMITED) + @Child(name = "author", type = {Practitioner.class, Organization.class, Device.class, Patient.class, RelatedPerson.class}, order = 6, min = 1, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Who and/or what authored the document", formalDefinition="Identifies who is responsible for adding the information to the document." ) protected List author; /** @@ -611,7 +611,7 @@ public class DocumentReference extends DomainResource { /** * Identifies the organization or group who is responsible for ongoing maintenance of and access to the document. */ - @Child(name="custodian", type={Organization.class}, order=7, min=0, max=1) + @Child(name = "custodian", type = {Organization.class}, order = 7, min = 0, max = 1) @Description(shortDefinition="Org which maintains the document", formalDefinition="Identifies the organization or group who is responsible for ongoing maintenance of and access to the document." ) protected Reference custodian; @@ -623,14 +623,14 @@ public class DocumentReference extends DomainResource { /** * A reference to a domain or server that manages policies under which the document is accessed and/or made available. */ - @Child(name="policyManager", type={UriType.class}, order=8, min=0, max=1) + @Child(name = "policyManager", type = {UriType.class}, order = 8, min = 0, max = 1) @Description(shortDefinition="Manages access policies for the document", formalDefinition="A reference to a domain or server that manages policies under which the document is accessed and/or made available." ) protected UriType policyManager; /** * Which person or organization authenticates that this document is valid. */ - @Child(name="authenticator", type={Practitioner.class, Organization.class}, order=9, min=0, max=1) + @Child(name = "authenticator", type = {Practitioner.class, Organization.class}, order = 9, min = 0, max = 1) @Description(shortDefinition="Who/What authenticated the document", formalDefinition="Which person or organization authenticates that this document is valid." ) protected Reference authenticator; @@ -642,63 +642,63 @@ public class DocumentReference extends DomainResource { /** * When the document was created. */ - @Child(name="created", type={DateTimeType.class}, order=10, min=0, max=1) + @Child(name = "created", type = {DateTimeType.class}, order = 10, min = 0, max = 1) @Description(shortDefinition="Document creation time", formalDefinition="When the document was created." ) protected DateTimeType created; /** * When the document reference was created. */ - @Child(name="indexed", type={InstantType.class}, order=11, min=1, max=1) + @Child(name = "indexed", type = {InstantType.class}, order = 11, min = 1, max = 1) @Description(shortDefinition="When this document reference created", formalDefinition="When the document reference was created." ) protected InstantType indexed; /** * The status of this document reference. */ - @Child(name="status", type={CodeType.class}, order=12, min=1, max=1) + @Child(name = "status", type = {CodeType.class}, order = 12, min = 1, max = 1) @Description(shortDefinition="current | superceded | entered-in-error", formalDefinition="The status of this document reference." ) protected Enumeration status; /** * The status of the underlying document. */ - @Child(name="docStatus", type={CodeableConcept.class}, order=13, min=0, max=1) + @Child(name = "docStatus", type = {CodeableConcept.class}, order = 13, min = 0, max = 1) @Description(shortDefinition="preliminary | final | appended | amended | entered-in-error", formalDefinition="The status of the underlying document." ) protected CodeableConcept docStatus; /** * Relationships that this document has with other document references that already exist. */ - @Child(name="relatesTo", type={}, order=14, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "relatesTo", type = {}, order = 14, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Relationships to other documents", formalDefinition="Relationships that this document has with other document references that already exist." ) protected List relatesTo; /** * Human-readable description of the source document. This is sometimes known as the "title". */ - @Child(name="description", type={StringType.class}, order=15, min=0, max=1) + @Child(name = "description", type = {StringType.class}, order = 15, min = 0, max = 1) @Description(shortDefinition="Human-readable description (title)", formalDefinition="Human-readable description of the source document. This is sometimes known as the 'title'." ) protected StringType description; /** * A set of Security-Tag codes specifying the level of privacy/security of the Document. */ - @Child(name="confidentiality", type={CodeableConcept.class}, order=16, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "confidentiality", type = {CodeableConcept.class}, order = 16, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Sensitivity of source document", formalDefinition="A set of Security-Tag codes specifying the level of privacy/security of the Document." ) protected List confidentiality; /** * The document or url to the document along with critical metadata to prove content has integrity. */ - @Child(name="content", type={Attachment.class}, order=17, min=1, max=Child.MAX_UNLIMITED) + @Child(name = "content", type = {Attachment.class}, order = 17, min = 1, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Where to access the document", formalDefinition="The document or url to the document along with critical metadata to prove content has integrity." ) protected List content; /** * The clinical context in which the document was prepared. */ - @Child(name="context", type={}, order=18, min=0, max=1) + @Child(name = "context", type = {}, order = 18, min = 0, max = 1) @Description(shortDefinition="Clinical context of document", formalDefinition="The clinical context in which the document was prepared." ) protected DocumentReferenceContextComponent context; @@ -1528,12 +1528,12 @@ public class DocumentReference extends DomainResource { return ResourceType.DocumentReference; } - @SearchParamDefinition(name="identifier", path="DocumentReference.masterIdentifier|DocumentReference.identifier", description="Master Version Specific Identifier", type="token" ) - public static final String SP_IDENTIFIER = "identifier"; - @SearchParamDefinition(name="period", path="DocumentReference.context.period", description="Time of service that is being documented", type="date" ) - public static final String SP_PERIOD = "period"; - @SearchParamDefinition(name="custodian", path="DocumentReference.custodian", description="Org which maintains the document", type="reference" ) - public static final String SP_CUSTODIAN = "custodian"; + @SearchParamDefinition(name = "identifier", path = "DocumentReference.masterIdentifier|DocumentReference.identifier", description = "Master Version Specific Identifier", type = "token") + public static final String SP_IDENTIFIER = "identifier"; + @SearchParamDefinition(name = "period", path = "DocumentReference.context.period", description = "Time of service that is being documented", type = "date") + public static final String SP_PERIOD = "period"; + @SearchParamDefinition(name = "custodian", path = "DocumentReference.custodian", description = "Org which maintains the document", type = "reference") + public static final String SP_CUSTODIAN = "custodian"; @SearchParamDefinition(name="indexed", path="DocumentReference.indexed", description="When this document reference created", type="date" ) public static final String SP_INDEXED = "indexed"; @SearchParamDefinition(name="subject", path="DocumentReference.subject", description="Who|what is the subject of the document", type="reference" ) @@ -1544,34 +1544,34 @@ public class DocumentReference extends DomainResource { public static final String SP_CREATED = "created"; @SearchParamDefinition(name="confidentiality", path="DocumentReference.confidentiality", description="Sensitivity of source document", type="token" ) public static final String SP_CONFIDENTIALITY = "confidentiality"; - @SearchParamDefinition(name="format", path="DocumentReference.format", description="Format/content rules for the document", type="token" ) - public static final String SP_FORMAT = "format"; + @SearchParamDefinition(name = "format", path = "DocumentReference.format", description = "Format/content rules for the document", type = "token") + public static final String SP_FORMAT = "format"; @SearchParamDefinition(name="description", path="DocumentReference.description", description="Human-readable description (title)", type="string" ) public static final String SP_DESCRIPTION = "description"; @SearchParamDefinition(name="language", path="DocumentReference.content.language", description="Human language of the content (BCP-47)", type="token" ) public static final String SP_LANGUAGE = "language"; - @SearchParamDefinition(name="type", path="DocumentReference.type", description="Precice type of document", type="token" ) - public static final String SP_TYPE = "type"; - @SearchParamDefinition(name="relation", path="DocumentReference.relatesTo.code", description="replaces | transforms | signs | appends", type="token" ) - public static final String SP_RELATION = "relation"; - @SearchParamDefinition(name="patient", path="DocumentReference.subject", description="Who|what is the subject of the document", type="reference" ) - public static final String SP_PATIENT = "patient"; - @SearchParamDefinition(name="location", path="DocumentReference.content.url", description="Uri where the data can be found", type="string" ) - public static final String SP_LOCATION = "location"; - @SearchParamDefinition(name="relatesto", path="DocumentReference.relatesTo.target", description="Target of the relationship", type="reference" ) - public static final String SP_RELATESTO = "relatesto"; - @SearchParamDefinition(name="relationship", path="", description="Combination of relation and relatesTo", type="composite" ) - public static final String SP_RELATIONSHIP = "relationship"; - @SearchParamDefinition(name="event", path="DocumentReference.context.event", description="Main Clinical Acts Documented", type="token" ) - public static final String SP_EVENT = "event"; - @SearchParamDefinition(name="class", path="DocumentReference.class", description="High-level classification of document", type="token" ) - public static final String SP_CLASS = "class"; - @SearchParamDefinition(name="authenticator", path="DocumentReference.authenticator", description="Who/What authenticated the document", type="reference" ) - public static final String SP_AUTHENTICATOR = "authenticator"; - @SearchParamDefinition(name="facility", path="DocumentReference.context.facilityType", description="Kind of facility where patient was seen", type="token" ) - public static final String SP_FACILITY = "facility"; - @SearchParamDefinition(name="status", path="DocumentReference.status", description="current | superceded | entered-in-error", type="token" ) - public static final String SP_STATUS = "status"; + @SearchParamDefinition(name = "type", path = "DocumentReference.type", description = "Precice type of document", type = "token") + public static final String SP_TYPE = "type"; + @SearchParamDefinition(name = "relation", path = "DocumentReference.relatesTo.code", description = "replaces | transforms | signs | appends", type = "token") + public static final String SP_RELATION = "relation"; + @SearchParamDefinition(name = "patient", path = "DocumentReference.subject", description = "Who|what is the subject of the document", type = "reference") + public static final String SP_PATIENT = "patient"; + @SearchParamDefinition(name = "location", path = "DocumentReference.content.url", description = "Uri where the data can be found", type = "string") + public static final String SP_LOCATION = "location"; + @SearchParamDefinition(name = "relatesto", path = "DocumentReference.relatesTo.target", description = "Target of the relationship", type = "reference") + public static final String SP_RELATESTO = "relatesto"; + @SearchParamDefinition(name = "relationship", path = "", description = "Combination of relation and relatesTo", type = "composite") + public static final String SP_RELATIONSHIP = "relationship"; + @SearchParamDefinition(name = "event", path = "DocumentReference.context.event", description = "Main Clinical Acts Documented", type = "token") + public static final String SP_EVENT = "event"; + @SearchParamDefinition(name = "class", path = "DocumentReference.class", description = "High-level classification of document", type = "token") + public static final String SP_CLASS = "class"; + @SearchParamDefinition(name = "authenticator", path = "DocumentReference.authenticator", description = "Who/What authenticated the document", type = "reference") + public static final String SP_AUTHENTICATOR = "authenticator"; + @SearchParamDefinition(name = "facility", path = "DocumentReference.context.facilityType", description = "Kind of facility where patient was seen", type = "token") + public static final String SP_FACILITY = "facility"; + @SearchParamDefinition(name = "status", path = "DocumentReference.status", description = "current | superceded | entered-in-error", type = "token") + public static final String SP_STATUS = "status"; } diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/DomainResource.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/DomainResource.java index 0cdcebb4a41..b80cd8cf9fc 100644 --- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/DomainResource.java +++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/DomainResource.java @@ -49,28 +49,28 @@ public abstract class DomainResource extends Resource implements IBaseHasExtensi /** * A human-readable narrative that contains a summary of the resource, and may be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it "clinically safe" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety. */ - @Child(name="text", type={Narrative.class}, order=0, min=0, max=1) + @Child(name = "text", type = {Narrative.class}, order = 0, min = 0, max = 1) @Description(shortDefinition="Text summary of the resource, for human interpretation", formalDefinition="A human-readable narrative that contains a summary of the resource, and may be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it 'clinically safe' for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety." ) protected Narrative text; /** * These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope. */ - @Child(name="contained", type={Resource.class}, order=1, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "contained", type = {Resource.class}, order = 1, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Contained, inline Resources", formalDefinition="These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope." ) protected List contained; /** * May be used to represent additional information that is not part of the basic definition of the resource. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. */ - @Child(name="extension", type={Extension.class}, order=2, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "extension", type = {Extension.class}, order = 2, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Additional Content defined by implementations", formalDefinition="May be used to represent additional information that is not part of the basic definition of the resource. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension." ) protected List extension; /** * May be used to represent additional information that is not part of the basic definition of the resource, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions. */ - @Child(name="modifierExtension", type={Extension.class}, order=3, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "modifierExtension", type = {Extension.class}, order = 3, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Extensions that cannot be ignored", formalDefinition="May be used to represent additional information that is not part of the basic definition of the resource, and that modifies the understanding of the element that contains it. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions." ) protected List modifierExtension; diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Element.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Element.java index 732337bccc2..53c10b7c172 100644 --- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Element.java +++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Element.java @@ -46,14 +46,14 @@ public abstract class Element extends Base implements IBaseHasExtensions { /** * unique id for the element within a resource (for internal references). */ - @Child(name="id", type={IdType.class}, order=0, min=0, max=1) + @Child(name = "id", type = {IdType.class}, order = 0, min = 0, max = 1) @Description(shortDefinition="xml:id (or equivalent in JSON)", formalDefinition="unique id for the element within a resource (for internal references)." ) protected IdType id; /** * May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. */ - @Child(name="extension", type={Extension.class}, order=1, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "extension", type = {Extension.class}, order = 1, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Additional Content defined by implementations", formalDefinition="May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension." ) protected List extension; diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/ElementDefinition.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/ElementDefinition.java index a2aafe8766c..cf454a8c3f9 100644 --- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/ElementDefinition.java +++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/ElementDefinition.java @@ -42,7 +42,7 @@ import org.hl7.fhir.instance.model.annotations.DatatypeDef; * Captures constraints on each element within the resource, profile, or extension. */ @DatatypeDef(name="ElementDefinition") -public class ElementDefinition extends Type implements ICompositeType { +public class ElementDefinition extends Type implements ICompositeType { public enum PropertyRepresentation { /** @@ -1764,182 +1764,182 @@ public class ElementDefinition extends Type implements ICompositeType { /** * The path identifies the element and is expressed as a "."-separated list of ancestor elements, beginning with the name of the resource or extension. */ - @Child(name="path", type={StringType.class}, order=0, min=1, max=1) + @Child(name = "path", type = {StringType.class}, order = 0, min = 1, max = 1) @Description(shortDefinition="The path of the element (see the Detailed Descriptions)", formalDefinition="The path identifies the element and is expressed as a '.'-separated list of ancestor elements, beginning with the name of the resource or extension." ) protected StringType path; /** * Codes that define how this element is represented in instances, when the deviation varies from the normal case. */ - @Child(name="representation", type={CodeType.class}, order=1, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "representation", type = {CodeType.class}, order = 1, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="How this element is represented in instances", formalDefinition="Codes that define how this element is represented in instances, when the deviation varies from the normal case." ) protected List> representation; /** * The name of this element definition (to refer to it from other element definitions using ElementDefinition.nameReference). This is a unique name referring to a specific set of constraints applied to this element. One use of this is to provide a name to different slices of the same element. */ - @Child(name="name", type={StringType.class}, order=2, min=0, max=1) + @Child(name = "name", type = {StringType.class}, order = 2, min = 0, max = 1) @Description(shortDefinition="Name for this particular element definition (reference target)", formalDefinition="The name of this element definition (to refer to it from other element definitions using ElementDefinition.nameReference). This is a unique name referring to a specific set of constraints applied to this element. One use of this is to provide a name to different slices of the same element." ) protected StringType name; /** * Indicates that the element is sliced into a set of alternative definitions (there are multiple definitions on a single element in the base resource). The set of slices is any elements that come after this in the element sequence that have the same path, until a shorter path occurs (the shorter path terminates the set). */ - @Child(name="slicing", type={}, order=3, min=0, max=1) + @Child(name = "slicing", type = {}, order = 3, min = 0, max = 1) @Description(shortDefinition="This element is sliced - slices follow", formalDefinition="Indicates that the element is sliced into a set of alternative definitions (there are multiple definitions on a single element in the base resource). The set of slices is any elements that come after this in the element sequence that have the same path, until a shorter path occurs (the shorter path terminates the set)." ) protected ElementDefinitionSlicingComponent slicing; /** * 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=4, min=0, max=1) + @Child(name = "short_", type = {StringType.class}, order = 4, 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_; /** * The definition SHALL be consistent with the base definition, but convey the meaning of the element in the particular context of use of the resource. */ - @Child(name="formal", type={StringType.class}, order=5, min=0, max=1) + @Child(name = "formal", type = {StringType.class}, order = 5, min = 0, max = 1) @Description(shortDefinition="Full formal definition in human language", formalDefinition="The definition SHALL be consistent with the base definition, but convey the meaning of the element in the particular context of use of the resource." ) protected StringType formal; /** * Comments about the use of the element, including notes about how to use the data properly, exceptions to proper use, etc. */ - @Child(name="comments", type={StringType.class}, order=6, min=0, max=1) + @Child(name = "comments", type = {StringType.class}, order = 6, min = 0, max = 1) @Description(shortDefinition="Comments about the use of this element", formalDefinition="Comments about the use of the element, including notes about how to use the data properly, exceptions to proper use, etc." ) protected StringType comments; /** * Explains why this element is needed and why it's been constrained as it has. */ - @Child(name="requirements", type={StringType.class}, order=7, min=0, max=1) + @Child(name = "requirements", type = {StringType.class}, order = 7, min = 0, max = 1) @Description(shortDefinition="Why is this needed?", formalDefinition="Explains why this element is needed and why it's been constrained as it has." ) protected StringType requirements; /** * Identifies additional names by which this element might also be known. */ - @Child(name="synonym", type={StringType.class}, order=8, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "synonym", type = {StringType.class}, order = 8, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Other names", formalDefinition="Identifies additional names by which this element might also be known." ) protected List synonym; /** * The minimum number of times this element SHALL appear in the instance. */ - @Child(name="min", type={IntegerType.class}, order=9, min=0, max=1) + @Child(name = "min", type = {IntegerType.class}, order = 9, min = 0, max = 1) @Description(shortDefinition="Minimum Cardinality", formalDefinition="The minimum number of times this element SHALL appear in the instance." ) protected IntegerType min; /** * The maximum number of times this element is permitted to appear in the instance. */ - @Child(name="max", type={StringType.class}, order=10, min=0, max=1) + @Child(name = "max", type = {StringType.class}, order = 10, min = 0, max = 1) @Description(shortDefinition="Maximum Cardinality (a number or *)", formalDefinition="The maximum number of times this element is permitted to appear in the instance." ) protected StringType max; /** * The data type or resource that the value of this element is permitted to be. */ - @Child(name="type", type={}, order=11, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "type", type = {}, order = 11, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Data type and Profile for this element", formalDefinition="The data type or resource that the value of this element is permitted to be." ) protected List type; /** * Identifies the name of a slice defined elsewhere in the profile whose constraints should be applied to the current element. */ - @Child(name="nameReference", type={StringType.class}, order=12, min=0, max=1) + @Child(name = "nameReference", type = {StringType.class}, order = 12, min = 0, max = 1) @Description(shortDefinition="To another element constraint (by element.name)", formalDefinition="Identifies the name of a slice defined elsewhere in the profile whose constraints should be applied to the current element." ) protected StringType nameReference; /** * The value that should be used if there is no value stated in the instance. */ - @Child(name="defaultValue", type={}, order=13, min=0, max=1) + @Child(name = "defaultValue", type = {}, order = 13, min = 0, max = 1) @Description(shortDefinition="Specified value it missing from instance", formalDefinition="The value that should be used if there is no value stated in the instance." ) protected org.hl7.fhir.instance.model.Type defaultValue; /** * The Implicit meaning that is to be understood when this element is missing. */ - @Child(name="meaningWhenMissing", type={StringType.class}, order=14, min=0, max=1) + @Child(name = "meaningWhenMissing", type = {StringType.class}, order = 14, min = 0, max = 1) @Description(shortDefinition="Implicit meaning when this element is missing", formalDefinition="The Implicit meaning that is to be understood when this element is missing." ) protected StringType meaningWhenMissing; /** * Specifies a value that SHALL be exactly the value for this element in the instance. For purposes of comparison, non-signficant whitespace is ignored, and all values must be an exact match (case and accent sensitive). Missing elements/attributes must also be missing. */ - @Child(name="fixed", type={}, order=15, min=0, max=1) + @Child(name = "fixed", type = {}, order = 15, min = 0, max = 1) @Description(shortDefinition="Value must be exactly this", formalDefinition="Specifies a value that SHALL be exactly the value for this element in the instance. For purposes of comparison, non-signficant whitespace is ignored, and all values must be an exact match (case and accent sensitive). Missing elements/attributes must also be missing." ) protected org.hl7.fhir.instance.model.Type fixed; /** * Specifies a value that the value in the instance SHALL follow - that is, any value in the pattern must be found in the instance. Other additional values may be found too. This is effectively constraint by example. The values of elements present in the pattern must match exactly (case-senstive, accent-sensitive, etc.). */ - @Child(name="pattern", type={}, order=16, min=0, max=1) + @Child(name = "pattern", type = {}, order = 16, min = 0, max = 1) @Description(shortDefinition="Value must have at least these property values", formalDefinition="Specifies a value that the value in the instance SHALL follow - that is, any value in the pattern must be found in the instance. Other additional values may be found too. This is effectively constraint by example. The values of elements present in the pattern must match exactly (case-senstive, accent-sensitive, etc.)." ) protected org.hl7.fhir.instance.model.Type pattern; /** * An example value for this element. */ - @Child(name="example", type={}, order=17, min=0, max=1) + @Child(name = "example", type = {}, order = 17, min = 0, max = 1) @Description(shortDefinition="Example value: [as defined for type]", formalDefinition="An example value for this element." ) protected org.hl7.fhir.instance.model.Type example; /** * Indicates the maximum length in characters that is permitted to be present in conformant instances and which is expected to be supported by conformant consumers that support the element. */ - @Child(name="maxLength", type={IntegerType.class}, order=18, min=0, max=1) + @Child(name = "maxLength", type = {IntegerType.class}, order = 18, min = 0, max = 1) @Description(shortDefinition="Max length for strings", formalDefinition="Indicates the maximum length in characters that is permitted to be present in conformant instances and which is expected to be supported by conformant consumers that support the element." ) protected IntegerType maxLength; /** * A reference to an invariant that may make additional statements about the cardinality or value in the instance. */ - @Child(name="condition", type={IdType.class}, order=19, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "condition", type = {IdType.class}, order = 19, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Reference to invariant about presence", formalDefinition="A reference to an invariant that may make additional statements about the cardinality or value in the instance." ) protected List condition; /** * Formal constraints such as co-occurrence and other constraints that can be computationally evaluated within the context of the instance. */ - @Child(name="constraint", type={}, order=20, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "constraint", type = {}, order = 20, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Condition that must evaluate to true", formalDefinition="Formal constraints such as co-occurrence and other constraints that can be computationally evaluated within the context of the instance." ) protected List constraint; /** * If true, conformant resource authors SHALL be capable of providing a value for the element and resource consumers SHALL be capable of extracting and doing something useful with the data element. If false, the element may be ignored and not supported. */ - @Child(name="mustSupport", type={BooleanType.class}, order=21, min=0, max=1) + @Child(name = "mustSupport", type = {BooleanType.class}, order = 21, min = 0, max = 1) @Description(shortDefinition="If the element must supported", formalDefinition="If true, conformant resource authors SHALL be capable of providing a value for the element and resource consumers SHALL be capable of extracting and doing something useful with the data element. If false, the element may be ignored and not supported." ) protected BooleanType mustSupport; /** * If true, the value of this element affects the interpretation of the element or resource that contains it, and the value of the element cannot be ignored. Typically, this is used for status, negation and qualification codes. The effect of this is that the element cannot be ignored by systems: they SHALL either recognize the element and process it, and/or a pre-determination has been made that it is not relevant to their particular system. */ - @Child(name="isModifier", type={BooleanType.class}, order=22, min=0, max=1) + @Child(name = "isModifier", type = {BooleanType.class}, order = 22, min = 0, max = 1) @Description(shortDefinition="If this modifies the meaning of other elements", formalDefinition="If true, the value of this element affects the interpretation of the element or resource that contains it, and the value of the element cannot be ignored. Typically, this is used for status, negation and qualification codes. The effect of this is that the element cannot be ignored by systems: they SHALL either recognize the element and process it, and/or a pre-determination has been made that it is not relevant to their particular system." ) protected BooleanType isModifier; /** * Whether the element should be included if a client requests a search with the parameter _summary=true. */ - @Child(name="isSummary", type={BooleanType.class}, order=23, min=0, max=1) + @Child(name = "isSummary", type = {BooleanType.class}, order = 23, min = 0, max = 1) @Description(shortDefinition="Include when _summary = true?", formalDefinition="Whether the element should be included if a client requests a search with the parameter _summary=true." ) protected BooleanType isSummary; /** * Binds to a value set if this element is coded (code, Coding, CodeableConcept). */ - @Child(name="binding", type={}, order=24, min=0, max=1) + @Child(name = "binding", type = {}, order = 24, min = 0, max = 1) @Description(shortDefinition="ValueSet details if this is coded", formalDefinition="Binds to a value set if this element is coded (code, Coding, CodeableConcept)." ) protected ElementDefinitionBindingComponent binding; /** * Identifies a concept from an external specification that roughly corresponds to this element. */ - @Child(name="mapping", type={}, order=25, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "mapping", type = {}, order = 25, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Map element to another set of definitions", formalDefinition="Identifies a concept from an external specification that roughly corresponds to this element." ) protected List mapping; diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/EligibilityRequest.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/EligibilityRequest.java index 4b1bc43673d..7b32bdeb930 100644 --- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/EligibilityRequest.java +++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/EligibilityRequest.java @@ -47,35 +47,35 @@ public class EligibilityRequest extends DomainResource { /** * The Response Business Identifier. */ - @Child(name="identifier", type={Identifier.class}, order=0, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "identifier", type = {Identifier.class}, order = 0, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Business Identifier", formalDefinition="The Response Business Identifier." ) protected List identifier; /** * The version of the style of resource contents. This should be mapped to the allowable profiles for this and supporting resources. */ - @Child(name="ruleset", type={Coding.class}, order=1, min=0, max=1) + @Child(name = "ruleset", type = {Coding.class}, order = 1, min = 0, max = 1) @Description(shortDefinition="Resource version", formalDefinition="The version of the style of resource contents. This should be mapped to the allowable profiles for this and supporting resources." ) protected Coding ruleset; /** * The style (standard) and version of the original material which was converted into this resource. */ - @Child(name="originalRuleset", type={Coding.class}, order=2, min=0, max=1) + @Child(name = "originalRuleset", type = {Coding.class}, order = 2, min = 0, max = 1) @Description(shortDefinition="Original version", formalDefinition="The style (standard) and version of the original material which was converted into this resource." ) protected Coding originalRuleset; /** * The date when this resource was created. */ - @Child(name="created", type={DateTimeType.class}, order=3, min=0, max=1) + @Child(name = "created", type = {DateTimeType.class}, order = 3, min = 0, max = 1) @Description(shortDefinition="Creation date", formalDefinition="The date when this resource was created." ) protected DateTimeType created; /** * The Insurer who is target of the request. */ - @Child(name="target", type={Organization.class}, order=4, min=0, max=1) + @Child(name = "target", type = {Organization.class}, order = 4, min = 0, max = 1) @Description(shortDefinition="Insurer", formalDefinition="The Insurer who is target of the request." ) protected Reference target; @@ -87,7 +87,7 @@ public class EligibilityRequest extends DomainResource { /** * The practitioner who is responsible for the services rendered to the patient. */ - @Child(name="provider", type={Practitioner.class}, order=5, min=0, max=1) + @Child(name = "provider", type = {Practitioner.class}, order = 5, min = 0, max = 1) @Description(shortDefinition="Responsible practitioner", formalDefinition="The practitioner who is responsible for the services rendered to the patient." ) protected Reference provider; @@ -99,7 +99,7 @@ public class EligibilityRequest extends DomainResource { /** * The organization which is responsible for the services rendered to the patient. */ - @Child(name="organization", type={Organization.class}, order=6, min=0, max=1) + @Child(name = "organization", type = {Organization.class}, order = 6, min = 0, max = 1) @Description(shortDefinition="Responsible organization", formalDefinition="The organization which is responsible for the services rendered to the patient." ) protected Reference organization; diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/EligibilityResponse.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/EligibilityResponse.java index 6de6e8c0d16..9ca3e853e56 100644 --- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/EligibilityResponse.java +++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/EligibilityResponse.java @@ -120,14 +120,14 @@ public class EligibilityResponse extends DomainResource { /** * The Response Business Identifier. */ - @Child(name="identifier", type={Identifier.class}, order=0, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "identifier", type = {Identifier.class}, order = 0, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Business Identifier", formalDefinition="The Response Business Identifier." ) protected List identifier; /** * Original request resource reference. */ - @Child(name="request", type={EligibilityRequest.class}, order=1, min=0, max=1) + @Child(name = "request", type = {EligibilityRequest.class}, order = 1, min = 0, max = 1) @Description(shortDefinition="Claim reference", formalDefinition="Original request resource reference." ) protected Reference request; @@ -139,42 +139,42 @@ public class EligibilityResponse extends DomainResource { /** * Transaction status: error, complete. */ - @Child(name="outcome", type={CodeType.class}, order=2, min=0, max=1) + @Child(name = "outcome", type = {CodeType.class}, order = 2, min = 0, max = 1) @Description(shortDefinition="complete | error", formalDefinition="Transaction status: error, complete." ) protected Enumeration outcome; /** * A description of the status of the adjudication. */ - @Child(name="disposition", type={StringType.class}, order=3, min=0, max=1) + @Child(name = "disposition", type = {StringType.class}, order = 3, min = 0, max = 1) @Description(shortDefinition="Disposition Message", formalDefinition="A description of the status of the adjudication." ) protected StringType disposition; /** * The version of the style of resource contents. This should be mapped to the allowable profiles for this and supporting resources. */ - @Child(name="ruleset", type={Coding.class}, order=4, min=0, max=1) + @Child(name = "ruleset", type = {Coding.class}, order = 4, min = 0, max = 1) @Description(shortDefinition="Resource version", formalDefinition="The version of the style of resource contents. This should be mapped to the allowable profiles for this and supporting resources." ) protected Coding ruleset; /** * The style (standard) and version of the original material which was converted into this resource. */ - @Child(name="originalRuleset", type={Coding.class}, order=5, min=0, max=1) + @Child(name = "originalRuleset", type = {Coding.class}, order = 5, min = 0, max = 1) @Description(shortDefinition="Original version", formalDefinition="The style (standard) and version of the original material which was converted into this resource." ) protected Coding originalRuleset; /** * The date when the enclosed suite of services were performed or completed. */ - @Child(name="created", type={DateTimeType.class}, order=6, min=0, max=1) + @Child(name = "created", type = {DateTimeType.class}, order = 6, min = 0, max = 1) @Description(shortDefinition="Creation date", formalDefinition="The date when the enclosed suite of services were performed or completed." ) protected DateTimeType created; /** * The Insurer who produced this adjudicated response. */ - @Child(name="organization", type={Organization.class}, order=7, min=0, max=1) + @Child(name = "organization", type = {Organization.class}, order = 7, min = 0, max = 1) @Description(shortDefinition="Insurer", formalDefinition="The Insurer who produced this adjudicated response." ) protected Reference organization; @@ -186,7 +186,7 @@ public class EligibilityResponse extends DomainResource { /** * The practitioner who is responsible for the services rendered to the patient. */ - @Child(name="requestProvider", type={Practitioner.class}, order=8, min=0, max=1) + @Child(name = "requestProvider", type = {Practitioner.class}, order = 8, min = 0, max = 1) @Description(shortDefinition="Responsible practitioner", formalDefinition="The practitioner who is responsible for the services rendered to the patient." ) protected Reference requestProvider; @@ -198,7 +198,7 @@ public class EligibilityResponse extends DomainResource { /** * The organization which is responsible for the services rendered to the patient. */ - @Child(name="requestOrganization", type={Organization.class}, order=9, min=0, max=1) + @Child(name = "requestOrganization", type = {Organization.class}, order = 9, min = 0, max = 1) @Description(shortDefinition="Responsible organization", formalDefinition="The organization which is responsible for the services rendered to the patient." ) protected Reference requestOrganization; diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Encounter.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Encounter.java index d6c35cdb26b..724d376cf73 100644 --- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Encounter.java +++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Encounter.java @@ -1439,42 +1439,42 @@ public class Encounter extends DomainResource { /** * Identifier(s) by which this encounter is known. */ - @Child(name="identifier", type={Identifier.class}, order=0, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "identifier", type = {Identifier.class}, order = 0, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Identifier(s) by which this encounter is known", formalDefinition="Identifier(s) by which this encounter is known." ) protected List identifier; /** * planned | arrived | in-progress | onleave | finished | cancelled. */ - @Child(name="status", type={CodeType.class}, order=1, min=1, max=1) + @Child(name = "status", type = {CodeType.class}, order = 1, min = 1, max = 1) @Description(shortDefinition="planned | arrived | in-progress | onleave | finished | cancelled", formalDefinition="planned | arrived | in-progress | onleave | finished | cancelled." ) protected Enumeration status; /** * The current status is always found in the current version of the resource. This status history permits the encounter resource to contain the status history without the needing to read through the historical versions of the resource, or even have the server store them. */ - @Child(name="statusHistory", type={}, order=2, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "statusHistory", type = {}, order = 2, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="List of Encounter statuses", formalDefinition="The current status is always found in the current version of the resource. This status history permits the encounter resource to contain the status history without the needing to read through the historical versions of the resource, or even have the server store them." ) protected List statusHistory; /** * inpatient | outpatient | ambulatory | emergency +. */ - @Child(name="class_", type={CodeType.class}, order=3, min=1, max=1) + @Child(name = "class_", type = {CodeType.class}, order = 3, min = 1, max = 1) @Description(shortDefinition="inpatient | outpatient | ambulatory | emergency +", formalDefinition="inpatient | outpatient | ambulatory | emergency +." ) protected Enumeration class_; /** * Specific type of encounter (e.g. e-mail consultation, surgical day-care, skilled nursing, rehabilitation). */ - @Child(name="type", type={CodeableConcept.class}, order=4, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "type", type = {CodeableConcept.class}, order = 4, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Specific type of encounter", formalDefinition="Specific type of encounter (e.g. e-mail consultation, surgical day-care, skilled nursing, rehabilitation)." ) protected List type; /** * The patient present at the encounter. */ - @Child(name="patient", type={Patient.class}, order=5, min=0, max=1) + @Child(name = "patient", type = {Patient.class}, order = 5, min = 0, max = 1) @Description(shortDefinition="The patient present at the encounter", formalDefinition="The patient present at the encounter." ) protected Reference patient; @@ -1486,7 +1486,7 @@ public class Encounter extends DomainResource { /** * Where a specific encounter should be classified as a part of a specific episode of care this field should be used. This association can facilitate grouping of related encounters together for a specific purpose, such as govt reporting, or issue tracking. */ - @Child(name="episodeOfCare", type={EpisodeOfCare.class}, order=6, min=0, max=1) + @Child(name = "episodeOfCare", type = {EpisodeOfCare.class}, order = 6, min = 0, max = 1) @Description(shortDefinition="An episode of care that this encounter should be recorded against", formalDefinition="Where a specific encounter should be classified as a part of a specific episode of care this field should be used. This association can facilitate grouping of related encounters together for a specific purpose, such as govt reporting, or issue tracking." ) protected Reference episodeOfCare; @@ -1498,14 +1498,14 @@ public class Encounter extends DomainResource { /** * The main practitioner responsible for providing the service. */ - @Child(name="participant", type={}, order=7, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "participant", type = {}, order = 7, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="List of participants involved in the encounter", formalDefinition="The main practitioner responsible for providing the service." ) protected List participant; /** * The appointment that scheduled this encounter. */ - @Child(name="fulfills", type={Appointment.class}, order=8, min=0, max=1) + @Child(name = "fulfills", type = {Appointment.class}, order = 8, min = 0, max = 1) @Description(shortDefinition="The appointment that scheduled this encounter", formalDefinition="The appointment that scheduled this encounter." ) protected Reference fulfills; @@ -1517,28 +1517,28 @@ public class Encounter extends DomainResource { /** * The start and end time of the encounter. */ - @Child(name="period", type={Period.class}, order=9, min=0, max=1) + @Child(name = "period", type = {Period.class}, order = 9, min = 0, max = 1) @Description(shortDefinition="The start and end time of the encounter", formalDefinition="The start and end time of the encounter." ) protected Period period; /** * Quantity of time the encounter lasted. This excludes the time during leaves of absence. */ - @Child(name="length", type={Duration.class}, order=10, min=0, max=1) + @Child(name = "length", type = {Duration.class}, order = 10, min = 0, max = 1) @Description(shortDefinition="Quantity of time the encounter lasted", formalDefinition="Quantity of time the encounter lasted. This excludes the time during leaves of absence." ) protected Duration length; /** * Reason the encounter takes place, expressed as a code. For admissions, this can be used for a coded admission diagnosis. */ - @Child(name="reason", type={CodeableConcept.class}, order=11, min=0, max=1) + @Child(name = "reason", type = {CodeableConcept.class}, order = 11, min = 0, max = 1) @Description(shortDefinition="Reason the encounter takes place (code)", formalDefinition="Reason the encounter takes place, expressed as a code. For admissions, this can be used for a coded admission diagnosis." ) protected CodeableConcept reason; /** * Reason the encounter takes place, as specified using information from another resource. For admissions, this is the admission diagnosis. */ - @Child(name="indication", type={}, order=12, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "indication", type = {}, order = 12, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Reason the encounter takes place (resource)", formalDefinition="Reason the encounter takes place, as specified using information from another resource. For admissions, this is the admission diagnosis." ) protected List indication; /** @@ -1550,28 +1550,28 @@ public class Encounter extends DomainResource { /** * Indicates the urgency of the encounter. */ - @Child(name="priority", type={CodeableConcept.class}, order=13, min=0, max=1) + @Child(name = "priority", type = {CodeableConcept.class}, order = 13, min = 0, max = 1) @Description(shortDefinition="Indicates the urgency of the encounter", formalDefinition="Indicates the urgency of the encounter." ) protected CodeableConcept priority; /** * Details about an admission to a clinic. */ - @Child(name="hospitalization", type={}, order=14, min=0, max=1) + @Child(name = "hospitalization", type = {}, order = 14, min = 0, max = 1) @Description(shortDefinition="Details about an admission to a clinic", formalDefinition="Details about an admission to a clinic." ) protected EncounterHospitalizationComponent hospitalization; /** * List of locations at which the patient has been. */ - @Child(name="location", type={}, order=15, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "location", type = {}, order = 15, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="List of locations the patient has been at", formalDefinition="List of locations at which the patient has been." ) protected List location; /** * Department or team providing care. */ - @Child(name="serviceProvider", type={Organization.class}, order=16, min=0, max=1) + @Child(name = "serviceProvider", type = {Organization.class}, order = 16, min = 0, max = 1) @Description(shortDefinition="Department or team providing care", formalDefinition="Department or team providing care." ) protected Reference serviceProvider; @@ -1583,7 +1583,7 @@ public class Encounter extends DomainResource { /** * Another Encounter of which this encounter is a part of (administratively or in time). */ - @Child(name="partOf", type={Encounter.class}, order=17, min=0, max=1) + @Child(name = "partOf", type = {Encounter.class}, order = 17, min = 0, max = 1) @Description(shortDefinition="Another Encounter this encounter is part of", formalDefinition="Another Encounter of which this encounter is a part of (administratively or in time)." ) protected Reference partOf; @@ -2341,32 +2341,32 @@ public class Encounter extends DomainResource { return ResourceType.Encounter; } - @SearchParamDefinition(name="date", path="Encounter.period", description="A date within the period the Encounter lasted", type="date" ) - public static final String SP_DATE = "date"; - @SearchParamDefinition(name="identifier", path="Encounter.identifier", description="Identifier(s) by which this encounter is known", type="token" ) - public static final String SP_IDENTIFIER = "identifier"; - @SearchParamDefinition(name="episodeofcare", path="Encounter.episodeOfCare", description="An episode of care that this encounter should be recorded against", type="reference" ) - public static final String SP_EPISODEOFCARE = "episodeofcare"; + @SearchParamDefinition(name = "date", path = "Encounter.period", description = "A date within the period the Encounter lasted", type = "date") + public static final String SP_DATE = "date"; + @SearchParamDefinition(name = "identifier", path = "Encounter.identifier", description = "Identifier(s) by which this encounter is known", type = "token") + public static final String SP_IDENTIFIER = "identifier"; + @SearchParamDefinition(name = "episodeofcare", path = "Encounter.episodeOfCare", description = "An episode of care that this encounter should be recorded against", type = "reference") + public static final String SP_EPISODEOFCARE = "episodeofcare"; @SearchParamDefinition(name="participant-type", path="Encounter.participant.type", description="Role of participant in encounter", type="token" ) public static final String SP_PARTICIPANTTYPE = "participant-type"; - @SearchParamDefinition(name="length", path="Encounter.length", description="Length of encounter in days", type="number" ) - public static final String SP_LENGTH = "length"; - @SearchParamDefinition(name="part-of", path="Encounter.partOf", description="Another Encounter this encounter is part of", type="reference" ) - public static final String SP_PARTOF = "part-of"; - @SearchParamDefinition(name="type", path="Encounter.type", description="Specific type of encounter", type="token" ) - public static final String SP_TYPE = "type"; + @SearchParamDefinition(name = "length", path = "Encounter.length", description = "Length of encounter in days", type = "number") + public static final String SP_LENGTH = "length"; + @SearchParamDefinition(name = "part-of", path = "Encounter.partOf", description = "Another Encounter this encounter is part of", type = "reference") + public static final String SP_PARTOF = "part-of"; + @SearchParamDefinition(name = "type", path = "Encounter.type", description = "Specific type of encounter", type = "token") + public static final String SP_TYPE = "type"; @SearchParamDefinition(name="patient", path="Encounter.patient", description="The patient present at the encounter", type="reference" ) public static final String SP_PATIENT = "patient"; - @SearchParamDefinition(name="location-period", path="Encounter.location.period", description="Time period during which the patient was present at the location", type="date" ) - public static final String SP_LOCATIONPERIOD = "location-period"; + @SearchParamDefinition(name = "location-period", path = "Encounter.location.period", description = "Time period during which the patient was present at the location", type = "date") + public static final String SP_LOCATIONPERIOD = "location-period"; @SearchParamDefinition(name="location", path="Encounter.location.location", description="Location the encounter takes place", type="reference" ) public static final String SP_LOCATION = "location"; @SearchParamDefinition(name="indication", path="Encounter.indication", description="Reason the encounter takes place (resource)", type="reference" ) public static final String SP_INDICATION = "indication"; @SearchParamDefinition(name="special-arrangement", path="Encounter.hospitalization.specialArrangement", description="Wheelchair, translator, stretcher, etc", type="token" ) public static final String SP_SPECIALARRANGEMENT = "special-arrangement"; - @SearchParamDefinition(name="status", path="Encounter.status", description="planned | arrived | in-progress | onleave | finished | cancelled", type="token" ) - public static final String SP_STATUS = "status"; + @SearchParamDefinition(name = "status", path = "Encounter.status", description = "planned | arrived | in-progress | onleave | finished | cancelled", type = "token") + public static final String SP_STATUS = "status"; } diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/EnrollmentRequest.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/EnrollmentRequest.java index 269458a67c4..7e98d13cbe4 100644 --- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/EnrollmentRequest.java +++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/EnrollmentRequest.java @@ -47,35 +47,35 @@ public class EnrollmentRequest extends DomainResource { /** * The Response Business Identifier. */ - @Child(name="identifier", type={Identifier.class}, order=0, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "identifier", type = {Identifier.class}, order = 0, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Business Identifier", formalDefinition="The Response Business Identifier." ) protected List identifier; /** * The version of the style of resource contents. This should be mapped to the allowable profiles for this and supporting resources. */ - @Child(name="ruleset", type={Coding.class}, order=1, min=0, max=1) + @Child(name = "ruleset", type = {Coding.class}, order = 1, min = 0, max = 1) @Description(shortDefinition="Resource version", formalDefinition="The version of the style of resource contents. This should be mapped to the allowable profiles for this and supporting resources." ) protected Coding ruleset; /** * The style (standard) and version of the original material which was converted into this resource. */ - @Child(name="originalRuleset", type={Coding.class}, order=2, min=0, max=1) + @Child(name = "originalRuleset", type = {Coding.class}, order = 2, min = 0, max = 1) @Description(shortDefinition="Original version", formalDefinition="The style (standard) and version of the original material which was converted into this resource." ) protected Coding originalRuleset; /** * The date when this resource was created. */ - @Child(name="created", type={DateTimeType.class}, order=3, min=0, max=1) + @Child(name = "created", type = {DateTimeType.class}, order = 3, min = 0, max = 1) @Description(shortDefinition="Creation date", formalDefinition="The date when this resource was created." ) protected DateTimeType created; /** * The Insurer who is target of the request. */ - @Child(name="target", type={Organization.class}, order=4, min=0, max=1) + @Child(name = "target", type = {Organization.class}, order = 4, min = 0, max = 1) @Description(shortDefinition="Insurer", formalDefinition="The Insurer who is target of the request." ) protected Reference target; @@ -87,7 +87,7 @@ public class EnrollmentRequest extends DomainResource { /** * The practitioner who is responsible for the services rendered to the patient. */ - @Child(name="provider", type={Practitioner.class}, order=5, min=0, max=1) + @Child(name = "provider", type = {Practitioner.class}, order = 5, min = 0, max = 1) @Description(shortDefinition="Responsible practitioner", formalDefinition="The practitioner who is responsible for the services rendered to the patient." ) protected Reference provider; @@ -99,7 +99,7 @@ public class EnrollmentRequest extends DomainResource { /** * The organization which is responsible for the services rendered to the patient. */ - @Child(name="organization", type={Organization.class}, order=6, min=0, max=1) + @Child(name = "organization", type = {Organization.class}, order = 6, min = 0, max = 1) @Description(shortDefinition="Responsible organization", formalDefinition="The organization which is responsible for the services rendered to the patient." ) protected Reference organization; @@ -111,7 +111,7 @@ public class EnrollmentRequest extends DomainResource { /** * Patient Resource. */ - @Child(name="subject", type={Patient.class}, order=7, min=1, max=1) + @Child(name = "subject", type = {Patient.class}, order = 7, min = 1, max = 1) @Description(shortDefinition="The subject of the Products and Services", formalDefinition="Patient Resource." ) protected Reference subject; @@ -123,7 +123,7 @@ public class EnrollmentRequest extends DomainResource { /** * Reference to the program or plan identification, underwriter or payor. */ - @Child(name="coverage", type={Coverage.class}, order=8, min=1, max=1) + @Child(name = "coverage", type = {Coverage.class}, order = 8, min = 1, max = 1) @Description(shortDefinition="Insurance information", formalDefinition="Reference to the program or plan identification, underwriter or payor." ) protected Reference coverage; @@ -135,7 +135,7 @@ public class EnrollmentRequest extends DomainResource { /** * The relationship of the patient to the subscriber. */ - @Child(name="relationship", type={Coding.class}, order=9, min=1, max=1) + @Child(name = "relationship", type = {Coding.class}, order = 9, min = 1, max = 1) @Description(shortDefinition="Patient relationship to subscriber", formalDefinition="The relationship of the patient to the subscriber." ) protected Coding relationship; @@ -599,10 +599,10 @@ public class EnrollmentRequest extends DomainResource { @SearchParamDefinition(name="identifier", path="EnrollmentRequest.identifier", description="The business identifier of the Enrollment", type="token" ) public static final String SP_IDENTIFIER = "identifier"; - @SearchParamDefinition(name="subject", path="EnrollmentRequest.subject", description="The party to be enrolled", type="reference" ) - public static final String SP_SUBJECT = "subject"; - @SearchParamDefinition(name="patient", path="EnrollmentRequest.subject", description="The party to be enrolled", type="reference" ) - public static final String SP_PATIENT = "patient"; + @SearchParamDefinition(name = "subject", path = "EnrollmentRequest.subject", description = "The party to be enrolled", type = "reference") + public static final String SP_SUBJECT = "subject"; + @SearchParamDefinition(name = "patient", path = "EnrollmentRequest.subject", description = "The party to be enrolled", type = "reference") + public static final String SP_PATIENT = "patient"; } diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/EnrollmentResponse.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/EnrollmentResponse.java index ee73b0d4a43..ace461673f3 100644 --- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/EnrollmentResponse.java +++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/EnrollmentResponse.java @@ -120,14 +120,14 @@ public class EnrollmentResponse extends DomainResource { /** * The Response Business Identifier. */ - @Child(name="identifier", type={Identifier.class}, order=0, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "identifier", type = {Identifier.class}, order = 0, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Business Identifier", formalDefinition="The Response Business Identifier." ) protected List identifier; /** * Original request resource reference. */ - @Child(name="request", type={EnrollmentRequest.class}, order=1, min=0, max=1) + @Child(name = "request", type = {EnrollmentRequest.class}, order = 1, min = 0, max = 1) @Description(shortDefinition="Claim reference", formalDefinition="Original request resource reference." ) protected Reference request; @@ -139,42 +139,42 @@ public class EnrollmentResponse extends DomainResource { /** * Transaction status: error, complete. */ - @Child(name="outcome", type={CodeType.class}, order=2, min=0, max=1) + @Child(name = "outcome", type = {CodeType.class}, order = 2, min = 0, max = 1) @Description(shortDefinition="complete | error", formalDefinition="Transaction status: error, complete." ) protected Enumeration outcome; /** * A description of the status of the adjudication. */ - @Child(name="disposition", type={StringType.class}, order=3, min=0, max=1) + @Child(name = "disposition", type = {StringType.class}, order = 3, min = 0, max = 1) @Description(shortDefinition="Disposition Message", formalDefinition="A description of the status of the adjudication." ) protected StringType disposition; /** * The version of the style of resource contents. This should be mapped to the allowable profiles for this and supporting resources. */ - @Child(name="ruleset", type={Coding.class}, order=4, min=0, max=1) + @Child(name = "ruleset", type = {Coding.class}, order = 4, min = 0, max = 1) @Description(shortDefinition="Resource version", formalDefinition="The version of the style of resource contents. This should be mapped to the allowable profiles for this and supporting resources." ) protected Coding ruleset; /** * The style (standard) and version of the original material which was converted into this resource. */ - @Child(name="originalRuleset", type={Coding.class}, order=5, min=0, max=1) + @Child(name = "originalRuleset", type = {Coding.class}, order = 5, min = 0, max = 1) @Description(shortDefinition="Original version", formalDefinition="The style (standard) and version of the original material which was converted into this resource." ) protected Coding originalRuleset; /** * The date when the enclosed suite of services were performed or completed. */ - @Child(name="created", type={DateTimeType.class}, order=6, min=0, max=1) + @Child(name = "created", type = {DateTimeType.class}, order = 6, min = 0, max = 1) @Description(shortDefinition="Creation date", formalDefinition="The date when the enclosed suite of services were performed or completed." ) protected DateTimeType created; /** * The Insurer who produced this adjudicated response. */ - @Child(name="organization", type={Organization.class}, order=7, min=0, max=1) + @Child(name = "organization", type = {Organization.class}, order = 7, min = 0, max = 1) @Description(shortDefinition="Insurer", formalDefinition="The Insurer who produced this adjudicated response." ) protected Reference organization; @@ -186,7 +186,7 @@ public class EnrollmentResponse extends DomainResource { /** * The practitioner who is responsible for the services rendered to the patient. */ - @Child(name="requestProvider", type={Practitioner.class}, order=8, min=0, max=1) + @Child(name = "requestProvider", type = {Practitioner.class}, order = 8, min = 0, max = 1) @Description(shortDefinition="Responsible practitioner", formalDefinition="The practitioner who is responsible for the services rendered to the patient." ) protected Reference requestProvider; @@ -198,7 +198,7 @@ public class EnrollmentResponse extends DomainResource { /** * The organization which is responsible for the services rendered to the patient. */ - @Child(name="requestOrganization", type={Organization.class}, order=9, min=0, max=1) + @Child(name = "requestOrganization", type = {Organization.class}, order = 9, min = 0, max = 1) @Description(shortDefinition="Responsible organization", formalDefinition="The organization which is responsible for the services rendered to the patient." ) protected Reference requestOrganization; diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/EpisodeOfCare.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/EpisodeOfCare.java index 09ce86dd4f9..baebda9959d 100644 --- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/EpisodeOfCare.java +++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/EpisodeOfCare.java @@ -494,35 +494,35 @@ public class EpisodeOfCare extends DomainResource { /** * Identifier(s) by which this EpisodeOfCare is known. */ - @Child(name="identifier", type={Identifier.class}, order=0, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "identifier", type = {Identifier.class}, order = 0, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Identifier(s) by which this EpisodeOfCare is known", formalDefinition="Identifier(s) by which this EpisodeOfCare is known." ) protected List identifier; /** * planned | active | onhold | finished | withdrawn | other. */ - @Child(name="currentStatus", type={CodeType.class}, order=1, min=1, max=1) + @Child(name = "currentStatus", type = {CodeType.class}, order = 1, min = 1, max = 1) @Description(shortDefinition="planned | active | onhold | finished | withdrawn | other", formalDefinition="planned | active | onhold | finished | withdrawn | other." ) protected Enumeration currentStatus; /** * The status history for the EpisodeOfCare. */ - @Child(name="statusHistory", type={}, order=2, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "statusHistory", type = {}, order = 2, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="The status history for the EpisodeOfCare", formalDefinition="The status history for the EpisodeOfCare." ) protected List statusHistory; /** * The type can be very important in processing as this could be used in determining if the episodeofcare is relevant to specific government reporting, or other types of classifications. */ - @Child(name="type", type={CodeableConcept.class}, order=3, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "type", type = {CodeableConcept.class}, order = 3, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Specific type of EpisodeOfcare", formalDefinition="The type can be very important in processing as this could be used in determining if the episodeofcare is relevant to specific government reporting, or other types of classifications." ) protected List type; /** * The patient that this episodeofcare applies to. */ - @Child(name="patient", type={Patient.class}, order=4, min=1, max=1) + @Child(name = "patient", type = {Patient.class}, order = 4, min = 1, max = 1) @Description(shortDefinition="The patient that this episodeofcare applies to", formalDefinition="The patient that this episodeofcare applies to." ) protected Reference patient; @@ -534,7 +534,7 @@ public class EpisodeOfCare extends DomainResource { /** * The organization that has assumed the specific responsibilities for the specified duration. */ - @Child(name="managingOrganization", type={Organization.class}, order=5, min=0, max=1) + @Child(name = "managingOrganization", type = {Organization.class}, order = 5, min = 0, max = 1) @Description(shortDefinition="The organization that has assumed the specific responsibilities for the specified duration", formalDefinition="The organization that has assumed the specific responsibilities for the specified duration." ) protected Reference managingOrganization; @@ -546,14 +546,14 @@ public class EpisodeOfCare extends DomainResource { /** * The interval during which the managing organization assumes the defined responsibility. */ - @Child(name="period", type={Period.class}, order=6, min=0, max=1) + @Child(name = "period", type = {Period.class}, order = 6, min = 0, max = 1) @Description(shortDefinition="The interval during which the managing organization assumes the defined responsibility", formalDefinition="The interval during which the managing organization assumes the defined responsibility." ) protected Period period; /** * A list of conditions/problems/diagnoses that this episode of care is intended to be providing care for. */ - @Child(name="condition", type={Condition.class}, order=7, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "condition", type = {Condition.class}, order = 7, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="A list of conditions/problems/diagnoses that this episode of care is intended to be providing care for", formalDefinition="A list of conditions/problems/diagnoses that this episode of care is intended to be providing care for." ) protected List condition; /** @@ -565,7 +565,7 @@ public class EpisodeOfCare extends DomainResource { /** * A Referral Request that this EpisodeOfCare manages activities within. */ - @Child(name="referralRequest", type={ReferralRequest.class}, order=8, min=0, max=1) + @Child(name = "referralRequest", type = {ReferralRequest.class}, order = 8, min = 0, max = 1) @Description(shortDefinition="A Referral Request that this EpisodeOfCare manages activities within", formalDefinition="A Referral Request that this EpisodeOfCare manages activities within." ) protected Reference referralRequest; @@ -577,7 +577,7 @@ public class EpisodeOfCare extends DomainResource { /** * The practitioner that is the care manager/care co-ordinator for this patient. */ - @Child(name="careManager", type={Practitioner.class}, order=9, min=0, max=1) + @Child(name = "careManager", type = {Practitioner.class}, order = 9, min = 0, max = 1) @Description(shortDefinition="The practitioner that is the care manager/care co-ordinator for this patient", formalDefinition="The practitioner that is the care manager/care co-ordinator for this patient." ) protected Reference careManager; @@ -589,7 +589,7 @@ public class EpisodeOfCare extends DomainResource { /** * The list of practitioners that may be facilitating this episode of care for specific purposes. */ - @Child(name="careTeam", type={}, order=10, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "careTeam", type = {}, order = 10, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="The list of practitioners that may be facilitating this episode of care for specific purposes", formalDefinition="The list of practitioners that may be facilitating this episode of care for specific purposes." ) protected List careTeam; @@ -1115,23 +1115,23 @@ public class EpisodeOfCare extends DomainResource { return ResourceType.EpisodeOfCare; } - @SearchParamDefinition(name="date", path="EpisodeOfCare.period", description="The interval during which the managing organization assumes the defined responsibility", type="date" ) + @SearchParamDefinition(name = "date", path = "EpisodeOfCare.period", description = "The interval during which the managing organization assumes the defined responsibility", type = "date") public static final String SP_DATE = "date"; - @SearchParamDefinition(name="identifier", path="EpisodeOfCare.identifier", description="Identifier(s) by which this EpisodeOfCare is known", type="token" ) + @SearchParamDefinition(name = "identifier", path = "EpisodeOfCare.identifier", description = "Identifier(s) by which this EpisodeOfCare is known", type = "token") public static final String SP_IDENTIFIER = "identifier"; @SearchParamDefinition(name="condition", path="EpisodeOfCare.condition", description="A list of conditions/problems/diagnoses that this episode of care is intended to be providing care for", type="reference" ) public static final String SP_CONDITION = "condition"; @SearchParamDefinition(name="referral", path="EpisodeOfCare.referralRequest", description="A Referral Request that this EpisodeOfCare manages activities within", type="reference" ) public static final String SP_REFERRAL = "referral"; - @SearchParamDefinition(name="patient", path="EpisodeOfCare.patient", description="The patient that this episodeofcare applies to", type="reference" ) + @SearchParamDefinition(name = "patient", path = "EpisodeOfCare.patient", description = "The patient that this episodeofcare applies to", type = "reference") public static final String SP_PATIENT = "patient"; - @SearchParamDefinition(name="organization", path="EpisodeOfCare.managingOrganization", description="The organization that has assumed the specific responsibilities for the specified duration", type="reference" ) + @SearchParamDefinition(name = "organization", path = "EpisodeOfCare.managingOrganization", description = "The organization that has assumed the specific responsibilities for the specified duration", type = "reference") public static final String SP_ORGANIZATION = "organization"; @SearchParamDefinition(name="type", path="EpisodeOfCare.type", description="Specific type of EpisodeOfcare", type="token" ) public static final String SP_TYPE = "type"; - @SearchParamDefinition(name="care-manager", path="EpisodeOfCare.careManager", description="The practitioner that is the care manager/care co-ordinator for this patient", type="reference" ) + @SearchParamDefinition(name = "care-manager", path = "EpisodeOfCare.careManager", description = "The practitioner that is the care manager/care co-ordinator for this patient", type = "reference") public static final String SP_CAREMANAGER = "care-manager"; - @SearchParamDefinition(name="status", path="EpisodeOfCare.currentStatus", description="planned | active | onhold | finished | withdrawn | other", type="token" ) + @SearchParamDefinition(name = "status", path = "EpisodeOfCare.currentStatus", description = "planned | active | onhold | finished | withdrawn | other", type = "token") public static final String SP_STATUS = "status"; } diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/ExplanationOfBenefit.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/ExplanationOfBenefit.java index c7aa90e86b4..9d7ca645c9f 100644 --- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/ExplanationOfBenefit.java +++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/ExplanationOfBenefit.java @@ -120,14 +120,14 @@ public class ExplanationOfBenefit extends DomainResource { /** * The Response Business Identifier. */ - @Child(name="identifier", type={Identifier.class}, order=0, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "identifier", type = {Identifier.class}, order = 0, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Business Identifier", formalDefinition="The Response Business Identifier." ) protected List identifier; /** * Original request resource reference. */ - @Child(name="request", type={OralHealthClaim.class}, order=1, min=0, max=1) + @Child(name = "request", type = {OralHealthClaim.class}, order = 1, min = 0, max = 1) @Description(shortDefinition="Claim reference", formalDefinition="Original request resource reference." ) protected Reference request; @@ -139,42 +139,42 @@ public class ExplanationOfBenefit extends DomainResource { /** * Transaction status: error, complete. */ - @Child(name="outcome", type={CodeType.class}, order=2, min=0, max=1) + @Child(name = "outcome", type = {CodeType.class}, order = 2, min = 0, max = 1) @Description(shortDefinition="complete | error", formalDefinition="Transaction status: error, complete." ) protected Enumeration outcome; /** * A description of the status of the adjudication. */ - @Child(name="disposition", type={StringType.class}, order=3, min=0, max=1) + @Child(name = "disposition", type = {StringType.class}, order = 3, min = 0, max = 1) @Description(shortDefinition="Disposition Message", formalDefinition="A description of the status of the adjudication." ) protected StringType disposition; /** * The version of the style of resource contents. This should be mapped to the allowable profiles for this and supporting resources. */ - @Child(name="ruleset", type={Coding.class}, order=4, min=0, max=1) + @Child(name = "ruleset", type = {Coding.class}, order = 4, min = 0, max = 1) @Description(shortDefinition="Resource version", formalDefinition="The version of the style of resource contents. This should be mapped to the allowable profiles for this and supporting resources." ) protected Coding ruleset; /** * The style (standard) and version of the original material which was converted into this resource. */ - @Child(name="originalRuleset", type={Coding.class}, order=5, min=0, max=1) + @Child(name = "originalRuleset", type = {Coding.class}, order = 5, min = 0, max = 1) @Description(shortDefinition="Original version", formalDefinition="The style (standard) and version of the original material which was converted into this resource." ) protected Coding originalRuleset; /** * The date when the enclosed suite of services were performed or completed. */ - @Child(name="created", type={DateTimeType.class}, order=6, min=0, max=1) + @Child(name = "created", type = {DateTimeType.class}, order = 6, min = 0, max = 1) @Description(shortDefinition="Creation date", formalDefinition="The date when the enclosed suite of services were performed or completed." ) protected DateTimeType created; /** * The Insurer who produced this adjudicated response. */ - @Child(name="organization", type={Organization.class}, order=7, min=0, max=1) + @Child(name = "organization", type = {Organization.class}, order = 7, min = 0, max = 1) @Description(shortDefinition="Insurer", formalDefinition="The Insurer who produced this adjudicated response." ) protected Reference organization; @@ -186,7 +186,7 @@ public class ExplanationOfBenefit extends DomainResource { /** * The practitioner who is responsible for the services rendered to the patient. */ - @Child(name="requestProvider", type={Practitioner.class}, order=8, min=0, max=1) + @Child(name = "requestProvider", type = {Practitioner.class}, order = 8, min = 0, max = 1) @Description(shortDefinition="Responsible practitioner", formalDefinition="The practitioner who is responsible for the services rendered to the patient." ) protected Reference requestProvider; @@ -198,7 +198,7 @@ public class ExplanationOfBenefit extends DomainResource { /** * The organization which is responsible for the services rendered to the patient. */ - @Child(name="requestOrganization", type={Organization.class}, order=9, min=0, max=1) + @Child(name = "requestOrganization", type = {Organization.class}, order = 9, min = 0, max = 1) @Description(shortDefinition="Responsible organization", formalDefinition="The organization which is responsible for the services rendered to the patient." ) protected Reference requestOrganization; diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Extension.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Extension.java index 8d10bb2c5bc..1c644873286 100644 --- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Extension.java +++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Extension.java @@ -48,14 +48,14 @@ public class Extension extends Element implements IBaseExtension, IBa /** * Source of the definition for the extension code - a logical name or a URL. */ - @Child(name="url", type={UriType.class}, order=0, min=1, max=1) + @Child(name = "url", type = {UriType.class}, order = 0, min = 1, max = 1) @Description(shortDefinition="identifies the meaning of the extension", formalDefinition="Source of the definition for the extension code - a logical name or a URL." ) protected UriType url; /** * Value of extension - may be a resource or one of a constrained set of the data types (see Extensibility in the spec for list). */ - @Child(name="value", type={}, order=1, min=0, max=1) + @Child(name = "value", type = {}, order = 1, min = 0, max = 1) @Description(shortDefinition="Value of extension", formalDefinition="Value of extension - may be a resource or one of a constrained set of the data types (see Extensibility in the spec for list)." ) protected org.hl7.fhir.instance.model.Type value; @@ -177,10 +177,10 @@ public class Extension extends Element implements IBaseExtension, IBa ; } - @Override - public Extension setValue(IBaseDatatype theValue) { - return setValue((Type)theValue); - } + @Override + public Extension setValue(IBaseDatatype theValue) { + return setValue((Type) theValue); + } } diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/ExtensionDefinition.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/ExtensionDefinition.java index 6834b6fa3cb..42c180ab8ce 100644 --- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/ExtensionDefinition.java +++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/ExtensionDefinition.java @@ -514,112 +514,112 @@ public class ExtensionDefinition extends DomainResource { /** * The URL at which this definition is (or will be) published, and which is used to reference this profile in extension urls in operational FHIR systems. */ - @Child(name="url", type={UriType.class}, order=0, min=1, max=1) + @Child(name = "url", type = {UriType.class}, order = 0, min = 1, max = 1) @Description(shortDefinition="Literal URL used to reference this extension", formalDefinition="The URL at which this definition is (or will be) published, and which is used to reference this profile in extension urls in operational FHIR systems." ) protected UriType url; /** * Formal identifier that is used to identify this profile when it is represented in other formats (e.g. ISO 11179(, or referenced in a specification, model, design or an instance (should be globally unique OID, UUID, or URI), (if it's not possible to use the literal URI). */ - @Child(name="identifier", type={Identifier.class}, order=1, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "identifier", type = {Identifier.class}, order = 1, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Other identifiers for the extension", formalDefinition="Formal identifier that is used to identify this profile when it is represented in other formats (e.g. ISO 11179(, or referenced in a specification, model, design or an instance (should be globally unique OID, UUID, or URI), (if it's not possible to use the literal URI)." ) protected List identifier; /** * A free text natural language name identifying the extension. */ - @Child(name="name", type={StringType.class}, order=2, min=1, max=1) + @Child(name = "name", type = {StringType.class}, order = 2, min = 1, max = 1) @Description(shortDefinition="Descriptional name for this profile", formalDefinition="A free text natural language name identifying the extension." ) protected StringType name; /** * Defined so that applications can use this name when displaying the value of the extension to the user. */ - @Child(name="display", type={StringType.class}, order=3, min=0, max=1) + @Child(name = "display", type = {StringType.class}, order = 3, min = 0, max = 1) @Description(shortDefinition="Use this name when displaying the value", formalDefinition="Defined so that applications can use this name when displaying the value of the extension to the user." ) protected StringType display; /** * Details of the individual or organization who accepts responsibility for publishing the extension definition. */ - @Child(name="publisher", type={StringType.class}, order=4, min=0, max=1) + @Child(name = "publisher", type = {StringType.class}, order = 4, min = 0, max = 1) @Description(shortDefinition="Name of the publisher (Organization or individual)", formalDefinition="Details of the individual or organization who accepts responsibility for publishing the extension definition." ) protected StringType publisher; /** * Contact details to assist a user in finding and communicating with the publisher. */ - @Child(name="telecom", type={ContactPoint.class}, order=5, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "telecom", type = {ContactPoint.class}, order = 5, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Contact information of the publisher", formalDefinition="Contact details to assist a user in finding and communicating with the publisher." ) protected List telecom; /** * A free text natural language description of the extension and its use. */ - @Child(name="description", type={StringType.class}, order=6, min=0, max=1) + @Child(name = "description", type = {StringType.class}, order = 6, min = 0, max = 1) @Description(shortDefinition="Natural language description of the extension", formalDefinition="A free text natural language description of the extension and its use." ) protected StringType description; /** * A set of terms from external terminologies that may be used to assist with indexing and searching of extension definitions. */ - @Child(name="code", type={Coding.class}, order=7, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "code", type = {Coding.class}, order = 7, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Assist with indexing and finding", formalDefinition="A set of terms from external terminologies that may be used to assist with indexing and searching of extension definitions." ) protected List code; /** * The status of the extension. */ - @Child(name="status", type={CodeType.class}, order=8, min=1, max=1) + @Child(name = "status", type = {CodeType.class}, order = 8, min = 1, max = 1) @Description(shortDefinition="draft | active | retired", formalDefinition="The status of the extension." ) protected Enumeration status; /** * This extension definition was authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage. */ - @Child(name="experimental", type={BooleanType.class}, order=9, min=0, max=1) + @Child(name = "experimental", type = {BooleanType.class}, order = 9, min = 0, max = 1) @Description(shortDefinition="If for testing purposes, not real usage", formalDefinition="This extension definition was authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage." ) protected BooleanType experimental; /** * The date that this version of the extension was published. */ - @Child(name="date", type={DateTimeType.class}, order=10, min=0, max=1) + @Child(name = "date", type = {DateTimeType.class}, order = 10, min = 0, max = 1) @Description(shortDefinition="Date for this version of the extension", formalDefinition="The date that this version of the extension was published." ) protected DateTimeType date; /** * The Scope and Usage that this extension was created to meet. */ - @Child(name="requirements", type={StringType.class}, order=11, min=0, max=1) + @Child(name = "requirements", type = {StringType.class}, order = 11, min = 0, max = 1) @Description(shortDefinition="Scope and Usage this extesion is for", formalDefinition="The Scope and Usage that this extension was created to meet." ) protected StringType requirements; /** * An external specification that the content is mapped to. */ - @Child(name="mapping", type={}, order=12, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "mapping", type = {}, order = 12, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="External specification that the content is mapped to", formalDefinition="An external specification that the content is mapped to." ) protected List mapping; /** * Identifies the type of context to which the extension applies. */ - @Child(name="contextType", type={CodeType.class}, order=13, min=1, max=1) + @Child(name = "contextType", type = {CodeType.class}, order = 13, min = 1, max = 1) @Description(shortDefinition="resource | datatype | mapping | extension", formalDefinition="Identifies the type of context to which the extension applies." ) protected Enumeration contextType; /** * Identifies the types of resource or data type elements to which the extension can be applied. */ - @Child(name="context", type={StringType.class}, order=14, min=1, max=Child.MAX_UNLIMITED) + @Child(name = "context", type = {StringType.class}, order = 14, min = 1, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Where the extension can be used in instances", formalDefinition="Identifies the types of resource or data type elements to which the extension can be applied." ) protected List context; /** * Definition of the elements that are defined to be in the extension. */ - @Child(name="element", type={ElementDefinition.class}, order=15, min=1, max=Child.MAX_UNLIMITED) + @Child(name = "element", type = {ElementDefinition.class}, order = 15, min = 1, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Definition of the elements in the extension", formalDefinition="Definition of the elements that are defined to be in the extension." ) protected List element; @@ -1428,20 +1428,20 @@ public class ExtensionDefinition extends DomainResource { public static final String SP_DATE = "date"; @SearchParamDefinition(name="identifier", path="ExtensionDefinition.identifier", description="Other identifiers for the extension", type="token" ) public static final String SP_IDENTIFIER = "identifier"; - @SearchParamDefinition(name="code", path="ExtensionDefinition.code", description="Assist with indexing and finding", type="token" ) - public static final String SP_CODE = "code"; - @SearchParamDefinition(name="valueset", path="ExtensionDefinition.element.binding.reference[x]", description="Source of value set", type="reference" ) - public static final String SP_VALUESET = "valueset"; - @SearchParamDefinition(name="name", path="ExtensionDefinition.name", description="Descriptional name for this profile", type="string" ) - public static final String SP_NAME = "name"; + @SearchParamDefinition(name = "code", path = "ExtensionDefinition.code", description = "Assist with indexing and finding", type = "token") + public static final String SP_CODE = "code"; + @SearchParamDefinition(name = "valueset", path = "ExtensionDefinition.element.binding.reference[x]", description = "Source of value set", type = "reference") + public static final String SP_VALUESET = "valueset"; + @SearchParamDefinition(name = "name", path = "ExtensionDefinition.name", description = "Descriptional name for this profile", type = "string") + public static final String SP_NAME = "name"; @SearchParamDefinition(name="publisher", path="ExtensionDefinition.publisher", description="Name of the publisher (Organization or individual)", type="string" ) public static final String SP_PUBLISHER = "publisher"; - @SearchParamDefinition(name="description", path="ExtensionDefinition.description", description="Natural language description of the extension", type="string" ) - public static final String SP_DESCRIPTION = "description"; - @SearchParamDefinition(name="url", path="ExtensionDefinition.url", description="Literal URL used to reference this extension", type="token" ) - public static final String SP_URL = "url"; - @SearchParamDefinition(name="status", path="ExtensionDefinition.status", description="draft | active | retired", type="token" ) - public static final String SP_STATUS = "status"; + @SearchParamDefinition(name = "description", path = "ExtensionDefinition.description", description = "Natural language description of the extension", type = "string") + public static final String SP_DESCRIPTION = "description"; + @SearchParamDefinition(name = "url", path = "ExtensionDefinition.url", description = "Literal URL used to reference this extension", type = "token") + public static final String SP_URL = "url"; + @SearchParamDefinition(name = "status", path = "ExtensionDefinition.status", description = "draft | active | retired", type = "token") + public static final String SP_STATUS = "status"; } diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/FamilyHistory.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/FamilyHistory.java index cad11df65d8..6597313300f 100644 --- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/FamilyHistory.java +++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/FamilyHistory.java @@ -706,14 +706,14 @@ public class FamilyHistory extends DomainResource { /** * This records identifiers associated with this family history record that are defined by business processes and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation). */ - @Child(name="identifier", type={Identifier.class}, order=0, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "identifier", type = {Identifier.class}, order = 0, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="External Id(s) for this record", formalDefinition="This records identifiers associated with this family history record that are defined by business processes and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation)." ) protected List identifier; /** * The person who this history concerns. */ - @Child(name="patient", type={Patient.class}, order=1, min=1, max=1) + @Child(name = "patient", type = {Patient.class}, order = 1, min = 1, max = 1) @Description(shortDefinition="Patient history is about", formalDefinition="The person who this history concerns." ) protected Reference patient; @@ -725,21 +725,21 @@ public class FamilyHistory extends DomainResource { /** * The date (and possibly time) when the family history was taken. */ - @Child(name="date", type={DateTimeType.class}, order=2, min=0, max=1) + @Child(name = "date", type = {DateTimeType.class}, order = 2, min = 0, max = 1) @Description(shortDefinition="When history was captured/updated", formalDefinition="The date (and possibly time) when the family history was taken." ) protected DateTimeType date; /** * Conveys information about family history not specific to individual relations. */ - @Child(name="note", type={StringType.class}, order=3, min=0, max=1) + @Child(name = "note", type = {StringType.class}, order = 3, min = 0, max = 1) @Description(shortDefinition="Additional details not covered elsewhere", formalDefinition="Conveys information about family history not specific to individual relations." ) protected StringType note; /** * The related person. Each FamilyHistory resource contains the entire family history for a single person. */ - @Child(name="relation", type={}, order=4, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "relation", type = {}, order = 4, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Relative described by history", formalDefinition="The related person. Each FamilyHistory resource contains the entire family history for a single person." ) protected List relation; @@ -1022,7 +1022,7 @@ public class FamilyHistory extends DomainResource { @SearchParamDefinition(name="date", path="FamilyHistory.date", description="When history was captured/updated", type="date" ) public static final String SP_DATE = "date"; - @SearchParamDefinition(name="patient", path="FamilyHistory.patient", description="The identity of a subject to list family history items for", type="reference" ) + @SearchParamDefinition(name = "patient", path = "FamilyHistory.patient", description = "The identity of a subject to list family history items for", type = "reference") public static final String SP_PATIENT = "patient"; } diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Goal.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Goal.java index 4fd99bba4ab..6aeec33fc02 100644 --- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Goal.java +++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Goal.java @@ -204,14 +204,14 @@ public class Goal extends DomainResource { /** * This records identifiers associated with this care plan that are defined by business processed and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation). */ - @Child(name="identifier", type={Identifier.class}, order=0, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "identifier", type = {Identifier.class}, order = 0, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="External Ids for this goal", formalDefinition="This records identifiers associated with this care plan that are defined by business processed and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation)." ) protected List identifier; /** * Identifies the patient/subject whose intended care is described by the plan. */ - @Child(name="patient", type={Patient.class}, order=1, min=0, max=1) + @Child(name = "patient", type = {Patient.class}, order = 1, min = 0, max = 1) @Description(shortDefinition="The patient for whom this goal is intended for", formalDefinition="Identifies the patient/subject whose intended care is described by the plan." ) protected Reference patient; @@ -223,28 +223,28 @@ public class Goal extends DomainResource { /** * Human-readable description of a specific desired objective of care. */ - @Child(name="description", type={StringType.class}, order=2, min=1, max=1) + @Child(name = "description", type = {StringType.class}, order = 2, min = 1, max = 1) @Description(shortDefinition="What's the desired outcome?", formalDefinition="Human-readable description of a specific desired objective of care." ) protected StringType description; /** * Indicates whether the goal has been reached and is still considered relevant. */ - @Child(name="status", type={CodeType.class}, order=3, min=0, max=1) + @Child(name = "status", type = {CodeType.class}, order = 3, min = 0, max = 1) @Description(shortDefinition="proposed | planned | in-progress | achieved | sustaining | cancelled | accepted | rejected", formalDefinition="Indicates whether the goal has been reached and is still considered relevant." ) protected Enumeration status; /** * Any comments related to the goal. */ - @Child(name="notes", type={StringType.class}, order=4, min=0, max=1) + @Child(name = "notes", type = {StringType.class}, order = 4, min = 0, max = 1) @Description(shortDefinition="Comments about the goal", formalDefinition="Any comments related to the goal." ) protected StringType notes; /** * The identified conditions that this goal relates to - the condition that caused it to be created, or that it is intended to address. */ - @Child(name="concern", type={Condition.class}, order=5, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "concern", type = {Condition.class}, order = 5, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Health issues this goal addresses", formalDefinition="The identified conditions that this goal relates to - the condition that caused it to be created, or that it is intended to address." ) protected List concern; /** diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Group.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Group.java index 00ab29b4521..ace0b85436c 100644 --- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Group.java +++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Group.java @@ -380,56 +380,56 @@ public class Group extends DomainResource { /** * A unique business identifier for this group. */ - @Child(name="identifier", type={Identifier.class}, order=0, min=0, max=1) + @Child(name = "identifier", type = {Identifier.class}, order = 0, min = 0, max = 1) @Description(shortDefinition="Unique id", formalDefinition="A unique business identifier for this group." ) protected Identifier identifier; /** * Identifies the broad classification of the kind of resources the group includes. */ - @Child(name="type", type={CodeType.class}, order=1, min=1, max=1) + @Child(name = "type", type = {CodeType.class}, order = 1, min = 1, max = 1) @Description(shortDefinition="person | animal | practitioner | device | medication | substance", formalDefinition="Identifies the broad classification of the kind of resources the group includes." ) protected Enumeration type; /** * If true, indicates that the resource refers to a specific group of real individuals. If false, the group defines a set of intended individuals. */ - @Child(name="actual", type={BooleanType.class}, order=2, min=1, max=1) + @Child(name = "actual", type = {BooleanType.class}, order = 2, min = 1, max = 1) @Description(shortDefinition="Descriptive or actual", formalDefinition="If true, indicates that the resource refers to a specific group of real individuals. If false, the group defines a set of intended individuals." ) protected BooleanType actual; /** * Provides a specific type of resource the group includes. E.g. "cow", "syringe", etc. */ - @Child(name="code", type={CodeableConcept.class}, order=3, min=0, max=1) + @Child(name = "code", type = {CodeableConcept.class}, order = 3, min = 0, max = 1) @Description(shortDefinition="Kind of Group members", formalDefinition="Provides a specific type of resource the group includes. E.g. 'cow', 'syringe', etc." ) protected CodeableConcept code; /** * A label assigned to the group for human identification and communication. */ - @Child(name="name", type={StringType.class}, order=4, min=0, max=1) + @Child(name = "name", type = {StringType.class}, order = 4, min = 0, max = 1) @Description(shortDefinition="Label for Group", formalDefinition="A label assigned to the group for human identification and communication." ) protected StringType name; /** * A count of the number of resource instances that are part of the group. */ - @Child(name="quantity", type={IntegerType.class}, order=5, min=0, max=1) + @Child(name = "quantity", type = {IntegerType.class}, order = 5, min = 0, max = 1) @Description(shortDefinition="Number of members", formalDefinition="A count of the number of resource instances that are part of the group." ) protected IntegerType quantity; /** * Identifies the traits shared by members of the group. */ - @Child(name="characteristic", type={}, order=6, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "characteristic", type = {}, order = 6, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Trait of group members", formalDefinition="Identifies the traits shared by members of the group." ) protected List characteristic; /** * Identifies the resource instances that are members of the group. */ - @Child(name="member", type={Patient.class, Practitioner.class, Device.class, Medication.class, Substance.class}, order=7, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "member", type = {Patient.class, Practitioner.class, Device.class, Medication.class, Substance.class}, order = 7, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Who is in group", formalDefinition="Identifies the resource instances that are members of the group." ) protected List member; /** @@ -826,21 +826,21 @@ public class Group extends DomainResource { @SearchParamDefinition(name="actual", path="Group.actual", description="Descriptive or actual", type="token" ) public static final String SP_ACTUAL = "actual"; - @SearchParamDefinition(name="identifier", path="Group.identifier", description="Unique id", type="token" ) + @SearchParamDefinition(name = "identifier", path = "Group.identifier", description = "Unique id", type = "token") public static final String SP_IDENTIFIER = "identifier"; - @SearchParamDefinition(name="characteristic-value", path="", description="A composite of both characteristic and value", type="composite" ) + @SearchParamDefinition(name = "characteristic-value", path = "", description = "A composite of both characteristic and value", type = "composite") public static final String SP_CHARACTERISTICVALUE = "characteristic-value"; @SearchParamDefinition(name="code", path="Group.code", description="The kind of resources contained", type="token" ) public static final String SP_CODE = "code"; - @SearchParamDefinition(name="member", path="Group.member", description="Who is in group", type="reference" ) + @SearchParamDefinition(name = "member", path = "Group.member", description = "Who is in group", type = "reference") public static final String SP_MEMBER = "member"; - @SearchParamDefinition(name="exclude", path="Group.characteristic.exclude", description="Group includes or excludes", type="token" ) + @SearchParamDefinition(name = "exclude", path = "Group.characteristic.exclude", description = "Group includes or excludes", type = "token") public static final String SP_EXCLUDE = "exclude"; @SearchParamDefinition(name="type", path="Group.type", description="The type of resources the group contains", type="token" ) public static final String SP_TYPE = "type"; - @SearchParamDefinition(name="value", path="Group.characteristic.value[x]", description="Value held by characteristic", type="token" ) + @SearchParamDefinition(name = "value", path = "Group.characteristic.value[x]", description = "Value held by characteristic", type = "token") public static final String SP_VALUE = "value"; - @SearchParamDefinition(name="characteristic", path="Group.characteristic.code", description="Kind of characteristic", type="token" ) + @SearchParamDefinition(name = "characteristic", path = "Group.characteristic.code", description = "Kind of characteristic", type = "token") public static final String SP_CHARACTERISTIC = "characteristic"; } diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/HealthcareService.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/HealthcareService.java index 175768833c5..19717fa99d1 100644 --- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/HealthcareService.java +++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/HealthcareService.java @@ -657,14 +657,14 @@ public class HealthcareService extends DomainResource { /** * External Ids for this item. */ - @Child(name="identifier", type={Identifier.class}, order=0, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "identifier", type = {Identifier.class}, order = 0, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="External Ids for this item", formalDefinition="External Ids for this item." ) protected List identifier; /** * The location where this healthcare service may be provided. */ - @Child(name="location", type={Location.class}, order=1, min=1, max=1) + @Child(name = "location", type = {Location.class}, order = 1, min = 1, max = 1) @Description(shortDefinition="The location where this healthcare service may be provided", formalDefinition="The location where this healthcare service may be provided." ) protected Reference location; @@ -676,161 +676,161 @@ public class HealthcareService extends DomainResource { /** * Identifies the broad category of service being performed or delivered. Selecting a Service Category then determines the list of relevant service types that can be selected in the Primary Service Type. */ - @Child(name="serviceCategory", type={CodeableConcept.class}, order=2, min=0, max=1) + @Child(name = "serviceCategory", type = {CodeableConcept.class}, order = 2, min = 0, max = 1) @Description(shortDefinition="Identifies the broad category of service being performed or delivered. Selecting a Service Category then determines the list of relevant service types that can be selected in the Primary Service Type", formalDefinition="Identifies the broad category of service being performed or delivered. Selecting a Service Category then determines the list of relevant service types that can be selected in the Primary Service Type." ) protected CodeableConcept serviceCategory; /** * A specific type of service that may be delivered or performed. */ - @Child(name="serviceType", type={}, order=3, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "serviceType", type = {}, order = 3, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="A specific type of service that may be delivered or performed", formalDefinition="A specific type of service that may be delivered or performed." ) protected List serviceType; /** * Further description of the service as it would be presented to a consumer while searching. */ - @Child(name="serviceName", type={StringType.class}, order=4, min=0, max=1) + @Child(name = "serviceName", type = {StringType.class}, order = 4, min = 0, max = 1) @Description(shortDefinition="Further description of the service as it would be presented to a consumer while searching", formalDefinition="Further description of the service as it would be presented to a consumer while searching." ) protected StringType serviceName; /** * Additional description of the or any specific issues not covered by the other attributes, which can be displayed as further detail under the serviceName. */ - @Child(name="comment", type={StringType.class}, order=5, min=0, max=1) + @Child(name = "comment", type = {StringType.class}, order = 5, min = 0, max = 1) @Description(shortDefinition="Additional description of the or any specific issues not covered by the other attributes, which can be displayed as further detail under the serviceName", formalDefinition="Additional description of the or any specific issues not covered by the other attributes, which can be displayed as further detail under the serviceName." ) protected StringType comment; /** * Extra details about the service that can't be placed in the other fields. */ - @Child(name="extraDetails", type={StringType.class}, order=6, min=0, max=1) + @Child(name = "extraDetails", type = {StringType.class}, order = 6, min = 0, max = 1) @Description(shortDefinition="Extra details about the service that can't be placed in the other fields", formalDefinition="Extra details about the service that can't be placed in the other fields." ) protected StringType extraDetails; /** * The free provision code provides a link to the Free Provision reference entity to enable the selection of one free provision type. */ - @Child(name="freeProvisionCode", type={CodeableConcept.class}, order=7, min=0, max=1) + @Child(name = "freeProvisionCode", type = {CodeableConcept.class}, order = 7, min = 0, max = 1) @Description(shortDefinition="The free provision code provides a link to the Free Provision reference entity to enable the selection of one free provision type", formalDefinition="The free provision code provides a link to the Free Provision reference entity to enable the selection of one free provision type." ) protected CodeableConcept freeProvisionCode; /** * Does this service have specific eligibility requirements that need to be met in order to use the service. */ - @Child(name="eligibility", type={CodeableConcept.class}, order=8, min=0, max=1) + @Child(name = "eligibility", type = {CodeableConcept.class}, order = 8, min = 0, max = 1) @Description(shortDefinition="Does this service have specific eligibility requirements that need to be met in order to use the service", formalDefinition="Does this service have specific eligibility requirements that need to be met in order to use the service." ) protected CodeableConcept eligibility; /** * The description of service eligibility should, in general, not exceed one or two paragraphs. It should be sufficient for a prospective consumer to determine if they are likely to be eligible or not. Where eligibility requirements and conditions are complex, it may simply be noted that an eligibility assessment is required. Where eligibility is determined by an outside source, such as an Act of Parliament, this should be noted, preferably with a reference to a commonly available copy of the source document such as a web page. */ - @Child(name="eligibilityNote", type={StringType.class}, order=9, min=0, max=1) + @Child(name = "eligibilityNote", type = {StringType.class}, order = 9, min = 0, max = 1) @Description(shortDefinition="Describes the eligibility conditions for the service", formalDefinition="The description of service eligibility should, in general, not exceed one or two paragraphs. It should be sufficient for a prospective consumer to determine if they are likely to be eligible or not. Where eligibility requirements and conditions are complex, it may simply be noted that an eligibility assessment is required. Where eligibility is determined by an outside source, such as an Act of Parliament, this should be noted, preferably with a reference to a commonly available copy of the source document such as a web page." ) protected StringType eligibilityNote; /** * Indicates whether or not a prospective consumer will require an appointment for a particular service at a Site to be provided by the Organization. Indicates if an appointment is required for access to this service. If this flag is 'NotDefined', then this flag is overridden by the Site's availability flag. (ConditionalIndicator Enum). */ - @Child(name="appointmentRequired", type={CodeableConcept.class}, order=10, min=0, max=1) + @Child(name = "appointmentRequired", type = {CodeableConcept.class}, order = 10, min = 0, max = 1) @Description(shortDefinition="Indicates whether or not a prospective consumer will require an appointment for a particular service at a Site to be provided by the Organization. Indicates if an appointment is required for access to this service. If this flag is 'NotDefined', then this flag is overridden by the Site's availability flag. (ConditionalIndicator Enum)", formalDefinition="Indicates whether or not a prospective consumer will require an appointment for a particular service at a Site to be provided by the Organization. Indicates if an appointment is required for access to this service. If this flag is 'NotDefined', then this flag is overridden by the Site's availability flag. (ConditionalIndicator Enum)." ) protected CodeableConcept appointmentRequired; /** * If there is an image associated with this Service Site, its URI can be included here. */ - @Child(name="imageURI", type={UriType.class}, order=11, min=0, max=1) + @Child(name = "imageURI", type = {UriType.class}, order = 11, min = 0, max = 1) @Description(shortDefinition="If there is an image associated with this Service Site, its URI can be included here", formalDefinition="If there is an image associated with this Service Site, its URI can be included here." ) protected UriType imageURI; /** * A Collection of times that the Service Site is available. */ - @Child(name="availableTime", type={}, order=12, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "availableTime", type = {}, order = 12, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="A Collection of times that the Service Site is available", formalDefinition="A Collection of times that the Service Site is available." ) protected List availableTime; /** * Not avail times - need better description. */ - @Child(name="notAvailableTime", type={}, order=13, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "notAvailableTime", type = {}, order = 13, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Not avail times - need better description", formalDefinition="Not avail times - need better description." ) protected List notAvailableTime; /** * A description of Site availability exceptions, e.g., public holiday availability. Succinctly describing all possible exceptions to normal Site availability as details in the Available Times and Not Available Times. */ - @Child(name="availabilityExceptions", type={StringType.class}, order=14, min=0, max=1) + @Child(name = "availabilityExceptions", type = {StringType.class}, order = 14, min = 0, max = 1) @Description(shortDefinition="A description of Site availability exceptions, e.g., public holiday availability. Succinctly describing all possible exceptions to normal Site availability as details in the Available Times and Not Available Times", formalDefinition="A description of Site availability exceptions, e.g., public holiday availability. Succinctly describing all possible exceptions to normal Site availability as details in the Available Times and Not Available Times." ) protected StringType availabilityExceptions; /** * The public part of the 'keys' allocated to an Organization by an accredited body to support secure exchange of data over the internet. To be provided by the Organization, where available. */ - @Child(name="publicKey", type={StringType.class}, order=15, min=0, max=1) + @Child(name = "publicKey", type = {StringType.class}, order = 15, min = 0, max = 1) @Description(shortDefinition="The public part of the 'keys' allocated to an Organization by an accredited body to support secure exchange of data over the internet. To be provided by the Organization, where available", formalDefinition="The public part of the 'keys' allocated to an Organization by an accredited body to support secure exchange of data over the internet. To be provided by the Organization, where available." ) protected StringType publicKey; /** * Program Names that can be used to categorize the service. */ - @Child(name="programName", type={StringType.class}, order=16, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "programName", type = {StringType.class}, order = 16, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Program Names that can be used to categorize the service", formalDefinition="Program Names that can be used to categorize the service." ) protected List programName; /** * List of contacts related to this specific healthcare service. If this is empty, then refer to the location's contacts. */ - @Child(name="contactPoint", type={ContactPoint.class}, order=17, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "contactPoint", type = {ContactPoint.class}, order = 17, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="List of contacts related to this specific healthcare service. If this is empty, then refer to the location's contacts", formalDefinition="List of contacts related to this specific healthcare service. If this is empty, then refer to the location's contacts." ) protected List contactPoint; /** * Collection of Characteristics (attributes). */ - @Child(name="characteristic", type={CodeableConcept.class}, order=18, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "characteristic", type = {CodeableConcept.class}, order = 18, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Collection of Characteristics (attributes)", formalDefinition="Collection of Characteristics (attributes)." ) protected List characteristic; /** * Ways that the service accepts referrals. */ - @Child(name="referralMethod", type={CodeableConcept.class}, order=19, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "referralMethod", type = {CodeableConcept.class}, order = 19, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Ways that the service accepts referrals", formalDefinition="Ways that the service accepts referrals." ) protected List referralMethod; /** * The setting where this service can be provided, such is in home, or at location in organisation. */ - @Child(name="setting", type={CodeableConcept.class}, order=20, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "setting", type = {CodeableConcept.class}, order = 20, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="The setting where this service can be provided, such is in home, or at location in organisation", formalDefinition="The setting where this service can be provided, such is in home, or at location in organisation." ) protected List setting; /** * Collection of Target Groups for the Service Site (The target audience that this service is for). */ - @Child(name="targetGroup", type={CodeableConcept.class}, order=21, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "targetGroup", type = {CodeableConcept.class}, order = 21, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Collection of Target Groups for the Service Site (The target audience that this service is for)", formalDefinition="Collection of Target Groups for the Service Site (The target audience that this service is for)." ) protected List targetGroup; /** * Need better description. */ - @Child(name="coverageArea", type={CodeableConcept.class}, order=22, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "coverageArea", type = {CodeableConcept.class}, order = 22, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Need better description", formalDefinition="Need better description." ) protected List coverageArea; /** * Need better description. */ - @Child(name="catchmentArea", type={CodeableConcept.class}, order=23, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "catchmentArea", type = {CodeableConcept.class}, order = 23, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Need better description", formalDefinition="Need better description." ) protected List catchmentArea; /** * List of the specific. */ - @Child(name="serviceCode", type={CodeableConcept.class}, order=24, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "serviceCode", type = {CodeableConcept.class}, order = 24, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="List of the specific", formalDefinition="List of the specific." ) protected List serviceCode; @@ -1919,7 +1919,7 @@ public class HealthcareService extends DomainResource { public static final String SP_SERVICETYPE = "servicetype"; @SearchParamDefinition(name="name", path="HealthcareService.serviceName", description="A portion of the Healthcare service name", type="string" ) public static final String SP_NAME = "name"; - @SearchParamDefinition(name="location", path="HealthcareService.location", description="The location of the Healthcare Service", type="reference" ) + @SearchParamDefinition(name = "location", path = "HealthcareService.location", description = "The location of the Healthcare Service", type = "reference") public static final String SP_LOCATION = "location"; } diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/HumanName.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/HumanName.java index 53ae653b30f..f2dd120c3a0 100644 --- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/HumanName.java +++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/HumanName.java @@ -41,7 +41,7 @@ import org.hl7.fhir.instance.model.annotations.DatatypeDef; * A human's name with the ability to identify parts and usage. */ @DatatypeDef(name="HumanName") -public class HumanName extends Type implements ICompositeType { +public class HumanName extends Type implements ICompositeType { public enum NameUse { /** @@ -188,49 +188,49 @@ public class HumanName extends Type implements ICompositeType { /** * Identifies the purpose for this name. */ - @Child(name="use", type={CodeType.class}, order=0, min=0, max=1) + @Child(name = "use", type = {CodeType.class}, order = 0, min = 0, max = 1) @Description(shortDefinition="usual | official | temp | nickname | anonymous | old | maiden", formalDefinition="Identifies the purpose for this name." ) protected Enumeration use; /** * A full text representation of the name. */ - @Child(name="text", type={StringType.class}, order=1, min=0, max=1) + @Child(name = "text", type = {StringType.class}, order = 1, min = 0, max = 1) @Description(shortDefinition="Text representation of the full name", formalDefinition="A full text representation of the name." ) protected StringType text; /** * The part of a name that links to the genealogy. In some cultures (e.g. Eritrea) the family name of a son is the first name of his father. */ - @Child(name="family", type={StringType.class}, order=2, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "family", type = {StringType.class}, order = 2, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Family name (often called 'Surname')", formalDefinition="The part of a name that links to the genealogy. In some cultures (e.g. Eritrea) the family name of a son is the first name of his father." ) protected List family; /** * Given name. */ - @Child(name="given", type={StringType.class}, order=3, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "given", type = {StringType.class}, order = 3, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Given names (not always 'first'). Includes middle names", formalDefinition="Given name." ) protected List given; /** * Part of the name that is acquired as a title due to academic, legal, employment or nobility status, etc. and that appears at the start of the name. */ - @Child(name="prefix", type={StringType.class}, order=4, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "prefix", type = {StringType.class}, order = 4, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Parts that come before the name", formalDefinition="Part of the name that is acquired as a title due to academic, legal, employment or nobility status, etc. and that appears at the start of the name." ) protected List prefix; /** * Part of the name that is acquired as a title due to academic, legal, employment or nobility status, etc. and that appears at the end of the name. */ - @Child(name="suffix", type={StringType.class}, order=5, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "suffix", type = {StringType.class}, order = 5, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Parts that come after the name", formalDefinition="Part of the name that is acquired as a title due to academic, legal, employment or nobility status, etc. and that appears at the end of the name." ) protected List suffix; /** * Indicates the period of time when this name was valid for the named person. */ - @Child(name="period", type={Period.class}, order=6, min=0, max=1) + @Child(name = "period", type = {Period.class}, order = 6, min = 0, max = 1) @Description(shortDefinition="Time period when name was/is in use", formalDefinition="Indicates the period of time when this name was valid for the named person." ) protected Period period; diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Identifier.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Identifier.java index c749600981c..2c7e535c408 100644 --- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Identifier.java +++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Identifier.java @@ -41,7 +41,7 @@ import org.hl7.fhir.instance.model.annotations.DatatypeDef; * A technical identifier - identifies some entity uniquely and unambiguously. */ @DatatypeDef(name="Identifier") -public class Identifier extends Type implements ICompositeType { +public class Identifier extends Type implements ICompositeType { public enum IdentifierUse { /** @@ -146,42 +146,42 @@ public class Identifier extends Type implements ICompositeType { /** * The purpose of this identifier. */ - @Child(name="use", type={CodeType.class}, order=0, min=0, max=1, enumFactory=IdentifierUseEnumFactory.class) + @Child(name = "use", type = {CodeType.class}, order = 0, min = 0, max = 1, enumFactory = IdentifierUseEnumFactory.class) @Description(shortDefinition="usual | official | temp | secondary (If known)", formalDefinition="The purpose of this identifier." ) protected Enumeration use; /** * A text string for the identifier that can be displayed to a human so they can recognize the identifier. */ - @Child(name="label", type={StringType.class}, order=1, min=0, max=1) + @Child(name = "label", type = {StringType.class}, order = 1, min = 0, max = 1) @Description(shortDefinition="Description of identifier", formalDefinition="A text string for the identifier that can be displayed to a human so they can recognize the identifier." ) protected StringType label; /** * Establishes the namespace in which set of possible id values is unique. */ - @Child(name="system", type={UriType.class}, order=2, min=0, max=1) + @Child(name = "system", type = {UriType.class}, order = 2, min = 0, max = 1) @Description(shortDefinition="The namespace for the identifier", formalDefinition="Establishes the namespace in which set of possible id values is unique." ) protected UriType system; /** * The portion of the identifier typically displayed to the user and which is unique within the context of the system. */ - @Child(name="value", type={StringType.class}, order=3, min=0, max=1) + @Child(name = "value", type = {StringType.class}, order = 3, min = 0, max = 1) @Description(shortDefinition="The value that is unique", formalDefinition="The portion of the identifier typically displayed to the user and which is unique within the context of the system." ) protected StringType value; /** * Time period during which identifier is/was valid for use. */ - @Child(name="period", type={Period.class}, order=4, min=0, max=1) + @Child(name = "period", type = {Period.class}, order = 4, min = 0, max = 1) @Description(shortDefinition="Time period when id is/was valid for use", formalDefinition="Time period during which identifier is/was valid for use." ) protected Period period; /** * Organization that issued/manages the identifier. */ - @Child(name="assigner", type={Organization.class}, order=5, min=0, max=1) + @Child(name = "assigner", type = {Organization.class}, order = 5, min = 0, max = 1) @Description(shortDefinition="Organization that issued id (may be just text)", formalDefinition="Organization that issued/manages the identifier." ) protected Reference assigner; diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/ImagingObjectSelection.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/ImagingObjectSelection.java index 32d413de0c3..35725caa223 100644 --- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/ImagingObjectSelection.java +++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/ImagingObjectSelection.java @@ -889,14 +889,14 @@ public class ImagingObjectSelection extends DomainResource { /** * Instance UID of the DICOM KOS SOP Instances represenetd in this resource. */ - @Child(name="uid", type={OidType.class}, order=0, min=1, max=1) + @Child(name = "uid", type = {OidType.class}, order = 0, min = 1, max = 1) @Description(shortDefinition="Instance UID", formalDefinition="Instance UID of the DICOM KOS SOP Instances represenetd in this resource." ) protected OidType uid; /** * A patient resource reference which is the patient subject of all DICOM SOP Instances in this key object selection. */ - @Child(name="patient", type={Patient.class}, order=1, min=1, max=1) + @Child(name = "patient", type = {Patient.class}, order = 1, min = 1, max = 1) @Description(shortDefinition="Patient of the selected objects", formalDefinition="A patient resource reference which is the patient subject of all DICOM SOP Instances in this key object selection." ) protected Reference patient; @@ -908,21 +908,21 @@ public class ImagingObjectSelection extends DomainResource { /** * The reason for, or significance of, the selection of objects referenced in the resource. */ - @Child(name="title", type={CodeableConcept.class}, order=2, min=1, max=1) + @Child(name = "title", type = {CodeableConcept.class}, order = 2, min = 1, max = 1) @Description(shortDefinition="Reason for selection", formalDefinition="The reason for, or significance of, the selection of objects referenced in the resource." ) protected CodeableConcept title; /** * Text description of the DICOM SOP instances selected in the key object selection. This should be aligned with the content of the title element, and can provide further explanation of the SOP instances in the selection. */ - @Child(name="description", type={StringType.class}, order=3, min=0, max=1) + @Child(name = "description", type = {StringType.class}, order = 3, min = 0, max = 1) @Description(shortDefinition="Description text", formalDefinition="Text description of the DICOM SOP instances selected in the key object selection. This should be aligned with the content of the title element, and can provide further explanation of the SOP instances in the selection." ) protected StringType description; /** * Author of key object selection. It can be a human authtor or a device which made the decision of the SOP instances selected. For example, a radiologist selected a set of imaging SOP instances to attached in a diagnostic report, and a CAD application may author a selection to describe SOP instances it used to generate a detection conclusion. */ - @Child(name="author", type={Practitioner.class, Device.class, Organization.class, Patient.class, RelatedPerson.class}, order=4, min=0, max=1) + @Child(name = "author", type = {Practitioner.class, Device.class, Organization.class, Patient.class, RelatedPerson.class}, order = 4, min = 0, max = 1) @Description(shortDefinition="Author (human or machine)", formalDefinition="Author of key object selection. It can be a human authtor or a device which made the decision of the SOP instances selected. For example, a radiologist selected a set of imaging SOP instances to attached in a diagnostic report, and a CAD application may author a selection to describe SOP instances it used to generate a detection conclusion." ) protected Reference author; @@ -934,14 +934,14 @@ public class ImagingObjectSelection extends DomainResource { /** * Date and time when the key object selection was authored. Note that this is the date and time the DICOM SOP instances in the selection were selected (selection decision making). It is different from the creation date and time of the selection resource. */ - @Child(name="authoringTime", type={DateTimeType.class}, order=5, min=0, max=1) + @Child(name = "authoringTime", type = {DateTimeType.class}, order = 5, min = 0, max = 1) @Description(shortDefinition="Authoring time of the selection", formalDefinition="Date and time when the key object selection was authored. Note that this is the date and time the DICOM SOP instances in the selection were selected (selection decision making). It is different from the creation date and time of the selection resource." ) protected DateTimeType authoringTime; /** * Study identity and locating information of the DICOM SOP instances in the selection. */ - @Child(name="study", type={}, order=6, min=1, max=Child.MAX_UNLIMITED) + @Child(name = "study", type = {}, order = 6, min = 1, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Study identity of the selected instances", formalDefinition="Study identity and locating information of the DICOM SOP instances in the selection." ) protected List study; @@ -1305,9 +1305,9 @@ public class ImagingObjectSelection extends DomainResource { return ResourceType.ImagingObjectSelection; } - @SearchParamDefinition(name="identifier", path="ImagingObjectSelection.uid", description="UID of key DICOM object selection", type="token" ) + @SearchParamDefinition(name = "identifier", path = "ImagingObjectSelection.uid", description = "UID of key DICOM object selection", type = "token") public static final String SP_IDENTIFIER = "identifier"; - @SearchParamDefinition(name="authoring-time", path="ImagingObjectSelection.authoringTime", description="Time of key DICOM object selection authoring", type="date" ) + @SearchParamDefinition(name = "authoring-time", path = "ImagingObjectSelection.authoringTime", description = "Time of key DICOM object selection authoring", type = "date") public static final String SP_AUTHORINGTIME = "authoring-time"; @SearchParamDefinition(name="selected-study", path="ImagingObjectSelection.study.uid", description="Study selected in key DICOM object selection", type="token" ) public static final String SP_SELECTEDSTUDY = "selected-study"; @@ -1315,7 +1315,7 @@ public class ImagingObjectSelection extends DomainResource { public static final String SP_AUTHOR = "author"; @SearchParamDefinition(name="patient", path="ImagingObjectSelection.patient", description="Subject of key DICOM object selection", type="reference" ) public static final String SP_PATIENT = "patient"; - @SearchParamDefinition(name="title", path="ImagingObjectSelection.title", description="Title of key DICOM object selection", type="token" ) + @SearchParamDefinition(name = "title", path = "ImagingObjectSelection.title", description = "Title of key DICOM object selection", type = "token") public static final String SP_TITLE = "title"; } diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/ImagingStudy.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/ImagingStudy.java index 5e5725b8bb7..08ffc24b1b0 100644 --- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/ImagingStudy.java +++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/ImagingStudy.java @@ -2511,14 +2511,14 @@ public class ImagingStudy extends DomainResource { /** * Date and Time the study started. */ - @Child(name="started", type={DateTimeType.class}, order=0, min=0, max=1) + @Child(name = "started", type = {DateTimeType.class}, order = 0, min = 0, max = 1) @Description(shortDefinition="When the study was started (0008,0020)+(0008,0030)", formalDefinition="Date and Time the study started." ) protected DateTimeType started; /** * The patient for whom the images are of. */ - @Child(name="patient", type={Patient.class}, order=1, min=1, max=1) + @Child(name = "patient", type = {Patient.class}, order = 1, min = 1, max = 1) @Description(shortDefinition="Who the images are of", formalDefinition="The patient for whom the images are of." ) protected Reference patient; @@ -2530,28 +2530,28 @@ public class ImagingStudy extends DomainResource { /** * Formal identifier for the study. */ - @Child(name="uid", type={OidType.class}, order=2, min=1, max=1) + @Child(name = "uid", type = {OidType.class}, order = 2, min = 1, max = 1) @Description(shortDefinition="Formal identifier for the study (0020,000D)", formalDefinition="Formal identifier for the study." ) protected OidType uid; /** * Accession Number. */ - @Child(name="accession", type={Identifier.class}, order=3, min=0, max=1) + @Child(name = "accession", type = {Identifier.class}, order = 3, min = 0, max = 1) @Description(shortDefinition="Accession Number (0008,0050)", formalDefinition="Accession Number." ) protected Identifier accession; /** * Other identifiers for the study. */ - @Child(name="identifier", type={Identifier.class}, order=4, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "identifier", type = {Identifier.class}, order = 4, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Other identifiers for the study (0020,0010)", formalDefinition="Other identifiers for the study." ) protected List identifier; /** * A list of the diagnostic orders that resulted in this imaging study being performed. */ - @Child(name="order", type={DiagnosticOrder.class}, order=5, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "order", type = {DiagnosticOrder.class}, order = 5, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Order(s) that caused this study to be performed", formalDefinition="A list of the diagnostic orders that resulted in this imaging study being performed." ) protected List order; /** @@ -2563,14 +2563,14 @@ public class ImagingStudy extends DomainResource { /** * A list of all the Series.ImageModality values that are actual acquisition modalities, i.e. those in the DICOM Context Group 29 (value set OID 1.2.840.10008.6.1.19). */ - @Child(name="modalityList", type={CodeType.class}, order=6, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "modalityList", type = {CodeType.class}, order = 6, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="All series.modality if actual acquisition modalities", formalDefinition="A list of all the Series.ImageModality values that are actual acquisition modalities, i.e. those in the DICOM Context Group 29 (value set OID 1.2.840.10008.6.1.19)." ) protected List> modalityList; /** * The requesting/referring physician. */ - @Child(name="referrer", type={Practitioner.class}, order=7, min=0, max=1) + @Child(name = "referrer", type = {Practitioner.class}, order = 7, min = 0, max = 1) @Description(shortDefinition="Referring physician (0008,0090)", formalDefinition="The requesting/referring physician." ) protected Reference referrer; @@ -2582,49 +2582,49 @@ public class ImagingStudy extends DomainResource { /** * Availability of study (online, offline or nearline). */ - @Child(name="availability", type={CodeType.class}, order=8, min=0, max=1) + @Child(name = "availability", type = {CodeType.class}, order = 8, min = 0, max = 1) @Description(shortDefinition="ONLINE | OFFLINE | NEARLINE | UNAVAILABLE (0008,0056)", formalDefinition="Availability of study (online, offline or nearline)." ) protected Enumeration availability; /** * WADO-RS URI where Study is available. */ - @Child(name="url", type={UriType.class}, order=9, min=0, max=1) + @Child(name = "url", type = {UriType.class}, order = 9, min = 0, max = 1) @Description(shortDefinition="Retrieve URI (0008,1190)", formalDefinition="WADO-RS URI where Study is available." ) protected UriType url; /** * Number of Series in Study. */ - @Child(name="numberOfSeries", type={IntegerType.class}, order=10, min=1, max=1) + @Child(name = "numberOfSeries", type = {IntegerType.class}, order = 10, min = 1, max = 1) @Description(shortDefinition="Number of Study Related Series (0020,1206)", formalDefinition="Number of Series in Study." ) protected IntegerType numberOfSeries; /** * Number of SOP Instances in Study. */ - @Child(name="numberOfInstances", type={IntegerType.class}, order=11, min=1, max=1) + @Child(name = "numberOfInstances", type = {IntegerType.class}, order = 11, min = 1, max = 1) @Description(shortDefinition="Number of Study Related Instances (0020,1208)", formalDefinition="Number of SOP Instances in Study." ) protected IntegerType numberOfInstances; /** * Diagnoses etc provided with request. */ - @Child(name="clinicalInformation", type={StringType.class}, order=12, min=0, max=1) + @Child(name = "clinicalInformation", type = {StringType.class}, order = 12, min = 0, max = 1) @Description(shortDefinition="Diagnoses etc with request (0040,1002)", formalDefinition="Diagnoses etc provided with request." ) protected StringType clinicalInformation; /** * Type of procedure performed. */ - @Child(name="procedure", type={Coding.class}, order=13, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "procedure", type = {Coding.class}, order = 13, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Type of procedure performed (0008,1032)", formalDefinition="Type of procedure performed." ) protected List procedure; /** * Who read study and interpreted the images. */ - @Child(name="interpreter", type={Practitioner.class}, order=14, min=0, max=1) + @Child(name = "interpreter", type = {Practitioner.class}, order = 14, min = 0, max = 1) @Description(shortDefinition="Who interpreted images (0008,1060)", formalDefinition="Who read study and interpreted the images." ) protected Reference interpreter; @@ -2636,14 +2636,14 @@ public class ImagingStudy extends DomainResource { /** * Institution-generated description or classification of the Study (component) performed. */ - @Child(name="description", type={StringType.class}, order=15, min=0, max=1) + @Child(name = "description", type = {StringType.class}, order = 15, min = 0, max = 1) @Description(shortDefinition="Institution-generated description (0008,1030)", formalDefinition="Institution-generated description or classification of the Study (component) performed." ) protected StringType description; /** * Each study has one or more series of image instances. */ - @Child(name="series", type={}, order=16, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "series", type = {}, order = 16, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Each study has one or more series of instances", formalDefinition="Each study has one or more series of image instances." ) protected List series; @@ -3512,20 +3512,20 @@ public class ImagingStudy extends DomainResource { public static final String SP_STUDY = "study"; @SearchParamDefinition(name="dicom-class", path="ImagingStudy.series.instance.sopclass", description="DICOM class type (0008,0016)", type="token" ) public static final String SP_DICOMCLASS = "dicom-class"; - @SearchParamDefinition(name="modality", path="ImagingStudy.series.modality", description="The modality of the image", type="token" ) - public static final String SP_MODALITY = "modality"; - @SearchParamDefinition(name="bodysite", path="ImagingStudy.series.bodySite", description="Body part examined (Map from 0018,0015)", type="token" ) - public static final String SP_BODYSITE = "bodysite"; + @SearchParamDefinition(name = "modality", path = "ImagingStudy.series.modality", description = "The modality of the image", type = "token") + public static final String SP_MODALITY = "modality"; + @SearchParamDefinition(name = "bodysite", path = "ImagingStudy.series.bodySite", description = "Body part examined (Map from 0018,0015)", type = "token") + public static final String SP_BODYSITE = "bodysite"; @SearchParamDefinition(name="size", path="", description="The size of the image in MB - may include > or < in the value", type="number" ) public static final String SP_SIZE = "size"; - @SearchParamDefinition(name="patient", path="ImagingStudy.patient", description="Who the study is about", type="reference" ) - public static final String SP_PATIENT = "patient"; - @SearchParamDefinition(name="series", path="ImagingStudy.series.uid", description="The series id for the image", type="token" ) - public static final String SP_SERIES = "series"; - @SearchParamDefinition(name="started", path="ImagingStudy.started", description="When the study was started", type="date" ) - public static final String SP_STARTED = "started"; - @SearchParamDefinition(name="accession", path="ImagingStudy.accession", description="The accession id for the image", type="token" ) - public static final String SP_ACCESSION = "accession"; + @SearchParamDefinition(name = "patient", path = "ImagingStudy.patient", description = "Who the study is about", type = "reference") + public static final String SP_PATIENT = "patient"; + @SearchParamDefinition(name = "series", path = "ImagingStudy.series.uid", description = "The series id for the image", type = "token") + public static final String SP_SERIES = "series"; + @SearchParamDefinition(name = "started", path = "ImagingStudy.started", description = "When the study was started", type = "date") + public static final String SP_STARTED = "started"; + @SearchParamDefinition(name = "accession", path = "ImagingStudy.accession", description = "The accession id for the image", type = "token") + public static final String SP_ACCESSION = "accession"; } diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Immunization.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Immunization.java index e4482c5a6d9..d507ff09e2e 100644 --- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Immunization.java +++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Immunization.java @@ -835,28 +835,28 @@ public class Immunization extends DomainResource { /** * A unique identifier assigned to this immunization record. */ - @Child(name="identifier", type={Identifier.class}, order=0, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "identifier", type = {Identifier.class}, order = 0, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Business identifier", formalDefinition="A unique identifier assigned to this immunization record." ) protected List identifier; /** * Date vaccine administered or was to be administered. */ - @Child(name="date", type={DateTimeType.class}, order=1, min=1, max=1) + @Child(name = "date", type = {DateTimeType.class}, order = 1, min = 1, max = 1) @Description(shortDefinition="Vaccination administration date", formalDefinition="Date vaccine administered or was to be administered." ) protected DateTimeType date; /** * Vaccine that was administered or was to be administered. */ - @Child(name="vaccineType", type={CodeableConcept.class}, order=2, min=1, max=1) + @Child(name = "vaccineType", type = {CodeableConcept.class}, order = 2, min = 1, max = 1) @Description(shortDefinition="Vaccine product administered", formalDefinition="Vaccine that was administered or was to be administered." ) protected CodeableConcept vaccineType; /** * The patient who either received or did not receive the immunization. */ - @Child(name="patient", type={Patient.class}, order=3, min=1, max=1) + @Child(name = "patient", type = {Patient.class}, order = 3, min = 1, max = 1) @Description(shortDefinition="Who was immunized?", formalDefinition="The patient who either received or did not receive the immunization." ) protected Reference patient; @@ -868,21 +868,21 @@ public class Immunization extends DomainResource { /** * Indicates if the vaccination was or was not given. */ - @Child(name="wasNotGiven", type={BooleanType.class}, order=4, min=1, max=1) + @Child(name = "wasNotGiven", type = {BooleanType.class}, order = 4, min = 1, max = 1) @Description(shortDefinition="Was immunization given?", formalDefinition="Indicates if the vaccination was or was not given." ) protected BooleanType wasNotGiven; /** * True if this administration was reported rather than directly administered. */ - @Child(name="reported", type={BooleanType.class}, order=5, min=1, max=1) + @Child(name = "reported", type = {BooleanType.class}, order = 5, min = 1, max = 1) @Description(shortDefinition="Is this a self-reported record?", formalDefinition="True if this administration was reported rather than directly administered." ) protected BooleanType reported; /** * Clinician who administered the vaccine. */ - @Child(name="performer", type={Practitioner.class}, order=6, min=0, max=1) + @Child(name = "performer", type = {Practitioner.class}, order = 6, min = 0, max = 1) @Description(shortDefinition="Who administered vaccine?", formalDefinition="Clinician who administered the vaccine." ) protected Reference performer; @@ -894,7 +894,7 @@ public class Immunization extends DomainResource { /** * Clinician who ordered the vaccination. */ - @Child(name="requester", type={Practitioner.class}, order=7, min=0, max=1) + @Child(name = "requester", type = {Practitioner.class}, order = 7, min = 0, max = 1) @Description(shortDefinition="Who ordered vaccination?", formalDefinition="Clinician who ordered the vaccination." ) protected Reference requester; @@ -906,7 +906,7 @@ public class Immunization extends DomainResource { /** * The visit or admission or other contact between patient and health care provider the immunization was performed as part of. */ - @Child(name="encounter", type={Encounter.class}, order=8, min=0, max=1) + @Child(name = "encounter", type = {Encounter.class}, order = 8, min = 0, max = 1) @Description(shortDefinition="Encounter administered as part of", formalDefinition="The visit or admission or other contact between patient and health care provider the immunization was performed as part of." ) protected Reference encounter; @@ -918,7 +918,7 @@ public class Immunization extends DomainResource { /** * Name of vaccine manufacturer. */ - @Child(name="manufacturer", type={Organization.class}, order=9, min=0, max=1) + @Child(name = "manufacturer", type = {Organization.class}, order = 9, min = 0, max = 1) @Description(shortDefinition="Vaccine manufacturer", formalDefinition="Name of vaccine manufacturer." ) protected Reference manufacturer; @@ -930,7 +930,7 @@ public class Immunization extends DomainResource { /** * The service delivery location where the vaccine administration occurred. */ - @Child(name="location", type={Location.class}, order=10, min=0, max=1) + @Child(name = "location", type = {Location.class}, order = 10, min = 0, max = 1) @Description(shortDefinition="Where did vaccination occur?", formalDefinition="The service delivery location where the vaccine administration occurred." ) protected Reference location; @@ -942,56 +942,56 @@ public class Immunization extends DomainResource { /** * Lot number of the vaccine product. */ - @Child(name="lotNumber", type={StringType.class}, order=11, min=0, max=1) + @Child(name = "lotNumber", type = {StringType.class}, order = 11, min = 0, max = 1) @Description(shortDefinition="Vaccine lot number", formalDefinition="Lot number of the vaccine product." ) protected StringType lotNumber; /** * Date vaccine batch expires. */ - @Child(name="expirationDate", type={DateType.class}, order=12, min=0, max=1) + @Child(name = "expirationDate", type = {DateType.class}, order = 12, min = 0, max = 1) @Description(shortDefinition="Vaccine expiration date", formalDefinition="Date vaccine batch expires." ) protected DateType expirationDate; /** * Body site where vaccine was administered. */ - @Child(name="site", type={CodeableConcept.class}, order=13, min=0, max=1) + @Child(name = "site", type = {CodeableConcept.class}, order = 13, min = 0, max = 1) @Description(shortDefinition="Body site vaccine was administered", formalDefinition="Body site where vaccine was administered." ) protected CodeableConcept site; /** * The path by which the vaccine product is taken into the body. */ - @Child(name="route", type={CodeableConcept.class}, order=14, min=0, max=1) + @Child(name = "route", type = {CodeableConcept.class}, order = 14, min = 0, max = 1) @Description(shortDefinition="How vaccine entered body", formalDefinition="The path by which the vaccine product is taken into the body." ) protected CodeableConcept route; /** * The quantity of vaccine product that was administered. */ - @Child(name="doseQuantity", type={Quantity.class}, order=15, min=0, max=1) + @Child(name = "doseQuantity", type = {Quantity.class}, order = 15, min = 0, max = 1) @Description(shortDefinition="Amount of vaccine administered", formalDefinition="The quantity of vaccine product that was administered." ) protected Quantity doseQuantity; /** * Reasons why a vaccine was or was not administered. */ - @Child(name="explanation", type={}, order=16, min=0, max=1) + @Child(name = "explanation", type = {}, order = 16, min = 0, max = 1) @Description(shortDefinition="Administration / non-administration reasons", formalDefinition="Reasons why a vaccine was or was not administered." ) protected ImmunizationExplanationComponent explanation; /** * Categorical data indicating that an adverse event is associated in time to an immunization. */ - @Child(name="reaction", type={}, order=17, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "reaction", type = {}, order = 17, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Details of a reaction that follows immunization", formalDefinition="Categorical data indicating that an adverse event is associated in time to an immunization." ) protected List reaction; /** * Contains information about the protocol(s) under which the vaccine was administered. */ - @Child(name="vaccinationProtocol", type={}, order=18, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "vaccinationProtocol", type = {}, order = 18, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="What protocol was followed", formalDefinition="Contains information about the protocol(s) under which the vaccine was administered." ) protected List vaccinationProtocol; @@ -1828,38 +1828,38 @@ public class Immunization extends DomainResource { return ResourceType.Immunization; } - @SearchParamDefinition(name="date", path="Immunization.date", description="Vaccination (non)-Administration Date", type="date" ) - public static final String SP_DATE = "date"; + @SearchParamDefinition(name = "date", path = "Immunization.date", description = "Vaccination (non)-Administration Date", type = "date") + public static final String SP_DATE = "date"; @SearchParamDefinition(name="requester", path="Immunization.requester", description="The practitioner who ordered the vaccination", type="reference" ) public static final String SP_REQUESTER = "requester"; - @SearchParamDefinition(name="identifier", path="Immunization.identifier", description="Business identifier", type="token" ) - public static final String SP_IDENTIFIER = "identifier"; + @SearchParamDefinition(name = "identifier", path = "Immunization.identifier", description = "Business identifier", type = "token") + public static final String SP_IDENTIFIER = "identifier"; @SearchParamDefinition(name="reason", path="Immunization.explanation.reason", description="Why immunization occurred", type="token" ) public static final String SP_REASON = "reason"; - @SearchParamDefinition(name="performer", path="Immunization.performer", description="The practitioner who administered the vaccination", type="reference" ) - public static final String SP_PERFORMER = "performer"; - @SearchParamDefinition(name="reaction", path="Immunization.reaction.detail", description="Additional information on reaction", type="reference" ) - public static final String SP_REACTION = "reaction"; - @SearchParamDefinition(name="lot-number", path="Immunization.lotNumber", description="Vaccine Lot Number", type="string" ) - public static final String SP_LOTNUMBER = "lot-number"; + @SearchParamDefinition(name = "performer", path = "Immunization.performer", description = "The practitioner who administered the vaccination", type = "reference") + public static final String SP_PERFORMER = "performer"; + @SearchParamDefinition(name = "reaction", path = "Immunization.reaction.detail", description = "Additional information on reaction", type = "reference") + public static final String SP_REACTION = "reaction"; + @SearchParamDefinition(name = "lot-number", path = "Immunization.lotNumber", description = "Vaccine Lot Number", type = "string") + public static final String SP_LOTNUMBER = "lot-number"; @SearchParamDefinition(name="subject", path="Immunization.patient", description="The patient for the vaccination record", type="reference" ) public static final String SP_SUBJECT = "subject"; - @SearchParamDefinition(name="vaccine-type", path="Immunization.vaccineType", description="Vaccine Product Type Administered", type="token" ) - public static final String SP_VACCINETYPE = "vaccine-type"; + @SearchParamDefinition(name = "vaccine-type", path = "Immunization.vaccineType", description = "Vaccine Product Type Administered", type = "token") + public static final String SP_VACCINETYPE = "vaccine-type"; @SearchParamDefinition(name="notgiven", path="Immunization.wasNotGiven", description="Administrations which were not given", type="token" ) public static final String SP_NOTGIVEN = "notgiven"; @SearchParamDefinition(name="manufacturer", path="Immunization.manufacturer", description="Vaccine Manufacturer", type="reference" ) public static final String SP_MANUFACTURER = "manufacturer"; - @SearchParamDefinition(name="dose-sequence", path="Immunization.vaccinationProtocol.doseSequence", description="What dose number within series?", type="number" ) - public static final String SP_DOSESEQUENCE = "dose-sequence"; - @SearchParamDefinition(name="patient", path="Immunization.patient", description="The patient for the vaccination record", type="reference" ) - public static final String SP_PATIENT = "patient"; - @SearchParamDefinition(name="reason-not-given", path="Immunization.explanation.reasonNotGiven", description="Explanation of reason vaccination was not administered", type="token" ) - public static final String SP_REASONNOTGIVEN = "reason-not-given"; - @SearchParamDefinition(name="location", path="Immunization.location", description="The service delivery location or facility in which the vaccine was / was to be administered", type="reference" ) - public static final String SP_LOCATION = "location"; - @SearchParamDefinition(name="reaction-date", path="Immunization.reaction.date", description="When did reaction start?", type="date" ) - public static final String SP_REACTIONDATE = "reaction-date"; + @SearchParamDefinition(name = "dose-sequence", path = "Immunization.vaccinationProtocol.doseSequence", description = "What dose number within series?", type = "number") + public static final String SP_DOSESEQUENCE = "dose-sequence"; + @SearchParamDefinition(name = "patient", path = "Immunization.patient", description = "The patient for the vaccination record", type = "reference") + public static final String SP_PATIENT = "patient"; + @SearchParamDefinition(name = "reason-not-given", path = "Immunization.explanation.reasonNotGiven", description = "Explanation of reason vaccination was not administered", type = "token") + public static final String SP_REASONNOTGIVEN = "reason-not-given"; + @SearchParamDefinition(name = "location", path = "Immunization.location", description = "The service delivery location or facility in which the vaccine was / was to be administered", type = "reference") + public static final String SP_LOCATION = "location"; + @SearchParamDefinition(name = "reaction-date", path = "Immunization.reaction.date", description = "When did reaction start?", type = "date") + public static final String SP_REACTIONDATE = "reaction-date"; } diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/ImmunizationRecommendation.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/ImmunizationRecommendation.java index 670574074f7..dcdb6679919 100644 --- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/ImmunizationRecommendation.java +++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/ImmunizationRecommendation.java @@ -895,14 +895,14 @@ public class ImmunizationRecommendation extends DomainResource { /** * A unique identifier assigned to this particular recommendation record. */ - @Child(name="identifier", type={Identifier.class}, order=0, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "identifier", type = {Identifier.class}, order = 0, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Business identifier", formalDefinition="A unique identifier assigned to this particular recommendation record." ) protected List identifier; /** * The patient for whom the recommendations are for. */ - @Child(name="patient", type={Patient.class}, order=1, min=1, max=1) + @Child(name = "patient", type = {Patient.class}, order = 1, min = 1, max = 1) @Description(shortDefinition="Who this profile is for", formalDefinition="The patient for whom the recommendations are for." ) protected Reference patient; @@ -914,7 +914,7 @@ public class ImmunizationRecommendation extends DomainResource { /** * Vaccine administration recommendations. */ - @Child(name="recommendation", type={}, order=2, min=1, max=Child.MAX_UNLIMITED) + @Child(name = "recommendation", type = {}, order = 2, min = 1, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Vaccine administration recommendations", formalDefinition="Vaccine administration recommendations." ) protected List recommendation; @@ -1092,13 +1092,13 @@ public class ImmunizationRecommendation extends DomainResource { return ResourceType.ImmunizationRecommendation; } - @SearchParamDefinition(name="date", path="ImmunizationRecommendation.recommendation.date", description="Date recommendation created", type="date" ) + @SearchParamDefinition(name = "date", path = "ImmunizationRecommendation.recommendation.date", description = "Date recommendation created", type = "date") public static final String SP_DATE = "date"; - @SearchParamDefinition(name="identifier", path="ImmunizationRecommendation.identifier", description="Business identifier", type="token" ) + @SearchParamDefinition(name = "identifier", path = "ImmunizationRecommendation.identifier", description = "Business identifier", type = "token") public static final String SP_IDENTIFIER = "identifier"; @SearchParamDefinition(name="dose-sequence", path="ImmunizationRecommendation.recommendation.protocol.doseSequence", description="Number of dose within sequence", type="token" ) public static final String SP_DOSESEQUENCE = "dose-sequence"; - @SearchParamDefinition(name="subject", path="ImmunizationRecommendation.patient", description="Who this profile is for", type="reference" ) + @SearchParamDefinition(name = "subject", path = "ImmunizationRecommendation.patient", description = "Who this profile is for", type = "reference") public static final String SP_SUBJECT = "subject"; @SearchParamDefinition(name="patient", path="ImmunizationRecommendation.patient", description="Who this profile is for", type="reference" ) public static final String SP_PATIENT = "patient"; @@ -1106,11 +1106,11 @@ public class ImmunizationRecommendation extends DomainResource { public static final String SP_VACCINETYPE = "vaccine-type"; @SearchParamDefinition(name="dose-number", path="ImmunizationRecommendation.recommendation.doseNumber", description="Recommended dose number", type="number" ) public static final String SP_DOSENUMBER = "dose-number"; - @SearchParamDefinition(name="information", path="ImmunizationRecommendation.recommendation.supportingPatientInformation", description="Patient observations supporting recommendation", type="reference" ) + @SearchParamDefinition(name = "information", path = "ImmunizationRecommendation.recommendation.supportingPatientInformation", description = "Patient observations supporting recommendation", type = "reference") public static final String SP_INFORMATION = "information"; - @SearchParamDefinition(name="support", path="ImmunizationRecommendation.recommendation.supportingImmunization", description="Past immunizations supporting recommendation", type="reference" ) + @SearchParamDefinition(name = "support", path = "ImmunizationRecommendation.recommendation.supportingImmunization", description = "Past immunizations supporting recommendation", type = "reference") public static final String SP_SUPPORT = "support"; - @SearchParamDefinition(name="status", path="ImmunizationRecommendation.recommendation.forecastStatus", description="Vaccine administration status", type="token" ) + @SearchParamDefinition(name = "status", path = "ImmunizationRecommendation.recommendation.forecastStatus", description = "Vaccine administration status", type = "token") public static final String SP_STATUS = "status"; } diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/InstantType.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/InstantType.java index cad6c0f4a54..a95a5532181 100644 --- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/InstantType.java +++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/InstantType.java @@ -45,7 +45,7 @@ import org.hl7.fhir.instance.model.annotations.DatatypeDef; *
  • {@link TemporalPrecisionEnum#MILLI} * */ -@DatatypeDef(name="instant") +@DatatypeDef(name = "instant") public class InstantType extends BaseDateTimeType { private static final long serialVersionUID = 3L; diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/InstitutionalClaim.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/InstitutionalClaim.java index b405402f3af..0c37d7e3c43 100644 --- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/InstitutionalClaim.java +++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/InstitutionalClaim.java @@ -2688,35 +2688,35 @@ public class InstitutionalClaim extends DomainResource { /** * The business identifier for the instance: invoice number, claim number, pre-determination or pre-authorization number. */ - @Child(name="identifier", type={Identifier.class}, order=0, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "identifier", type = {Identifier.class}, order = 0, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Claim number", formalDefinition="The business identifier for the instance: invoice number, claim number, pre-determination or pre-authorization number." ) protected List identifier; /** * The version of the specification on which this instance relies. */ - @Child(name="ruleset", type={Coding.class}, order=1, min=0, max=1) + @Child(name = "ruleset", type = {Coding.class}, order = 1, min = 0, max = 1) @Description(shortDefinition="Current specification followed", formalDefinition="The version of the specification on which this instance relies." ) protected Coding ruleset; /** * The version of the specification from which the original instance was created. */ - @Child(name="originalRuleset", type={Coding.class}, order=2, min=0, max=1) + @Child(name = "originalRuleset", type = {Coding.class}, order = 2, min = 0, max = 1) @Description(shortDefinition="Original specification followed", formalDefinition="The version of the specification from which the original instance was created." ) protected Coding originalRuleset; /** * The date when the enclosed suite of services were performed or completed. */ - @Child(name="created", type={DateTimeType.class}, order=3, min=0, max=1) + @Child(name = "created", type = {DateTimeType.class}, order = 3, min = 0, max = 1) @Description(shortDefinition="Creation date", formalDefinition="The date when the enclosed suite of services were performed or completed." ) protected DateTimeType created; /** * Insurer Identifier, typical BIN number (6 digit). */ - @Child(name="target", type={Organization.class}, order=4, min=0, max=1) + @Child(name = "target", type = {Organization.class}, order = 4, min = 0, max = 1) @Description(shortDefinition="Insurer", formalDefinition="Insurer Identifier, typical BIN number (6 digit)." ) protected Reference target; @@ -2728,7 +2728,7 @@ public class InstitutionalClaim extends DomainResource { /** * The provider which is responsible for the bill, claim pre-determination, pre-authorization. */ - @Child(name="provider", type={Practitioner.class}, order=5, min=0, max=1) + @Child(name = "provider", type = {Practitioner.class}, order = 5, min = 0, max = 1) @Description(shortDefinition="Responsible provider", formalDefinition="The provider which is responsible for the bill, claim pre-determination, pre-authorization." ) protected Reference provider; @@ -2740,7 +2740,7 @@ public class InstitutionalClaim extends DomainResource { /** * The organization which is responsible for the bill, claim pre-determination, pre-authorization. */ - @Child(name="organization", type={Organization.class}, order=6, min=0, max=1) + @Child(name = "organization", type = {Organization.class}, order = 6, min = 0, max = 1) @Description(shortDefinition="Responsible organization", formalDefinition="The organization which is responsible for the bill, claim pre-determination, pre-authorization." ) protected Reference organization; @@ -2752,28 +2752,28 @@ public class InstitutionalClaim extends DomainResource { /** * Complete (Bill or Claim), Proposed (Pre-Authorization), Exploratory (Pre-determination). */ - @Child(name="use", type={CodeType.class}, order=7, min=0, max=1) + @Child(name = "use", type = {CodeType.class}, order = 7, min = 0, max = 1) @Description(shortDefinition="complete | proposed | exploratory | other", formalDefinition="Complete (Bill or Claim), Proposed (Pre-Authorization), Exploratory (Pre-determination)." ) protected Enumeration use; /** * Immediate (STAT), best effort (NORMAL), deferred (DEFER). */ - @Child(name="priority", type={Coding.class}, order=8, min=0, max=1) + @Child(name = "priority", type = {Coding.class}, order = 8, min = 0, max = 1) @Description(shortDefinition="Desired processing priority", formalDefinition="Immediate (STAT), best effort (NORMAL), deferred (DEFER)." ) protected Coding priority; /** * In the case of a Pre-Determination/Pre-Authorization the provider may request that funds in the amount of the expected Benefit be reserved ('Patient' or 'Provider') to pay for the Benefits determined on the subsequent claim(s). 'None' explicitly indicates no funds reserving is requested. */ - @Child(name="fundsReserve", type={Coding.class}, order=9, min=0, max=1) + @Child(name = "fundsReserve", type = {Coding.class}, order = 9, min = 0, max = 1) @Description(shortDefinition="Funds requested to be reserved", formalDefinition="In the case of a Pre-Determination/Pre-Authorization the provider may request that funds in the amount of the expected Benefit be reserved ('Patient' or 'Provider') to pay for the Benefits determined on the subsequent claim(s). 'None' explicitly indicates no funds reserving is requested." ) protected Coding fundsReserve; /** * Person who created the invoice/claim/pre-determination or pre-authorization. */ - @Child(name="enterer", type={Practitioner.class}, order=10, min=0, max=1) + @Child(name = "enterer", type = {Practitioner.class}, order = 10, min = 0, max = 1) @Description(shortDefinition="Author", formalDefinition="Person who created the invoice/claim/pre-determination or pre-authorization." ) protected Reference enterer; @@ -2785,7 +2785,7 @@ public class InstitutionalClaim extends DomainResource { /** * Facility where the services were provided. */ - @Child(name="facility", type={Location.class}, order=11, min=0, max=1) + @Child(name = "facility", type = {Location.class}, order = 11, min = 0, max = 1) @Description(shortDefinition="Servicing Facility", formalDefinition="Facility where the services were provided." ) protected Reference facility; @@ -2797,14 +2797,14 @@ public class InstitutionalClaim extends DomainResource { /** * The party to be reimbursed for the services. */ - @Child(name="payee", type={}, order=12, min=0, max=1) + @Child(name = "payee", type = {}, order = 12, min = 0, max = 1) @Description(shortDefinition="Payee", formalDefinition="The party to be reimbursed for the services." ) protected PayeeComponent payee; /** * The referral resource which lists the date, practitioner, reason and other supporting information. */ - @Child(name="referral", type={ReferralRequest.class}, order=13, min=0, max=1) + @Child(name = "referral", type = {ReferralRequest.class}, order = 13, min = 0, max = 1) @Description(shortDefinition="Treatment Referral", formalDefinition="The referral resource which lists the date, practitioner, reason and other supporting information." ) protected Reference referral; @@ -2816,21 +2816,21 @@ public class InstitutionalClaim extends DomainResource { /** * Ordered list of patient diagnosis for which care is sought. */ - @Child(name="diagnosis", type={}, order=14, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "diagnosis", type = {}, order = 14, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Diagnosis", formalDefinition="Ordered list of patient diagnosis for which care is sought." ) protected List diagnosis; /** * List of patient conditions for which care is sought. */ - @Child(name="condition", type={Coding.class}, order=15, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "condition", type = {Coding.class}, order = 15, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="List of presenting Conditions", formalDefinition="List of patient conditions for which care is sought." ) protected List condition; /** * Patient Resource. */ - @Child(name="patient", type={Patient.class}, order=16, min=1, max=1) + @Child(name = "patient", type = {Patient.class}, order = 16, min = 1, max = 1) @Description(shortDefinition="The subject of the Products and Services", formalDefinition="Patient Resource." ) protected Reference patient; @@ -2842,56 +2842,56 @@ public class InstitutionalClaim extends DomainResource { /** * Financial instrument by which payment information for health care. */ - @Child(name="coverage", type={}, order=17, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "coverage", type = {}, order = 17, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Insurance or medical plan", formalDefinition="Financial instrument by which payment information for health care." ) protected List coverage; /** * Factors which may influence the applicability of coverage. */ - @Child(name="exception", type={Coding.class}, order=18, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "exception", type = {Coding.class}, order = 18, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Eligibility exceptions", formalDefinition="Factors which may influence the applicability of coverage." ) protected List exception; /** * Name of school for over-aged dependants. */ - @Child(name="school", type={StringType.class}, order=19, min=0, max=1) + @Child(name = "school", type = {StringType.class}, order = 19, min = 0, max = 1) @Description(shortDefinition="Name of School", formalDefinition="Name of school for over-aged dependants." ) protected StringType school; /** * Date of an accident which these services are addressing. */ - @Child(name="accident", type={DateType.class}, order=20, min=0, max=1) + @Child(name = "accident", type = {DateType.class}, order = 20, min = 0, max = 1) @Description(shortDefinition="Accident Date", formalDefinition="Date of an accident which these services are addressing." ) protected DateType accident; /** * Type of accident: work, auto, etc. */ - @Child(name="accidentType", type={Coding.class}, order=21, min=0, max=1) + @Child(name = "accidentType", type = {Coding.class}, order = 21, min = 0, max = 1) @Description(shortDefinition="Accident Type", formalDefinition="Type of accident: work, auto, etc." ) protected Coding accidentType; /** * A list of intervention and exception codes which may influence the adjudication of the claim. */ - @Child(name="interventionException", type={Coding.class}, order=22, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "interventionException", type = {Coding.class}, order = 22, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Intervention and exception code (Pharma)", formalDefinition="A list of intervention and exception codes which may influence the adjudication of the claim." ) protected List interventionException; /** * First tier of goods and services. */ - @Child(name="item", type={}, order=23, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "item", type = {}, order = 23, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Goods and Services", formalDefinition="First tier of goods and services." ) protected List item; /** * Code to indicate that Xrays, images, emails, documents, models or attachments are being sent in support of this submission. */ - @Child(name="additionalMaterials", type={Coding.class}, order=24, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "additionalMaterials", type = {Coding.class}, order = 24, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Additional materials, documents, etc.", formalDefinition="Code to indicate that Xrays, images, emails, documents, models or attachments are being sent in support of this submission." ) protected List additionalMaterials; @@ -3939,10 +3939,10 @@ public class InstitutionalClaim extends DomainResource { return ResourceType.InstitutionalClaim; } - @SearchParamDefinition(name="identifier", path="InstitutionalClaim.identifier", description="The primary identifier of the financial resource", type="token" ) - public static final String SP_IDENTIFIER = "identifier"; - @SearchParamDefinition(name="use", path="InstitutionalClaim.use", description="The kind of financial resource", type="token" ) - public static final String SP_USE = "use"; + @SearchParamDefinition(name = "identifier", path = "InstitutionalClaim.identifier", description = "The primary identifier of the financial resource", type = "token") + public static final String SP_IDENTIFIER = "identifier"; + @SearchParamDefinition(name = "use", path = "InstitutionalClaim.use", description = "The kind of financial resource", type = "token") + public static final String SP_USE = "use"; @SearchParamDefinition(name="patient", path="InstitutionalClaim.patient", description="Patient", type="reference" ) public static final String SP_PATIENT = "patient"; @SearchParamDefinition(name="priority", path="InstitutionalClaim.priority", description="Processing priority requested", type="token" ) diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/List_.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/List_.java index 6b8e205ed80..e75f6bca10d 100644 --- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/List_.java +++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/List_.java @@ -42,7 +42,7 @@ import org.hl7.fhir.instance.model.annotations.Description; /** * A set of information summarized from a list of other resources. */ -@ResourceDef(name="List_", profile="http://hl7.org/fhir/Profile/List_") +@ResourceDef(name = "List_", profile = "http://hl7.org/fhir/Profile/List_") public class List_ extends DomainResource { public enum ListMode { @@ -393,21 +393,21 @@ public class List_ extends DomainResource { /** * Identifier for the List assigned for business purposes outside the context of FHIR. */ - @Child(name="identifier", type={Identifier.class}, order=0, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "identifier", type = {Identifier.class}, order = 0, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Business identifier", formalDefinition="Identifier for the List assigned for business purposes outside the context of FHIR." ) protected List identifier; /** * This code defines the purpose of the list - why it was created. */ - @Child(name="code", type={CodeableConcept.class}, order=1, min=0, max=1) + @Child(name = "code", type = {CodeableConcept.class}, order = 1, min = 0, max = 1) @Description(shortDefinition="What the purpose of this list is", formalDefinition="This code defines the purpose of the list - why it was created." ) protected CodeableConcept code; /** * The common subject (or patient) of the resources that are in the list, if there is one. */ - @Child(name="subject", type={Patient.class, Group.class, Device.class, Location.class}, order=2, min=0, max=1) + @Child(name = "subject", type = {Patient.class, Group.class, Device.class, Location.class}, order = 2, min = 0, max = 1) @Description(shortDefinition="If all resources have the same subject", formalDefinition="The common subject (or patient) of the resources that are in the list, if there is one." ) protected Reference subject; @@ -419,7 +419,7 @@ public class List_ extends DomainResource { /** * The entity responsible for deciding what the contents of the list were. */ - @Child(name="source", type={Practitioner.class, Patient.class, Device.class}, order=3, min=0, max=1) + @Child(name = "source", type = {Practitioner.class, Patient.class, Device.class}, order = 3, min = 0, max = 1) @Description(shortDefinition="Who and/or what defined the list contents", formalDefinition="The entity responsible for deciding what the contents of the list were." ) protected Reference source; @@ -431,35 +431,35 @@ public class List_ extends DomainResource { /** * The date that the list was prepared. */ - @Child(name="date", type={DateTimeType.class}, order=4, min=0, max=1) + @Child(name = "date", type = {DateTimeType.class}, order = 4, min = 0, max = 1) @Description(shortDefinition="When the list was prepared", formalDefinition="The date that the list was prepared." ) protected DateTimeType date; /** * Whether items in the list have a meaningful order. */ - @Child(name="ordered", type={BooleanType.class}, order=5, min=0, max=1) + @Child(name = "ordered", type = {BooleanType.class}, order = 5, min = 0, max = 1) @Description(shortDefinition="Whether items in the list have a meaningful order", formalDefinition="Whether items in the list have a meaningful order." ) protected BooleanType ordered; /** * How this list was prepared - whether it is a working list that is suitable for being maintained on an ongoing basis, or if it represents a snapshot of a list of items from another source, or whether it is a prepared list where items may be marked as added, modified or deleted. */ - @Child(name="mode", type={CodeType.class}, order=6, min=1, max=1) + @Child(name = "mode", type = {CodeType.class}, order = 6, min = 1, max = 1) @Description(shortDefinition="working | snapshot | changes", formalDefinition="How this list was prepared - whether it is a working list that is suitable for being maintained on an ongoing basis, or if it represents a snapshot of a list of items from another source, or whether it is a prepared list where items may be marked as added, modified or deleted." ) protected Enumeration mode; /** * Entries in this list. */ - @Child(name="entry", type={}, order=7, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "entry", type = {}, order = 7, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Entries in the list", formalDefinition="Entries in this list." ) protected List entry; /** * If the list is empty, why the list is empty. */ - @Child(name="emptyReason", type={CodeableConcept.class}, order=8, min=0, max=1) + @Child(name = "emptyReason", type = {CodeableConcept.class}, order = 8, min = 0, max = 1) @Description(shortDefinition="Why list is empty", formalDefinition="If the list is empty, why the list is empty." ) protected CodeableConcept emptyReason; @@ -877,17 +877,17 @@ public class List_ extends DomainResource { @SearchParamDefinition(name="date", path="List.date", description="When the list was prepared", type="date" ) public static final String SP_DATE = "date"; - @SearchParamDefinition(name="item", path="List.entry.item", description="Actual entry", type="reference" ) + @SearchParamDefinition(name = "item", path = "List.entry.item", description = "Actual entry", type = "reference") public static final String SP_ITEM = "item"; @SearchParamDefinition(name="empty-reason", path="List.emptyReason", description="Why list is empty", type="token" ) public static final String SP_EMPTYREASON = "empty-reason"; - @SearchParamDefinition(name="code", path="List.code", description="What the purpose of this list is", type="token" ) + @SearchParamDefinition(name = "code", path = "List.code", description = "What the purpose of this list is", type = "token") public static final String SP_CODE = "code"; - @SearchParamDefinition(name="subject", path="List.subject", description="If all resources have the same subject", type="reference" ) + @SearchParamDefinition(name = "subject", path = "List.subject", description = "If all resources have the same subject", type = "reference") public static final String SP_SUBJECT = "subject"; - @SearchParamDefinition(name="patient", path="List.subject", description="If all resources have the same subject", type="reference" ) + @SearchParamDefinition(name = "patient", path = "List.subject", description = "If all resources have the same subject", type = "reference") public static final String SP_PATIENT = "patient"; - @SearchParamDefinition(name="source", path="List.source", description="Who and/or what defined the list contents", type="reference" ) + @SearchParamDefinition(name = "source", path = "List.source", description = "Who and/or what defined the list contents", type = "reference") public static final String SP_SOURCE = "source"; } diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Location.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Location.java index 8832fd37afa..409c11ced5b 100644 --- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Location.java +++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Location.java @@ -426,63 +426,63 @@ public class Location extends DomainResource { /** * Unique code or number identifying the location to its users. */ - @Child(name="identifier", type={Identifier.class}, order=0, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "identifier", type = {Identifier.class}, order = 0, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Unique code or number identifying the location to its users", formalDefinition="Unique code or number identifying the location to its users." ) protected List identifier; /** * Name of the location as used by humans. Does not need to be unique. */ - @Child(name="name", type={StringType.class}, order=1, min=0, max=1) + @Child(name = "name", type = {StringType.class}, order = 1, min = 0, max = 1) @Description(shortDefinition="Name of the location as used by humans", formalDefinition="Name of the location as used by humans. Does not need to be unique." ) protected StringType name; /** * Description of the Location, which helps in finding or referencing the place. */ - @Child(name="description", type={StringType.class}, order=2, min=0, max=1) + @Child(name = "description", type = {StringType.class}, order = 2, min = 0, max = 1) @Description(shortDefinition="Description of the Location, which helps in finding or referencing the place", formalDefinition="Description of the Location, which helps in finding or referencing the place." ) protected StringType description; /** * Indicates the type of function performed at the location. */ - @Child(name="type", type={CodeableConcept.class}, order=3, min=0, max=1) + @Child(name = "type", type = {CodeableConcept.class}, order = 3, min = 0, max = 1) @Description(shortDefinition="Indicates the type of function performed at the location", formalDefinition="Indicates the type of function performed at the location." ) protected CodeableConcept type; /** * The contact details of communication devices available at the location. This can include phone numbers, fax numbers, mobile numbers, email addresses and web sites. */ - @Child(name="telecom", type={ContactPoint.class}, order=4, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "telecom", type = {ContactPoint.class}, order = 4, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Contact details of the location", formalDefinition="The contact details of communication devices available at the location. This can include phone numbers, fax numbers, mobile numbers, email addresses and web sites." ) protected List telecom; /** * Physical location. */ - @Child(name="address", type={Address.class}, order=5, min=0, max=1) + @Child(name = "address", type = {Address.class}, order = 5, min = 0, max = 1) @Description(shortDefinition="Physical location", formalDefinition="Physical location." ) protected Address address; /** * Physical form of the location, e.g. building, room, vehicle, road. */ - @Child(name="physicalType", type={CodeableConcept.class}, order=6, min=0, max=1) + @Child(name = "physicalType", type = {CodeableConcept.class}, order = 6, min = 0, max = 1) @Description(shortDefinition="Physical form of the location", formalDefinition="Physical form of the location, e.g. building, room, vehicle, road." ) protected CodeableConcept physicalType; /** * The absolute geographic location of the Location, expressed in a KML compatible manner (see notes below for KML). */ - @Child(name="position", type={}, order=7, min=0, max=1) + @Child(name = "position", type = {}, order = 7, min = 0, max = 1) @Description(shortDefinition="The absolute geographic location", formalDefinition="The absolute geographic location of the Location, expressed in a KML compatible manner (see notes below for KML)." ) protected LocationPositionComponent position; /** * The organization that is responsible for the provisioning and upkeep of the location. */ - @Child(name="managingOrganization", type={Organization.class}, order=8, min=0, max=1) + @Child(name = "managingOrganization", type = {Organization.class}, order = 8, min = 0, max = 1) @Description(shortDefinition="The organization that is responsible for the provisioning and upkeep of the location", formalDefinition="The organization that is responsible for the provisioning and upkeep of the location." ) protected Reference managingOrganization; @@ -494,14 +494,14 @@ public class Location extends DomainResource { /** * active | suspended | inactive. */ - @Child(name="status", type={CodeType.class}, order=9, min=0, max=1) + @Child(name = "status", type = {CodeType.class}, order = 9, min = 0, max = 1) @Description(shortDefinition="active | suspended | inactive", formalDefinition="active | suspended | inactive." ) protected Enumeration status; /** * Another Location which this Location is physically part of. */ - @Child(name="partOf", type={Location.class}, order=10, min=0, max=1) + @Child(name = "partOf", type = {Location.class}, order = 10, min = 0, max = 1) @Description(shortDefinition="Another Location which this Location is physically part of", formalDefinition="Another Location which this Location is physically part of." ) protected Reference partOf; @@ -513,7 +513,7 @@ public class Location extends DomainResource { /** * Indicates whether a resource instance represents a specific location or a class of locations. */ - @Child(name="mode", type={CodeType.class}, order=11, min=0, max=1) + @Child(name = "mode", type = {CodeType.class}, order = 11, min = 0, max = 1) @Description(shortDefinition="instance | kind", formalDefinition="Indicates whether a resource instance represents a specific location or a class of locations." ) protected Enumeration mode; @@ -1048,24 +1048,24 @@ public class Location extends DomainResource { return ResourceType.Location; } - @SearchParamDefinition(name="identifier", path="Location.identifier", description="Unique code or number identifying the location to its users", type="token" ) - public static final String SP_IDENTIFIER = "identifier"; + @SearchParamDefinition(name = "identifier", path = "Location.identifier", description = "Unique code or number identifying the location to its users", type = "token") + public static final String SP_IDENTIFIER = "identifier"; @SearchParamDefinition(name="partof", path="Location.partOf", description="The location of which this location is a part", type="reference" ) public static final String SP_PARTOF = "partof"; - @SearchParamDefinition(name="near-distance", path="", description="A distance quantity to limit the near search to locations within a specific distance", type="token" ) - public static final String SP_NEARDISTANCE = "near-distance"; + @SearchParamDefinition(name = "near-distance", path = "", description = "A distance quantity to limit the near search to locations within a specific distance", type = "token") + public static final String SP_NEARDISTANCE = "near-distance"; @SearchParamDefinition(name="address", path="Location.address", description="A (part of the) address of the location", type="string" ) public static final String SP_ADDRESS = "address"; - @SearchParamDefinition(name="organization", path="Location.managingOrganization", description="Searches for locations that are managed by the provided organization", type="reference" ) - public static final String SP_ORGANIZATION = "organization"; + @SearchParamDefinition(name = "organization", path = "Location.managingOrganization", description = "Searches for locations that are managed by the provided organization", type = "reference") + public static final String SP_ORGANIZATION = "organization"; @SearchParamDefinition(name="name", path="Location.name", description="A (portion of the) name of the location", type="string" ) public static final String SP_NAME = "name"; - @SearchParamDefinition(name="near", path="", description="The coordinates expressed as [lat],[long] (using KML, see notes) to find locations near to (servers may search using a square rather than a circle for efficiency)", type="token" ) - public static final String SP_NEAR = "near"; + @SearchParamDefinition(name = "near", path = "", description = "The coordinates expressed as [lat],[long] (using KML, see notes) to find locations near to (servers may search using a square rather than a circle for efficiency)", type = "token") + public static final String SP_NEAR = "near"; @SearchParamDefinition(name="type", path="Location.type", description="A code for the type of location", type="token" ) public static final String SP_TYPE = "type"; - @SearchParamDefinition(name="status", path="Location.status", description="Searches for locations with a specific kind of status", type="token" ) - public static final String SP_STATUS = "status"; + @SearchParamDefinition(name = "status", path = "Location.status", description = "Searches for locations with a specific kind of status", type = "token") + public static final String SP_STATUS = "status"; } diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Media.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Media.java index ba92d15be09..8833e76b1c8 100644 --- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Media.java +++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Media.java @@ -134,35 +134,35 @@ public class Media extends DomainResource { /** * Whether the media is a photo (still image), an audio recording, or a video recording. */ - @Child(name="type", type={CodeType.class}, order=0, min=1, max=1) + @Child(name = "type", type = {CodeType.class}, order = 0, min = 1, max = 1) @Description(shortDefinition="photo | video | audio", formalDefinition="Whether the media is a photo (still image), an audio recording, or a video recording." ) protected Enumeration type; /** * Details of the type of the media - usually, how it was acquired (what type of device). If images sourced from a DICOM system, are wrapped in a Media resource, then this is the modality. */ - @Child(name="subtype", type={CodeableConcept.class}, order=1, min=0, max=1) + @Child(name = "subtype", type = {CodeableConcept.class}, order = 1, min = 0, max = 1) @Description(shortDefinition="The type of acquisition equipment/process", formalDefinition="Details of the type of the media - usually, how it was acquired (what type of device). If images sourced from a DICOM system, are wrapped in a Media resource, then this is the modality." ) protected CodeableConcept subtype; /** * Identifiers associated with the image - these may include identifiers for the image itself, identifiers for the context of its collection (e.g. series ids) and context ids such as accession numbers or other workflow identifiers. */ - @Child(name="identifier", type={Identifier.class}, order=2, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "identifier", type = {Identifier.class}, order = 2, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Identifier(s) for the image", formalDefinition="Identifiers associated with the image - these may include identifiers for the image itself, identifiers for the context of its collection (e.g. series ids) and context ids such as accession numbers or other workflow identifiers." ) protected List identifier; /** * The date/time when the media was originally recorded. For video and audio, if the length of the recording is not insignificant, this is the start of the recording. */ - @Child(name="created", type={DateTimeType.class}, order=3, min=0, max=1) + @Child(name = "created", type = {DateTimeType.class}, order = 3, min = 0, max = 1) @Description(shortDefinition="When the media was taken/recorded (start)", formalDefinition="The date/time when the media was originally recorded. For video and audio, if the length of the recording is not insignificant, this is the start of the recording." ) protected DateTimeType created; /** * Who/What this Media is a record of. */ - @Child(name="subject", type={Patient.class, Practitioner.class, Group.class, Device.class, Specimen.class}, order=4, min=0, max=1) + @Child(name = "subject", type = {Patient.class, Practitioner.class, Group.class, Device.class, Specimen.class}, order = 4, min = 0, max = 1) @Description(shortDefinition="Who/What this Media is a record of", formalDefinition="Who/What this Media is a record of." ) protected Reference subject; @@ -174,7 +174,7 @@ public class Media extends DomainResource { /** * The person who administered the collection of the image. */ - @Child(name="operator", type={Practitioner.class}, order=5, min=0, max=1) + @Child(name = "operator", type = {Practitioner.class}, order = 5, min = 0, max = 1) @Description(shortDefinition="The person who generated the image", formalDefinition="The person who administered the collection of the image." ) protected Reference operator; @@ -186,49 +186,49 @@ public class Media extends DomainResource { /** * The name of the imaging view e.g Lateral or Antero-posterior (AP). */ - @Child(name="view", type={CodeableConcept.class}, order=6, min=0, max=1) + @Child(name = "view", type = {CodeableConcept.class}, order = 6, min = 0, max = 1) @Description(shortDefinition="Imaging view e.g Lateral or Antero-posterior", formalDefinition="The name of the imaging view e.g Lateral or Antero-posterior (AP)." ) protected CodeableConcept view; /** * The name of the device / manufacturer of the device that was used to make the recording. */ - @Child(name="deviceName", type={StringType.class}, order=7, min=0, max=1) + @Child(name = "deviceName", type = {StringType.class}, order = 7, min = 0, max = 1) @Description(shortDefinition="Name of the device/manufacturer", formalDefinition="The name of the device / manufacturer of the device that was used to make the recording." ) protected StringType deviceName; /** * Height of the image in pixels(photo/video). */ - @Child(name="height", type={IntegerType.class}, order=8, min=0, max=1) + @Child(name = "height", type = {IntegerType.class}, order = 8, min = 0, max = 1) @Description(shortDefinition="Height of the image in pixels(photo/video)", formalDefinition="Height of the image in pixels(photo/video)." ) protected IntegerType height; /** * Width of the image in pixels (photo/video). */ - @Child(name="width", type={IntegerType.class}, order=9, min=0, max=1) + @Child(name = "width", type = {IntegerType.class}, order = 9, min = 0, max = 1) @Description(shortDefinition="Width of the image in pixels (photo/video)", formalDefinition="Width of the image in pixels (photo/video)." ) protected IntegerType width; /** * The number of frames in a photo. This is used with a multi-page fax, or an imaging acquisition context that takes multiple slices in a single image, or an animated gif. If there is more than one frame, this SHALL have a value in order to alert interface software that a multi-frame capable rendering widget is required. */ - @Child(name="frames", type={IntegerType.class}, order=10, min=0, max=1) + @Child(name = "frames", type = {IntegerType.class}, order = 10, min = 0, max = 1) @Description(shortDefinition="Number of frames if > 1 (photo)", formalDefinition="The number of frames in a photo. This is used with a multi-page fax, or an imaging acquisition context that takes multiple slices in a single image, or an animated gif. If there is more than one frame, this SHALL have a value in order to alert interface software that a multi-frame capable rendering widget is required." ) protected IntegerType frames; /** * The duration of the recording in seconds - for audio and video. */ - @Child(name="duration", type={IntegerType.class}, order=11, min=0, max=1) + @Child(name = "duration", type = {IntegerType.class}, order = 11, min = 0, max = 1) @Description(shortDefinition="Length in seconds (audio / video)", formalDefinition="The duration of the recording in seconds - for audio and video." ) protected IntegerType duration; /** * The actual content of the media - inline or by direct reference to the media source file. */ - @Child(name="content", type={Attachment.class}, order=12, min=1, max=1) + @Child(name = "content", type = {Attachment.class}, order = 12, min = 1, max = 1) @Description(shortDefinition="Actual Media - reference or data", formalDefinition="The actual content of the media - inline or by direct reference to the media source file." ) protected Attachment content; @@ -836,17 +836,17 @@ public class Media extends DomainResource { return ResourceType.Media; } - @SearchParamDefinition(name="identifier", path="Media.identifier", description="Identifier(s) for the image", type="token" ) + @SearchParamDefinition(name = "identifier", path = "Media.identifier", description = "Identifier(s) for the image", type = "token") public static final String SP_IDENTIFIER = "identifier"; - @SearchParamDefinition(name="view", path="Media.view", description="Imaging view e.g Lateral or Antero-posterior", type="token" ) + @SearchParamDefinition(name = "view", path = "Media.view", description = "Imaging view e.g Lateral or Antero-posterior", type = "token") public static final String SP_VIEW = "view"; - @SearchParamDefinition(name="subtype", path="Media.subtype", description="The type of acquisition equipment/process", type="token" ) + @SearchParamDefinition(name = "subtype", path = "Media.subtype", description = "The type of acquisition equipment/process", type = "token") public static final String SP_SUBTYPE = "subtype"; @SearchParamDefinition(name="created", path="Media.created", description="When the media was taken/recorded (start)", type="date" ) public static final String SP_CREATED = "created"; @SearchParamDefinition(name="subject", path="Media.subject", description="Who/What this Media is a record of", type="reference" ) public static final String SP_SUBJECT = "subject"; - @SearchParamDefinition(name="patient", path="Media.subject", description="Who/What this Media is a record of", type="reference" ) + @SearchParamDefinition(name = "patient", path = "Media.subject", description = "Who/What this Media is a record of", type = "reference") public static final String SP_PATIENT = "patient"; @SearchParamDefinition(name="type", path="Media.type", description="photo | video | audio", type="token" ) public static final String SP_TYPE = "type"; diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Medication.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Medication.java index dc95b018adf..6f132b6f284 100644 --- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Medication.java +++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Medication.java @@ -846,28 +846,28 @@ public class Medication extends DomainResource { /** * The common/commercial name of the medication absent information such as strength, form, etc. E.g. Acetaminophen, Tylenol 3, etc. The fully coordinated name is communicated as the display of Medication.code. */ - @Child(name="name", type={StringType.class}, order=0, min=0, max=1) + @Child(name = "name", type = {StringType.class}, order = 0, min = 0, max = 1) @Description(shortDefinition="Common / Commercial name", formalDefinition="The common/commercial name of the medication absent information such as strength, form, etc. E.g. Acetaminophen, Tylenol 3, etc. The fully coordinated name is communicated as the display of Medication.code." ) protected StringType name; /** * A code (or set of codes) that identify this medication. Usage note: This could be a standard drug code such as a drug regulator code, RxNorm code, SNOMED CT code, etc. It could also be a local formulary code, optionally with translations to the standard drug codes. */ - @Child(name="code", type={CodeableConcept.class}, order=1, min=0, max=1) + @Child(name = "code", type = {CodeableConcept.class}, order = 1, min = 0, max = 1) @Description(shortDefinition="Codes that identify this medication", formalDefinition="A code (or set of codes) that identify this medication. Usage note: This could be a standard drug code such as a drug regulator code, RxNorm code, SNOMED CT code, etc. It could also be a local formulary code, optionally with translations to the standard drug codes." ) protected CodeableConcept code; /** * Set to true if the item is attributable to a specific manufacturer (even if we don't know who that is). */ - @Child(name="isBrand", type={BooleanType.class}, order=2, min=0, max=1) + @Child(name = "isBrand", type = {BooleanType.class}, order = 2, min = 0, max = 1) @Description(shortDefinition="True if a brand", formalDefinition="Set to true if the item is attributable to a specific manufacturer (even if we don't know who that is)." ) protected BooleanType isBrand; /** * Describes the details of the manufacturer. */ - @Child(name="manufacturer", type={Organization.class}, order=3, min=0, max=1) + @Child(name = "manufacturer", type = {Organization.class}, order = 3, min = 0, max = 1) @Description(shortDefinition="Manufacturer of the item", formalDefinition="Describes the details of the manufacturer." ) protected Reference manufacturer; @@ -879,21 +879,21 @@ public class Medication extends DomainResource { /** * Medications are either a single administrable product or a package that contains one or more products. */ - @Child(name="kind", type={CodeType.class}, order=4, min=0, max=1) + @Child(name = "kind", type = {CodeType.class}, order = 4, min = 0, max = 1) @Description(shortDefinition="product | package", formalDefinition="Medications are either a single administrable product or a package that contains one or more products." ) protected Enumeration kind; /** * Information that only applies to products (not packages). */ - @Child(name="product", type={}, order=5, min=0, max=1) + @Child(name = "product", type = {}, order = 5, min = 0, max = 1) @Description(shortDefinition="Administrable medication details", formalDefinition="Information that only applies to products (not packages)." ) protected MedicationProductComponent product; /** * 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_; @@ -1229,15 +1229,15 @@ public class Medication extends DomainResource { public static final String SP_CONTAINER = "container"; @SearchParamDefinition(name="code", path="Medication.code", description="Codes that identify this medication", type="token" ) public static final String SP_CODE = "code"; - @SearchParamDefinition(name="ingredient", path="Medication.product.ingredient.item", description="The product contained", type="reference" ) + @SearchParamDefinition(name = "ingredient", path = "Medication.product.ingredient.item", description = "The product contained", type = "reference") public static final String SP_INGREDIENT = "ingredient"; - @SearchParamDefinition(name="form", path="Medication.product.form", description="powder | tablets | carton +", type="token" ) + @SearchParamDefinition(name = "form", path = "Medication.product.form", description = "powder | tablets | carton +", type = "token") public static final String SP_FORM = "form"; - @SearchParamDefinition(name="name", path="Medication.name", description="Common / Commercial name", type="string" ) + @SearchParamDefinition(name = "name", path = "Medication.name", description = "Common / Commercial name", type = "string") public static final String SP_NAME = "name"; - @SearchParamDefinition(name="content", path="Medication.package.content.item", description="A product in the package", type="reference" ) + @SearchParamDefinition(name = "content", path = "Medication.package.content.item", description = "A product in the package", type = "reference") public static final String SP_CONTENT = "content"; - @SearchParamDefinition(name="manufacturer", path="Medication.manufacturer", description="Manufacturer of the item", type="reference" ) + @SearchParamDefinition(name = "manufacturer", path = "Medication.manufacturer", description = "Manufacturer of the item", type = "reference") public static final String SP_MANUFACTURER = "manufacturer"; } diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/MedicationAdministration.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/MedicationAdministration.java index e60db46811e..96ab51bcf7d 100644 --- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/MedicationAdministration.java +++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/MedicationAdministration.java @@ -40,7 +40,9 @@ import org.hl7.fhir.instance.model.annotations.Block; import org.hl7.fhir.instance.model.annotations.Child; import org.hl7.fhir.instance.model.annotations.Description; /** - * Describes the event of a patient consuming or otherwise being administered a medication. This may be as simple as swallowing a tablet or it may be a long running infusion. Related resources tie this event to the authorizing prescription, and the specific encounter between patient and health care practitioner. + * Describes the event of a patient consuming or otherwise being administered a medication. This may be as simple as swallowing a tablet or it may be a long running infusion. + +Related resources tie this event to the authorizing prescription, and the specific encounter between patient and health care practitioner. */ @ResourceDef(name="MedicationAdministration", profile="http://hl7.org/fhir/Profile/MedicationAdministration") public class MedicationAdministration extends DomainResource { @@ -183,7 +185,9 @@ public class MedicationAdministration extends DomainResource { protected CodeableConcept route; /** - * A coded value indicating the method by which the medication was introduced into or onto the body. Most commonly used for injections. Examples: Slow Push; Deep IV. Terminologies used often pre-coordinate this term with the route and or form of administration. + * A coded value indicating the method by which the medication was introduced into or onto the body. Most commonly used for injections. Examples: Slow Push; Deep IV. + +Terminologies used often pre-coordinate this term with the route and or form of administration. */ @Child(name="method", type={CodeableConcept.class}, order=4, min=0, max=1) @Description(shortDefinition="How drug was administered", formalDefinition="A coded value indicating the method by which the medication was introduced into or onto the body. Most commonly used for injections. Examples: Slow Push; Deep IV.\r\rTerminologies used often pre-coordinate this term with the route and or form of administration." ) @@ -307,7 +311,9 @@ public class MedicationAdministration extends DomainResource { } /** - * @return {@link #method} (A coded value indicating the method by which the medication was introduced into or onto the body. Most commonly used for injections. Examples: Slow Push; Deep IV. Terminologies used often pre-coordinate this term with the route and or form of administration.) + * @return {@link #method} (A coded value indicating the method by which the medication was introduced into or onto the body. Most commonly used for injections. Examples: Slow Push; Deep IV. + +Terminologies used often pre-coordinate this term with the route and or form of administration.) */ public CodeableConcept getMethod() { if (this.method == null) @@ -323,7 +329,9 @@ public class MedicationAdministration extends DomainResource { } /** - * @param value {@link #method} (A coded value indicating the method by which the medication was introduced into or onto the body. Most commonly used for injections. Examples: Slow Push; Deep IV. Terminologies used often pre-coordinate this term with the route and or form of administration.) + * @param value {@link #method} (A coded value indicating the method by which the medication was introduced into or onto the body. Most commonly used for injections. Examples: Slow Push; Deep IV. + +Terminologies used often pre-coordinate this term with the route and or form of administration.) */ public MedicationAdministrationDosageComponent setMethod(CodeableConcept value) { this.method = value; @@ -433,21 +441,21 @@ public class MedicationAdministration extends DomainResource { /** * External identifier - FHIR will generate its own internal IDs (probably URLs) which do not need to be explicitly managed by the resource. The identifier here is one that would be used by another non-FHIR system - for example an automated medication pump would provide a record each time it operated; an administration while the patient was off the ward might be made with a different system and entered after the event. Particularly important if these records have to be updated. */ - @Child(name="identifier", type={Identifier.class}, order=0, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "identifier", type = {Identifier.class}, order = 0, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="External identifier", formalDefinition="External identifier - FHIR will generate its own internal IDs (probably URLs) which do not need to be explicitly managed by the resource. The identifier here is one that would be used by another non-FHIR system - for example an automated medication pump would provide a record each time it operated; an administration while the patient was off the ward might be made with a different system and entered after the event. Particularly important if these records have to be updated." ) protected List identifier; /** * 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. */ - @Child(name="status", type={CodeType.class}, order=1, min=1, max=1) + @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 status; /** * The person or animal to whom the medication was given. */ - @Child(name="patient", type={Patient.class}, order=2, min=1, max=1) + @Child(name = "patient", type = {Patient.class}, order = 2, min = 1, max = 1) @Description(shortDefinition="Who received medication?", formalDefinition="The person or animal to whom the medication was given." ) protected Reference patient; @@ -459,7 +467,7 @@ public class MedicationAdministration extends DomainResource { /** * The individual who was responsible for giving the medication to the patient. */ - @Child(name="practitioner", type={Practitioner.class}, order=3, min=0, max=1) + @Child(name = "practitioner", type = {Practitioner.class}, order = 3, min = 0, max = 1) @Description(shortDefinition="Who administered substance?", formalDefinition="The individual who was responsible for giving the medication to the patient." ) protected Reference practitioner; @@ -471,7 +479,7 @@ public class MedicationAdministration extends DomainResource { /** * The visit or admission the or other contact between patient and health care provider the medication administration was performed as part of. */ - @Child(name="encounter", type={Encounter.class}, order=4, min=0, max=1) + @Child(name = "encounter", type = {Encounter.class}, order = 4, min = 0, max = 1) @Description(shortDefinition="Encounter administered as part of", formalDefinition="The visit or admission the or other contact between patient and health care provider the medication administration was performed as part of." ) protected Reference encounter; @@ -483,7 +491,7 @@ public class MedicationAdministration extends DomainResource { /** * The original request, instruction or authority to perform the administration. */ - @Child(name="prescription", type={MedicationPrescription.class}, order=5, min=0, max=1) + @Child(name = "prescription", type = {MedicationPrescription.class}, order = 5, min = 0, max = 1) @Description(shortDefinition="Order administration performed against", formalDefinition="The original request, instruction or authority to perform the administration." ) protected Reference prescription; @@ -495,35 +503,35 @@ public class MedicationAdministration extends DomainResource { /** * Set this to true if the record is saying that the medication was NOT administered. */ - @Child(name="wasNotGiven", type={BooleanType.class}, order=6, min=0, max=1) + @Child(name = "wasNotGiven", type = {BooleanType.class}, order = 6, min = 0, max = 1) @Description(shortDefinition="True if medication not administered", formalDefinition="Set this to true if the record is saying that the medication was NOT administered." ) protected BooleanType wasNotGiven; /** * A code indicating why the administration was not performed. */ - @Child(name="reasonNotGiven", type={CodeableConcept.class}, order=7, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "reasonNotGiven", type = {CodeableConcept.class}, order = 7, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Reason administration not performed", formalDefinition="A code indicating why the administration was not performed." ) protected List reasonNotGiven; /** * A code indicating why the medication was given. */ - @Child(name="reasonGiven", type={CodeableConcept.class}, order=8, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "reasonGiven", type = {CodeableConcept.class}, order = 8, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Reason administration performed", formalDefinition="A code indicating why the medication was given." ) protected List reasonGiven; /** * An interval of time during which the administration took place (or did not take place, when the 'notGiven' attribute is true). For many administrations, such as swallowing a tablet the use of dateTime is more appropriate. */ - @Child(name="effectiveTime", type={DateTimeType.class, Period.class}, order=9, min=1, max=1) + @Child(name = "effectiveTime", type = {DateTimeType.class, Period.class}, order = 9, min = 1, max = 1) @Description(shortDefinition="Start and end time of administration", formalDefinition="An interval of time during which the administration took place (or did not take place, when the 'notGiven' attribute is true). For many administrations, such as swallowing a tablet the use of dateTime is more appropriate." ) protected Type effectiveTime; /** * Identifies the medication that was administered. This is either a link to a resource representing the details of the medication or a simple attribute carrying a code that identifies the medication from a known list of medications. */ - @Child(name="medication", type={Medication.class}, order=10, min=0, max=1) + @Child(name = "medication", type = {Medication.class}, order = 10, min = 0, max = 1) @Description(shortDefinition="What was administered?", formalDefinition="Identifies the medication that was administered. This is either a link to a resource representing the details of the medication or a simple attribute carrying a code that identifies the medication from a known list of medications." ) protected Reference medication; @@ -535,7 +543,7 @@ public class MedicationAdministration extends DomainResource { /** * The device used in administering the medication to the patient. E.g. a particular infusion pump. */ - @Child(name="device", type={Device.class}, order=11, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "device", type = {Device.class}, order = 11, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Device used to administer", formalDefinition="The device used in administering the medication to the patient. E.g. a particular infusion pump." ) protected List device; /** @@ -547,14 +555,14 @@ public class MedicationAdministration extends DomainResource { /** * Extra information about the medication administration that is not conveyed by the other attributes. */ - @Child(name="note", type={StringType.class}, order=12, min=0, max=1) + @Child(name = "note", type = {StringType.class}, order = 12, min = 0, max = 1) @Description(shortDefinition="Information about the administration", formalDefinition="Extra information about the medication administration that is not conveyed by the other attributes." ) protected StringType note; /** * Indicates how the medication is/was used by the patient. */ - @Child(name="dosage", type={}, order=13, min=0, max=1) + @Child(name = "dosage", type = {}, order = 13, min = 0, max = 1) @Description(shortDefinition="Details of how medication was taken", formalDefinition="Indicates how the medication is/was used by the patient." ) protected MedicationAdministrationDosageComponent dosage; @@ -1232,24 +1240,24 @@ public class MedicationAdministration extends DomainResource { return ResourceType.MedicationAdministration; } - @SearchParamDefinition(name="identifier", path="MedicationAdministration.identifier", description="Return administrations with this external identity", type="token" ) - public static final String SP_IDENTIFIER = "identifier"; - @SearchParamDefinition(name="prescription", path="MedicationAdministration.prescription", description="The identity of a prescription to list administrations from", type="reference" ) - public static final String SP_PRESCRIPTION = "prescription"; + @SearchParamDefinition(name = "identifier", path = "MedicationAdministration.identifier", description = "Return administrations with this external identity", type = "token") + public static final String SP_IDENTIFIER = "identifier"; + @SearchParamDefinition(name = "prescription", path = "MedicationAdministration.prescription", description = "The identity of a prescription to list administrations from", type = "reference") + public static final String SP_PRESCRIPTION = "prescription"; @SearchParamDefinition(name="effectivetime", path="MedicationAdministration.effectiveTime[x]", description="Date administration happened (or did not happen)", type="date" ) public static final String SP_EFFECTIVETIME = "effectivetime"; @SearchParamDefinition(name="patient", path="MedicationAdministration.patient", description="The identity of a patient to list administrations for", type="reference" ) public static final String SP_PATIENT = "patient"; - @SearchParamDefinition(name="medication", path="MedicationAdministration.medication", description="Return administrations of this medication", type="reference" ) - public static final String SP_MEDICATION = "medication"; - @SearchParamDefinition(name="encounter", path="MedicationAdministration.encounter", description="Return administrations that share this encounter", type="reference" ) - public static final String SP_ENCOUNTER = "encounter"; + @SearchParamDefinition(name = "medication", path = "MedicationAdministration.medication", description = "Return administrations of this medication", type = "reference") + public static final String SP_MEDICATION = "medication"; + @SearchParamDefinition(name = "encounter", path = "MedicationAdministration.encounter", description = "Return administrations that share this encounter", type = "reference") + public static final String SP_ENCOUNTER = "encounter"; @SearchParamDefinition(name="device", path="MedicationAdministration.device", description="Return administrations with this administration device identity", type="reference" ) public static final String SP_DEVICE = "device"; @SearchParamDefinition(name="notgiven", path="MedicationAdministration.wasNotGiven", description="Administrations that were not made", type="token" ) public static final String SP_NOTGIVEN = "notgiven"; - @SearchParamDefinition(name="status", path="MedicationAdministration.status", description="MedicationAdministration event status (for example one of active/paused/completed/nullified)", type="token" ) - public static final String SP_STATUS = "status"; + @SearchParamDefinition(name = "status", path = "MedicationAdministration.status", description = "MedicationAdministration event status (for example one of active/paused/completed/nullified)", type = "token") + public static final String SP_STATUS = "status"; } diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/MedicationDispense.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/MedicationDispense.java index 5da54ba7322..0f03f066292 100644 --- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/MedicationDispense.java +++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/MedicationDispense.java @@ -197,7 +197,9 @@ public class MedicationDispense extends DomainResource { protected CodeableConcept route; /** - * A coded value indicating the method by which the medication is introduced into or onto the body. Most commonly used for injections. Examples: Slow Push; Deep IV. Terminologies used often pre-coordinate this term with the route and or form of administration. + * A coded value indicating the method by which the medication is introduced into or onto the body. Most commonly used for injections. Examples: Slow Push; Deep IV. + +Terminologies used often pre-coordinate this term with the route and or form of administration. */ @Child(name="method", type={CodeableConcept.class}, order=6, min=0, max=1) @Description(shortDefinition="Technique for administering medication", formalDefinition="A coded value indicating the method by which the medication is introduced into or onto the body. Most commonly used for injections. Examples: Slow Push; Deep IV.\r\rTerminologies used often pre-coordinate this term with the route and or form of administration." ) @@ -386,7 +388,9 @@ public class MedicationDispense extends DomainResource { } /** - * @return {@link #method} (A coded value indicating the method by which the medication is introduced into or onto the body. Most commonly used for injections. Examples: Slow Push; Deep IV. Terminologies used often pre-coordinate this term with the route and or form of administration.) + * @return {@link #method} (A coded value indicating the method by which the medication is introduced into or onto the body. Most commonly used for injections. Examples: Slow Push; Deep IV. + +Terminologies used often pre-coordinate this term with the route and or form of administration.) */ public CodeableConcept getMethod() { if (this.method == null) @@ -402,7 +406,9 @@ public class MedicationDispense extends DomainResource { } /** - * @param value {@link #method} (A coded value indicating the method by which the medication is introduced into or onto the body. Most commonly used for injections. Examples: Slow Push; Deep IV. Terminologies used often pre-coordinate this term with the route and or form of administration.) + * @param value {@link #method} (A coded value indicating the method by which the medication is introduced into or onto the body. Most commonly used for injections. Examples: Slow Push; Deep IV. + +Terminologies used often pre-coordinate this term with the route and or form of administration.) */ public MedicationDispenseDosageInstructionComponent setMethod(CodeableConcept value) { this.method = value; @@ -754,21 +760,21 @@ public class MedicationDispense extends DomainResource { /** * Identifier assigned by the dispensing facility - this is an identifier assigned outside FHIR. */ - @Child(name="identifier", type={Identifier.class}, order=0, min=0, max=1) + @Child(name = "identifier", type = {Identifier.class}, order = 0, min = 0, max = 1) @Description(shortDefinition="External identifier", formalDefinition="Identifier assigned by the dispensing facility - this is an identifier assigned outside FHIR." ) protected Identifier identifier; /** * A code specifying the state of the set of dispense events. */ - @Child(name="status", type={CodeType.class}, order=1, min=0, max=1) + @Child(name = "status", type = {CodeType.class}, order = 1, min = 0, max = 1) @Description(shortDefinition="in-progress | on-hold | completed | entered-in-error | stopped", formalDefinition="A code specifying the state of the set of dispense events." ) protected Enumeration status; /** * A link to a resource representing the person to whom the medication will be given. */ - @Child(name="patient", type={Patient.class}, order=2, min=0, max=1) + @Child(name = "patient", type = {Patient.class}, order = 2, min = 0, max = 1) @Description(shortDefinition="Who the dispense is for", formalDefinition="A link to a resource representing the person to whom the medication will be given." ) protected Reference patient; @@ -780,7 +786,7 @@ public class MedicationDispense extends DomainResource { /** * The individual responsible for dispensing the medication. */ - @Child(name="dispenser", type={Practitioner.class}, order=3, min=0, max=1) + @Child(name = "dispenser", type = {Practitioner.class}, order = 3, min = 0, max = 1) @Description(shortDefinition="Practitioner responsible for dispensing medication", formalDefinition="The individual responsible for dispensing the medication." ) protected Reference dispenser; @@ -792,7 +798,7 @@ public class MedicationDispense extends DomainResource { /** * Indicates the medication order that is being dispensed against. */ - @Child(name="authorizingPrescription", type={MedicationPrescription.class}, order=4, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "authorizingPrescription", type = {MedicationPrescription.class}, order = 4, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Medication order that authorizes the dispense", formalDefinition="Indicates the medication order that is being dispensed against." ) protected List authorizingPrescription; /** @@ -804,28 +810,28 @@ public class MedicationDispense extends DomainResource { /** * Indicates the type of dispensing event that is performed. Examples include: Trial Fill, Completion of Trial, Partial Fill, Emergency Fill, Samples, etc. */ - @Child(name="type", type={CodeableConcept.class}, order=5, min=0, max=1) + @Child(name = "type", type = {CodeableConcept.class}, order = 5, min = 0, max = 1) @Description(shortDefinition="Trial fill, partial fill, emergency fill, etc.", formalDefinition="Indicates the type of dispensing event that is performed. Examples include: Trial Fill, Completion of Trial, Partial Fill, Emergency Fill, Samples, etc." ) protected CodeableConcept type; /** * The amount of medication that has been dispensed. Includes unit of measure. */ - @Child(name="quantity", type={Quantity.class}, order=6, min=0, max=1) + @Child(name = "quantity", type = {Quantity.class}, order = 6, min = 0, max = 1) @Description(shortDefinition="Amount dispensed", formalDefinition="The amount of medication that has been dispensed. Includes unit of measure." ) protected Quantity quantity; /** * The amount of medication expressed as a timing amount. */ - @Child(name="daysSupply", type={Quantity.class}, order=7, min=0, max=1) + @Child(name = "daysSupply", type = {Quantity.class}, order = 7, min = 0, max = 1) @Description(shortDefinition="Days Supply", formalDefinition="The amount of medication expressed as a timing amount." ) protected Quantity daysSupply; /** * Identifies the medication being administered. This is either a link to a resource representing the details of the medication or a simple attribute carrying a code that identifies the medication from a known list of medications. */ - @Child(name="medication", type={Medication.class}, order=8, min=0, max=1) + @Child(name = "medication", type = {Medication.class}, order = 8, min = 0, max = 1) @Description(shortDefinition="What medication was supplied", formalDefinition="Identifies the medication being administered. This is either a link to a resource representing the details of the medication or a simple attribute carrying a code that identifies the medication from a known list of medications." ) protected Reference medication; @@ -837,21 +843,21 @@ public class MedicationDispense extends DomainResource { /** * The time when the dispensed product was packaged and reviewed. */ - @Child(name="whenPrepared", type={DateTimeType.class}, order=9, min=0, max=1) + @Child(name = "whenPrepared", type = {DateTimeType.class}, order = 9, min = 0, max = 1) @Description(shortDefinition="Dispense processing time", formalDefinition="The time when the dispensed product was packaged and reviewed." ) protected DateTimeType whenPrepared; /** * The time the dispensed product was provided to the patient or their representative. */ - @Child(name="whenHandedOver", type={DateTimeType.class}, order=10, min=0, max=1) + @Child(name = "whenHandedOver", type = {DateTimeType.class}, order = 10, min = 0, max = 1) @Description(shortDefinition="Handover time", formalDefinition="The time the dispensed product was provided to the patient or their representative." ) protected DateTimeType whenHandedOver; /** * Identification of the facility/location where the medication was shipped to, as part of the dispense event. */ - @Child(name="destination", type={Location.class}, order=11, min=0, max=1) + @Child(name = "destination", type = {Location.class}, order = 11, min = 0, max = 1) @Description(shortDefinition="Where the medication was sent", formalDefinition="Identification of the facility/location where the medication was shipped to, as part of the dispense event." ) protected Reference destination; @@ -863,7 +869,7 @@ public class MedicationDispense extends DomainResource { /** * Identifies the person who picked up the medication. This will usually be a patient or their carer, but some cases exist where it can be a healthcare professional. */ - @Child(name="receiver", type={Patient.class, Practitioner.class}, order=12, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "receiver", type = {Patient.class, Practitioner.class}, order = 12, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Who collected the medication", formalDefinition="Identifies the person who picked up the medication. This will usually be a patient or their carer, but some cases exist where it can be a healthcare professional." ) protected List receiver; /** @@ -875,21 +881,21 @@ public class MedicationDispense extends DomainResource { /** * Extra information about the dispense that could not be conveyed in the other attributes. */ - @Child(name="note", type={StringType.class}, order=13, min=0, max=1) + @Child(name = "note", type = {StringType.class}, order = 13, min = 0, max = 1) @Description(shortDefinition="Information about the dispense", formalDefinition="Extra information about the dispense that could not be conveyed in the other attributes." ) protected StringType note; /** * Indicates how the medication is to be used by the patient. */ - @Child(name="dosageInstruction", type={}, order=14, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "dosageInstruction", type = {}, order = 14, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Medicine administration instructions to the patient/carer", formalDefinition="Indicates how the medication is to be used by the patient." ) protected List dosageInstruction; /** * Indicates whether or not substitution was made as part of the dispense. In some cases substitution will be expected but doesn't happen, in other cases substitution is not expected but does happen. This block explains what substitition did or did not happen and why. */ - @Child(name="substitution", type={}, order=15, min=0, max=1) + @Child(name = "substitution", type = {}, order = 15, min = 0, max = 1) @Description(shortDefinition="Deals with substitution of one medicine for another", formalDefinition="Indicates whether or not substitution was made as part of the dispense. In some cases substitution will be expected but doesn't happen, in other cases substitution is not expected but does happen. This block explains what substitition did or did not happen and why." ) protected MedicationDispenseSubstitutionComponent substitution; @@ -1611,28 +1617,28 @@ public class MedicationDispense extends DomainResource { return ResourceType.MedicationDispense; } - @SearchParamDefinition(name="dispenser", path="MedicationDispense.dispenser", description="Return all dispenses performed by a specific indiividual", type="reference" ) - public static final String SP_DISPENSER = "dispenser"; - @SearchParamDefinition(name="identifier", path="MedicationDispense.identifier", description="Return dispenses with this external identity", type="token" ) - public static final String SP_IDENTIFIER = "identifier"; + @SearchParamDefinition(name = "dispenser", path = "MedicationDispense.dispenser", description = "Return all dispenses performed by a specific indiividual", type = "reference") + public static final String SP_DISPENSER = "dispenser"; + @SearchParamDefinition(name = "identifier", path = "MedicationDispense.identifier", description = "Return dispenses with this external identity", type = "token") + public static final String SP_IDENTIFIER = "identifier"; @SearchParamDefinition(name="prescription", path="MedicationDispense.authorizingPrescription", description="The identity of a prescription to list dispenses from", type="reference" ) public static final String SP_PRESCRIPTION = "prescription"; - @SearchParamDefinition(name="patient", path="MedicationDispense.patient", description="The identity of a patient to list dispenses for", type="reference" ) - public static final String SP_PATIENT = "patient"; - @SearchParamDefinition(name="destination", path="MedicationDispense.destination", description="Return dispenses that should be sent to a secific destination", type="reference" ) - public static final String SP_DESTINATION = "destination"; - @SearchParamDefinition(name="medication", path="MedicationDispense.medication", description="Returns dispenses of this medicine", type="reference" ) - public static final String SP_MEDICATION = "medication"; + @SearchParamDefinition(name = "patient", path = "MedicationDispense.patient", description = "The identity of a patient to list dispenses for", type = "reference") + public static final String SP_PATIENT = "patient"; + @SearchParamDefinition(name = "destination", path = "MedicationDispense.destination", description = "Return dispenses that should be sent to a secific destination", type = "reference") + public static final String SP_DESTINATION = "destination"; + @SearchParamDefinition(name = "medication", path = "MedicationDispense.medication", description = "Returns dispenses of this medicine", type = "reference") + public static final String SP_MEDICATION = "medication"; @SearchParamDefinition(name="responsibleparty", path="MedicationDispense.substitution.responsibleParty", description="Return all dispenses with the specified responsible party", type="reference" ) public static final String SP_RESPONSIBLEPARTY = "responsibleparty"; @SearchParamDefinition(name="type", path="MedicationDispense.type", description="Return all dispenses of a specific type", type="token" ) public static final String SP_TYPE = "type"; @SearchParamDefinition(name="whenhandedover", path="MedicationDispense.whenHandedOver", description="Date when medication handed over to patient (outpatient setting), or supplied to ward or clinic (inpatient setting)", type="date" ) public static final String SP_WHENHANDEDOVER = "whenhandedover"; - @SearchParamDefinition(name="whenprepared", path="MedicationDispense.whenPrepared", description="Date when medication prepared", type="date" ) - public static final String SP_WHENPREPARED = "whenprepared"; - @SearchParamDefinition(name="status", path="MedicationDispense.status", description="Status of the dispense", type="token" ) - public static final String SP_STATUS = "status"; + @SearchParamDefinition(name = "whenprepared", path = "MedicationDispense.whenPrepared", description = "Date when medication prepared", type = "date") + public static final String SP_WHENPREPARED = "whenprepared"; + @SearchParamDefinition(name = "status", path = "MedicationDispense.status", description = "Status of the dispense", type = "token") + public static final String SP_STATUS = "status"; } diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/MedicationPrescription.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/MedicationPrescription.java index 9267677f5be..91942e7980c 100644 --- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/MedicationPrescription.java +++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/MedicationPrescription.java @@ -232,7 +232,9 @@ public class MedicationPrescription extends DomainResource { protected CodeableConcept route; /** - * A coded value indicating the method by which the medication is introduced into or onto the body. Most commonly used for injections. Examples: Slow Push; Deep IV. Terminologies used often pre-coordinate this term with the route and or form of administration. + * A coded value indicating the method by which the medication is introduced into or onto the body. Most commonly used for injections. Examples: Slow Push; Deep IV. + +Terminologies used often pre-coordinate this term with the route and or form of administration. */ @Child(name="method", type={CodeableConcept.class}, order=7, min=0, max=1) @Description(shortDefinition="Technique for administering medication", formalDefinition="A coded value indicating the method by which the medication is introduced into or onto the body. Most commonly used for injections. Examples: Slow Push; Deep IV.\r\rTerminologies used often pre-coordinate this term with the route and or form of administration." ) @@ -470,7 +472,9 @@ public class MedicationPrescription extends DomainResource { } /** - * @return {@link #method} (A coded value indicating the method by which the medication is introduced into or onto the body. Most commonly used for injections. Examples: Slow Push; Deep IV. Terminologies used often pre-coordinate this term with the route and or form of administration.) + * @return {@link #method} (A coded value indicating the method by which the medication is introduced into or onto the body. Most commonly used for injections. Examples: Slow Push; Deep IV. + +Terminologies used often pre-coordinate this term with the route and or form of administration.) */ public CodeableConcept getMethod() { if (this.method == null) @@ -486,7 +490,9 @@ public class MedicationPrescription extends DomainResource { } /** - * @param value {@link #method} (A coded value indicating the method by which the medication is introduced into or onto the body. Most commonly used for injections. Examples: Slow Push; Deep IV. Terminologies used often pre-coordinate this term with the route and or form of administration.) + * @param value {@link #method} (A coded value indicating the method by which the medication is introduced into or onto the body. Most commonly used for injections. Examples: Slow Push; Deep IV. + +Terminologies used often pre-coordinate this term with the route and or form of administration.) */ public MedicationPrescriptionDosageInstructionComponent setMethod(CodeableConcept value) { this.method = value; @@ -656,14 +662,17 @@ public class MedicationPrescription extends DomainResource { protected Medication medicationTarget; /** - * Design Comments: This indicates the validity period of a prescription (stale dating the Prescription) It reflects the prescriber perspective for the validity of the prescription. Dispenses must not be made against the prescription outside of this period. The lower-bound of the Dispensing Window signifies the earliest date that the prescription can be filled for the first time. If an upper-bound is not specified then the Prescription is open-ended or will default to a stale-date based on regulations. Rationale: Indicates when the Prescription becomes valid, and when it ceases to be a dispensable Prescription. + * Design Comments: This indicates the validity period of a prescription (stale dating the Prescription) +It reflects the prescriber perspective for the validity of the prescription. Dispenses must not be made against the prescription outside of this period. The lower-bound of the Dispensing Window signifies the earliest date that the prescription can be filled for the first time. If an upper-bound is not specified then the Prescription is open-ended or will default to a stale-date based on regulations. +Rationale: Indicates when the Prescription becomes valid, and when it ceases to be a dispensable Prescription. */ @Child(name="validityPeriod", type={Period.class}, order=2, min=0, max=1) @Description(shortDefinition="Time period supply is authorized for", formalDefinition="Design Comments: This indicates the validity period of a prescription (stale dating the Prescription) \rIt reflects the prescriber perspective for the validity of the prescription. Dispenses must not be made against the prescription outside of this period. The lower-bound of the Dispensing Window signifies the earliest date that the prescription can be filled for the first time. If an upper-bound is not specified then the Prescription is open-ended or will default to a stale-date based on regulations. \rRationale: Indicates when the Prescription becomes valid, and when it ceases to be a dispensable Prescription." ) protected Period validityPeriod; /** - * An integer indicating the number of repeats of the Dispense. UsageNotes: For example, the number of times the prescribed quantity is to be supplied including the initial standard fill. + * An integer indicating the number of repeats of the Dispense. +UsageNotes: For example, the number of times the prescribed quantity is to be supplied including the initial standard fill. */ @Child(name="numberOfRepeatsAllowed", type={IntegerType.class}, order=3, min=0, max=1) @Description(shortDefinition="# of refills authorized", formalDefinition="An integer indicating the number of repeats of the Dispense. \rUsageNotes: For example, the number of times the prescribed quantity is to be supplied including the initial standard fill." ) @@ -677,7 +686,8 @@ public class MedicationPrescription extends DomainResource { protected Quantity quantity; /** - * Identifies the period time over which the supplied product is expected to be used, or the length of time the dispense is expected to last. In some situations, this attribute may be used instead of quantity to identify the amount supplied by how long it is expected to last, rather than the physical quantity issued, e.g. 90 days supply of medication (based on an ordered dosage) When possible, it is always better to specify quantity, as this tends to be more precise. expectedSupplyDuration will always be an estimate that can be influenced by external factors. + * Identifies the period time over which the supplied product is expected to be used, or the length of time the dispense is expected to last. +In some situations, this attribute may be used instead of quantity to identify the amount supplied by how long it is expected to last, rather than the physical quantity issued, e.g. 90 days supply of medication (based on an ordered dosage) When possible, it is always better to specify quantity, as this tends to be more precise. expectedSupplyDuration will always be an estimate that can be influenced by external factors. */ @Child(name="expectedSupplyDuration", type={Duration.class}, order=5, min=0, max=1) @Description(shortDefinition="Days supply per dispense", formalDefinition="Identifies the period time over which the supplied product is expected to be used, or the length of time the dispense is expected to last. \rIn some situations, this attribute may be used instead of quantity to identify the amount supplied by how long it is expected to last, rather than the physical quantity issued, e.g. 90 days supply of medication (based on an ordered dosage) When possible, it is always better to specify quantity, as this tends to be more precise. expectedSupplyDuration will always be an estimate that can be influenced by external factors." ) @@ -734,7 +744,9 @@ public class MedicationPrescription extends DomainResource { } /** - * @return {@link #validityPeriod} (Design Comments: This indicates the validity period of a prescription (stale dating the Prescription) It reflects the prescriber perspective for the validity of the prescription. Dispenses must not be made against the prescription outside of this period. The lower-bound of the Dispensing Window signifies the earliest date that the prescription can be filled for the first time. If an upper-bound is not specified then the Prescription is open-ended or will default to a stale-date based on regulations. Rationale: Indicates when the Prescription becomes valid, and when it ceases to be a dispensable Prescription.) + * @return {@link #validityPeriod} (Design Comments: This indicates the validity period of a prescription (stale dating the Prescription) +It reflects the prescriber perspective for the validity of the prescription. Dispenses must not be made against the prescription outside of this period. The lower-bound of the Dispensing Window signifies the earliest date that the prescription can be filled for the first time. If an upper-bound is not specified then the Prescription is open-ended or will default to a stale-date based on regulations. +Rationale: Indicates when the Prescription becomes valid, and when it ceases to be a dispensable Prescription.) */ public Period getValidityPeriod() { if (this.validityPeriod == null) @@ -750,7 +762,9 @@ public class MedicationPrescription extends DomainResource { } /** - * @param value {@link #validityPeriod} (Design Comments: This indicates the validity period of a prescription (stale dating the Prescription) It reflects the prescriber perspective for the validity of the prescription. Dispenses must not be made against the prescription outside of this period. The lower-bound of the Dispensing Window signifies the earliest date that the prescription can be filled for the first time. If an upper-bound is not specified then the Prescription is open-ended or will default to a stale-date based on regulations. Rationale: Indicates when the Prescription becomes valid, and when it ceases to be a dispensable Prescription.) + * @param value {@link #validityPeriod} (Design Comments: This indicates the validity period of a prescription (stale dating the Prescription) +It reflects the prescriber perspective for the validity of the prescription. Dispenses must not be made against the prescription outside of this period. The lower-bound of the Dispensing Window signifies the earliest date that the prescription can be filled for the first time. If an upper-bound is not specified then the Prescription is open-ended or will default to a stale-date based on regulations. +Rationale: Indicates when the Prescription becomes valid, and when it ceases to be a dispensable Prescription.) */ public MedicationPrescriptionDispenseComponent setValidityPeriod(Period value) { this.validityPeriod = value; @@ -758,7 +772,8 @@ public class MedicationPrescription extends DomainResource { } /** - * @return {@link #numberOfRepeatsAllowed} (An integer indicating the number of repeats of the Dispense. UsageNotes: For example, the number of times the prescribed quantity is to be supplied including the initial standard fill.). This is the underlying object with id, value and extensions. The accessor "getNumberOfRepeatsAllowed" gives direct access to the value + * @return {@link #numberOfRepeatsAllowed} (An integer indicating the number of repeats of the Dispense. +UsageNotes: For example, the number of times the prescribed quantity is to be supplied including the initial standard fill.). This is the underlying object with id, value and extensions. The accessor "getNumberOfRepeatsAllowed" gives direct access to the value */ public IntegerType getNumberOfRepeatsAllowedElement() { if (this.numberOfRepeatsAllowed == null) @@ -778,7 +793,8 @@ public class MedicationPrescription extends DomainResource { } /** - * @param value {@link #numberOfRepeatsAllowed} (An integer indicating the number of repeats of the Dispense. UsageNotes: For example, the number of times the prescribed quantity is to be supplied including the initial standard fill.). This is the underlying object with id, value and extensions. The accessor "getNumberOfRepeatsAllowed" gives direct access to the value + * @param value {@link #numberOfRepeatsAllowed} (An integer indicating the number of repeats of the Dispense. +UsageNotes: For example, the number of times the prescribed quantity is to be supplied including the initial standard fill.). This is the underlying object with id, value and extensions. The accessor "getNumberOfRepeatsAllowed" gives direct access to the value */ public MedicationPrescriptionDispenseComponent setNumberOfRepeatsAllowedElement(IntegerType value) { this.numberOfRepeatsAllowed = value; @@ -786,14 +802,16 @@ public class MedicationPrescription extends DomainResource { } /** - * @return An integer indicating the number of repeats of the Dispense. UsageNotes: For example, the number of times the prescribed quantity is to be supplied including the initial standard fill. + * @return An integer indicating the number of repeats of the Dispense. +UsageNotes: For example, the number of times the prescribed quantity is to be supplied including the initial standard fill. */ public int getNumberOfRepeatsAllowed() { return this.numberOfRepeatsAllowed == null ? 0 : this.numberOfRepeatsAllowed.getValue(); } /** - * @param value An integer indicating the number of repeats of the Dispense. UsageNotes: For example, the number of times the prescribed quantity is to be supplied including the initial standard fill. + * @param value An integer indicating the number of repeats of the Dispense. +UsageNotes: For example, the number of times the prescribed quantity is to be supplied including the initial standard fill. */ public MedicationPrescriptionDispenseComponent setNumberOfRepeatsAllowed(int value) { if (this.numberOfRepeatsAllowed == null) @@ -827,7 +845,8 @@ public class MedicationPrescription extends DomainResource { } /** - * @return {@link #expectedSupplyDuration} (Identifies the period time over which the supplied product is expected to be used, or the length of time the dispense is expected to last. In some situations, this attribute may be used instead of quantity to identify the amount supplied by how long it is expected to last, rather than the physical quantity issued, e.g. 90 days supply of medication (based on an ordered dosage) When possible, it is always better to specify quantity, as this tends to be more precise. expectedSupplyDuration will always be an estimate that can be influenced by external factors.) + * @return {@link #expectedSupplyDuration} (Identifies the period time over which the supplied product is expected to be used, or the length of time the dispense is expected to last. +In some situations, this attribute may be used instead of quantity to identify the amount supplied by how long it is expected to last, rather than the physical quantity issued, e.g. 90 days supply of medication (based on an ordered dosage) When possible, it is always better to specify quantity, as this tends to be more precise. expectedSupplyDuration will always be an estimate that can be influenced by external factors.) */ public Duration getExpectedSupplyDuration() { if (this.expectedSupplyDuration == null) @@ -843,7 +862,8 @@ public class MedicationPrescription extends DomainResource { } /** - * @param value {@link #expectedSupplyDuration} (Identifies the period time over which the supplied product is expected to be used, or the length of time the dispense is expected to last. In some situations, this attribute may be used instead of quantity to identify the amount supplied by how long it is expected to last, rather than the physical quantity issued, e.g. 90 days supply of medication (based on an ordered dosage) When possible, it is always better to specify quantity, as this tends to be more precise. expectedSupplyDuration will always be an estimate that can be influenced by external factors.) + * @param value {@link #expectedSupplyDuration} (Identifies the period time over which the supplied product is expected to be used, or the length of time the dispense is expected to last. +In some situations, this attribute may be used instead of quantity to identify the amount supplied by how long it is expected to last, rather than the physical quantity issued, e.g. 90 days supply of medication (based on an ordered dosage) When possible, it is always better to specify quantity, as this tends to be more precise. expectedSupplyDuration will always be an estimate that can be influenced by external factors.) */ public MedicationPrescriptionDispenseComponent setExpectedSupplyDuration(Duration value) { this.expectedSupplyDuration = value; @@ -1019,28 +1039,28 @@ public class MedicationPrescription extends DomainResource { /** * External identifier - one that would be used by another non-FHIR system - for example a re-imbursement system might issue its own id for each prescription that is created. This is particularly important where FHIR only provides part of an erntire workflow process where records have to be tracked through an entire system. */ - @Child(name="identifier", type={Identifier.class}, order=0, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "identifier", type = {Identifier.class}, order = 0, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="External identifier", formalDefinition="External identifier - one that would be used by another non-FHIR system - for example a re-imbursement system might issue its own id for each prescription that is created. This is particularly important where FHIR only provides part of an erntire workflow process where records have to be tracked through an entire system." ) protected List identifier; /** * The date (and perhaps time) when the prescription was written. */ - @Child(name="dateWritten", type={DateTimeType.class}, order=1, min=0, max=1) + @Child(name = "dateWritten", type = {DateTimeType.class}, order = 1, min = 0, max = 1) @Description(shortDefinition="When prescription was authorized", formalDefinition="The date (and perhaps time) when the prescription was written." ) protected DateTimeType dateWritten; /** * A code specifying the state of the order. Generally this will be active or completed state. */ - @Child(name="status", type={CodeType.class}, order=2, min=0, max=1) + @Child(name = "status", type = {CodeType.class}, order = 2, min = 0, max = 1) @Description(shortDefinition="active | on-hold | completed | entered-in-error | stopped | superceded | draft", formalDefinition="A code specifying the state of the order. Generally this will be active or completed state." ) protected Enumeration status; /** * A link to a resource representing the person to whom the medication will be given. */ - @Child(name="patient", type={Patient.class}, order=3, min=0, max=1) + @Child(name = "patient", type = {Patient.class}, order = 3, min = 0, max = 1) @Description(shortDefinition="Who prescription is for", formalDefinition="A link to a resource representing the person to whom the medication will be given." ) protected Reference patient; @@ -1052,7 +1072,7 @@ public class MedicationPrescription extends DomainResource { /** * The healthcare professional responsible for authorizing the prescription. */ - @Child(name="prescriber", type={Practitioner.class}, order=4, min=0, max=1) + @Child(name = "prescriber", type = {Practitioner.class}, order = 4, min = 0, max = 1) @Description(shortDefinition="Who ordered the medication(s)", formalDefinition="The healthcare professional responsible for authorizing the prescription." ) protected Reference prescriber; @@ -1064,7 +1084,7 @@ public class MedicationPrescription extends DomainResource { /** * A link to a resource that identifies the particular occurrence of contact between patient and health care provider. */ - @Child(name="encounter", type={Encounter.class}, order=5, min=0, max=1) + @Child(name = "encounter", type = {Encounter.class}, order = 5, min = 0, max = 1) @Description(shortDefinition="Created during encounter / admission / stay", formalDefinition="A link to a resource that identifies the particular occurrence of contact between patient and health care provider." ) protected Reference encounter; @@ -1076,21 +1096,21 @@ public class MedicationPrescription extends DomainResource { /** * Can be the reason or the indication for writing the prescription. */ - @Child(name="reason", type={CodeableConcept.class, Condition.class}, order=6, min=0, max=1) + @Child(name = "reason", type = {CodeableConcept.class, Condition.class}, order = 6, min = 0, max = 1) @Description(shortDefinition="Reason or indication for writing the prescription", formalDefinition="Can be the reason or the indication for writing the prescription." ) protected Type reason; /** * Extra information about the prescription that could not be conveyed by the other attributes. */ - @Child(name="note", type={StringType.class}, order=7, min=0, max=1) + @Child(name = "note", type = {StringType.class}, order = 7, min = 0, max = 1) @Description(shortDefinition="Information about the prescription", formalDefinition="Extra information about the prescription that could not be conveyed by the other attributes." ) protected StringType note; /** * Identifies the medication being administered. This is a link to a resource that represents the medication which may be the details of the medication or simply an attribute carrying a code that identifies the medication from a known list of medications. */ - @Child(name="medication", type={Medication.class}, order=8, min=0, max=1) + @Child(name = "medication", type = {Medication.class}, order = 8, min = 0, max = 1) @Description(shortDefinition="Medication to be taken", formalDefinition="Identifies the medication being administered. This is a link to a resource that represents the medication which may be the details of the medication or simply an attribute carrying a code that identifies the medication from a known list of medications." ) protected Reference medication; @@ -1102,21 +1122,21 @@ public class MedicationPrescription extends DomainResource { /** * Indicates how the medication is to be used by the patient. */ - @Child(name="dosageInstruction", type={}, order=9, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "dosageInstruction", type = {}, order = 9, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="How medication should be taken", formalDefinition="Indicates how the medication is to be used by the patient." ) protected List dosageInstruction; /** * Deals with details of the dispense part of the order. */ - @Child(name="dispense", type={}, order=10, min=0, max=1) + @Child(name = "dispense", type = {}, order = 10, min = 0, max = 1) @Description(shortDefinition="Medication supply authorization", formalDefinition="Deals with details of the dispense part of the order." ) protected MedicationPrescriptionDispenseComponent dispense; /** * Indicates whether or not substitution can or should be part of the dispense. In some cases substitution must happen, in other cases substitution must not happen, and in others it does not matter. This block explains the prescriber's intent. If nothing is specified substitution may be done. */ - @Child(name="substitution", type={}, order=11, min=0, max=1) + @Child(name = "substitution", type = {}, order = 11, min = 0, max = 1) @Description(shortDefinition="Any restrictions on medication substitution?", formalDefinition="Indicates whether or not substitution can or should be part of the dispense. In some cases substitution must happen, in other cases substitution must not happen, and in others it does not matter. This block explains the prescriber's intent. If nothing is specified substitution may be done." ) protected MedicationPrescriptionSubstitutionComponent substitution; @@ -1679,18 +1699,18 @@ public class MedicationPrescription extends DomainResource { return ResourceType.MedicationPrescription; } - @SearchParamDefinition(name="identifier", path="MedicationPrescription.identifier", description="Return prescriptions with this external identity", type="token" ) - public static final String SP_IDENTIFIER = "identifier"; + @SearchParamDefinition(name = "identifier", path = "MedicationPrescription.identifier", description = "Return prescriptions with this external identity", type = "token") + public static final String SP_IDENTIFIER = "identifier"; @SearchParamDefinition(name="patient", path="MedicationPrescription.patient", description="The identity of a patient to list dispenses for", type="reference" ) public static final String SP_PATIENT = "patient"; - @SearchParamDefinition(name="datewritten", path="MedicationPrescription.dateWritten", description="Return prescriptions written on this date", type="date" ) - public static final String SP_DATEWRITTEN = "datewritten"; - @SearchParamDefinition(name="medication", path="MedicationPrescription.medication", description="Code for medicine or text in medicine name", type="reference" ) - public static final String SP_MEDICATION = "medication"; + @SearchParamDefinition(name = "datewritten", path = "MedicationPrescription.dateWritten", description = "Return prescriptions written on this date", type = "date") + public static final String SP_DATEWRITTEN = "datewritten"; + @SearchParamDefinition(name = "medication", path = "MedicationPrescription.medication", description = "Code for medicine or text in medicine name", type = "reference") + public static final String SP_MEDICATION = "medication"; @SearchParamDefinition(name="encounter", path="MedicationPrescription.encounter", description="Return prescriptions with this encounter identity", type="reference" ) public static final String SP_ENCOUNTER = "encounter"; - @SearchParamDefinition(name="status", path="MedicationPrescription.status", description="Status of the prescription", type="token" ) - public static final String SP_STATUS = "status"; + @SearchParamDefinition(name = "status", path = "MedicationPrescription.status", description = "Status of the prescription", type = "token") + public static final String SP_STATUS = "status"; } diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/MedicationStatement.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/MedicationStatement.java index d5537565ddd..e7e57dacbad 100644 --- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/MedicationStatement.java +++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/MedicationStatement.java @@ -169,7 +169,9 @@ public class MedicationStatement extends DomainResource { protected CodeableConcept route; /** - * A coded value indicating the method by which the medication is introduced into or onto the body. Most commonly used for injections. Examples: Slow Push; Deep IV. Terminologies used often pre-coordinate this term with the route and or form of administration. + * A coded value indicating the method by which the medication is introduced into or onto the body. Most commonly used for injections. Examples: Slow Push; Deep IV. + +Terminologies used often pre-coordinate this term with the route and or form of administration. */ @Child(name="method", type={CodeableConcept.class}, order=6, min=0, max=1) @Description(shortDefinition="Technique used to administer medication", formalDefinition="A coded value indicating the method by which the medication is introduced into or onto the body. Most commonly used for injections. Examples: Slow Push; Deep IV.\r\rTerminologies used often pre-coordinate this term with the route and or form of administration." ) @@ -361,7 +363,9 @@ public class MedicationStatement extends DomainResource { } /** - * @return {@link #method} (A coded value indicating the method by which the medication is introduced into or onto the body. Most commonly used for injections. Examples: Slow Push; Deep IV. Terminologies used often pre-coordinate this term with the route and or form of administration.) + * @return {@link #method} (A coded value indicating the method by which the medication is introduced into or onto the body. Most commonly used for injections. Examples: Slow Push; Deep IV. + +Terminologies used often pre-coordinate this term with the route and or form of administration.) */ public CodeableConcept getMethod() { if (this.method == null) @@ -377,7 +381,9 @@ public class MedicationStatement extends DomainResource { } /** - * @param value {@link #method} (A coded value indicating the method by which the medication is introduced into or onto the body. Most commonly used for injections. Examples: Slow Push; Deep IV. Terminologies used often pre-coordinate this term with the route and or form of administration.) + * @param value {@link #method} (A coded value indicating the method by which the medication is introduced into or onto the body. Most commonly used for injections. Examples: Slow Push; Deep IV. + +Terminologies used often pre-coordinate this term with the route and or form of administration.) */ public MedicationStatementDosageComponent setMethod(CodeableConcept value) { this.method = value; @@ -519,14 +525,14 @@ public class MedicationStatement extends DomainResource { /** * External identifier - FHIR will generate its own internal IDs (probably URLs) which do not need to be explicitly managed by the resource. The identifier here is one that would be used by another non-FHIR system - for example an automated medication pump would provide a record each time it operated; an administration while the patient was off the ward might be made with a different system and entered after the event. Particularly important if these records have to be updated. */ - @Child(name="identifier", type={Identifier.class}, order=0, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "identifier", type = {Identifier.class}, order = 0, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="External Identifier", formalDefinition="External identifier - FHIR will generate its own internal IDs (probably URLs) which do not need to be explicitly managed by the resource. The identifier here is one that would be used by another non-FHIR system - for example an automated medication pump would provide a record each time it operated; an administration while the patient was off the ward might be made with a different system and entered after the event. Particularly important if these records have to be updated." ) protected List identifier; /** * The person or animal who is /was taking the medication. */ - @Child(name="patient", type={Patient.class}, order=1, min=0, max=1) + @Child(name = "patient", type = {Patient.class}, order = 1, min = 0, max = 1) @Description(shortDefinition="Who was/is taking medication", formalDefinition="The person or animal who is /was taking the medication." ) protected Reference patient; @@ -538,7 +544,7 @@ public class MedicationStatement extends DomainResource { /** * The person who provided the information about the taking of this medication. */ - @Child(name="informationSource", type={Patient.class, Practitioner.class, RelatedPerson.class}, order=2, min=0, max=1) + @Child(name = "informationSource", type = {Patient.class, Practitioner.class, RelatedPerson.class}, order = 2, min = 0, max = 1) @Description(shortDefinition="", formalDefinition="The person who provided the information about the taking of this medication." ) protected Reference informationSource; @@ -550,56 +556,56 @@ public class MedicationStatement extends DomainResource { /** * The date when the medication statement was asserted by the information source. */ - @Child(name="dateAsserted", type={DateTimeType.class}, order=3, min=0, max=1) + @Child(name = "dateAsserted", type = {DateTimeType.class}, order = 3, min = 0, max = 1) @Description(shortDefinition="When the statement was asserted?", formalDefinition="The date when the medication statement was asserted by the information source." ) protected DateTimeType dateAsserted; /** * A code specifying the state of the statement. Generally this will be in-progress or completed state. */ - @Child(name="status", type={CodeType.class}, order=4, min=1, max=1) + @Child(name = "status", type = {CodeType.class}, order = 4, min = 1, max = 1) @Description(shortDefinition="in-progress | completed | entered-in-error", formalDefinition="A code specifying the state of the statement. Generally this will be in-progress or completed state." ) protected Enumeration status; /** * Set this to true if the record is saying that the medication was NOT taken. */ - @Child(name="wasNotGiven", type={BooleanType.class}, order=5, min=0, max=1) + @Child(name = "wasNotGiven", type = {BooleanType.class}, order = 5, min = 0, max = 1) @Description(shortDefinition="True if medication is/was not being taken", formalDefinition="Set this to true if the record is saying that the medication was NOT taken." ) protected BooleanType wasNotGiven; /** * A code indicating why the medication was not taken. */ - @Child(name="reasonNotGiven", type={CodeableConcept.class}, order=6, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "reasonNotGiven", type = {CodeableConcept.class}, order = 6, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="True if asserting medication was not given", formalDefinition="A code indicating why the medication was not taken." ) protected List reasonNotGiven; /** * A reason for why the medication is being/was taken. */ - @Child(name="reasonForUse", type={CodeableConcept.class, Condition.class}, order=7, min=0, max=1) + @Child(name = "reasonForUse", type = {CodeableConcept.class, Condition.class}, order = 7, min = 0, max = 1) @Description(shortDefinition="", formalDefinition="A reason for why the medication is being/was taken." ) protected Type reasonForUse; /** * The interval of time during which it is being asserted that the patient was taking the medication (or was not taking, when the 'wasNotGiven' attribute is true). */ - @Child(name="effective", type={DateTimeType.class, Period.class}, order=8, min=0, max=1) + @Child(name = "effective", type = {DateTimeType.class, Period.class}, order = 8, min = 0, max = 1) @Description(shortDefinition="Over what period was medication consumed?", formalDefinition="The interval of time during which it is being asserted that the patient was taking the medication (or was not taking, when the 'wasNotGiven' attribute is true)." ) protected Type effective; /** * Provides extra information about the medication statement that is not conveyed by the other attributes. */ - @Child(name="note", type={StringType.class}, order=9, min=0, max=1) + @Child(name = "note", type = {StringType.class}, order = 9, min = 0, max = 1) @Description(shortDefinition="Further information about the statement", formalDefinition="Provides extra information about the medication statement that is not conveyed by the other attributes." ) protected StringType note; /** * Identifies the medication being administered. This is either a link to a resource representing the details of the medication or a simple attribute carrying a code that identifies the medication from a known list of medications. */ - @Child(name="medication", type={Medication.class}, order=10, min=0, max=1) + @Child(name = "medication", type = {Medication.class}, order = 10, min = 0, max = 1) @Description(shortDefinition="What medication was taken?", formalDefinition="Identifies the medication being administered. This is either a link to a resource representing the details of the medication or a simple attribute carrying a code that identifies the medication from a known list of medications." ) protected Reference medication; @@ -611,7 +617,7 @@ public class MedicationStatement extends DomainResource { /** * Indicates how the medication is/was used by the patient. */ - @Child(name="dosage", type={}, order=11, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "dosage", type = {}, order = 11, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Details of how medication was taken", formalDefinition="Indicates how the medication is/was used by the patient." ) protected List dosage; @@ -1196,14 +1202,14 @@ public class MedicationStatement extends DomainResource { @SearchParamDefinition(name="identifier", path="MedicationStatement.identifier", description="Return administrations with this external identity", type="token" ) public static final String SP_IDENTIFIER = "identifier"; - @SearchParamDefinition(name="patient", path="MedicationStatement.patient", description="The identity of a patient to list administrations for", type="reference" ) - public static final String SP_PATIENT = "patient"; - @SearchParamDefinition(name="medication", path="MedicationStatement.medication", description="Code for medicine or text in medicine name", type="reference" ) - public static final String SP_MEDICATION = "medication"; + @SearchParamDefinition(name = "patient", path = "MedicationStatement.patient", description = "The identity of a patient to list administrations for", type = "reference") + public static final String SP_PATIENT = "patient"; + @SearchParamDefinition(name = "medication", path = "MedicationStatement.medication", description = "Code for medicine or text in medicine name", type = "reference") + public static final String SP_MEDICATION = "medication"; @SearchParamDefinition(name="effectivedate", path="MedicationStatement.effective[x]", description="Date when patient was taking (or not taking) the medication", type="date" ) public static final String SP_EFFECTIVEDATE = "effectivedate"; - @SearchParamDefinition(name="status", path="MedicationStatement.status", description="Return statements that match the given status", type="string" ) - public static final String SP_STATUS = "status"; + @SearchParamDefinition(name = "status", path = "MedicationStatement.status", description = "Return statements that match the given status", type = "string") + public static final String SP_STATUS = "status"; } diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/MessageHeader.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/MessageHeader.java index c86c0514a9f..808d79de2df 100644 --- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/MessageHeader.java +++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/MessageHeader.java @@ -887,49 +887,49 @@ public class MessageHeader extends DomainResource { /** * The identifier of this message. */ - @Child(name="identifier", type={IdType.class}, order=0, min=1, max=1) + @Child(name = "identifier", type = {IdType.class}, order = 0, min = 1, max = 1) @Description(shortDefinition="Id of this message", formalDefinition="The identifier of this message." ) protected IdType identifier; /** * The time that the message was sent. */ - @Child(name="timestamp", type={InstantType.class}, order=1, min=1, max=1) + @Child(name = "timestamp", type = {InstantType.class}, order = 1, min = 1, max = 1) @Description(shortDefinition="Time that the message was sent", formalDefinition="The time that the message was sent." ) protected InstantType timestamp; /** * Code that identifies the event this message represents and connects it with its definition. Events defined as part of the FHIR specification have the system value "http://hl7.org/fhir/message-type". */ - @Child(name="event", type={Coding.class}, order=2, min=1, max=1) + @Child(name = "event", type = {Coding.class}, order = 2, min = 1, max = 1) @Description(shortDefinition="Code for the event this message represents", formalDefinition="Code that identifies the event this message represents and connects it with its definition. Events defined as part of the FHIR specification have the system value 'http://hl7.org/fhir/message-type'." ) protected Coding event; /** * Information about the message that this message is a response to. Only present if this message is a response. */ - @Child(name="response", type={}, order=3, min=0, max=1) + @Child(name = "response", type = {}, order = 3, min = 0, max = 1) @Description(shortDefinition="If this is a reply to prior message", formalDefinition="Information about the message that this message is a response to. Only present if this message is a response." ) protected MessageHeaderResponseComponent response; /** * The source application from which this message originated. */ - @Child(name="source", type={}, order=4, min=1, max=1) + @Child(name = "source", type = {}, order = 4, min = 1, max = 1) @Description(shortDefinition="Message Source Application", formalDefinition="The source application from which this message originated." ) protected MessageSourceComponent source; /** * The destination application which the message is intended for. */ - @Child(name="destination", type={}, order=5, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "destination", type = {}, order = 5, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Message Destination Application(s)", formalDefinition="The destination application which the message is intended for." ) protected List destination; /** * The person or device that performed the data entry leading to this message. Where there is more than one candidate, pick the most proximal to the message. Can provide other enterers in extensions. */ - @Child(name="enterer", type={Practitioner.class}, order=6, min=0, max=1) + @Child(name = "enterer", type = {Practitioner.class}, order = 6, min = 0, max = 1) @Description(shortDefinition="The source of the data entry", formalDefinition="The person or device that performed the data entry leading to this message. Where there is more than one candidate, pick the most proximal to the message. Can provide other enterers in extensions." ) protected Reference enterer; @@ -941,7 +941,7 @@ public class MessageHeader extends DomainResource { /** * The logical author of the message - the person or device that decided the described event should happen. Where there is more than one candidate, pick the most proximal to the MessageHeader. Can provide other authors in extensions. */ - @Child(name="author", type={Practitioner.class}, order=7, min=0, max=1) + @Child(name = "author", type = {Practitioner.class}, order = 7, min = 0, max = 1) @Description(shortDefinition="The source of the decision", formalDefinition="The logical author of the message - the person or device that decided the described event should happen. Where there is more than one candidate, pick the most proximal to the MessageHeader. Can provide other authors in extensions." ) protected Reference author; @@ -953,7 +953,7 @@ public class MessageHeader extends DomainResource { /** * Allows data conveyed by a message to be addressed to a particular person or department when routing to a specific application isn't sufficient. */ - @Child(name="receiver", type={Practitioner.class, Organization.class}, order=8, min=0, max=1) + @Child(name = "receiver", type = {Practitioner.class, Organization.class}, order = 8, min = 0, max = 1) @Description(shortDefinition="Intended 'real-world' recipient for the data", formalDefinition="Allows data conveyed by a message to be addressed to a particular person or department when routing to a specific application isn't sufficient." ) protected Reference receiver; @@ -965,7 +965,7 @@ public class MessageHeader extends DomainResource { /** * The person or organization that accepts overall responsibility for the contents of the message. The implication is that the message event happened under the policies of the responsible party. */ - @Child(name="responsible", type={Practitioner.class, Organization.class}, order=9, min=0, max=1) + @Child(name = "responsible", type = {Practitioner.class, Organization.class}, order = 9, min = 0, max = 1) @Description(shortDefinition="Final responsibility for event", formalDefinition="The person or organization that accepts overall responsibility for the contents of the message. The implication is that the message event happened under the policies of the responsible party." ) protected Reference responsible; @@ -977,14 +977,14 @@ public class MessageHeader extends DomainResource { /** * Coded indication of the cause for the event - indicates a reason for the occurance of the event that is a focus of this message. */ - @Child(name="reason", type={CodeableConcept.class}, order=10, min=0, max=1) + @Child(name = "reason", type = {CodeableConcept.class}, order = 10, min = 0, max = 1) @Description(shortDefinition="Cause of event", formalDefinition="Coded indication of the cause for the event - indicates a reason for the occurance of the event that is a focus of this message." ) protected CodeableConcept reason; /** * The actual data of the message - a reference to the root/focus class of the event. */ - @Child(name="data", type={}, order=11, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "data", type = {}, order = 11, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="The actual content of the message", formalDefinition="The actual data of the message - a reference to the root/focus class of the event." ) protected List data; /** @@ -1516,24 +1516,24 @@ public class MessageHeader extends DomainResource { public static final String SP_DESTINATIONURI = "destination-uri"; @SearchParamDefinition(name="code", path="MessageHeader.response.code", description="ok | transient-error | fatal-error", type="token" ) public static final String SP_CODE = "code"; - @SearchParamDefinition(name="data", path="MessageHeader.data", description="The actual content of the message", type="reference" ) - public static final String SP_DATA = "data"; - @SearchParamDefinition(name="receiver", path="MessageHeader.receiver", description="Intended 'real-world' recipient for the data", type="reference" ) - public static final String SP_RECEIVER = "receiver"; + @SearchParamDefinition(name = "data", path = "MessageHeader.data", description = "The actual content of the message", type = "reference") + public static final String SP_DATA = "data"; + @SearchParamDefinition(name = "receiver", path = "MessageHeader.receiver", description = "Intended 'real-world' recipient for the data", type = "reference") + public static final String SP_RECEIVER = "receiver"; @SearchParamDefinition(name="src-id", path="MessageHeader.identifier", description="Id of this message", type="token" ) public static final String SP_SRCID = "src-id"; - @SearchParamDefinition(name="source-uri", path="MessageHeader.source.endpoint", description="Actual message source address or id", type="token" ) - public static final String SP_SOURCEURI = "source-uri"; + @SearchParamDefinition(name = "source-uri", path = "MessageHeader.source.endpoint", description = "Actual message source address or id", type = "token") + public static final String SP_SOURCEURI = "source-uri"; @SearchParamDefinition(name="destination", path="MessageHeader.destination.name", description="Name of system", type="string" ) public static final String SP_DESTINATION = "destination"; - @SearchParamDefinition(name="response-id", path="MessageHeader.response.identifier", description="Id of original message", type="token" ) - public static final String SP_RESPONSEID = "response-id"; - @SearchParamDefinition(name="source", path="MessageHeader.source.name", description="Name of system", type="string" ) - public static final String SP_SOURCE = "source"; - @SearchParamDefinition(name="event", path="MessageHeader.event", description="Code for the event this message represents", type="token" ) - public static final String SP_EVENT = "event"; - @SearchParamDefinition(name="timestamp", path="MessageHeader.timestamp", description="Time that the message was sent", type="date" ) - public static final String SP_TIMESTAMP = "timestamp"; + @SearchParamDefinition(name = "response-id", path = "MessageHeader.response.identifier", description = "Id of original message", type = "token") + public static final String SP_RESPONSEID = "response-id"; + @SearchParamDefinition(name = "source", path = "MessageHeader.source.name", description = "Name of system", type = "string") + public static final String SP_SOURCE = "source"; + @SearchParamDefinition(name = "event", path = "MessageHeader.event", description = "Code for the event this message represents", type = "token") + public static final String SP_EVENT = "event"; + @SearchParamDefinition(name = "timestamp", path = "MessageHeader.timestamp", description = "Time that the message was sent", type = "date") + public static final String SP_TIMESTAMP = "timestamp"; } diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Meta.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Meta.java index 567c7ba834b..d36ad4726ab 100644 --- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Meta.java +++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Meta.java @@ -47,42 +47,42 @@ public class Meta extends Type implements IMetaType { /** * The version specific identifier, as it appears in the version portion of the url. This values changes when the resource is created, updated, or deleted. */ - @Child(name="versionId", type={IdType.class}, order=0, min=0, max=1) + @Child(name = "versionId", type = {IdType.class}, order = 0, min = 0, max = 1) @Description(shortDefinition="Version specific identifier", formalDefinition="The version specific identifier, as it appears in the version portion of the url. This values changes when the resource is created, updated, or deleted." ) protected IdType versionId; /** * When the resource last changed - e.g. when the version changed. */ - @Child(name="lastUpdated", type={InstantType.class}, order=1, min=0, max=1) + @Child(name = "lastUpdated", type = {InstantType.class}, order = 1, min = 0, max = 1) @Description(shortDefinition="When the resource version last changed", formalDefinition="When the resource last changed - e.g. when the version changed." ) protected InstantType lastUpdated; /** * Set to 'true' if the resource is deleted. Deleted resources can not be fetched via the RESTful API, but may appear in bundles for various reasons. */ - @Child(name="deleted", type={BooleanType.class}, order=2, min=0, max=1) + @Child(name = "deleted", type = {BooleanType.class}, order = 2, min = 0, max = 1) @Description(shortDefinition="True if the resource is deleted", formalDefinition="Set to 'true' if the resource is deleted. Deleted resources can not be fetched via the RESTful API, but may appear in bundles for various reasons." ) protected BooleanType deleted; /** * A list of profiles that this resource claims to conform to. The URL is a reference to Profile.url. */ - @Child(name="profile", type={UriType.class}, order=3, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "profile", type = {UriType.class}, order = 3, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Profiles this resource claims to conform to", formalDefinition="A list of profiles that this resource claims to conform to. The URL is a reference to Profile.url." ) protected List profile; /** * Security labels applied to this resource. These tags connect specific resources to the overall security policy and infrastructure. */ - @Child(name="security", type={Coding.class}, order=4, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "security", type = {Coding.class}, order = 4, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Security Labels applied to this resource", formalDefinition="Security labels applied to this resource. These tags connect specific resources to the overall security policy and infrastructure." ) protected List security; /** * Tags applied to this resource. Tags are intended to to be used to identify and relate resources to process and workflow, and applications are not required to consider the tags when interpreting the meaning of a resource. */ - @Child(name="tag", type={Coding.class}, order=5, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "tag", type = {Coding.class}, order = 5, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Tags applied", formalDefinition="Tags applied to this resource. Tags are intended to to be used to identify and relate resources to process and workflow, and applications are not required to consider the tags when interpreting the meaning of a resource." ) protected List tag; diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/NamingSystem.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/NamingSystem.java index 283e110ca5e..32b1bba5aa0 100644 --- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/NamingSystem.java +++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/NamingSystem.java @@ -689,77 +689,77 @@ public class NamingSystem extends DomainResource { /** * Indicates the purpose for the namingsystem - what kinds of things does it make unique?. */ - @Child(name="type", type={CodeType.class}, order=0, min=1, max=1) + @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 type; /** * The descriptive name of this particular identifier type or code system. */ - @Child(name="name", type={StringType.class}, order=1, min=1, max=1) + @Child(name = "name", type = {StringType.class}, order = 1, min = 1, max = 1) @Description(shortDefinition="Human-readable label", formalDefinition="The descriptive name of this particular identifier type or code system." ) protected StringType name; /** * Indicates whether the namingsystem is "ready for use" or not. */ - @Child(name="status", type={CodeType.class}, order=2, min=1, max=1) + @Child(name = "status", type = {CodeType.class}, order = 2, min = 1, max = 1) @Description(shortDefinition="proposed | active | retired", formalDefinition="Indicates whether the namingsystem is 'ready for use' or not." ) protected Enumeration status; /** * If present, indicates that the identifier or code system is principally intended for use or applies to entities within the specified country. For example, the country associated with a national code system. */ - @Child(name="country", type={CodeType.class}, order=3, min=0, max=1) + @Child(name = "country", type = {CodeType.class}, order = 3, min = 0, max = 1) @Description(shortDefinition="ISO 3-char country code", formalDefinition="If present, indicates that the identifier or code system is principally intended for use or applies to entities within the specified country. For example, the country associated with a national code system." ) protected CodeType country; /** * Categorizes a namingsystem for easier search by grouping related namingsystems. */ - @Child(name="category", type={CodeableConcept.class}, order=4, min=0, max=1) + @Child(name = "category", type = {CodeableConcept.class}, order = 4, min = 0, max = 1) @Description(shortDefinition="driver | provider | patient | bank", formalDefinition="Categorizes a namingsystem for easier search by grouping related namingsystems." ) protected CodeableConcept category; /** * The name of the organization that is responsible for issuing identifiers or codes for this namespace and ensuring their non-collision. */ - @Child(name="responsible", type={StringType.class}, order=5, min=0, max=1) + @Child(name = "responsible", type = {StringType.class}, order = 5, min = 0, max = 1) @Description(shortDefinition="Who maintains system namespace?", formalDefinition="The name of the organization that is responsible for issuing identifiers or codes for this namespace and ensuring their non-collision." ) protected StringType responsible; /** * Details about what the namespace identifies including scope, granularity, version labeling, etc. */ - @Child(name="description", type={StringType.class}, order=6, min=0, max=1) + @Child(name = "description", type = {StringType.class}, order = 6, min = 0, max = 1) @Description(shortDefinition="What does namingsystem identify?", formalDefinition="Details about what the namespace identifies including scope, granularity, version labeling, etc." ) protected StringType description; /** * Provides guidance on the use of the namespace, including the handling of formatting characters, use of upper vs. lower case, etc. */ - @Child(name="usage", type={StringType.class}, order=7, min=0, max=1) + @Child(name = "usage", type = {StringType.class}, order = 7, min = 0, max = 1) @Description(shortDefinition="How/where is it used", formalDefinition="Provides guidance on the use of the namespace, including the handling of formatting characters, use of upper vs. lower case, etc." ) protected StringType usage; /** * Indicates how the system may be identified when referenced in electronic exchange. */ - @Child(name="uniqueId", type={}, order=8, min=1, max=Child.MAX_UNLIMITED) + @Child(name = "uniqueId", type = {}, order = 8, min = 1, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Unique identifiers used for system", formalDefinition="Indicates how the system may be identified when referenced in electronic exchange." ) protected List uniqueId; /** * The person who can be contacted about this system registration entry. */ - @Child(name="contact", type={}, order=9, min=0, max=1) + @Child(name = "contact", type = {}, order = 9, min = 0, max = 1) @Description(shortDefinition="Who should be contacted for questions about namingsystem", formalDefinition="The person who can be contacted about this system registration entry." ) protected NamingSystemContactComponent contact; /** * For namingsystems that are retired, indicates the namingsystem that should be used in their place (if any). */ - @Child(name="replacedBy", type={NamingSystem.class}, order=10, min=0, max=1) + @Child(name = "replacedBy", type = {NamingSystem.class}, order = 10, min = 0, max = 1) @Description(shortDefinition="Use this instead", formalDefinition="For namingsystems that are retired, indicates the namingsystem that should be used in their place (if any)." ) protected Reference replacedBy; diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Narrative.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Narrative.java index 405c47b7f11..3babedb4c29 100644 --- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Narrative.java +++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Narrative.java @@ -151,7 +151,7 @@ public class Narrative extends Element implements INarrative { /** * The status of the narrative - whether it's entirely generated (from just the defined data or the extensions too), or whether a human authored it and it may contain additional data. */ - @Child(name="status", type={CodeType.class}, order=0, min=1, max=1) + @Child(name = "status", type = {CodeType.class}, order = 0, min = 1, max = 1) @Description(shortDefinition="generated | extensions | additional", formalDefinition="The status of the narrative - whether it's entirely generated (from just the defined data or the extensions too), or whether a human authored it and it may contain additional data." ) protected Enumeration status; @@ -285,26 +285,27 @@ public class Narrative extends Element implements INarrative { ; } - /** - * Sets the value of - * @param theString - * @throws Exception - */ - public void setDivAsString(String theString) throws Exception { - if (StringUtils.isNotBlank(theString)) { - div = new XhtmlParser().parseFragment(theString); - } else { - div = null; - } - } + /** + * Sets the value of + * + * @param theString + * @throws Exception + */ + public void setDivAsString(String theString) throws Exception { + if (StringUtils.isNotBlank(theString)) { + div = new XhtmlParser().parseFragment(theString); + } else { + div = null; + } + } - public String getDivAsString() throws Exception { - if (div != null && !div.isEmpty()) { - return new XhtmlComposer().compose(div); - } else { - return null; - } - } + public String getDivAsString() throws Exception { + if (div != null && !div.isEmpty()) { + return new XhtmlComposer().compose(div); + } else { + return null; + } + } } diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/NutritionOrder.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/NutritionOrder.java index 912fc4855de..4b915ebbc8d 100644 --- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/NutritionOrder.java +++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/NutritionOrder.java @@ -49,29 +49,29 @@ public class NutritionOrder extends DomainResource { /** * The request has been proposed. */ - PROPOSED, - /** - * The request has been planned. - */ - PLANNED, - /** - * The request has been placed. - */ - REQUESTED, - /** - * The request is 'actionable', but not all actions that are implied by it have occurred yet. - */ - ACTIVE, - /** - * ???. - */ - INACTIVE, - /** - * Actions implied by the request have been temporarily halted, but are expected to continue later. May also be called "suspended". - */ - HELD, - /** - * ???. + PROPOSED, + /** + * The request has been planned. + */ + PLANNED, + /** + * The request has been placed. + */ + REQUESTED, + /** + * The request is 'actionable', but not all actions that are implied by it have occurred yet. + */ + ACTIVE, + /** + * ???. + */ + INACTIVE, + /** + * Actions implied by the request have been temporarily halted, but are expected to continue later. May also be called "suspended". + */ + HELD, + /** + * ???. */ CANCELLED, /** @@ -80,11 +80,11 @@ public class NutritionOrder extends DomainResource { NULL; public static NutritionOrderStatus fromCode(String codeString) throws Exception { if (codeString == null || "".equals(codeString)) - return null; - if ("proposed".equals(codeString)) - return PROPOSED; - if ("planned".equals(codeString)) - return PLANNED; + return null; + if ("proposed".equals(codeString)) + return PROPOSED; + if ("planned".equals(codeString)) + return PLANNED; if ("requested".equals(codeString)) return REQUESTED; if ("active".equals(codeString)) @@ -99,8 +99,10 @@ public class NutritionOrder extends DomainResource { } public String toCode() { switch (this) { - case PROPOSED: return "proposed"; - case PLANNED: return "planned"; + case PROPOSED: + return "proposed"; + case PLANNED: + return "planned"; case REQUESTED: return "requested"; case ACTIVE: return "active"; case INACTIVE: return "inactive"; @@ -111,8 +113,10 @@ public class NutritionOrder extends DomainResource { } public String getSystem() { switch (this) { - case PROPOSED: return ""; - case PLANNED: return ""; + case PROPOSED: + return ""; + case PLANNED: + return ""; case REQUESTED: return ""; case ACTIVE: return ""; case INACTIVE: return ""; @@ -123,25 +127,39 @@ public class NutritionOrder extends DomainResource { } 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 ACTIVE: return "The request is 'actionable', but not all actions that are implied by it have occurred yet."; - case INACTIVE: return "???."; - case HELD: return "Actions implied by the request have been temporarily halted, but are expected to continue later. May also be called 'suspended'."; - case CANCELLED: return "???."; + 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 ACTIVE: + return "The request is 'actionable', but not all actions that are implied by it have occurred yet."; + case INACTIVE: + return "???."; + case HELD: + return "Actions implied by the request have been temporarily halted, but are expected to continue later. May also be called 'suspended'."; + case CANCELLED: + return "???."; default: return "?"; } } public String getDisplay() { switch (this) { - case PROPOSED: return "proposed"; - case PLANNED: return "planned"; - case REQUESTED: return "requested"; - case ACTIVE: return "active"; - case INACTIVE: return "inactive"; - case HELD: return "held"; - case CANCELLED: return "cancelled"; + case PROPOSED: + return "proposed"; + case PLANNED: + return "planned"; + case REQUESTED: + return "requested"; + case ACTIVE: + return "active"; + case INACTIVE: + return "inactive"; + case HELD: + return "held"; + case CANCELLED: + return "cancelled"; default: return "?"; } } @@ -151,11 +169,11 @@ public class NutritionOrder extends DomainResource { public NutritionOrderStatus fromCode(String codeString) throws IllegalArgumentException { if (codeString == null || "".equals(codeString)) if (codeString == null || "".equals(codeString)) - return null; - if ("proposed".equals(codeString)) - return NutritionOrderStatus.PROPOSED; - if ("planned".equals(codeString)) - return NutritionOrderStatus.PLANNED; + return null; + if ("proposed".equals(codeString)) + return NutritionOrderStatus.PROPOSED; + if ("planned".equals(codeString)) + return NutritionOrderStatus.PLANNED; if ("requested".equals(codeString)) return NutritionOrderStatus.REQUESTED; if ("active".equals(codeString)) @@ -1454,7 +1472,7 @@ public class NutritionOrder extends DomainResource { /** * The person (patient) who needs the nutrition order for an oral diet, nutritional supplement and/or enteral or formula feeding. */ - @Child(name="patient", type={Patient.class}, order=0, min=1, max=1) + @Child(name = "patient", type = {Patient.class}, order = 0, min = 1, max = 1) @Description(shortDefinition="The person who requires the diet, formula or nutritional supplement", formalDefinition="The person (patient) who needs the nutrition order for an oral diet, nutritional supplement and/or enteral or formula feeding." ) protected Reference patient; @@ -1466,7 +1484,7 @@ public class NutritionOrder extends DomainResource { /** * The practitioner that holds legal responsibility for ordering the diet, nutritional supplement, or formula feedings. */ - @Child(name="orderer", type={Practitioner.class}, order=1, min=0, max=1) + @Child(name = "orderer", type = {Practitioner.class}, order = 1, min = 0, max = 1) @Description(shortDefinition="Who ordered the diet, formula or nutritional supplement", formalDefinition="The practitioner that holds legal responsibility for ordering the diet, nutritional supplement, or formula feedings." ) protected Reference orderer; @@ -1478,14 +1496,14 @@ public class NutritionOrder extends DomainResource { /** * Identifiers assigned to this order by the order sender or by the order receiver. */ - @Child(name="identifier", type={Identifier.class}, order=2, min=0, max=Child.MAX_UNLIMITED) + @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 sender or by the order receiver." ) protected List identifier; /** * An encounter that provides additional information about the healthcare context in which this request is made. */ - @Child(name="encounter", type={Encounter.class}, order=3, min=0, max=1) + @Child(name = "encounter", type = {Encounter.class}, order = 3, min = 0, max = 1) @Description(shortDefinition="The encounter associated with that this nutrition order", formalDefinition="An encounter that provides additional information about the healthcare context in which this request is made." ) protected Reference encounter; @@ -1497,14 +1515,14 @@ public class NutritionOrder extends DomainResource { /** * The date and time that this nutrition order was requested. */ - @Child(name="dateTime", type={DateTimeType.class}, order=4, min=1, max=1) + @Child(name = "dateTime", type = {DateTimeType.class}, order = 4, min = 1, max = 1) @Description(shortDefinition="Date and time the nutrition order was requested", formalDefinition="The date and time that this nutrition order was requested." ) protected DateTimeType dateTime; /** * The ability to list substances that may cause allergies or intolerances which should be included in the nutrition order. */ - @Child(name="allergyIntolerance", type={AllergyIntolerance.class}, order=5, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "allergyIntolerance", type = {AllergyIntolerance.class}, order = 5, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="List of the patient's food and nutrition-related allergies and intolerances", formalDefinition="The ability to list substances that may cause allergies or intolerances which should be included in the nutrition order." ) protected List allergyIntolerance; /** @@ -1516,43 +1534,43 @@ public class NutritionOrder extends DomainResource { /** * This modifier is used to convey order-specific modifiers about the type of food that should be given. These can be derived from patient allergies, intolerances, or preferences such as Halal, Vegan or Kosher. This modifier applies to the entire nutrition order inclusive of the oral diet, nutritional supplements and enteral formula feedings. */ - @Child(name="foodPreferenceModifier", type={CodeableConcept.class}, order=6, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "foodPreferenceModifier", type = {CodeableConcept.class}, order = 6, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Order-specific modifier about the type of food that should be given", formalDefinition="This modifier is used to convey order-specific modifiers about the type of food that should be given. These can be derived from patient allergies, intolerances, or preferences such as Halal, Vegan or Kosher. This modifier applies to the entire nutrition order inclusive of the oral diet, nutritional supplements and enteral formula feedings." ) protected List foodPreferenceModifier; /** * This modifier is used to convey order-specific modifiers about the type of food that should NOT be given. These can be derived from patient allergies, intolerances, or preferences such as No Red Meat, No Soy or No Wheat or Gluten-Free. This modifier applies to the entire nutrition order inclusive of the oral diet, nutritional supplements and enteral formula feedings. */ - @Child(name="excludeFoodModifier", type={CodeableConcept.class}, order=7, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "excludeFoodModifier", type = {CodeableConcept.class}, order = 7, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Order-specific modifier about the type of food that should not be given", formalDefinition="This modifier is used to convey order-specific modifiers about the type of food that should NOT be given. These can be derived from patient allergies, intolerances, or preferences such as No Red Meat, No Soy or No Wheat or Gluten-Free. This modifier applies to the entire nutrition order inclusive of the oral diet, nutritional supplements and enteral formula feedings." ) protected List excludeFoodModifier; /** * Class that defines the components of an oral diet order for the patient. */ - @Child(name="oralDiet", type={}, order=8, min=0, max=1) + @Child(name = "oralDiet", type = {}, order = 8, min = 0, max = 1) @Description(shortDefinition="Oral diet components", formalDefinition="Class that defines the components of an oral diet order for the patient." ) protected NutritionOrderOralDietComponent oralDiet; /** * Class that defines the components of a supplement order for the patient. */ - @Child(name="supplement", type={}, order=9, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "supplement", type = {}, order = 9, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Supplement components", formalDefinition="Class that defines the components of a supplement order for the patient." ) protected List supplement; /** * Class that defines the components of an enteral formula order for the patient. */ - @Child(name="enteralFormula", type={}, order=10, min=0, max=1) + @Child(name = "enteralFormula", type = {}, order = 10, min = 0, max = 1) @Description(shortDefinition="Enteral formula components", formalDefinition="Class that defines the components of an enteral formula order for the patient." ) protected NutritionOrderEnteralFormulaComponent enteralFormula; /** * The workflow status of the nutrition order request, e.g., Active, Inactive, Pending, Held, Canceled, Suspended. */ - @Child(name="status", type={CodeType.class}, order=11, min=0, max=1) - @Description(shortDefinition="proposed | planned | requested | active | inactive | held | cancelled", formalDefinition="The workflow status of the nutrition order request, e.g., Active, Inactive, Pending, Held, Canceled, Suspended." ) + @Child(name = "status", type = {CodeType.class}, order = 11, min = 0, max = 1) + @Description(shortDefinition = "proposed | planned | requested | active | inactive | held | cancelled", formalDefinition = "The workflow status of the nutrition order request, e.g., Active, Inactive, Pending, Held, Canceled, Suspended.") protected Enumeration status; private static final long serialVersionUID = -966362649L; @@ -2107,25 +2125,25 @@ public class NutritionOrder extends DomainResource { @Override public ResourceType getResourceType() { return ResourceType.NutritionOrder; - } + } - @SearchParamDefinition(name="identifier", path="NutritionOrder.identifier", description="Return nutrition orders with this external identity", type="token" ) + @SearchParamDefinition(name = "identifier", path = "NutritionOrder.identifier", description = "Return nutrition orders with this external identity", type = "token") public static final String SP_IDENTIFIER = "identifier"; - @SearchParamDefinition(name="datetime", path="NutritionOrder.dateTime", description="Return nutrition orders requested on this date", type="date" ) + @SearchParamDefinition(name = "datetime", path = "NutritionOrder.dateTime", description = "Return nutrition orders requested on this date", type = "date") public static final String SP_DATETIME = "datetime"; - @SearchParamDefinition(name="provider", path="NutritionOrder.orderer", description="The identify of the provider who placed the nutrition order", type="reference" ) + @SearchParamDefinition(name = "provider", path = "NutritionOrder.orderer", description = "The identify of the provider who placed the nutrition order", type = "reference") public static final String SP_PROVIDER = "provider"; @SearchParamDefinition(name="patient", path="NutritionOrder.patient", description="The identity of the person who requires the diet, formula or nutritional supplement", type="reference" ) public static final String SP_PATIENT = "patient"; @SearchParamDefinition(name="supplement", path="NutritionOrder.supplement.type", description="Type of supplement product requested", type="token" ) public static final String SP_SUPPLEMENT = "supplement"; - @SearchParamDefinition(name="formula", path="NutritionOrder.enteralFormula.baseFormulaType", description="Type of enteral or infant formula", type="token" ) + @SearchParamDefinition(name = "formula", path = "NutritionOrder.enteralFormula.baseFormulaType", description = "Type of enteral or infant formula", type = "token") public static final String SP_FORMULA = "formula"; @SearchParamDefinition(name="encounter", path="NutritionOrder.encounter", description="Return nutrition orders with this encounter identity", type="reference" ) public static final String SP_ENCOUNTER = "encounter"; - @SearchParamDefinition(name="oraldiet", path="NutritionOrder.oralDiet.type", description="Type of diet that can be consumed orally (i.e., take via the mouth).", type="token" ) + @SearchParamDefinition(name = "oraldiet", path = "NutritionOrder.oralDiet.type", description = "Type of diet that can be consumed orally (i.e., take via the mouth).", type = "token") public static final String SP_ORALDIET = "oraldiet"; - @SearchParamDefinition(name="status", path="NutritionOrder.status", description="Status of the nutrition order.", type="token" ) + @SearchParamDefinition(name = "status", path = "NutritionOrder.status", description = "Status of the nutrition order.", type = "token") public static final String SP_STATUS = "status"; @SearchParamDefinition(name="additive", path="NutritionOrder.enteralFormula.additiveType", description="Type of module component to add to the feeding", type="token" ) public static final String SP_ADDITIVE = "additive"; diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Observation.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Observation.java index 7a0e31d1093..ba278b94420 100644 --- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Observation.java +++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Observation.java @@ -619,14 +619,14 @@ public class Observation extends DomainResource { * The value of the low bound of the reference range. If this element is omitted, the low bound of the reference range is assumed to be meaningless. (e.g. reference range is <2.3) If the low.comparator element is missing, it is assumed to be '>'. */ @Child(name="low", type={Quantity.class}, order=1, min=0, max=1) - @Description(shortDefinition="Low Range, if relevant", formalDefinition="The value of the low bound of the reference range. If this element is omitted, the low bound of the reference range is assumed to be meaningless. (e.g. reference range is <2.3) If the low.comparator element is missing, it is assumed to be '>'." ) + @Description(shortDefinition = "Low Range, if relevant", formalDefinition = "The value of the low bound of the reference range. If this element is omitted, the low bound of the reference range is assumed to be meaningless. (e.g. reference range is <2.3) If the low.comparator element is missing, it is assumed to be '>'.") protected Quantity low; /** * The value of the high bound of the reference range. If this element is omitted, the high bound of the reference range is assumed to be meaningless. (e.g. reference range is > 5) If the low.comparator element is missing , it is assumed to be '<'. */ @Child(name="high", type={Quantity.class}, order=2, min=0, max=1) - @Description(shortDefinition="High Range, if relevant", formalDefinition="The value of the high bound of the reference range. If this element is omitted, the high bound of the reference range is assumed to be meaningless. (e.g. reference range is > 5) If the low.comparator element is missing , it is assumed to be '<'." ) + @Description(shortDefinition = "High Range, if relevant", formalDefinition = "The value of the high bound of the reference range. If this element is omitted, the high bound of the reference range is assumed to be meaningless. (e.g. reference range is > 5) If the low.comparator element is missing , it is assumed to be '<'.") protected Quantity high; /** @@ -803,8 +803,8 @@ public class Observation extends DomainResource { protected void listChildren(List childrenList) { super.listChildren(childrenList); - childrenList.add(new Property("low", "Quantity", "The value of the low bound of the reference range. If this element is omitted, the low bound of the reference range is assumed to be meaningless. (e.g. reference range is <2.3) If the low.comparator element is missing, it is assumed to be '>'.", 0, java.lang.Integer.MAX_VALUE, low)); - childrenList.add(new Property("high", "Quantity", "The value of the high bound of the reference range. If this element is omitted, the high bound of the reference range is assumed to be meaningless. (e.g. reference range is > 5) If the low.comparator element is missing , it is assumed to be '<'.", 0, java.lang.Integer.MAX_VALUE, high)); + childrenList.add(new Property("low", "Quantity", "The value of the low bound of the reference range. If this element is omitted, the low bound of the reference range is assumed to be meaningless. (e.g. reference range is <2.3) If the low.comparator element is missing, it is assumed to be '>'.", 0, java.lang.Integer.MAX_VALUE, low)); + childrenList.add(new Property("high", "Quantity", "The value of the high bound of the reference range. If this element is omitted, the high bound of the reference range is assumed to be meaningless. (e.g. reference range is > 5) If the low.comparator element is missing , it is assumed to be '<'.", 0, java.lang.Integer.MAX_VALUE, high)); childrenList.add(new Property("meaning", "CodeableConcept", "Code for the meaning of the reference range.", 0, java.lang.Integer.MAX_VALUE, meaning)); childrenList.add(new Property("age", "Range", "The age at which this reference range is applicable. This is a neonatal age (e.g. number of weeks at term) if the meaning says so.", 0, java.lang.Integer.MAX_VALUE, age)); childrenList.add(new Property("text", "string", "Text based reference range in an observation which may be used when a quantitative range is not appropriate for an observation. An example would be a reference value of 'Negative' or a list or table of 'normals'.", 0, java.lang.Integer.MAX_VALUE, text)); @@ -1019,97 +1019,97 @@ public class Observation extends DomainResource { /** * Describes what was observed. Sometimes this is called the observation "code". */ - @Child(name="code", type={CodeableConcept.class}, order=0, min=1, max=1) + @Child(name = "code", type = {CodeableConcept.class}, order = 0, min = 1, max = 1) @Description(shortDefinition="Type of observation (code / type)", formalDefinition="Describes what was observed. Sometimes this is called the observation 'code'." ) protected CodeableConcept code; /** * The information determined as a result of making the observation, if the information has a simple value. */ - @Child(name="value", type={Quantity.class, CodeableConcept.class, Attachment.class, Ratio.class, DateTimeType.class, Period.class, SampledData.class, StringType.class, TimeType.class}, order=1, min=0, max=1) + @Child(name = "value", type = {Quantity.class, CodeableConcept.class, Attachment.class, Ratio.class, DateTimeType.class, Period.class, SampledData.class, StringType.class, TimeType.class}, order = 1, min = 0, max = 1) @Description(shortDefinition="Actual result", formalDefinition="The information determined as a result of making the observation, if the information has a simple value." ) protected Type value; /** * Provides a reason why the expected value in the element Observation.value[x] is missing. */ - @Child(name="dataAbsentReason", type={CodeType.class}, order=2, min=0, max=1) + @Child(name = "dataAbsentReason", type = {CodeType.class}, order = 2, min = 0, max = 1) @Description(shortDefinition="unknown | asked | temp | notasked +", formalDefinition="Provides a reason why the expected value in the element Observation.value[x] is missing." ) protected Enumeration dataAbsentReason; /** * The assessment made based on the result of the observation. */ - @Child(name="interpretation", type={CodeableConcept.class}, order=3, min=0, max=1) + @Child(name = "interpretation", type = {CodeableConcept.class}, order = 3, min = 0, max = 1) @Description(shortDefinition="High, low, normal, etc.", formalDefinition="The assessment made based on the result of the observation." ) protected CodeableConcept interpretation; /** * 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. */ - @Child(name="comments", type={StringType.class}, order=4, min=0, max=1) + @Child(name = "comments", type = {StringType.class}, order = 4, min = 0, max = 1) @Description(shortDefinition="Comments about result", formalDefinition="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." ) protected StringType comments; /** * 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=5, min=0, max=1) + @Child(name = "applies", type = {DateTimeType.class, Period.class}, order = 5, 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; /** * The date and time this observation was made available. */ - @Child(name="issued", type={InstantType.class}, order=6, min=0, max=1) + @Child(name = "issued", type = {InstantType.class}, order = 6, min = 0, max = 1) @Description(shortDefinition="Date/Time this was made available", formalDefinition="The date and time this observation was made available." ) protected InstantType issued; /** * The status of the result value. */ - @Child(name="status", type={CodeType.class}, order=7, min=1, max=1) + @Child(name = "status", type = {CodeType.class}, order = 7, min = 1, max = 1) @Description(shortDefinition="registered | preliminary | final | amended +", formalDefinition="The status of the result value." ) protected Enumeration status; /** * An estimate of the degree to which quality issues have impacted on the value reported. */ - @Child(name="reliability", type={CodeType.class}, order=8, min=0, max=1) + @Child(name = "reliability", type = {CodeType.class}, order = 8, min = 0, max = 1) @Description(shortDefinition="ok | ongoing | early | questionable | calibrating | error +", formalDefinition="An estimate of the degree to which quality issues have impacted on the value reported." ) protected Enumeration reliability; /** * Indicates the site on the subject's body where the observation was made ( i.e. the target site). */ - @Child(name="bodySite", type={CodeableConcept.class, BodySite.class}, order=9, min=0, max=1) + @Child(name = "bodySite", type = {CodeableConcept.class, BodySite.class}, order = 9, min = 0, max = 1) @Description(shortDefinition="Observed body part", formalDefinition="Indicates the site on the subject's body where the observation was made ( i.e. the target site)." ) protected Type bodySite; /** * Indicates the mechanism used to perform the observation. */ - @Child(name="method", type={CodeableConcept.class}, order=10, min=0, max=1) + @Child(name = "method", type = {CodeableConcept.class}, order = 10, min = 0, max = 1) @Description(shortDefinition="How it was done", formalDefinition="Indicates the mechanism used to perform the observation." ) protected CodeableConcept method; /** * A unique identifier for the simple observation. */ - @Child(name="identifier", type={Identifier.class}, order=11, min=0, max=1) + @Child(name = "identifier", type = {Identifier.class}, order = 11, min = 0, max = 1) @Description(shortDefinition="Unique Id for this particular observation", formalDefinition="A unique identifier for the simple observation." ) protected 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, 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=12, min=0, max=1) + @Child(name = "subject", type = {Patient.class, Group.class, Device.class, Location.class}, order = 12, 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." ) 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, other observer (for example a relative or EMT), or any observation made about the subject.) */ protected Resource subjectTarget; @@ -1117,7 +1117,7 @@ other observer (for example a relative or EMT), or any observation made about th /** * The specimen that was used when this observation was made. */ - @Child(name="specimen", type={Specimen.class}, order=13, min=0, max=1) + @Child(name = "specimen", type = {Specimen.class}, order = 13, min = 0, max = 1) @Description(shortDefinition="Specimen used for this observation", formalDefinition="The specimen that was used when this observation was made." ) protected Reference specimen; @@ -1129,7 +1129,7 @@ other observer (for example a relative or EMT), or any observation made about th /** * Who was responsible for asserting the observed value as "true". */ - @Child(name="performer", type={Practitioner.class, Organization.class, Patient.class, RelatedPerson.class}, order=14, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "performer", type = {Practitioner.class, Organization.class, Patient.class, RelatedPerson.class}, order = 14, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Who did the observation", formalDefinition="Who was responsible for asserting the observed value as 'true'." ) protected List performer; /** @@ -1141,7 +1141,7 @@ other observer (for example a relative or EMT), or any observation made about th /** * The device used to generate the observation data. */ - @Child(name="device", type={Device.class, DeviceMetric.class}, order=15, min=0, max=1) + @Child(name = "device", type = {Device.class, DeviceMetric.class}, order = 15, min = 0, max = 1) @Description(shortDefinition="(Measurement) Device", formalDefinition="The device used to generate the observation data." ) protected Reference device; @@ -1153,7 +1153,7 @@ other observer (for example a relative or EMT), or any observation made about th /** * The healthcare event ( e.g. a patient and healthcare provider interaction ) during which this observation is made. */ - @Child(name="encounter", type={Encounter.class}, order=16, min=0, max=1) + @Child(name = "encounter", type = {Encounter.class}, order = 16, min = 0, max = 1) @Description(shortDefinition="Healthcare event during which this observation is made", formalDefinition="The healthcare event ( e.g. a patient and healthcare provider interaction ) during which this observation is made." ) protected Reference encounter; @@ -1165,14 +1165,14 @@ other observer (for example a relative or EMT), or any observation made about th /** * Guidance on how to interpret the value by comparison to a normal or recommended range. */ - @Child(name="referenceRange", type={}, order=17, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "referenceRange", type = {}, order = 17, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Provides guide for interpretation", formalDefinition="Guidance on how to interpret the value by comparison to a normal or recommended range." ) protected List referenceRange; /** * Related observations - either components, or previous observations, or statements of derivation. */ - @Child(name="related", type={}, order=18, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "related", type = {}, order = 18, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Observations related to this observation", formalDefinition="Related observations - either components, or previous observations, or statements of derivation." ) protected List related; @@ -1184,31 +1184,31 @@ other observer (for example a relative or EMT), or any observation made about th public Observation(CodeableConcept code, Enumeration status) { super(); - this.code = code; + this.code = code; this.status = status; } /** * @return {@link #code} (Describes what was observed. Sometimes this is called the observation "code".) */ - public CodeableConcept getCode() { - if (this.code == null) + public CodeableConcept getCode() { + if (this.code == null) if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create Observation.code"); + throw new Error("Attempt to auto-create Observation.code"); else if (Configuration.doAutoCreate()) - this.code = new CodeableConcept(); // cc - return this.code; + this.code = new CodeableConcept(); // cc + return this.code; } - public boolean hasCode() { - return this.code != null && !this.code.isEmpty(); + public boolean hasCode() { + return this.code != null && !this.code.isEmpty(); } /** * @param value {@link #code} (Describes what was observed. Sometimes this is called the observation "code".) */ - public Observation setCode(CodeableConcept value) { - this.code = value; + public Observation setCode(CodeableConcept value) { + this.code = value; return this; } @@ -1700,7 +1700,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, other observer (for example a relative or EMT), or any observation made about the subject.) */ public Reference getSubject() { @@ -1717,7 +1717,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, other observer (for example a relative or EMT), or any observation made about the subject.) */ public Observation setSubject(Reference value) { @@ -1726,7 +1726,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, other observer (for example a relative or EMT), or any observation made about the subject.) */ public Resource getSubjectTarget() { @@ -1734,7 +1734,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, other observer (for example a relative or EMT), or any observation made about the subject.) */ public Observation setSubjectTarget(Resource value) { @@ -1970,7 +1970,7 @@ other observer (for example a relative or EMT), or any observation made about th protected void listChildren(List childrenList) { super.listChildren(childrenList); - childrenList.add(new Property("code", "CodeableConcept", "Describes what was observed. Sometimes this is called the observation 'code'.", 0, java.lang.Integer.MAX_VALUE, code)); + childrenList.add(new Property("code", "CodeableConcept", "Describes what was observed. Sometimes this is called the observation 'code'.", 0, java.lang.Integer.MAX_VALUE, code)); childrenList.add(new Property("value[x]", "Quantity|CodeableConcept|Attachment|Ratio|dateTime|Period|SampledData|string|time", "The information determined as a result of making the observation, if the information has a simple value.", 0, java.lang.Integer.MAX_VALUE, value)); childrenList.add(new Property("dataAbsentReason", "code", "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)); @@ -1994,7 +1994,7 @@ other observer (for example a relative or EMT), or any observation made about th public Observation copy() { Observation dst = new Observation(); copyValues(dst); - dst.code = code == null ? null : code.copy(); + dst.code = code == null ? null : code.copy(); dst.value = value == null ? null : value.copy(); dst.dataAbsentReason = dataAbsentReason == null ? null : dataAbsentReason.copy(); dst.interpretation = interpretation == null ? null : interpretation.copy(); @@ -2039,7 +2039,7 @@ other observer (for example a relative or EMT), or any observation made about th if (!(other instanceof Observation)) return false; Observation o = (Observation) other; - return compareDeep(code, o.code, true) && compareDeep(value, o.value, true) && compareDeep(dataAbsentReason, o.dataAbsentReason, true) + return compareDeep(code, o.code, 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(status, o.status, true) && compareDeep(reliability, o.reliability, true) && compareDeep(bodySite, o.bodySite, true) && compareDeep(method, o.method, true) @@ -2062,7 +2062,7 @@ other observer (for example a relative or EMT), or any observation made about th } public boolean isEmpty() { - return super.isEmpty() && (code == null || code.isEmpty()) && (value == null || value.isEmpty()) + return super.isEmpty() && (code == null || code.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()) && (reliability == null || reliability.isEmpty()) @@ -2077,32 +2077,32 @@ 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" ) - public static final String SP_DATE = "date"; - @SearchParamDefinition(name="identifier", path="Observation.identifier", description="The unique Id for a particular observation", type="token" ) - public static final String SP_IDENTIFIER = "identifier"; - @SearchParamDefinition(name="code", path="Observation.code", description="The code of the observation type", type="token" ) - public static final String SP_CODE = "code"; - @SearchParamDefinition(name="code-value-[x]", path="", description="Both code and one of the value parameters", type="composite" ) - public static final String SP_CODEVALUEX = "code-value-[x]"; - @SearchParamDefinition(name="performer", path="Observation.performer", description="Who performed the observation", type="reference" ) - public static final String SP_PERFORMER = "performer"; - @SearchParamDefinition(name="value-quantity", path="Observation.valueQuantity", description="The value of the observation, if the value is a Quantity, or a SampledData (just search on the bounds of the values in sampled data)", type="quantity" ) - public static final String SP_VALUEQUANTITY = "value-quantity"; + @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") + public static final String SP_DATE = "date"; + @SearchParamDefinition(name = "identifier", path = "Observation.identifier", description = "The unique Id for a particular observation", type = "token") + public static final String SP_IDENTIFIER = "identifier"; + @SearchParamDefinition(name = "code", path = "Observation.code", description = "The code of the observation type", type = "token") + public static final String SP_CODE = "code"; + @SearchParamDefinition(name = "code-value-[x]", path = "", description = "Both code and one of the value parameters", type = "composite") + public static final String SP_CODEVALUEX = "code-value-[x]"; + @SearchParamDefinition(name = "performer", path = "Observation.performer", description = "Who performed the observation", type = "reference") + public static final String SP_PERFORMER = "performer"; + @SearchParamDefinition(name = "value-quantity", path = "Observation.valueQuantity", description = "The value of the observation, if the value is a Quantity, or a SampledData (just search on the bounds of the values in sampled data)", type = "quantity") + public static final String SP_VALUEQUANTITY = "value-quantity"; @SearchParamDefinition(name="subject", path="Observation.subject", description="The subject that the observation is about", type="reference" ) public static final String SP_SUBJECT = "subject"; @SearchParamDefinition(name="reliability", path="Observation.reliability", description="The reliability of the observation", type="token" ) public static final String SP_RELIABILITY = "reliability"; - @SearchParamDefinition(name="value-concept", path="Observation.valueCodeableConcept", description="The value of the observation, if the value is a CodeableConcept", type="token" ) - public static final String SP_VALUECONCEPT = "value-concept"; - @SearchParamDefinition(name="value-date", path="Observation.valueDateTime|Observation.valuePeriod", description="The value of the observation, if the value is a Period", type="date" ) - public static final String SP_VALUEDATE = "value-date"; - @SearchParamDefinition(name="data-absent-reason", path="Observation.dataAbsentReason", description="The reason why the expected value in the element Observation.value[x] is missing.", type="token" ) - public static final String SP_DATAABSENTREASON = "data-absent-reason"; + @SearchParamDefinition(name = "value-concept", path = "Observation.valueCodeableConcept", description = "The value of the observation, if the value is a CodeableConcept", type = "token") + public static final String SP_VALUECONCEPT = "value-concept"; + @SearchParamDefinition(name = "value-date", path = "Observation.valueDateTime|Observation.valuePeriod", description = "The value of the observation, if the value is a Period", type = "date") + public static final String SP_VALUEDATE = "value-date"; + @SearchParamDefinition(name = "data-absent-reason", path = "Observation.dataAbsentReason", description = "The reason why the expected value in the element Observation.value[x] is missing.", type = "token") + public static final String SP_DATAABSENTREASON = "data-absent-reason"; @SearchParamDefinition(name="encounter", path="Observation.encounter", description="Healthcare event related to the observation", type="reference" ) public static final String SP_ENCOUNTER = "encounter"; - @SearchParamDefinition(name="related-type", path="Observation.related.type", description="has-component | has-member | derived-from | sequel-to | replaces | qualified-by | interfered-by", type="token" ) - public static final String SP_RELATEDTYPE = "related-type"; + @SearchParamDefinition(name = "related-type", path = "Observation.related.type", description = "has-component | has-member | derived-from | sequel-to | replaces | qualified-by | interfered-by", type = "token") + public static final String SP_RELATEDTYPE = "related-type"; @SearchParamDefinition(name="related-target", path="Observation.related.target", description="Observation that is related to this one", type="reference" ) public static final String SP_RELATEDTARGET = "related-target"; @SearchParamDefinition(name="related", path="", description="Related Observations - search on related-type and related-target together", type="composite" ) @@ -2111,12 +2111,12 @@ other observer (for example a relative or EMT), or any observation made about th public static final String SP_PATIENT = "patient"; @SearchParamDefinition(name="specimen", path="Observation.specimen", description="Specimen used for this observation", type="reference" ) public static final String SP_SPECIMEN = "specimen"; - @SearchParamDefinition(name="value-string", path="Observation.valueString", description="The value of the observation, if the value is a string, and also searches in CodeableConcept.text", type="string" ) - public static final String SP_VALUESTRING = "value-string"; + @SearchParamDefinition(name = "value-string", path = "Observation.valueString", description = "The value of the observation, if the value is a string, and also searches in CodeableConcept.text", type = "string") + public static final String SP_VALUESTRING = "value-string"; @SearchParamDefinition(name="device", path="Observation.device", description="The Device that generated the observation data.", type="reference" ) public static final String SP_DEVICE = "device"; - @SearchParamDefinition(name="status", path="Observation.status", description="The status of the observation", type="token" ) - public static final String SP_STATUS = "status"; + @SearchParamDefinition(name = "status", path = "Observation.status", description = "The status of the observation", type = "token") + public static final String SP_STATUS = "status"; } diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/OperationDefinition.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/OperationDefinition.java index 277da15fcfd..b63e2df21de 100644 --- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/OperationDefinition.java +++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/OperationDefinition.java @@ -1159,98 +1159,98 @@ public class OperationDefinition extends DomainResource { /** * The identifier that is used to identify this operation definition when it is referenced in a specification, model, design or an instance (should be globally unique OID, UUID, or URI). */ - @Child(name="identifier", type={UriType.class}, order=0, min=0, max=1) + @Child(name = "identifier", type = {UriType.class}, order = 0, min = 0, max = 1) @Description(shortDefinition="Logical id to reference this operation definition", formalDefinition="The identifier that is used to identify this operation definition when it is referenced in a specification, model, design or an instance (should be globally unique OID, UUID, or URI)." ) protected UriType identifier; /** * The identifier that is used to identify this version of the profile when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the profile author manually and the value should be a timestamp. */ - @Child(name="version", type={StringType.class}, order=1, min=0, max=1) + @Child(name = "version", type = {StringType.class}, order = 1, min = 0, max = 1) @Description(shortDefinition="Logical id for this version of the operation definition", formalDefinition="The identifier that is used to identify this version of the profile when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the profile author manually and the value should be a timestamp." ) protected StringType version; /** * A free text natural language name identifying the Profile. */ - @Child(name="title", type={StringType.class}, order=2, min=1, max=1) + @Child(name = "title", type = {StringType.class}, order = 2, min = 1, max = 1) @Description(shortDefinition="Informal name for this profile", formalDefinition="A free text natural language name identifying the Profile." ) protected StringType title; /** * Details of the individual or organization who accepts responsibility for publishing the profile. */ - @Child(name="publisher", type={StringType.class}, order=3, min=0, max=1) + @Child(name = "publisher", type = {StringType.class}, order = 3, min = 0, max = 1) @Description(shortDefinition="Name of the publisher (Organization or individual)", formalDefinition="Details of the individual or organization who accepts responsibility for publishing the profile." ) protected StringType publisher; /** * Contact details to assist a user in finding and communicating with the publisher. */ - @Child(name="telecom", type={ContactPoint.class}, order=4, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "telecom", type = {ContactPoint.class}, order = 4, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Contact information of the publisher", formalDefinition="Contact details to assist a user in finding and communicating with the publisher." ) protected List telecom; /** * A free text natural language description of the profile and its use. */ - @Child(name="description", type={StringType.class}, order=5, min=0, max=1) + @Child(name = "description", type = {StringType.class}, order = 5, min = 0, max = 1) @Description(shortDefinition="Natural language description of the operation", formalDefinition="A free text natural language description of the profile and its use." ) protected StringType description; /** * A set of terms from external terminologies that may be used to assist with indexing and searching of templates. */ - @Child(name="code", type={Coding.class}, order=6, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "code", type = {Coding.class}, order = 6, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Assist with indexing and finding", formalDefinition="A set of terms from external terminologies that may be used to assist with indexing and searching of templates." ) protected List code; /** * The status of the profile. */ - @Child(name="status", type={CodeType.class}, order=7, min=1, max=1) + @Child(name = "status", type = {CodeType.class}, order = 7, min = 1, max = 1) @Description(shortDefinition="draft | active | retired", formalDefinition="The status of the profile." ) protected Enumeration status; /** * This profile was authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage. */ - @Child(name="experimental", type={BooleanType.class}, order=8, min=0, max=1) + @Child(name = "experimental", type = {BooleanType.class}, order = 8, min = 0, max = 1) @Description(shortDefinition="If for testing purposes, not real usage", formalDefinition="This profile was authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage." ) protected BooleanType experimental; /** * The date that this version of the profile was published. */ - @Child(name="date", type={DateTimeType.class}, order=9, min=0, max=1) + @Child(name = "date", type = {DateTimeType.class}, order = 9, min = 0, max = 1) @Description(shortDefinition="Date for this version of the operation definition", formalDefinition="The date that this version of the profile was published." ) protected DateTimeType date; /** * Whether this is operation or named query. */ - @Child(name="kind", type={CodeType.class}, order=10, min=1, max=1) + @Child(name = "kind", type = {CodeType.class}, order = 10, min = 1, max = 1) @Description(shortDefinition="operation | query", formalDefinition="Whether this is operation or named query." ) protected Enumeration kind; /** * The name used to invoke the operation. */ - @Child(name="name", type={CodeType.class}, order=11, min=1, max=1) + @Child(name = "name", type = {CodeType.class}, order = 11, min = 1, max = 1) @Description(shortDefinition="Name used to invoke the operation", formalDefinition="The name used to invoke the operation." ) protected CodeType name; /** * Additional information about how to use this operation or named query. */ - @Child(name="notes", type={StringType.class}, order=12, min=0, max=1) + @Child(name = "notes", type = {StringType.class}, order = 12, min = 0, max = 1) @Description(shortDefinition="Additional information about use", formalDefinition="Additional information about how to use this operation or named query." ) protected StringType notes; /** * Indicates that this operation definition is a constraining profile on the base. */ - @Child(name="base", type={OperationDefinition.class}, order=13, min=0, max=1) + @Child(name = "base", type = {OperationDefinition.class}, order = 13, min = 0, max = 1) @Description(shortDefinition="Marks this as a profile of the base", formalDefinition="Indicates that this operation definition is a constraining profile on the base." ) protected Reference base; @@ -1262,28 +1262,28 @@ public class OperationDefinition extends DomainResource { /** * Indicates whether this operation or named query can be invoked at the system level (e.g. without needing to choose a resource type for the context). */ - @Child(name="system", type={BooleanType.class}, order=14, min=1, max=1) + @Child(name = "system", type = {BooleanType.class}, order = 14, min = 1, max = 1) @Description(shortDefinition="Invoke at the system level?", formalDefinition="Indicates whether this operation or named query can be invoked at the system level (e.g. without needing to choose a resource type for the context)." ) protected BooleanType system; /** * Indicates whether this operation or named query can be invoked at the resource type level for any given resource type level (e.g. without needing to choose a resource type for the context). */ - @Child(name="type", type={CodeType.class}, order=15, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "type", type = {CodeType.class}, order = 15, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Invoke at resource level for these type", formalDefinition="Indicates whether this operation or named query can be invoked at the resource type level for any given resource type level (e.g. without needing to choose a resource type for the context)." ) protected List type; /** * Indicates whether this operation can be invoked on a particular instance of one of the given types. */ - @Child(name="instance", type={BooleanType.class}, order=16, min=1, max=1) + @Child(name = "instance", type = {BooleanType.class}, order = 16, min = 1, max = 1) @Description(shortDefinition="Invoke on an instance?", formalDefinition="Indicates whether this operation can be invoked on a particular instance of one of the given types." ) protected BooleanType instance; /** * The parameters for the operation/query. */ - @Child(name="parameter", type={}, order=17, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "parameter", type = {}, order = 17, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Parameters for the operation/query", formalDefinition="The parameters for the operation/query." ) protected List parameter; @@ -2213,30 +2213,30 @@ public class OperationDefinition extends DomainResource { @SearchParamDefinition(name="date", path="OperationDefinition.date", description="Date for this version of the operation definition", type="date" ) public static final String SP_DATE = "date"; - @SearchParamDefinition(name="identifier", path="OperationDefinition.identifier", description="Logical id to reference this operation definition", type="token" ) - public static final String SP_IDENTIFIER = "identifier"; - @SearchParamDefinition(name="code", path="OperationDefinition.code", description="Assist with indexing and finding", type="token" ) - public static final String SP_CODE = "code"; - @SearchParamDefinition(name="instance", path="OperationDefinition.instance", description="Invoke on an instance?", type="token" ) - public static final String SP_INSTANCE = "instance"; + @SearchParamDefinition(name = "identifier", path = "OperationDefinition.identifier", description = "Logical id to reference this operation definition", type = "token") + public static final String SP_IDENTIFIER = "identifier"; + @SearchParamDefinition(name = "code", path = "OperationDefinition.code", description = "Assist with indexing and finding", type = "token") + public static final String SP_CODE = "code"; + @SearchParamDefinition(name = "instance", path = "OperationDefinition.instance", description = "Invoke on an instance?", type = "token") + public static final String SP_INSTANCE = "instance"; @SearchParamDefinition(name="kind", path="OperationDefinition.kind", description="operation | query", type="token" ) public static final String SP_KIND = "kind"; - @SearchParamDefinition(name="profile", path="OperationDefinition.parameter.profile", description="Profile on the type", type="reference" ) - public static final String SP_PROFILE = "profile"; + @SearchParamDefinition(name = "profile", path = "OperationDefinition.parameter.profile", description = "Profile on the type", type = "reference") + public static final String SP_PROFILE = "profile"; @SearchParamDefinition(name="title", path="OperationDefinition.title", description="Informal name for this profile", type="string" ) public static final String SP_TITLE = "title"; - @SearchParamDefinition(name="type", path="OperationDefinition.type", description="Invoke at resource level for these type", type="token" ) - public static final String SP_TYPE = "type"; - @SearchParamDefinition(name="version", path="OperationDefinition.version", description="Logical id for this version of the operation definition", type="token" ) - public static final String SP_VERSION = "version"; + @SearchParamDefinition(name = "type", path = "OperationDefinition.type", description = "Invoke at resource level for these type", type = "token") + public static final String SP_TYPE = "type"; + @SearchParamDefinition(name = "version", path = "OperationDefinition.version", description = "Logical id for this version of the operation definition", type = "token") + public static final String SP_VERSION = "version"; @SearchParamDefinition(name="system", path="OperationDefinition.system", description="Invoke at the system level?", type="token" ) public static final String SP_SYSTEM = "system"; @SearchParamDefinition(name="name", path="OperationDefinition.name", description="Name used to invoke the operation", type="token" ) public static final String SP_NAME = "name"; - @SearchParamDefinition(name="publisher", path="OperationDefinition.publisher", description="Name of the publisher (Organization or individual)", type="string" ) - public static final String SP_PUBLISHER = "publisher"; - @SearchParamDefinition(name="status", path="OperationDefinition.status", description="draft | active | retired", type="token" ) - public static final String SP_STATUS = "status"; + @SearchParamDefinition(name = "publisher", path = "OperationDefinition.publisher", description = "Name of the publisher (Organization or individual)", type = "string") + public static final String SP_PUBLISHER = "publisher"; + @SearchParamDefinition(name = "status", path = "OperationDefinition.status", description = "draft | active | retired", type = "token") + public static final String SP_STATUS = "status"; @SearchParamDefinition(name="base", path="OperationDefinition.base", description="Marks this as a profile of the base", type="reference" ) public static final String SP_BASE = "base"; diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/OperationOutcome.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/OperationOutcome.java index 0b54026f201..060d12b160c 100644 --- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/OperationOutcome.java +++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/OperationOutcome.java @@ -412,7 +412,7 @@ public class OperationOutcome extends DomainResource { /** * An error, warning or information message that results from a system action. */ - @Child(name="issue", type={}, order=0, min=1, max=Child.MAX_UNLIMITED) + @Child(name = "issue", type = {}, order = 0, min = 1, max = Child.MAX_UNLIMITED) @Description(shortDefinition="A single issue associated with the action", formalDefinition="An error, warning or information message that results from a system action." ) protected List issue; diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/OralHealthClaim.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/OralHealthClaim.java index 690c354d174..caec65bdc53 100644 --- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/OralHealthClaim.java +++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/OralHealthClaim.java @@ -3438,35 +3438,35 @@ public class OralHealthClaim extends DomainResource { /** * The business identifier for the instance: invoice number, claim number, pre-determination or pre-authorization number. */ - @Child(name="identifier", type={Identifier.class}, order=0, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "identifier", type = {Identifier.class}, order = 0, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Claim number", formalDefinition="The business identifier for the instance: invoice number, claim number, pre-determination or pre-authorization number." ) protected List identifier; /** * The version of the specification on which this instance relies. */ - @Child(name="ruleset", type={Coding.class}, order=1, min=0, max=1) + @Child(name = "ruleset", type = {Coding.class}, order = 1, min = 0, max = 1) @Description(shortDefinition="Current specification followed", formalDefinition="The version of the specification on which this instance relies." ) protected Coding ruleset; /** * The version of the specification from which the original instance was created. */ - @Child(name="originalRuleset", type={Coding.class}, order=2, min=0, max=1) + @Child(name = "originalRuleset", type = {Coding.class}, order = 2, min = 0, max = 1) @Description(shortDefinition="Original specification followed", formalDefinition="The version of the specification from which the original instance was created." ) protected Coding originalRuleset; /** * The date when the enclosed suite of services were performed or completed. */ - @Child(name="created", type={DateTimeType.class}, order=3, min=0, max=1) + @Child(name = "created", type = {DateTimeType.class}, order = 3, min = 0, max = 1) @Description(shortDefinition="Creation date", formalDefinition="The date when the enclosed suite of services were performed or completed." ) protected DateTimeType created; /** * Insurer Identifier, typical BIN number (6 digit). */ - @Child(name="target", type={Organization.class}, order=4, min=0, max=1) + @Child(name = "target", type = {Organization.class}, order = 4, min = 0, max = 1) @Description(shortDefinition="Insurer", formalDefinition="Insurer Identifier, typical BIN number (6 digit)." ) protected Reference target; @@ -3478,7 +3478,7 @@ public class OralHealthClaim extends DomainResource { /** * The provider which is responsible for the bill, claim pre-determination, pre-authorization. */ - @Child(name="provider", type={Practitioner.class}, order=5, min=0, max=1) + @Child(name = "provider", type = {Practitioner.class}, order = 5, min = 0, max = 1) @Description(shortDefinition="Responsible provider", formalDefinition="The provider which is responsible for the bill, claim pre-determination, pre-authorization." ) protected Reference provider; @@ -3490,7 +3490,7 @@ public class OralHealthClaim extends DomainResource { /** * The organization which is responsible for the bill, claim pre-determination, pre-authorization. */ - @Child(name="organization", type={Organization.class}, order=6, min=0, max=1) + @Child(name = "organization", type = {Organization.class}, order = 6, min = 0, max = 1) @Description(shortDefinition="Responsible organization", formalDefinition="The organization which is responsible for the bill, claim pre-determination, pre-authorization." ) protected Reference organization; @@ -3502,28 +3502,28 @@ public class OralHealthClaim extends DomainResource { /** * Complete (Bill or Claim), Proposed (Pre-Authorization), Exploratory (Pre-determination). */ - @Child(name="use", type={CodeType.class}, order=7, min=0, max=1) + @Child(name = "use", type = {CodeType.class}, order = 7, min = 0, max = 1) @Description(shortDefinition="complete | proposed | exploratory | other", formalDefinition="Complete (Bill or Claim), Proposed (Pre-Authorization), Exploratory (Pre-determination)." ) protected Enumeration use; /** * Immediate (STAT), best effort (NORMAL), deferred (DEFER). */ - @Child(name="priority", type={Coding.class}, order=8, min=0, max=1) + @Child(name = "priority", type = {Coding.class}, order = 8, min = 0, max = 1) @Description(shortDefinition="Desired processing priority", formalDefinition="Immediate (STAT), best effort (NORMAL), deferred (DEFER)." ) protected Coding priority; /** * In the case of a Pre-Determination/Pre-Authorization the provider may request that funds in the amount of the expected Benefit be reserved ('Patient' or 'Provider') to pay for the Benefits determined on the subsequent claim(s). 'None' explicitly indicates no funds reserving is requested. */ - @Child(name="fundsReserve", type={Coding.class}, order=9, min=0, max=1) + @Child(name = "fundsReserve", type = {Coding.class}, order = 9, min = 0, max = 1) @Description(shortDefinition="Funds requested to be reserved", formalDefinition="In the case of a Pre-Determination/Pre-Authorization the provider may request that funds in the amount of the expected Benefit be reserved ('Patient' or 'Provider') to pay for the Benefits determined on the subsequent claim(s). 'None' explicitly indicates no funds reserving is requested." ) protected Coding fundsReserve; /** * Person who created the invoice/claim/pre-determination or pre-authorization. */ - @Child(name="enterer", type={Practitioner.class}, order=10, min=0, max=1) + @Child(name = "enterer", type = {Practitioner.class}, order = 10, min = 0, max = 1) @Description(shortDefinition="Author", formalDefinition="Person who created the invoice/claim/pre-determination or pre-authorization." ) protected Reference enterer; @@ -3535,7 +3535,7 @@ public class OralHealthClaim extends DomainResource { /** * Facility where the services were provided. */ - @Child(name="facility", type={Location.class}, order=11, min=0, max=1) + @Child(name = "facility", type = {Location.class}, order = 11, min = 0, max = 1) @Description(shortDefinition="Servicing Facility", formalDefinition="Facility where the services were provided." ) protected Reference facility; @@ -3547,14 +3547,14 @@ public class OralHealthClaim extends DomainResource { /** * The party to be reimbursed for the services. */ - @Child(name="payee", type={}, order=12, min=0, max=1) + @Child(name = "payee", type = {}, order = 12, min = 0, max = 1) @Description(shortDefinition="Payee", formalDefinition="The party to be reimbursed for the services." ) protected PayeeComponent payee; /** * The referral resource which lists the date, practitioner, reason and other supporting information. */ - @Child(name="referral", type={ReferralRequest.class}, order=13, min=0, max=1) + @Child(name = "referral", type = {ReferralRequest.class}, order = 13, min = 0, max = 1) @Description(shortDefinition="Treatment Referral", formalDefinition="The referral resource which lists the date, practitioner, reason and other supporting information." ) protected Reference referral; @@ -3566,21 +3566,21 @@ public class OralHealthClaim extends DomainResource { /** * Ordered list of patient diagnosis for which care is sought. */ - @Child(name="diagnosis", type={}, order=14, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "diagnosis", type = {}, order = 14, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Diagnosis", formalDefinition="Ordered list of patient diagnosis for which care is sought." ) protected List diagnosis; /** * List of patient conditions for which care is sought. */ - @Child(name="condition", type={Coding.class}, order=15, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "condition", type = {Coding.class}, order = 15, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="List of presenting Conditions", formalDefinition="List of patient conditions for which care is sought." ) protected List condition; /** * Patient Resource. */ - @Child(name="patient", type={Patient.class}, order=16, min=1, max=1) + @Child(name = "patient", type = {Patient.class}, order = 16, min = 1, max = 1) @Description(shortDefinition="The subject of the Products and Services", formalDefinition="Patient Resource." ) protected Reference patient; @@ -3592,70 +3592,70 @@ public class OralHealthClaim extends DomainResource { /** * Financial instrument by which payment information for health care. */ - @Child(name="coverage", type={}, order=17, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "coverage", type = {}, order = 17, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Insurance or medical plan", formalDefinition="Financial instrument by which payment information for health care." ) protected List coverage; /** * Factors which may influence the applicability of coverage. */ - @Child(name="exception", type={Coding.class}, order=18, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "exception", type = {Coding.class}, order = 18, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Eligibility exceptions", formalDefinition="Factors which may influence the applicability of coverage." ) protected List exception; /** * Name of school for over-aged dependants. */ - @Child(name="school", type={StringType.class}, order=19, min=0, max=1) + @Child(name = "school", type = {StringType.class}, order = 19, min = 0, max = 1) @Description(shortDefinition="Name of School", formalDefinition="Name of school for over-aged dependants." ) protected StringType school; /** * Date of an accident which these services are addressing. */ - @Child(name="accident", type={DateType.class}, order=20, min=0, max=1) + @Child(name = "accident", type = {DateType.class}, order = 20, min = 0, max = 1) @Description(shortDefinition="Accident Date", formalDefinition="Date of an accident which these services are addressing." ) protected DateType accident; /** * Type of accident: work, auto, etc. */ - @Child(name="accidentType", type={Coding.class}, order=21, min=0, max=1) + @Child(name = "accidentType", type = {Coding.class}, order = 21, min = 0, max = 1) @Description(shortDefinition="Accident Type", formalDefinition="Type of accident: work, auto, etc." ) protected Coding accidentType; /** * A list of intervention and exception codes which may influence the adjudication of the claim. */ - @Child(name="interventionException", type={Coding.class}, order=22, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "interventionException", type = {Coding.class}, order = 22, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Intervention and exception code (Pharma)", formalDefinition="A list of intervention and exception codes which may influence the adjudication of the claim." ) protected List interventionException; /** * A list of teeth which would be expected but are not found due to having been previously extracted or for other reasons. */ - @Child(name="missingteeth", type={}, order=23, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "missingteeth", type = {}, order = 23, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Missing Teeth", 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 missingteeth; /** * The high-level details of an Orthodontic Treatment Plan. */ - @Child(name="orthoPlan", type={}, order=24, min=0, max=1) + @Child(name = "orthoPlan", type = {}, order = 24, min = 0, max = 1) @Description(shortDefinition="Orthodontic Treatment Plan", formalDefinition="The high-level details of an Orthodontic Treatment Plan." ) protected OrthodonticPlanComponent orthoPlan; /** * First tier of goods and services. */ - @Child(name="item", type={}, order=25, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "item", type = {}, order = 25, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Goods and Services", formalDefinition="First tier of goods and services." ) protected List item; /** * Code to indicate that Xrays, images, emails, documents, models or attachments are being sent in support of this submission. */ - @Child(name="additionalMaterials", type={Coding.class}, order=26, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "additionalMaterials", type = {Coding.class}, order = 26, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Additional materials, documents, etc.", formalDefinition="Code to indicate that Xrays, images, emails, documents, models or attachments are being sent in support of this submission." ) protected List additionalMaterials; @@ -4767,10 +4767,10 @@ public class OralHealthClaim extends DomainResource { return ResourceType.OralHealthClaim; } - @SearchParamDefinition(name="identifier", path="OralHealthClaim.identifier", description="The primary identifier of the financial resource", type="token" ) - public static final String SP_IDENTIFIER = "identifier"; - @SearchParamDefinition(name="use", path="OralHealthClaim.use", description="The kind of financial resource", type="token" ) - public static final String SP_USE = "use"; + @SearchParamDefinition(name = "identifier", path = "OralHealthClaim.identifier", description = "The primary identifier of the financial resource", type = "token") + public static final String SP_IDENTIFIER = "identifier"; + @SearchParamDefinition(name = "use", path = "OralHealthClaim.use", description = "The kind of financial resource", type = "token") + public static final String SP_USE = "use"; @SearchParamDefinition(name="patient", path="OralHealthClaim.patient", description="Patient", type="reference" ) public static final String SP_PATIENT = "patient"; @SearchParamDefinition(name="priority", path="OralHealthClaim.priority", description="Processing priority requested", type="token" ) diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Order.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Order.java index 015513adb99..892b041b64e 100644 --- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Order.java +++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Order.java @@ -158,21 +158,21 @@ public class Order extends DomainResource { /** * Identifiers assigned to this order by the orderer or by the receiver. */ - @Child(name="identifier", type={Identifier.class}, order=0, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "identifier", type = {Identifier.class}, order = 0, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Identifiers assigned to this order by the orderer or by the receiver", formalDefinition="Identifiers assigned to this order by the orderer or by the receiver." ) protected List identifier; /** * When the order was made. */ - @Child(name="date", type={DateTimeType.class}, order=1, min=0, max=1) + @Child(name = "date", type = {DateTimeType.class}, order = 1, min = 0, max = 1) @Description(shortDefinition="When the order was made", formalDefinition="When the order was made." ) protected DateTimeType date; /** * Patient this order is about. */ - @Child(name="subject", type={Patient.class, Group.class, Device.class, Substance.class}, order=2, min=0, max=1) + @Child(name = "subject", type = {Patient.class, Group.class, Device.class, Substance.class}, order = 2, min = 0, max = 1) @Description(shortDefinition="Patient this order is about", formalDefinition="Patient this order is about." ) protected Reference subject; @@ -184,7 +184,7 @@ public class Order extends DomainResource { /** * Who initiated the order. */ - @Child(name="source", type={Practitioner.class}, order=3, min=0, max=1) + @Child(name = "source", type = {Practitioner.class}, order = 3, min = 0, max = 1) @Description(shortDefinition="Who initiated the order", formalDefinition="Who initiated the order." ) protected Reference source; @@ -196,7 +196,7 @@ public class Order extends DomainResource { /** * Who is intended to fulfill the order. */ - @Child(name="target", type={Organization.class, Device.class, Practitioner.class}, order=4, min=0, max=1) + @Child(name = "target", type = {Organization.class, Device.class, Practitioner.class}, order = 4, min = 0, max = 1) @Description(shortDefinition="Who is intended to fulfill the order", formalDefinition="Who is intended to fulfill the order." ) protected Reference target; @@ -208,14 +208,14 @@ public class Order extends DomainResource { /** * Text - why the order was made. */ - @Child(name="reason", type={CodeableConcept.class}, order=5, min=0, max=1) + @Child(name = "reason", type = {CodeableConcept.class}, order = 5, min = 0, max = 1) @Description(shortDefinition="Text - why the order was made", formalDefinition="Text - why the order was made." ) protected Type reason; /** * If required by policy. */ - @Child(name="authority", type={}, order=6, min=0, max=1) + @Child(name = "authority", type = {}, order = 6, min = 0, max = 1) @Description(shortDefinition="If required by policy", formalDefinition="If required by policy." ) protected Reference authority; @@ -227,14 +227,14 @@ public class Order extends DomainResource { /** * When order should be fulfilled. */ - @Child(name="when", type={}, order=7, min=0, max=1) + @Child(name = "when", type = {}, order = 7, min = 0, max = 1) @Description(shortDefinition="When order should be fulfilled", formalDefinition="When order should be fulfilled." ) protected OrderWhenComponent when; /** * What action is being ordered. */ - @Child(name="detail", type={}, order=8, min=1, max=Child.MAX_UNLIMITED) + @Child(name = "detail", type = {}, order = 8, min = 1, max = Child.MAX_UNLIMITED) @Description(shortDefinition="What action is being ordered", formalDefinition="What action is being ordered." ) protected List detail; /** @@ -664,17 +664,17 @@ public class Order extends DomainResource { return ResourceType.Order; } - @SearchParamDefinition(name="date", path="Order.date", description="When the order was made", type="date" ) + @SearchParamDefinition(name = "date", path = "Order.date", description = "When the order was made", type = "date") public static final String SP_DATE = "date"; - @SearchParamDefinition(name="subject", path="Order.subject", description="Patient this order is about", type="reference" ) + @SearchParamDefinition(name = "subject", path = "Order.subject", description = "Patient this order is about", type = "reference") public static final String SP_SUBJECT = "subject"; @SearchParamDefinition(name="patient", path="Order.subject", description="Patient this order is about", type="reference" ) public static final String SP_PATIENT = "patient"; - @SearchParamDefinition(name="authority", path="Order.authority", description="If required by policy", type="reference" ) + @SearchParamDefinition(name = "authority", path = "Order.authority", description = "If required by policy", type = "reference") public static final String SP_AUTHORITY = "authority"; @SearchParamDefinition(name="source", path="Order.source", description="Who initiated the order", type="reference" ) public static final String SP_SOURCE = "source"; - @SearchParamDefinition(name="detail", path="Order.detail", description="What action is being ordered", type="reference" ) + @SearchParamDefinition(name = "detail", path = "Order.detail", description = "What action is being ordered", type = "reference") public static final String SP_DETAIL = "detail"; @SearchParamDefinition(name="when", path="Order.when.schedule", description="A formal schedule", type="date" ) public static final String SP_WHEN = "when"; diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/OrderResponse.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/OrderResponse.java index 5a9450f84bd..2d6b0ac102a 100644 --- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/OrderResponse.java +++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/OrderResponse.java @@ -218,14 +218,14 @@ public class OrderResponse extends DomainResource { /** * Identifiers assigned to this order. The identifiers are usually assigned by the system responding to the order, but they may be provided or added to by other systems. */ - @Child(name="identifier", type={Identifier.class}, order=0, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "identifier", type = {Identifier.class}, order = 0, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Identifiers assigned to this order by the orderer or by the receiver", formalDefinition="Identifiers assigned to this order. The identifiers are usually assigned by the system responding to the order, but they may be provided or added to by other systems." ) protected List identifier; /** * A reference to the order that this is in response to. */ - @Child(name="request", type={Order.class}, order=1, min=1, max=1) + @Child(name = "request", type = {Order.class}, order = 1, min = 1, max = 1) @Description(shortDefinition="The order that this is a response to", formalDefinition="A reference to the order that this is in response to." ) protected Reference request; @@ -237,14 +237,14 @@ public class OrderResponse extends DomainResource { /** * The date and time at which this order response was made (created/posted). */ - @Child(name="date", type={DateTimeType.class}, order=2, min=0, max=1) + @Child(name = "date", type = {DateTimeType.class}, order = 2, min = 0, max = 1) @Description(shortDefinition="When the response was made", formalDefinition="The date and time at which this order response was made (created/posted)." ) protected DateTimeType date; /** * The person, organization, or device credited with making the response. */ - @Child(name="who", type={Practitioner.class, Organization.class, Device.class}, order=3, min=0, max=1) + @Child(name = "who", type = {Practitioner.class, Organization.class, Device.class}, order = 3, min = 0, max = 1) @Description(shortDefinition="Who made the response", formalDefinition="The person, organization, or device credited with making the response." ) protected Reference who; @@ -256,28 +256,28 @@ public class OrderResponse extends DomainResource { /** * A reference to an authority policy that is the reason for the response. Usually this is used when the order is rejected, to provide a reason for rejection. */ - @Child(name="authority", type={CodeableConcept.class}, order=4, min=0, max=1) + @Child(name = "authority", type = {CodeableConcept.class}, order = 4, min = 0, max = 1) @Description(shortDefinition="If required by policy", formalDefinition="A reference to an authority policy that is the reason for the response. Usually this is used when the order is rejected, to provide a reason for rejection." ) protected Type authority; /** * What this response says about the status of the original order. */ - @Child(name="code", type={CodeType.class}, order=5, min=1, max=1) + @Child(name = "code", type = {CodeType.class}, order = 5, min = 1, max = 1) @Description(shortDefinition="pending | review | rejected | error | accepted | cancelled | replaced | aborted | complete", formalDefinition="What this response says about the status of the original order." ) protected Enumeration code; /** * Additional description about the response - e.g. a text description provided by a human user when making decisions about the order. */ - @Child(name="description", type={StringType.class}, order=6, min=0, max=1) + @Child(name = "description", type = {StringType.class}, order = 6, min = 0, max = 1) @Description(shortDefinition="Additional description of the response", formalDefinition="Additional description about the response - e.g. a text description provided by a human user when making decisions about the order." ) protected StringType description; /** * Links to resources that provide details of the outcome of performing the order. E.g. Diagnostic Reports in a response that is made to an order that referenced a diagnostic order. */ - @Child(name="fulfillment", type={}, order=7, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "fulfillment", type = {}, order = 7, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Details of the outcome of performing the order", formalDefinition="Links to resources that provide details of the outcome of performing the order. E.g. Diagnostic Reports in a response that is made to an order that referenced a diagnostic order." ) protected List fulfillment; /** @@ -704,15 +704,15 @@ public class OrderResponse extends DomainResource { return ResourceType.OrderResponse; } - @SearchParamDefinition(name="date", path="OrderResponse.date", description="When the response was made", type="date" ) + @SearchParamDefinition(name = "date", path = "OrderResponse.date", description = "When the response was made", type = "date") public static final String SP_DATE = "date"; @SearchParamDefinition(name="request", path="OrderResponse.request", description="The order that this is a response to", type="reference" ) public static final String SP_REQUEST = "request"; @SearchParamDefinition(name="code", path="OrderResponse.code", description="pending | review | rejected | error | accepted | cancelled | replaced | aborted | complete", type="token" ) public static final String SP_CODE = "code"; - @SearchParamDefinition(name="patient", path="", description="The patient the reuqest order is related to", type="reference" ) + @SearchParamDefinition(name = "patient", path = "", description = "The patient the reuqest order is related to", type = "reference") public static final String SP_PATIENT = "patient"; - @SearchParamDefinition(name="fulfillment", path="OrderResponse.fulfillment", description="Details of the outcome of performing the order", type="reference" ) + @SearchParamDefinition(name = "fulfillment", path = "OrderResponse.fulfillment", description = "Details of the outcome of performing the order", type = "reference") public static final String SP_FULFILLMENT = "fulfillment"; @SearchParamDefinition(name="who", path="OrderResponse.who", description="Who made the response", type="reference" ) public static final String SP_WHO = "who"; diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Organization.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Organization.java index c4b7149d175..2d984d52225 100644 --- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Organization.java +++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Organization.java @@ -395,42 +395,42 @@ public class Organization extends DomainResource { /** * Identifier for the organization that is used to identify the organization across multiple disparate systems. */ - @Child(name="identifier", type={Identifier.class}, order=0, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "identifier", type = {Identifier.class}, order = 0, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Identifies this organization across multiple systems", formalDefinition="Identifier for the organization that is used to identify the organization across multiple disparate systems." ) protected List identifier; /** * A name associated with the organization. */ - @Child(name="name", type={StringType.class}, order=1, min=0, max=1) + @Child(name = "name", type = {StringType.class}, order = 1, min = 0, max = 1) @Description(shortDefinition="Name used for the organization", formalDefinition="A name associated with the organization." ) protected StringType name; /** * The kind of organization that this is. */ - @Child(name="type", type={CodeableConcept.class}, order=2, min=0, max=1) + @Child(name = "type", type = {CodeableConcept.class}, order = 2, min = 0, max = 1) @Description(shortDefinition="Kind of organization", formalDefinition="The kind of organization that this is." ) protected CodeableConcept type; /** * A contact detail for the organization. */ - @Child(name="telecom", type={ContactPoint.class}, order=3, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "telecom", type = {ContactPoint.class}, order = 3, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="A contact detail for the organization", formalDefinition="A contact detail for the organization." ) protected List telecom; /** * An address for the organization. */ - @Child(name="address", type={Address.class}, order=4, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "address", type = {Address.class}, order = 4, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="An address for the organization", formalDefinition="An address for the organization." ) protected List
    address; /** * The organization of which this organization forms a part. */ - @Child(name="partOf", type={Organization.class}, order=5, min=0, max=1) + @Child(name = "partOf", type = {Organization.class}, order = 5, min = 0, max = 1) @Description(shortDefinition="The organization of which this organization forms a part", formalDefinition="The organization of which this organization forms a part." ) protected Reference partOf; @@ -442,14 +442,14 @@ public class Organization extends DomainResource { /** * Contact for the organization for a certain purpose. */ - @Child(name="contact", type={}, order=6, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "contact", type = {}, order = 6, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Contact for the organization for a certain purpose", formalDefinition="Contact for the organization for a certain purpose." ) protected List contact; /** * Location(s) the organization uses to provide services. */ - @Child(name="location", type={Location.class}, order=7, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "location", type = {Location.class}, order = 7, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Location(s) the organization uses to provide services", formalDefinition="Location(s) the organization uses to provide services." ) protected List location; /** @@ -461,7 +461,7 @@ public class Organization extends DomainResource { /** * Whether the organization's record is still in active use. */ - @Child(name="active", type={BooleanType.class}, order=8, min=0, max=1) + @Child(name = "active", type = {BooleanType.class}, order = 8, min = 0, max = 1) @Description(shortDefinition="Whether the organization's record is still in active use", formalDefinition="Whether the organization's record is still in active use." ) protected BooleanType active; @@ -891,11 +891,11 @@ public class Organization extends DomainResource { return ResourceType.Organization; } - @SearchParamDefinition(name="identifier", path="Organization.identifier", description="Any identifier for the organization (not the accreditation issuer's identifier)", type="token" ) + @SearchParamDefinition(name = "identifier", path = "Organization.identifier", description = "Any identifier for the organization (not the accreditation issuer's identifier)", type = "token") public static final String SP_IDENTIFIER = "identifier"; @SearchParamDefinition(name="partof", path="Organization.partOf", description="Search all organizations that are part of the given organization", type="reference" ) public static final String SP_PARTOF = "partof"; - @SearchParamDefinition(name="phonetic", path="", description="A portion of the organization's name using some kind of phonetic matching algorithm", type="string" ) + @SearchParamDefinition(name = "phonetic", path = "", description = "A portion of the organization's name using some kind of phonetic matching algorithm", type = "string") public static final String SP_PHONETIC = "phonetic"; @SearchParamDefinition(name="name", path="Organization.name", description="A portion of the organization's name", type="string" ) public static final String SP_NAME = "name"; diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Other.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Other.java index 74be9e6f90c..89ac6663d41 100644 --- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Other.java +++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Other.java @@ -47,21 +47,21 @@ public class Other extends DomainResource { /** * Identifier assigned to the resource for business purposes, outside the context of FHIR. */ - @Child(name="identifier", type={Identifier.class}, order=0, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "identifier", type = {Identifier.class}, order = 0, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Business identifier", formalDefinition="Identifier assigned to the resource for business purposes, outside the context of FHIR." ) protected List identifier; /** * Identifies the 'type' of resource - equivalent to the resource name for other resources. */ - @Child(name="code", type={CodeableConcept.class}, order=1, min=1, max=1) + @Child(name = "code", type = {CodeableConcept.class}, order = 1, min = 1, max = 1) @Description(shortDefinition="Kind of Resource", formalDefinition="Identifies the 'type' of resource - equivalent to the resource name for other resources." ) protected CodeableConcept code; /** * Identifies the patient, practitioner, device or any other resource that is the "focus" of this resoruce. */ - @Child(name="subject", type={}, order=2, min=0, max=1) + @Child(name = "subject", type = {}, order = 2, min = 0, max = 1) @Description(shortDefinition="Identifies the", formalDefinition="Identifies the patient, practitioner, device or any other resource that is the 'focus' of this resoruce." ) protected Reference subject; @@ -73,7 +73,7 @@ public class Other extends DomainResource { /** * Indicates who was responsible for creating the resource instance. */ - @Child(name="author", type={Practitioner.class, Patient.class, RelatedPerson.class}, order=3, min=0, max=1) + @Child(name = "author", type = {Practitioner.class, Patient.class, RelatedPerson.class}, order = 3, min = 0, max = 1) @Description(shortDefinition="Who created", formalDefinition="Indicates who was responsible for creating the resource instance." ) protected Reference author; @@ -85,7 +85,7 @@ public class Other extends DomainResource { /** * Identifies when the resource was first created. */ - @Child(name="created", type={DateType.class}, order=4, min=0, max=1) + @Child(name = "created", type = {DateType.class}, order = 4, min = 0, max = 1) @Description(shortDefinition="When created", formalDefinition="Identifies when the resource was first created." ) protected DateType created; @@ -343,12 +343,12 @@ public class Other extends DomainResource { @SearchParamDefinition(name="code", path="Other.code", description="Kind of Resource", type="token" ) public static final String SP_CODE = "code"; - @SearchParamDefinition(name="subject", path="Other.subject", description="Identifies the", type="reference" ) - public static final String SP_SUBJECT = "subject"; - @SearchParamDefinition(name="created", path="Other.created", description="When created", type="date" ) - public static final String SP_CREATED = "created"; - @SearchParamDefinition(name="patient", path="Other.subject", description="Identifies the", type="reference" ) - public static final String SP_PATIENT = "patient"; + @SearchParamDefinition(name = "subject", path = "Other.subject", description = "Identifies the", type = "reference") + public static final String SP_SUBJECT = "subject"; + @SearchParamDefinition(name = "created", path = "Other.created", description = "When created", type = "date") + public static final String SP_CREATED = "created"; + @SearchParamDefinition(name = "patient", path = "Other.subject", description = "Identifies the", type = "reference") + public static final String SP_PATIENT = "patient"; } diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Parameters.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Parameters.java index a155754de02..087e5ed7326 100644 --- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Parameters.java +++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Parameters.java @@ -385,7 +385,7 @@ public class Parameters extends Resource { /** * A parameter passed to or received from the operation. */ - @Child(name="parameter", type={}, order=0, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "parameter", type = {}, order = 0, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Operation Parameter", formalDefinition="A parameter passed to or received from the operation." ) protected List parameter; diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Patient.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Patient.java index f47945b559f..3c9594264b0 100644 --- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Patient.java +++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Patient.java @@ -897,98 +897,98 @@ public class Patient extends DomainResource { /** * An identifier that applies to this person as a patient. */ - @Child(name="identifier", type={Identifier.class}, order=0, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "identifier", type = {Identifier.class}, order = 0, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="An identifier for the person as this patient", formalDefinition="An identifier that applies to this person as a patient." ) protected List identifier; /** * A name associated with the individual. */ - @Child(name="name", type={HumanName.class}, order=1, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "name", type = {HumanName.class}, order = 1, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="A name associated with the patient", formalDefinition="A name associated with the individual." ) protected List name; /** * A contact detail (e.g. a telephone number or an email address) by which the individual may be contacted. */ - @Child(name="telecom", type={ContactPoint.class}, order=2, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "telecom", type = {ContactPoint.class}, order = 2, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="A contact detail for the individual", formalDefinition="A contact detail (e.g. a telephone number or an email address) by which the individual may be contacted." ) protected List telecom; /** * Administrative Gender - the gender that the patient is considered to have for administration and record keeping purposes. */ - @Child(name="gender", type={CodeType.class}, order=3, min=0, max=1) + @Child(name = "gender", type = {CodeType.class}, order = 3, min = 0, max = 1) @Description(shortDefinition="male | female | other | unknown", formalDefinition="Administrative Gender - the gender that the patient is considered to have for administration and record keeping purposes." ) protected Enumeration gender; /** * The date and time of birth for the individual. */ - @Child(name="birthDate", type={DateType.class}, order=4, min=0, max=1) + @Child(name = "birthDate", type = {DateType.class}, order = 4, min = 0, max = 1) @Description(shortDefinition="The date and time of birth for the individual", formalDefinition="The date and time of birth for the individual." ) protected DateType birthDate; /** * Indicates if the individual is deceased or not. */ - @Child(name="deceased", type={BooleanType.class, DateTimeType.class}, order=5, min=0, max=1) + @Child(name = "deceased", type = {BooleanType.class, DateTimeType.class}, order = 5, min = 0, max = 1) @Description(shortDefinition="Indicates if the individual is deceased or not", formalDefinition="Indicates if the individual is deceased or not." ) protected Type deceased; /** * Addresses for the individual. */ - @Child(name="address", type={Address.class}, order=6, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "address", type = {Address.class}, order = 6, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Addresses for the individual", formalDefinition="Addresses for the individual." ) protected List
    address; /** * This field contains a patient's most recent marital (civil) status. */ - @Child(name="maritalStatus", type={CodeableConcept.class}, order=7, min=0, max=1) + @Child(name = "maritalStatus", type = {CodeableConcept.class}, order = 7, min = 0, max = 1) @Description(shortDefinition="Marital (civil) status of a person", formalDefinition="This field contains a patient's most recent marital (civil) status." ) protected CodeableConcept maritalStatus; /** * Indicates whether the patient is part of a multiple or indicates the actual birth order. */ - @Child(name="multipleBirth", type={BooleanType.class, IntegerType.class}, order=8, min=0, max=1) + @Child(name = "multipleBirth", type = {BooleanType.class, IntegerType.class}, order = 8, min = 0, max = 1) @Description(shortDefinition="Whether patient is part of a multiple birth", formalDefinition="Indicates whether the patient is part of a multiple or indicates the actual birth order." ) protected Type multipleBirth; /** * Image of the person. */ - @Child(name="photo", type={Attachment.class}, order=9, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "photo", type = {Attachment.class}, order = 9, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Image of the person", formalDefinition="Image of the person." ) protected List photo; /** * A contact party (e.g. guardian, partner, friend) for the patient. */ - @Child(name="contact", type={}, order=10, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "contact", type = {}, order = 10, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="A contact party (e.g. guardian, partner, friend) for the patient", formalDefinition="A contact party (e.g. guardian, partner, friend) for the patient." ) protected List contact; /** * This element has a value if the patient is an animal. */ - @Child(name="animal", type={}, order=11, min=0, max=1) + @Child(name = "animal", type = {}, order = 11, min = 0, max = 1) @Description(shortDefinition="If this patient is an animal (non-human)", formalDefinition="This element has a value if the patient is an animal." ) protected AnimalComponent animal; /** * Languages which may be used to communicate with the patient about his or her health. */ - @Child(name="communication", type={CodeableConcept.class}, order=12, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "communication", type = {CodeableConcept.class}, order = 12, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Languages which may be used to communicate with the patient about his or her health", formalDefinition="Languages which may be used to communicate with the patient about his or her health." ) protected List communication; /** * Patient's nominated care provider. */ - @Child(name="careProvider", type={Organization.class, Practitioner.class}, order=13, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "careProvider", type = {Organization.class, Practitioner.class}, order = 13, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Patient's nominated care provider", formalDefinition="Patient's nominated care provider." ) protected List careProvider; /** @@ -1000,7 +1000,7 @@ public class Patient extends DomainResource { /** * Organization that is the custodian of the patient record. */ - @Child(name="managingOrganization", type={Organization.class}, order=14, min=0, max=1) + @Child(name = "managingOrganization", type = {Organization.class}, order = 14, min = 0, max = 1) @Description(shortDefinition="Organization that is the custodian of the patient record", formalDefinition="Organization that is the custodian of the patient record." ) protected Reference managingOrganization; @@ -1012,14 +1012,14 @@ public class Patient extends DomainResource { /** * Link to another patient resource that concerns the same actual person. */ - @Child(name="link", type={}, order=15, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "link", type = {}, order = 15, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Link to another patient resource that concerns the same actual person", formalDefinition="Link to another patient resource that concerns the same actual person." ) protected List link; /** * Whether this patient record is in active use. */ - @Child(name="active", type={BooleanType.class}, order=16, min=0, max=1) + @Child(name = "active", type = {BooleanType.class}, order = 16, min = 0, max = 1) @Description(shortDefinition="Whether this patient's record is in active use", formalDefinition="Whether this patient record is in active use." ) protected BooleanType active; @@ -1743,8 +1743,8 @@ public class Patient extends DomainResource { return ResourceType.Patient; } - @SearchParamDefinition(name="identifier", path="Patient.identifier", description="A patient identifier", type="token" ) - public static final String SP_IDENTIFIER = "identifier"; + @SearchParamDefinition(name = "identifier", path = "Patient.identifier", description = "A patient identifier", type = "token") + public static final String SP_IDENTIFIER = "identifier"; @SearchParamDefinition(name="given", path="Patient.name.given", description="A portion of the given name of the patient", type="string" ) public static final String SP_GIVEN = "given"; @SearchParamDefinition(name="address", path="Patient.address", description="An address in any kind of address/part of the patient", type="string" ) @@ -1753,28 +1753,28 @@ public class Patient extends DomainResource { public static final String SP_BIRTHDATE = "birthdate"; @SearchParamDefinition(name="gender", path="Patient.gender", description="Gender of the patient", type="token" ) public static final String SP_GENDER = "gender"; - @SearchParamDefinition(name="animal-species", path="Patient.animal.species", description="The species for animal patients", type="token" ) - public static final String SP_ANIMALSPECIES = "animal-species"; - @SearchParamDefinition(name="link", path="Patient.link.other", description="All patients linked to the given patient", type="reference" ) - public static final String SP_LINK = "link"; - @SearchParamDefinition(name="active", path="Patient.active", description="Whether the patient record is active", type="token" ) - public static final String SP_ACTIVE = "active"; + @SearchParamDefinition(name = "animal-species", path = "Patient.animal.species", description = "The species for animal patients", type = "token") + public static final String SP_ANIMALSPECIES = "animal-species"; + @SearchParamDefinition(name = "link", path = "Patient.link.other", description = "All patients linked to the given patient", type = "reference") + public static final String SP_LINK = "link"; + @SearchParamDefinition(name = "active", path = "Patient.active", description = "Whether the patient record is active", type = "token") + public static final String SP_ACTIVE = "active"; @SearchParamDefinition(name="language", path="Patient.communication", description="Language code (irrespective of use value)", type="token" ) public static final String SP_LANGUAGE = "language"; - @SearchParamDefinition(name="animal-breed", path="Patient.animal.breed", description="The breed for animal patients", type="token" ) - public static final String SP_ANIMALBREED = "animal-breed"; - @SearchParamDefinition(name="careprovider", path="Patient.careProvider", description="Patient's nominated care provider, could be a care manager, not the organization that manages the record", type="reference" ) - public static final String SP_CAREPROVIDER = "careprovider"; - @SearchParamDefinition(name="phonetic", path="", description="A portion of either family or given name using some kind of phonetic matching algorithm", type="string" ) - public static final String SP_PHONETIC = "phonetic"; - @SearchParamDefinition(name="organization", path="Patient.managingOrganization", description="The organization at which this person is a patient", type="reference" ) - public static final String SP_ORGANIZATION = "organization"; - @SearchParamDefinition(name="name", path="Patient.name", description="A portion of either family or given name of the patient", type="string" ) - public static final String SP_NAME = "name"; - @SearchParamDefinition(name="telecom", path="Patient.telecom", description="The value in any kind of telecom details of the patient", type="string" ) - public static final String SP_TELECOM = "telecom"; - @SearchParamDefinition(name="family", path="Patient.name.family", description="A portion of the family name of the patient", type="string" ) - public static final String SP_FAMILY = "family"; + @SearchParamDefinition(name = "animal-breed", path = "Patient.animal.breed", description = "The breed for animal patients", type = "token") + public static final String SP_ANIMALBREED = "animal-breed"; + @SearchParamDefinition(name = "careprovider", path = "Patient.careProvider", description = "Patient's nominated care provider, could be a care manager, not the organization that manages the record", type = "reference") + public static final String SP_CAREPROVIDER = "careprovider"; + @SearchParamDefinition(name = "phonetic", path = "", description = "A portion of either family or given name using some kind of phonetic matching algorithm", type = "string") + public static final String SP_PHONETIC = "phonetic"; + @SearchParamDefinition(name = "organization", path = "Patient.managingOrganization", description = "The organization at which this person is a patient", type = "reference") + public static final String SP_ORGANIZATION = "organization"; + @SearchParamDefinition(name = "name", path = "Patient.name", description = "A portion of either family or given name of the patient", type = "string") + public static final String SP_NAME = "name"; + @SearchParamDefinition(name = "telecom", path = "Patient.telecom", description = "The value in any kind of telecom details of the patient", type = "string") + public static final String SP_TELECOM = "telecom"; + @SearchParamDefinition(name = "family", path = "Patient.name.family", description = "A portion of the family name of the patient", type = "string") + public static final String SP_FAMILY = "family"; } diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/PaymentNotice.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/PaymentNotice.java index f3a401de15c..87c2b55a1f7 100644 --- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/PaymentNotice.java +++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/PaymentNotice.java @@ -47,35 +47,35 @@ public class PaymentNotice extends DomainResource { /** * The Response Business Identifier. */ - @Child(name="identifier", type={Identifier.class}, order=0, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "identifier", type = {Identifier.class}, order = 0, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Business Identifier", formalDefinition="The Response Business Identifier." ) protected List identifier; /** * The version of the style of resource contents. This should be mapped to the allowable profiles for this and supporting resources. */ - @Child(name="ruleset", type={Coding.class}, order=1, min=0, max=1) + @Child(name = "ruleset", type = {Coding.class}, order = 1, min = 0, max = 1) @Description(shortDefinition="Resource version", formalDefinition="The version of the style of resource contents. This should be mapped to the allowable profiles for this and supporting resources." ) protected Coding ruleset; /** * The style (standard) and version of the original material which was converted into this resource. */ - @Child(name="originalRuleset", type={Coding.class}, order=2, min=0, max=1) + @Child(name = "originalRuleset", type = {Coding.class}, order = 2, min = 0, max = 1) @Description(shortDefinition="Original version", formalDefinition="The style (standard) and version of the original material which was converted into this resource." ) protected Coding originalRuleset; /** * The date when this resource was created. */ - @Child(name="created", type={DateTimeType.class}, order=3, min=0, max=1) + @Child(name = "created", type = {DateTimeType.class}, order = 3, min = 0, max = 1) @Description(shortDefinition="Creation date", formalDefinition="The date when this resource was created." ) protected DateTimeType created; /** * The Insurer who is target of the request. */ - @Child(name="target", type={Organization.class}, order=4, min=0, max=1) + @Child(name = "target", type = {Organization.class}, order = 4, min = 0, max = 1) @Description(shortDefinition="Insurer or Regulatory body", formalDefinition="The Insurer who is target of the request." ) protected Reference target; @@ -87,7 +87,7 @@ public class PaymentNotice extends DomainResource { /** * The practitioner who is responsible for the services rendered to the patient. */ - @Child(name="provider", type={Practitioner.class}, order=5, min=0, max=1) + @Child(name = "provider", type = {Practitioner.class}, order = 5, min = 0, max = 1) @Description(shortDefinition="Responsible practitioner", formalDefinition="The practitioner who is responsible for the services rendered to the patient." ) protected Reference provider; @@ -99,7 +99,7 @@ public class PaymentNotice extends DomainResource { /** * The organization which is responsible for the services rendered to the patient. */ - @Child(name="organization", type={Organization.class}, order=6, min=0, max=1) + @Child(name = "organization", type = {Organization.class}, order = 6, min = 0, max = 1) @Description(shortDefinition="Responsible organization", formalDefinition="The organization which is responsible for the services rendered to the patient." ) protected Reference organization; @@ -111,7 +111,7 @@ public class PaymentNotice extends DomainResource { /** * Reference of resource to reverse. */ - @Child(name="request", type={}, order=7, min=0, max=1) + @Child(name = "request", type = {}, order = 7, min = 0, max = 1) @Description(shortDefinition="Request reference", formalDefinition="Reference of resource to reverse." ) protected Reference request; @@ -123,7 +123,7 @@ public class PaymentNotice extends DomainResource { /** * Reference of response to resource to reverse. */ - @Child(name="response", type={}, order=8, min=0, max=1) + @Child(name = "response", type = {}, order = 8, min = 0, max = 1) @Description(shortDefinition="Response reference", formalDefinition="Reference of response to resource to reverse." ) protected Reference response; @@ -135,7 +135,7 @@ public class PaymentNotice extends DomainResource { /** * The payment status, typically paid: payment sent, cleared: payment received. */ - @Child(name="paymentStatus", type={Coding.class}, order=9, min=1, max=1) + @Child(name = "paymentStatus", type = {Coding.class}, order = 9, min = 1, max = 1) @Description(shortDefinition="Status of the payment", formalDefinition="The payment status, typically paid: payment sent, cleared: payment received." ) protected Coding paymentStatus; diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/PaymentReconciliation.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/PaymentReconciliation.java index 2bd7f56627f..fb1e1b701d2 100644 --- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/PaymentReconciliation.java +++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/PaymentReconciliation.java @@ -656,14 +656,14 @@ public class PaymentReconciliation extends DomainResource { /** * The Response Business Identifier. */ - @Child(name="identifier", type={Identifier.class}, order=0, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "identifier", type = {Identifier.class}, order = 0, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Business Identifier", formalDefinition="The Response Business Identifier." ) protected List identifier; /** * Original request resource reference. */ - @Child(name="request", type={PendedRequest.class}, order=1, min=0, max=1) + @Child(name = "request", type = {PendedRequest.class}, order = 1, min = 0, max = 1) @Description(shortDefinition="Claim reference", formalDefinition="Original request resource reference." ) protected Reference request; @@ -675,49 +675,49 @@ public class PaymentReconciliation extends DomainResource { /** * Transaction status: error, complete. */ - @Child(name="outcome", type={CodeType.class}, order=2, min=0, max=1) + @Child(name = "outcome", type = {CodeType.class}, order = 2, min = 0, max = 1) @Description(shortDefinition="complete | error", formalDefinition="Transaction status: error, complete." ) protected Enumeration outcome; /** * A description of the status of the adjudication. */ - @Child(name="disposition", type={StringType.class}, order=3, min=0, max=1) + @Child(name = "disposition", type = {StringType.class}, order = 3, min = 0, max = 1) @Description(shortDefinition="Disposition Message", formalDefinition="A description of the status of the adjudication." ) protected StringType disposition; /** * The version of the style of resource contents. This should be mapped to the allowable profiles for this and supporting resources. */ - @Child(name="ruleset", type={Coding.class}, order=4, min=0, max=1) + @Child(name = "ruleset", type = {Coding.class}, order = 4, min = 0, max = 1) @Description(shortDefinition="Resource version", formalDefinition="The version of the style of resource contents. This should be mapped to the allowable profiles for this and supporting resources." ) protected Coding ruleset; /** * The style (standard) and version of the original material which was converted into this resource. */ - @Child(name="originalRuleset", type={Coding.class}, order=5, min=0, max=1) + @Child(name = "originalRuleset", type = {Coding.class}, order = 5, min = 0, max = 1) @Description(shortDefinition="Original version", formalDefinition="The style (standard) and version of the original material which was converted into this resource." ) protected Coding originalRuleset; /** * The date when the enclosed suite of services were performed or completed. */ - @Child(name="created", type={DateTimeType.class}, order=6, min=0, max=1) + @Child(name = "created", type = {DateTimeType.class}, order = 6, min = 0, max = 1) @Description(shortDefinition="Creation date", formalDefinition="The date when the enclosed suite of services were performed or completed." ) protected DateTimeType created; /** * The period of time for which payments have been gathered into this bulk payment for settlement. */ - @Child(name="period", type={Period.class}, order=7, min=0, max=1) + @Child(name = "period", type = {Period.class}, order = 7, min = 0, max = 1) @Description(shortDefinition="Period covered", formalDefinition="The period of time for which payments have been gathered into this bulk payment for settlement." ) protected Period period; /** * The Insurer who produced this adjudicated response. */ - @Child(name="organization", type={Organization.class}, order=8, min=0, max=1) + @Child(name = "organization", type = {Organization.class}, order = 8, min = 0, max = 1) @Description(shortDefinition="Insurer", formalDefinition="The Insurer who produced this adjudicated response." ) protected Reference organization; @@ -729,7 +729,7 @@ public class PaymentReconciliation extends DomainResource { /** * The practitioner who is responsible for the services rendered to the patient. */ - @Child(name="requestProvider", type={Practitioner.class}, order=9, min=0, max=1) + @Child(name = "requestProvider", type = {Practitioner.class}, order = 9, min = 0, max = 1) @Description(shortDefinition="Responsible practitioner", formalDefinition="The practitioner who is responsible for the services rendered to the patient." ) protected Reference requestProvider; @@ -741,7 +741,7 @@ public class PaymentReconciliation extends DomainResource { /** * The organization which is responsible for the services rendered to the patient. */ - @Child(name="requestOrganization", type={Organization.class}, order=10, min=0, max=1) + @Child(name = "requestOrganization", type = {Organization.class}, order = 10, min = 0, max = 1) @Description(shortDefinition="Responsible organization", formalDefinition="The organization which is responsible for the services rendered to the patient." ) protected Reference requestOrganization; @@ -753,28 +753,28 @@ public class PaymentReconciliation extends DomainResource { /** * List of individual settlement amounts and the corresponding transaction. */ - @Child(name="detail", type={}, order=11, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "detail", type = {}, order = 11, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Details", formalDefinition="List of individual settlement amounts and the corresponding transaction." ) protected List detail; /** * The form to be used for printing the content. */ - @Child(name="form", type={Coding.class}, order=12, min=0, max=1) + @Child(name = "form", type = {Coding.class}, order = 12, min = 0, max = 1) @Description(shortDefinition="Printed Form Identifier", formalDefinition="The form to be used for printing the content." ) protected Coding form; /** * Total payment amount. */ - @Child(name="total", type={Money.class}, order=13, min=1, max=1) + @Child(name = "total", type = {Money.class}, order = 13, min = 1, max = 1) @Description(shortDefinition="Total amount of Payment", formalDefinition="Total payment amount." ) protected Money total; /** * Suite of notes. */ - @Child(name="note", type={}, order=14, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "note", type = {}, order = 14, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Note text", formalDefinition="Suite of notes." ) protected List note; diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/PendedRequest.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/PendedRequest.java index aa452554a77..6a23d055fd6 100644 --- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/PendedRequest.java +++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/PendedRequest.java @@ -48,35 +48,35 @@ public class PendedRequest extends DomainResource { /** * The Response Business Identifier. */ - @Child(name="identifier", type={Identifier.class}, order=0, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "identifier", type = {Identifier.class}, order = 0, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Business Identifier", formalDefinition="The Response Business Identifier." ) protected List identifier; /** * The version of the style of resource contents. This should be mapped to the allowable profiles for this and supporting resources. */ - @Child(name="ruleset", type={Coding.class}, order=1, min=0, max=1) + @Child(name = "ruleset", type = {Coding.class}, order = 1, min = 0, max = 1) @Description(shortDefinition="Resource version", formalDefinition="The version of the style of resource contents. This should be mapped to the allowable profiles for this and supporting resources." ) protected Coding ruleset; /** * The style (standard) and version of the original material which was converted into this resource. */ - @Child(name="originalRuleset", type={Coding.class}, order=2, min=0, max=1) + @Child(name = "originalRuleset", type = {Coding.class}, order = 2, min = 0, max = 1) @Description(shortDefinition="Original version", formalDefinition="The style (standard) and version of the original material which was converted into this resource." ) protected Coding originalRuleset; /** * The date when this resource was created. */ - @Child(name="created", type={DateTimeType.class}, order=3, min=0, max=1) + @Child(name = "created", type = {DateTimeType.class}, order = 3, min = 0, max = 1) @Description(shortDefinition="Creation date", formalDefinition="The date when this resource was created." ) protected DateTimeType created; /** * The Insurer who is target of the request. */ - @Child(name="target", type={Organization.class}, order=4, min=0, max=1) + @Child(name = "target", type = {Organization.class}, order = 4, min = 0, max = 1) @Description(shortDefinition="Insurer", formalDefinition="The Insurer who is target of the request." ) protected Reference target; @@ -88,7 +88,7 @@ public class PendedRequest extends DomainResource { /** * The practitioner who is responsible for the services rendered to the patient. */ - @Child(name="provider", type={Practitioner.class}, order=5, min=0, max=1) + @Child(name = "provider", type = {Practitioner.class}, order = 5, min = 0, max = 1) @Description(shortDefinition="Responsible practitioner", formalDefinition="The practitioner who is responsible for the services rendered to the patient." ) protected Reference provider; @@ -100,7 +100,7 @@ public class PendedRequest extends DomainResource { /** * The organization which is responsible for the services rendered to the patient. */ - @Child(name="organization", type={Organization.class}, order=6, min=0, max=1) + @Child(name = "organization", type = {Organization.class}, order = 6, min = 0, max = 1) @Description(shortDefinition="Responsible organization", formalDefinition="The organization which is responsible for the services rendered to the patient." ) protected Reference organization; @@ -112,7 +112,7 @@ public class PendedRequest extends DomainResource { /** * Reference of resource to reverse. */ - @Child(name="request", type={}, order=7, min=0, max=1) + @Child(name = "request", type = {}, order = 7, min = 0, max = 1) @Description(shortDefinition="Request reference", formalDefinition="Reference of resource to reverse." ) protected Reference request; @@ -124,21 +124,21 @@ public class PendedRequest extends DomainResource { /** * Names of resource types to include. */ - @Child(name="include", type={StringType.class}, order=8, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "include", type = {StringType.class}, order = 8, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Resource type(s) to include", formalDefinition="Names of resource types to include." ) protected List include; /** * Names of resource types to exclude. */ - @Child(name="exclude", type={StringType.class}, order=9, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "exclude", type = {StringType.class}, order = 9, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Resource type(s) to exclude", formalDefinition="Names of resource types to exclude." ) protected List exclude; /** * A period of time during which the fulfilling resources would have been created. */ - @Child(name="period", type={Period.class}, order=10, min=0, max=1) + @Child(name = "period", type = {Period.class}, order = 10, min = 0, max = 1) @Description(shortDefinition="Period", formalDefinition="A period of time during which the fulfilling resources would have been created." ) protected Period period; diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Period.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Period.java index e589d7d0de8..4e10fd82401 100644 --- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Period.java +++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Period.java @@ -40,19 +40,19 @@ import org.hl7.fhir.instance.model.annotations.DatatypeDef; * A time period defined by a start and end date and optionally time. */ @DatatypeDef(name="Period") -public class Period extends Type implements ICompositeType { +public class Period extends Type implements ICompositeType { /** * The start of the period. The boundary is inclusive. */ - @Child(name="start", type={DateTimeType.class}, order=0, min=0, max=1) + @Child(name = "start", type = {DateTimeType.class}, order = 0, min = 0, max = 1) @Description(shortDefinition="Starting time with inclusive boundary", formalDefinition="The start of the period. The boundary is inclusive." ) protected DateTimeType start; /** * The end of the period. If the end of the period is missing, it means that the period is ongoing. */ - @Child(name="end", type={DateTimeType.class}, order=1, min=0, max=1) + @Child(name = "end", type = {DateTimeType.class}, order = 1, min = 0, max = 1) @Description(shortDefinition="End time with inclusive boundary, if not ongoing", formalDefinition="The end of the period. If the end of the period is missing, it means that the period is ongoing." ) protected DateTimeType end; diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Person.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Person.java index d67222227c1..b7e6a3d392e 100644 --- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Person.java +++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Person.java @@ -409,56 +409,56 @@ public class Person extends DomainResource { /** * Identifier for a person within a particular scope. */ - @Child(name="identifier", type={Identifier.class}, order=0, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "identifier", type = {Identifier.class}, order = 0, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="A Human identifier for this person", formalDefinition="Identifier for a person within a particular scope." ) protected List identifier; /** * A name associated with the person. */ - @Child(name="name", type={HumanName.class}, order=1, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "name", type = {HumanName.class}, order = 1, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="A name associated with the person", formalDefinition="A name associated with the person." ) protected List name; /** * A contact detail for the person, e.g. a telephone number or an email address. */ - @Child(name="telecom", type={ContactPoint.class}, order=2, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "telecom", type = {ContactPoint.class}, order = 2, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="A contact detail for the person", formalDefinition="A contact detail for the person, e.g. a telephone number or an email address." ) protected List telecom; /** * Administrative Gender. */ - @Child(name="gender", type={CodeType.class}, order=3, min=0, max=1) + @Child(name = "gender", type = {CodeType.class}, order = 3, min = 0, max = 1) @Description(shortDefinition="male | female | other | unknown", formalDefinition="Administrative Gender." ) protected Enumeration gender; /** * The birth date for the person. */ - @Child(name="birthDate", type={DateTimeType.class}, order=4, min=0, max=1) + @Child(name = "birthDate", type = {DateTimeType.class}, order = 4, min = 0, max = 1) @Description(shortDefinition="The birth date for the person", formalDefinition="The birth date for the person." ) protected DateTimeType birthDate; /** * One or more addresses for the person. */ - @Child(name="address", type={Address.class}, order=5, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "address", type = {Address.class}, order = 5, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="One or more addresses for the person", formalDefinition="One or more addresses for the person." ) protected List
    address; /** * An image that can be displayed as a thumbnail of the person to enhance the identification of the individual. */ - @Child(name="photo", type={Attachment.class}, order=6, min=0, max=1) + @Child(name = "photo", type = {Attachment.class}, order = 6, min = 0, max = 1) @Description(shortDefinition="Image of the Person", formalDefinition="An image that can be displayed as a thumbnail of the person to enhance the identification of the individual." ) protected Attachment photo; /** * The Organization that is the custodian of the person record. */ - @Child(name="managingOrganization", type={Organization.class}, order=7, min=0, max=1) + @Child(name = "managingOrganization", type = {Organization.class}, order = 7, min = 0, max = 1) @Description(shortDefinition="The Organization that is the custodian of the person record", formalDefinition="The Organization that is the custodian of the person record." ) protected Reference managingOrganization; @@ -470,14 +470,14 @@ public class Person extends DomainResource { /** * Whether this person's record is in active use. */ - @Child(name="active", type={BooleanType.class}, order=8, min=0, max=1) + @Child(name = "active", type = {BooleanType.class}, order = 8, min = 0, max = 1) @Description(shortDefinition="This person's record is in active use", formalDefinition="Whether this person's record is in active use." ) protected BooleanType active; /** * Link to a resource that converns the same actual person. */ - @Child(name="link", type={}, order=9, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "link", type = {}, order = 9, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Link to a resource that converns the same actual person", formalDefinition="Link to a resource that converns the same actual person." ) protected List link; @@ -938,8 +938,8 @@ public class Person extends DomainResource { return ResourceType.Person; } - @SearchParamDefinition(name="identifier", path="Person.identifier", description="A person Identifier", type="token" ) - public static final String SP_IDENTIFIER = "identifier"; + @SearchParamDefinition(name = "identifier", path = "Person.identifier", description = "A person Identifier", type = "token") + public static final String SP_IDENTIFIER = "identifier"; @SearchParamDefinition(name="phonetic", path="", description="A portion of name using some kind of phonetic matching algorithm", type="string" ) public static final String SP_PHONETIC = "phonetic"; @SearchParamDefinition(name="address", path="Person.address", description="An address in any kind of address/part", type="string" ) @@ -948,12 +948,12 @@ public class Person extends DomainResource { public static final String SP_BIRTHDATE = "birthdate"; @SearchParamDefinition(name="gender", path="Person.gender", description="The gender of the person", type="token" ) public static final String SP_GENDER = "gender"; - @SearchParamDefinition(name="organization", path="Person.managingOrganization", description="The organization at which this person record is being managed", type="reference" ) - public static final String SP_ORGANIZATION = "organization"; - @SearchParamDefinition(name="name", path="Person.name", description="A portion of name in any name part", type="string" ) - public static final String SP_NAME = "name"; - @SearchParamDefinition(name="telecom", path="Person.telecom", description="The value in any kind of contact", type="string" ) - public static final String SP_TELECOM = "telecom"; + @SearchParamDefinition(name = "organization", path = "Person.managingOrganization", description = "The organization at which this person record is being managed", type = "reference") + public static final String SP_ORGANIZATION = "organization"; + @SearchParamDefinition(name = "name", path = "Person.name", description = "A portion of name in any name part", type = "string") + public static final String SP_NAME = "name"; + @SearchParamDefinition(name = "telecom", path = "Person.telecom", description = "The value in any kind of contact", type = "string") + public static final String SP_TELECOM = "telecom"; } diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/PharmacyClaim.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/PharmacyClaim.java index 6c93dec4010..bda2b6fa23e 100644 --- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/PharmacyClaim.java +++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/PharmacyClaim.java @@ -2688,35 +2688,35 @@ public class PharmacyClaim extends DomainResource { /** * The business identifier for the instance: invoice number, claim number, pre-determination or pre-authorization number. */ - @Child(name="identifier", type={Identifier.class}, order=0, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "identifier", type = {Identifier.class}, order = 0, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Claim number", formalDefinition="The business identifier for the instance: invoice number, claim number, pre-determination or pre-authorization number." ) protected List identifier; /** * The version of the specification on which this instance relies. */ - @Child(name="ruleset", type={Coding.class}, order=1, min=0, max=1) + @Child(name = "ruleset", type = {Coding.class}, order = 1, min = 0, max = 1) @Description(shortDefinition="Current specification followed", formalDefinition="The version of the specification on which this instance relies." ) protected Coding ruleset; /** * The version of the specification from which the original instance was created. */ - @Child(name="originalRuleset", type={Coding.class}, order=2, min=0, max=1) + @Child(name = "originalRuleset", type = {Coding.class}, order = 2, min = 0, max = 1) @Description(shortDefinition="Original specification followed", formalDefinition="The version of the specification from which the original instance was created." ) protected Coding originalRuleset; /** * The date when the enclosed suite of services were performed or completed. */ - @Child(name="created", type={DateTimeType.class}, order=3, min=0, max=1) + @Child(name = "created", type = {DateTimeType.class}, order = 3, min = 0, max = 1) @Description(shortDefinition="Creation date", formalDefinition="The date when the enclosed suite of services were performed or completed." ) protected DateTimeType created; /** * Insurer Identifier, typical BIN number (6 digit). */ - @Child(name="target", type={Organization.class}, order=4, min=0, max=1) + @Child(name = "target", type = {Organization.class}, order = 4, min = 0, max = 1) @Description(shortDefinition="Insurer", formalDefinition="Insurer Identifier, typical BIN number (6 digit)." ) protected Reference target; @@ -2728,7 +2728,7 @@ public class PharmacyClaim extends DomainResource { /** * The provider which is responsible for the bill, claim pre-determination, pre-authorization. */ - @Child(name="provider", type={Practitioner.class}, order=5, min=0, max=1) + @Child(name = "provider", type = {Practitioner.class}, order = 5, min = 0, max = 1) @Description(shortDefinition="Responsible provider", formalDefinition="The provider which is responsible for the bill, claim pre-determination, pre-authorization." ) protected Reference provider; @@ -2740,7 +2740,7 @@ public class PharmacyClaim extends DomainResource { /** * The organization which is responsible for the bill, claim pre-determination, pre-authorization. */ - @Child(name="organization", type={Organization.class}, order=6, min=0, max=1) + @Child(name = "organization", type = {Organization.class}, order = 6, min = 0, max = 1) @Description(shortDefinition="Responsible organization", formalDefinition="The organization which is responsible for the bill, claim pre-determination, pre-authorization." ) protected Reference organization; @@ -2752,28 +2752,28 @@ public class PharmacyClaim extends DomainResource { /** * Complete (Bill or Claim), Proposed (Pre-Authorization), Exploratory (Pre-determination). */ - @Child(name="use", type={CodeType.class}, order=7, min=0, max=1) + @Child(name = "use", type = {CodeType.class}, order = 7, min = 0, max = 1) @Description(shortDefinition="complete | proposed | exploratory | other", formalDefinition="Complete (Bill or Claim), Proposed (Pre-Authorization), Exploratory (Pre-determination)." ) protected Enumeration use; /** * Immediate (STAT), best effort (NORMAL), deferred (DEFER). */ - @Child(name="priority", type={Coding.class}, order=8, min=0, max=1) + @Child(name = "priority", type = {Coding.class}, order = 8, min = 0, max = 1) @Description(shortDefinition="Desired processing priority", formalDefinition="Immediate (STAT), best effort (NORMAL), deferred (DEFER)." ) protected Coding priority; /** * In the case of a Pre-Determination/Pre-Authorization the provider may request that funds in the amount of the expected Benefit be reserved ('Patient' or 'Provider') to pay for the Benefits determined on the subsequent claim(s). 'None' explicitly indicates no funds reserving is requested. */ - @Child(name="fundsReserve", type={Coding.class}, order=9, min=0, max=1) + @Child(name = "fundsReserve", type = {Coding.class}, order = 9, min = 0, max = 1) @Description(shortDefinition="Funds requested to be reserved", formalDefinition="In the case of a Pre-Determination/Pre-Authorization the provider may request that funds in the amount of the expected Benefit be reserved ('Patient' or 'Provider') to pay for the Benefits determined on the subsequent claim(s). 'None' explicitly indicates no funds reserving is requested." ) protected Coding fundsReserve; /** * Person who created the invoice/claim/pre-determination or pre-authorization. */ - @Child(name="enterer", type={Practitioner.class}, order=10, min=0, max=1) + @Child(name = "enterer", type = {Practitioner.class}, order = 10, min = 0, max = 1) @Description(shortDefinition="Author", formalDefinition="Person who created the invoice/claim/pre-determination or pre-authorization." ) protected Reference enterer; @@ -2785,7 +2785,7 @@ public class PharmacyClaim extends DomainResource { /** * Facility where the services were provided. */ - @Child(name="facility", type={Location.class}, order=11, min=0, max=1) + @Child(name = "facility", type = {Location.class}, order = 11, min = 0, max = 1) @Description(shortDefinition="Servicing Facility", formalDefinition="Facility where the services were provided." ) protected Reference facility; @@ -2797,7 +2797,7 @@ public class PharmacyClaim extends DomainResource { /** * Prescription to support the dispensing of pharmacy services, medications or products. */ - @Child(name="prescription", type={MedicationPrescription.class}, order=12, min=0, max=1) + @Child(name = "prescription", type = {MedicationPrescription.class}, order = 12, min = 0, max = 1) @Description(shortDefinition="Current Prescription", formalDefinition="Prescription to support the dispensing of pharmacy services, medications or products." ) protected Reference prescription; @@ -2809,7 +2809,7 @@ public class PharmacyClaim extends DomainResource { /** * Original prescription to support the dispensing of pharmacy services, medications or products. */ - @Child(name="originalPrescription", type={MedicationPrescription.class}, order=13, min=0, max=1) + @Child(name = "originalPrescription", type = {MedicationPrescription.class}, order = 13, min = 0, max = 1) @Description(shortDefinition="Original Prescription", formalDefinition="Original prescription to support the dispensing of pharmacy services, medications or products." ) protected Reference originalPrescription; @@ -2821,14 +2821,14 @@ public class PharmacyClaim extends DomainResource { /** * The party to be reimbursed for the services. */ - @Child(name="payee", type={}, order=14, min=0, max=1) + @Child(name = "payee", type = {}, order = 14, min = 0, max = 1) @Description(shortDefinition="Payee", formalDefinition="The party to be reimbursed for the services." ) protected PayeeComponent payee; /** * The referral resource which lists the date, practitioner, reason and other supporting information. */ - @Child(name="referral", type={ReferralRequest.class}, order=15, min=0, max=1) + @Child(name = "referral", type = {ReferralRequest.class}, order = 15, min = 0, max = 1) @Description(shortDefinition="Treatment Referral", formalDefinition="The referral resource which lists the date, practitioner, reason and other supporting information." ) protected Reference referral; @@ -2840,21 +2840,21 @@ public class PharmacyClaim extends DomainResource { /** * Ordered list of patient diagnosis for which care is sought. */ - @Child(name="diagnosis", type={}, order=16, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "diagnosis", type = {}, order = 16, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Diagnosis", formalDefinition="Ordered list of patient diagnosis for which care is sought." ) protected List diagnosis; /** * List of patient conditions for which care is sought. */ - @Child(name="condition", type={Coding.class}, order=17, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "condition", type = {Coding.class}, order = 17, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="List of presenting Conditions", formalDefinition="List of patient conditions for which care is sought." ) protected List condition; /** * Patient Resource. */ - @Child(name="patient", type={Patient.class}, order=18, min=1, max=1) + @Child(name = "patient", type = {Patient.class}, order = 18, min = 1, max = 1) @Description(shortDefinition="The subject of the Products and Services", formalDefinition="Patient Resource." ) protected Reference patient; @@ -2866,56 +2866,56 @@ public class PharmacyClaim extends DomainResource { /** * Financial instrument by which payment information for health care. */ - @Child(name="coverage", type={}, order=19, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "coverage", type = {}, order = 19, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Insurance or medical plan", formalDefinition="Financial instrument by which payment information for health care." ) protected List coverage; /** * Factors which may influence the applicability of coverage. */ - @Child(name="exception", type={Coding.class}, order=20, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "exception", type = {Coding.class}, order = 20, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Eligibility exceptions", formalDefinition="Factors which may influence the applicability of coverage." ) protected List exception; /** * Name of school for over-aged dependants. */ - @Child(name="school", type={StringType.class}, order=21, min=0, max=1) + @Child(name = "school", type = {StringType.class}, order = 21, min = 0, max = 1) @Description(shortDefinition="Name of School", formalDefinition="Name of school for over-aged dependants." ) protected StringType school; /** * Date of an accident which these services are addressing. */ - @Child(name="accident", type={DateType.class}, order=22, min=0, max=1) + @Child(name = "accident", type = {DateType.class}, order = 22, min = 0, max = 1) @Description(shortDefinition="Accident Date", formalDefinition="Date of an accident which these services are addressing." ) protected DateType accident; /** * Type of accident: work, auto, etc. */ - @Child(name="accidentType", type={Coding.class}, order=23, min=0, max=1) + @Child(name = "accidentType", type = {Coding.class}, order = 23, min = 0, max = 1) @Description(shortDefinition="Accident Type", formalDefinition="Type of accident: work, auto, etc." ) protected Coding accidentType; /** * A list of intervention and exception codes which may influence the adjudication of the claim. */ - @Child(name="interventionException", type={Coding.class}, order=24, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "interventionException", type = {Coding.class}, order = 24, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Intervention and exception code (Pharma)", formalDefinition="A list of intervention and exception codes which may influence the adjudication of the claim." ) protected List interventionException; /** * First tier of goods and services. */ - @Child(name="item", type={}, order=25, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "item", type = {}, order = 25, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Goods and Services", formalDefinition="First tier of goods and services." ) protected List item; /** * Code to indicate that Xrays, images, emails, documents, models or attachments are being sent in support of this submission. */ - @Child(name="additionalMaterials", type={Coding.class}, order=26, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "additionalMaterials", type = {Coding.class}, order = 26, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Additional materials, documents, etc.", formalDefinition="Code to indicate that Xrays, images, emails, documents, models or attachments are being sent in support of this submission." ) protected List additionalMaterials; @@ -4057,10 +4057,10 @@ public class PharmacyClaim extends DomainResource { return ResourceType.PharmacyClaim; } - @SearchParamDefinition(name="identifier", path="PharmacyClaim.identifier", description="The primary identifier of the financial resource", type="token" ) - public static final String SP_IDENTIFIER = "identifier"; - @SearchParamDefinition(name="use", path="PharmacyClaim.use", description="The kind of financial resource", type="token" ) - public static final String SP_USE = "use"; + @SearchParamDefinition(name = "identifier", path = "PharmacyClaim.identifier", description = "The primary identifier of the financial resource", type = "token") + public static final String SP_IDENTIFIER = "identifier"; + @SearchParamDefinition(name = "use", path = "PharmacyClaim.use", description = "The kind of financial resource", type = "token") + public static final String SP_USE = "use"; @SearchParamDefinition(name="patient", path="PharmacyClaim.patient", description="Patient", type="reference" ) public static final String SP_PATIENT = "patient"; @SearchParamDefinition(name="priority", path="PharmacyClaim.priority", description="Processing priority requested", type="token" ) diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Practitioner.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Practitioner.java index 8588b66a50e..b3ecd8b039b 100644 --- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Practitioner.java +++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Practitioner.java @@ -147,302 +147,304 @@ public class Practitioner extends DomainResource { @Block() public static class PractitionerPractitionerRoleComponent extends BackboneElement { - /** - * The Organization where the Practitioner performs the roles associated. - */ - @Child(name="managingOrganization", type={Organization.class}, order=1, min=0, max=1) - @Description(shortDefinition="The Organization where the Practitioner performs the roles associated", formalDefinition="The Organization where the Practitioner performs the roles associated." ) - protected Reference managingOrganization; + /** + * The Organization where the Practitioner performs the roles associated. + */ + @Child(name = "managingOrganization", type = {Organization.class}, order = 1, min = 0, max = 1) + @Description(shortDefinition = "The Organization where the Practitioner performs the roles associated", formalDefinition = "The Organization where the Practitioner performs the roles associated.") + protected Reference managingOrganization; - /** - * The actual object that is the target of the reference (The Organization where the Practitioner performs the roles associated.) - */ - protected Organization managingOrganizationTarget; + /** + * The actual object that is the target of the reference (The Organization where the Practitioner performs the roles associated.) + */ + protected Organization managingOrganizationTarget; - /** - * Roles which this practitioner is authorized to perform for the organization. - */ - @Child(name="role", type={CodeableConcept.class}, order=2, min=0, max=1) - @Description(shortDefinition="Roles which this practitioner may perform", formalDefinition="Roles which this practitioner is authorized to perform for the organization." ) - protected CodeableConcept role; + /** + * Roles which this practitioner is authorized to perform for the organization. + */ + @Child(name = "role", type = {CodeableConcept.class}, order = 2, min = 0, max = 1) + @Description(shortDefinition = "Roles which this practitioner may perform", formalDefinition = "Roles which this practitioner is authorized to perform for the organization.") + protected CodeableConcept role; - /** - * Specific specialty of the practitioner. - */ - @Child(name="specialty", type={CodeableConcept.class}, order=3, min=0, max=Child.MAX_UNLIMITED) - @Description(shortDefinition="Specific specialty of the practitioner", formalDefinition="Specific specialty of the practitioner." ) - protected List specialty; + /** + * Specific specialty of the practitioner. + */ + @Child(name = "specialty", type = {CodeableConcept.class}, order = 3, min = 0, max = Child.MAX_UNLIMITED) + @Description(shortDefinition = "Specific specialty of the practitioner", formalDefinition = "Specific specialty of the practitioner.") + protected List specialty; - /** - * The period during which the person is authorized to act as a practitioner in these role(s) for the organization. - */ - @Child(name="period", type={Period.class}, order=4, min=0, max=1) - @Description(shortDefinition="The period during which the practitioner is authorized to perform in these role(s)", formalDefinition="The period during which the person is authorized to act as a practitioner in these role(s) for the organization." ) - protected Period period; + /** + * The period during which the person is authorized to act as a practitioner in these role(s) for the organization. + */ + @Child(name = "period", type = {Period.class}, order = 4, min = 0, max = 1) + @Description(shortDefinition = "The period during which the practitioner is authorized to perform in these role(s)", formalDefinition = "The period during which the person is authorized to act as a practitioner in these role(s) for the organization.") + protected Period period; - /** - * The location(s) at which this practitioner provides care. - */ - @Child(name="location", type={Location.class}, order=5, min=0, max=Child.MAX_UNLIMITED) - @Description(shortDefinition="The location(s) at which this practitioner provides care", formalDefinition="The location(s) at which this practitioner provides care." ) - protected List location; - /** - * The actual objects that are the target of the reference (The location(s) at which this practitioner provides care.) - */ - protected List locationTarget; + /** + * The location(s) at which this practitioner provides care. + */ + @Child(name = "location", type = {Location.class}, order = 5, min = 0, max = Child.MAX_UNLIMITED) + @Description(shortDefinition = "The location(s) at which this practitioner provides care", formalDefinition = "The location(s) at which this practitioner provides care.") + protected List location; + /** + * The actual objects that are the target of the reference (The location(s) at which this practitioner provides care.) + */ + protected List locationTarget; - /** - * The list of healthcare services that this worker offers at this location of this organization. - */ - @Child(name="healthcareService", type={HealthcareService.class}, order=6, min=0, max=Child.MAX_UNLIMITED) - @Description(shortDefinition="The list of healthcare services that this worker offers at this location of this organization", formalDefinition="The list of healthcare services that this worker offers at this location of this organization." ) - protected List healthcareService; - /** - * The actual objects that are the target of the reference (The list of healthcare services that this worker offers at this location of this organization.) - */ - protected List healthcareServiceTarget; + /** + * The list of healthcare services that this worker offers at this location of this organization. + */ + @Child(name = "healthcareService", type = {HealthcareService.class}, order = 6, min = 0, max = Child.MAX_UNLIMITED) + @Description(shortDefinition = "The list of healthcare services that this worker offers at this location of this organization", formalDefinition = "The list of healthcare services that this worker offers at this location of this organization.") + protected List healthcareService; + /** + * The actual objects that are the target of the reference (The list of healthcare services that this worker offers at this location of this organization.) + */ + protected List healthcareServiceTarget; - private static final long serialVersionUID = -2146177018L; + private static final long serialVersionUID = -2146177018L; public PractitionerPractitionerRoleComponent() { super(); } - /** - * @return {@link #managingOrganization} (The Organization where the Practitioner performs the roles associated.) - */ - public Reference getManagingOrganization() { - if (this.managingOrganization == null) - if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create PractitionerPractitionerRoleComponent.managingOrganization"); - else if (Configuration.doAutoCreate()) - this.managingOrganization = new Reference(); // cc - return this.managingOrganization; - } + /** + * @return {@link #managingOrganization} (The Organization where the Practitioner performs the roles associated.) + */ + public Reference getManagingOrganization() { + if (this.managingOrganization == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create PractitionerPractitionerRoleComponent.managingOrganization"); + else if (Configuration.doAutoCreate()) + this.managingOrganization = new Reference(); // cc + return this.managingOrganization; + } - public boolean hasManagingOrganization() { - return this.managingOrganization != null && !this.managingOrganization.isEmpty(); - } + public boolean hasManagingOrganization() { + return this.managingOrganization != null && !this.managingOrganization.isEmpty(); + } - /** - * @param value {@link #managingOrganization} (The Organization where the Practitioner performs the roles associated.) - */ - public PractitionerPractitionerRoleComponent setManagingOrganization(Reference value) { - this.managingOrganization = value; - return this; - } + /** + * @param value {@link #managingOrganization} (The Organization where the Practitioner performs the roles associated.) + */ + public PractitionerPractitionerRoleComponent setManagingOrganization(Reference value) { + this.managingOrganization = value; + return this; + } - /** - * @return {@link #managingOrganization} 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 Organization where the Practitioner performs the roles associated.) - */ - public Organization getManagingOrganizationTarget() { - if (this.managingOrganizationTarget == null) - if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create PractitionerPractitionerRoleComponent.managingOrganization"); - else if (Configuration.doAutoCreate()) - this.managingOrganizationTarget = new Organization(); // aa - return this.managingOrganizationTarget; - } + /** + * @return {@link #managingOrganization} 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 Organization where the Practitioner performs the roles associated.) + */ + public Organization getManagingOrganizationTarget() { + if (this.managingOrganizationTarget == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create PractitionerPractitionerRoleComponent.managingOrganization"); + else if (Configuration.doAutoCreate()) + this.managingOrganizationTarget = new Organization(); // aa + return this.managingOrganizationTarget; + } - /** - * @param value {@link #managingOrganization} 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 Organization where the Practitioner performs the roles associated.) - */ - public PractitionerPractitionerRoleComponent setManagingOrganizationTarget(Organization value) { - this.managingOrganizationTarget = value; - return this; - } + /** + * @param value {@link #managingOrganization} 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 Organization where the Practitioner performs the roles associated.) + */ + public PractitionerPractitionerRoleComponent setManagingOrganizationTarget(Organization value) { + this.managingOrganizationTarget = value; + return this; + } - /** - * @return {@link #role} (Roles which this practitioner is authorized to perform for the organization.) - */ - public CodeableConcept getRole() { - if (this.role == null) - if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create PractitionerPractitionerRoleComponent.role"); - else if (Configuration.doAutoCreate()) - this.role = new CodeableConcept(); // cc - return this.role; - } + /** + * @return {@link #role} (Roles which this practitioner is authorized to perform for the organization.) + */ + public CodeableConcept getRole() { + if (this.role == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create PractitionerPractitionerRoleComponent.role"); + else if (Configuration.doAutoCreate()) + this.role = new CodeableConcept(); // cc + return this.role; + } - public boolean hasRole() { - return this.role != null && !this.role.isEmpty(); - } + public boolean hasRole() { + return this.role != null && !this.role.isEmpty(); + } - /** - * @param value {@link #role} (Roles which this practitioner is authorized to perform for the organization.) - */ - public PractitionerPractitionerRoleComponent setRole(CodeableConcept value) { - this.role = value; - return this; - } + /** + * @param value {@link #role} (Roles which this practitioner is authorized to perform for the organization.) + */ + public PractitionerPractitionerRoleComponent setRole(CodeableConcept value) { + this.role = value; + return this; + } - /** - * @return {@link #specialty} (Specific specialty of the practitioner.) - */ - public List getSpecialty() { - if (this.specialty == null) - this.specialty = new ArrayList(); - return this.specialty; - } + /** + * @return {@link #specialty} (Specific specialty of the practitioner.) + */ + public List getSpecialty() { + if (this.specialty == null) + this.specialty = new ArrayList(); + return this.specialty; + } - public boolean hasSpecialty() { - if (this.specialty == null) - return false; - for (CodeableConcept item : this.specialty) - if (!item.isEmpty()) - return true; + public boolean hasSpecialty() { + if (this.specialty == null) return false; - } + for (CodeableConcept item : this.specialty) + if (!item.isEmpty()) + return true; + return false; + } - /** - * @return {@link #specialty} (Specific specialty of the practitioner.) - */ - // syntactic sugar - public CodeableConcept addSpecialty() { //3 - CodeableConcept t = new CodeableConcept(); - if (this.specialty == null) - this.specialty = new ArrayList(); - this.specialty.add(t); - return t; - } + /** + * @return {@link #specialty} (Specific specialty of the practitioner.) + */ + // syntactic sugar + public CodeableConcept addSpecialty() { //3 + CodeableConcept t = new CodeableConcept(); + if (this.specialty == null) + this.specialty = new ArrayList(); + this.specialty.add(t); + return t; + } - /** - * @return {@link #period} (The period during which the person is authorized to act as a practitioner in these role(s) for the organization.) - */ - public Period getPeriod() { - if (this.period == null) - if (Configuration.errorOnAutoCreate()) - throw new Error("Attempt to auto-create PractitionerPractitionerRoleComponent.period"); - else if (Configuration.doAutoCreate()) - this.period = new Period(); // cc - return this.period; - } + /** + * @return {@link #period} (The period during which the person is authorized to act as a practitioner in these role(s) for the organization.) + */ + public Period getPeriod() { + if (this.period == null) + if (Configuration.errorOnAutoCreate()) + throw new Error("Attempt to auto-create PractitionerPractitionerRoleComponent.period"); + else if (Configuration.doAutoCreate()) + this.period = new Period(); // cc + return this.period; + } - public boolean hasPeriod() { - return this.period != null && !this.period.isEmpty(); - } + public boolean hasPeriod() { + return this.period != null && !this.period.isEmpty(); + } - /** - * @param value {@link #period} (The period during which the person is authorized to act as a practitioner in these role(s) for the organization.) - */ - public PractitionerPractitionerRoleComponent setPeriod(Period value) { - this.period = value; - return this; - } + /** + * @param value {@link #period} (The period during which the person is authorized to act as a practitioner in these role(s) for the organization.) + */ + public PractitionerPractitionerRoleComponent setPeriod(Period value) { + this.period = value; + return this; + } - /** - * @return {@link #location} (The location(s) at which this practitioner provides care.) - */ - public List getLocation() { - if (this.location == null) - this.location = new ArrayList(); - return this.location; - } + /** + * @return {@link #location} (The location(s) at which this practitioner provides care.) + */ + public List getLocation() { + if (this.location == null) + this.location = new ArrayList(); + return this.location; + } - public boolean hasLocation() { - if (this.location == null) - return false; - for (Reference item : this.location) - if (!item.isEmpty()) - return true; + public boolean hasLocation() { + if (this.location == null) return false; - } + for (Reference item : this.location) + if (!item.isEmpty()) + return true; + return false; + } - /** - * @return {@link #location} (The location(s) at which this practitioner provides care.) - */ - // syntactic sugar - public Reference addLocation() { //3 - Reference t = new Reference(); - if (this.location == null) - this.location = new ArrayList(); - this.location.add(t); - return t; - } + /** + * @return {@link #location} (The location(s) at which this practitioner provides care.) + */ + // syntactic sugar + public Reference addLocation() { //3 + Reference t = new Reference(); + if (this.location == null) + this.location = new ArrayList(); + this.location.add(t); + return t; + } - /** - * @return {@link #location} (The actual objects that are the target of the reference. The reference library doesn't populate this, but you can use this to hold the resources if you resolvethemt. The location(s) at which this practitioner provides care.) - */ - public List getLocationTarget() { - if (this.locationTarget == null) - this.locationTarget = new ArrayList(); - return this.locationTarget; - } + /** + * @return {@link #location} (The actual objects that are the target of the reference. The reference library doesn't populate this, but you can use this to hold the resources if you resolvethemt. The location(s) at which this practitioner provides care.) + */ + public List getLocationTarget() { + if (this.locationTarget == null) + this.locationTarget = new ArrayList(); + return this.locationTarget; + } - // syntactic sugar - /** - * @return {@link #location} (Add an actual object that is the target of the reference. The reference library doesn't use these, but you can use this to hold the resources if you resolvethemt. The location(s) at which this practitioner provides care.) - */ - public Location addLocationTarget() { - Location r = new Location(); - if (this.locationTarget == null) - this.locationTarget = new ArrayList(); - this.locationTarget.add(r); - return r; - } + // syntactic sugar - /** - * @return {@link #healthcareService} (The list of healthcare services that this worker offers at this location of this organization.) - */ - public List getHealthcareService() { - if (this.healthcareService == null) - this.healthcareService = new ArrayList(); - return this.healthcareService; - } + /** + * @return {@link #location} (Add an actual object that is the target of the reference. The reference library doesn't use these, but you can use this to hold the resources if you resolvethemt. The location(s) at which this practitioner provides care.) + */ + public Location addLocationTarget() { + Location r = new Location(); + if (this.locationTarget == null) + this.locationTarget = new ArrayList(); + this.locationTarget.add(r); + return r; + } - public boolean hasHealthcareService() { - if (this.healthcareService == null) - return false; - for (Reference item : this.healthcareService) - if (!item.isEmpty()) - return true; + /** + * @return {@link #healthcareService} (The list of healthcare services that this worker offers at this location of this organization.) + */ + public List getHealthcareService() { + if (this.healthcareService == null) + this.healthcareService = new ArrayList(); + return this.healthcareService; + } + + public boolean hasHealthcareService() { + if (this.healthcareService == null) return false; - } + for (Reference item : this.healthcareService) + if (!item.isEmpty()) + return true; + return false; + } - /** - * @return {@link #healthcareService} (The list of healthcare services that this worker offers at this location of this organization.) - */ - // syntactic sugar - public Reference addHealthcareService() { //3 - Reference t = new Reference(); - if (this.healthcareService == null) - this.healthcareService = new ArrayList(); - this.healthcareService.add(t); - return t; - } + /** + * @return {@link #healthcareService} (The list of healthcare services that this worker offers at this location of this organization.) + */ + // syntactic sugar + public Reference addHealthcareService() { //3 + Reference t = new Reference(); + if (this.healthcareService == null) + this.healthcareService = new ArrayList(); + this.healthcareService.add(t); + return t; + } - /** - * @return {@link #healthcareService} (The actual objects that are the target of the reference. The reference library doesn't populate this, but you can use this to hold the resources if you resolvethemt. The list of healthcare services that this worker offers at this location of this organization.) - */ - public List getHealthcareServiceTarget() { - if (this.healthcareServiceTarget == null) - this.healthcareServiceTarget = new ArrayList(); - return this.healthcareServiceTarget; - } + /** + * @return {@link #healthcareService} (The actual objects that are the target of the reference. The reference library doesn't populate this, but you can use this to hold the resources if you resolvethemt. The list of healthcare services that this worker offers at this location of this organization.) + */ + public List getHealthcareServiceTarget() { + if (this.healthcareServiceTarget == null) + this.healthcareServiceTarget = new ArrayList(); + return this.healthcareServiceTarget; + } - // syntactic sugar - /** - * @return {@link #healthcareService} (Add an actual object that is the target of the reference. The reference library doesn't use these, but you can use this to hold the resources if you resolvethemt. The list of healthcare services that this worker offers at this location of this organization.) - */ - public HealthcareService addHealthcareServiceTarget() { - HealthcareService r = new HealthcareService(); - if (this.healthcareServiceTarget == null) - this.healthcareServiceTarget = new ArrayList(); - this.healthcareServiceTarget.add(r); - return r; - } + // syntactic sugar - protected void listChildren(List childrenList) { - super.listChildren(childrenList); - childrenList.add(new Property("managingOrganization", "Reference(Organization)", "The Organization where the Practitioner performs the roles associated.", 0, java.lang.Integer.MAX_VALUE, managingOrganization)); - childrenList.add(new Property("role", "CodeableConcept", "Roles which this practitioner is authorized to perform for the organization.", 0, java.lang.Integer.MAX_VALUE, role)); - childrenList.add(new Property("specialty", "CodeableConcept", "Specific specialty of the practitioner.", 0, java.lang.Integer.MAX_VALUE, specialty)); - childrenList.add(new Property("period", "Period", "The period during which the person is authorized to act as a practitioner in these role(s) for the organization.", 0, java.lang.Integer.MAX_VALUE, period)); - childrenList.add(new Property("location", "Reference(Location)", "The location(s) at which this practitioner provides care.", 0, java.lang.Integer.MAX_VALUE, location)); - childrenList.add(new Property("healthcareService", "Reference(HealthcareService)", "The list of healthcare services that this worker offers at this location of this organization.", 0, java.lang.Integer.MAX_VALUE, healthcareService)); - } + /** + * @return {@link #healthcareService} (Add an actual object that is the target of the reference. The reference library doesn't use these, but you can use this to hold the resources if you resolvethemt. The list of healthcare services that this worker offers at this location of this organization.) + */ + public HealthcareService addHealthcareServiceTarget() { + HealthcareService r = new HealthcareService(); + if (this.healthcareServiceTarget == null) + this.healthcareServiceTarget = new ArrayList(); + this.healthcareServiceTarget.add(r); + return r; + } + + protected void listChildren(List childrenList) { + super.listChildren(childrenList); + childrenList.add(new Property("managingOrganization", "Reference(Organization)", "The Organization where the Practitioner performs the roles associated.", 0, java.lang.Integer.MAX_VALUE, managingOrganization)); + childrenList.add(new Property("role", "CodeableConcept", "Roles which this practitioner is authorized to perform for the organization.", 0, java.lang.Integer.MAX_VALUE, role)); + childrenList.add(new Property("specialty", "CodeableConcept", "Specific specialty of the practitioner.", 0, java.lang.Integer.MAX_VALUE, specialty)); + childrenList.add(new Property("period", "Period", "The period during which the person is authorized to act as a practitioner in these role(s) for the organization.", 0, java.lang.Integer.MAX_VALUE, period)); + childrenList.add(new Property("location", "Reference(Location)", "The location(s) at which this practitioner provides care.", 0, java.lang.Integer.MAX_VALUE, location)); + childrenList.add(new Property("healthcareService", "Reference(HealthcareService)", "The list of healthcare services that this worker offers at this location of this organization.", 0, java.lang.Integer.MAX_VALUE, healthcareService)); + } public PractitionerPractitionerRoleComponent copy() { PractitionerPractitionerRoleComponent dst = new PractitionerPractitionerRoleComponent(); @@ -453,18 +455,21 @@ public class Practitioner extends DomainResource { dst.specialty = new ArrayList(); for (CodeableConcept i : specialty) dst.specialty.add(i.copy()); - }; + } + ; dst.period = period == null ? null : period.copy(); if (location != null) { dst.location = new ArrayList(); for (Reference i : location) dst.location.add(i.copy()); - }; + } + ; if (healthcareService != null) { dst.healthcareService = new ArrayList(); for (Reference i : healthcareService) dst.healthcareService.add(i.copy()); - }; + } + ; return dst; } @@ -476,8 +481,8 @@ public class Practitioner extends DomainResource { return false; PractitionerPractitionerRoleComponent o = (PractitionerPractitionerRoleComponent) other; return compareDeep(managingOrganization, o.managingOrganization, true) && compareDeep(role, o.role, true) - && compareDeep(specialty, o.specialty, true) && compareDeep(period, o.period, true) && compareDeep(location, o.location, true) - && compareDeep(healthcareService, o.healthcareService, true); + && compareDeep(specialty, o.specialty, true) && compareDeep(period, o.period, true) && compareDeep(location, o.location, true) + && compareDeep(healthcareService, o.healthcareService, true); } @Override @@ -492,13 +497,13 @@ public class Practitioner extends DomainResource { public boolean isEmpty() { return super.isEmpty() && (managingOrganization == null || managingOrganization.isEmpty()) && (role == null || role.isEmpty()) - && (specialty == null || specialty.isEmpty()) && (period == null || period.isEmpty()) && (location == null || location.isEmpty()) - && (healthcareService == null || healthcareService.isEmpty()); + && (specialty == null || specialty.isEmpty()) && (period == null || period.isEmpty()) && (location == null || location.isEmpty()) + && (healthcareService == null || healthcareService.isEmpty()); } - } + } - @Block() + @Block() public static class PractitionerQualificationComponent extends BackboneElement { /** * An identifier that applies to this person's qualification in this role. @@ -711,82 +716,82 @@ public class Practitioner extends DomainResource { public boolean isEmpty() { return super.isEmpty() && (identifier == null || identifier.isEmpty()) && (code == null || code.isEmpty()) - && (period == null || period.isEmpty()) && (issuer == null || issuer.isEmpty()); + && (period == null || period.isEmpty()) && (issuer == null || issuer.isEmpty()); } } - /** - * An identifier that applies to this person in this role. - */ - @Child(name="identifier", type={Identifier.class}, order=0, min=0, max=Child.MAX_UNLIMITED) - @Description(shortDefinition="A identifier for the person as this agent", formalDefinition="An identifier that applies to this person in this role." ) - protected List identifier; + /** + * An identifier that applies to this person in this role. + */ + @Child(name = "identifier", type = {Identifier.class}, order = 0, min = 0, max = Child.MAX_UNLIMITED) + @Description(shortDefinition = "A identifier for the person as this agent", formalDefinition = "An identifier that applies to this person in this role.") + protected List identifier; - /** - * A name associated with the person. - */ - @Child(name="name", type={HumanName.class}, order=1, min=0, max=1) - @Description(shortDefinition="A name associated with the person", formalDefinition="A name associated with the person." ) - protected HumanName name; + /** + * A name associated with the person. + */ + @Child(name = "name", type = {HumanName.class}, order = 1, min = 0, max = 1) + @Description(shortDefinition = "A name associated with the person", formalDefinition = "A name associated with the person.") + protected HumanName name; - /** - * A contact detail for the practitioner, e.g. a telephone number or an email address. - */ - @Child(name="telecom", type={ContactPoint.class}, order=2, min=0, max=Child.MAX_UNLIMITED) + /** + * A contact detail for the practitioner, e.g. a telephone number or an email address. + */ + @Child(name = "telecom", type = {ContactPoint.class}, order = 2, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="A contact detail for the practitioner", formalDefinition="A contact detail for the practitioner, e.g. a telephone number or an email address." ) protected List telecom; /** * The postal address where the practitioner can be found or visited or to which mail can be delivered. */ - @Child(name="address", type={Address.class}, order=3, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "address", type = {Address.class}, order = 3, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Where practitioner can be found/visited", formalDefinition="The postal address where the practitioner can be found or visited or to which mail can be delivered." ) protected List
    address; /** * Administrative Gender - the gender that the person is considered to have for administration and record keeping purposes. */ - @Child(name="gender", type={CodeType.class}, order=4, min=0, max=1) - @Description(shortDefinition="male | female | other | unknown", formalDefinition="Administrative Gender - the gender that the person is considered to have for administration and record keeping purposes." ) + @Child(name = "gender", type = {CodeType.class}, order = 4, min = 0, max = 1) + @Description(shortDefinition = "male | female | other | unknown", formalDefinition = "Administrative Gender - the gender that the person is considered to have for administration and record keeping purposes.") protected Enumeration gender; - /** - * The date and time of birth for the practitioner. - */ - @Child(name="birthDate", type={DateType.class}, order=5, min=0, max=1) - @Description(shortDefinition="The date and time of birth for the practitioner", formalDefinition="The date and time of birth for the practitioner." ) - protected DateType birthDate; + /** + * The date and time of birth for the practitioner. + */ + @Child(name = "birthDate", type = {DateType.class}, order = 5, min = 0, max = 1) + @Description(shortDefinition = "The date and time of birth for the practitioner", formalDefinition = "The date and time of birth for the practitioner.") + protected DateType birthDate; - /** - * Image of the person. - */ - @Child(name="photo", type={Attachment.class}, order=6, min=0, max=Child.MAX_UNLIMITED) - @Description(shortDefinition="Image of the person", formalDefinition="Image of the person." ) - protected List photo; + /** + * Image of the person. + */ + @Child(name = "photo", type = {Attachment.class}, order = 6, min = 0, max = Child.MAX_UNLIMITED) + @Description(shortDefinition = "Image of the person", formalDefinition = "Image of the person.") + protected List photo; - /** - * The list of Roles/Organizations that the Practitioner is associated with. - */ - @Child(name="practitionerRole", type={}, order=7, min=0, max=Child.MAX_UNLIMITED) - @Description(shortDefinition="The list of Roles/Organizations that the Practitioner is associated with", formalDefinition="The list of Roles/Organizations that the Practitioner is associated with." ) - protected List practitionerRole; + /** + * The list of Roles/Organizations that the Practitioner is associated with. + */ + @Child(name = "practitionerRole", type = {}, order = 7, min = 0, max = Child.MAX_UNLIMITED) + @Description(shortDefinition = "The list of Roles/Organizations that the Practitioner is associated with", formalDefinition = "The list of Roles/Organizations that the Practitioner is associated with.") + protected List practitionerRole; - /** - * Qualifications obtained by training and certification. - */ - @Child(name="qualification", type={}, order=8, min=0, max=Child.MAX_UNLIMITED) - @Description(shortDefinition="Qualifications obtained by training and certification", formalDefinition="Qualifications obtained by training and certification." ) - protected List qualification; + /** + * Qualifications obtained by training and certification. + */ + @Child(name = "qualification", type = {}, order = 8, min = 0, max = Child.MAX_UNLIMITED) + @Description(shortDefinition = "Qualifications obtained by training and certification", formalDefinition = "Qualifications obtained by training and certification.") + protected List qualification; - /** - * A language the practitioner is able to use in patient communication. - */ - @Child(name="communication", type={CodeableConcept.class}, order=9, min=0, max=Child.MAX_UNLIMITED) - @Description(shortDefinition="A language the practitioner is able to use in patient communication", formalDefinition="A language the practitioner is able to use in patient communication." ) - protected List communication; + /** + * A language the practitioner is able to use in patient communication. + */ + @Child(name = "communication", type = {CodeableConcept.class}, order = 9, min = 0, max = Child.MAX_UNLIMITED) + @Description(shortDefinition = "A language the practitioner is able to use in patient communication", formalDefinition = "A language the practitioner is able to use in patient communication.") + protected List communication; - private static final long serialVersionUID = 781100268L; + private static final long serialVersionUID = 781100268L; public Practitioner() { super(); @@ -978,7 +983,7 @@ public class Practitioner extends DomainResource { /** * @param value {@link #birthDate} (The date and time of birth for the practitioner.). This is the underlying object with id, value and extensions. The accessor "getBirthDate" gives direct access to the value */ - public Practitioner setBirthDateElement(DateType value) { + public Practitioner setBirthDateElement(DateType value) { this.birthDate = value; return this; } @@ -986,14 +991,14 @@ public class Practitioner extends DomainResource { /** * @return The date and time of birth for the practitioner. */ - public Date getBirthDate() { + public Date getBirthDate() { return this.birthDate == null ? null : this.birthDate.getValue(); } - /** - * @param value The date and time of birth for the practitioner. + /** + * @param value The date and time of birth for the practitioner. */ - public Practitioner setBirthDate(Date value) { + public Practitioner setBirthDate(Date value) { if (value == null) this.birthDate = null; else { @@ -1034,32 +1039,32 @@ public class Practitioner extends DomainResource { return t; } - /** - * @return {@link #practitionerRole} (The list of Roles/Organizations that the Practitioner is associated with.) - */ - public List getPractitionerRole() { - if (this.practitionerRole == null) - this.practitionerRole = new ArrayList(); - return this.practitionerRole; - } + /** + * @return {@link #practitionerRole} (The list of Roles/Organizations that the Practitioner is associated with.) + */ + public List getPractitionerRole() { + if (this.practitionerRole == null) + this.practitionerRole = new ArrayList(); + return this.practitionerRole; + } - public boolean hasPractitionerRole() { - if (this.practitionerRole == null) - return false; - for (PractitionerPractitionerRoleComponent item : this.practitionerRole) - if (!item.isEmpty()) - return true; + public boolean hasPractitionerRole() { + if (this.practitionerRole == null) return false; - } + for (PractitionerPractitionerRoleComponent item : this.practitionerRole) + if (!item.isEmpty()) + return true; + return false; + } - /** - * @return {@link #practitionerRole} (The list of Roles/Organizations that the Practitioner is associated with.) - */ - // syntactic sugar - public PractitionerPractitionerRoleComponent addPractitionerRole() { //3 - PractitionerPractitionerRoleComponent t = new PractitionerPractitionerRoleComponent(); - if (this.practitionerRole == null) - this.practitionerRole = new ArrayList(); + /** + * @return {@link #practitionerRole} (The list of Roles/Organizations that the Practitioner is associated with.) + */ + // syntactic sugar + public PractitionerPractitionerRoleComponent addPractitionerRole() { //3 + PractitionerPractitionerRoleComponent t = new PractitionerPractitionerRoleComponent(); + if (this.practitionerRole == null) + this.practitionerRole = new ArrayList(); this.practitionerRole.add(t); return t; } @@ -1163,7 +1168,8 @@ public class Practitioner extends DomainResource { dst.photo = new ArrayList(); for (Attachment i : photo) dst.photo.add(i.copy()); - }; + } + ; if (practitionerRole != null) { dst.practitionerRole = new ArrayList(); for (PractitionerPractitionerRoleComponent i : practitionerRole) @@ -1194,8 +1200,8 @@ public class Practitioner extends DomainResource { return false; Practitioner o = (Practitioner) other; return compareDeep(identifier, o.identifier, true) && compareDeep(name, o.name, true) && compareDeep(telecom, o.telecom, true) - && compareDeep(address, o.address, true) && compareDeep(gender, o.gender, true) && compareDeep(birthDate, o.birthDate, true) - && compareDeep(photo, o.photo, true) && compareDeep(practitionerRole, o.practitionerRole, true) + && compareDeep(address, o.address, true) && compareDeep(gender, o.gender, true) && compareDeep(birthDate, o.birthDate, true) + && compareDeep(photo, o.photo, true) && compareDeep(practitionerRole, o.practitionerRole, true) && compareDeep(qualification, o.qualification, true) && compareDeep(communication, o.communication, true) ; } @@ -1210,44 +1216,44 @@ public class Practitioner extends DomainResource { return compareValues(gender, o.gender, true) && compareValues(birthDate, o.birthDate, true); } - public boolean isEmpty() { - return super.isEmpty() && (identifier == null || identifier.isEmpty()) && (name == null || name.isEmpty()) - && (telecom == null || telecom.isEmpty()) && (address == null || address.isEmpty()) && (gender == null || gender.isEmpty()) - && (birthDate == null || birthDate.isEmpty()) && (photo == null || photo.isEmpty()) && (practitionerRole == null || practitionerRole.isEmpty()) - && (qualification == null || qualification.isEmpty()) && (communication == null || communication.isEmpty()) - ; - } + public boolean isEmpty() { + return super.isEmpty() && (identifier == null || identifier.isEmpty()) && (name == null || name.isEmpty()) + && (telecom == null || telecom.isEmpty()) && (address == null || address.isEmpty()) && (gender == null || gender.isEmpty()) + && (birthDate == null || birthDate.isEmpty()) && (photo == null || photo.isEmpty()) && (practitionerRole == null || practitionerRole.isEmpty()) + && (qualification == null || qualification.isEmpty()) && (communication == null || communication.isEmpty()) + ; + } @Override public ResourceType getResourceType() { return ResourceType.Practitioner; - } + } - @SearchParamDefinition(name="identifier", path="Practitioner.identifier", description="A practitioner's Identifier", type="token" ) + @SearchParamDefinition(name = "identifier", path = "Practitioner.identifier", description = "A practitioner's Identifier", type = "token") public static final String SP_IDENTIFIER = "identifier"; - @SearchParamDefinition(name="given", path="Practitioner.name", description="A portion of the given name", type="string" ) + @SearchParamDefinition(name="given", path = "Practitioner.name", description = "A portion of the given name", type = "string") public static final String SP_GIVEN = "given"; - @SearchParamDefinition(name="specialty", path="Practitioner.practitionerRole.specialty", description="The practitioner has this specailty at an organization", type="token" ) + @SearchParamDefinition(name = "specialty", path = "Practitioner.practitionerRole.specialty", description = "The practitioner has this specailty at an organization", type = "token") public static final String SP_SPECIALTY = "specialty"; - @SearchParamDefinition(name="address", path="Practitioner.address", description="An address in any kind of address/part", type="string" ) + @SearchParamDefinition(name="address", path="Practitioner.address", description = "An address in any kind of address/part", type = "string") public static final String SP_ADDRESS = "address"; - @SearchParamDefinition(name="role", path="Practitioner.practitionerRole.role", description="The practitioner can perform this role at for the organization", type="token" ) + @SearchParamDefinition(name = "role", path = "Practitioner.practitionerRole.role", description = "The practitioner can perform this role at for the organization", type = "token") public static final String SP_ROLE = "role"; - @SearchParamDefinition(name="gender", path="Practitioner.gender", description="Gender of the practitioner", type="token" ) + @SearchParamDefinition(name = "gender", path = "Practitioner.gender", description = "Gender of the practitioner", type = "token") public static final String SP_GENDER = "gender"; - @SearchParamDefinition(name="phonetic", path="Practitioner.name", description="A portion of either family or given name using some kind of phonetic matching algorithm", type="string" ) + @SearchParamDefinition(name = "phonetic", path = "Practitioner.name", description = "A portion of either family or given name using some kind of phonetic matching algorithm", type = "string") public static final String SP_PHONETIC = "phonetic"; - @SearchParamDefinition(name="organization", path="Practitioner.practitionerRole.managingOrganization", description="The identity of the organization the practitioner represents / acts on behalf of", type="reference" ) + @SearchParamDefinition(name = "organization", path = "Practitioner.practitionerRole.managingOrganization", description = "The identity of the organization the practitioner represents / acts on behalf of", type = "reference") public static final String SP_ORGANIZATION = "organization"; - @SearchParamDefinition(name="name", path="Practitioner.name", description="A portion of either family or given name", type="string" ) + @SearchParamDefinition(name="name", path = "Practitioner.name", description = "A portion of either family or given name", type = "string") public static final String SP_NAME = "name"; - @SearchParamDefinition(name="telecom", path="Practitioner.telecom", description="The value in any kind of contact", type="string" ) + @SearchParamDefinition(name="telecom", path= "Practitioner.telecom", description = "The value in any kind of contact", type = "string") public static final String SP_TELECOM = "telecom"; - @SearchParamDefinition(name="location", path="Practitioner.practitionerRole.location", description="One of the locations at which this practitioner provides care", type="reference" ) + @SearchParamDefinition(name = "location", path = "Practitioner.practitionerRole.location", description = "One of the locations at which this practitioner provides care", type = "reference") public static final String SP_LOCATION = "location"; - @SearchParamDefinition(name="family", path="Practitioner.name", description="A portion of the family name", type="string" ) + @SearchParamDefinition(name = "family", path = "Practitioner.name", description = "A portion of the family name", type = "string") public static final String SP_FAMILY = "family"; - @SearchParamDefinition(name="communication", path="Practitioner.communication", description="One of the languages that the practitioner can communicate with", type="token" ) + @SearchParamDefinition(name = "communication", path = "Practitioner.communication", description = "One of the languages that the practitioner can communicate with", type = "token") public static final String SP_COMMUNICATION = "communication"; } diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Procedure.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Procedure.java index 44e5688129d..0bd59ae4a4f 100644 --- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Procedure.java +++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Procedure.java @@ -412,14 +412,14 @@ public class Procedure extends DomainResource { /** * This records identifiers associated with this procedure that are defined by business processed and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation). */ - @Child(name="identifier", type={Identifier.class}, order=0, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "identifier", type = {Identifier.class}, order = 0, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="External Ids for this procedure", formalDefinition="This records identifiers associated with this procedure that are defined by business processed and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation)." ) protected List identifier; /** * The person on whom the procedure was performed. */ - @Child(name="patient", type={Patient.class}, order=1, min=1, max=1) + @Child(name = "patient", type = {Patient.class}, order = 1, min = 1, max = 1) @Description(shortDefinition="Who procedure was performed on", formalDefinition="The person on whom the procedure was performed." ) protected Reference patient; @@ -431,42 +431,42 @@ public class Procedure extends DomainResource { /** * The specific procedure that is performed. Use text if the exact nature of the procedure can't be coded. */ - @Child(name="type", type={CodeableConcept.class}, order=2, min=1, max=1) + @Child(name = "type", type = {CodeableConcept.class}, order = 2, min = 1, max = 1) @Description(shortDefinition="Identification of the procedure", formalDefinition="The specific procedure that is performed. Use text if the exact nature of the procedure can't be coded." ) protected CodeableConcept type; /** * Detailed and structured anatomical location information. Multiple locations are allowed - e.g. multiple punch biopsies of a lesion. */ - @Child(name="bodySite", type={CodeableConcept.class}, order=3, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "bodySite", type = {CodeableConcept.class}, order = 3, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Precise location details", formalDefinition="Detailed and structured anatomical location information. Multiple locations are allowed - e.g. multiple punch biopsies of a lesion." ) protected List bodySite; /** * The reason why the procedure was performed. This may be due to a Condition, may be coded entity of some type, or may simply be present as text. */ - @Child(name="indication", type={CodeableConcept.class}, order=4, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "indication", type = {CodeableConcept.class}, order = 4, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Reason procedure performed", formalDefinition="The reason why the procedure was performed. This may be due to a Condition, may be coded entity of some type, or may simply be present as text." ) protected List indication; /** * Limited to 'real' people rather than equipment. */ - @Child(name="performer", type={}, order=5, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "performer", type = {}, order = 5, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="The people who performed the procedure", formalDefinition="Limited to 'real' people rather than equipment." ) protected List performer; /** * The dates over which the procedure was performed. Allows a period to support complex procedures that span more than one date, and also allows for the length of the procedure to be captured. */ - @Child(name="date", type={Period.class}, order=6, min=0, max=1) + @Child(name = "date", type = {Period.class}, order = 6, min = 0, max = 1) @Description(shortDefinition="The date the procedure was performed", formalDefinition="The dates over which the procedure was performed. Allows a period to support complex procedures that span more than one date, and also allows for the length of the procedure to be captured." ) protected Period date; /** * The encounter during which the procedure was performed. */ - @Child(name="encounter", type={Encounter.class}, order=7, min=0, max=1) + @Child(name = "encounter", type = {Encounter.class}, order = 7, min = 0, max = 1) @Description(shortDefinition="The encounter when procedure performed", formalDefinition="The encounter during which the procedure was performed." ) protected Reference encounter; @@ -478,14 +478,14 @@ public class Procedure extends DomainResource { /** * What was the outcome of the procedure - did it resolve reasons why the procedure was performed?. */ - @Child(name="outcome", type={StringType.class}, order=8, min=0, max=1) + @Child(name = "outcome", type = {StringType.class}, order = 8, min = 0, max = 1) @Description(shortDefinition="What was result of procedure?", formalDefinition="What was the outcome of the procedure - did it resolve reasons why the procedure was performed?." ) protected StringType outcome; /** * This could be a histology result. There could potentially be multiple reports - e.g. if this was a procedure that made multiple biopsies. */ - @Child(name="report", type={DiagnosticReport.class}, order=9, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "report", type = {DiagnosticReport.class}, order = 9, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Any report that results from the procedure", formalDefinition="This could be a histology result. There could potentially be multiple reports - e.g. if this was a procedure that made multiple biopsies." ) protected List report; /** @@ -497,28 +497,28 @@ public class Procedure extends DomainResource { /** * Any complications that occurred during the procedure, or in the immediate post-operative period. These are generally tracked separately from the notes, which typically will describe the procedure itself rather than any 'post procedure' issues. */ - @Child(name="complication", type={CodeableConcept.class}, order=10, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "complication", type = {CodeableConcept.class}, order = 10, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Complication following the procedure", formalDefinition="Any complications that occurred during the procedure, or in the immediate post-operative period. These are generally tracked separately from the notes, which typically will describe the procedure itself rather than any 'post procedure' issues." ) protected List complication; /** * If the procedure required specific follow up - e.g. removal of sutures. The followup may be represented as a simple note, or potentially could be more complex in which case the CarePlan resource can be used. */ - @Child(name="followUp", type={StringType.class}, order=11, min=0, max=1) + @Child(name = "followUp", type = {StringType.class}, order = 11, min = 0, max = 1) @Description(shortDefinition="Instructions for follow up", formalDefinition="If the procedure required specific follow up - e.g. removal of sutures. The followup may be represented as a simple note, or potentially could be more complex in which case the CarePlan resource can be used." ) protected StringType followUp; /** * Procedures may be related to other items such as procedures or medications. For example treating wound dehiscence following a previous procedure. */ - @Child(name="relatedItem", type={}, order=12, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "relatedItem", type = {}, order = 12, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="A procedure that is related to this one", formalDefinition="Procedures may be related to other items such as procedures or medications. For example treating wound dehiscence following a previous procedure." ) protected List relatedItem; /** * Any other notes about the procedure - e.g. the operative notes. */ - @Child(name="notes", type={StringType.class}, order=13, min=0, max=1) + @Child(name = "notes", type = {StringType.class}, order = 13, min = 0, max = 1) @Description(shortDefinition="Additional information about procedure", formalDefinition="Any other notes about the procedure - e.g. the operative notes." ) protected StringType notes; @@ -1159,7 +1159,7 @@ public class Procedure extends DomainResource { @SearchParamDefinition(name="date", path="Procedure.date", description="The date the procedure was performed on", type="date" ) public static final String SP_DATE = "date"; - @SearchParamDefinition(name="patient", path="Procedure.patient", description="The identity of a patient to list procedures for", type="reference" ) + @SearchParamDefinition(name = "patient", path = "Procedure.patient", description = "The identity of a patient to list procedures for", type = "reference") public static final String SP_PATIENT = "patient"; @SearchParamDefinition(name="type", path="Procedure.type", description="Type of procedure", type="token" ) public static final String SP_TYPE = "type"; diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/ProcedureRequest.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/ProcedureRequest.java index 67c615eb092..9699767539e 100644 --- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/ProcedureRequest.java +++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/ProcedureRequest.java @@ -332,14 +332,14 @@ public class ProcedureRequest extends DomainResource { /** * Identifiers assigned to this order by the order or by the receiver. */ - @Child(name="identifier", type={Identifier.class}, order=0, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "identifier", type = {Identifier.class}, order = 0, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Identifier", formalDefinition="Identifiers assigned to this order by the order or by the receiver." ) protected List identifier; /** * The patient who will receive the procedure. */ - @Child(name="subject", type={Patient.class}, order=1, min=1, max=1) + @Child(name = "subject", type = {Patient.class}, order = 1, min = 1, max = 1) @Description(shortDefinition="Subject", formalDefinition="The patient who will receive the procedure." ) protected Reference subject; @@ -351,35 +351,35 @@ public class ProcedureRequest extends DomainResource { /** * The specific procedure that is ordered. Use text if the exact nature of the procedure can't be coded. */ - @Child(name="type", type={CodeableConcept.class}, order=2, min=1, max=1) + @Child(name = "type", type = {CodeableConcept.class}, order = 2, min = 1, max = 1) @Description(shortDefinition="Procedure Type", formalDefinition="The specific procedure that is ordered. Use text if the exact nature of the procedure can't be coded." ) protected CodeableConcept type; /** * The site where the procedure is to be performed. */ - @Child(name="bodySite", type={CodeableConcept.class}, order=3, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "bodySite", type = {CodeableConcept.class}, order = 3, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Target Body Site", formalDefinition="The site where the procedure is to be performed." ) protected List bodySite; /** * The reason why the procedure is proposed or ordered. This procedure request may be motivated by a Condition for instance. */ - @Child(name="indication", type={CodeableConcept.class}, order=4, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "indication", type = {CodeableConcept.class}, order = 4, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Indication", formalDefinition="The reason why the procedure is proposed or ordered. This procedure request may be motivated by a Condition for instance." ) protected List indication; /** * The timing schedule for the proposed or ordered procedure. The Schedule data type allows many different expressions, for example. "Every 8 hours"; "Three times a day"; "1/2 an hour before breakfast for 10 days from 23-Dec 2011:"; "15 Oct 2013, 17 Oct 2013 and 1 Nov 2013". */ - @Child(name="timing", type={DateTimeType.class, Period.class, Timing.class}, order=5, min=0, max=1) + @Child(name = "timing", type = {DateTimeType.class, Period.class, Timing.class}, order = 5, min = 0, max = 1) @Description(shortDefinition="Timing", formalDefinition="The timing schedule for the proposed or ordered procedure. The Schedule data type allows many different expressions, for example. 'Every 8 hours'; 'Three times a day'; '1/2 an hour before breakfast for 10 days from 23-Dec 2011:'; '15 Oct 2013, 17 Oct 2013 and 1 Nov 2013'." ) protected Type timing; /** * The encounter within which the procedure proposal or request was created. */ - @Child(name="encounter", type={Encounter.class}, order=6, min=0, max=1) + @Child(name = "encounter", type = {Encounter.class}, order = 6, min = 0, max = 1) @Description(shortDefinition="Encounter", formalDefinition="The encounter within which the procedure proposal or request was created." ) protected Reference encounter; @@ -391,7 +391,7 @@ public class ProcedureRequest extends DomainResource { /** * E.g. surgeon, anaethetist, endoscopist. */ - @Child(name="performer", type={Practitioner.class, Organization.class, Patient.class, RelatedPerson.class}, order=7, min=0, max=1) + @Child(name = "performer", type = {Practitioner.class, Organization.class, Patient.class, RelatedPerson.class}, order = 7, min = 0, max = 1) @Description(shortDefinition="Performer", formalDefinition="E.g. surgeon, anaethetist, endoscopist." ) protected Reference performer; @@ -403,35 +403,35 @@ public class ProcedureRequest extends DomainResource { /** * The status of the order. */ - @Child(name="status", type={CodeType.class}, order=8, min=0, max=1) + @Child(name = "status", type = {CodeType.class}, order = 8, min = 0, max = 1) @Description(shortDefinition="proposed | planned | requested | received | accepted | in-progress | completed | suspended | rejected | aborted", formalDefinition="The status of the order." ) protected Enumeration status; /** * Any other notes associated with this proposal or order - e.g., provider instructions. */ - @Child(name="notes", type={StringType.class}, order=9, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "notes", type = {StringType.class}, order = 9, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Notes", formalDefinition="Any other notes associated with this proposal or order - e.g., provider instructions." ) protected List notes; /** * If a CodeableConcept is present, it indicates the pre-condition for performing the procedure. */ - @Child(name="asNeeded", type={BooleanType.class, CodeableConcept.class}, order=10, min=0, max=1) + @Child(name = "asNeeded", type = {BooleanType.class, CodeableConcept.class}, order = 10, min = 0, max = 1) @Description(shortDefinition="PRN", formalDefinition="If a CodeableConcept is present, it indicates the pre-condition for performing the procedure." ) protected Type asNeeded; /** * The time when the request was made. */ - @Child(name="orderedOn", type={DateTimeType.class}, order=11, min=0, max=1) + @Child(name = "orderedOn", type = {DateTimeType.class}, order = 11, min = 0, max = 1) @Description(shortDefinition="When Requested", formalDefinition="The time when the request was made." ) protected DateTimeType orderedOn; /** * The healthcare professional responsible for proposing or ordering the procedure. */ - @Child(name="orderer", type={Practitioner.class, Patient.class, RelatedPerson.class, Device.class}, order=12, min=0, max=1) + @Child(name = "orderer", type = {Practitioner.class, Patient.class, RelatedPerson.class, Device.class}, order = 12, min = 0, max = 1) @Description(shortDefinition="Ordering Party", formalDefinition="The healthcare professional responsible for proposing or ordering the procedure." ) protected Reference orderer; @@ -443,7 +443,7 @@ public class ProcedureRequest extends DomainResource { /** * The clinical priority associated with this order. */ - @Child(name="priority", type={CodeType.class}, order=13, min=0, max=1) + @Child(name = "priority", type = {CodeType.class}, order = 13, min = 0, max = 1) @Description(shortDefinition="routine | urgent | stat | asap", formalDefinition="The clinical priority associated with this order." ) protected Enumeration priority; @@ -1122,8 +1122,8 @@ public class ProcedureRequest extends DomainResource { @SearchParamDefinition(name="subject", path="ProcedureRequest.subject", description="Search by subject", type="reference" ) public static final String SP_SUBJECT = "subject"; - @SearchParamDefinition(name="patient", path="ProcedureRequest.subject", description="Search by subject - a patient", type="reference" ) - public static final String SP_PATIENT = "patient"; + @SearchParamDefinition(name = "patient", path = "ProcedureRequest.subject", description = "Search by subject - a patient", type = "reference") + public static final String SP_PATIENT = "patient"; } diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/ProfessionalClaim.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/ProfessionalClaim.java index 60353c1a4f8..c5f903ac0b5 100644 --- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/ProfessionalClaim.java +++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/ProfessionalClaim.java @@ -2688,35 +2688,35 @@ public class ProfessionalClaim extends DomainResource { /** * The business identifier for the instance: invoice number, claim number, pre-determination or pre-authorization number. */ - @Child(name="identifier", type={Identifier.class}, order=0, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "identifier", type = {Identifier.class}, order = 0, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Claim number", formalDefinition="The business identifier for the instance: invoice number, claim number, pre-determination or pre-authorization number." ) protected List identifier; /** * The version of the specification on which this instance relies. */ - @Child(name="ruleset", type={Coding.class}, order=1, min=0, max=1) + @Child(name = "ruleset", type = {Coding.class}, order = 1, min = 0, max = 1) @Description(shortDefinition="Current specification followed", formalDefinition="The version of the specification on which this instance relies." ) protected Coding ruleset; /** * The version of the specification from which the original instance was created. */ - @Child(name="originalRuleset", type={Coding.class}, order=2, min=0, max=1) + @Child(name = "originalRuleset", type = {Coding.class}, order = 2, min = 0, max = 1) @Description(shortDefinition="Original specification followed", formalDefinition="The version of the specification from which the original instance was created." ) protected Coding originalRuleset; /** * The date when the enclosed suite of services were performed or completed. */ - @Child(name="created", type={DateTimeType.class}, order=3, min=0, max=1) + @Child(name = "created", type = {DateTimeType.class}, order = 3, min = 0, max = 1) @Description(shortDefinition="Creation date", formalDefinition="The date when the enclosed suite of services were performed or completed." ) protected DateTimeType created; /** * Insurer Identifier, typical BIN number (6 digit). */ - @Child(name="target", type={Organization.class}, order=4, min=0, max=1) + @Child(name = "target", type = {Organization.class}, order = 4, min = 0, max = 1) @Description(shortDefinition="Insurer", formalDefinition="Insurer Identifier, typical BIN number (6 digit)." ) protected Reference target; @@ -2728,7 +2728,7 @@ public class ProfessionalClaim extends DomainResource { /** * The provider which is responsible for the bill, claim pre-determination, pre-authorization. */ - @Child(name="provider", type={Practitioner.class}, order=5, min=0, max=1) + @Child(name = "provider", type = {Practitioner.class}, order = 5, min = 0, max = 1) @Description(shortDefinition="Responsible provider", formalDefinition="The provider which is responsible for the bill, claim pre-determination, pre-authorization." ) protected Reference provider; @@ -2740,7 +2740,7 @@ public class ProfessionalClaim extends DomainResource { /** * The organization which is responsible for the bill, claim pre-determination, pre-authorization. */ - @Child(name="organization", type={Organization.class}, order=6, min=0, max=1) + @Child(name = "organization", type = {Organization.class}, order = 6, min = 0, max = 1) @Description(shortDefinition="Responsible organization", formalDefinition="The organization which is responsible for the bill, claim pre-determination, pre-authorization." ) protected Reference organization; @@ -2752,28 +2752,28 @@ public class ProfessionalClaim extends DomainResource { /** * Complete (Bill or Claim), Proposed (Pre-Authorization), Exploratory (Pre-determination). */ - @Child(name="use", type={CodeType.class}, order=7, min=0, max=1) + @Child(name = "use", type = {CodeType.class}, order = 7, min = 0, max = 1) @Description(shortDefinition="complete | proposed | exploratory | other", formalDefinition="Complete (Bill or Claim), Proposed (Pre-Authorization), Exploratory (Pre-determination)." ) protected Enumeration use; /** * Immediate (STAT), best effort (NORMAL), deferred (DEFER). */ - @Child(name="priority", type={Coding.class}, order=8, min=0, max=1) + @Child(name = "priority", type = {Coding.class}, order = 8, min = 0, max = 1) @Description(shortDefinition="Desired processing priority", formalDefinition="Immediate (STAT), best effort (NORMAL), deferred (DEFER)." ) protected Coding priority; /** * In the case of a Pre-Determination/Pre-Authorization the provider may request that funds in the amount of the expected Benefit be reserved ('Patient' or 'Provider') to pay for the Benefits determined on the subsequent claim(s). 'None' explicitly indicates no funds reserving is requested. */ - @Child(name="fundsReserve", type={Coding.class}, order=9, min=0, max=1) + @Child(name = "fundsReserve", type = {Coding.class}, order = 9, min = 0, max = 1) @Description(shortDefinition="Funds requested to be reserved", formalDefinition="In the case of a Pre-Determination/Pre-Authorization the provider may request that funds in the amount of the expected Benefit be reserved ('Patient' or 'Provider') to pay for the Benefits determined on the subsequent claim(s). 'None' explicitly indicates no funds reserving is requested." ) protected Coding fundsReserve; /** * Person who created the invoice/claim/pre-determination or pre-authorization. */ - @Child(name="enterer", type={Practitioner.class}, order=10, min=0, max=1) + @Child(name = "enterer", type = {Practitioner.class}, order = 10, min = 0, max = 1) @Description(shortDefinition="Author", formalDefinition="Person who created the invoice/claim/pre-determination or pre-authorization." ) protected Reference enterer; @@ -2785,7 +2785,7 @@ public class ProfessionalClaim extends DomainResource { /** * Facility where the services were provided. */ - @Child(name="facility", type={Location.class}, order=11, min=0, max=1) + @Child(name = "facility", type = {Location.class}, order = 11, min = 0, max = 1) @Description(shortDefinition="Servicing Facility", formalDefinition="Facility where the services were provided." ) protected Reference facility; @@ -2797,14 +2797,14 @@ public class ProfessionalClaim extends DomainResource { /** * The party to be reimbursed for the services. */ - @Child(name="payee", type={}, order=12, min=0, max=1) + @Child(name = "payee", type = {}, order = 12, min = 0, max = 1) @Description(shortDefinition="Payee", formalDefinition="The party to be reimbursed for the services." ) protected PayeeComponent payee; /** * The referral resource which lists the date, practitioner, reason and other supporting information. */ - @Child(name="referral", type={ReferralRequest.class}, order=13, min=0, max=1) + @Child(name = "referral", type = {ReferralRequest.class}, order = 13, min = 0, max = 1) @Description(shortDefinition="Treatment Referral", formalDefinition="The referral resource which lists the date, practitioner, reason and other supporting information." ) protected Reference referral; @@ -2816,21 +2816,21 @@ public class ProfessionalClaim extends DomainResource { /** * Ordered list of patient diagnosis for which care is sought. */ - @Child(name="diagnosis", type={}, order=14, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "diagnosis", type = {}, order = 14, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Diagnosis", formalDefinition="Ordered list of patient diagnosis for which care is sought." ) protected List diagnosis; /** * List of patient conditions for which care is sought. */ - @Child(name="condition", type={Coding.class}, order=15, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "condition", type = {Coding.class}, order = 15, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="List of presenting Conditions", formalDefinition="List of patient conditions for which care is sought." ) protected List condition; /** * Patient Resource. */ - @Child(name="patient", type={Patient.class}, order=16, min=1, max=1) + @Child(name = "patient", type = {Patient.class}, order = 16, min = 1, max = 1) @Description(shortDefinition="The subject of the Products and Services", formalDefinition="Patient Resource." ) protected Reference patient; @@ -2842,56 +2842,56 @@ public class ProfessionalClaim extends DomainResource { /** * Financial instrument by which payment information for health care. */ - @Child(name="coverage", type={}, order=17, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "coverage", type = {}, order = 17, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Insurance or medical plan", formalDefinition="Financial instrument by which payment information for health care." ) protected List coverage; /** * Factors which may influence the applicability of coverage. */ - @Child(name="exception", type={Coding.class}, order=18, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "exception", type = {Coding.class}, order = 18, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Eligibility exceptions", formalDefinition="Factors which may influence the applicability of coverage." ) protected List exception; /** * Name of school for over-aged dependants. */ - @Child(name="school", type={StringType.class}, order=19, min=0, max=1) + @Child(name = "school", type = {StringType.class}, order = 19, min = 0, max = 1) @Description(shortDefinition="Name of School", formalDefinition="Name of school for over-aged dependants." ) protected StringType school; /** * Date of an accident which these services are addressing. */ - @Child(name="accident", type={DateType.class}, order=20, min=0, max=1) + @Child(name = "accident", type = {DateType.class}, order = 20, min = 0, max = 1) @Description(shortDefinition="Accident Date", formalDefinition="Date of an accident which these services are addressing." ) protected DateType accident; /** * Type of accident: work, auto, etc. */ - @Child(name="accidentType", type={Coding.class}, order=21, min=0, max=1) + @Child(name = "accidentType", type = {Coding.class}, order = 21, min = 0, max = 1) @Description(shortDefinition="Accident Type", formalDefinition="Type of accident: work, auto, etc." ) protected Coding accidentType; /** * A list of intervention and exception codes which may influence the adjudication of the claim. */ - @Child(name="interventionException", type={Coding.class}, order=22, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "interventionException", type = {Coding.class}, order = 22, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Intervention and exception code (Pharma)", formalDefinition="A list of intervention and exception codes which may influence the adjudication of the claim." ) protected List interventionException; /** * First tier of goods and services. */ - @Child(name="item", type={}, order=23, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "item", type = {}, order = 23, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Goods and Services", formalDefinition="First tier of goods and services." ) protected List item; /** * Code to indicate that Xrays, images, emails, documents, models or attachments are being sent in support of this submission. */ - @Child(name="additionalMaterials", type={Coding.class}, order=24, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "additionalMaterials", type = {Coding.class}, order = 24, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Additional materials, documents, etc.", formalDefinition="Code to indicate that Xrays, images, emails, documents, models or attachments are being sent in support of this submission." ) protected List additionalMaterials; @@ -3939,10 +3939,10 @@ public class ProfessionalClaim extends DomainResource { return ResourceType.ProfessionalClaim; } - @SearchParamDefinition(name="identifier", path="ProfessionalClaim.identifier", description="The primary identifier of the financial resource", type="token" ) - public static final String SP_IDENTIFIER = "identifier"; - @SearchParamDefinition(name="use", path="ProfessionalClaim.use", description="The kind of financial resource", type="token" ) - public static final String SP_USE = "use"; + @SearchParamDefinition(name = "identifier", path = "ProfessionalClaim.identifier", description = "The primary identifier of the financial resource", type = "token") + public static final String SP_IDENTIFIER = "identifier"; + @SearchParamDefinition(name = "use", path = "ProfessionalClaim.use", description = "The kind of financial resource", type = "token") + public static final String SP_USE = "use"; @SearchParamDefinition(name="patient", path="ProfessionalClaim.patient", description="Patient", type="reference" ) public static final String SP_PATIENT = "patient"; @SearchParamDefinition(name="priority", path="ProfessionalClaim.priority", description="Processing priority requested", type="token" ) diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Profile.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Profile.java index 880b73d3dcc..af0e1650957 100644 --- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Profile.java +++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Profile.java @@ -501,126 +501,126 @@ public class Profile extends DomainResource { /** * The URL at which this profile is (or will be) published, and which is used to reference this profile in extension urls and tag values in operational FHIR systems. */ - @Child(name="url", type={UriType.class}, order=0, min=1, max=1) + @Child(name = "url", type = {UriType.class}, order = 0, min = 1, max = 1) @Description(shortDefinition="Literal URL used to reference this profile", formalDefinition="The URL at which this profile is (or will be) published, and which is used to reference this profile in extension urls and tag values in operational FHIR systems." ) protected UriType url; /** * Formal identifier that is used to identify this profile when it is represented in other formats, or referenced in a specification, model, design or an instance (should be globally unique OID, UUID, or URI), (if it's not possible to use the literal URI). */ - @Child(name="identifier", type={Identifier.class}, order=1, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "identifier", type = {Identifier.class}, order = 1, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Other identifiers for the profile", formalDefinition="Formal identifier that is used to identify this profile when it is represented in other formats, or referenced in a specification, model, design or an instance (should be globally unique OID, UUID, or URI), (if it's not possible to use the literal URI)." ) protected List identifier; /** * The identifier that is used to identify this version of the profile when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the profile author manually. */ - @Child(name="version", type={StringType.class}, order=2, min=0, max=1) + @Child(name = "version", type = {StringType.class}, order = 2, min = 0, max = 1) @Description(shortDefinition="Logical id for this version of the profile", formalDefinition="The identifier that is used to identify this version of the profile when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the profile author manually." ) protected StringType version; /** * A free text natural language name identifying the Profile. */ - @Child(name="name", type={StringType.class}, order=3, min=1, max=1) + @Child(name = "name", type = {StringType.class}, order = 3, min = 1, max = 1) @Description(shortDefinition="Informal name for this profile", formalDefinition="A free text natural language name identifying the Profile." ) protected StringType name; /** * Details of the individual or organization who accepts responsibility for publishing the profile. */ - @Child(name="publisher", type={StringType.class}, order=4, min=0, max=1) + @Child(name = "publisher", type = {StringType.class}, order = 4, min = 0, max = 1) @Description(shortDefinition="Name of the publisher (Organization or individual)", formalDefinition="Details of the individual or organization who accepts responsibility for publishing the profile." ) protected StringType publisher; /** * Contact details to assist a user in finding and communicating with the publisher. */ - @Child(name="telecom", type={ContactPoint.class}, order=5, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "telecom", type = {ContactPoint.class}, order = 5, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Contact information of the publisher", formalDefinition="Contact details to assist a user in finding and communicating with the publisher." ) protected List telecom; /** * A free text natural language description of the profile and its use. */ - @Child(name="description", type={StringType.class}, order=6, min=0, max=1) + @Child(name = "description", type = {StringType.class}, order = 6, min = 0, max = 1) @Description(shortDefinition="Natural language description of the profile", formalDefinition="A free text natural language description of the profile and its use." ) protected StringType description; /** * A set of terms from external terminologies that may be used to assist with indexing and searching of templates. */ - @Child(name="code", type={Coding.class}, order=7, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "code", type = {Coding.class}, order = 7, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Assist with indexing and finding", formalDefinition="A set of terms from external terminologies that may be used to assist with indexing and searching of templates." ) protected List code; /** * The status of the profile. */ - @Child(name="status", type={CodeType.class}, order=8, min=1, max=1) + @Child(name = "status", type = {CodeType.class}, order = 8, min = 1, max = 1) @Description(shortDefinition="draft | active | retired", formalDefinition="The status of the profile." ) protected Enumeration status; /** * This profile was authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage. */ - @Child(name="experimental", type={BooleanType.class}, order=9, min=0, max=1) + @Child(name = "experimental", type = {BooleanType.class}, order = 9, min = 0, max = 1) @Description(shortDefinition="If for testing purposes, not real usage", formalDefinition="This profile was authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage." ) protected BooleanType experimental; /** * The date that this version of the profile was published. */ - @Child(name="date", type={DateTimeType.class}, order=10, min=0, max=1) + @Child(name = "date", type = {DateTimeType.class}, order = 10, min = 0, max = 1) @Description(shortDefinition="Date for this version of the profile", formalDefinition="The date that this version of the profile was published." ) protected DateTimeType date; /** * The Scope and Usage that this profile was created to meet. */ - @Child(name="requirements", type={StringType.class}, order=11, min=0, max=1) + @Child(name = "requirements", type = {StringType.class}, order = 11, min = 0, max = 1) @Description(shortDefinition="Scope and Usage this profile is for", formalDefinition="The Scope and Usage that this profile was created to meet." ) protected StringType requirements; /** * The version of the FHIR specification on which this profile is based - this is the formal version of the specification, without the revision number, e.g. [publication].[major].[minor], which is 0.4.0 for this version. */ - @Child(name="fhirVersion", type={IdType.class}, order=12, min=0, max=1) + @Child(name = "fhirVersion", type = {IdType.class}, order = 12, min = 0, max = 1) @Description(shortDefinition="FHIR Version this profile targets", formalDefinition="The version of the FHIR specification on which this profile is based - this is the formal version of the specification, without the revision number, e.g. [publication].[major].[minor], which is 0.4.0 for this version." ) protected IdType fhirVersion; /** * An external specification that the content is mapped to. */ - @Child(name="mapping", type={}, order=13, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "mapping", type = {}, order = 13, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="External specification that the content is mapped to", formalDefinition="An external specification that the content is mapped to." ) protected List mapping; /** * The Resource or Data type being described. */ - @Child(name="type", type={CodeType.class}, order=14, min=1, max=1) + @Child(name = "type", type = {CodeType.class}, order = 14, min = 1, max = 1) @Description(shortDefinition="The Resource or Data Type being described", formalDefinition="The Resource or Data type being described." ) protected CodeType type; /** * The structure that is the base on which this set of constraints is derived from. */ - @Child(name="base", type={UriType.class}, order=15, min=0, max=1) + @Child(name = "base", type = {UriType.class}, order = 15, min = 0, max = 1) @Description(shortDefinition="Structure that this set of constraints applies to", formalDefinition="The structure that is the base on which this set of constraints is derived from." ) protected UriType base; /** * A snapshot view is expressed in a stand alone form that can be used and interpreted without considering the base profile. */ - @Child(name="snapshot", type={}, order=16, min=0, max=1) + @Child(name = "snapshot", type = {}, order = 16, min = 0, max = 1) @Description(shortDefinition="Snapshot view of the structure", formalDefinition="A snapshot view is expressed in a stand alone form that can be used and interpreted without considering the base profile." ) protected ConstraintComponent snapshot; /** * A differential view is expressed relative to the base profile - a statement of differences that it applies. */ - @Child(name="differential", type={ConstraintComponent.class}, order=17, min=0, max=1) + @Child(name = "differential", type = {ConstraintComponent.class}, order = 17, min = 0, max = 1) @Description(shortDefinition="Differential view of the structure", formalDefinition="A differential view is expressed relative to the base profile - a statement of differences that it applies." ) protected ConstraintComponent differential; @@ -1490,23 +1490,23 @@ public class Profile extends DomainResource { public static final String SP_DATE = "date"; @SearchParamDefinition(name="identifier", path="Profile.identifier", description="The identifier of the profile", type="token" ) public static final String SP_IDENTIFIER = "identifier"; - @SearchParamDefinition(name="code", path="Profile.code", description="A code for the profile", type="token" ) + @SearchParamDefinition(name = "code", path = "Profile.code", description = "A code for the profile", type = "token") public static final String SP_CODE = "code"; - @SearchParamDefinition(name="valueset", path="Profile.snapshot.element.binding.reference[x]", description="A vocabulary binding code", type="reference" ) + @SearchParamDefinition(name = "valueset", path = "Profile.snapshot.element.binding.reference[x]", description = "A vocabulary binding code", type = "reference") public static final String SP_VALUESET = "valueset"; - @SearchParamDefinition(name="name", path="Profile.name", description="Name of the profile", type="string" ) + @SearchParamDefinition(name = "name", path = "Profile.name", description = "Name of the profile", type = "string") public static final String SP_NAME = "name"; @SearchParamDefinition(name="publisher", path="Profile.publisher", description="Name of the publisher of the profile", type="string" ) public static final String SP_PUBLISHER = "publisher"; - @SearchParamDefinition(name="description", path="Profile.description", description="Text search in the description of the profile", type="string" ) + @SearchParamDefinition(name = "description", path = "Profile.description", description = "Text search in the description of the profile", type = "string") public static final String SP_DESCRIPTION = "description"; - @SearchParamDefinition(name="type", path="Profile.type", description="Type of resource that is constrained in the profile", type="token" ) + @SearchParamDefinition(name = "type", path = "Profile.type", description = "Type of resource that is constrained in the profile", type = "token") public static final String SP_TYPE = "type"; @SearchParamDefinition(name="version", path="Profile.version", description="The version identifier of the profile", type="token" ) public static final String SP_VERSION = "version"; - @SearchParamDefinition(name="url", path="Profile.url", description="Literal URL used to reference this profile", type="token" ) + @SearchParamDefinition(name = "url", path = "Profile.url", description = "Literal URL used to reference this profile", type = "token") public static final String SP_URL = "url"; - @SearchParamDefinition(name="status", path="Profile.status", description="The current status of the profile", type="token" ) + @SearchParamDefinition(name = "status", path = "Profile.status", description = "The current status of the profile", type = "token") public static final String SP_STATUS = "status"; } diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Provenance.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Provenance.java index 7e43d10576d..88b43bf92b8 100644 --- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Provenance.java +++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Provenance.java @@ -666,7 +666,7 @@ public class Provenance extends DomainResource { /** * The Reference(s) that were generated by the activity described in this resource. A provenance can point to more than one target if multiple resources were created/updated by the same activity. */ - @Child(name="target", type={}, order=0, min=1, max=Child.MAX_UNLIMITED) + @Child(name = "target", type = {}, order = 0, min = 1, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Target Reference(s) (usually version specific)", formalDefinition="The Reference(s) that were generated by the activity described in this resource. A provenance can point to more than one target if multiple resources were created/updated by the same activity." ) protected List target; /** @@ -678,28 +678,28 @@ public class Provenance extends DomainResource { /** * The period during which the activity occurred. */ - @Child(name="period", type={Period.class}, order=1, min=0, max=1) + @Child(name = "period", type = {Period.class}, order = 1, min = 0, max = 1) @Description(shortDefinition="When the activity occurred", formalDefinition="The period during which the activity occurred." ) protected Period period; /** * The instant of time at which the activity was recorded. */ - @Child(name="recorded", type={InstantType.class}, order=2, min=1, max=1) + @Child(name = "recorded", type = {InstantType.class}, order = 2, min = 1, max = 1) @Description(shortDefinition="When the activity was recorded / updated", formalDefinition="The instant of time at which the activity was recorded." ) protected InstantType recorded; /** * The reason that the activity was taking place. */ - @Child(name="reason", type={CodeableConcept.class}, order=3, min=0, max=1) + @Child(name = "reason", type = {CodeableConcept.class}, order = 3, min = 0, max = 1) @Description(shortDefinition="Reason the activity is occurring", formalDefinition="The reason that the activity was taking place." ) protected CodeableConcept reason; /** * Where the activity occurred, if relevant. */ - @Child(name="location", type={Location.class}, order=4, min=0, max=1) + @Child(name = "location", type = {Location.class}, order = 4, min = 0, max = 1) @Description(shortDefinition="Where the activity occurred, if relevant", formalDefinition="Where the activity occurred, if relevant." ) protected Reference location; @@ -711,28 +711,28 @@ public class Provenance extends DomainResource { /** * Policy or plan the activity was defined by. Typically, a single activity may have multiple applicable policy documents, such as patient consent, guarantor funding, etc. */ - @Child(name="policy", type={UriType.class}, order=5, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "policy", type = {UriType.class}, order = 5, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Policy or plan the activity was defined by", formalDefinition="Policy or plan the activity was defined by. Typically, a single activity may have multiple applicable policy documents, such as patient consent, guarantor funding, etc." ) protected List policy; /** * An agent takes a role in an activity such that the agent can be assigned some degree of responsibility for the activity taking place. An agent can be a person, a piece of software, an inanimate object, an organization, or other entities that may be ascribed responsibility. */ - @Child(name="agent", type={}, order=6, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "agent", type = {}, order = 6, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Person, organization, records, etc. involved in creating resource", formalDefinition="An agent takes a role in an activity such that the agent can be assigned some degree of responsibility for the activity taking place. An agent can be a person, a piece of software, an inanimate object, an organization, or other entities that may be ascribed responsibility." ) protected List agent; /** * An entity used in this activity. */ - @Child(name="entity", type={}, order=7, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "entity", type = {}, order = 7, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="An entity used in this activity", formalDefinition="An entity used in this activity." ) protected List entity; /** * A digital signature on the target Reference(s). The signature should match a Provenance.agent.reference in the provenance resource. The signature is only added to support checking cryptographic integrity of the resource, and not to represent workflow and clinical aspects of the signing process, or to support non-repudiation. */ - @Child(name="integritySignature", type={StringType.class}, order=8, min=0, max=1) + @Child(name = "integritySignature", type = {StringType.class}, order = 8, min = 0, max = 1) @Description(shortDefinition="Base64 signature (DigSig) - integrity check", formalDefinition="A digital signature on the target Reference(s). The signature should match a Provenance.agent.reference in the provenance resource. The signature is only added to support checking cryptographic integrity of the resource, and not to represent workflow and clinical aspects of the signing process, or to support non-repudiation." ) protected StringType integritySignature; @@ -1174,16 +1174,16 @@ public class Provenance extends DomainResource { public static final String SP_PATIENT = "patient"; @SearchParamDefinition(name="start", path="Provenance.period.start", description="Starting time with inclusive boundary", type="date" ) public static final String SP_START = "start"; - @SearchParamDefinition(name="end", path="Provenance.period.end", description="End time with inclusive boundary, if not ongoing", type="date" ) - public static final String SP_END = "end"; - @SearchParamDefinition(name="location", path="Provenance.location", description="Where the activity occurred, if relevant", type="reference" ) - public static final String SP_LOCATION = "location"; + @SearchParamDefinition(name = "end", path = "Provenance.period.end", description = "End time with inclusive boundary, if not ongoing", type = "date") + public static final String SP_END = "end"; + @SearchParamDefinition(name = "location", path = "Provenance.location", description = "Where the activity occurred, if relevant", type = "reference") + public static final String SP_LOCATION = "location"; @SearchParamDefinition(name="partytype", path="Provenance.agent.type", description="e.g. Resource | Person | Application | Record | Document +", type="token" ) public static final String SP_PARTYTYPE = "partytype"; @SearchParamDefinition(name="party", path="Provenance.agent.reference", description="Identity of agent (urn or url)", type="token" ) public static final String SP_PARTY = "party"; - @SearchParamDefinition(name="target", path="Provenance.target", description="Target Reference(s) (usually version specific)", type="reference" ) - public static final String SP_TARGET = "target"; + @SearchParamDefinition(name = "target", path = "Provenance.target", description = "Target Reference(s) (usually version specific)", type = "reference") + public static final String SP_TARGET = "target"; } diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Quantity.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Quantity.java index 4ad1a02696c..d2591f149e2 100644 --- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Quantity.java +++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Quantity.java @@ -42,7 +42,7 @@ import org.hl7.fhir.instance.model.annotations.DatatypeDef; * A measured amount (or an amount that can potentially be measured). Note that measured amounts include amounts that are not precisely quantified, including amounts involving arbitrary units and floating currencies. */ @DatatypeDef(name="Quantity") -public class Quantity extends Type implements ICompositeType { +public class Quantity extends Type implements ICompositeType { public enum QuantityComparator { /** @@ -147,35 +147,35 @@ public class Quantity extends Type implements ICompositeType { /** * The value of the measured amount. The value includes an implicit precision in the presentation of the value. */ - @Child(name="value", type={DecimalType.class}, order=0, min=0, max=1) + @Child(name = "value", type = {DecimalType.class}, order = 0, min = 0, max = 1) @Description(shortDefinition="Numerical value (with implicit precision)", formalDefinition="The value of the measured amount. The value includes an implicit precision in the presentation of the value." ) protected DecimalType value; /** * How the value should be understood and represented - whether the actual value is greater or less than the stated value due to measurement issues. E.g. if the comparator is "<" , then the real value is < stated value. */ - @Child(name="comparator", type={CodeType.class}, order=1, min=0, max=1) + @Child(name = "comparator", type = {CodeType.class}, order = 1, min = 0, max = 1) @Description(shortDefinition="< | <= | >= | > - how to understand the value", formalDefinition="How the value should be understood and represented - whether the actual value is greater or less than the stated value due to measurement issues. E.g. if the comparator is '<' , then the real value is < stated value." ) protected Enumeration comparator; /** * A human-readable form of the units. */ - @Child(name="units", type={StringType.class}, order=2, min=0, max=1) + @Child(name = "units", type = {StringType.class}, order = 2, min = 0, max = 1) @Description(shortDefinition="Unit representation", formalDefinition="A human-readable form of the units." ) protected StringType units; /** * The identification of the system that provides the coded form of the unit. */ - @Child(name="system", type={UriType.class}, order=3, min=0, max=1) + @Child(name = "system", type = {UriType.class}, order = 3, min = 0, max = 1) @Description(shortDefinition="System that defines coded unit form", formalDefinition="The identification of the system that provides the coded form of the unit." ) protected UriType system; /** * A computer processable form of the units in some unit representation system. */ - @Child(name="code", type={CodeType.class}, order=4, min=0, max=1) + @Child(name = "code", type = {CodeType.class}, order = 4, min = 0, max = 1) @Description(shortDefinition="Coded form of the unit", formalDefinition="A computer processable form of the units in some unit representation system." ) protected CodeType code; diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Questionnaire.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Questionnaire.java index f6bc12288cc..1597961a15f 100644 --- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Questionnaire.java +++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Questionnaire.java @@ -171,7 +171,7 @@ public class Questionnaire extends DomainResource { /** * Answer is a url (website, FTP site, etc.). */ - URL, + URL, /** * Answer is a choice from a list of options. */ @@ -217,8 +217,8 @@ public class Questionnaire extends DomainResource { return STRING; if ("text".equals(codeString)) return TEXT; - if ("url".equals(codeString)) - return URL; + if ("url".equals(codeString)) + return URL; if ("choice".equals(codeString)) return CHOICE; if ("open-choice".equals(codeString)) @@ -242,7 +242,8 @@ public class Questionnaire extends DomainResource { case TIME: return "time"; case STRING: return "string"; case TEXT: return "text"; - case URL: return "url"; + case URL: + return "url"; case CHOICE: return "choice"; case OPENCHOICE: return "open-choice"; case ATTACHMENT: return "attachment"; @@ -262,7 +263,8 @@ public class Questionnaire extends DomainResource { case TIME: return ""; case STRING: return ""; case TEXT: return ""; - case URL: return ""; + case URL: + return ""; case CHOICE: return ""; case OPENCHOICE: return ""; case ATTACHMENT: return ""; @@ -282,7 +284,8 @@ public class Questionnaire extends DomainResource { case TIME: return "Answer is a time independent of date."; case STRING: return "Answer is a short (few words to short sentence) free-text entry."; case TEXT: return "Answer is a long (potentially multi-paragram) free-text entry."; - case URL: return "Answer is a url (website, FTP site, etc.)."; + case URL: + return "Answer is a url (website, FTP site, etc.)."; case CHOICE: return "Answer is a choice from a list of options."; case OPENCHOICE: return "Answer is a choice from a list of options or a free-text entry."; case ATTACHMENT: return "Answer is binary content such as a image, PDF, etc."; @@ -302,7 +305,8 @@ public class Questionnaire extends DomainResource { case TIME: return "time"; case STRING: return "string"; case TEXT: return "text"; - case URL: return "url"; + case URL: + return "url"; case CHOICE: return "choice"; case OPENCHOICE: return "open-choice"; case ATTACHMENT: return "attachment"; @@ -337,7 +341,7 @@ public class Questionnaire extends DomainResource { if ("text".equals(codeString)) return AnswerFormat.TEXT; if ("url".equals(codeString)) - return AnswerFormat.URL; + return AnswerFormat.URL; if ("choice".equals(codeString)) return AnswerFormat.CHOICE; if ("open-choice".equals(codeString)) @@ -369,8 +373,8 @@ public class Questionnaire extends DomainResource { return "string"; if (code == AnswerFormat.TEXT) return "text"; - if (code == AnswerFormat.URL) - return "url"; + if (code == AnswerFormat.URL) + return "url"; if (code == AnswerFormat.CHOICE) return "choice"; if (code == AnswerFormat.OPENCHOICE) @@ -866,7 +870,7 @@ public class Questionnaire extends DomainResource { * The actual question as shown to the user to prompt them for an answer. */ @Child(name="text", type={StringType.class}, order=3, min=0, max=1) - @Description(shortDefinition="Text of the question as it is shown to the user", formalDefinition="The actual question as shown to the user to prompt them for an answer." ) + @Description(shortDefinition = "Text of the question as it is shown to the user", formalDefinition = "The actual question as shown to the user to prompt them for an answer.") protected StringType text; /** @@ -880,14 +884,14 @@ public class Questionnaire extends DomainResource { * If true, indicates that the question must be answered and have required groups within it also present. If false, the question and any contained groups may be skipped when answering the questionnaire. */ @Child(name="required", type={BooleanType.class}, order=5, min=0, max=1) - @Description(shortDefinition="Must question be answered in data results?", formalDefinition="If true, indicates that the question must be answered and have required groups within it also present. If false, the question and any contained groups may be skipped when answering the questionnaire." ) + @Description(shortDefinition = "Must question be answered in data results?", formalDefinition = "If true, indicates that the question must be answered and have required groups within it also present. If false, the question and any contained groups may be skipped when answering the questionnaire.") protected BooleanType required; /** * If true, the question may have more than one answer. */ @Child(name="repeats", type={BooleanType.class}, order=6, min=0, max=1) - @Description(shortDefinition="Can question have multiple answers?", formalDefinition="If true, the question may have more than one answer." ) + @Description(shortDefinition = "Can question have multiple answers?", formalDefinition = "If true, the question may have more than one answer.") protected BooleanType repeats; /** @@ -1260,10 +1264,10 @@ public class Questionnaire extends DomainResource { super.listChildren(childrenList); childrenList.add(new Property("linkId", "string", "An identifier that is unique within the questionnaire allowing linkage to the equivalent group in a [[[QuestionnaireAnswers]]] resource.", 0, java.lang.Integer.MAX_VALUE, linkId)); childrenList.add(new Property("concept", "Coding", "Identifies a how this question is known in a particular terminology such as LOINC.", 0, java.lang.Integer.MAX_VALUE, concept)); - childrenList.add(new Property("text", "string", "The actual question as shown to the user to prompt them for an answer.", 0, java.lang.Integer.MAX_VALUE, text)); + childrenList.add(new Property("text", "string", "The actual question as shown to the user to prompt them for an answer.", 0, java.lang.Integer.MAX_VALUE, text)); childrenList.add(new Property("type", "code", "The expected format of the answer, e.g. the type of input (string, integer) or whether a (multiple) choice is expected.", 0, java.lang.Integer.MAX_VALUE, type)); - childrenList.add(new Property("required", "boolean", "If true, indicates that the question must be answered and have required groups within it also present. If false, the question and any contained groups may be skipped when answering the questionnaire.", 0, java.lang.Integer.MAX_VALUE, required)); - childrenList.add(new Property("repeats", "boolean", "If true, the question may have more than one answer.", 0, java.lang.Integer.MAX_VALUE, repeats)); + childrenList.add(new Property("required", "boolean", "If true, indicates that the question must be answered and have required groups within it also present. If false, the question and any contained groups may be skipped when answering the questionnaire.", 0, java.lang.Integer.MAX_VALUE, required)); + childrenList.add(new Property("repeats", "boolean", "If true, the question may have more than one answer.", 0, java.lang.Integer.MAX_VALUE, repeats)); childrenList.add(new Property("options", "Reference(ValueSet)", "Reference to a valueset containing the possible options.", 0, java.lang.Integer.MAX_VALUE, options)); childrenList.add(new Property("group", "@Questionnaire.group", "Nested group, containing nested question for this question. The order of groups within the question is relevant.", 0, java.lang.Integer.MAX_VALUE, group)); } @@ -1325,49 +1329,49 @@ public class Questionnaire extends DomainResource { /** * This records identifiers associated with this question set that are defined by business processed and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation). */ - @Child(name="identifier", type={Identifier.class}, order=0, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "identifier", type = {Identifier.class}, order = 0, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="External Ids for this questionnaire", formalDefinition="This records identifiers associated with this question set that are defined by business processed and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation)." ) protected List identifier; /** * The version number assigned by the publisher for business reasons. It may remain the same when the resource is updated. */ - @Child(name="version", type={StringType.class}, order=1, min=0, max=1) + @Child(name = "version", type = {StringType.class}, order = 1, min = 0, max = 1) @Description(shortDefinition="Logical id for this version of Questionnaire", formalDefinition="The version number assigned by the publisher for business reasons. It may remain the same when the resource is updated." ) protected StringType version; /** * The lifecycle status of the questionnaire as a whole. */ - @Child(name="status", type={CodeType.class}, order=2, min=1, max=1) + @Child(name = "status", type = {CodeType.class}, order = 2, min = 1, max = 1) @Description(shortDefinition="draft | published | retired", formalDefinition="The lifecycle status of the questionnaire as a whole." ) protected Enumeration status; /** * The date that this questionnaire was last changed. */ - @Child(name="date", type={DateTimeType.class}, order=3, min=0, max=1) + @Child(name = "date", type = {DateTimeType.class}, order = 3, min = 0, max = 1) @Description(shortDefinition="Date this version was authored", formalDefinition="The date that this questionnaire was last changed." ) protected DateTimeType date; /** * Organization or person responsible for developing and maintaining the questionnaire. */ - @Child(name="publisher", type={StringType.class}, order=4, min=0, max=1) - @Description(shortDefinition="Organization/individual who designed the questionnaire", formalDefinition="Organization or person responsible for developing and maintaining the questionnaire." ) + @Child(name = "publisher", type = {StringType.class}, order = 4, min = 0, max = 1) + @Description(shortDefinition = "Organization/individual who designed the questionnaire", formalDefinition = "Organization or person responsible for developing and maintaining the questionnaire.") protected StringType publisher; /** * Contact details to assist a user in finding and communicating with the publisher. */ - @Child(name="telecom", type={ContactPoint.class}, order=5, min=0, max=Child.MAX_UNLIMITED) - @Description(shortDefinition="Contact information of the publisher", formalDefinition="Contact details to assist a user in finding and communicating with the publisher." ) + @Child(name = "telecom", type = {ContactPoint.class}, order = 5, min = 0, max = Child.MAX_UNLIMITED) + @Description(shortDefinition = "Contact information of the publisher", formalDefinition = "Contact details to assist a user in finding and communicating with the publisher.") protected List telecom; /** * A collection of related questions (or further groupings of questions). */ - @Child(name="group", type={}, order=6, min=1, max=1) + @Child(name = "group", type = {}, order = 6, min = 1, max = 1) @Description(shortDefinition="Grouped questions", formalDefinition="A collection of related questions (or further groupings of questions)." ) protected GroupComponent group; @@ -1608,19 +1612,19 @@ public class Questionnaire extends DomainResource { /** * @return {@link #telecom} (Contact details to assist a user in finding and communicating with the publisher.) */ - public List getTelecom() { - if (this.telecom == null) - this.telecom = new ArrayList(); - return this.telecom; + public List getTelecom() { + if (this.telecom == null) + this.telecom = new ArrayList(); + return this.telecom; } - public boolean hasTelecom() { - if (this.telecom == null) + public boolean hasTelecom() { + if (this.telecom == null) + return false; + for (ContactPoint item : this.telecom) + if (!item.isEmpty()) + return true; return false; - for (ContactPoint item : this.telecom) - if (!item.isEmpty()) - return true; - return false; } /** @@ -1628,11 +1632,11 @@ public class Questionnaire extends DomainResource { */ // syntactic sugar public ContactPoint addTelecom() { //3 - ContactPoint t = new ContactPoint(); - if (this.telecom == null) - this.telecom = new ArrayList(); - this.telecom.add(t); - return t; + ContactPoint t = new ContactPoint(); + if (this.telecom == null) + this.telecom = new ArrayList(); + this.telecom.add(t); + return t; } /** @@ -1665,8 +1669,8 @@ public class Questionnaire extends DomainResource { childrenList.add(new Property("version", "string", "The version number assigned by the publisher for business reasons. It may remain the same when the resource is updated.", 0, java.lang.Integer.MAX_VALUE, version)); childrenList.add(new Property("status", "code", "The lifecycle status of the questionnaire as a whole.", 0, java.lang.Integer.MAX_VALUE, status)); childrenList.add(new Property("date", "dateTime", "The date that this questionnaire was last changed.", 0, java.lang.Integer.MAX_VALUE, date)); - childrenList.add(new Property("publisher", "string", "Organization or person responsible for developing and maintaining the questionnaire.", 0, java.lang.Integer.MAX_VALUE, publisher)); - childrenList.add(new Property("telecom", "ContactPoint", "Contact details to assist a user in finding and communicating with the publisher.", 0, java.lang.Integer.MAX_VALUE, telecom)); + childrenList.add(new Property("publisher", "string", "Organization or person responsible for developing and maintaining the questionnaire.", 0, java.lang.Integer.MAX_VALUE, publisher)); + childrenList.add(new Property("telecom", "ContactPoint", "Contact details to assist a user in finding and communicating with the publisher.", 0, java.lang.Integer.MAX_VALUE, telecom)); childrenList.add(new Property("group", "", "A collection of related questions (or further groupings of questions).", 0, java.lang.Integer.MAX_VALUE, group)); } @@ -1682,11 +1686,12 @@ public class Questionnaire extends DomainResource { dst.status = status == null ? null : status.copy(); dst.date = date == null ? null : date.copy(); dst.publisher = publisher == null ? null : publisher.copy(); - if (telecom != null) { - dst.telecom = new ArrayList(); - for (ContactPoint i : telecom) - dst.telecom.add(i.copy()); - }; + if (telecom != null) { + dst.telecom = new ArrayList(); + for (ContactPoint i : telecom) + dst.telecom.add(i.copy()); + } + ; dst.group = group == null ? null : group.copy(); return dst; } @@ -1703,8 +1708,8 @@ public class Questionnaire extends DomainResource { return false; Questionnaire o = (Questionnaire) other; return compareDeep(identifier, o.identifier, true) && compareDeep(version, o.version, true) && compareDeep(status, o.status, true) - && compareDeep(date, o.date, true) && compareDeep(publisher, o.publisher, true) && compareDeep(telecom, o.telecom, true) - && compareDeep(group, o.group, true); + && compareDeep(date, o.date, true) && compareDeep(publisher, o.publisher, true) && compareDeep(telecom, o.telecom, true) + && compareDeep(group, o.group, true); } @Override @@ -1721,7 +1726,7 @@ public class Questionnaire extends DomainResource { public boolean isEmpty() { return super.isEmpty() && (identifier == null || identifier.isEmpty()) && (version == null || version.isEmpty()) && (status == null || status.isEmpty()) && (date == null || date.isEmpty()) && (publisher == null || publisher.isEmpty()) - && (telecom == null || telecom.isEmpty()) && (group == null || group.isEmpty()); + && (telecom == null || telecom.isEmpty()) && (group == null || group.isEmpty()); } @Override @@ -1733,16 +1738,16 @@ public class Questionnaire extends DomainResource { public static final String SP_DATE = "date"; @SearchParamDefinition(name="identifier", path="Questionnaire.identifier", description="An identifier for the questionnaire", type="token" ) public static final String SP_IDENTIFIER = "identifier"; - @SearchParamDefinition(name="code", path="Questionnaire.group.concept", description="A code that corresponds to the questionnaire or one of its groups", type="token" ) - public static final String SP_CODE = "code"; + @SearchParamDefinition(name = "code", path = "Questionnaire.group.concept", description = "A code that corresponds to the questionnaire or one of its groups", type = "token") + public static final String SP_CODE = "code"; @SearchParamDefinition(name="publisher", path="Questionnaire.publisher", description="The author of the questionnaire", type="string" ) public static final String SP_PUBLISHER = "publisher"; - @SearchParamDefinition(name="title", path="", description="All or part of the name of the questionnaire (title for the root group of the questionnaire)", type="string" ) - public static final String SP_TITLE = "title"; - @SearchParamDefinition(name="version", path="Questionnaire.version", description="The business version of the questionnaire", type="string" ) - public static final String SP_VERSION = "version"; - @SearchParamDefinition(name="status", path="Questionnaire.status", description="The status of the questionnaire", type="token" ) - public static final String SP_STATUS = "status"; + @SearchParamDefinition(name = "title", path = "", description = "All or part of the name of the questionnaire (title for the root group of the questionnaire)", type = "string") + public static final String SP_TITLE = "title"; + @SearchParamDefinition(name = "version", path = "Questionnaire.version", description = "The business version of the questionnaire", type = "string") + public static final String SP_VERSION = "version"; + @SearchParamDefinition(name = "status", path = "Questionnaire.status", description = "The status of the questionnaire", type = "token") + public static final String SP_STATUS = "status"; } diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/QuestionnaireAnswers.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/QuestionnaireAnswers.java index 414cf94de59..e30db9ca0aa 100644 --- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/QuestionnaireAnswers.java +++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/QuestionnaireAnswers.java @@ -506,7 +506,7 @@ public class QuestionnaireAnswers extends DomainResource { * The actual question as shown to the user to prompt them for an answer. */ @Child(name="text", type={StringType.class}, order=2, min=0, max=1) - @Description(shortDefinition="Text of the question as it is shown to the user", formalDefinition="The actual question as shown to the user to prompt them for an answer." ) + @Description(shortDefinition = "Text of the question as it is shown to the user", formalDefinition = "The actual question as shown to the user to prompt them for an answer.") protected StringType text; /** @@ -746,8 +746,8 @@ public class QuestionnaireAnswers extends DomainResource { /** * The answer (or one of the answers) provided by the respondant to the question. */ - @Child(name="value", type={BooleanType.class, DecimalType.class, IntegerType.class, DateType.class, DateTimeType.class, InstantType.class, TimeType.class, StringType.class, UriType.class, Attachment.class, Coding.class, Quantity.class}, order=1, min=0, max=1) - @Description(shortDefinition="Single-valued answer to the question", formalDefinition="The answer (or one of the answers) provided by the respondant to the question." ) + @Child(name = "value", type = {BooleanType.class, DecimalType.class, IntegerType.class, DateType.class, DateTimeType.class, InstantType.class, TimeType.class, StringType.class, UriType.class, Attachment.class, Coding.class, Quantity.class}, order = 1, min = 0, max = 1) + @Description(shortDefinition = "Single-valued answer to the question", formalDefinition = "The answer (or one of the answers) provided by the respondant to the question.") protected Type value; private static final long serialVersionUID = -732981989L; @@ -838,23 +838,23 @@ public class QuestionnaireAnswers extends DomainResource { /** * @return {@link #value} (The answer (or one of the answers) provided by the respondant to the question.) */ - public UriType getValueUriType() throws Exception { + public UriType getValueUriType() throws Exception { if (!(this.value instanceof UriType)) - throw new Exception("Type mismatch: the type UriType was expected, but "+this.value.getClass().getName()+" was encountered"); + throw new Exception("Type mismatch: the type UriType was expected, but " + this.value.getClass().getName() + " was encountered"); return (UriType) this.value; } - /** - * @return {@link #value} (The answer (or one of the answers) provided by the respondant to the question.) - */ + /** + * @return {@link #value} (The answer (or one of the answers) provided by the respondant to the question.) + */ public Attachment getValueAttachment() throws Exception { if (!(this.value instanceof Attachment)) throw new Exception("Type mismatch: the type Attachment was expected, but "+this.value.getClass().getName()+" was encountered"); return (Attachment) this.value; } - /** - * @return {@link #value} (The answer (or one of the answers) provided by the respondant to the question.) + /** + * @return {@link #value} (The answer (or one of the answers) provided by the respondant to the question.) */ public Coding getValueCoding() throws Exception { if (!(this.value instanceof Coding)) @@ -862,8 +862,8 @@ public class QuestionnaireAnswers extends DomainResource { return (Coding) this.value; } - /** - * @return {@link #value} (The answer (or one of the answers) provided by the respondant to the question.) + /** + * @return {@link #value} (The answer (or one of the answers) provided by the respondant to the question.) */ public Quantity getValueQuantity() throws Exception { if (!(this.value instanceof Quantity)) @@ -871,8 +871,8 @@ public class QuestionnaireAnswers extends DomainResource { return (Quantity) this.value; } - /** - * @return {@link #value} (The answer (or one of the answers) provided by the respondant to the question.) + /** + * @return {@link #value} (The answer (or one of the answers) provided by the respondant to the question.) */ public Reference getValueReference() throws Exception { if (!(this.value instanceof Reference)) @@ -884,8 +884,8 @@ public class QuestionnaireAnswers extends DomainResource { return this.value != null && !this.value.isEmpty(); } - /** - * @param value {@link #value} (The answer (or one of the answers) provided by the respondant to the question.) + /** + * @param value {@link #value} (The answer (or one of the answers) provided by the respondant to the question.) */ public QuestionAnswerComponent setValue(Type value) { this.value = value; @@ -933,14 +933,14 @@ public class QuestionnaireAnswers extends DomainResource { /** * A business identifier assigned to a particular completed (or partially completed) questionnaire. */ - @Child(name="identifier", type={Identifier.class}, order=0, min=0, max=1) + @Child(name = "identifier", type = {Identifier.class}, order = 0, min = 0, max = 1) @Description(shortDefinition="Unique id for this set of answers", formalDefinition="A business identifier assigned to a particular completed (or partially completed) questionnaire." ) protected Identifier identifier; /** * Indicates the Questionnaire resource that defines the form for which answers are being provided. */ - @Child(name="questionnaire", type={Questionnaire.class}, order=1, min=0, max=1) + @Child(name = "questionnaire", type = {Questionnaire.class}, order = 1, min = 0, max = 1) @Description(shortDefinition="Form being answered", formalDefinition="Indicates the Questionnaire resource that defines the form for which answers are being provided." ) protected Reference questionnaire; @@ -952,14 +952,14 @@ public class QuestionnaireAnswers extends DomainResource { /** * The lifecycle status of the questionnaire answers as a whole. */ - @Child(name="status", type={CodeType.class}, order=2, min=1, max=1) + @Child(name = "status", type = {CodeType.class}, order = 2, min = 1, max = 1) @Description(shortDefinition="in-progress | completed | amended", formalDefinition="The lifecycle status of the questionnaire answers as a whole." ) protected Enumeration status; /** * The subject of the questionnaire answers. This could be a patient, organization, practitioner, device, etc. This is who/what the answers apply to, but is not necessarily the source of information. */ - @Child(name="subject", type={}, order=3, min=0, max=1) + @Child(name = "subject", type = {}, order = 3, min = 0, max = 1) @Description(shortDefinition="The subject of the questions", formalDefinition="The subject of the questionnaire answers. This could be a patient, organization, practitioner, device, etc. This is who/what the answers apply to, but is not necessarily the source of information." ) protected Reference subject; @@ -971,7 +971,7 @@ public class QuestionnaireAnswers extends DomainResource { /** * Person who received the answers to the questions in the QuestionnaireAnswers and recorded them in the system. */ - @Child(name="author", type={Practitioner.class, Patient.class, RelatedPerson.class}, order=4, min=0, max=1) + @Child(name = "author", type = {Practitioner.class, Patient.class, RelatedPerson.class}, order = 4, min = 0, max = 1) @Description(shortDefinition="Person who received and recorded the answers", formalDefinition="Person who received the answers to the questions in the QuestionnaireAnswers and recorded them in the system." ) protected Reference author; @@ -983,26 +983,26 @@ public class QuestionnaireAnswers extends DomainResource { /** * The date and/or time that this version of the questionnaire answers was authored. */ - @Child(name="authored", type={DateTimeType.class}, order=5, min=1, max=1) + @Child(name = "authored", type = {DateTimeType.class}, order = 5, min = 1, max = 1) @Description(shortDefinition="Date this version was authored", formalDefinition="The date and/or time that this version of the questionnaire answers was authored." ) protected DateTimeType authored; - /** - * The person who answered the questions about the subject. - */ - @Child(name="source", type={Patient.class, Practitioner.class, RelatedPerson.class}, order=6, min=0, max=1) - @Description(shortDefinition="The person who answered the questions", formalDefinition="The person who answered the questions about the subject." ) + /** + * The person who answered the questions about the subject. + */ + @Child(name = "source", type = {Patient.class, Practitioner.class, RelatedPerson.class}, order = 6, min = 0, max = 1) + @Description(shortDefinition = "The person who answered the questions", formalDefinition = "The person who answered the questions about the subject.") protected Reference source; - /** - * The actual object that is the target of the reference (The person who answered the questions about the subject.) + /** + * The actual object that is the target of the reference (The person who answered the questions about the subject.) */ protected Resource sourceTarget; /** * Encounter during which this set of questionnaire answers were collected. When there were multiple encounters, this is the one considered most relevant to the context of the answers. */ - @Child(name="encounter", type={Encounter.class}, order=7, min=0, max=1) + @Child(name = "encounter", type = {Encounter.class}, order = 7, min = 0, max = 1) @Description(shortDefinition="Primary encounter during which the answers were collected", formalDefinition="Encounter during which this set of questionnaire answers were collected. When there were multiple encounters, this is the one considered most relevant to the context of the answers." ) protected Reference encounter; @@ -1014,7 +1014,7 @@ public class QuestionnaireAnswers extends DomainResource { /** * A group of questions to a possibly similarly grouped set of questions in the questionnaire answers. */ - @Child(name="group", type={}, order=8, min=0, max=1) + @Child(name = "group", type = {}, order = 8, min = 0, max = 1) @Description(shortDefinition="Grouped questions", formalDefinition="A group of questions to a possibly similarly grouped set of questions in the questionnaire answers." ) protected GroupComponent group; @@ -1266,8 +1266,8 @@ public class QuestionnaireAnswers extends DomainResource { return this; } - /** - * @return {@link #source} (The person who answered the questions about the subject.) + /** + * @return {@link #source} (The person who answered the questions about the subject.) */ public Reference getSource() { if (this.source == null) @@ -1282,23 +1282,23 @@ public class QuestionnaireAnswers extends DomainResource { return this.source != null && !this.source.isEmpty(); } - /** - * @param value {@link #source} (The person who answered the questions about the subject.) + /** + * @param value {@link #source} (The person who answered the questions about the subject.) */ public QuestionnaireAnswers setSource(Reference value) { this.source = value; return this; } - /** - * @return {@link #source} The actual object that is the target of the reference. The reference library doesn't populate this, but you can use it to hold the resource if you resolve it. (The person who answered the questions about the subject.) + /** + * @return {@link #source} The actual object that is the target of the reference. The reference library doesn't populate this, but you can use it to hold the resource if you resolve it. (The person who answered the questions about the subject.) */ public Resource getSourceTarget() { return this.sourceTarget; } - /** - * @param value {@link #source} The actual object that is the target of the reference. The reference library doesn't use these, but you can use it to hold the resource if you resolve it. (The person who answered the questions about the subject.) + /** + * @param value {@link #source} The actual object that is the target of the reference. The reference library doesn't use these, but you can use it to hold the resource if you resolve it. (The person who answered the questions about the subject.) */ public QuestionnaireAnswers setSourceTarget(Resource value) { this.sourceTarget = value; @@ -1442,17 +1442,17 @@ public class QuestionnaireAnswers extends DomainResource { @SearchParamDefinition(name="authored", path="QuestionnaireAnswers.authored", description="When the questionnaire was authored", type="date" ) public static final String SP_AUTHORED = "authored"; - @SearchParamDefinition(name="questionnaire", path="QuestionnaireAnswers.questionnaire", description="The questionnaire the answers are provided for", type="reference" ) + @SearchParamDefinition(name = "questionnaire", path = "QuestionnaireAnswers.questionnaire", description = "The questionnaire the answers are provided for", type = "reference") public static final String SP_QUESTIONNAIRE = "questionnaire"; @SearchParamDefinition(name="subject", path="QuestionnaireAnswers.subject", description="The subject of the questionnaire", type="reference" ) public static final String SP_SUBJECT = "subject"; - @SearchParamDefinition(name="author", path="QuestionnaireAnswers.author", description="The author of the questionnaire", type="reference" ) + @SearchParamDefinition(name = "author", path = "QuestionnaireAnswers.author", description = "The author of the questionnaire", type = "reference") public static final String SP_AUTHOR = "author"; - @SearchParamDefinition(name="patient", path="QuestionnaireAnswers.subject", description="The patient that is the subject of the questionnaire", type="reference" ) + @SearchParamDefinition(name = "patient", path = "QuestionnaireAnswers.subject", description = "The patient that is the subject of the questionnaire", type = "reference") public static final String SP_PATIENT = "patient"; @SearchParamDefinition(name="encounter", path="QuestionnaireAnswers.encounter", description="Encounter during which questionnaire was authored", type="reference" ) public static final String SP_ENCOUNTER = "encounter"; - @SearchParamDefinition(name="status", path="QuestionnaireAnswers.status", description="The status of the questionnaire answers", type="token" ) + @SearchParamDefinition(name = "status", path = "QuestionnaireAnswers.status", description = "The status of the questionnaire answers", type = "token") public static final String SP_STATUS = "status"; } diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Range.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Range.java index e525afa6695..9ec5d104bd9 100644 --- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Range.java +++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Range.java @@ -40,19 +40,19 @@ import org.hl7.fhir.instance.model.annotations.DatatypeDef; * A set of ordered Quantities defined by a low and high limit. */ @DatatypeDef(name="Range") -public class Range extends Type implements ICompositeType { +public class Range extends Type implements ICompositeType { /** * The low limit. The boundary is inclusive. */ - @Child(name="low", type={Quantity.class}, order=0, min=0, max=1) + @Child(name = "low", type = {Quantity.class}, order = 0, min = 0, max = 1) @Description(shortDefinition="Low limit", formalDefinition="The low limit. The boundary is inclusive." ) protected Quantity low; /** * The high limit. The boundary is inclusive. */ - @Child(name="high", type={Quantity.class}, order=1, min=0, max=1) + @Child(name = "high", type = {Quantity.class}, order = 1, min = 0, max = 1) @Description(shortDefinition="High limit", formalDefinition="The high limit. The boundary is inclusive." ) protected Quantity high; diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Ratio.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Ratio.java index a544f4bdf92..30ffc09c6a7 100644 --- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Ratio.java +++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Ratio.java @@ -40,19 +40,19 @@ import org.hl7.fhir.instance.model.annotations.DatatypeDef; * A relationship of two Quantity values - expressed as a numerator and a denominator. */ @DatatypeDef(name="Ratio") -public class Ratio extends Type implements ICompositeType { +public class Ratio extends Type implements ICompositeType { /** * The value of the numerator. */ - @Child(name="numerator", type={Quantity.class}, order=0, min=0, max=1) + @Child(name = "numerator", type = {Quantity.class}, order = 0, min = 0, max = 1) @Description(shortDefinition="Numerator value", formalDefinition="The value of the numerator." ) protected Quantity numerator; /** * The value of the denominator. */ - @Child(name="denominator", type={Quantity.class}, order=1, min=0, max=1) + @Child(name = "denominator", type = {Quantity.class}, order = 1, min = 0, max = 1) @Description(shortDefinition="Denominator value", formalDefinition="The value of the denominator." ) protected Quantity denominator; diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Readjudicate.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Readjudicate.java index 963adddb036..912323d79a3 100644 --- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Readjudicate.java +++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Readjudicate.java @@ -151,35 +151,35 @@ public class Readjudicate extends DomainResource { /** * The Response Business Identifier. */ - @Child(name="identifier", type={Identifier.class}, order=0, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "identifier", type = {Identifier.class}, order = 0, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Business Identifier", formalDefinition="The Response Business Identifier." ) protected List identifier; /** * The version of the style of resource contents. This should be mapped to the allowable profiles for this and supporting resources. */ - @Child(name="ruleset", type={Coding.class}, order=1, min=0, max=1) + @Child(name = "ruleset", type = {Coding.class}, order = 1, min = 0, max = 1) @Description(shortDefinition="Resource version", formalDefinition="The version of the style of resource contents. This should be mapped to the allowable profiles for this and supporting resources." ) protected Coding ruleset; /** * The style (standard) and version of the original material which was converted into this resource. */ - @Child(name="originalRuleset", type={Coding.class}, order=2, min=0, max=1) + @Child(name = "originalRuleset", type = {Coding.class}, order = 2, min = 0, max = 1) @Description(shortDefinition="Original version", formalDefinition="The style (standard) and version of the original material which was converted into this resource." ) protected Coding originalRuleset; /** * The date when this resource was created. */ - @Child(name="created", type={DateTimeType.class}, order=3, min=0, max=1) + @Child(name = "created", type = {DateTimeType.class}, order = 3, min = 0, max = 1) @Description(shortDefinition="Creation date", formalDefinition="The date when this resource was created." ) protected DateTimeType created; /** * The Insurer who is target of the request. */ - @Child(name="target", type={Organization.class}, order=4, min=0, max=1) + @Child(name = "target", type = {Organization.class}, order = 4, min = 0, max = 1) @Description(shortDefinition="Insurer", formalDefinition="The Insurer who is target of the request." ) protected Reference target; @@ -191,7 +191,7 @@ public class Readjudicate extends DomainResource { /** * The practitioner who is responsible for the services rendered to the patient. */ - @Child(name="provider", type={Practitioner.class}, order=5, min=0, max=1) + @Child(name = "provider", type = {Practitioner.class}, order = 5, min = 0, max = 1) @Description(shortDefinition="Responsible practitioner", formalDefinition="The practitioner who is responsible for the services rendered to the patient." ) protected Reference provider; @@ -203,7 +203,7 @@ public class Readjudicate extends DomainResource { /** * The organization which is responsible for the services rendered to the patient. */ - @Child(name="organization", type={Organization.class}, order=6, min=0, max=1) + @Child(name = "organization", type = {Organization.class}, order = 6, min = 0, max = 1) @Description(shortDefinition="Responsible organization", formalDefinition="The organization which is responsible for the services rendered to the patient." ) protected Reference organization; @@ -215,7 +215,7 @@ public class Readjudicate extends DomainResource { /** * Reference of resource to reverse. */ - @Child(name="request", type={}, order=7, min=0, max=1) + @Child(name = "request", type = {}, order = 7, min = 0, max = 1) @Description(shortDefinition="Request reference", formalDefinition="Reference of resource to reverse." ) protected Reference request; @@ -227,7 +227,7 @@ public class Readjudicate extends DomainResource { /** * Reference of response to resource to reverse. */ - @Child(name="response", type={}, order=8, min=0, max=1) + @Child(name = "response", type = {}, order = 8, min = 0, max = 1) @Description(shortDefinition="Response reference", formalDefinition="Reference of response to resource to reverse." ) protected Reference response; @@ -239,14 +239,14 @@ public class Readjudicate extends DomainResource { /** * A reference to supply which authenticated the process. */ - @Child(name="reference", type={StringType.class}, order=9, min=0, max=1) + @Child(name = "reference", type = {StringType.class}, order = 9, min = 0, max = 1) @Description(shortDefinition="Reference number/string", formalDefinition="A reference to supply which authenticated the process." ) protected StringType reference; /** * List of top level items to be re-adjudicated, if none specified then the entire submission is re-adjudicated. */ - @Child(name="item", type={}, order=10, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "item", type = {}, order = 10, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Items to re-adjudicate", formalDefinition="List of top level items to be re-adjudicated, if none specified then the entire submission is re-adjudicated." ) protected List item; diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Reference.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Reference.java index 22a11aa7110..64b9fa2083a 100644 --- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Reference.java +++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Reference.java @@ -47,70 +47,70 @@ import org.hl7.fhir.utilities.Utilities; public class Reference extends Type implements IReference, ICompositeType { - /** - * Constructor - */ - public Reference() { - super(); - } + /** + * Constructor + */ + public Reference() { + super(); + } - /** - * Constructor - */ - public Reference(IAnyResource theResource) { - this.resource = theResource; - } + /** + * Constructor + */ + public Reference(IAnyResource theResource) { + this.resource = theResource; + } - /** - * Constructor - */ - public Reference(StringType theReference) { - this.reference = theReference; - } + /** + * Constructor + */ + public Reference(StringType theReference) { + this.reference = theReference; + } - /** - * Constructor - */ - public Reference(String theReference) { - if (StringUtils.isNotBlank(theReference)) { - this.reference = new StringType(theReference); - } - } + /** + * Constructor + */ + public Reference(String theReference) { + if (StringUtils.isNotBlank(theReference)) { + this.reference = new StringType(theReference); + } + } + + /** + * This is not a part of the "wire format" resource, but can be changed/accessed by parsers + */ + private transient IAnyResource resource; - /** - * This is not a part of the "wire format" resource, but can be changed/accessed by parsers - */ - private transient IAnyResource resource; - /** * Retrieves the actual resource referenced by this reference. Note that the resource itself is not * a part of the FHIR "wire format" and is never transmitted or receieved inline, but this property * may be changed/accessed by parsers. */ public IAnyResource getResource() { - return resource; - } + return resource; + } /** * Sets the actual resource referenced by this reference. Note that the resource itself is not * a part of the FHIR "wire format" and is never transmitted or receieved inline, but this property * may be changed/accessed by parsers. */ - public void setResource(IAnyResource theResource) { - resource = theResource; - } + public void setResource(IAnyResource theResource) { + resource = theResource; + } - /** + /** * A reference to a location at which the other resource is found. The reference may be a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources. */ - @Child(name="reference", type={StringType.class}, order=0, min=0, max=1) + @Child(name = "reference", type = {StringType.class}, order = 0, min = 0, max = 1) @Description(shortDefinition="Relative, internal or absolute URL reference", formalDefinition="A reference to a location at which the other resource is found. The reference may be a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources." ) protected StringType reference; /** * Plain text narrative that identifies the resource in addition to the resource reference. */ - @Child(name="display", type={StringType.class}, order=1, min=0, max=1) + @Child(name = "display", type = {StringType.class}, order = 1, min = 0, max = 1) @Description(shortDefinition="Text alternative for the resource", formalDefinition="Plain text narrative that identifies the resource in addition to the resource reference." ) protected StringType display; diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/ReferralRequest.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/ReferralRequest.java index 5d97755f403..4f8795fa9b3 100644 --- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/ReferralRequest.java +++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/ReferralRequest.java @@ -176,42 +176,42 @@ public class ReferralRequest extends DomainResource { /** * The workflow status of the referral or transfer of care request. */ - @Child(name="status", type={CodeType.class}, order=0, min=1, max=1) + @Child(name = "status", type = {CodeType.class}, order = 0, min = 1, max = 1) @Description(shortDefinition="draft | sent | active | cancelled | refused | completed", formalDefinition="The workflow status of the referral or transfer of care request." ) protected Enumeration status; /** * Business Id that uniquely identifies the referral/care transfer request instance. */ - @Child(name="identifier", type={Identifier.class}, order=1, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "identifier", type = {Identifier.class}, order = 1, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Identifier of request", formalDefinition="Business Id that uniquely identifies the referral/care transfer request instance." ) protected List identifier; /** * An indication of the type of referral (or where applicable the type of transfer of care) request. */ - @Child(name="type", type={CodeableConcept.class}, order=2, min=0, max=1) + @Child(name = "type", type = {CodeableConcept.class}, order = 2, min = 0, max = 1) @Description(shortDefinition="Referral/Transition of care request type", formalDefinition="An indication of the type of referral (or where applicable the type of transfer of care) request." ) protected CodeableConcept type; /** * Indication of the clinical domain or discipline to which the referral or transfer of care request is sent. */ - @Child(name="specialty", type={CodeableConcept.class}, order=3, min=0, max=1) + @Child(name = "specialty", type = {CodeableConcept.class}, order = 3, min = 0, max = 1) @Description(shortDefinition="The clinical specialty (discipline) that the referral is requested for", formalDefinition="Indication of the clinical domain or discipline to which the referral or transfer of care request is sent." ) protected CodeableConcept specialty; /** * An indication of the urgency of referral (or where applicable the type of transfer of care) request. */ - @Child(name="priority", type={CodeableConcept.class}, order=4, min=0, max=1) + @Child(name = "priority", type = {CodeableConcept.class}, order = 4, min = 0, max = 1) @Description(shortDefinition="Urgency of referral / transfer of care request", formalDefinition="An indication of the urgency of referral (or where applicable the type of transfer of care) request." ) protected CodeableConcept priority; /** * The patient who is the subject of a referral or transfer of care request. */ - @Child(name="patient", type={Patient.class}, order=5, min=0, max=1) + @Child(name = "patient", type = {Patient.class}, order = 5, min = 0, max = 1) @Description(shortDefinition="Patient referred to care or transfer", formalDefinition="The patient who is the subject of a referral or transfer of care request." ) protected Reference patient; @@ -223,7 +223,7 @@ public class ReferralRequest extends DomainResource { /** * The healthcare provider or provider organization who/which initaited the referral/transfer of care request. Can also be Patient (a self referral). */ - @Child(name="requester", type={Practitioner.class, Organization.class, Patient.class}, order=6, min=0, max=1) + @Child(name = "requester", type = {Practitioner.class, Organization.class, Patient.class}, order = 6, min = 0, max = 1) @Description(shortDefinition="Requester of referral / transfer of care", formalDefinition="The healthcare provider or provider organization who/which initaited the referral/transfer of care request. Can also be Patient (a self referral)." ) protected Reference requester; @@ -235,7 +235,7 @@ public class ReferralRequest extends DomainResource { /** * The healthcare provider(s) or provider organization(s) who/which is to receive the referral/transfer of care request. */ - @Child(name="recipient", type={Practitioner.class, Organization.class}, order=7, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "recipient", type = {Practitioner.class, Organization.class}, order = 7, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Receiver of referral / transfer of care request", formalDefinition="The healthcare provider(s) or provider organization(s) who/which is to receive the referral/transfer of care request." ) protected List recipient; /** @@ -247,7 +247,7 @@ public class ReferralRequest extends DomainResource { /** * The encounter at which the request for referral or transfer of care is initiated. */ - @Child(name="encounter", type={Encounter.class}, order=8, min=0, max=1) + @Child(name = "encounter", type = {Encounter.class}, order = 8, min = 0, max = 1) @Description(shortDefinition="Encounter", formalDefinition="The encounter at which the request for referral or transfer of care is initiated." ) protected Reference encounter; @@ -259,35 +259,35 @@ public class ReferralRequest extends DomainResource { /** * Date/DateTime the request for referral or transfer of care is sent by the author. */ - @Child(name="dateSent", type={DateTimeType.class}, order=9, min=0, max=1) + @Child(name = "dateSent", type = {DateTimeType.class}, order = 9, min = 0, max = 1) @Description(shortDefinition="Date referral/transfer of care request is sent", formalDefinition="Date/DateTime the request for referral or transfer of care is sent by the author." ) protected DateTimeType dateSent; /** * Description of clinical condition indicating why referral/transfer of care is requested. */ - @Child(name="reason", type={CodeableConcept.class}, order=10, min=0, max=1) + @Child(name = "reason", type = {CodeableConcept.class}, order = 10, min = 0, max = 1) @Description(shortDefinition="Reason for referral / Transfer of care request", formalDefinition="Description of clinical condition indicating why referral/transfer of care is requested." ) protected CodeableConcept reason; /** * The reason gives a short description of why the referral is being made, the description expands on this to support a more complete clinical summary. */ - @Child(name="description", type={StringType.class}, order=11, min=0, max=1) + @Child(name = "description", type = {StringType.class}, order = 11, min = 0, max = 1) @Description(shortDefinition="A textual description of the referral", formalDefinition="The reason gives a short description of why the referral is being made, the description expands on this to support a more complete clinical summary." ) protected StringType description; /** * The service(s) that is/are requested to be provided to the patient. */ - @Child(name="serviceRequested", type={CodeableConcept.class}, order=12, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "serviceRequested", type = {CodeableConcept.class}, order = 12, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Service(s) requested", formalDefinition="The service(s) that is/are requested to be provided to the patient." ) protected List serviceRequested; /** * Any additional (administrative, financial or clinical) information required to support request for referral or transfer of care. */ - @Child(name="supportingInformation", type={}, order=13, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "supportingInformation", type = {}, order = 13, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Additonal information to support referral or transfer of care request", formalDefinition="Any additional (administrative, financial or clinical) information required to support request for referral or transfer of care." ) protected List supportingInformation; /** @@ -299,7 +299,7 @@ public class ReferralRequest extends DomainResource { /** * The period of time within which the services identified in the referral/transfer of care is specified or required to occur. */ - @Child(name="fulfillmentTime", type={Period.class}, order=14, min=0, max=1) + @Child(name = "fulfillmentTime", type = {Period.class}, order = 14, min = 0, max = 1) @Description(shortDefinition="Requested service(s) fulfillment time", formalDefinition="The period of time within which the services identified in the referral/transfer of care is specified or required to occur." ) protected Period fulfillmentTime; @@ -945,15 +945,15 @@ public class ReferralRequest extends DomainResource { @SearchParamDefinition(name="specialty", path="ReferralRequest.specialty", description="The specialty that the referral is for", type="token" ) public static final String SP_SPECIALTY = "specialty"; - @SearchParamDefinition(name="patient", path="ReferralRequest.patient", description="Who the referral is about", type="reference" ) + @SearchParamDefinition(name = "patient", path = "ReferralRequest.patient", description = "Who the referral is about", type = "reference") public static final String SP_PATIENT = "patient"; @SearchParamDefinition(name="recipient", path="ReferralRequest.recipient", description="The person that the referral was sent to", type="reference" ) public static final String SP_RECIPIENT = "recipient"; - @SearchParamDefinition(name="type", path="ReferralRequest.type", description="The type of the referral", type="token" ) + @SearchParamDefinition(name = "type", path = "ReferralRequest.type", description = "The type of the referral", type = "token") public static final String SP_TYPE = "type"; - @SearchParamDefinition(name="priority", path="ReferralRequest.priority", description="The priority assigned to the referral", type="token" ) + @SearchParamDefinition(name = "priority", path = "ReferralRequest.priority", description = "The priority assigned to the referral", type = "token") public static final String SP_PRIORITY = "priority"; - @SearchParamDefinition(name="status", path="ReferralRequest.status", description="The status of the referral", type="token" ) + @SearchParamDefinition(name = "status", path = "ReferralRequest.status", description = "The status of the referral", type = "token") public static final String SP_STATUS = "status"; } diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/RelatedPerson.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/RelatedPerson.java index 01cdafa5d79..477ece8d55d 100644 --- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/RelatedPerson.java +++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/RelatedPerson.java @@ -148,14 +148,14 @@ public class RelatedPerson extends DomainResource { /** * Identifier for a person within a particular scope. */ - @Child(name="identifier", type={Identifier.class}, order=0, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "identifier", type = {Identifier.class}, order = 0, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="A Human identifier for this person", formalDefinition="Identifier for a person within a particular scope." ) protected List identifier; /** * The patient this person is related to. */ - @Child(name="patient", type={Patient.class}, order=1, min=1, max=1) + @Child(name = "patient", type = {Patient.class}, order = 1, min = 1, max = 1) @Description(shortDefinition="The patient this person is related to", formalDefinition="The patient this person is related to." ) protected Reference patient; @@ -167,49 +167,49 @@ public class RelatedPerson extends DomainResource { /** * The nature of the relationship between a patient and the related person. */ - @Child(name="relationship", type={CodeableConcept.class}, order=2, min=0, max=1) + @Child(name = "relationship", type = {CodeableConcept.class}, order = 2, min = 0, max = 1) @Description(shortDefinition="The nature of the relationship", formalDefinition="The nature of the relationship between a patient and the related person." ) protected CodeableConcept relationship; /** * A name associated with the person. */ - @Child(name="name", type={HumanName.class}, order=3, min=0, max=1) + @Child(name = "name", type = {HumanName.class}, order = 3, min = 0, max = 1) @Description(shortDefinition="A name associated with the person", formalDefinition="A name associated with the person." ) protected HumanName name; /** * A contact detail for the person, e.g. a telephone number or an email address. */ - @Child(name="telecom", type={ContactPoint.class}, order=4, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "telecom", type = {ContactPoint.class}, order = 4, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="A contact detail for the person", formalDefinition="A contact detail for the person, e.g. a telephone number or an email address." ) protected List telecom; /** * Administrative Gender - the gender that the person is considered to have for administration and record keeping purposes. */ - @Child(name="gender", type={CodeType.class}, order=5, min=0, max=1) + @Child(name = "gender", type = {CodeType.class}, order = 5, min = 0, max = 1) @Description(shortDefinition="male | female | other | unknown", formalDefinition="Administrative Gender - the gender that the person is considered to have for administration and record keeping purposes." ) protected Enumeration gender; /** * Address where the related person can be contacted or visited. */ - @Child(name="address", type={Address.class}, order=6, min=0, max=1) + @Child(name = "address", type = {Address.class}, order = 6, min = 0, max = 1) @Description(shortDefinition="Address where the related person can be contacted or visited", formalDefinition="Address where the related person can be contacted or visited." ) protected Address address; /** * Image of the person. */ - @Child(name="photo", type={Attachment.class}, order=7, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "photo", type = {Attachment.class}, order = 7, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Image of the person", formalDefinition="Image of the person." ) protected List photo; /** * The period of time that this relationship is considered to be valid. If there are no dates defined, then the interval is unknown. */ - @Child(name="period", type={Period.class}, order=8, min=0, max=1) + @Child(name = "period", type = {Period.class}, order = 8, min = 0, max = 1) @Description(shortDefinition="Period of time that this relationship is considered valid", formalDefinition="The period of time that this relationship is considered to be valid. If there are no dates defined, then the interval is unknown." ) protected Period period; @@ -582,15 +582,15 @@ public class RelatedPerson extends DomainResource { return ResourceType.RelatedPerson; } - @SearchParamDefinition(name="identifier", path="RelatedPerson.identifier", description="A patient Identifier", type="token" ) + @SearchParamDefinition(name = "identifier", path = "RelatedPerson.identifier", description = "A patient Identifier", type = "token") public static final String SP_IDENTIFIER = "identifier"; @SearchParamDefinition(name="phonetic", path="", description="A portion of name using some kind of phonetic matching algorithm", type="string" ) public static final String SP_PHONETIC = "phonetic"; @SearchParamDefinition(name="address", path="RelatedPerson.address", description="An address in any kind of address/part", type="string" ) public static final String SP_ADDRESS = "address"; - @SearchParamDefinition(name="gender", path="RelatedPerson.gender", description="Gender of the person", type="token" ) + @SearchParamDefinition(name = "gender", path = "RelatedPerson.gender", description = "Gender of the person", type = "token") public static final String SP_GENDER = "gender"; - @SearchParamDefinition(name="patient", path="RelatedPerson.patient", description="The patient this person is related to", type="reference" ) + @SearchParamDefinition(name = "patient", path = "RelatedPerson.patient", description = "The patient this person is related to", type = "reference") public static final String SP_PATIENT = "patient"; @SearchParamDefinition(name="name", path="RelatedPerson.name", description="A portion of name in any name part", type="string" ) public static final String SP_NAME = "name"; diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Resource.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Resource.java index 268fb0fba41..bcfa6fe669c 100644 --- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Resource.java +++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Resource.java @@ -49,28 +49,28 @@ public abstract class Resource extends Base implements IAnyResource { /** * The logical id of the resource, as used in the url for the resoure. Once assigned, this value never changes. */ - @Child(name="id", type={IdType.class}, order=0, min=0, max=1) + @Child(name = "id", type = {IdType.class}, order = 0, min = 0, max = 1) @Description(shortDefinition="Logical id of this artefact", formalDefinition="The logical id of the resource, as used in the url for the resoure. Once assigned, this value never changes." ) protected IdType id; /** * The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content may not always be associated with version changes to the resource. */ - @Child(name="meta", type={Meta.class}, order=1, min=0, max=1) + @Child(name = "meta", type = {Meta.class}, order = 1, min = 0, max = 1) @Description(shortDefinition="Metadata about the resource", formalDefinition="The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content may not always be associated with version changes to the resource." ) protected Meta meta; /** * A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. */ - @Child(name="implicitRules", type={UriType.class}, order=2, min=0, max=1) + @Child(name = "implicitRules", type = {UriType.class}, order = 2, min = 0, max = 1) @Description(shortDefinition="A set of rules under which this content was created", formalDefinition="A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content." ) protected UriType implicitRules; /** * The base language in which the resource is written. */ - @Child(name="language", type={CodeType.class}, order=3, min=0, max=1) + @Child(name = "language", type = {CodeType.class}, order = 3, min = 0, max = 1) @Description(shortDefinition="Language of the resource content", formalDefinition="The base language in which the resource is written." ) protected CodeType language; diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/ResourceType.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/ResourceType.java index 87c164e03c0..92b3d700f8c 100644 --- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/ResourceType.java +++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/ResourceType.java @@ -111,206 +111,206 @@ public enum ResourceType { switch (this) { case Appointment: return "appointment"; - case ReferralRequest: - return "referralrequest"; - case OralHealthClaim: - return "oralhealthclaim"; - case DocumentManifest: - return "documentmanifest"; - case Goal: - return "goal"; - case EnrollmentRequest: - return "enrollmentrequest"; - case FamilyHistory: - return "familyhistory"; - case Medication: - return "medication"; - case Subscription: - return "subscription"; - case DocumentReference: - return "documentreference"; - case SecurityEvent: - return "securityevent"; - case Conformance: - return "conformance"; - case RelatedPerson: - return "relatedperson"; - case Practitioner: - return "practitioner"; + case ReferralRequest: + return "referralrequest"; + case OralHealthClaim: + return "oralhealthclaim"; + case DocumentManifest: + return "documentmanifest"; + case Goal: + return "goal"; + case EnrollmentRequest: + return "enrollmentrequest"; + case FamilyHistory: + return "familyhistory"; + case Medication: + return "medication"; + case Subscription: + return "subscription"; + case DocumentReference: + return "documentreference"; + case SecurityEvent: + return "securityevent"; + case Conformance: + return "conformance"; + case RelatedPerson: + return "relatedperson"; + case Practitioner: + return "practitioner"; case Slot: return "slot"; case Contraindication: return "contraindication"; - case Contract: - return "contract"; - case Person: - return "person"; - case RiskAssessment: - return "riskassessment"; - case Group: - return "group"; - case PaymentNotice: - return "paymentnotice"; - case Organization: - return "organization"; - case Supply: - return "supply"; - case ImagingStudy: - return "imagingstudy"; + case Contract: + return "contract"; + case Person: + return "person"; + case RiskAssessment: + return "riskassessment"; + case Group: + return "group"; + case PaymentNotice: + return "paymentnotice"; + case Organization: + return "organization"; + case Supply: + return "supply"; + case ImagingStudy: + return "imagingstudy"; case Profile: return "profile"; - case DeviceComponent: - return "devicecomponent"; - case Encounter: - return "encounter"; - case Substance: - return "substance"; - case SearchParameter: - return "searchparameter"; - case Communication: - return "communication"; + case DeviceComponent: + return "devicecomponent"; + case Encounter: + return "encounter"; + case Substance: + return "substance"; + case SearchParameter: + return "searchparameter"; + case Communication: + return "communication"; case OrderResponse: return "orderresponse"; case StatusResponse: return "statusresponse"; - case VisionClaim: - return "visionclaim"; - case DeviceUseStatement: - return "deviceusestatement"; + case VisionClaim: + return "visionclaim"; + case DeviceUseStatement: + return "deviceusestatement"; case Reversal: return "reversal"; - case MessageHeader: - return "messageheader"; - case PharmacyClaim: - return "pharmacyclaim"; - case ImmunizationRecommendation: - return "immunizationrecommendation"; - case Other: - return "other"; + case MessageHeader: + return "messageheader"; + case PharmacyClaim: + return "pharmacyclaim"; + case ImmunizationRecommendation: + return "immunizationrecommendation"; + case Other: + return "other"; case BodySite: return "bodysite"; - case Provenance: - return "provenance"; - case Questionnaire: - return "questionnaire"; - case ProfessionalClaim: - return "professionalclaim"; + case Provenance: + return "provenance"; + case Questionnaire: + return "questionnaire"; + case ProfessionalClaim: + return "professionalclaim"; case ExplanationOfBenefit: return "explanationofbenefit"; case InstitutionalClaim: return "institutionalclaim"; - case Specimen: - return "specimen"; - case AllergyIntolerance: - return "allergyintolerance"; - case CarePlan: - return "careplan"; - case StructureDefinition: - return "structuredefinition"; - case EpisodeOfCare: - return "episodeofcare"; + case Specimen: + return "specimen"; + case AllergyIntolerance: + return "allergyintolerance"; + case CarePlan: + return "careplan"; + case StructureDefinition: + return "structuredefinition"; + case EpisodeOfCare: + return "episodeofcare"; case MedicationPrescription: return "medicationprescription"; case OperationOutcome: return "operationoutcome"; - case Procedure: - return "procedure"; - case List: - return "list"; - case ConceptMap: - return "conceptmap"; - case ValueSet: - return "valueset"; - case OperationDefinition: - return "operationdefinition"; - case Order: - return "order"; + case Procedure: + return "procedure"; + case List: + return "list"; + case ConceptMap: + return "conceptmap"; + case ValueSet: + return "valueset"; + case OperationDefinition: + return "operationdefinition"; + case Order: + return "order"; case Immunization: return "immunization"; case Device: return "device"; - case VisionPrescription: - return "visionprescription"; - case Media: - return "media"; - case ProcedureRequest: - return "procedurerequest"; - case EligibilityResponse: - return "eligibilityresponse"; - case DeviceUseRequest: - return "deviceuserequest"; - case DeviceMetric: - return "devicemetric"; - case AppointmentResponse: - return "appointmentresponse"; - case Observation: - return "observation"; + case VisionPrescription: + return "visionprescription"; + case Media: + return "media"; + case ProcedureRequest: + return "procedurerequest"; + case EligibilityResponse: + return "eligibilityresponse"; + case DeviceUseRequest: + return "deviceuserequest"; + case DeviceMetric: + return "devicemetric"; + case AppointmentResponse: + return "appointmentresponse"; + case Observation: + return "observation"; case MedicationAdministration: return "medicationadministration"; - case EnrollmentResponse: - return "enrollmentresponse"; - case Binary: - return "binary"; - case MedicationStatement: - return "medicationstatement"; - case CommunicationRequest: - return "communicationrequest"; + case EnrollmentResponse: + return "enrollmentresponse"; + case Binary: + return "binary"; + case MedicationStatement: + return "medicationstatement"; + case CommunicationRequest: + return "communicationrequest"; case PendedRequest: return "pendedrequest"; case Basic: return "basic"; - case StatusRequest: - return "statusrequest"; - case ClaimResponse: - return "claimresponse"; - case EligibilityRequest: - return "eligibilityrequest"; - case MedicationDispense: - return "medicationdispense"; - case DiagnosticReport: - return "diagnosticreport"; - case ImagingObjectSelection: - return "imagingobjectselection"; - case HealthcareService: - return "healthcareservice"; + case StatusRequest: + return "statusrequest"; + case ClaimResponse: + return "claimresponse"; + case EligibilityRequest: + return "eligibilityrequest"; + case MedicationDispense: + return "medicationdispense"; + case DiagnosticReport: + return "diagnosticreport"; + case ImagingObjectSelection: + return "imagingobjectselection"; + case HealthcareService: + return "healthcareservice"; case CarePlan2: return "careplan2"; - case DataElement: - return "dataelement"; - case ClinicalAssessment: - return "clinicalassessment"; - case QuestionnaireAnswers: - return "questionnaireanswers"; - case Readjudicate: - return "readjudicate"; - case NutritionOrder: - return "nutritionorder"; - case PaymentReconciliation: - return "paymentreconciliation"; - case Condition: - return "condition"; - case Composition: - return "composition"; - case Bundle: - return "bundle"; + case DataElement: + return "dataelement"; + case ClinicalAssessment: + return "clinicalassessment"; + case QuestionnaireAnswers: + return "questionnaireanswers"; + case Readjudicate: + return "readjudicate"; + case NutritionOrder: + return "nutritionorder"; + case PaymentReconciliation: + return "paymentreconciliation"; + case Condition: + return "condition"; + case Composition: + return "composition"; + case Bundle: + return "bundle"; case DiagnosticOrder: return "diagnosticorder"; - case Patient: - return "patient"; - case Coverage: - return "coverage"; - case ExtensionDefinition: - return "extensiondefinition"; - case NamingSystem: - return "namingsystem"; - case Schedule: - return "schedule"; - case SupportingDocumentation: - return "supportingdocumentation"; - case Alert: - return "alert"; - case Location: - return "location"; + case Patient: + return "patient"; + case Coverage: + return "coverage"; + case ExtensionDefinition: + return "extensiondefinition"; + case NamingSystem: + return "namingsystem"; + case Schedule: + return "schedule"; + case SupportingDocumentation: + return "supportingdocumentation"; + case Alert: + return "alert"; + case Location: + return "location"; case Parameters: return "parameters"; } diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Reversal.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Reversal.java index e75201ff3d8..6344b855186 100644 --- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Reversal.java +++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Reversal.java @@ -616,35 +616,35 @@ public class Reversal extends DomainResource { /** * The Response Business Identifier. */ - @Child(name="identifier", type={Identifier.class}, order=0, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "identifier", type = {Identifier.class}, order = 0, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Business Identifier", formalDefinition="The Response Business Identifier." ) protected List identifier; /** * The version of the style of resource contents. This should be mapped to the allowable profiles for this and supporting resources. */ - @Child(name="ruleset", type={Coding.class}, order=1, min=0, max=1) + @Child(name = "ruleset", type = {Coding.class}, order = 1, min = 0, max = 1) @Description(shortDefinition="Resource version", formalDefinition="The version of the style of resource contents. This should be mapped to the allowable profiles for this and supporting resources." ) protected Coding ruleset; /** * The style (standard) and version of the original material which was converted into this resource. */ - @Child(name="originalRuleset", type={Coding.class}, order=2, min=0, max=1) + @Child(name = "originalRuleset", type = {Coding.class}, order = 2, min = 0, max = 1) @Description(shortDefinition="Original version", formalDefinition="The style (standard) and version of the original material which was converted into this resource." ) protected Coding originalRuleset; /** * The date when this resource was created. */ - @Child(name="created", type={DateTimeType.class}, order=3, min=0, max=1) + @Child(name = "created", type = {DateTimeType.class}, order = 3, min = 0, max = 1) @Description(shortDefinition="Creation date", formalDefinition="The date when this resource was created." ) protected DateTimeType created; /** * The Insurer who is target of the request. */ - @Child(name="target", type={Organization.class}, order=4, min=0, max=1) + @Child(name = "target", type = {Organization.class}, order = 4, min = 0, max = 1) @Description(shortDefinition="Insurer", formalDefinition="The Insurer who is target of the request." ) protected Reference target; @@ -656,7 +656,7 @@ public class Reversal extends DomainResource { /** * The practitioner who is responsible for the services rendered to the patient. */ - @Child(name="provider", type={Practitioner.class}, order=5, min=0, max=1) + @Child(name = "provider", type = {Practitioner.class}, order = 5, min = 0, max = 1) @Description(shortDefinition="Responsible practitioner", formalDefinition="The practitioner who is responsible for the services rendered to the patient." ) protected Reference provider; @@ -668,7 +668,7 @@ public class Reversal extends DomainResource { /** * The organization which is responsible for the services rendered to the patient. */ - @Child(name="organization", type={Organization.class}, order=6, min=0, max=1) + @Child(name = "organization", type = {Organization.class}, order = 6, min = 0, max = 1) @Description(shortDefinition="Responsible organization", formalDefinition="The organization which is responsible for the services rendered to the patient." ) protected Reference organization; @@ -680,7 +680,7 @@ public class Reversal extends DomainResource { /** * Reference of resource to reverse. */ - @Child(name="request", type={OralHealthClaim.class, PharmacyClaim.class, VisionClaim.class, ProfessionalClaim.class, InstitutionalClaim.class, SupportingDocumentation.class}, order=7, min=0, max=1) + @Child(name = "request", type = {OralHealthClaim.class, PharmacyClaim.class, VisionClaim.class, ProfessionalClaim.class, InstitutionalClaim.class, SupportingDocumentation.class}, order = 7, min = 0, max = 1) @Description(shortDefinition="Request reference", formalDefinition="Reference of resource to reverse." ) protected Reference request; @@ -692,7 +692,7 @@ public class Reversal extends DomainResource { /** * Reference of response to resource to reverse. */ - @Child(name="response", type={ClaimResponse.class, StatusResponse.class}, order=8, min=0, max=1) + @Child(name = "response", type = {ClaimResponse.class, StatusResponse.class}, order = 8, min = 0, max = 1) @Description(shortDefinition="Response reference", formalDefinition="Reference of response to resource to reverse." ) protected Reference response; @@ -704,21 +704,21 @@ public class Reversal extends DomainResource { /** * Payee information supplied for matching purposes. */ - @Child(name="payee", type={}, order=9, min=0, max=1) + @Child(name = "payee", type = {}, order = 9, min = 0, max = 1) @Description(shortDefinition="Payee", formalDefinition="Payee information supplied for matching purposes." ) protected PayeeComponent payee; /** * Financial instrument by which payment information for health care. */ - @Child(name="coverage", type={}, order=10, min=1, max=1) + @Child(name = "coverage", type = {}, order = 10, min = 1, max = 1) @Description(shortDefinition="Insurance or medical plan", formalDefinition="Financial instrument by which payment information for health care." ) protected ReversalCoverageComponent coverage; /** * If true remove all history excluding audit. */ - @Child(name="nullify", type={BooleanType.class}, order=11, min=1, max=1) + @Child(name = "nullify", type = {BooleanType.class}, order = 11, min = 1, max = 1) @Description(shortDefinition="Nullify", formalDefinition="If true remove all history excluding audit." ) protected BooleanType nullify; diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/RiskAssessment.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/RiskAssessment.java index 2310bd52074..9b88605cd44 100644 --- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/RiskAssessment.java +++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/RiskAssessment.java @@ -352,7 +352,7 @@ public class RiskAssessment extends DomainResource { /** * The patient or group the risk assessment applies to. */ - @Child(name="subject", type={Patient.class, Group.class}, order=0, min=0, max=1) + @Child(name = "subject", type = {Patient.class, Group.class}, order = 0, min = 0, max = 1) @Description(shortDefinition="Who/what does assessment apply to?", formalDefinition="The patient or group the risk assessment applies to." ) protected Reference subject; @@ -364,14 +364,14 @@ public class RiskAssessment extends DomainResource { /** * The date (and possibly time) the risk assessment was performed. */ - @Child(name="date", type={DateTimeType.class}, order=1, min=0, max=1) + @Child(name = "date", type = {DateTimeType.class}, order = 1, min = 0, max = 1) @Description(shortDefinition="When was assessment made?", formalDefinition="The date (and possibly time) the risk assessment was performed." ) protected DateTimeType date; /** * For assessments or prognosis specific to a particular condition, indicates the condition being assessed. */ - @Child(name="condition", type={Condition.class}, order=2, min=0, max=1) + @Child(name = "condition", type = {Condition.class}, order = 2, min = 0, max = 1) @Description(shortDefinition="Condition assessed", formalDefinition="For assessments or prognosis specific to a particular condition, indicates the condition being assessed." ) protected Reference condition; @@ -383,7 +383,7 @@ public class RiskAssessment extends DomainResource { /** * The provider or software application that performed the assessment. */ - @Child(name="performer", type={Practitioner.class, Device.class}, order=3, min=0, max=1) + @Child(name = "performer", type = {Practitioner.class, Device.class}, order = 3, min = 0, max = 1) @Description(shortDefinition="Who did assessment?", formalDefinition="The provider or software application that performed the assessment." ) protected Reference performer; @@ -395,21 +395,21 @@ public class RiskAssessment extends DomainResource { /** * Business identifier assigned to the risk assessment. */ - @Child(name="identifier", type={Identifier.class}, order=4, min=0, max=1) + @Child(name = "identifier", type = {Identifier.class}, order = 4, min = 0, max = 1) @Description(shortDefinition="Unique identifier for the assessment", formalDefinition="Business identifier assigned to the risk assessment." ) protected Identifier identifier; /** * The algorithm, processs or mechanism used to evaluate the risk. */ - @Child(name="method", type={CodeableConcept.class}, order=5, min=0, max=1) + @Child(name = "method", type = {CodeableConcept.class}, order = 5, min = 0, max = 1) @Description(shortDefinition="Evaluation mechanism", formalDefinition="The algorithm, processs or mechanism used to evaluate the risk." ) protected CodeableConcept method; /** * Indicates the source data considered as part of the assessment (FamilyHistory, Observations, Procedures, Conditions, etc.). */ - @Child(name="basis", type={}, order=6, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "basis", type = {}, order = 6, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Information used in assessment", formalDefinition="Indicates the source data considered as part of the assessment (FamilyHistory, Observations, Procedures, Conditions, etc.)." ) protected List basis; /** @@ -421,14 +421,14 @@ public class RiskAssessment extends DomainResource { /** * Describes the expected outcome for the subject. */ - @Child(name="prediction", type={}, order=7, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "prediction", type = {}, order = 7, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Outcome predicted", formalDefinition="Describes the expected outcome for the subject." ) protected List prediction; /** * A description of the steps that might be taken to reduce the identified risk(s). */ - @Child(name="mitigation", type={StringType.class}, order=8, min=0, max=1) + @Child(name = "mitigation", type = {StringType.class}, order = 8, min = 0, max = 1) @Description(shortDefinition="How to reduce risk", formalDefinition="A description of the steps that might be taken to reduce the identified risk(s)." ) protected StringType mitigation; @@ -851,9 +851,9 @@ public class RiskAssessment extends DomainResource { return ResourceType.RiskAssessment; } - @SearchParamDefinition(name="date", path="RiskAssessment.date", description="When was assessment made?", type="date" ) + @SearchParamDefinition(name = "date", path = "RiskAssessment.date", description = "When was assessment made?", type = "date") public static final String SP_DATE = "date"; - @SearchParamDefinition(name="identifier", path="RiskAssessment.identifier", description="Unique identifier for the assessment", type="token" ) + @SearchParamDefinition(name = "identifier", path = "RiskAssessment.identifier", description = "Unique identifier for the assessment", type = "token") public static final String SP_IDENTIFIER = "identifier"; @SearchParamDefinition(name="condition", path="RiskAssessment.condition", description="Condition assessed", type="reference" ) public static final String SP_CONDITION = "condition"; @@ -861,9 +861,9 @@ public class RiskAssessment extends DomainResource { public static final String SP_PERFORMER = "performer"; @SearchParamDefinition(name="method", path="RiskAssessment.method", description="Evaluation mechanism", type="token" ) public static final String SP_METHOD = "method"; - @SearchParamDefinition(name="subject", path="RiskAssessment.subject", description="Who/what does assessment apply to?", type="reference" ) + @SearchParamDefinition(name = "subject", path = "RiskAssessment.subject", description = "Who/what does assessment apply to?", type = "reference") public static final String SP_SUBJECT = "subject"; - @SearchParamDefinition(name="patient", path="RiskAssessment.subject", description="Who/what does assessment apply to?", type="reference" ) + @SearchParamDefinition(name = "patient", path = "RiskAssessment.subject", description = "Who/what does assessment apply to?", type = "reference") public static final String SP_PATIENT = "patient"; } diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/SampledData.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/SampledData.java index 79fcb1df91c..66ea0456371 100644 --- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/SampledData.java +++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/SampledData.java @@ -42,54 +42,54 @@ import org.hl7.fhir.instance.model.annotations.DatatypeDef; * A series of measurements taken by a device, with upper and lower limits. There may be more than one dimension in the data. */ @DatatypeDef(name="SampledData") -public class SampledData extends Type implements ICompositeType { +public class SampledData extends Type implements ICompositeType { /** * The base quantity that a measured value of zero represents. In addition, this provides the units of the entire measurement series. */ - @Child(name="origin", type={Quantity.class}, order=0, min=1, max=1) + @Child(name = "origin", type = {Quantity.class}, order = 0, min = 1, max = 1) @Description(shortDefinition="Zero value and units", formalDefinition="The base quantity that a measured value of zero represents. In addition, this provides the units of the entire measurement series." ) protected Quantity origin; /** * The length of time between sampling times, measured in milliseconds. */ - @Child(name="period", type={DecimalType.class}, order=1, min=1, max=1) + @Child(name = "period", type = {DecimalType.class}, order = 1, min = 1, max = 1) @Description(shortDefinition="Number of milliseconds between samples", formalDefinition="The length of time between sampling times, measured in milliseconds." ) protected DecimalType period; /** * A correction factor that is applied to the sampled data points before they are added to the origin. */ - @Child(name="factor", type={DecimalType.class}, order=2, min=0, max=1) + @Child(name = "factor", type = {DecimalType.class}, order = 2, min = 0, max = 1) @Description(shortDefinition="Multiply data by this before adding to origin", formalDefinition="A correction factor that is applied to the sampled data points before they are added to the origin." ) protected DecimalType factor; /** * The lower limit of detection of the measured points. This is needed if any of the data points have the value "L" (lower than detection limit). */ - @Child(name="lowerLimit", type={DecimalType.class}, order=3, min=0, max=1) + @Child(name = "lowerLimit", type = {DecimalType.class}, order = 3, min = 0, max = 1) @Description(shortDefinition="Lower limit of detection", formalDefinition="The lower limit of detection of the measured points. This is needed if any of the data points have the value 'L' (lower than detection limit)." ) protected DecimalType lowerLimit; /** * The upper limit of detection of the measured points. This is needed if any of the data points have the value "U" (higher than detection limit). */ - @Child(name="upperLimit", type={DecimalType.class}, order=4, min=0, max=1) + @Child(name = "upperLimit", type = {DecimalType.class}, order = 4, min = 0, max = 1) @Description(shortDefinition="Upper limit of detection", formalDefinition="The upper limit of detection of the measured points. This is needed if any of the data points have the value 'U' (higher than detection limit)." ) protected DecimalType upperLimit; /** * The number of sample points at each time point. If this value is greater than one, then the dimensions will be interlaced - all the sample points for a point in time will be recorded at once. */ - @Child(name="dimensions", type={IntegerType.class}, order=5, min=1, max=1) + @Child(name = "dimensions", type = {IntegerType.class}, order = 5, min = 1, max = 1) @Description(shortDefinition="Number of sample points at each time point", formalDefinition="The number of sample points at each time point. If this value is greater than one, then the dimensions will be interlaced - all the sample points for a point in time will be recorded at once." ) protected IntegerType dimensions; /** * A series of data points which are decimal values separated by a single space (character u20). The special values "E" (error), "L" (below detection limit) and "U" (above detection limit) can also be used in place of a decimal value. */ - @Child(name="data", type={StringType.class}, order=6, min=1, max=1) + @Child(name = "data", type = {StringType.class}, order = 6, min = 1, max = 1) @Description(shortDefinition="Decimal values with spaces, or 'E' | 'U' | 'L'", formalDefinition="A series of data points which are decimal values separated by a single space (character u20). The special values 'E' (error), 'L' (below detection limit) and 'U' (above detection limit) can also be used in place of a decimal value." ) protected StringType data; diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Schedule.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Schedule.java index 4d5e0e91d85..68e480f09dc 100644 --- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Schedule.java +++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Schedule.java @@ -48,21 +48,21 @@ public class Schedule extends DomainResource { /** * External Ids for this item. */ - @Child(name="identifier", type={Identifier.class}, order=0, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "identifier", type = {Identifier.class}, order = 0, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="External Ids for this item", formalDefinition="External Ids for this item." ) protected List identifier; /** * The schedule type can be used for the categorization of healthcare services or other appointment types. */ - @Child(name="type", type={CodeableConcept.class}, order=1, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "type", type = {CodeableConcept.class}, order = 1, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="The schedule type can be used for the categorization of healthcare services or other appointment types", formalDefinition="The schedule type can be used for the categorization of healthcare services or other appointment types." ) protected List type; /** * The resource this Schedule resource is providing availability information for. These are expected to usually be one of HealthcareService, Location, Practitioner, Device, Patient or RelatedPerson. */ - @Child(name="actor", type={}, order=2, min=1, max=1) + @Child(name = "actor", type = {}, order = 2, min = 1, max = 1) @Description(shortDefinition="The resource this Schedule resource is providing availability information for. These are expected to usually be one of HealthcareService, Location, Practitioner, Device, Patient or RelatedPerson", formalDefinition="The resource this Schedule resource is providing availability information for. These are expected to usually be one of HealthcareService, Location, Practitioner, Device, Patient or RelatedPerson." ) protected Reference actor; @@ -74,21 +74,21 @@ public class Schedule extends DomainResource { /** * The period of time that the slots that are attached to this Schedule resource cover (even if none exist). These cover the amount of time that an organization's planning horizon; the interval for which they are currently accepting appointments. This does not define a "template" for planning outside these dates. */ - @Child(name="planningHorizon", type={Period.class}, order=3, min=0, max=1) + @Child(name = "planningHorizon", type = {Period.class}, order = 3, min = 0, max = 1) @Description(shortDefinition="The period of time that the slots that are attached to this Schedule resource cover (even if none exist). These cover the amount of time that an organization's planning horizon; the interval for which they are currently accepting appointments. This does not define a 'template' for planning outside these dates", formalDefinition="The period of time that the slots that are attached to this Schedule resource cover (even if none exist). These cover the amount of time that an organization's planning horizon; the interval for which they are currently accepting appointments. This does not define a 'template' for planning outside these dates." ) protected Period planningHorizon; /** * Comments on the availability to describe any extended information. Such as custom constraints on the slot(s) that may be associated. */ - @Child(name="comment", type={StringType.class}, order=4, min=0, max=1) + @Child(name = "comment", type = {StringType.class}, order = 4, min = 0, max = 1) @Description(shortDefinition="Comments on the availability to describe any extended information. Such as custom constraints on the slot(s) that may be associated", formalDefinition="Comments on the availability to describe any extended information. Such as custom constraints on the slot(s) that may be associated." ) protected StringType comment; /** * When this Schedule was created, or last revised. */ - @Child(name="lastModified", type={DateTimeType.class}, order=5, min=0, max=1) + @Child(name = "lastModified", type = {DateTimeType.class}, order = 5, min = 0, max = 1) @Description(shortDefinition="When this Schedule was created, or last revised", formalDefinition="When this Schedule was created, or last revised." ) protected DateTimeType lastModified; diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/SearchParameter.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/SearchParameter.java index af6de6037c3..057837a433c 100644 --- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/SearchParameter.java +++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/SearchParameter.java @@ -190,70 +190,70 @@ public class SearchParameter extends DomainResource { /** * The URL at which this search parameter is (or will be) published, and which is used to reference this profile in conformance statements. */ - @Child(name="url", type={UriType.class}, order=0, min=1, max=1) + @Child(name = "url", type = {UriType.class}, order = 0, min = 1, max = 1) @Description(shortDefinition="Literal URL used to reference this search parameter", formalDefinition="The URL at which this search parameter is (or will be) published, and which is used to reference this profile in conformance statements." ) protected UriType url; /** * The name of the standard or custom search parameter. */ - @Child(name="name", type={StringType.class}, order=1, min=1, max=1) + @Child(name = "name", type = {StringType.class}, order = 1, min = 1, max = 1) @Description(shortDefinition="Name of search parameter", formalDefinition="The name of the standard or custom search parameter." ) protected StringType name; /** * Details of the individual or organization who accepts responsibility for publishing the search parameter. */ - @Child(name="publisher", type={StringType.class}, order=2, min=0, max=1) + @Child(name = "publisher", type = {StringType.class}, order = 2, min = 0, max = 1) @Description(shortDefinition="Name of the publisher (Organization or individual)", formalDefinition="Details of the individual or organization who accepts responsibility for publishing the search parameter." ) protected StringType publisher; /** * Contact details to assist a user in finding and communicating with the publisher. */ - @Child(name="telecom", type={ContactPoint.class}, order=3, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "telecom", type = {ContactPoint.class}, order = 3, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Contact information of the publisher", formalDefinition="Contact details to assist a user in finding and communicating with the publisher." ) protected List telecom; /** * The Scope and Usage that this search parameter was created to meet. */ - @Child(name="requirements", type={StringType.class}, order=4, min=0, max=1) + @Child(name = "requirements", type = {StringType.class}, order = 4, min = 0, max = 1) @Description(shortDefinition="Why this search parameter is defined", formalDefinition="The Scope and Usage that this search parameter was created to meet." ) protected StringType requirements; /** * The base resource type that this search parameter refers to. */ - @Child(name="base", type={CodeType.class}, order=5, min=1, max=1) + @Child(name = "base", type = {CodeType.class}, order = 5, min = 1, max = 1) @Description(shortDefinition="The resource type this search parameter applies to", formalDefinition="The base resource type that this search parameter refers to." ) protected CodeType base; /** * The type of value a search parameter refers to, and how the content is interpreted. */ - @Child(name="type", type={CodeType.class}, order=6, min=1, max=1) + @Child(name = "type", type = {CodeType.class}, order = 6, min = 1, max = 1) @Description(shortDefinition="number | date | string | token | reference | composite | quantity", formalDefinition="The type of value a search parameter refers to, and how the content is interpreted." ) protected Enumeration type; /** * A description of the search parameters and how it used. */ - @Child(name="description", type={StringType.class}, order=7, min=1, max=1) + @Child(name = "description", type = {StringType.class}, order = 7, min = 1, max = 1) @Description(shortDefinition="Documentation for search parameter", formalDefinition="A description of the search parameters and how it used." ) protected StringType description; /** * An XPath expression that returns a set of elements for the search parameter. */ - @Child(name="xpath", type={StringType.class}, order=8, min=0, max=1) + @Child(name = "xpath", type = {StringType.class}, order = 8, min = 0, max = 1) @Description(shortDefinition="XPath that extracts the values", formalDefinition="An XPath expression that returns a set of elements for the search parameter." ) protected StringType xpath; /** * Types of resource (if a resource is referenced). */ - @Child(name="target", type={CodeType.class}, order=9, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "target", type = {CodeType.class}, order = 9, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Types of resource (if a resource reference)", formalDefinition="Types of resource (if a resource is referenced)." ) protected List target; @@ -810,15 +810,15 @@ public class SearchParameter extends DomainResource { @SearchParamDefinition(name="name", path="SearchParameter.name", description="Name of search parameter", type="string" ) public static final String SP_NAME = "name"; - @SearchParamDefinition(name="description", path="SearchParameter.description", description="Documentation for search parameter", type="string" ) + @SearchParamDefinition(name = "description", path = "SearchParameter.description", description = "Documentation for search parameter", type = "string") public static final String SP_DESCRIPTION = "description"; @SearchParamDefinition(name="type", path="SearchParameter.type", description="number | date | string | token | reference | composite | quantity", type="token" ) public static final String SP_TYPE = "type"; @SearchParamDefinition(name="url", path="SearchParameter.url", description="Literal URL used to reference this search parameter", type="token" ) public static final String SP_URL = "url"; - @SearchParamDefinition(name="base", path="SearchParameter.base", description="The resource type this search parameter applies to", type="token" ) + @SearchParamDefinition(name = "base", path = "SearchParameter.base", description = "The resource type this search parameter applies to", type = "token") public static final String SP_BASE = "base"; - @SearchParamDefinition(name="target", path="SearchParameter.target", description="Types of resource (if a resource reference)", type="token" ) + @SearchParamDefinition(name = "target", path = "SearchParameter.target", description = "Types of resource (if a resource reference)", type = "token") public static final String SP_TARGET = "target"; } diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/SecurityEvent.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/SecurityEvent.java index 7d5e272aba5..e99a1972cba 100644 --- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/SecurityEvent.java +++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/SecurityEvent.java @@ -3002,28 +3002,28 @@ public class SecurityEvent extends DomainResource { /** * Identifies the name, action type, time, and disposition of the audited event. */ - @Child(name="event", type={}, order=0, min=1, max=1) + @Child(name = "event", type = {}, order = 0, min = 1, max = 1) @Description(shortDefinition="What was done", formalDefinition="Identifies the name, action type, time, and disposition of the audited event." ) protected SecurityEventEventComponent event; /** * A person, a hardware device or software process. */ - @Child(name="participant", type={}, order=1, min=1, max=Child.MAX_UNLIMITED) + @Child(name = "participant", type = {}, order = 1, min = 1, max = Child.MAX_UNLIMITED) @Description(shortDefinition="A person, a hardware device or software process", formalDefinition="A person, a hardware device or software process." ) protected List participant; /** * Application systems and processes. */ - @Child(name="source", type={}, order=2, min=1, max=1) + @Child(name = "source", type = {}, order = 2, min = 1, max = 1) @Description(shortDefinition="Application systems and processes", formalDefinition="Application systems and processes." ) protected SecurityEventSourceComponent source; /** * Specific instances of data or objects that have been accessed. */ - @Child(name="object", type={}, order=3, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "object", type = {}, order = 3, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Specific instances of data or objects that have been accessed", formalDefinition="Specific instances of data or objects that have been accessed." ) protected List object; @@ -3210,36 +3210,36 @@ public class SecurityEvent extends DomainResource { @SearchParamDefinition(name="date", path="SecurityEvent.event.dateTime", description="Time when the event occurred on source", type="date" ) public static final String SP_DATE = "date"; - @SearchParamDefinition(name="address", path="SecurityEvent.participant.network.identifier", description="Identifier for the network access point of the user device", type="token" ) - public static final String SP_ADDRESS = "address"; + @SearchParamDefinition(name = "address", path = "SecurityEvent.participant.network.identifier", description = "Identifier for the network access point of the user device", type = "token") + public static final String SP_ADDRESS = "address"; @SearchParamDefinition(name="patientid", path="", description="The id of the patient (one of multiple kinds of participations)", type="token" ) public static final String SP_PATIENTID = "patientid"; @SearchParamDefinition(name="source", path="SecurityEvent.source.identifier", description="The id of source where event originated", type="token" ) public static final String SP_SOURCE = "source"; - @SearchParamDefinition(name="type", path="SecurityEvent.event.type", description="Type/identifier of event", type="token" ) - public static final String SP_TYPE = "type"; - @SearchParamDefinition(name="altid", path="SecurityEvent.participant.altId", description="Alternative User id e.g. authentication", type="token" ) - public static final String SP_ALTID = "altid"; - @SearchParamDefinition(name="reference", path="SecurityEvent.object.reference", description="Specific instance of resource (e.g. versioned)", type="reference" ) - public static final String SP_REFERENCE = "reference"; - @SearchParamDefinition(name="site", path="SecurityEvent.source.site", description="Logical source location within the enterprise", type="token" ) - public static final String SP_SITE = "site"; + @SearchParamDefinition(name = "type", path = "SecurityEvent.event.type", description = "Type/identifier of event", type = "token") + public static final String SP_TYPE = "type"; + @SearchParamDefinition(name = "altid", path = "SecurityEvent.participant.altId", description = "Alternative User id e.g. authentication", type = "token") + public static final String SP_ALTID = "altid"; + @SearchParamDefinition(name = "reference", path = "SecurityEvent.object.reference", description = "Specific instance of resource (e.g. versioned)", type = "reference") + public static final String SP_REFERENCE = "reference"; + @SearchParamDefinition(name = "site", path = "SecurityEvent.source.site", description = "Logical source location within the enterprise", type = "token") + public static final String SP_SITE = "site"; @SearchParamDefinition(name="subtype", path="SecurityEvent.event.subtype", description="More specific type/id for the event", type="token" ) public static final String SP_SUBTYPE = "subtype"; - @SearchParamDefinition(name="identity", path="SecurityEvent.object.identifier", description="Specific instance of object (e.g. versioned)", type="token" ) - public static final String SP_IDENTITY = "identity"; - @SearchParamDefinition(name="patient", path="", description="A patient that the .object.reference refers to", type="reference" ) - public static final String SP_PATIENT = "patient"; - @SearchParamDefinition(name="object-type", path="SecurityEvent.object.type", description="Object type being audited", type="token" ) - public static final String SP_OBJECTTYPE = "object-type"; + @SearchParamDefinition(name = "identity", path = "SecurityEvent.object.identifier", description = "Specific instance of object (e.g. versioned)", type = "token") + public static final String SP_IDENTITY = "identity"; + @SearchParamDefinition(name = "patient", path = "", description = "A patient that the .object.reference refers to", type = "reference") + public static final String SP_PATIENT = "patient"; + @SearchParamDefinition(name = "object-type", path = "SecurityEvent.object.type", description = "Object type being audited", type = "token") + public static final String SP_OBJECTTYPE = "object-type"; @SearchParamDefinition(name="name", path="SecurityEvent.participant.name", description="Human-meaningful name for the user", type="string" ) public static final String SP_NAME = "name"; @SearchParamDefinition(name="action", path="SecurityEvent.event.action", description="Type of action performed during the event", type="token" ) public static final String SP_ACTION = "action"; @SearchParamDefinition(name="user", path="SecurityEvent.participant.userId", description="Unique identifier for the user", type="token" ) public static final String SP_USER = "user"; - @SearchParamDefinition(name="desc", path="SecurityEvent.object.name", description="Instance-specific descriptor for Object", type="string" ) - public static final String SP_DESC = "desc"; + @SearchParamDefinition(name = "desc", path = "SecurityEvent.object.name", description = "Instance-specific descriptor for Object", type = "string") + public static final String SP_DESC = "desc"; } diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Slot.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Slot.java index 6fdd5b6935d..c7aa422ac72 100644 --- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Slot.java +++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Slot.java @@ -148,21 +148,21 @@ public class Slot extends DomainResource { /** * External Ids for this item. */ - @Child(name="identifier", type={Identifier.class}, order=0, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "identifier", type = {Identifier.class}, order = 0, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="External Ids for this item", formalDefinition="External Ids for this item." ) protected List identifier; /** * The type of appointments that can be booked into this slot (ideally this would be an identifiable service - which is at a location, rather than the location itself). If provided then this overrides the value provided on the availability resource. */ - @Child(name="type", type={CodeableConcept.class}, order=1, min=0, max=1) + @Child(name = "type", type = {CodeableConcept.class}, order = 1, min = 0, max = 1) @Description(shortDefinition="The type of appointments that can be booked into this slot (ideally this would be an identifiable service - which is at a location, rather than the location itself). If provided then this overrides the value provided on the availability resource", formalDefinition="The type of appointments that can be booked into this slot (ideally this would be an identifiable service - which is at a location, rather than the location itself). If provided then this overrides the value provided on the availability resource." ) protected CodeableConcept type; /** * The schedule resource that this slot defines an interval of status information. */ - @Child(name="schedule", type={Schedule.class}, order=2, min=1, max=1) + @Child(name = "schedule", type = {Schedule.class}, order = 2, min = 1, max = 1) @Description(shortDefinition="The schedule resource that this slot defines an interval of status information", formalDefinition="The schedule resource that this slot defines an interval of status information." ) protected Reference schedule; @@ -174,42 +174,42 @@ public class Slot extends DomainResource { /** * BUSY | FREE | BUSY-UNAVAILABLE | BUSY-TENTATIVE. */ - @Child(name="freeBusyType", type={CodeType.class}, order=3, min=1, max=1) + @Child(name = "freeBusyType", type = {CodeType.class}, order = 3, min = 1, max = 1) @Description(shortDefinition="BUSY | FREE | BUSY-UNAVAILABLE | BUSY-TENTATIVE", formalDefinition="BUSY | FREE | BUSY-UNAVAILABLE | BUSY-TENTATIVE." ) protected Enumeration freeBusyType; /** * Date/Time that the slot is to begin. */ - @Child(name="start", type={InstantType.class}, order=4, min=1, max=1) + @Child(name = "start", type = {InstantType.class}, order = 4, min = 1, max = 1) @Description(shortDefinition="Date/Time that the slot is to begin", formalDefinition="Date/Time that the slot is to begin." ) protected InstantType start; /** * Date/Time that the slot is to conclude. */ - @Child(name="end", type={InstantType.class}, order=5, min=1, max=1) + @Child(name = "end", type = {InstantType.class}, order = 5, min = 1, max = 1) @Description(shortDefinition="Date/Time that the slot is to conclude", formalDefinition="Date/Time that the slot is to conclude." ) protected InstantType end; /** * This slot has already been overbooked, appointments are unlikely to be accepted for this time. */ - @Child(name="overbooked", type={BooleanType.class}, order=6, min=0, max=1) + @Child(name = "overbooked", type = {BooleanType.class}, order = 6, min = 0, max = 1) @Description(shortDefinition="This slot has already been overbooked, appointments are unlikely to be accepted for this time", formalDefinition="This slot has already been overbooked, appointments are unlikely to be accepted for this time." ) protected BooleanType overbooked; /** * Comments on the slot to describe any extended information. Such as custom constraints on the slot. */ - @Child(name="comment", type={StringType.class}, order=7, min=0, max=1) + @Child(name = "comment", type = {StringType.class}, order = 7, min = 0, max = 1) @Description(shortDefinition="Comments on the slot to describe any extended information. Such as custom constraints on the slot", formalDefinition="Comments on the slot to describe any extended information. Such as custom constraints on the slot." ) protected StringType comment; /** * When this slot was created, or last revised. */ - @Child(name="lastModified", type={DateTimeType.class}, order=8, min=0, max=1) + @Child(name = "lastModified", type = {DateTimeType.class}, order = 8, min = 0, max = 1) @Description(shortDefinition="When this slot was created, or last revised", formalDefinition="When this slot was created, or last revised." ) protected DateTimeType lastModified; @@ -681,7 +681,7 @@ public class Slot extends DomainResource { public static final String SP_SCHEDULE = "schedule"; @SearchParamDefinition(name="slottype", path="Slot.type", description="The type of appointments that can be booked into the slot", type="token" ) public static final String SP_SLOTTYPE = "slottype"; - @SearchParamDefinition(name="start", path="Slot.start", description="Appointment date/time.", type="date" ) + @SearchParamDefinition(name = "start", path = "Slot.start", description = "Appointment date/time.", type = "date") public static final String SP_START = "start"; @SearchParamDefinition(name="fbtype", path="Slot.freeBusyType", description="The free/busy status of the appointment", type="token" ) public static final String SP_FBTYPE = "fbtype"; diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Specimen.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Specimen.java index 5d70e855d21..015aa2ff495 100644 --- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Specimen.java +++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Specimen.java @@ -1124,28 +1124,28 @@ public class Specimen extends DomainResource { /** * Id for specimen. */ - @Child(name="identifier", type={Identifier.class}, order=0, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "identifier", type = {Identifier.class}, order = 0, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="External Identifier", formalDefinition="Id for specimen." ) protected List identifier; /** * Kind of material that forms the specimen. */ - @Child(name="type", type={CodeableConcept.class}, order=1, min=0, max=1) + @Child(name = "type", type = {CodeableConcept.class}, order = 1, min = 0, max = 1) @Description(shortDefinition="Kind of material that forms the specimen", formalDefinition="Kind of material that forms the specimen." ) protected CodeableConcept type; /** * Parent specimen from which the focal specimen was a component. */ - @Child(name="source", type={}, order=2, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "source", type = {}, order = 2, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Parent of specimen", formalDefinition="Parent specimen from which the focal specimen was a component." ) protected List source; /** * Where the specimen came from. This may be from the patient(s) or from the environment or a device. */ - @Child(name="subject", type={Patient.class, Group.class, Device.class, Substance.class}, order=3, min=1, max=1) + @Child(name = "subject", type = {Patient.class, Group.class, Device.class, Substance.class}, order = 3, min = 1, max = 1) @Description(shortDefinition="Where the specimen came from. This may be from the patient(s) or from the environment or a device", formalDefinition="Where the specimen came from. This may be from the patient(s) or from the environment or a device." ) protected Reference subject; @@ -1157,35 +1157,35 @@ public class Specimen extends DomainResource { /** * The identifier assigned by the lab when accessioning specimen(s). This is not necessarily the same as the specimen identifier, depending on local lab procedures. */ - @Child(name="accessionIdentifier", type={Identifier.class}, order=4, min=0, max=1) + @Child(name = "accessionIdentifier", type = {Identifier.class}, order = 4, min = 0, max = 1) @Description(shortDefinition="Identifier assigned by the lab", formalDefinition="The identifier assigned by the lab when accessioning specimen(s). This is not necessarily the same as the specimen identifier, depending on local lab procedures." ) protected Identifier accessionIdentifier; /** * Time when specimen was received for processing or testing. */ - @Child(name="receivedTime", type={DateTimeType.class}, order=5, min=0, max=1) + @Child(name = "receivedTime", type = {DateTimeType.class}, order = 5, min = 0, max = 1) @Description(shortDefinition="The time when specimen was received for processing", formalDefinition="Time when specimen was received for processing or testing." ) protected DateTimeType receivedTime; /** * Details concerning the specimen collection. */ - @Child(name="collection", type={}, order=6, min=0, max=1) + @Child(name = "collection", type = {}, order = 6, min = 0, max = 1) @Description(shortDefinition="Collection details", formalDefinition="Details concerning the specimen collection." ) protected SpecimenCollectionComponent collection; /** * Details concerning treatment and processing steps for the specimen. */ - @Child(name="treatment", type={}, order=7, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "treatment", type = {}, order = 7, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Treatment and processing step details", formalDefinition="Details concerning treatment and processing steps for the specimen." ) protected List treatment; /** * The container holding the specimen. The recursive nature of containers; i.e. blood in tube in tray in rack is not addressed here. */ - @Child(name="container", type={}, order=8, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "container", type = {}, order = 8, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Direct container of specimen (tube/slide, etc)", formalDefinition="The container holding the specimen. The recursive nature of containers; i.e. blood in tube in tray in rack is not addressed here." ) protected List container; @@ -1564,28 +1564,28 @@ public class Specimen extends DomainResource { return ResourceType.Specimen; } - @SearchParamDefinition(name="container", path="Specimen.container.type", description="The kind of specimen container", type="token" ) - public static final String SP_CONTAINER = "container"; - @SearchParamDefinition(name="identifier", path="Specimen.identifier", description="The unique identifier associated with the specimen", type="token" ) - public static final String SP_IDENTIFIER = "identifier"; + @SearchParamDefinition(name = "container", path = "Specimen.container.type", description = "The kind of specimen container", type = "token") + public static final String SP_CONTAINER = "container"; + @SearchParamDefinition(name = "identifier", path = "Specimen.identifier", description = "The unique identifier associated with the specimen", type = "token") + public static final String SP_IDENTIFIER = "identifier"; @SearchParamDefinition(name="site", path="Specimen.collection.bodySite[x]", description="The source or body site from where the specimen came", type="token" ) public static final String SP_SITE = "site"; - @SearchParamDefinition(name="subject", path="Specimen.subject", description="The subject of the specimen", type="reference" ) - public static final String SP_SUBJECT = "subject"; + @SearchParamDefinition(name = "subject", path = "Specimen.subject", description = "The subject of the specimen", type = "reference") + public static final String SP_SUBJECT = "subject"; @SearchParamDefinition(name="patient", path="Specimen.subject", description="The patient the specimen comes from", type="reference" ) public static final String SP_PATIENT = "patient"; @SearchParamDefinition(name="collected", path="Specimen.collection.collected[x]", description="The date the specimen was collected", type="date" ) public static final String SP_COLLECTED = "collected"; - @SearchParamDefinition(name="source", path="Specimen.source.target", description="The parent of the specimen", type="reference" ) - public static final String SP_SOURCE = "source"; + @SearchParamDefinition(name = "source", path = "Specimen.source.target", description = "The parent of the specimen", type = "reference") + public static final String SP_SOURCE = "source"; @SearchParamDefinition(name="accession", path="Specimen.accessionIdentifier", description="The accession number associated with the specimen", type="token" ) public static final String SP_ACCESSION = "accession"; @SearchParamDefinition(name="type", path="Specimen.type", description="The specimen type", type="token" ) public static final String SP_TYPE = "type"; - @SearchParamDefinition(name="containerid", path="Specimen.container.identifier", description="The unique identifier associated with the specimen container", type="token" ) - public static final String SP_CONTAINERID = "containerid"; - @SearchParamDefinition(name="collector", path="Specimen.collection.collector", description="Who collected the specimen", type="reference" ) - public static final String SP_COLLECTOR = "collector"; + @SearchParamDefinition(name = "containerid", path = "Specimen.container.identifier", description = "The unique identifier associated with the specimen container", type = "token") + public static final String SP_CONTAINERID = "containerid"; + @SearchParamDefinition(name = "collector", path = "Specimen.collection.collector", description = "Who collected the specimen", type = "reference") + public static final String SP_COLLECTOR = "collector"; } diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/StatusRequest.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/StatusRequest.java index 59583a4fa0b..3f636c6bb5a 100644 --- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/StatusRequest.java +++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/StatusRequest.java @@ -47,35 +47,35 @@ public class StatusRequest extends DomainResource { /** * The Response Business Identifier. */ - @Child(name="identifier", type={Identifier.class}, order=0, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "identifier", type = {Identifier.class}, order = 0, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Business Identifier", formalDefinition="The Response Business Identifier." ) protected List identifier; /** * The version of the style of resource contents. This should be mapped to the allowable profiles for this and supporting resources. */ - @Child(name="ruleset", type={Coding.class}, order=1, min=0, max=1) + @Child(name = "ruleset", type = {Coding.class}, order = 1, min = 0, max = 1) @Description(shortDefinition="Resource version", formalDefinition="The version of the style of resource contents. This should be mapped to the allowable profiles for this and supporting resources." ) protected Coding ruleset; /** * The style (standard) and version of the original material which was converted into this resource. */ - @Child(name="originalRuleset", type={Coding.class}, order=2, min=0, max=1) + @Child(name = "originalRuleset", type = {Coding.class}, order = 2, min = 0, max = 1) @Description(shortDefinition="Original version", formalDefinition="The style (standard) and version of the original material which was converted into this resource." ) protected Coding originalRuleset; /** * The date when this resource was created. */ - @Child(name="created", type={DateTimeType.class}, order=3, min=0, max=1) + @Child(name = "created", type = {DateTimeType.class}, order = 3, min = 0, max = 1) @Description(shortDefinition="Creation date", formalDefinition="The date when this resource was created." ) protected DateTimeType created; /** * The Insurer who is target of the request. */ - @Child(name="target", type={Organization.class}, order=4, min=0, max=1) + @Child(name = "target", type = {Organization.class}, order = 4, min = 0, max = 1) @Description(shortDefinition="Insurer", formalDefinition="The Insurer who is target of the request." ) protected Reference target; @@ -87,7 +87,7 @@ public class StatusRequest extends DomainResource { /** * The practitioner who is responsible for the services rendered to the patient. */ - @Child(name="provider", type={Practitioner.class}, order=5, min=0, max=1) + @Child(name = "provider", type = {Practitioner.class}, order = 5, min = 0, max = 1) @Description(shortDefinition="Responsible practitioner", formalDefinition="The practitioner who is responsible for the services rendered to the patient." ) protected Reference provider; @@ -99,7 +99,7 @@ public class StatusRequest extends DomainResource { /** * The organization which is responsible for the services rendered to the patient. */ - @Child(name="organization", type={Organization.class}, order=6, min=0, max=1) + @Child(name = "organization", type = {Organization.class}, order = 6, min = 0, max = 1) @Description(shortDefinition="Responsible organization", formalDefinition="The organization which is responsible for the services rendered to the patient." ) protected Reference organization; @@ -111,7 +111,7 @@ public class StatusRequest extends DomainResource { /** * Reference of resource to reverse. */ - @Child(name="request", type={}, order=7, min=0, max=1) + @Child(name = "request", type = {}, order = 7, min = 0, max = 1) @Description(shortDefinition="Request reference", formalDefinition="Reference of resource to reverse." ) protected Reference request; @@ -123,7 +123,7 @@ public class StatusRequest extends DomainResource { /** * Reference of response to resource to reverse. */ - @Child(name="response", type={}, order=8, min=0, max=1) + @Child(name = "response", type = {}, order = 8, min = 0, max = 1) @Description(shortDefinition="Response reference", formalDefinition="Reference of response to resource to reverse." ) protected Reference response; diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/StatusResponse.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/StatusResponse.java index 523a8915de8..66f4e5ac715 100644 --- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/StatusResponse.java +++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/StatusResponse.java @@ -184,14 +184,14 @@ public class StatusResponse extends DomainResource { /** * The Response Business Identifier. */ - @Child(name="identifier", type={Identifier.class}, order=0, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "identifier", type = {Identifier.class}, order = 0, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Business Identifier", formalDefinition="The Response Business Identifier." ) protected List identifier; /** * Original request resource reference. */ - @Child(name="request", type={}, order=1, min=0, max=1) + @Child(name = "request", type = {}, order = 1, min = 0, max = 1) @Description(shortDefinition="Request reference", formalDefinition="Original request resource reference." ) protected Reference request; @@ -203,42 +203,42 @@ public class StatusResponse extends DomainResource { /** * Transaction status: error, complete, held. */ - @Child(name="outcome", type={Coding.class}, order=2, min=0, max=1) + @Child(name = "outcome", type = {Coding.class}, order = 2, min = 0, max = 1) @Description(shortDefinition="Processing outcome", formalDefinition="Transaction status: error, complete, held." ) protected Coding outcome; /** * A description of the status of the adjudication or processing. */ - @Child(name="disposition", type={StringType.class}, order=3, min=0, max=1) + @Child(name = "disposition", type = {StringType.class}, order = 3, min = 0, max = 1) @Description(shortDefinition="Disposition Message", formalDefinition="A description of the status of the adjudication or processing." ) protected StringType disposition; /** * The version of the style of resource contents. This should be mapped to the allowable profiles for this and supporting resources. */ - @Child(name="ruleset", type={Coding.class}, order=4, min=0, max=1) + @Child(name = "ruleset", type = {Coding.class}, order = 4, min = 0, max = 1) @Description(shortDefinition="Resource version", formalDefinition="The version of the style of resource contents. This should be mapped to the allowable profiles for this and supporting resources." ) protected Coding ruleset; /** * The style (standard) and version of the original material which was converted into this resource. */ - @Child(name="originalRuleset", type={Coding.class}, order=5, min=0, max=1) + @Child(name = "originalRuleset", type = {Coding.class}, order = 5, min = 0, max = 1) @Description(shortDefinition="Original version", formalDefinition="The style (standard) and version of the original material which was converted into this resource." ) protected Coding originalRuleset; /** * The date when the enclosed suite of services were performed or completed. */ - @Child(name="created", type={DateTimeType.class}, order=6, min=0, max=1) + @Child(name = "created", type = {DateTimeType.class}, order = 6, min = 0, max = 1) @Description(shortDefinition="Creation date", formalDefinition="The date when the enclosed suite of services were performed or completed." ) protected DateTimeType created; /** * The Insurer who produced this adjudicated response. */ - @Child(name="organization", type={Organization.class}, order=7, min=0, max=1) + @Child(name = "organization", type = {Organization.class}, order = 7, min = 0, max = 1) @Description(shortDefinition="Insurer", formalDefinition="The Insurer who produced this adjudicated response." ) protected Reference organization; @@ -250,7 +250,7 @@ public class StatusResponse extends DomainResource { /** * The practitioner who is responsible for the services rendered to the patient. */ - @Child(name="requestProvider", type={Practitioner.class}, order=8, min=0, max=1) + @Child(name = "requestProvider", type = {Practitioner.class}, order = 8, min = 0, max = 1) @Description(shortDefinition="Responsible practitioner", formalDefinition="The practitioner who is responsible for the services rendered to the patient." ) protected Reference requestProvider; @@ -262,7 +262,7 @@ public class StatusResponse extends DomainResource { /** * The organization which is responsible for the services rendered to the patient. */ - @Child(name="requestOrganization", type={Organization.class}, order=9, min=0, max=1) + @Child(name = "requestOrganization", type = {Organization.class}, order = 9, min = 0, max = 1) @Description(shortDefinition="Responsible organization", formalDefinition="The organization which is responsible for the services rendered to the patient." ) protected Reference requestOrganization; @@ -274,21 +274,21 @@ public class StatusResponse extends DomainResource { /** * The form to be used for printing the content. */ - @Child(name="form", type={Coding.class}, order=10, min=0, max=1) + @Child(name = "form", type = {Coding.class}, order = 10, min = 0, max = 1) @Description(shortDefinition="Printed Form Identifier", formalDefinition="The form to be used for printing the content." ) protected Coding form; /** * Suite of processing note or additional requirements is the processing has been held. */ - @Child(name="notes", type={}, order=11, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "notes", type = {}, order = 11, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Notes", formalDefinition="Suite of processing note or additional requirements is the processing has been held." ) protected List notes; /** * Processing errors. */ - @Child(name="error", type={Coding.class}, order=12, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "error", type = {Coding.class}, order = 12, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Error code", formalDefinition="Processing errors." ) protected List error; diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/StructureDefinition.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/StructureDefinition.java index e643ad4888f..f50ff6c209f 100644 --- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/StructureDefinition.java +++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/StructureDefinition.java @@ -802,147 +802,147 @@ public class StructureDefinition extends DomainResource { /** * The URL at which this profile is (or will be) published, and which is used to reference this profile in extension urls and tag values in operational FHIR systems. */ - @Child(name="url", type={UriType.class}, order=0, min=1, max=1) + @Child(name = "url", type = {UriType.class}, order = 0, min = 1, max = 1) @Description(shortDefinition="Literal URL used to reference this profile", formalDefinition="The URL at which this profile is (or will be) published, and which is used to reference this profile in extension urls and tag values in operational FHIR systems." ) protected UriType url; /** * Formal identifier that is used to identify this profile when it is represented in other formats, or referenced in a specification, model, design or an instance (should be globally unique OID, UUID, or URI), (if it's not possible to use the literal URI). */ - @Child(name="identifier", type={Identifier.class}, order=1, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "identifier", type = {Identifier.class}, order = 1, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Other identifiers for the profile", formalDefinition="Formal identifier that is used to identify this profile when it is represented in other formats, or referenced in a specification, model, design or an instance (should be globally unique OID, UUID, or URI), (if it's not possible to use the literal URI)." ) protected List identifier; /** * The identifier that is used to identify this version of the profile when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the profile author manually. */ - @Child(name="version", type={StringType.class}, order=2, min=0, max=1) + @Child(name = "version", type = {StringType.class}, order = 2, min = 0, max = 1) @Description(shortDefinition="Logical id for this version of the profile", formalDefinition="The identifier that is used to identify this version of the profile when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the profile author manually." ) protected StringType version; /** * A free text natural language name identifying the Profile. */ - @Child(name="name", type={StringType.class}, order=3, min=1, max=1) + @Child(name = "name", type = {StringType.class}, order = 3, min = 1, max = 1) @Description(shortDefinition="Informal name for this profile", formalDefinition="A free text natural language name identifying the Profile." ) protected StringType name; /** * Defined so that applications can use this name when displaying the value of the extension to the user. */ - @Child(name="display", type={StringType.class}, order=4, min=0, max=1) + @Child(name = "display", type = {StringType.class}, order = 4, min = 0, max = 1) @Description(shortDefinition="Use this name when displaying the value", formalDefinition="Defined so that applications can use this name when displaying the value of the extension to the user." ) protected StringType display; /** * Details of the individual or organization who accepts responsibility for publishing the profile. */ - @Child(name="publisher", type={StringType.class}, order=5, min=0, max=1) + @Child(name = "publisher", type = {StringType.class}, order = 5, min = 0, max = 1) @Description(shortDefinition="Name of the publisher (Organization or individual)", formalDefinition="Details of the individual or organization who accepts responsibility for publishing the profile." ) protected StringType publisher; /** * Contact details to assist a user in finding and communicating with the publisher. */ - @Child(name="telecom", type={ContactPoint.class}, order=6, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "telecom", type = {ContactPoint.class}, order = 6, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Contact information of the publisher", formalDefinition="Contact details to assist a user in finding and communicating with the publisher." ) protected List telecom; /** * A free text natural language description of the profile and its use. */ - @Child(name="description", type={StringType.class}, order=7, min=0, max=1) + @Child(name = "description", type = {StringType.class}, order = 7, min = 0, max = 1) @Description(shortDefinition="Natural language description of the profile", formalDefinition="A free text natural language description of the profile and its use." ) protected StringType description; /** * A set of terms from external terminologies that may be used to assist with indexing and searching of templates. */ - @Child(name="code", type={Coding.class}, order=8, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "code", type = {Coding.class}, order = 8, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Assist with indexing and finding", formalDefinition="A set of terms from external terminologies that may be used to assist with indexing and searching of templates." ) protected List code; /** * The status of the profile. */ - @Child(name="status", type={CodeType.class}, order=9, min=1, max=1) + @Child(name = "status", type = {CodeType.class}, order = 9, min = 1, max = 1) @Description(shortDefinition="draft | active | retired", formalDefinition="The status of the profile." ) protected Enumeration status; /** * This profile was authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage. */ - @Child(name="experimental", type={BooleanType.class}, order=10, min=0, max=1) + @Child(name = "experimental", type = {BooleanType.class}, order = 10, min = 0, max = 1) @Description(shortDefinition="If for testing purposes, not real usage", formalDefinition="This profile was authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage." ) protected BooleanType experimental; /** * The date that this version of the profile was published. */ - @Child(name="date", type={DateTimeType.class}, order=11, min=0, max=1) + @Child(name = "date", type = {DateTimeType.class}, order = 11, min = 0, max = 1) @Description(shortDefinition="Date for this version of the profile", formalDefinition="The date that this version of the profile was published." ) protected DateTimeType date; /** * The Scope and Usage that this profile was created to meet. */ - @Child(name="requirements", type={StringType.class}, order=12, min=0, max=1) + @Child(name = "requirements", type = {StringType.class}, order = 12, min = 0, max = 1) @Description(shortDefinition="Scope and Usage this profile is for", formalDefinition="The Scope and Usage that this profile was created to meet." ) protected StringType requirements; /** * The version of the FHIR specification on which this profile is based - this is the formal version of the specification, without the revision number, e.g. [publication].[major].[minor], which is 0.4.0 for this version. */ - @Child(name="fhirVersion", type={IdType.class}, order=13, min=0, max=1) + @Child(name = "fhirVersion", type = {IdType.class}, order = 13, min = 0, max = 1) @Description(shortDefinition="FHIR Version this profile targets", formalDefinition="The version of the FHIR specification on which this profile is based - this is the formal version of the specification, without the revision number, e.g. [publication].[major].[minor], which is 0.4.0 for this version." ) protected IdType fhirVersion; /** * An external specification that the content is mapped to. */ - @Child(name="mapping", type={}, order=14, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "mapping", type = {}, order = 14, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="External specification that the content is mapped to", formalDefinition="An external specification that the content is mapped to." ) protected List mapping; /** * Defines the type of structure that this definition is describing. */ - @Child(name="type", type={CodeType.class}, order=15, min=1, max=1) + @Child(name = "type", type = {CodeType.class}, order = 15, min = 1, max = 1) @Description(shortDefinition="abstract | type | resource | constraint | extension", formalDefinition="Defines the type of structure that this definition is describing." ) protected Enumeration type; /** * Identifies the type of context to which the extension applies. */ - @Child(name="contextType", type={CodeType.class}, order=16, min=0, max=1) + @Child(name = "contextType", type = {CodeType.class}, order = 16, min = 0, max = 1) @Description(shortDefinition="resource | datatype | mapping | extension", formalDefinition="Identifies the type of context to which the extension applies." ) protected Enumeration contextType; /** * Identifies the types of resource or data type elements to which the extension can be applied. */ - @Child(name="context", type={StringType.class}, order=17, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "context", type = {StringType.class}, order = 17, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Where the extension can be used in instances", formalDefinition="Identifies the types of resource or data type elements to which the extension can be applied." ) protected List context; /** * The structure that is the base on which this set of constraints is derived from. */ - @Child(name="base", type={UriType.class}, order=18, min=0, max=1) + @Child(name = "base", type = {UriType.class}, order = 18, min = 0, max = 1) @Description(shortDefinition="Structure that this set of constraints applies to", formalDefinition="The structure that is the base on which this set of constraints is derived from." ) protected UriType base; /** * A snapshot view is expressed in a stand alone form that can be used and interpreted without considering the base profile. */ - @Child(name="snapshot", type={}, order=19, min=0, max=1) + @Child(name = "snapshot", type = {}, order = 19, min = 0, max = 1) @Description(shortDefinition="Snapshot view of the structure", formalDefinition="A snapshot view is expressed in a stand alone form that can be used and interpreted without considering the base profile." ) protected StructureDefinitionSnapshotComponent snapshot; /** * A differential view is expressed relative to the base profile - a statement of differences that it applies. */ - @Child(name="differential", type={}, order=20, min=0, max=1) + @Child(name = "differential", type = {}, order = 20, min = 0, max = 1) @Description(shortDefinition="Differential view of the structure", formalDefinition="A differential view is expressed relative to the base profile - a statement of differences that it applies." ) protected StructureDefinitionDifferentialComponent differential; @@ -1976,26 +1976,26 @@ public class StructureDefinition extends DomainResource { public static final String SP_DATE = "date"; @SearchParamDefinition(name="identifier", path="StructureDefinition.identifier", description="The identifier of the profile", type="token" ) public static final String SP_IDENTIFIER = "identifier"; - @SearchParamDefinition(name="path", path="StructureDefinition.snapshot.element.path|StructureDefinition.differential.element.path", description="A path that is constrained in the profile", type="token" ) - public static final String SP_PATH = "path"; - @SearchParamDefinition(name="code", path="StructureDefinition.code", description="A code for the profile", type="token" ) - public static final String SP_CODE = "code"; - @SearchParamDefinition(name="valueset", path="StructureDefinition.snapshot.element.binding.reference[x]", description="A vocabulary binding code", type="reference" ) - public static final String SP_VALUESET = "valueset"; - @SearchParamDefinition(name="name", path="StructureDefinition.name", description="Name of the profile", type="string" ) - public static final String SP_NAME = "name"; + @SearchParamDefinition(name = "path", path = "StructureDefinition.snapshot.element.path|StructureDefinition.differential.element.path", description = "A path that is constrained in the profile", type = "token") + public static final String SP_PATH = "path"; + @SearchParamDefinition(name = "code", path = "StructureDefinition.code", description = "A code for the profile", type = "token") + public static final String SP_CODE = "code"; + @SearchParamDefinition(name = "valueset", path = "StructureDefinition.snapshot.element.binding.reference[x]", description = "A vocabulary binding code", type = "reference") + public static final String SP_VALUESET = "valueset"; + @SearchParamDefinition(name = "name", path = "StructureDefinition.name", description = "Name of the profile", type = "string") + public static final String SP_NAME = "name"; @SearchParamDefinition(name="publisher", path="StructureDefinition.publisher", description="Name of the publisher of the profile", type="string" ) public static final String SP_PUBLISHER = "publisher"; - @SearchParamDefinition(name="description", path="StructureDefinition.description", description="Text search in the description of the profile", type="string" ) - public static final String SP_DESCRIPTION = "description"; - @SearchParamDefinition(name="type", path="StructureDefinition.type", description="abstract | type | resource | constraint | extension", type="token" ) - public static final String SP_TYPE = "type"; + @SearchParamDefinition(name = "description", path = "StructureDefinition.description", description = "Text search in the description of the profile", type = "string") + public static final String SP_DESCRIPTION = "description"; + @SearchParamDefinition(name = "type", path = "StructureDefinition.type", description = "abstract | type | resource | constraint | extension", type = "token") + public static final String SP_TYPE = "type"; @SearchParamDefinition(name="version", path="StructureDefinition.version", description="The version identifier of the profile", type="token" ) public static final String SP_VERSION = "version"; - @SearchParamDefinition(name="url", path="StructureDefinition.url", description="Literal URL used to reference this profile", type="token" ) - public static final String SP_URL = "url"; - @SearchParamDefinition(name="status", path="StructureDefinition.status", description="The current status of the profile", type="token" ) - public static final String SP_STATUS = "status"; + @SearchParamDefinition(name = "url", path = "StructureDefinition.url", description = "Literal URL used to reference this profile", type = "token") + public static final String SP_URL = "url"; + @SearchParamDefinition(name = "status", path = "StructureDefinition.status", description = "The current status of the profile", type = "token") + public static final String SP_STATUS = "status"; } diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Subscription.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Subscription.java index 4f2d215a61d..c40f947bc7e 100644 --- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Subscription.java +++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Subscription.java @@ -758,56 +758,56 @@ public class Subscription extends DomainResource { /** * Todo. */ - @Child(name="criteria", type={StringType.class}, order=0, min=1, max=1) + @Child(name = "criteria", type = {StringType.class}, order = 0, min = 1, max = 1) @Description(shortDefinition="Rule for server push criteria", formalDefinition="Todo." ) protected StringType criteria; /** * Todo. */ - @Child(name="contact", type={ContactPoint.class}, order=1, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "contact", type = {ContactPoint.class}, order = 1, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Contact details for source (e.g. troubleshooting)", formalDefinition="Todo." ) protected List contact; /** * Todo. */ - @Child(name="reason", type={StringType.class}, order=2, min=1, max=1) + @Child(name = "reason", type = {StringType.class}, order = 2, min = 1, max = 1) @Description(shortDefinition="Description of why this subscription was created", formalDefinition="Todo." ) protected StringType reason; /** * Todo. */ - @Child(name="status", type={CodeType.class}, order=3, min=1, max=1) + @Child(name = "status", type = {CodeType.class}, order = 3, min = 1, max = 1) @Description(shortDefinition="requested | active | error | off", formalDefinition="Todo." ) protected Enumeration status; /** * Todo. */ - @Child(name="error", type={StringType.class}, order=4, min=0, max=1) + @Child(name = "error", type = {StringType.class}, order = 4, min = 0, max = 1) @Description(shortDefinition="Latest error note", formalDefinition="Todo." ) protected StringType error; /** * Todo. */ - @Child(name="channel", type={}, order=5, min=1, max=1) + @Child(name = "channel", type = {}, order = 5, min = 1, max = 1) @Description(shortDefinition="The channel on which to report matches to the criteria", formalDefinition="Todo." ) protected SubscriptionChannelComponent channel; /** * Todo. */ - @Child(name="end", type={InstantType.class}, order=6, min=0, max=1) + @Child(name = "end", type = {InstantType.class}, order = 6, min = 0, max = 1) @Description(shortDefinition="When to automatically delete the subscription", formalDefinition="Todo." ) protected InstantType end; /** * Todo. */ - @Child(name="tag", type={}, order=7, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "tag", type = {}, order = 7, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="A tag to add to matching resources", formalDefinition="Todo." ) protected List tag; @@ -1215,20 +1215,20 @@ public class Subscription extends DomainResource { return ResourceType.Subscription; } - @SearchParamDefinition(name="payload", path="Subscription.channel.payload", description="Mimetype to send, or blank for no payload", type="string" ) - public static final String SP_PAYLOAD = "payload"; + @SearchParamDefinition(name = "payload", path = "Subscription.channel.payload", description = "Mimetype to send, or blank for no payload", type = "string") + public static final String SP_PAYLOAD = "payload"; @SearchParamDefinition(name="criteria", path="Subscription.criteria", description="Rule for server push criteria", type="string" ) public static final String SP_CRITERIA = "criteria"; - @SearchParamDefinition(name="contact", path="Subscription.contact", description="Contact details for source (e.g. troubleshooting)", type="token" ) - public static final String SP_CONTACT = "contact"; + @SearchParamDefinition(name = "contact", path = "Subscription.contact", description = "Contact details for source (e.g. troubleshooting)", type = "token") + public static final String SP_CONTACT = "contact"; @SearchParamDefinition(name="tag", path="Subscription.tag.term", description="The term that identifies the tag", type="string" ) public static final String SP_TAG = "tag"; @SearchParamDefinition(name="type", path="Subscription.channel.type", description="rest-hook | websocket | email | sms | message", type="token" ) public static final String SP_TYPE = "type"; @SearchParamDefinition(name="url", path="Subscription.channel.url", description="Where the channel points to", type="string" ) public static final String SP_URL = "url"; - @SearchParamDefinition(name="status", path="Subscription.status", description="requested | active | error | off", type="token" ) - public static final String SP_STATUS = "status"; + @SearchParamDefinition(name = "status", path = "Subscription.status", description = "requested | active | error | off", type = "token") + public static final String SP_STATUS = "status"; } diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Substance.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Substance.java index 9cc8402c2be..595784cae30 100644 --- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Substance.java +++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Substance.java @@ -359,28 +359,28 @@ public class Substance extends DomainResource { /** * A code (or set of codes) that identify this substance. */ - @Child(name="type", type={CodeableConcept.class}, order=0, min=1, max=1) + @Child(name = "type", type = {CodeableConcept.class}, order = 0, min = 1, max = 1) @Description(shortDefinition="What kind of substance this is", formalDefinition="A code (or set of codes) that identify this substance." ) protected CodeableConcept type; /** * A description of the substance - its appearance, handling requirements, and other usage notes. */ - @Child(name="description", type={StringType.class}, order=1, min=0, max=1) + @Child(name = "description", type = {StringType.class}, order = 1, min = 0, max = 1) @Description(shortDefinition="Textual description of the substance, comments", formalDefinition="A description of the substance - its appearance, handling requirements, and other usage notes." ) protected StringType description; /** * Substance may be used to describe a kind of substance, or a specific package/container of the substance: an instance. */ - @Child(name="instance", type={}, order=2, min=0, max=1) + @Child(name = "instance", type = {}, order = 2, min = 0, max = 1) @Description(shortDefinition="If this describes a specific package/container of the substance", formalDefinition="Substance may be used to describe a kind of substance, or a specific package/container of the substance: an instance." ) protected SubstanceInstanceComponent instance; /** * A substance can be composed of other substances. */ - @Child(name="ingredient", type={}, order=3, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "ingredient", type = {}, order = 3, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Composition information about the substance", formalDefinition="A substance can be composed of other substances." ) protected List ingredient; @@ -582,13 +582,13 @@ public class Substance extends DomainResource { @SearchParamDefinition(name="identifier", path="Substance.instance.identifier", description="Identifier of the package/container", type="token" ) public static final String SP_IDENTIFIER = "identifier"; - @SearchParamDefinition(name="quantity", path="Substance.instance.quantity", description="Amount of substance in the package", type="number" ) + @SearchParamDefinition(name = "quantity", path = "Substance.instance.quantity", description = "Amount of substance in the package", type = "number") public static final String SP_QUANTITY = "quantity"; - @SearchParamDefinition(name="substance", path="Substance.ingredient.substance", description="A component of the substance", type="reference" ) + @SearchParamDefinition(name = "substance", path = "Substance.ingredient.substance", description = "A component of the substance", type = "reference") public static final String SP_SUBSTANCE = "substance"; @SearchParamDefinition(name="expiry", path="Substance.instance.expiry", description="When no longer valid to use", type="date" ) public static final String SP_EXPIRY = "expiry"; - @SearchParamDefinition(name="type", path="Substance.type", description="The type of the substance", type="token" ) + @SearchParamDefinition(name = "type", path = "Substance.type", description = "The type of the substance", type = "token") public static final String SP_TYPE = "type"; } diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Supply.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Supply.java index 8a644638fe6..d25e86a6dfd 100644 --- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Supply.java +++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Supply.java @@ -786,28 +786,28 @@ public class Supply extends DomainResource { /** * Category of supply, e.g. central, non-stock, etc. This is used to support work flows associated with the supply process. */ - @Child(name="kind", type={CodeableConcept.class}, order=0, min=0, max=1) + @Child(name = "kind", type = {CodeableConcept.class}, order = 0, min = 0, max = 1) @Description(shortDefinition="The kind of supply (central, non-stock, etc)", formalDefinition="Category of supply, e.g. central, non-stock, etc. This is used to support work flows associated with the supply process." ) protected CodeableConcept kind; /** * Unique identifier for this supply request. */ - @Child(name="identifier", type={Identifier.class}, order=1, min=0, max=1) + @Child(name = "identifier", type = {Identifier.class}, order = 1, min = 0, max = 1) @Description(shortDefinition="Unique identifier", formalDefinition="Unique identifier for this supply request." ) protected Identifier identifier; /** * Status of the supply request. */ - @Child(name="status", type={CodeType.class}, order=2, min=0, max=1) + @Child(name = "status", type = {CodeType.class}, order = 2, min = 0, max = 1) @Description(shortDefinition="requested | dispensed | received | failed | cancelled", formalDefinition="Status of the supply request." ) protected Enumeration status; /** * The item that is requested to be supplied. */ - @Child(name="orderedItem", type={Medication.class, Substance.class, Device.class}, order=3, min=0, max=1) + @Child(name = "orderedItem", type = {Medication.class, Substance.class, Device.class}, order = 3, min = 0, max = 1) @Description(shortDefinition="Medication, Substance, or Device requested to be supplied", formalDefinition="The item that is requested to be supplied." ) protected Reference orderedItem; @@ -819,7 +819,7 @@ public class Supply extends DomainResource { /** * A link to a resource representing the person whom the ordered item is for. */ - @Child(name="patient", type={Patient.class}, order=4, min=0, max=1) + @Child(name = "patient", type = {Patient.class}, order = 4, min = 0, max = 1) @Description(shortDefinition="Patient for whom the item is supplied", formalDefinition="A link to a resource representing the person whom the ordered item is for." ) protected Reference patient; @@ -831,7 +831,7 @@ public class Supply extends DomainResource { /** * Indicates the details of the dispense event such as the days supply and quantity of a supply dispensed. */ - @Child(name="dispense", type={}, order=5, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "dispense", type = {}, order = 5, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Supply details", formalDefinition="Indicates the details of the dispense event such as the days supply and quantity of a supply dispensed." ) protected List dispense; @@ -1118,16 +1118,16 @@ public class Supply extends DomainResource { public static final String SP_IDENTIFIER = "identifier"; @SearchParamDefinition(name="kind", path="Supply.kind", description="The kind of supply (central, non-stock, etc)", type="token" ) public static final String SP_KIND = "kind"; - @SearchParamDefinition(name="patient", path="Supply.patient", description="Patient for whom the item is supplied", type="reference" ) - public static final String SP_PATIENT = "patient"; - @SearchParamDefinition(name="supplier", path="Supply.dispense.supplier", description="Dispenser", type="reference" ) - public static final String SP_SUPPLIER = "supplier"; - @SearchParamDefinition(name="dispenseid", path="Supply.dispense.identifier", description="External identifier", type="token" ) - public static final String SP_DISPENSEID = "dispenseid"; + @SearchParamDefinition(name = "patient", path = "Supply.patient", description = "Patient for whom the item is supplied", type = "reference") + public static final String SP_PATIENT = "patient"; + @SearchParamDefinition(name = "supplier", path = "Supply.dispense.supplier", description = "Dispenser", type = "reference") + public static final String SP_SUPPLIER = "supplier"; + @SearchParamDefinition(name = "dispenseid", path = "Supply.dispense.identifier", description = "External identifier", type = "token") + public static final String SP_DISPENSEID = "dispenseid"; @SearchParamDefinition(name="dispensestatus", path="Supply.dispense.status", description="in-progress | dispensed | abandoned", type="token" ) public static final String SP_DISPENSESTATUS = "dispensestatus"; - @SearchParamDefinition(name="status", path="Supply.status", description="requested | dispensed | received | failed | cancelled", type="token" ) - public static final String SP_STATUS = "status"; + @SearchParamDefinition(name = "status", path = "Supply.status", description = "requested | dispensed | received | failed | cancelled", type = "token") + public static final String SP_STATUS = "status"; } diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/SupportingDocumentation.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/SupportingDocumentation.java index 847498e28e4..e3545ae8bef 100644 --- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/SupportingDocumentation.java +++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/SupportingDocumentation.java @@ -257,35 +257,35 @@ public class SupportingDocumentation extends DomainResource { /** * The Response Business Identifier. */ - @Child(name="identifier", type={Identifier.class}, order=0, min=1, max=Child.MAX_UNLIMITED) + @Child(name = "identifier", type = {Identifier.class}, order = 0, min = 1, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Business Identifier", formalDefinition="The Response Business Identifier." ) protected List identifier; /** * The version of the style of resource contents. This should be mapped to the allowable profiles for this and supporting resources. */ - @Child(name="ruleset", type={Coding.class}, order=1, min=0, max=1) + @Child(name = "ruleset", type = {Coding.class}, order = 1, min = 0, max = 1) @Description(shortDefinition="Resource version", formalDefinition="The version of the style of resource contents. This should be mapped to the allowable profiles for this and supporting resources." ) protected Coding ruleset; /** * The style (standard) and version of the original material which was converted into this resource. */ - @Child(name="originalRuleset", type={Coding.class}, order=2, min=0, max=1) + @Child(name = "originalRuleset", type = {Coding.class}, order = 2, min = 0, max = 1) @Description(shortDefinition="Original version", formalDefinition="The style (standard) and version of the original material which was converted into this resource." ) protected Coding originalRuleset; /** * The date when this resource was created. */ - @Child(name="created", type={DateTimeType.class}, order=3, min=0, max=1) + @Child(name = "created", type = {DateTimeType.class}, order = 3, min = 0, max = 1) @Description(shortDefinition="Creation date", formalDefinition="The date when this resource was created." ) protected DateTimeType created; /** * The Insurer, organization or Provider who is target of the submission. */ - @Child(name="target", type={Organization.class, Practitioner.class}, order=4, min=0, max=1) + @Child(name = "target", type = {Organization.class, Practitioner.class}, order = 4, min = 0, max = 1) @Description(shortDefinition="Insurer or Provider", formalDefinition="The Insurer, organization or Provider who is target of the submission." ) protected Reference target; @@ -297,7 +297,7 @@ public class SupportingDocumentation extends DomainResource { /** * The practitioner who is responsible for the services rendered to the patient. */ - @Child(name="provider", type={Practitioner.class}, order=5, min=0, max=1) + @Child(name = "provider", type = {Practitioner.class}, order = 5, min = 0, max = 1) @Description(shortDefinition="Responsible practitioner", formalDefinition="The practitioner who is responsible for the services rendered to the patient." ) protected Reference provider; @@ -309,7 +309,7 @@ public class SupportingDocumentation extends DomainResource { /** * The organization which is responsible for the services rendered to the patient. */ - @Child(name="organization", type={Organization.class}, order=6, min=0, max=1) + @Child(name = "organization", type = {Organization.class}, order = 6, min = 0, max = 1) @Description(shortDefinition="Responsible organization", formalDefinition="The organization which is responsible for the services rendered to the patient." ) protected Reference organization; @@ -321,7 +321,7 @@ public class SupportingDocumentation extends DomainResource { /** * Original request. */ - @Child(name="request", type={}, order=7, min=0, max=1) + @Child(name = "request", type = {}, order = 7, min = 0, max = 1) @Description(shortDefinition="Request reference", formalDefinition="Original request." ) protected Reference request; @@ -333,7 +333,7 @@ public class SupportingDocumentation extends DomainResource { /** * Original response. */ - @Child(name="response", type={}, order=8, min=0, max=1) + @Child(name = "response", type = {}, order = 8, min = 0, max = 1) @Description(shortDefinition="Response reference", formalDefinition="Original response." ) protected Reference response; @@ -345,7 +345,7 @@ public class SupportingDocumentation extends DomainResource { /** * Person who created the submission. */ - @Child(name="author", type={Practitioner.class}, order=9, min=0, max=1) + @Child(name = "author", type = {Practitioner.class}, order = 9, min = 0, max = 1) @Description(shortDefinition="Author", formalDefinition="Person who created the submission." ) protected Reference author; @@ -357,7 +357,7 @@ public class SupportingDocumentation extends DomainResource { /** * The patient who is directly or indirectly the subject of the supporting information. */ - @Child(name="subject", type={Patient.class}, order=10, min=0, max=1) + @Child(name = "subject", type = {Patient.class}, order = 10, min = 0, max = 1) @Description(shortDefinition="Patient", formalDefinition="The patient who is directly or indirectly the subject of the supporting information." ) protected Reference subject; @@ -369,7 +369,7 @@ public class SupportingDocumentation extends DomainResource { /** * Supporting Files. */ - @Child(name="detail", type={}, order=11, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "detail", type = {}, order = 11, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Supporting Files", formalDefinition="Supporting Files." ) protected List detail; @@ -912,13 +912,13 @@ public class SupportingDocumentation extends DomainResource { return ResourceType.SupportingDocumentation; } - @SearchParamDefinition(name="identifier", path="SupportingDocumentation.identifier", description="The business identifier of the Eligibility", type="token" ) + @SearchParamDefinition(name = "identifier", path = "SupportingDocumentation.identifier", description = "The business identifier of the Eligibility", type = "token") public static final String SP_IDENTIFIER = "identifier"; @SearchParamDefinition(name="author", path="SupportingDocumentation.author", description="The person who generated this resource", type="reference" ) public static final String SP_AUTHOR = "author"; @SearchParamDefinition(name="subject", path="SupportingDocumentation.subject", description="The patient to whom the documents refer", type="reference" ) public static final String SP_SUBJECT = "subject"; - @SearchParamDefinition(name="patient", path="SupportingDocumentation.subject", description="The patient to whom the documents refer", type="reference" ) + @SearchParamDefinition(name = "patient", path = "SupportingDocumentation.subject", description = "The patient to whom the documents refer", type = "reference") public static final String SP_PATIENT = "patient"; } diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/TimeType.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/TimeType.java index 0ab9c9d254f..b04b54f0398 100644 --- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/TimeType.java +++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/TimeType.java @@ -35,7 +35,7 @@ import org.hl7.fhir.instance.model.annotations.DatatypeDef; * Represents a Time datatype, per the FHIR specification. A time is a specification of hours and minutes (and optionally milliseconds), with NO date and NO timezone information attached. It is * expressed as a string in the form HH:mm:ss[.SSSS] */ -@DatatypeDef(name="time") +@DatatypeDef(name = "time") public class TimeType extends PrimitiveType { private static final long serialVersionUID = 3L; diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Timing.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Timing.java index 561425f34e4..f1198c34d3b 100644 --- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Timing.java +++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/Timing.java @@ -44,7 +44,7 @@ import org.hl7.fhir.instance.model.api.IDatatypeElement; * Specifies an event that may occur multiple times. Timing schedules are used for to record when things are expected or requested to occur. */ @DatatypeDef(name="Timing") -public class Timing extends Type implements ICompositeType { +public class Timing extends Type implements ICompositeType { public enum EventTiming { /** @@ -763,14 +763,14 @@ public class Timing extends Type implements ICompositeType { /** * Identifies specific time periods when the event should occur. */ - @Child(name="event", type={Period.class}, order=0, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "event", type = {Period.class}, order = 0, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="When the event occurs", formalDefinition="Identifies specific time periods when the event should occur." ) protected List event; /** * Identifies a repeating pattern to the intended time periods. */ - @Child(name="repeat", type={}, order=1, min=0, max=1) + @Child(name = "repeat", type = {}, order = 1, min = 0, max = 1) @Description(shortDefinition="Only if there is none or one event", formalDefinition="Identifies a repeating pattern to the intended time periods." ) protected TimingRepeatComponent repeat; diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/ValueSet.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/ValueSet.java index 4f0fa1aad09..3f3f2284d7f 100644 --- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/ValueSet.java +++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/ValueSet.java @@ -2514,112 +2514,112 @@ public class ValueSet extends DomainResource { /** * The identifier that is used to identify this value set when it is referenced in a specification, model, design or an instance (should be globally unique OID, UUID, or URI). */ - @Child(name="identifier", type={UriType.class}, order=0, min=0, max=1) + @Child(name = "identifier", type = {UriType.class}, order = 0, min = 0, max = 1) @Description(shortDefinition="Globally unique logical id for value set", formalDefinition="The identifier that is used to identify this value set when it is referenced in a specification, model, design or an instance (should be globally unique OID, UUID, or URI)." ) protected UriType identifier; /** * The identifier that is used to identify this version of the value set when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the profile author manually and the value should be a timestamp. */ - @Child(name="version", type={StringType.class}, order=1, min=0, max=1) + @Child(name = "version", type = {StringType.class}, order = 1, min = 0, max = 1) @Description(shortDefinition="Logical id for this version of the value set", formalDefinition="The identifier that is used to identify this version of the value set when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the profile author manually and the value should be a timestamp." ) protected StringType version; /** * A free text natural language name describing the value set. */ - @Child(name="name", type={StringType.class}, order=2, min=0, max=1) + @Child(name = "name", type = {StringType.class}, order = 2, min = 0, max = 1) @Description(shortDefinition="Informal name for this value set", formalDefinition="A free text natural language name describing the value set." ) protected StringType name; /** * If this is set to 'true', then no new versions of the content logical definition can be created. Note: Other metadata might still change. */ - @Child(name="immutable", type={BooleanType.class}, order=3, min=0, max=1) + @Child(name = "immutable", type = {BooleanType.class}, order = 3, min = 0, max = 1) @Description(shortDefinition="Indicates whether or not any change to the content logical definition may occur", formalDefinition="If this is set to 'true', then no new versions of the content logical definition can be created. Note: Other metadata might still change." ) protected BooleanType immutable; /** * The name of the individual or organization that published the value set. */ - @Child(name="publisher", type={StringType.class}, order=4, min=0, max=1) + @Child(name = "publisher", type = {StringType.class}, order = 4, min = 0, max = 1) @Description(shortDefinition="Name of the publisher (Organization or individual)", formalDefinition="The name of the individual or organization that published the value set." ) protected StringType publisher; /** * Contacts of the publisher to assist a user in finding and communicating with the publisher. */ - @Child(name="telecom", type={ContactPoint.class}, order=5, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "telecom", type = {ContactPoint.class}, order = 5, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Contact information of the publisher", formalDefinition="Contacts of the publisher to assist a user in finding and communicating with the publisher." ) protected List telecom; /** * A free text natural language description of the use of the value set - reason for definition, "the semantic space" to be included in the value set, conditions of use, etc. The description may include a list of expected usages for the value set and can also describe the approach taken to build the value set. */ - @Child(name="description", type={StringType.class}, order=6, min=0, max=1) + @Child(name = "description", type = {StringType.class}, order = 6, min = 0, max = 1) @Description(shortDefinition="Human language description of the value set", formalDefinition="A free text natural language description of the use of the value set - reason for definition, 'the semantic space' to be included in the value set, conditions of use, etc. The description may include a list of expected usages for the value set and can also describe the approach taken to build the value set." ) protected StringType description; /** * A copyright statement relating to the value set and/or its contents. These are generally legal restrictions on the use and publishing of the value set. */ - @Child(name="copyright", type={StringType.class}, order=7, min=0, max=1) + @Child(name = "copyright", type = {StringType.class}, order = 7, min = 0, max = 1) @Description(shortDefinition="Publishing restrictions for the value set", formalDefinition="A copyright statement relating to the value set and/or its contents. These are generally legal restrictions on the use and publishing of the value set." ) protected StringType copyright; /** * The status of the value set. */ - @Child(name="status", type={CodeType.class}, order=8, min=1, max=1) + @Child(name = "status", type = {CodeType.class}, order = 8, min = 1, max = 1) @Description(shortDefinition="draft | active | retired", formalDefinition="The status of the value set." ) protected Enumeration status; /** * This valueset was authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage. */ - @Child(name="experimental", type={BooleanType.class}, order=9, min=0, max=1) + @Child(name = "experimental", type = {BooleanType.class}, order = 9, min = 0, max = 1) @Description(shortDefinition="If for testing purposes, not real usage", formalDefinition="This valueset was authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage." ) protected BooleanType experimental; /** * Whether this is intended to be used with an extensible binding or not. */ - @Child(name="extensible", type={BooleanType.class}, order=10, min=0, max=1) + @Child(name = "extensible", type = {BooleanType.class}, order = 10, min = 0, max = 1) @Description(shortDefinition="Whether this is intended to be used with an extensible binding", formalDefinition="Whether this is intended to be used with an extensible binding or not." ) protected BooleanType extensible; /** * The date that the value set status was last changed. */ - @Child(name="date", type={DateTimeType.class}, order=11, min=0, max=1) + @Child(name = "date", type = {DateTimeType.class}, order = 11, min = 0, max = 1) @Description(shortDefinition="Date for given status", formalDefinition="The date that the value set status was last changed." ) protected DateTimeType date; /** * If a Stability Date is expanded by evaluating the Content Logical Definition using the current version of all referenced code system(s) and value sets as of the Stability Date. */ - @Child(name="stableDate", type={DateType.class}, order=12, min=0, max=1) + @Child(name = "stableDate", type = {DateType.class}, order = 12, min = 0, max = 1) @Description(shortDefinition="Fixed date for the version of all referenced code systems and value sets", formalDefinition="If a Stability Date is expanded by evaluating the Content Logical Definition using the current version of all referenced code system(s) and value sets as of the Stability Date." ) protected DateType stableDate; /** * When value set defines its own codes. */ - @Child(name="define", type={}, order=13, min=0, max=1) + @Child(name = "define", type = {}, order = 13, min = 0, max = 1) @Description(shortDefinition="When value set defines its own codes", formalDefinition="When value set defines its own codes." ) protected ValueSetDefineComponent define; /** * When value set includes codes from elsewhere. */ - @Child(name="compose", type={}, order=14, min=0, max=1) + @Child(name = "compose", type = {}, order = 14, min = 0, max = 1) @Description(shortDefinition="When value set includes codes from elsewhere", formalDefinition="When value set includes codes from elsewhere." ) protected ValueSetComposeComponent compose; /** * A value set can also be "expanded", where the value set is turned into a simple collection of enumerated codes. This element holds the expansion, if it has been performed. */ - @Child(name="expansion", type={}, order=15, min=0, max=1) + @Child(name = "expansion", type = {}, order = 15, min = 0, max = 1) @Description(shortDefinition="Used when the value set is 'expanded'", formalDefinition="A value set can also be 'expanded', where the value set is turned into a simple collection of enumerated codes. This element holds the expansion, if it has been performed." ) protected ValueSetExpansionComponent expansion; @@ -3406,22 +3406,22 @@ public class ValueSet extends DomainResource { public static final String SP_DATE = "date"; @SearchParamDefinition(name="reference", path="ValueSet.compose.include.system", description="A code system included or excluded in the value set or an imported value set", type="token" ) public static final String SP_REFERENCE = "reference"; - @SearchParamDefinition(name="identifier", path="ValueSet.identifier", description="The identifier of the value set", type="token" ) - public static final String SP_IDENTIFIER = "identifier"; - @SearchParamDefinition(name="system", path="ValueSet.define.system", description="The system for any codes defined by this value set", type="token" ) - public static final String SP_SYSTEM = "system"; - @SearchParamDefinition(name="code", path="ValueSet.define.concept.code", description="A code defined in the value set", type="token" ) - public static final String SP_CODE = "code"; - @SearchParamDefinition(name="name", path="ValueSet.name", description="The name of the value set", type="string" ) - public static final String SP_NAME = "name"; + @SearchParamDefinition(name = "identifier", path = "ValueSet.identifier", description = "The identifier of the value set", type = "token") + public static final String SP_IDENTIFIER = "identifier"; + @SearchParamDefinition(name = "system", path = "ValueSet.define.system", description = "The system for any codes defined by this value set", type = "token") + public static final String SP_SYSTEM = "system"; + @SearchParamDefinition(name = "code", path = "ValueSet.define.concept.code", description = "A code defined in the value set", type = "token") + public static final String SP_CODE = "code"; + @SearchParamDefinition(name = "name", path = "ValueSet.name", description = "The name of the value set", type = "string") + public static final String SP_NAME = "name"; @SearchParamDefinition(name="publisher", path="ValueSet.publisher", description="Name of the publisher of the value set", type="string" ) public static final String SP_PUBLISHER = "publisher"; - @SearchParamDefinition(name="description", path="ValueSet.description", description="Text search in the description of the value set", type="string" ) - public static final String SP_DESCRIPTION = "description"; + @SearchParamDefinition(name = "description", path = "ValueSet.description", description = "Text search in the description of the value set", type = "string") + public static final String SP_DESCRIPTION = "description"; @SearchParamDefinition(name="version", path="ValueSet.version", description="The version identifier of the value set", type="token" ) public static final String SP_VERSION = "version"; - @SearchParamDefinition(name="status", path="ValueSet.status", description="The status of the value set", type="token" ) - public static final String SP_STATUS = "status"; + @SearchParamDefinition(name = "status", path = "ValueSet.status", description = "The status of the value set", type = "token") + public static final String SP_STATUS = "status"; } diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/VisionClaim.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/VisionClaim.java index 4083960c221..d7afcc5ea60 100644 --- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/VisionClaim.java +++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/VisionClaim.java @@ -2688,35 +2688,35 @@ public class VisionClaim extends DomainResource { /** * The business identifier for the instance: invoice number, claim number, pre-determination or pre-authorization number. */ - @Child(name="identifier", type={Identifier.class}, order=0, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "identifier", type = {Identifier.class}, order = 0, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Claim number", formalDefinition="The business identifier for the instance: invoice number, claim number, pre-determination or pre-authorization number." ) protected List identifier; /** * The version of the specification on which this instance relies. */ - @Child(name="ruleset", type={Coding.class}, order=1, min=0, max=1) + @Child(name = "ruleset", type = {Coding.class}, order = 1, min = 0, max = 1) @Description(shortDefinition="Current specification followed", formalDefinition="The version of the specification on which this instance relies." ) protected Coding ruleset; /** * The version of the specification from which the original instance was created. */ - @Child(name="originalRuleset", type={Coding.class}, order=2, min=0, max=1) + @Child(name = "originalRuleset", type = {Coding.class}, order = 2, min = 0, max = 1) @Description(shortDefinition="Original specification followed", formalDefinition="The version of the specification from which the original instance was created." ) protected Coding originalRuleset; /** * The date when the enclosed suite of services were performed or completed. */ - @Child(name="created", type={DateTimeType.class}, order=3, min=0, max=1) + @Child(name = "created", type = {DateTimeType.class}, order = 3, min = 0, max = 1) @Description(shortDefinition="Creation date", formalDefinition="The date when the enclosed suite of services were performed or completed." ) protected DateTimeType created; /** * Insurer Identifier, typical BIN number (6 digit). */ - @Child(name="target", type={Organization.class}, order=4, min=0, max=1) + @Child(name = "target", type = {Organization.class}, order = 4, min = 0, max = 1) @Description(shortDefinition="Insurer", formalDefinition="Insurer Identifier, typical BIN number (6 digit)." ) protected Reference target; @@ -2728,7 +2728,7 @@ public class VisionClaim extends DomainResource { /** * The provider which is responsible for the bill, claim pre-determination, pre-authorization. */ - @Child(name="provider", type={Practitioner.class}, order=5, min=0, max=1) + @Child(name = "provider", type = {Practitioner.class}, order = 5, min = 0, max = 1) @Description(shortDefinition="Responsible provider", formalDefinition="The provider which is responsible for the bill, claim pre-determination, pre-authorization." ) protected Reference provider; @@ -2740,7 +2740,7 @@ public class VisionClaim extends DomainResource { /** * The organization which is responsible for the bill, claim pre-determination, pre-authorization. */ - @Child(name="organization", type={Organization.class}, order=6, min=0, max=1) + @Child(name = "organization", type = {Organization.class}, order = 6, min = 0, max = 1) @Description(shortDefinition="Responsible organization", formalDefinition="The organization which is responsible for the bill, claim pre-determination, pre-authorization." ) protected Reference organization; @@ -2752,28 +2752,28 @@ public class VisionClaim extends DomainResource { /** * Complete (Bill or Claim), Proposed (Pre-Authorization), Exploratory (Pre-determination). */ - @Child(name="use", type={CodeType.class}, order=7, min=0, max=1) + @Child(name = "use", type = {CodeType.class}, order = 7, min = 0, max = 1) @Description(shortDefinition="complete | proposed | exploratory | other", formalDefinition="Complete (Bill or Claim), Proposed (Pre-Authorization), Exploratory (Pre-determination)." ) protected Enumeration use; /** * Immediate (STAT), best effort (NORMAL), deferred (DEFER). */ - @Child(name="priority", type={Coding.class}, order=8, min=0, max=1) + @Child(name = "priority", type = {Coding.class}, order = 8, min = 0, max = 1) @Description(shortDefinition="Desired processing priority", formalDefinition="Immediate (STAT), best effort (NORMAL), deferred (DEFER)." ) protected Coding priority; /** * In the case of a Pre-Determination/Pre-Authorization the provider may request that funds in the amount of the expected Benefit be reserved ('Patient' or 'Provider') to pay for the Benefits determined on the subsequent claim(s). 'None' explicitly indicates no funds reserving is requested. */ - @Child(name="fundsReserve", type={Coding.class}, order=9, min=0, max=1) + @Child(name = "fundsReserve", type = {Coding.class}, order = 9, min = 0, max = 1) @Description(shortDefinition="Funds requested to be reserved", formalDefinition="In the case of a Pre-Determination/Pre-Authorization the provider may request that funds in the amount of the expected Benefit be reserved ('Patient' or 'Provider') to pay for the Benefits determined on the subsequent claim(s). 'None' explicitly indicates no funds reserving is requested." ) protected Coding fundsReserve; /** * Person who created the invoice/claim/pre-determination or pre-authorization. */ - @Child(name="enterer", type={Practitioner.class}, order=10, min=0, max=1) + @Child(name = "enterer", type = {Practitioner.class}, order = 10, min = 0, max = 1) @Description(shortDefinition="Author", formalDefinition="Person who created the invoice/claim/pre-determination or pre-authorization." ) protected Reference enterer; @@ -2785,7 +2785,7 @@ public class VisionClaim extends DomainResource { /** * Facility where the services were provided. */ - @Child(name="facility", type={Location.class}, order=11, min=0, max=1) + @Child(name = "facility", type = {Location.class}, order = 11, min = 0, max = 1) @Description(shortDefinition="Servicing Facility", formalDefinition="Facility where the services were provided." ) protected Reference facility; @@ -2797,7 +2797,7 @@ public class VisionClaim extends DomainResource { /** * Prescription to support the dispensing of glasses or contact lenses. */ - @Child(name="prescription", type={VisionPrescription.class}, order=12, min=0, max=1) + @Child(name = "prescription", type = {VisionPrescription.class}, order = 12, min = 0, max = 1) @Description(shortDefinition="Prescription", formalDefinition="Prescription to support the dispensing of glasses or contact lenses." ) protected Reference prescription; @@ -2809,14 +2809,14 @@ public class VisionClaim extends DomainResource { /** * The party to be reimbursed for the services. */ - @Child(name="payee", type={}, order=13, min=0, max=1) + @Child(name = "payee", type = {}, order = 13, min = 0, max = 1) @Description(shortDefinition="Payee", formalDefinition="The party to be reimbursed for the services." ) protected PayeeComponent payee; /** * The referral resource which lists the date, practitioner, reason and other supporting information. */ - @Child(name="referral", type={ReferralRequest.class}, order=14, min=0, max=1) + @Child(name = "referral", type = {ReferralRequest.class}, order = 14, min = 0, max = 1) @Description(shortDefinition="Treatment Referral", formalDefinition="The referral resource which lists the date, practitioner, reason and other supporting information." ) protected Reference referral; @@ -2828,21 +2828,21 @@ public class VisionClaim extends DomainResource { /** * Ordered list of patient diagnosis for which care is sought. */ - @Child(name="diagnosis", type={}, order=15, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "diagnosis", type = {}, order = 15, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Diagnosis", formalDefinition="Ordered list of patient diagnosis for which care is sought." ) protected List diagnosis; /** * List of patient conditions for which care is sought. */ - @Child(name="condition", type={Coding.class}, order=16, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "condition", type = {Coding.class}, order = 16, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="List of presenting Conditions", formalDefinition="List of patient conditions for which care is sought." ) protected List condition; /** * Patient Resource. */ - @Child(name="patient", type={Patient.class}, order=17, min=1, max=1) + @Child(name = "patient", type = {Patient.class}, order = 17, min = 1, max = 1) @Description(shortDefinition="The subject of the Products and Services", formalDefinition="Patient Resource." ) protected Reference patient; @@ -2854,56 +2854,56 @@ public class VisionClaim extends DomainResource { /** * Financial instrument by which payment information for health care. */ - @Child(name="coverage", type={}, order=18, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "coverage", type = {}, order = 18, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Insurance or medical plan", formalDefinition="Financial instrument by which payment information for health care." ) protected List coverage; /** * Factors which may influence the applicability of coverage. */ - @Child(name="exception", type={Coding.class}, order=19, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "exception", type = {Coding.class}, order = 19, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Eligibility exceptions", formalDefinition="Factors which may influence the applicability of coverage." ) protected List exception; /** * Name of school for over-aged dependants. */ - @Child(name="school", type={StringType.class}, order=20, min=0, max=1) + @Child(name = "school", type = {StringType.class}, order = 20, min = 0, max = 1) @Description(shortDefinition="Name of School", formalDefinition="Name of school for over-aged dependants." ) protected StringType school; /** * Date of an accident which these services are addressing. */ - @Child(name="accident", type={DateType.class}, order=21, min=0, max=1) + @Child(name = "accident", type = {DateType.class}, order = 21, min = 0, max = 1) @Description(shortDefinition="Accident Date", formalDefinition="Date of an accident which these services are addressing." ) protected DateType accident; /** * Type of accident: work, auto, etc. */ - @Child(name="accidentType", type={Coding.class}, order=22, min=0, max=1) + @Child(name = "accidentType", type = {Coding.class}, order = 22, min = 0, max = 1) @Description(shortDefinition="Accident Type", formalDefinition="Type of accident: work, auto, etc." ) protected Coding accidentType; /** * A list of intervention and exception codes which may influence the adjudication of the claim. */ - @Child(name="interventionException", type={Coding.class}, order=23, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "interventionException", type = {Coding.class}, order = 23, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Intervention and exception code (Pharma)", formalDefinition="A list of intervention and exception codes which may influence the adjudication of the claim." ) protected List interventionException; /** * First tier of goods and services. */ - @Child(name="item", type={}, order=24, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "item", type = {}, order = 24, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Goods and Services", formalDefinition="First tier of goods and services." ) protected List item; /** * Code to indicate that Xrays, images, emails, documents, models or attachments are being sent in support of this submission. */ - @Child(name="additionalMaterials", type={Coding.class}, order=25, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "additionalMaterials", type = {Coding.class}, order = 25, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Additional materials, documents, etc.", formalDefinition="Code to indicate that Xrays, images, emails, documents, models or attachments are being sent in support of this submission." ) protected List additionalMaterials; @@ -3997,10 +3997,10 @@ public class VisionClaim extends DomainResource { return ResourceType.VisionClaim; } - @SearchParamDefinition(name="identifier", path="VisionClaim.identifier", description="The primary identifier of the financial resource", type="token" ) - public static final String SP_IDENTIFIER = "identifier"; - @SearchParamDefinition(name="use", path="VisionClaim.use", description="The kind of financial resource", type="token" ) - public static final String SP_USE = "use"; + @SearchParamDefinition(name = "identifier", path = "VisionClaim.identifier", description = "The primary identifier of the financial resource", type = "token") + public static final String SP_IDENTIFIER = "identifier"; + @SearchParamDefinition(name = "use", path = "VisionClaim.use", description = "The kind of financial resource", type = "token") + public static final String SP_USE = "use"; @SearchParamDefinition(name="patient", path="VisionClaim.patient", description="Patient", type="reference" ) public static final String SP_PATIENT = "patient"; @SearchParamDefinition(name="priority", path="VisionClaim.priority", description="Processing priority requested", type="token" ) diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/VisionPrescription.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/VisionPrescription.java index 515ceefc532..e23f86d06e1 100644 --- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/VisionPrescription.java +++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/VisionPrescription.java @@ -1100,21 +1100,21 @@ public class VisionPrescription extends DomainResource { /** * Business identifier which may be used by other parties to reference or identify the prescription. */ - @Child(name="identifier", type={Identifier.class}, order=0, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "identifier", type = {Identifier.class}, order = 0, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Business identifier", formalDefinition="Business identifier which may be used by other parties to reference or identify the prescription." ) protected List identifier; /** * The date (and perhaps time) when the prescription was written. */ - @Child(name="dateWritten", type={DateTimeType.class}, order=1, min=0, max=1) + @Child(name = "dateWritten", type = {DateTimeType.class}, order = 1, min = 0, max = 1) @Description(shortDefinition="When prescription was authorized", formalDefinition="The date (and perhaps time) when the prescription was written." ) protected DateTimeType dateWritten; /** * A link to a resource representing the person to whom the Vision products will be supplied. */ - @Child(name="patient", type={Patient.class}, order=2, min=0, max=1) + @Child(name = "patient", type = {Patient.class}, order = 2, min = 0, max = 1) @Description(shortDefinition="Who prescription is for", formalDefinition="A link to a resource representing the person to whom the Vision products will be supplied." ) protected Reference patient; @@ -1126,7 +1126,7 @@ public class VisionPrescription extends DomainResource { /** * The healthcare professional responsible for authorizing the prescription. */ - @Child(name="prescriber", type={Practitioner.class}, order=3, min=0, max=1) + @Child(name = "prescriber", type = {Practitioner.class}, order = 3, min = 0, max = 1) @Description(shortDefinition="Who authorizes the Vision product", formalDefinition="The healthcare professional responsible for authorizing the prescription." ) protected Reference prescriber; @@ -1138,7 +1138,7 @@ public class VisionPrescription extends DomainResource { /** * A link to a resource that identifies the particular occurrence of contact between patient and health care provider. */ - @Child(name="encounter", type={Encounter.class}, order=4, min=0, max=1) + @Child(name = "encounter", type = {Encounter.class}, order = 4, min = 0, max = 1) @Description(shortDefinition="Created during encounter / admission / stay", formalDefinition="A link to a resource that identifies the particular occurrence of contact between patient and health care provider." ) protected Reference encounter; @@ -1150,14 +1150,14 @@ public class VisionPrescription extends DomainResource { /** * Can be the reason or the indication for writing the prescription. */ - @Child(name="reason", type={CodeableConcept.class, Condition.class}, order=5, min=0, max=1) + @Child(name = "reason", type = {CodeableConcept.class, Condition.class}, order = 5, min = 0, max = 1) @Description(shortDefinition="Reason or indication for writing the prescription", formalDefinition="Can be the reason or the indication for writing the prescription." ) protected Type reason; /** * Deals with details of the dispense part of the supply specification. */ - @Child(name="dispense", type={}, order=6, min=0, max=Child.MAX_UNLIMITED) + @Child(name = "dispense", type = {}, order = 6, min = 0, max = Child.MAX_UNLIMITED) @Description(shortDefinition="Vision supply authorization", formalDefinition="Deals with details of the dispense part of the supply specification." ) protected List dispense; @@ -1515,12 +1515,12 @@ public class VisionPrescription extends DomainResource { return ResourceType.VisionPrescription; } - @SearchParamDefinition(name="identifier", path="VisionPrescription.identifier", description="Return prescriptions with this external identity", type="token" ) - public static final String SP_IDENTIFIER = "identifier"; + @SearchParamDefinition(name = "identifier", path = "VisionPrescription.identifier", description = "Return prescriptions with this external identity", type = "token") + public static final String SP_IDENTIFIER = "identifier"; @SearchParamDefinition(name="patient", path="VisionPrescription.patient", description="The identity of a patient to list dispenses for", type="reference" ) public static final String SP_PATIENT = "patient"; - @SearchParamDefinition(name="datewritten", path="VisionPrescription.dateWritten", description="Return prescriptions written on this date", type="date" ) - public static final String SP_DATEWRITTEN = "datewritten"; + @SearchParamDefinition(name = "datewritten", path = "VisionPrescription.dateWritten", description = "Return prescriptions written on this date", type = "date") + public static final String SP_DATEWRITTEN = "datewritten"; @SearchParamDefinition(name="encounter", path="VisionPrescription.encounter", description="Return prescriptions with this encounter identity", type="reference" ) public static final String SP_ENCOUNTER = "encounter"; diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/annotations/Child.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/annotations/Child.java index bb0cda27e09..36c4bf3fe0c 100644 --- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/annotations/Child.java +++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/annotations/Child.java @@ -100,7 +100,7 @@ public @interface Child { /** * For children which accept an {@link Enumeration} as the type, this - * field indicates the type to use for the enum factory + * field indicates the type to use for the enum factory */ Class> enumFactory() default NoEnumFactory.class; @@ -119,7 +119,7 @@ public @interface Child { private NoEnumFactory() { // non instantiable } - + @Override public Enum fromCode(String theCodeString) throws IllegalArgumentException { return null; diff --git a/hapi-fhir-structures-hl7org-dstu2/src/test/java/ca/uhn/fhir/model/ModelInheritanceTest.java b/hapi-fhir-structures-hl7org-dstu2/src/test/java/ca/uhn/fhir/model/ModelInheritanceTest.java index e695285dde4..32b078bbb7d 100644 --- a/hapi-fhir-structures-hl7org-dstu2/src/test/java/ca/uhn/fhir/model/ModelInheritanceTest.java +++ b/hapi-fhir-structures-hl7org-dstu2/src/test/java/ca/uhn/fhir/model/ModelInheritanceTest.java @@ -50,137 +50,137 @@ import org.junit.Test; public class ModelInheritanceTest { - /** - *
    -	 * Other changes:
    -	 * 
    -	 * Reference:
    -	 *  * Add "resource" field, plus constructors and getter/setters for that field
    -	 *  
    -	 * Narrative:
    -	 *  * Add getValueAsDiv and setValueAsDiv
    -	 *  
    -	 * XhtmlParser and XhtmlEncoder:
    -	 *  * Do we need a better exception declaration?
    -	 *  
    -	 * ElementDefinition
    -	 *  * Backbone elements (eg .ElementDefinitionSlicingComponent) do not extend BackboneElement or have a @Block annotation for some reason
    -	 *  
    -	 * Extension
    -	 *  * Should URL not be StringType since it can't take extensions?
    -	 * 
    - */ + /** + *
    +     * Other changes:
    +     *
    +     * Reference:
    +     *  * Add "resource" field, plus constructors and getter/setters for that field
    +     *
    +     * Narrative:
    +     *  * Add getValueAsDiv and setValueAsDiv
    +     *
    +     * XhtmlParser and XhtmlEncoder:
    +     *  * Do we need a better exception declaration?
    +     *
    +     * ElementDefinition
    +     *  * Backbone elements (eg .ElementDefinitionSlicingComponent) do not extend BackboneElement or have a @Block annotation for some reason
    +     *
    +     * Extension
    +     *  * Should URL not be StringType since it can't take extensions?
    +     * 
    + */ - @Test - public void testType() { - assertTrue(IBaseDatatype.class.isAssignableFrom(Type.class)); - } + @Test + public void testType() { + assertTrue(IBaseDatatype.class.isAssignableFrom(Type.class)); + } - /** - * This one should apply to all composite types - */ - @Test - public void testAddress() { - assertTrue(ICompositeType.class.isAssignableFrom(Address.class)); - } + /** + * This one should apply to all composite types + */ + @Test + public void testAddress() { + assertTrue(ICompositeType.class.isAssignableFrom(Address.class)); + } - @Test - public void testBase() { - assertTrue(IBase.class.isAssignableFrom(Base.class)); - } - - public void testIdentifierUse() throws Exception { - Child child = Identifier.class.getField("use").getAnnotation(Child.class); - assertEquals(IdentifierUseEnumFactory.class, child.enumFactory()); - } + @Test + public void testBase() { + assertTrue(IBase.class.isAssignableFrom(Base.class)); + } - - /** - * Should be "implements IBaseExtension" - */ - @Test - public void testExtension() { - assertTrue(IBaseExtension.class.isAssignableFrom(Extension.class)); - assertTrue(IBaseHasExtensions.class.isAssignableFrom(Extension.class)); - } + public void testIdentifierUse() throws Exception { + Child child = Identifier.class.getField("use").getAnnotation(Child.class); + assertEquals(IdentifierUseEnumFactory.class, child.enumFactory()); + } - @Test - public void testNarrative() { - assertTrue(INarrative.class.isAssignableFrom(Narrative.class)); - } - @Test - public void testBooleanType() { - assertTrue(IBaseBooleanDatatype.class.isAssignableFrom(BooleanType.class)); - } + /** + * Should be "implements IBaseExtension" + */ + @Test + public void testExtension() { + assertTrue(IBaseExtension.class.isAssignableFrom(Extension.class)); + assertTrue(IBaseHasExtensions.class.isAssignableFrom(Extension.class)); + } - @Test - public void testDecimalType() { - assertTrue(IBaseDecimalDatatype.class.isAssignableFrom(DecimalType.class)); - } + @Test + public void testNarrative() { + assertTrue(INarrative.class.isAssignableFrom(Narrative.class)); + } - @Test - public void testIntegerType() { - assertTrue(IBaseIntegerDatatype.class.isAssignableFrom(IntegerType.class)); - } + @Test + public void testBooleanType() { + assertTrue(IBaseBooleanDatatype.class.isAssignableFrom(BooleanType.class)); + } - @Test - public void testPrimitiveType() { - assertTrue(IPrimitiveType.class.isAssignableFrom(PrimitiveType.class)); - assertTrue(IBaseHasExtensions.class.isAssignableFrom(PrimitiveType.class)); - } + @Test + public void testDecimalType() { + assertTrue(IBaseDecimalDatatype.class.isAssignableFrom(DecimalType.class)); + } - @Test - public void testResource() { - assertTrue(IAnyResource.class.isAssignableFrom(Resource.class)); - } + @Test + public void testIntegerType() { + assertTrue(IBaseIntegerDatatype.class.isAssignableFrom(IntegerType.class)); + } - @Test - public void testBundle() { - assertTrue(IBaseBundle.class.isAssignableFrom(Bundle.class)); - } + @Test + public void testPrimitiveType() { + assertTrue(IPrimitiveType.class.isAssignableFrom(PrimitiveType.class)); + assertTrue(IBaseHasExtensions.class.isAssignableFrom(PrimitiveType.class)); + } - public void testIdType() { - assertTrue(IIdType.class.isAssignableFrom(IdType.class)); - } + @Test + public void testResource() { + assertTrue(IAnyResource.class.isAssignableFrom(Resource.class)); + } - @Test - public void testReference() { - assertTrue(IReference.class.isAssignableFrom(Reference.class)); - } + @Test + public void testBundle() { + assertTrue(IBaseBundle.class.isAssignableFrom(Bundle.class)); + } - @Test - public void testMeta() { - assertTrue(IMetaType.class.isAssignableFrom(Meta.class)); - } + public void testIdType() { + assertTrue(IIdType.class.isAssignableFrom(IdType.class)); + } - @Test - public void testBackboneElement() { - assertTrue(IBackboneElement.class.isAssignableFrom(BackboneElement.class)); - assertTrue(IBaseHasExtensions.class.isAssignableFrom(BackboneElement.class)); - assertTrue(IBaseHasModifierExtensions.class.isAssignableFrom(BackboneElement.class)); - } + @Test + public void testReference() { + assertTrue(IReference.class.isAssignableFrom(Reference.class)); + } - @Test - public void testElement() { - assertTrue(IBaseHasExtensions.class.isAssignableFrom(Element.class)); - } + @Test + public void testMeta() { + assertTrue(IMetaType.class.isAssignableFrom(Meta.class)); + } - @Test - public void testDomainResource() { - assertTrue(IBaseHasExtensions.class.isAssignableFrom(DomainResource.class)); - assertTrue(IBaseHasModifierExtensions.class.isAssignableFrom(DomainResource.class)); - } + @Test + public void testBackboneElement() { + assertTrue(IBackboneElement.class.isAssignableFrom(BackboneElement.class)); + assertTrue(IBaseHasExtensions.class.isAssignableFrom(BackboneElement.class)); + assertTrue(IBaseHasModifierExtensions.class.isAssignableFrom(BackboneElement.class)); + } - @Test - public void testCoding() { - assertTrue(ICoding.class.isAssignableFrom(Coding.class)); - } - - @Test - public void testTiming_TimingRepeatComponent() { - assertTrue(IDatatypeElement.class.isAssignableFrom(Timing.TimingRepeatComponent.class)); - assertNotNull(Timing.TimingRepeatComponent.class.getAnnotation(Block.class)); - } + @Test + public void testElement() { + assertTrue(IBaseHasExtensions.class.isAssignableFrom(Element.class)); + } + + @Test + public void testDomainResource() { + assertTrue(IBaseHasExtensions.class.isAssignableFrom(DomainResource.class)); + assertTrue(IBaseHasModifierExtensions.class.isAssignableFrom(DomainResource.class)); + } + + @Test + public void testCoding() { + assertTrue(ICoding.class.isAssignableFrom(Coding.class)); + } + + @Test + public void testTiming_TimingRepeatComponent() { + assertTrue(IDatatypeElement.class.isAssignableFrom(Timing.TimingRepeatComponent.class)); + assertNotNull(Timing.TimingRepeatComponent.class.getAnnotation(Block.class)); + } } diff --git a/hapi-fhir-structures-hl7org-dstu2/src/test/java/ca/uhn/fhir/parser/ContainedResourceEncodingTest.java b/hapi-fhir-structures-hl7org-dstu2/src/test/java/ca/uhn/fhir/parser/ContainedResourceEncodingTest.java index f7ba4972007..43272aa0daf 100644 --- a/hapi-fhir-structures-hl7org-dstu2/src/test/java/ca/uhn/fhir/parser/ContainedResourceEncodingTest.java +++ b/hapi-fhir-structures-hl7org-dstu2/src/test/java/ca/uhn/fhir/parser/ContainedResourceEncodingTest.java @@ -173,13 +173,13 @@ public class ContainedResourceEncodingTest { CodeableConcept obsName = new CodeableConcept(); obsName.setText("name"); - observation.setCode(obsName); - - Reference result = dr.addResult(); - result.setResource(observation); - - ArrayList performers = new ArrayList(); - Reference performer = new Reference(); + observation.setCode(obsName); + + Reference result = dr.addResult(); + result.setResource(observation); + + ArrayList performers = new ArrayList(); + Reference performer = new Reference(); Practitioner p = new Practitioner(); p.setId((UUID.randomUUID().toString())); @@ -212,13 +212,13 @@ public class ContainedResourceEncodingTest { CodeableConcept obsName = new CodeableConcept(); obsName.setText("name"); - observation.setCode(obsName); - - Reference result = dr.addResult(); - result.setResource(observation); - - ArrayList performers = new ArrayList(); - Reference performer = new Reference(); + observation.setCode(obsName); + + Reference result = dr.addResult(); + result.setResource(observation); + + ArrayList performers = new ArrayList(); + Reference performer = new Reference(); Practitioner p = new Practitioner(); // no idDt on practitioner p diff --git a/hapi-fhir-structures-hl7org-dstu2/src/test/java/ca/uhn/fhir/parser/JsonParserTest.java b/hapi-fhir-structures-hl7org-dstu2/src/test/java/ca/uhn/fhir/parser/JsonParserTest.java index 881c80f8b41..88217b3bd40 100644 --- a/hapi-fhir-structures-hl7org-dstu2/src/test/java/ca/uhn/fhir/parser/JsonParserTest.java +++ b/hapi-fhir-structures-hl7org-dstu2/src/test/java/ca/uhn/fhir/parser/JsonParserTest.java @@ -92,8 +92,8 @@ public class JsonParserTest { assertThat(out, containsString("hello")); } - - + + @Test public void testEncodeAndParseExtensions() throws Exception { @@ -107,11 +107,11 @@ public class JsonParserTest { Extension parent = new Extension().setUrl("http://example.com#parent"); patient.getExtension().add(parent); - Extension child1 = new Extension().setUrl( "http://example.com#child").setValue( new StringType("value1")); + Extension child1 = new Extension().setUrl("http://example.com#child").setValue(new StringType("value1")); parent.getExtension().add(child1); - Extension child2 = new Extension().setUrl( "http://example.com#child").setValue( new StringType("value2")); + Extension child2 = new Extension().setUrl("http://example.com#child").setValue(new StringType("value2")); parent.getExtension().add(child2); - + Extension modExt = new Extension(); modExt.setUrl("http://example.com/extensions#modext"); modExt.setValue(new DateType("1995-01-02")); @@ -134,78 +134,78 @@ public class JsonParserTest { ourLog.info(output); String enc = ourCtx.newJsonParser().encodeResourceToString(patient); - assertThat(enc, org.hamcrest.Matchers.stringContainsInOrder("{\"resourceType\":\"Patient\",", - "\"extension\":[{\"url\":\"http://example.com/extensions#someext\",\"valueDateTime\":\"2011-01-02T11:13:15\"}", + assertThat(enc, org.hamcrest.Matchers.stringContainsInOrder("{\"resourceType\":\"Patient\",", + "\"extension\":[{\"url\":\"http://example.com/extensions#someext\",\"valueDateTime\":\"2011-01-02T11:13:15\"}", "{\"url\":\"http://example.com#parent\",\"extension\":[{\"url\":\"http://example.com#child\",\"valueString\":\"value1\"},{\"url\":\"http://example.com#child\",\"valueString\":\"value2\"}]}" - )); - assertThat(enc, org.hamcrest.Matchers.stringContainsInOrder("\"modifierExtension\":[" + - "{" + - "\"url\":\"http://example.com/extensions#modext\"," + - "\"valueDate\":\"1995-01-02\"" + - "}" + + )); + assertThat(enc, org.hamcrest.Matchers.stringContainsInOrder("\"modifierExtension\":[" + + "{" + + "\"url\":\"http://example.com/extensions#modext\"," + + "\"valueDate\":\"1995-01-02\"" + + "}" + "],")); - assertThat(enc, containsString("\"_given\":[" + - "{" + - "\"extension\":[" + - "{" + - "\"url\":\"http://examples.com#givenext\"," + - "\"valueString\":\"given\"" + - "}" + - "]" + - "}," + - "{" + - "\"extension\":[" + - "{" + - "\"url\":\"http://examples.com#givenext_parent\"," + - "\"extension\":[" + - "{" + - "\"url\":\"http://examples.com#givenext_child\"," + - "\"valueString\":\"CHILD\"" + - "}" + - "]" + - "}" + - "]" + + assertThat(enc, containsString("\"_given\":[" + + "{" + + "\"extension\":[" + + "{" + + "\"url\":\"http://examples.com#givenext\"," + + "\"valueString\":\"given\"" + + "}" + + "]" + + "}," + + "{" + + "\"extension\":[" + + "{" + + "\"url\":\"http://examples.com#givenext_parent\"," + + "\"extension\":[" + + "{" + + "\"url\":\"http://examples.com#givenext_child\"," + + "\"valueString\":\"CHILD\"" + + "}" + + "]" + + "}" + + "]" + "}")); /* * Now parse this back */ - - Patient parsed =ourCtx.newJsonParser().parseResource(Patient.class, enc); + + Patient parsed = ourCtx.newJsonParser().parseResource(Patient.class, enc); ext = parsed.getExtension().get(0); assertEquals("http://example.com/extensions#someext", ext.getUrl()); - assertEquals("2011-01-02T11:13:15", ((DateTimeType)ext.getValue()).getValueAsString()); + assertEquals("2011-01-02T11:13:15", ((DateTimeType) ext.getValue()).getValueAsString()); parent = patient.getExtension().get(1); assertEquals("http://example.com#parent", parent.getUrl()); assertNull(parent.getValue()); child1 = parent.getExtension().get(0); - assertEquals( "http://example.com#child", child1.getUrl()); - assertEquals("value1", ((StringType)child1.getValue()).getValueAsString()); + assertEquals("http://example.com#child", child1.getUrl()); + assertEquals("value1", ((StringType) child1.getValue()).getValueAsString()); child2 = parent.getExtension().get(1); - assertEquals( "http://example.com#child", child2.getUrl()); - assertEquals("value2", ((StringType)child2.getValue()).getValueAsString()); + assertEquals("http://example.com#child", child2.getUrl()); + assertEquals("value2", ((StringType) child2.getValue()).getValueAsString()); modExt = parsed.getModifierExtension().get(0); assertEquals("http://example.com/extensions#modext", modExt.getUrl()); - assertEquals("1995-01-02", ((DateType)modExt.getValue()).getValueAsString()); + assertEquals("1995-01-02", ((DateType) modExt.getValue()).getValueAsString()); name = parsed.getName().get(0); ext2 = name.getGiven().get(0).getExtension().get(0); assertEquals("http://examples.com#givenext", ext2.getUrl()); - assertEquals("given", ((StringType)ext2.getValue()).getValueAsString()); + assertEquals("given", ((StringType) ext2.getValue()).getValueAsString()); given2ext = name.getGiven().get(1).getExtension().get(0); assertEquals("http://examples.com#givenext_parent", given2ext.getUrl()); assertNull(given2ext.getValue()); Extension given2ext2 = given2ext.getExtension().get(0); assertEquals("http://examples.com#givenext_child", given2ext2.getUrl()); - assertEquals("CHILD", ((StringType)given2ext2.getValue()).getValue()); + assertEquals("CHILD", ((StringType) given2ext2.getValue()).getValue()); } - + @Test public void testEncodeNonContained() { Organization org = new Organization(); @@ -802,7 +802,7 @@ public class JsonParserTest { code.setDisplay("someDisplay"); code.addExtension().setUrl("urn:alt").setValue( new StringType("alt name")); - + String encoded = ourCtx.newJsonParser().encodeResourceToString(valueSet); ourLog.info(encoded); @@ -813,7 +813,7 @@ public class JsonParserTest { } - + @Test public void testMoreExtensions() throws Exception { @@ -847,10 +847,10 @@ public class JsonParserTest { Extension parent = new Extension().setUrl("http://example.com#parent"); patient.getExtension().add(parent); - Extension child1 = new Extension().setUrl( "http://example.com#child").setValue( new StringType("value1")); + Extension child1 = new Extension().setUrl("http://example.com#child").setValue(new StringType("value1")); parent.getExtension().add(child1); - Extension child2 = new Extension().setUrl( "http://example.com#child").setValue( new StringType("value1")); + Extension child2 = new Extension().setUrl("http://example.com#child").setValue(new StringType("value1")); parent.getExtension().add(child2); // END SNIPPET: subExtension @@ -866,7 +866,7 @@ public class JsonParserTest { assertThat(enc, containsString("")); } - + @Test public void testEncodeExtensionWithResourceContent() { IParser parser = new FhirContext().newJsonParser(); diff --git a/hapi-fhir-structures-hl7org-dstu2/src/test/java/ca/uhn/fhir/parser/XmlParserTest.java b/hapi-fhir-structures-hl7org-dstu2/src/test/java/ca/uhn/fhir/parser/XmlParserTest.java index 7c643b944bc..0c4c80d95be 100644 --- a/hapi-fhir-structures-hl7org-dstu2/src/test/java/ca/uhn/fhir/parser/XmlParserTest.java +++ b/hapi-fhir-structures-hl7org-dstu2/src/test/java/ca/uhn/fhir/parser/XmlParserTest.java @@ -889,11 +889,11 @@ public class XmlParserTest { Extension parent = new Extension().setUrl("http://example.com#parent"); patient.getExtension().add(parent); - Extension child1 = new Extension().setUrl( "http://example.com#child").setValue( new StringType("value1")); + Extension child1 = new Extension().setUrl("http://example.com#child").setValue(new StringType("value1")); parent.getExtension().add(child1); - Extension child2 = new Extension().setUrl( "http://example.com#child").setValue( new StringType("value2")); + Extension child2 = new Extension().setUrl("http://example.com#child").setValue(new StringType("value2")); parent.getExtension().add(child2); - + Extension modExt = new Extension(); modExt.setUrl("http://example.com/extensions#modext"); modExt.setValue(new DateType("1995-01-02")); @@ -927,38 +927,38 @@ public class XmlParserTest { /* * Now parse this back */ - - Patient parsed =ourCtx.newXmlParser().parseResource(Patient.class, enc); + + Patient parsed = ourCtx.newXmlParser().parseResource(Patient.class, enc); ext = parsed.getExtension().get(0); assertEquals("http://example.com/extensions#someext", ext.getUrl()); - assertEquals("2011-01-02T11:13:15", ((DateTimeType)ext.getValue()).getValueAsString()); + assertEquals("2011-01-02T11:13:15", ((DateTimeType) ext.getValue()).getValueAsString()); parent = patient.getExtension().get(1); assertEquals("http://example.com#parent", parent.getUrl()); assertNull(parent.getValue()); child1 = parent.getExtension().get(0); - assertEquals( "http://example.com#child", child1.getUrl()); - assertEquals("value1", ((StringType)child1.getValue()).getValueAsString()); + assertEquals("http://example.com#child", child1.getUrl()); + assertEquals("value1", ((StringType) child1.getValue()).getValueAsString()); child2 = parent.getExtension().get(1); - assertEquals( "http://example.com#child", child2.getUrl()); - assertEquals("value2", ((StringType)child2.getValue()).getValueAsString()); + assertEquals("http://example.com#child", child2.getUrl()); + assertEquals("value2", ((StringType) child2.getValue()).getValueAsString()); modExt = parsed.getModifierExtension().get(0); assertEquals("http://example.com/extensions#modext", modExt.getUrl()); - assertEquals("1995-01-02", ((DateType)modExt.getValue()).getValueAsString()); + assertEquals("1995-01-02", ((DateType) modExt.getValue()).getValueAsString()); name = parsed.getName().get(0); ext2 = name.getGiven().get(0).getExtension().get(0); assertEquals("http://examples.com#givenext", ext2.getUrl()); - assertEquals("given", ((StringType)ext2.getValue()).getValueAsString()); + assertEquals("given", ((StringType) ext2.getValue()).getValueAsString()); given2ext = name.getGiven().get(1).getExtension().get(0); assertEquals("http://examples.com#givenext_parent", given2ext.getUrl()); assertNull(given2ext.getValue()); Extension given2ext2 = given2ext.getExtension().get(0); assertEquals("http://examples.com#givenext_child", given2ext2.getUrl()); - assertEquals("CHILD", ((StringType)given2ext2.getValue()).getValue()); + assertEquals("CHILD", ((StringType) given2ext2.getValue()).getValue()); } diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/FhirDev.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/FhirDev.java index f8448224d30..d264460bdf4 100644 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/FhirDev.java +++ b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dev/FhirDev.java @@ -31,8 +31,10 @@ import ca.uhn.fhir.context.FhirVersionEnum; import ca.uhn.fhir.context.RuntimeResourceDefinition; import ca.uhn.fhir.model.api.IFhirVersion; import ca.uhn.fhir.model.api.IResource; +import ca.uhn.fhir.model.base.composite.BaseCodingDt; import ca.uhn.fhir.model.base.composite.BaseContainedDt; import ca.uhn.fhir.model.base.composite.BaseResourceReferenceDt; +import ca.uhn.fhir.model.dev.composite.CodingDt; import ca.uhn.fhir.model.dev.composite.ContainedDt; import ca.uhn.fhir.model.dev.composite.ResourceReferenceDt; import ca.uhn.fhir.model.dev.resource.Profile; @@ -108,5 +110,10 @@ public class FhirDev implements IFhirVersion { } + @Override + public BaseCodingDt newCodingDt() { + return new CodingDt(); + } + } diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/FhirDstu1.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/FhirDstu1.java index db4b397d8dd..44c334a08c7 100644 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/FhirDstu1.java +++ b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu/FhirDstu1.java @@ -20,8 +20,7 @@ package ca.uhn.fhir.model.dstu; * #L% */ -import static org.apache.commons.lang3.StringUtils.isNotBlank; -import static org.apache.commons.lang3.StringUtils.join; +import static org.apache.commons.lang3.StringUtils.*; import java.io.InputStream; import java.util.Collections; @@ -35,7 +34,6 @@ import java.util.Map; import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.text.WordUtils; import org.hl7.fhir.instance.model.IBaseResource; -import org.hl7.fhir.instance.model.api.IBaseExtension; import ca.uhn.fhir.context.BaseRuntimeChildDefinition; import ca.uhn.fhir.context.BaseRuntimeDeclaredChildDefinition; @@ -62,6 +60,7 @@ import ca.uhn.fhir.model.api.IFhirVersion; import ca.uhn.fhir.model.api.IPrimitiveDatatype; import ca.uhn.fhir.model.api.IResource; import ca.uhn.fhir.model.api.annotation.Child; +import ca.uhn.fhir.model.base.composite.BaseCodingDt; import ca.uhn.fhir.model.base.composite.BaseContainedDt; import ca.uhn.fhir.model.base.composite.BaseResourceReferenceDt; import ca.uhn.fhir.model.dstu.composite.ContainedDt; @@ -380,6 +379,9 @@ public class FhirDstu1 implements IFhirVersion { return ContainedDt.class; } - + @Override + public BaseCodingDt newCodingDt() { + return new ca.uhn.fhir.model.dstu.composite.CodingDt(); + } } diff --git a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/FhirDstu2.java b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/FhirDstu2.java index f46b860e98f..6bb6ab75bd5 100644 --- a/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/FhirDstu2.java +++ b/hapi-tinder-plugin/src/main/java/ca/uhn/fhir/model/dstu2/FhirDstu2.java @@ -23,13 +23,13 @@ package ca.uhn.fhir.model.dstu2; import java.io.InputStream; import org.hl7.fhir.instance.model.IBaseResource; -import org.hl7.fhir.instance.model.api.IBaseExtension; import ca.uhn.fhir.context.ConfigurationException; import ca.uhn.fhir.context.FhirVersionEnum; import ca.uhn.fhir.context.RuntimeResourceDefinition; import ca.uhn.fhir.model.api.IFhirVersion; import ca.uhn.fhir.model.api.IResource; +import ca.uhn.fhir.model.base.composite.BaseCodingDt; import ca.uhn.fhir.model.base.composite.BaseContainedDt; import ca.uhn.fhir.model.base.composite.BaseResourceReferenceDt; import ca.uhn.fhir.model.dstu2.composite.ContainedDt; @@ -94,4 +94,10 @@ public class FhirDstu2 implements IFhirVersion { } + @Override + public BaseCodingDt newCodingDt() { + return new ca.uhn.fhir.model.dstu2.composite.CodingDt(); + } + + } diff --git a/pom.xml b/pom.xml index 98aba3a9112..0901ef17373 100644 --- a/pom.xml +++ b/pom.xml @@ -132,6 +132,11 @@ esteban-aliverti Esteban Aliverti + + mochaholic + Mohammad Jafari + Edmond Scientific Company + diff --git a/src/changes/changes.xml b/src/changes/changes.xml index bd26f68afe0..9193cf5f64f 100644 --- a/src/changes/changes.xml +++ b/src/changes/changes.xml @@ -112,6 +112,10 @@ for users who have parsed a resource with contained resources and want to remove some before re-encoding. Thanks to Alexander Kley for reporting! + + Add support for DSTU2 style security labels in the parser and encoder. Thanks to + Mohammad Jafari for the contribution! + diff --git a/src/site/xdoc/doc_rest_server.xml b/src/site/xdoc/doc_rest_server.xml index 7f18525bfc3..21743afcf62 100644 --- a/src/site/xdoc/doc_rest_server.xml +++ b/src/site/xdoc/doc_rest_server.xml @@ -140,30 +140,31 @@ - +

    The server will return data in a number of places that includes the complete "identity" of a resource. Identity in this case refers to the - web address that a user can use to access the resource. + web address that a user can use to access the resource.

    - For instance, if your server is hosted at http://foo.com/fhir + For instance, if your server is hosted at + http://foo.com/fhir and your resource provider returns a Patient resource with the ID "123", the server should translate that ID to "http://foo.com/fhir/Patient/123".

    - The server will attempt to determine what the base URL should be based on - what the request it receives looks like, but if it is not getting - the right address you may wish to hardcode the base URL, as shown + The server will attempt to determine what the base URL should be based on + what the request it receives looks like, but if it is not getting + the right address you may wish to hardcode the base URL, as shown in the following example:

    - - + +
    - +