mirror of
https://github.com/hapifhir/hapi-fhir.git
synced 2025-03-09 14:33:32 +00:00
Start syncing changes with SVN
This commit is contained in:
parent
cb9716f885
commit
3fe60c3f1b
@ -90,40 +90,39 @@ public class ElementUtil {
|
||||
}
|
||||
|
||||
/**
|
||||
* @param theType Can be null
|
||||
* Note that this method does not work on HL7.org structures
|
||||
*/
|
||||
@SuppressWarnings("unused")
|
||||
public static <T extends IBase> List<T> allPopulatedChildElements(Class<T> theType, Object... theElements) {
|
||||
throw new UnsupportedOperationException();
|
||||
// ArrayList<T> retVal = new ArrayList<T>();
|
||||
// for (Object next : theElements) {
|
||||
// if (next == null) {
|
||||
// continue;
|
||||
// }else if (next instanceof IBase) {
|
||||
// addElement(retVal, (IBase) next, theType);
|
||||
// } else if (next instanceof List) {
|
||||
// for (Object nextElement : ((List<?>)next)) {
|
||||
// if (!(nextElement instanceof IBase)) {
|
||||
// throw new IllegalArgumentException("Found element of "+nextElement.getClass());
|
||||
// }
|
||||
// addElement(retVal, (IBase) nextElement, theType);
|
||||
// }
|
||||
// } else {
|
||||
// throw new IllegalArgumentException("Found element of "+next.getClass());
|
||||
// }
|
||||
//
|
||||
// }
|
||||
// return retVal;
|
||||
public static <T extends IElement> List<T> allPopulatedChildElements(Class<T> theType, Object... theElements) {
|
||||
ArrayList<T> retVal = new ArrayList<T>();
|
||||
for (Object next : theElements) {
|
||||
if (next == null) {
|
||||
continue;
|
||||
}else if (next instanceof IElement) {
|
||||
addElement(retVal, (IElement) next, theType);
|
||||
} else if (next instanceof List) {
|
||||
for (Object nextElement : ((List<?>)next)) {
|
||||
if (!(nextElement instanceof IBase)) {
|
||||
throw new IllegalArgumentException("Found element of "+nextElement.getClass());
|
||||
}
|
||||
addElement(retVal, (IElement) nextElement, theType);
|
||||
}
|
||||
} else {
|
||||
throw new IllegalArgumentException("Found element of "+next.getClass());
|
||||
}
|
||||
|
||||
}
|
||||
return retVal;
|
||||
}
|
||||
|
||||
// @SuppressWarnings("unchecked")
|
||||
// private static <T extends IBase> void addElement(ArrayList<T> retVal, IBase next, Class<T> theType) {
|
||||
// if (theType == null|| theType.isAssignableFrom(next.getClass())) {
|
||||
// retVal.add((T) next);
|
||||
// }
|
||||
// if (next instanceof ICompositeElement) {
|
||||
// retVal.addAll(((ICompositeElement) next).getAllPopulatedChildElementsOfType(theType));
|
||||
// }
|
||||
// }
|
||||
@SuppressWarnings("unchecked")
|
||||
private static <T extends IElement> void addElement(ArrayList<T> retVal, IElement next, Class<T> theType) {
|
||||
if (theType == null|| theType.isAssignableFrom(next.getClass())) {
|
||||
retVal.add((T) next);
|
||||
}
|
||||
if (next instanceof ICompositeElement) {
|
||||
ICompositeElement iCompositeElement = (ICompositeElement) next;
|
||||
retVal.addAll(iCompositeElement.getAllPopulatedChildElementsOfType(theType));
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -1,43 +0,0 @@
|
||||
package org.hl7.fhir.instance.model.api;
|
||||
|
||||
import org.hl7.fhir.instance.model.IPrimitiveType;
|
||||
|
||||
/*
|
||||
* #%L
|
||||
* HAPI FHIR - Core Library
|
||||
* %%
|
||||
* Copyright (C) 2014 - 2015 University Health Network
|
||||
* %%
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
* #L%
|
||||
*/
|
||||
|
||||
<<<<<<< HEAD:hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/model/IBaseResource.java
|
||||
/**
|
||||
* For now, this is a simple marker interface indicating that a class is a resource type.
|
||||
* There are two concrete types of implementations of this interrface. The first are
|
||||
* HL7.org's Resource structures (e.g.
|
||||
* <code>org.hl7.fhir.instance.model.Patient</code>) and
|
||||
* the second are HAPI's Resource structures, e.g.
|
||||
* <code>ca.uhn.fhir.model.dstu.resource.Patient</code>)
|
||||
*/
|
||||
public interface IBaseResource extends IBase {
|
||||
|
||||
IIdType
|
||||
=======
|
||||
public interface IBaseEnumeration<T extends Enum<?>> extends IPrimitiveType<T> {
|
||||
|
||||
// Marker interface
|
||||
>>>>>>> 2edc7eadab64d171ddc1b7c971ff36b9eb55ce67:hapi-fhir-base/src/main/java/org/hl7/fhir/instance/model/api/IBaseEnumeration.java
|
||||
|
||||
}
|
@ -1,4 +1,4 @@
|
||||
package org.hl7.fhir.instance.model;
|
||||
package org.hl7.fhir.instance.model.api;
|
||||
|
||||
/*
|
||||
* #%L
|
||||
@ -55,7 +55,7 @@ POSSIBILITY OF SUCH DAMAGE.
|
||||
* Interface to be implemented by all built-in FHIR enumerations (i.e. the
|
||||
* actual FHIR-defined Java Enum will implement this interface)
|
||||
*/
|
||||
public interface FhirEnum {
|
||||
public interface IFhirEnum {
|
||||
|
||||
/**
|
||||
* Get the XML/JSON representation for an enumerated value
|
@ -86,6 +86,7 @@ import ca.uhn.fhir.rest.server.exceptions.ResourceGoneException;
|
||||
import ca.uhn.fhir.rest.server.exceptions.ResourceNotFoundException;
|
||||
import ca.uhn.fhir.rest.server.exceptions.UnprocessableEntityException;
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
public class FhirResourceDaoDstu2Test {
|
||||
|
||||
private static ClassPathXmlApplicationContext ourCtx;
|
||||
@ -2307,9 +2308,9 @@ public class FhirResourceDaoDstu2Test {
|
||||
}
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
private <T extends IResource> List<T> toList(IBundleProvider theSearch) {
|
||||
return (List<T>) theSearch.getResources(0, theSearch.size());
|
||||
@SuppressWarnings({ "rawtypes" })
|
||||
private List toList(IBundleProvider theSearch) {
|
||||
return theSearch.getResources(0, theSearch.size());
|
||||
}
|
||||
|
||||
private List<IdDt> toUnqualifiedVersionlessIds(IBundleProvider theFound) {
|
||||
@ -2325,7 +2326,6 @@ public class FhirResourceDaoDstu2Test {
|
||||
ourCtx.close();
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@BeforeClass
|
||||
public static void beforeClass() {
|
||||
ourCtx = new ClassPathXmlApplicationContext("hapi-fhir-server-resourceproviders-dstu2.xml", "fhir-jpabase-spring-test-config.xml");
|
||||
|
@ -119,7 +119,7 @@ public class ResourceProviderDstu2Test {
|
||||
|
||||
@Test
|
||||
public void testCreateResourceWithNumericId() throws IOException {
|
||||
String resource = "<Patient xmlns=\"http://hl7.org/fhir\"><id value=\"1777\"/><meta><versionId value=\"1\"/><lastUpdated value=\"2015-02-25T15:47:48Z\"/></meta></Patient>";
|
||||
String resource = "<Patient xmlns=\"http://hl7.org/fhir\"></Patient>";
|
||||
|
||||
HttpPost post = new HttpPost(ourServerBase + "/Patient");
|
||||
post.setEntity(new StringEntity(resource, ContentType.create(Constants.CT_FHIR_XML, "UTF-8")));
|
||||
|
@ -110,7 +110,7 @@ public class JsonParserDstu2Test {
|
||||
ourLog.info(bundleText);
|
||||
|
||||
ca.uhn.fhir.model.dstu2.resource.Bundle reincarnatedBundle = jsonParser.parseResource (ca.uhn.fhir.model.dstu2.resource.Bundle.class, bundleText);
|
||||
Patient reincarnatedPatient = reincarnatedBundle.getAllPopulatedChildElementsOfType(Patient.class).get(0);
|
||||
Patient reincarnatedPatient = (Patient) reincarnatedBundle.getEntry().get(0).getResource();
|
||||
|
||||
assertEquals("Patient", patient.getId().getResourceType());
|
||||
assertEquals("Patient", reincarnatedPatient.getId().getResourceType());
|
||||
|
@ -470,7 +470,7 @@ public class XmlParserDstu2Test {
|
||||
//@formatter:on
|
||||
|
||||
Patient p = ourCtx.newXmlParser().parseResource(Patient.class, res);
|
||||
assertEquals(htmlNoNs, p.getText().getDiv().getValueAsString());
|
||||
assertEquals(htmlNs, p.getText().getDiv().getValueAsString());
|
||||
}
|
||||
|
||||
|
||||
@ -498,7 +498,7 @@ public class XmlParserDstu2Test {
|
||||
ourLog.info(bundleText);
|
||||
|
||||
ca.uhn.fhir.model.dstu2.resource.Bundle reincarnatedBundle = xmlParser.parseResource (ca.uhn.fhir.model.dstu2.resource.Bundle.class, bundleText);
|
||||
Patient reincarnatedPatient = reincarnatedBundle.getAllPopulatedChildElementsOfType(Patient.class).get(0);
|
||||
Patient reincarnatedPatient = (Patient) reincarnatedBundle.getEntry().get(0).getResource();
|
||||
|
||||
assertEquals("Patient", patient.getId().getResourceType());
|
||||
assertEquals("Patient", reincarnatedPatient.getId().getResourceType());
|
||||
|
@ -20,30 +20,27 @@
|
||||
<artifactId>hapi-fhir-base</artifactId>
|
||||
<version>1.0-SNAPSHOT</version>
|
||||
</dependency>
|
||||
|
||||
|
||||
<dependency>
|
||||
<groupId>javax.servlet</groupId>
|
||||
<artifactId>javax.servlet-api</artifactId>
|
||||
<version>${servlet_api_version}</version>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
|
||||
|
||||
<!-- <dependency> <groupId>net.sf.saxon</groupId> <artifactId>saxon</artifactId>
|
||||
<version>8.7</version> </dependency> -->
|
||||
|
||||
<dependency>
|
||||
<groupId>xpp3</groupId>
|
||||
<artifactId>xpp3_min</artifactId>
|
||||
<version>1.1.4c</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>net.sf.saxon</groupId>
|
||||
<artifactId>saxon</artifactId>
|
||||
<version>8.7</version>
|
||||
<artifactId>Saxon-HE</artifactId>
|
||||
<version>9.6.0-4</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>xpp3</groupId>
|
||||
<artifactId>xpp3_min</artifactId>
|
||||
<version>1.1.4c</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>net.sf.saxon</groupId>
|
||||
<artifactId>Saxon-HE</artifactId>
|
||||
<version>9.6.0-4</version>
|
||||
</dependency>
|
||||
|
||||
<!-- Testing -->
|
||||
<dependency>
|
||||
@ -94,13 +91,13 @@
|
||||
<version>${jetty_version}</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.eclipse.jetty</groupId>
|
||||
<artifactId>jetty-http</artifactId>
|
||||
<dependency>
|
||||
<groupId>org.eclipse.jetty</groupId>
|
||||
<artifactId>jetty-http</artifactId>
|
||||
<version>${jetty_version}</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>ch.qos.logback</groupId>
|
||||
<artifactId>logback-classic</artifactId>
|
||||
<version>${logback_version}</version>
|
||||
@ -120,18 +117,18 @@
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.phloc</groupId>
|
||||
<artifactId>phloc-schematron</artifactId>
|
||||
<version>${phloc_schematron_version}</version>
|
||||
<groupId>com.phloc</groupId>
|
||||
<artifactId>phloc-schematron</artifactId>
|
||||
<version>${phloc_schematron_version}</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.phloc</groupId>
|
||||
<artifactId>phloc-commons</artifactId>
|
||||
<version>${phloc_commons_version}</version>
|
||||
<groupId>com.phloc</groupId>
|
||||
<artifactId>phloc-commons</artifactId>
|
||||
<version>${phloc_commons_version}</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
|
||||
|
||||
|
||||
<!-- UNIT TEST DEPENDENCIES -->
|
||||
<dependency>
|
||||
@ -184,27 +181,13 @@
|
||||
<version>${guava_version}</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<!--
|
||||
<dependency>
|
||||
<groupId>org.springframework.security</groupId>
|
||||
<artifactId>spring-security-web</artifactId>
|
||||
<version>${spring_security_version}</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springframework.security</groupId>
|
||||
<artifactId>spring-security-config</artifactId>
|
||||
<version>${spring_security_version}</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springframework.security</groupId>
|
||||
<artifactId>spring-security-jwt</artifactId>
|
||||
<version>1.0.2.RELEASE</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
-->
|
||||
|
||||
<!-- <dependency> <groupId>org.springframework.security</groupId> <artifactId>spring-security-web</artifactId>
|
||||
<version>${spring_security_version}</version> <scope>test</scope> </dependency>
|
||||
<dependency> <groupId>org.springframework.security</groupId> <artifactId>spring-security-config</artifactId>
|
||||
<version>${spring_security_version}</version> <scope>test</scope> </dependency>
|
||||
<dependency> <groupId>org.springframework.security</groupId> <artifactId>spring-security-jwt</artifactId>
|
||||
<version>1.0.2.RELEASE</version> <scope>test</scope> </dependency> -->
|
||||
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
|
@ -26,8 +26,8 @@ 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.Profile;
|
||||
import org.hl7.fhir.instance.model.Reference;
|
||||
import org.hl7.fhir.instance.model.StructureDefinition;
|
||||
|
||||
import ca.uhn.fhir.context.ConfigurationException;
|
||||
import ca.uhn.fhir.context.FhirContext;
|
||||
@ -50,8 +50,8 @@ public class FhirDstu2Hl7Org implements IFhirVersion {
|
||||
}
|
||||
|
||||
@Override
|
||||
public Profile generateProfile(RuntimeResourceDefinition theRuntimeResourceDefinition, String theServerBase) {
|
||||
Profile retVal = new Profile();
|
||||
public StructureDefinition generateProfile(RuntimeResourceDefinition theRuntimeResourceDefinition, String theServerBase) {
|
||||
StructureDefinition retVal = new StructureDefinition();
|
||||
|
||||
RuntimeResourceDefinition def = theRuntimeResourceDefinition;
|
||||
|
||||
|
@ -28,7 +28,7 @@ import java.util.List;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
|
||||
import org.hl7.fhir.instance.model.IBaseResource;
|
||||
import org.hl7.fhir.instance.model.Profile;
|
||||
import org.hl7.fhir.instance.model.StructureDefinition;
|
||||
|
||||
import ca.uhn.fhir.context.FhirContext;
|
||||
import ca.uhn.fhir.context.RuntimeResourceDefinition;
|
||||
@ -51,21 +51,21 @@ public class ServerProfileProvider implements IResourceProvider {
|
||||
|
||||
@Override
|
||||
public Class<? extends IBaseResource> getResourceType() {
|
||||
return Profile.class;
|
||||
return StructureDefinition.class;
|
||||
}
|
||||
|
||||
@Read()
|
||||
public Profile getProfileById(HttpServletRequest theRequest, @IdParam IdDt theId) {
|
||||
public StructureDefinition getProfileById(HttpServletRequest theRequest, @IdParam IdDt theId) {
|
||||
RuntimeResourceDefinition retVal = myContext.getResourceDefinitionById(theId.getValue());
|
||||
if (retVal==null) {
|
||||
return null;
|
||||
}
|
||||
String serverBase = getServerBase(theRequest);
|
||||
return (Profile) retVal.toProfile(serverBase);
|
||||
return (StructureDefinition) retVal.toProfile(serverBase);
|
||||
}
|
||||
|
||||
@Search()
|
||||
public List<Profile> getAllProfiles(HttpServletRequest theRequest) {
|
||||
public List<StructureDefinition> getAllProfiles(HttpServletRequest theRequest) {
|
||||
final String serverBase = getServerBase(theRequest);
|
||||
List<RuntimeResourceDefinition> defs = new ArrayList<RuntimeResourceDefinition>(myContext.getResourceDefinitions());
|
||||
Collections.sort(defs, new Comparator<RuntimeResourceDefinition>() {
|
||||
@ -77,9 +77,9 @@ public class ServerProfileProvider implements IResourceProvider {
|
||||
}
|
||||
return cmp;
|
||||
}});
|
||||
ArrayList<Profile> retVal = new ArrayList<Profile>();
|
||||
ArrayList<StructureDefinition> retVal = new ArrayList<StructureDefinition>();
|
||||
for (RuntimeResourceDefinition next : defs) {
|
||||
retVal.add((Profile) next.toProfile(serverBase));
|
||||
retVal.add((StructureDefinition) next.toProfile(serverBase));
|
||||
}
|
||||
return retVal;
|
||||
}
|
||||
|
@ -1,474 +0,0 @@
|
||||
package org.hl7.fhir.instance.model;
|
||||
|
||||
/*
|
||||
Copyright (c) 2011+, HL7, Inc.
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification,
|
||||
are permitted provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this
|
||||
list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimer in the documentation
|
||||
and/or other materials provided with the distribution.
|
||||
* Neither the name of HL7 nor the names of its contributors may be used to
|
||||
endorse or promote products derived from this software without specific
|
||||
prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
||||
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
||||
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
||||
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
||||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
*/
|
||||
|
||||
// Generated on Wed, Feb 18, 2015 12:09-0500 for FHIR v0.4.0
|
||||
|
||||
import java.util.*;
|
||||
|
||||
import org.hl7.fhir.utilities.Utilities;
|
||||
import org.hl7.fhir.instance.model.annotations.ResourceDef;
|
||||
import org.hl7.fhir.instance.model.annotations.SearchParamDefinition;
|
||||
import org.hl7.fhir.instance.model.annotations.Block;
|
||||
import org.hl7.fhir.instance.model.annotations.Child;
|
||||
import org.hl7.fhir.instance.model.annotations.Description;
|
||||
/**
|
||||
* Prospective warnings of potential issues when providing care to the patient.
|
||||
*/
|
||||
@ResourceDef(name="Alert", profile="http://hl7.org/fhir/Profile/Alert")
|
||||
public class Alert extends DomainResource {
|
||||
|
||||
public enum AlertStatus {
|
||||
/**
|
||||
* A current alert that should be displayed to a user. A system may use the category to determine which roles should view the alert.
|
||||
*/
|
||||
ACTIVE,
|
||||
/**
|
||||
* The alert does not need to be displayed any more.
|
||||
*/
|
||||
INACTIVE,
|
||||
/**
|
||||
* The alert was added in error, and should no longer be displayed.
|
||||
*/
|
||||
ENTEREDINERROR,
|
||||
/**
|
||||
* added to help the parsers
|
||||
*/
|
||||
NULL;
|
||||
public static AlertStatus fromCode(String codeString) throws Exception {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("active".equals(codeString))
|
||||
return ACTIVE;
|
||||
if ("inactive".equals(codeString))
|
||||
return INACTIVE;
|
||||
if ("entered-in-error".equals(codeString))
|
||||
return ENTEREDINERROR;
|
||||
throw new Exception("Unknown AlertStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode() {
|
||||
switch (this) {
|
||||
case ACTIVE: return "active";
|
||||
case INACTIVE: return "inactive";
|
||||
case ENTEREDINERROR: return "entered-in-error";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
public String getSystem() {
|
||||
switch (this) {
|
||||
case ACTIVE: return "";
|
||||
case INACTIVE: return "";
|
||||
case ENTEREDINERROR: return "";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
public String getDefinition() {
|
||||
switch (this) {
|
||||
case ACTIVE: return "A current alert that should be displayed to a user. A system may use the category to determine which roles should view the alert.";
|
||||
case INACTIVE: return "The alert does not need to be displayed any more.";
|
||||
case ENTEREDINERROR: return "The alert was added in error, and should no longer be displayed.";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
public String getDisplay() {
|
||||
switch (this) {
|
||||
case ACTIVE: return "active";
|
||||
case INACTIVE: return "inactive";
|
||||
case ENTEREDINERROR: return "entered-in-error";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public static class AlertStatusEnumFactory implements EnumFactory<AlertStatus> {
|
||||
public AlertStatus fromCode(String codeString) throws IllegalArgumentException {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("active".equals(codeString))
|
||||
return AlertStatus.ACTIVE;
|
||||
if ("inactive".equals(codeString))
|
||||
return AlertStatus.INACTIVE;
|
||||
if ("entered-in-error".equals(codeString))
|
||||
return AlertStatus.ENTEREDINERROR;
|
||||
throw new IllegalArgumentException("Unknown AlertStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(AlertStatus code) {
|
||||
if (code == AlertStatus.ACTIVE)
|
||||
return "active";
|
||||
if (code == AlertStatus.INACTIVE)
|
||||
return "inactive";
|
||||
if (code == AlertStatus.ENTEREDINERROR)
|
||||
return "entered-in-error";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 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)
|
||||
@Description(shortDefinition="Business identifier", formalDefinition="Identifier assigned to the alert for external use (outside the FHIR environment)." )
|
||||
protected List<Identifier> 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)
|
||||
@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)
|
||||
@Description(shortDefinition="active | inactive | entered-in-error", formalDefinition="Supports basic workflow." )
|
||||
protected Enumeration<AlertStatus> status;
|
||||
|
||||
/**
|
||||
* The person who this alert concerns.
|
||||
*/
|
||||
@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;
|
||||
|
||||
/**
|
||||
* The actual object that is the target of the reference (The person who this alert concerns.)
|
||||
*/
|
||||
protected Patient subjectTarget;
|
||||
|
||||
/**
|
||||
* The person or device that created the alert.
|
||||
*/
|
||||
@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;
|
||||
|
||||
/**
|
||||
* The actual object that is the target of the reference (The person or device that created the alert.)
|
||||
*/
|
||||
protected Resource authorTarget;
|
||||
|
||||
/**
|
||||
* 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;
|
||||
|
||||
public Alert() {
|
||||
super();
|
||||
}
|
||||
|
||||
public Alert(Enumeration<AlertStatus> status, Reference subject, CodeableConcept note) {
|
||||
super();
|
||||
this.status = status;
|
||||
this.subject = subject;
|
||||
this.note = note;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {@link #identifier} (Identifier assigned to the alert for external use (outside the FHIR environment).)
|
||||
*/
|
||||
public List<Identifier> getIdentifier() {
|
||||
if (this.identifier == null)
|
||||
this.identifier = new ArrayList<Identifier>();
|
||||
return this.identifier;
|
||||
}
|
||||
|
||||
public boolean hasIdentifier() {
|
||||
if (this.identifier == null)
|
||||
return false;
|
||||
for (Identifier item : this.identifier)
|
||||
if (!item.isEmpty())
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {@link #identifier} (Identifier assigned to the alert for external use (outside the FHIR environment).)
|
||||
*/
|
||||
// syntactic sugar
|
||||
public Identifier addIdentifier() { //3
|
||||
Identifier t = new Identifier();
|
||||
if (this.identifier == null)
|
||||
this.identifier = new ArrayList<Identifier>();
|
||||
this.identifier.add(t);
|
||||
return t;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {@link #category} (Allows an alert to be divided into different categories like clinical, administrative etc.)
|
||||
*/
|
||||
public CodeableConcept getCategory() {
|
||||
if (this.category == null)
|
||||
if (Configuration.errorOnAutoCreate())
|
||||
throw new Error("Attempt to auto-create Alert.category");
|
||||
else if (Configuration.doAutoCreate())
|
||||
this.category = new CodeableConcept(); // cc
|
||||
return this.category;
|
||||
}
|
||||
|
||||
public boolean hasCategory() {
|
||||
return this.category != null && !this.category.isEmpty();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value {@link #category} (Allows an alert to be divided into different categories like clinical, administrative etc.)
|
||||
*/
|
||||
public Alert setCategory(CodeableConcept value) {
|
||||
this.category = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {@link #status} (Supports basic workflow.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value
|
||||
*/
|
||||
public Enumeration<AlertStatus> getStatusElement() {
|
||||
if (this.status == null)
|
||||
if (Configuration.errorOnAutoCreate())
|
||||
throw new Error("Attempt to auto-create Alert.status");
|
||||
else if (Configuration.doAutoCreate())
|
||||
this.status = new Enumeration<AlertStatus>(new AlertStatusEnumFactory()); // bb
|
||||
return this.status;
|
||||
}
|
||||
|
||||
public boolean hasStatusElement() {
|
||||
return this.status != null && !this.status.isEmpty();
|
||||
}
|
||||
|
||||
public boolean hasStatus() {
|
||||
return this.status != null && !this.status.isEmpty();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value {@link #status} (Supports basic workflow.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value
|
||||
*/
|
||||
public Alert setStatusElement(Enumeration<AlertStatus> value) {
|
||||
this.status = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Supports basic workflow.
|
||||
*/
|
||||
public AlertStatus getStatus() {
|
||||
return this.status == null ? null : this.status.getValue();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value Supports basic workflow.
|
||||
*/
|
||||
public Alert setStatus(AlertStatus value) {
|
||||
if (this.status == null)
|
||||
this.status = new Enumeration<AlertStatus>(new AlertStatusEnumFactory());
|
||||
this.status.setValue(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {@link #subject} (The person who this alert concerns.)
|
||||
*/
|
||||
public Reference getSubject() {
|
||||
if (this.subject == null)
|
||||
if (Configuration.errorOnAutoCreate())
|
||||
throw new Error("Attempt to auto-create Alert.subject");
|
||||
else if (Configuration.doAutoCreate())
|
||||
this.subject = new Reference(); // cc
|
||||
return this.subject;
|
||||
}
|
||||
|
||||
public boolean hasSubject() {
|
||||
return this.subject != null && !this.subject.isEmpty();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value {@link #subject} (The person who this alert concerns.)
|
||||
*/
|
||||
public Alert setSubject(Reference value) {
|
||||
this.subject = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {@link #subject} The actual object that is the target of the reference. The reference library doesn't populate this, but you can use it to hold the resource if you resolve it. (The person who this alert concerns.)
|
||||
*/
|
||||
public Patient getSubjectTarget() {
|
||||
if (this.subjectTarget == null)
|
||||
if (Configuration.errorOnAutoCreate())
|
||||
throw new Error("Attempt to auto-create Alert.subject");
|
||||
else if (Configuration.doAutoCreate())
|
||||
this.subjectTarget = new Patient(); // aa
|
||||
return this.subjectTarget;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value {@link #subject} The actual object that is the target of the reference. The reference library doesn't use these, but you can use it to hold the resource if you resolve it. (The person who this alert concerns.)
|
||||
*/
|
||||
public Alert setSubjectTarget(Patient value) {
|
||||
this.subjectTarget = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {@link #author} (The person or device that created the alert.)
|
||||
*/
|
||||
public Reference getAuthor() {
|
||||
if (this.author == null)
|
||||
if (Configuration.errorOnAutoCreate())
|
||||
throw new Error("Attempt to auto-create Alert.author");
|
||||
else if (Configuration.doAutoCreate())
|
||||
this.author = new Reference(); // cc
|
||||
return this.author;
|
||||
}
|
||||
|
||||
public boolean hasAuthor() {
|
||||
return this.author != null && !this.author.isEmpty();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value {@link #author} (The person or device that created the alert.)
|
||||
*/
|
||||
public Alert setAuthor(Reference value) {
|
||||
this.author = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {@link #author} 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 or device that created the alert.)
|
||||
*/
|
||||
public Resource getAuthorTarget() {
|
||||
return this.authorTarget;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value {@link #author} 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 or device that created the alert.)
|
||||
*/
|
||||
public Alert setAuthorTarget(Resource value) {
|
||||
this.authorTarget = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {@link #note} (The coded value or textual component of the alert to display to the user.)
|
||||
*/
|
||||
public CodeableConcept getNote() {
|
||||
if (this.note == null)
|
||||
if (Configuration.errorOnAutoCreate())
|
||||
throw new Error("Attempt to auto-create Alert.note");
|
||||
else if (Configuration.doAutoCreate())
|
||||
this.note = new CodeableConcept(); // cc
|
||||
return this.note;
|
||||
}
|
||||
|
||||
public boolean hasNote() {
|
||||
return this.note != null && !this.note.isEmpty();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value {@link #note} (The coded value or textual component of the alert to display to the user.)
|
||||
*/
|
||||
public Alert setNote(CodeableConcept value) {
|
||||
this.note = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
protected void listChildren(List<Property> childrenList) {
|
||||
super.listChildren(childrenList);
|
||||
childrenList.add(new Property("identifier", "Identifier", "Identifier assigned to the alert for external use (outside the FHIR environment).", 0, java.lang.Integer.MAX_VALUE, identifier));
|
||||
childrenList.add(new Property("category", "CodeableConcept", "Allows an alert to be divided into different categories like clinical, administrative etc.", 0, java.lang.Integer.MAX_VALUE, category));
|
||||
childrenList.add(new Property("status", "code", "Supports basic workflow.", 0, java.lang.Integer.MAX_VALUE, status));
|
||||
childrenList.add(new Property("subject", "Reference(Patient)", "The person who this alert concerns.", 0, java.lang.Integer.MAX_VALUE, subject));
|
||||
childrenList.add(new Property("author", "Reference(Practitioner|Patient|Device)", "The person or device that created the alert.", 0, java.lang.Integer.MAX_VALUE, author));
|
||||
childrenList.add(new Property("note", "CodeableConcept", "The coded value or textual component of the alert to display to the user.", 0, java.lang.Integer.MAX_VALUE, note));
|
||||
}
|
||||
|
||||
public Alert copy() {
|
||||
Alert dst = new Alert();
|
||||
copyValues(dst);
|
||||
if (identifier != null) {
|
||||
dst.identifier = new ArrayList<Identifier>();
|
||||
for (Identifier i : identifier)
|
||||
dst.identifier.add(i.copy());
|
||||
};
|
||||
dst.category = category == null ? null : category.copy();
|
||||
dst.status = status == null ? null : status.copy();
|
||||
dst.subject = subject == null ? null : subject.copy();
|
||||
dst.author = author == null ? null : author.copy();
|
||||
dst.note = note == null ? null : note.copy();
|
||||
return dst;
|
||||
}
|
||||
|
||||
protected Alert typedCopy() {
|
||||
return copy();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equalsDeep(Base other) {
|
||||
if (!super.equalsDeep(other))
|
||||
return false;
|
||||
if (!(other instanceof Alert))
|
||||
return false;
|
||||
Alert o = (Alert) other;
|
||||
return compareDeep(identifier, o.identifier, true) && compareDeep(category, o.category, true) && compareDeep(status, o.status, true)
|
||||
&& compareDeep(subject, o.subject, true) && compareDeep(author, o.author, true) && compareDeep(note, o.note, true)
|
||||
;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equalsShallow(Base other) {
|
||||
if (!super.equalsShallow(other))
|
||||
return false;
|
||||
if (!(other instanceof Alert))
|
||||
return false;
|
||||
Alert o = (Alert) other;
|
||||
return compareValues(status, o.status, true);
|
||||
}
|
||||
|
||||
public boolean isEmpty() {
|
||||
return super.isEmpty() && (identifier == null || identifier.isEmpty()) && (category == null || category.isEmpty())
|
||||
&& (status == null || status.isEmpty()) && (subject == null || subject.isEmpty()) && (author == null || author.isEmpty())
|
||||
&& (note == null || note.isEmpty());
|
||||
}
|
||||
|
||||
@Override
|
||||
public ResourceType getResourceType() {
|
||||
return ResourceType.Alert;
|
||||
}
|
||||
|
||||
@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")
|
||||
public static final String SP_PATIENT = "patient";
|
||||
|
||||
}
|
||||
|
@ -1,884 +0,0 @@
|
||||
package org.hl7.fhir.instance.model;
|
||||
|
||||
/*
|
||||
Copyright (c) 2011+, HL7, Inc.
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification,
|
||||
are permitted provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this
|
||||
list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimer in the documentation
|
||||
and/or other materials provided with the distribution.
|
||||
* Neither the name of HL7 nor the names of its contributors may be used to
|
||||
endorse or promote products derived from this software without specific
|
||||
prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
||||
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
||||
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
||||
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
||||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
*/
|
||||
|
||||
// Generated on Wed, Feb 18, 2015 12:09-0500 for FHIR v0.4.0
|
||||
|
||||
import java.util.*;
|
||||
|
||||
import org.hl7.fhir.utilities.Utilities;
|
||||
import org.hl7.fhir.instance.model.annotations.ResourceDef;
|
||||
import org.hl7.fhir.instance.model.annotations.SearchParamDefinition;
|
||||
import org.hl7.fhir.instance.model.annotations.Block;
|
||||
import org.hl7.fhir.instance.model.annotations.Child;
|
||||
import org.hl7.fhir.instance.model.annotations.Description;
|
||||
/**
|
||||
* Describes the intention of how one or more practitioners intend to deliver care for a particular patient for a period of time, possibly limited to care for a specific condition or set of conditions.
|
||||
*/
|
||||
@ResourceDef(name="CarePlan2", profile="http://hl7.org/fhir/Profile/CarePlan2")
|
||||
public class CarePlan2 extends DomainResource {
|
||||
|
||||
public enum CarePlan2Status {
|
||||
/**
|
||||
* The plan is in development or awaiting use but is not yet intended to be acted upon.
|
||||
*/
|
||||
PLANNED,
|
||||
/**
|
||||
* The plan is intended to be followed and used as part of patient care.
|
||||
*/
|
||||
ACTIVE,
|
||||
/**
|
||||
* The plan is no longer in use and is not expected to be followed or used in patient care.
|
||||
*/
|
||||
COMPLETED,
|
||||
/**
|
||||
* added to help the parsers
|
||||
*/
|
||||
NULL;
|
||||
public static CarePlan2Status fromCode(String codeString) throws Exception {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("planned".equals(codeString))
|
||||
return PLANNED;
|
||||
if ("active".equals(codeString))
|
||||
return ACTIVE;
|
||||
if ("completed".equals(codeString))
|
||||
return COMPLETED;
|
||||
throw new Exception("Unknown CarePlan2Status code '"+codeString+"'");
|
||||
}
|
||||
public String toCode() {
|
||||
switch (this) {
|
||||
case PLANNED: return "planned";
|
||||
case ACTIVE: return "active";
|
||||
case COMPLETED: return "completed";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
public String getSystem() {
|
||||
switch (this) {
|
||||
case PLANNED: return "";
|
||||
case ACTIVE: return "";
|
||||
case COMPLETED: return "";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
public String getDefinition() {
|
||||
switch (this) {
|
||||
case PLANNED: return "The plan is in development or awaiting use but is not yet intended to be acted upon.";
|
||||
case ACTIVE: return "The plan is intended to be followed and used as part of patient care.";
|
||||
case COMPLETED: return "The plan is no longer in use and is not expected to be followed or used in patient care.";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
public String getDisplay() {
|
||||
switch (this) {
|
||||
case PLANNED: return "planned";
|
||||
case ACTIVE: return "active";
|
||||
case COMPLETED: return "completed";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public static class CarePlan2StatusEnumFactory implements EnumFactory<CarePlan2Status> {
|
||||
public CarePlan2Status fromCode(String codeString) throws IllegalArgumentException {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("planned".equals(codeString))
|
||||
return CarePlan2Status.PLANNED;
|
||||
if ("active".equals(codeString))
|
||||
return CarePlan2Status.ACTIVE;
|
||||
if ("completed".equals(codeString))
|
||||
return CarePlan2Status.COMPLETED;
|
||||
throw new IllegalArgumentException("Unknown CarePlan2Status code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(CarePlan2Status code) {
|
||||
if (code == CarePlan2Status.PLANNED)
|
||||
return "planned";
|
||||
if (code == CarePlan2Status.ACTIVE)
|
||||
return "active";
|
||||
if (code == CarePlan2Status.COMPLETED)
|
||||
return "completed";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
|
||||
@Block()
|
||||
public static class CarePlan2ParticipantComponent extends BackboneElement {
|
||||
/**
|
||||
* Indicates specific responsibility of an individual within the care plan. E.g. "Primary physician", "Team coordinator", "Caregiver", etc.
|
||||
*/
|
||||
@Child(name="role", type={CodeableConcept.class}, order=1, min=0, max=1)
|
||||
@Description(shortDefinition="Type of involvement", formalDefinition="Indicates specific responsibility of an individual within the care plan. E.g. 'Primary physician', 'Team coordinator', 'Caregiver', etc." )
|
||||
protected CodeableConcept role;
|
||||
|
||||
/**
|
||||
* The specific person or organization who is participating/expected to participate in the care plan.
|
||||
*/
|
||||
@Child(name="member", type={Practitioner.class, RelatedPerson.class, Patient.class, Organization.class}, order=2, min=1, max=1)
|
||||
@Description(shortDefinition="Who is involved", formalDefinition="The specific person or organization who is participating/expected to participate in the care plan." )
|
||||
protected Reference member;
|
||||
|
||||
/**
|
||||
* The actual object that is the target of the reference (The specific person or organization who is participating/expected to participate in the care plan.)
|
||||
*/
|
||||
protected Resource memberTarget;
|
||||
|
||||
private static final long serialVersionUID = -466811117L;
|
||||
|
||||
public CarePlan2ParticipantComponent() {
|
||||
super();
|
||||
}
|
||||
|
||||
public CarePlan2ParticipantComponent(Reference member) {
|
||||
super();
|
||||
this.member = member;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {@link #role} (Indicates specific responsibility of an individual within the care plan. E.g. "Primary physician", "Team coordinator", "Caregiver", etc.)
|
||||
*/
|
||||
public CodeableConcept getRole() {
|
||||
if (this.role == null)
|
||||
if (Configuration.errorOnAutoCreate())
|
||||
throw new Error("Attempt to auto-create CarePlan2ParticipantComponent.role");
|
||||
else if (Configuration.doAutoCreate())
|
||||
this.role = new CodeableConcept(); // cc
|
||||
return this.role;
|
||||
}
|
||||
|
||||
public boolean hasRole() {
|
||||
return this.role != null && !this.role.isEmpty();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value {@link #role} (Indicates specific responsibility of an individual within the care plan. E.g. "Primary physician", "Team coordinator", "Caregiver", etc.)
|
||||
*/
|
||||
public CarePlan2ParticipantComponent setRole(CodeableConcept value) {
|
||||
this.role = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {@link #member} (The specific person or organization who is participating/expected to participate in the care plan.)
|
||||
*/
|
||||
public Reference getMember() {
|
||||
if (this.member == null)
|
||||
if (Configuration.errorOnAutoCreate())
|
||||
throw new Error("Attempt to auto-create CarePlan2ParticipantComponent.member");
|
||||
else if (Configuration.doAutoCreate())
|
||||
this.member = new Reference(); // cc
|
||||
return this.member;
|
||||
}
|
||||
|
||||
public boolean hasMember() {
|
||||
return this.member != null && !this.member.isEmpty();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value {@link #member} (The specific person or organization who is participating/expected to participate in the care plan.)
|
||||
*/
|
||||
public CarePlan2ParticipantComponent setMember(Reference value) {
|
||||
this.member = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {@link #member} 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 specific person or organization who is participating/expected to participate in the care plan.)
|
||||
*/
|
||||
public Resource getMemberTarget() {
|
||||
return this.memberTarget;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value {@link #member} 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 specific person or organization who is participating/expected to participate in the care plan.)
|
||||
*/
|
||||
public CarePlan2ParticipantComponent setMemberTarget(Resource value) {
|
||||
this.memberTarget = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
protected void listChildren(List<Property> childrenList) {
|
||||
super.listChildren(childrenList);
|
||||
childrenList.add(new Property("role", "CodeableConcept", "Indicates specific responsibility of an individual within the care plan. E.g. 'Primary physician', 'Team coordinator', 'Caregiver', etc.", 0, java.lang.Integer.MAX_VALUE, role));
|
||||
childrenList.add(new Property("member", "Reference(Practitioner|RelatedPerson|Patient|Organization)", "The specific person or organization who is participating/expected to participate in the care plan.", 0, java.lang.Integer.MAX_VALUE, member));
|
||||
}
|
||||
|
||||
public CarePlan2ParticipantComponent copy() {
|
||||
CarePlan2ParticipantComponent dst = new CarePlan2ParticipantComponent();
|
||||
copyValues(dst);
|
||||
dst.role = role == null ? null : role.copy();
|
||||
dst.member = member == null ? null : member.copy();
|
||||
return dst;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equalsDeep(Base other) {
|
||||
if (!super.equalsDeep(other))
|
||||
return false;
|
||||
if (!(other instanceof CarePlan2ParticipantComponent))
|
||||
return false;
|
||||
CarePlan2ParticipantComponent o = (CarePlan2ParticipantComponent) other;
|
||||
return compareDeep(role, o.role, true) && compareDeep(member, o.member, true);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equalsShallow(Base other) {
|
||||
if (!super.equalsShallow(other))
|
||||
return false;
|
||||
if (!(other instanceof CarePlan2ParticipantComponent))
|
||||
return false;
|
||||
CarePlan2ParticipantComponent o = (CarePlan2ParticipantComponent) other;
|
||||
return true;
|
||||
}
|
||||
|
||||
public boolean isEmpty() {
|
||||
return super.isEmpty() && (role == null || role.isEmpty()) && (member == null || member.isEmpty())
|
||||
;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* 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)
|
||||
@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> 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)
|
||||
@Description(shortDefinition="Who care plan is for", formalDefinition="Identifies the patient/subject whose intended care is described by the plan." )
|
||||
protected Reference patient;
|
||||
|
||||
/**
|
||||
* The actual object that is the target of the reference (Identifies the patient/subject whose intended care is described by the plan.)
|
||||
*/
|
||||
protected Patient patientTarget;
|
||||
|
||||
/**
|
||||
* 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)
|
||||
@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<CarePlan2Status> 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)
|
||||
@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)
|
||||
@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)
|
||||
@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<Reference> concern;
|
||||
/**
|
||||
* The actual objects that are the target of the reference (Identifies the conditions/problems/concerns/diagnoses/etc. whose management and/or mitigation are handled by this plan.)
|
||||
*/
|
||||
protected List<Condition> concernTarget;
|
||||
|
||||
|
||||
/**
|
||||
* 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)
|
||||
@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<CarePlan2ParticipantComponent> participant;
|
||||
|
||||
/**
|
||||
* General notes about the care plan not covered elsewhere.
|
||||
*/
|
||||
@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)
|
||||
@Description(shortDefinition="CarePlan Goal", formalDefinition="Describes the intended objective(s) of carrying out the Care Plan." )
|
||||
protected List<Reference> goal;
|
||||
/**
|
||||
* The actual objects that are the target of the reference (Describes the intended objective(s) of carrying out the Care Plan.)
|
||||
*/
|
||||
protected List<Goal> goalTarget;
|
||||
|
||||
|
||||
/**
|
||||
* 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)
|
||||
@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<Reference> activity;
|
||||
/**
|
||||
* The actual objects that are the target of the reference (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<Resource> activityTarget;
|
||||
|
||||
|
||||
private static final long serialVersionUID = 2070266071L;
|
||||
|
||||
public CarePlan2() {
|
||||
super();
|
||||
}
|
||||
|
||||
public CarePlan2(Enumeration<CarePlan2Status> status) {
|
||||
super();
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {@link #identifier} (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).)
|
||||
*/
|
||||
public List<Identifier> getIdentifier() {
|
||||
if (this.identifier == null)
|
||||
this.identifier = new ArrayList<Identifier>();
|
||||
return this.identifier;
|
||||
}
|
||||
|
||||
public boolean hasIdentifier() {
|
||||
if (this.identifier == null)
|
||||
return false;
|
||||
for (Identifier item : this.identifier)
|
||||
if (!item.isEmpty())
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {@link #identifier} (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).)
|
||||
*/
|
||||
// syntactic sugar
|
||||
public Identifier addIdentifier() { //3
|
||||
Identifier t = new Identifier();
|
||||
if (this.identifier == null)
|
||||
this.identifier = new ArrayList<Identifier>();
|
||||
this.identifier.add(t);
|
||||
return t;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {@link #patient} (Identifies the patient/subject whose intended care is described by the plan.)
|
||||
*/
|
||||
public Reference getPatient() {
|
||||
if (this.patient == null)
|
||||
if (Configuration.errorOnAutoCreate())
|
||||
throw new Error("Attempt to auto-create CarePlan2.patient");
|
||||
else if (Configuration.doAutoCreate())
|
||||
this.patient = new Reference(); // cc
|
||||
return this.patient;
|
||||
}
|
||||
|
||||
public boolean hasPatient() {
|
||||
return this.patient != null && !this.patient.isEmpty();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value {@link #patient} (Identifies the patient/subject whose intended care is described by the plan.)
|
||||
*/
|
||||
public CarePlan2 setPatient(Reference value) {
|
||||
this.patient = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {@link #patient} The actual object that is the target of the reference. The reference library doesn't populate this, but you can use it to hold the resource if you resolve it. (Identifies the patient/subject whose intended care is described by the plan.)
|
||||
*/
|
||||
public Patient getPatientTarget() {
|
||||
if (this.patientTarget == null)
|
||||
if (Configuration.errorOnAutoCreate())
|
||||
throw new Error("Attempt to auto-create CarePlan2.patient");
|
||||
else if (Configuration.doAutoCreate())
|
||||
this.patientTarget = new Patient(); // aa
|
||||
return this.patientTarget;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value {@link #patient} The actual object that is the target of the reference. The reference library doesn't use these, but you can use it to hold the resource if you resolve it. (Identifies the patient/subject whose intended care is described by the plan.)
|
||||
*/
|
||||
public CarePlan2 setPatientTarget(Patient value) {
|
||||
this.patientTarget = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {@link #status} (Indicates whether the plan is currently being acted upon, represents future intentions or is now just historical record.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value
|
||||
*/
|
||||
public Enumeration<CarePlan2Status> getStatusElement() {
|
||||
if (this.status == null)
|
||||
if (Configuration.errorOnAutoCreate())
|
||||
throw new Error("Attempt to auto-create CarePlan2.status");
|
||||
else if (Configuration.doAutoCreate())
|
||||
this.status = new Enumeration<CarePlan2Status>(new CarePlan2StatusEnumFactory()); // bb
|
||||
return this.status;
|
||||
}
|
||||
|
||||
public boolean hasStatusElement() {
|
||||
return this.status != null && !this.status.isEmpty();
|
||||
}
|
||||
|
||||
public boolean hasStatus() {
|
||||
return this.status != null && !this.status.isEmpty();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value {@link #status} (Indicates whether the plan is currently being acted upon, represents future intentions or is now just historical record.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value
|
||||
*/
|
||||
public CarePlan2 setStatusElement(Enumeration<CarePlan2Status> value) {
|
||||
this.status = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Indicates whether the plan is currently being acted upon, represents future intentions or is now just historical record.
|
||||
*/
|
||||
public CarePlan2Status getStatus() {
|
||||
return this.status == null ? null : this.status.getValue();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value Indicates whether the plan is currently being acted upon, represents future intentions or is now just historical record.
|
||||
*/
|
||||
public CarePlan2 setStatus(CarePlan2Status value) {
|
||||
if (this.status == null)
|
||||
this.status = new Enumeration<CarePlan2Status>(new CarePlan2StatusEnumFactory());
|
||||
this.status.setValue(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {@link #period} (Indicates when the plan did (or is intended to) come into effect and end.)
|
||||
*/
|
||||
public Period getPeriod() {
|
||||
if (this.period == null)
|
||||
if (Configuration.errorOnAutoCreate())
|
||||
throw new Error("Attempt to auto-create CarePlan2.period");
|
||||
else if (Configuration.doAutoCreate())
|
||||
this.period = new Period(); // cc
|
||||
return this.period;
|
||||
}
|
||||
|
||||
public boolean hasPeriod() {
|
||||
return this.period != null && !this.period.isEmpty();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value {@link #period} (Indicates when the plan did (or is intended to) come into effect and end.)
|
||||
*/
|
||||
public CarePlan2 setPeriod(Period value) {
|
||||
this.period = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {@link #modified} (Identifies the most recent date on which the plan has been revised.). This is the underlying object with id, value and extensions. The accessor "getModified" gives direct access to the value
|
||||
*/
|
||||
public DateTimeType getModifiedElement() {
|
||||
if (this.modified == null)
|
||||
if (Configuration.errorOnAutoCreate())
|
||||
throw new Error("Attempt to auto-create CarePlan2.modified");
|
||||
else if (Configuration.doAutoCreate())
|
||||
this.modified = new DateTimeType(); // bb
|
||||
return this.modified;
|
||||
}
|
||||
|
||||
public boolean hasModifiedElement() {
|
||||
return this.modified != null && !this.modified.isEmpty();
|
||||
}
|
||||
|
||||
public boolean hasModified() {
|
||||
return this.modified != null && !this.modified.isEmpty();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value {@link #modified} (Identifies the most recent date on which the plan has been revised.). This is the underlying object with id, value and extensions. The accessor "getModified" gives direct access to the value
|
||||
*/
|
||||
public CarePlan2 setModifiedElement(DateTimeType value) {
|
||||
this.modified = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Identifies the most recent date on which the plan has been revised.
|
||||
*/
|
||||
public Date getModified() {
|
||||
return this.modified == null ? null : this.modified.getValue();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value Identifies the most recent date on which the plan has been revised.
|
||||
*/
|
||||
public CarePlan2 setModified(Date value) {
|
||||
if (value == null)
|
||||
this.modified = null;
|
||||
else {
|
||||
if (this.modified == null)
|
||||
this.modified = new DateTimeType();
|
||||
this.modified.setValue(value);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {@link #concern} (Identifies the conditions/problems/concerns/diagnoses/etc. whose management and/or mitigation are handled by this plan.)
|
||||
*/
|
||||
public List<Reference> getConcern() {
|
||||
if (this.concern == null)
|
||||
this.concern = new ArrayList<Reference>();
|
||||
return this.concern;
|
||||
}
|
||||
|
||||
public boolean hasConcern() {
|
||||
if (this.concern == null)
|
||||
return false;
|
||||
for (Reference item : this.concern)
|
||||
if (!item.isEmpty())
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {@link #concern} (Identifies the conditions/problems/concerns/diagnoses/etc. whose management and/or mitigation are handled by this plan.)
|
||||
*/
|
||||
// syntactic sugar
|
||||
public Reference addConcern() { //3
|
||||
Reference t = new Reference();
|
||||
if (this.concern == null)
|
||||
this.concern = new ArrayList<Reference>();
|
||||
this.concern.add(t);
|
||||
return t;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {@link #concern} (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. Identifies the conditions/problems/concerns/diagnoses/etc. whose management and/or mitigation are handled by this plan.)
|
||||
*/
|
||||
public List<Condition> getConcernTarget() {
|
||||
if (this.concernTarget == null)
|
||||
this.concernTarget = new ArrayList<Condition>();
|
||||
return this.concernTarget;
|
||||
}
|
||||
|
||||
// syntactic sugar
|
||||
/**
|
||||
* @return {@link #concern} (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. Identifies the conditions/problems/concerns/diagnoses/etc. whose management and/or mitigation are handled by this plan.)
|
||||
*/
|
||||
public Condition addConcernTarget() {
|
||||
Condition r = new Condition();
|
||||
if (this.concernTarget == null)
|
||||
this.concernTarget = new ArrayList<Condition>();
|
||||
this.concernTarget.add(r);
|
||||
return r;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {@link #participant} (Identifies all people and organizations who are expected to be involved in the care envisioned by this plan.)
|
||||
*/
|
||||
public List<CarePlan2ParticipantComponent> getParticipant() {
|
||||
if (this.participant == null)
|
||||
this.participant = new ArrayList<CarePlan2ParticipantComponent>();
|
||||
return this.participant;
|
||||
}
|
||||
|
||||
public boolean hasParticipant() {
|
||||
if (this.participant == null)
|
||||
return false;
|
||||
for (CarePlan2ParticipantComponent item : this.participant)
|
||||
if (!item.isEmpty())
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {@link #participant} (Identifies all people and organizations who are expected to be involved in the care envisioned by this plan.)
|
||||
*/
|
||||
// syntactic sugar
|
||||
public CarePlan2ParticipantComponent addParticipant() { //3
|
||||
CarePlan2ParticipantComponent t = new CarePlan2ParticipantComponent();
|
||||
if (this.participant == null)
|
||||
this.participant = new ArrayList<CarePlan2ParticipantComponent>();
|
||||
this.participant.add(t);
|
||||
return t;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {@link #notes} (General notes about the care plan not covered elsewhere.). This is the underlying object with id, value and extensions. The accessor "getNotes" gives direct access to the value
|
||||
*/
|
||||
public StringType getNotesElement() {
|
||||
if (this.notes == null)
|
||||
if (Configuration.errorOnAutoCreate())
|
||||
throw new Error("Attempt to auto-create CarePlan2.notes");
|
||||
else if (Configuration.doAutoCreate())
|
||||
this.notes = new StringType(); // bb
|
||||
return this.notes;
|
||||
}
|
||||
|
||||
public boolean hasNotesElement() {
|
||||
return this.notes != null && !this.notes.isEmpty();
|
||||
}
|
||||
|
||||
public boolean hasNotes() {
|
||||
return this.notes != null && !this.notes.isEmpty();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value {@link #notes} (General notes about the care plan not covered elsewhere.). This is the underlying object with id, value and extensions. The accessor "getNotes" gives direct access to the value
|
||||
*/
|
||||
public CarePlan2 setNotesElement(StringType value) {
|
||||
this.notes = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return General notes about the care plan not covered elsewhere.
|
||||
*/
|
||||
public String getNotes() {
|
||||
return this.notes == null ? null : this.notes.getValue();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value General notes about the care plan not covered elsewhere.
|
||||
*/
|
||||
public CarePlan2 setNotes(String value) {
|
||||
if (Utilities.noString(value))
|
||||
this.notes = null;
|
||||
else {
|
||||
if (this.notes == null)
|
||||
this.notes = new StringType();
|
||||
this.notes.setValue(value);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {@link #goal} (Describes the intended objective(s) of carrying out the Care Plan.)
|
||||
*/
|
||||
public List<Reference> getGoal() {
|
||||
if (this.goal == null)
|
||||
this.goal = new ArrayList<Reference>();
|
||||
return this.goal;
|
||||
}
|
||||
|
||||
public boolean hasGoal() {
|
||||
if (this.goal == null)
|
||||
return false;
|
||||
for (Reference item : this.goal)
|
||||
if (!item.isEmpty())
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {@link #goal} (Describes the intended objective(s) of carrying out the Care Plan.)
|
||||
*/
|
||||
// syntactic sugar
|
||||
public Reference addGoal() { //3
|
||||
Reference t = new Reference();
|
||||
if (this.goal == null)
|
||||
this.goal = new ArrayList<Reference>();
|
||||
this.goal.add(t);
|
||||
return t;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {@link #goal} (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. Describes the intended objective(s) of carrying out the Care Plan.)
|
||||
*/
|
||||
public List<Goal> getGoalTarget() {
|
||||
if (this.goalTarget == null)
|
||||
this.goalTarget = new ArrayList<Goal>();
|
||||
return this.goalTarget;
|
||||
}
|
||||
|
||||
// syntactic sugar
|
||||
/**
|
||||
* @return {@link #goal} (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. Describes the intended objective(s) of carrying out the Care Plan.)
|
||||
*/
|
||||
public Goal addGoalTarget() {
|
||||
Goal r = new Goal();
|
||||
if (this.goalTarget == null)
|
||||
this.goalTarget = new ArrayList<Goal>();
|
||||
this.goalTarget.add(r);
|
||||
return r;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {@link #activity} (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.)
|
||||
*/
|
||||
public List<Reference> getActivity() {
|
||||
if (this.activity == null)
|
||||
this.activity = new ArrayList<Reference>();
|
||||
return this.activity;
|
||||
}
|
||||
|
||||
public boolean hasActivity() {
|
||||
if (this.activity == null)
|
||||
return false;
|
||||
for (Reference item : this.activity)
|
||||
if (!item.isEmpty())
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {@link #activity} (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.)
|
||||
*/
|
||||
// syntactic sugar
|
||||
public Reference addActivity() { //3
|
||||
Reference t = new Reference();
|
||||
if (this.activity == null)
|
||||
this.activity = new ArrayList<Reference>();
|
||||
this.activity.add(t);
|
||||
return t;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {@link #activity} (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. 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.)
|
||||
*/
|
||||
public List<Resource> getActivityTarget() {
|
||||
if (this.activityTarget == null)
|
||||
this.activityTarget = new ArrayList<Resource>();
|
||||
return this.activityTarget;
|
||||
}
|
||||
|
||||
protected void listChildren(List<Property> childrenList) {
|
||||
super.listChildren(childrenList);
|
||||
childrenList.add(new Property("identifier", "Identifier", "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).", 0, java.lang.Integer.MAX_VALUE, identifier));
|
||||
childrenList.add(new Property("patient", "Reference(Patient)", "Identifies the patient/subject whose intended care is described by the plan.", 0, java.lang.Integer.MAX_VALUE, patient));
|
||||
childrenList.add(new Property("status", "code", "Indicates whether the plan is currently being acted upon, represents future intentions or is now just historical record.", 0, java.lang.Integer.MAX_VALUE, status));
|
||||
childrenList.add(new Property("period", "Period", "Indicates when the plan did (or is intended to) come into effect and end.", 0, java.lang.Integer.MAX_VALUE, period));
|
||||
childrenList.add(new Property("modified", "dateTime", "Identifies the most recent date on which the plan has been revised.", 0, java.lang.Integer.MAX_VALUE, modified));
|
||||
childrenList.add(new Property("concern", "Reference(Condition)", "Identifies the conditions/problems/concerns/diagnoses/etc. whose management and/or mitigation are handled by this plan.", 0, java.lang.Integer.MAX_VALUE, concern));
|
||||
childrenList.add(new Property("participant", "", "Identifies all people and organizations who are expected to be involved in the care envisioned by this plan.", 0, java.lang.Integer.MAX_VALUE, participant));
|
||||
childrenList.add(new Property("notes", "string", "General notes about the care plan not covered elsewhere.", 0, java.lang.Integer.MAX_VALUE, notes));
|
||||
childrenList.add(new Property("goal", "Reference(Goal)", "Describes the intended objective(s) of carrying out the Care Plan.", 0, java.lang.Integer.MAX_VALUE, goal));
|
||||
childrenList.add(new Property("activity", "Reference(ProcedureRequest|MedicationPrescription|DiagnosticOrder|ReferralRequest|CommunicationRequest|NutritionOrder)", "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.", 0, java.lang.Integer.MAX_VALUE, activity));
|
||||
}
|
||||
|
||||
public CarePlan2 copy() {
|
||||
CarePlan2 dst = new CarePlan2();
|
||||
copyValues(dst);
|
||||
if (identifier != null) {
|
||||
dst.identifier = new ArrayList<Identifier>();
|
||||
for (Identifier i : identifier)
|
||||
dst.identifier.add(i.copy());
|
||||
};
|
||||
dst.patient = patient == null ? null : patient.copy();
|
||||
dst.status = status == null ? null : status.copy();
|
||||
dst.period = period == null ? null : period.copy();
|
||||
dst.modified = modified == null ? null : modified.copy();
|
||||
if (concern != null) {
|
||||
dst.concern = new ArrayList<Reference>();
|
||||
for (Reference i : concern)
|
||||
dst.concern.add(i.copy());
|
||||
};
|
||||
if (participant != null) {
|
||||
dst.participant = new ArrayList<CarePlan2ParticipantComponent>();
|
||||
for (CarePlan2ParticipantComponent i : participant)
|
||||
dst.participant.add(i.copy());
|
||||
};
|
||||
dst.notes = notes == null ? null : notes.copy();
|
||||
if (goal != null) {
|
||||
dst.goal = new ArrayList<Reference>();
|
||||
for (Reference i : goal)
|
||||
dst.goal.add(i.copy());
|
||||
};
|
||||
if (activity != null) {
|
||||
dst.activity = new ArrayList<Reference>();
|
||||
for (Reference i : activity)
|
||||
dst.activity.add(i.copy());
|
||||
};
|
||||
return dst;
|
||||
}
|
||||
|
||||
protected CarePlan2 typedCopy() {
|
||||
return copy();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equalsDeep(Base other) {
|
||||
if (!super.equalsDeep(other))
|
||||
return false;
|
||||
if (!(other instanceof CarePlan2))
|
||||
return false;
|
||||
CarePlan2 o = (CarePlan2) other;
|
||||
return compareDeep(identifier, o.identifier, true) && compareDeep(patient, o.patient, true) && compareDeep(status, o.status, true)
|
||||
&& compareDeep(period, o.period, true) && compareDeep(modified, o.modified, true) && compareDeep(concern, o.concern, true)
|
||||
&& compareDeep(participant, o.participant, true) && compareDeep(notes, o.notes, true) && compareDeep(goal, o.goal, true)
|
||||
&& compareDeep(activity, o.activity, true);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equalsShallow(Base other) {
|
||||
if (!super.equalsShallow(other))
|
||||
return false;
|
||||
if (!(other instanceof CarePlan2))
|
||||
return false;
|
||||
CarePlan2 o = (CarePlan2) other;
|
||||
return compareValues(status, o.status, true) && compareValues(modified, o.modified, true) && compareValues(notes, o.notes, true)
|
||||
;
|
||||
}
|
||||
|
||||
public boolean isEmpty() {
|
||||
return super.isEmpty() && (identifier == null || identifier.isEmpty()) && (patient == null || patient.isEmpty())
|
||||
&& (status == null || status.isEmpty()) && (period == null || period.isEmpty()) && (modified == null || modified.isEmpty())
|
||||
&& (concern == null || concern.isEmpty()) && (participant == null || participant.isEmpty())
|
||||
&& (notes == null || notes.isEmpty()) && (goal == null || goal.isEmpty()) && (activity == null || activity.isEmpty())
|
||||
;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ResourceType getResourceType() {
|
||||
return ResourceType.CarePlan2;
|
||||
}
|
||||
|
||||
@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")
|
||||
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";
|
||||
|
||||
}
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -2543,7 +2543,7 @@ public class ClaimResponse extends DomainResource {
|
||||
/**
|
||||
* 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 = {}, order = 1, min = 0, max = 1)
|
||||
@Description(shortDefinition="Id of resource triggering adjudication", formalDefinition="Original request resource referrence." )
|
||||
protected Reference request;
|
||||
|
||||
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -1,611 +0,0 @@
|
||||
package org.hl7.fhir.instance.model;
|
||||
|
||||
/*
|
||||
* #%L
|
||||
* HAPI FHIR - Core Library
|
||||
* %%
|
||||
* Copyright (C) 2014 - 2015 University Health Network
|
||||
* %%
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
* #L%
|
||||
*/
|
||||
|
||||
|
||||
import java.text.ParseException;
|
||||
import java.util.Calendar;
|
||||
import java.util.GregorianCalendar;
|
||||
import java.util.TimeZone;
|
||||
|
||||
import org.hl7.fhir.utilities.Utilities;
|
||||
|
||||
// java 1.7 can parse xml date/times, but going java 1.7 is too hard for implementers
|
||||
// javax.xml.bind.DatatypeConverter can parse xml date/times, but is not available on android. (and it's error message sucks)
|
||||
// anyway, the underlying date/time concept has variable precision, and timezone, and neither Date nor Calendar real with
|
||||
// that nicely. So we parse the date directly
|
||||
|
||||
public class DateAndTime {
|
||||
|
||||
private int year;
|
||||
private int month;
|
||||
private int day;
|
||||
private boolean time;
|
||||
private int hour;
|
||||
private int minute;
|
||||
private boolean seconds;
|
||||
private int second;
|
||||
private int fractions;
|
||||
private int fraction;
|
||||
private java.lang.Boolean timezone;
|
||||
private boolean positiveOffset; //needed to represent negative offset of less than an hour (for example -00:00 or -00:30)
|
||||
private int tzHour;
|
||||
private int tzMin;
|
||||
|
||||
public DateAndTime(String xDate) throws ParseException {
|
||||
|
||||
String s;
|
||||
String t = null;
|
||||
if (xDate.endsWith("Z")) {
|
||||
s = xDate.substring(0, xDate.length()-1);
|
||||
timezone = false;
|
||||
} else if (xDate.lastIndexOf("-") > 8) {
|
||||
s = xDate.substring(0, xDate.lastIndexOf("-"));
|
||||
t = xDate.substring(xDate.lastIndexOf("-"));
|
||||
setTzSign(false);
|
||||
} else if (xDate.lastIndexOf("+") > 8) {
|
||||
s = xDate.substring(0, xDate.lastIndexOf("+"));
|
||||
t = xDate.substring(xDate.lastIndexOf("+"));
|
||||
setTzSign(true);
|
||||
} else { // no timezone
|
||||
s = xDate;
|
||||
t = null;
|
||||
timezone = null;
|
||||
}
|
||||
|
||||
int offset = 0;
|
||||
try {
|
||||
int yearlength = s.startsWith("-") ? s.substring(1).indexOf("-") + 1 : s.indexOf("-");
|
||||
if (yearlength == -1) {
|
||||
yearlength = 4;
|
||||
}
|
||||
setYear(readField(s, 0, yearlength));
|
||||
offset = yearlength;
|
||||
if (s.length() >= yearlength + 3)
|
||||
setMonth(readField(s, yearlength + 1, 2));
|
||||
offset = yearlength + 4;
|
||||
if (s.length() >= yearlength + 6)
|
||||
setDay(readField(s, yearlength + 4, 2));
|
||||
offset = yearlength + 7;
|
||||
if (s.length() >= yearlength + 9)
|
||||
setHour(readField(s, yearlength + 7, 2));
|
||||
offset = yearlength + 10;
|
||||
if (s.length() >= yearlength + 12)
|
||||
setMinute(readField(s, yearlength + 10, 2));
|
||||
offset = yearlength + 13;
|
||||
if (s.length() >= yearlength + 15)
|
||||
setSecond(readField(s, yearlength + 13, 2));
|
||||
offset = yearlength + 16;
|
||||
if (s.length() >= yearlength + 17) {
|
||||
setFractions(s.length() - (yearlength + 16));
|
||||
setFraction(readField(s, yearlength + 16, fractions));
|
||||
}
|
||||
if (t != null) {
|
||||
setTzHour(readField(t, 1, 2));
|
||||
setTzMin(readField(t, 4, 2));
|
||||
}
|
||||
} catch (Exception e) {
|
||||
throw new ParseException("The date '"+xDate+"' is not a valid Date Time Format at character "+java.lang.Integer.toString(offset), offset);
|
||||
}
|
||||
}
|
||||
|
||||
private static int readField(String date, int i, int j) {
|
||||
String s = date.substring(i, i+j);
|
||||
if (s.startsWith("+"))
|
||||
s = s.substring(1);
|
||||
return java.lang.Integer.parseInt(s);
|
||||
}
|
||||
|
||||
|
||||
public DateAndTime(Calendar date) {
|
||||
setCalendar(date);
|
||||
}
|
||||
|
||||
private void setCalendar(Calendar date) {
|
||||
setYear(date.get(Calendar.YEAR));
|
||||
setMonth(date.get(Calendar.MONTH)+1);
|
||||
setDay(date.get(Calendar.DAY_OF_MONTH));
|
||||
setHour(date.get(Calendar.HOUR_OF_DAY));
|
||||
setMinute(date.get(Calendar.MINUTE));
|
||||
setSecond(date.get(Calendar.SECOND));
|
||||
if (date.get(Calendar.MILLISECOND) > 0) {
|
||||
setFractions(3);
|
||||
try {
|
||||
setFraction(date.get(Calendar.MILLISECOND));
|
||||
} catch (Exception e) {
|
||||
// can't happen
|
||||
}
|
||||
}
|
||||
if (date.getTimeZone() != null) {
|
||||
int offset = date.getTimeZone().getOffset(date.getTime().getTime());
|
||||
setOffsetMinutes(offset / 1000 / 60);
|
||||
}
|
||||
}
|
||||
|
||||
public DateAndTime(java.util.Date date) {
|
||||
Calendar cal = new GregorianCalendar();
|
||||
cal.setTime(date);
|
||||
setCalendar(cal);
|
||||
}
|
||||
|
||||
private DateAndTime() {
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder b = new StringBuilder();
|
||||
b.append(Utilities.padLeft(java.lang.Integer.toString(year), '0', 4));
|
||||
if (month != 0) {
|
||||
b.append("-");
|
||||
b.append(Utilities.padLeft(java.lang.Integer.toString(month), '0', 2));
|
||||
if (day != 0) {
|
||||
b.append("-");
|
||||
b.append(Utilities.padLeft(java.lang.Integer.toString(day), '0', 2));
|
||||
if (time) {
|
||||
b.append("T");
|
||||
b.append(Utilities.padLeft(java.lang.Integer.toString(hour), '0', 2));
|
||||
b.append(":");
|
||||
b.append(Utilities.padLeft(java.lang.Integer.toString(minute), '0', 2));
|
||||
if (seconds) {
|
||||
b.append(":");
|
||||
b.append(Utilities.padLeft(java.lang.Integer.toString(second), '0', 2));
|
||||
if (fractions > 0) {
|
||||
b.append(".");
|
||||
b.append(Utilities.padLeft(java.lang.Integer.toString(fraction), '0', fractions));
|
||||
}
|
||||
}
|
||||
}
|
||||
if (timezone != null) {
|
||||
if (!timezone) {
|
||||
b.append("Z");
|
||||
} else {
|
||||
if (positiveOffset) {
|
||||
b.append("+");
|
||||
} else {
|
||||
b.append("-");
|
||||
}
|
||||
b.append(Utilities.padLeft(java.lang.Integer.toString(tzHour), '0', 2));
|
||||
b.append(":");
|
||||
b.append(Utilities.padLeft(java.lang.Integer.toString(tzMin), '0', 2));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return b.toString();
|
||||
}
|
||||
|
||||
public Calendar toCalendar() {
|
||||
Calendar cal = null;
|
||||
if (timezone == null) {
|
||||
cal = Calendar.getInstance();
|
||||
} else {
|
||||
TimeZone tz;
|
||||
if (!timezone) {
|
||||
tz = TimeZone.getTimeZone("GMT+00:00");
|
||||
} else {
|
||||
tz = TimeZone.getTimeZone("GMT"+(positiveOffset ? "+" : "-")+Utilities.padLeft(java.lang.Integer.toString(tzHour), '0', 2)+":"+Utilities.padLeft(java.lang.Integer.toString(tzMin), '0', 2));
|
||||
}
|
||||
cal = Calendar.getInstance(tz);
|
||||
}
|
||||
|
||||
//default to 0 if unset
|
||||
cal.set(Calendar.MONTH, 0);
|
||||
cal.set(Calendar.DAY_OF_MONTH, 1);
|
||||
cal.set(Calendar.HOUR_OF_DAY, 0);
|
||||
cal.set(Calendar.MINUTE, 0);
|
||||
cal.set(Calendar.SECOND, 0);
|
||||
cal.set(Calendar.MILLISECOND, 0);
|
||||
|
||||
cal.set(Calendar.YEAR, year);
|
||||
if (month > 0) {
|
||||
cal.set(Calendar.MONTH, month - 1);
|
||||
if (day > 0) {
|
||||
cal.set(Calendar.DAY_OF_MONTH, day);
|
||||
if (time) {
|
||||
cal.set(Calendar.HOUR_OF_DAY, hour);
|
||||
cal.set(Calendar.MINUTE, minute);
|
||||
if (seconds) {
|
||||
cal.set(Calendar.SECOND, second);
|
||||
if (fractions > 0) {
|
||||
cal.set(Calendar.MILLISECOND, (int)((double) fraction / Math.pow(10, fractions) * 1000.0));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return cal;
|
||||
}
|
||||
|
||||
public DateType toDate() {
|
||||
return null;
|
||||
}
|
||||
|
||||
public int getYear() {
|
||||
return year;
|
||||
}
|
||||
|
||||
public void setYear(int year) {
|
||||
this.year = year;
|
||||
}
|
||||
|
||||
public int getMonth() {
|
||||
return month;
|
||||
}
|
||||
|
||||
public void setMonth(int month) {
|
||||
this.month = month;
|
||||
}
|
||||
|
||||
public int getDay() {
|
||||
return day;
|
||||
}
|
||||
|
||||
public void setDay(int day) {
|
||||
this.day = day;
|
||||
}
|
||||
|
||||
public boolean isTime() {
|
||||
return time;
|
||||
}
|
||||
|
||||
public void setTime(boolean time) {
|
||||
this.time = time;
|
||||
if (!time)
|
||||
setSeconds(false);
|
||||
}
|
||||
|
||||
public int getHour() {
|
||||
return hour;
|
||||
}
|
||||
|
||||
public void setHour(int hour) {
|
||||
this.time = true;
|
||||
this.hour = hour;
|
||||
}
|
||||
|
||||
public int getMinute() {
|
||||
return minute;
|
||||
}
|
||||
|
||||
public void setMinute(int minute) {
|
||||
this.time = true;
|
||||
this.minute = minute;
|
||||
}
|
||||
|
||||
public boolean isSeconds() {
|
||||
return seconds;
|
||||
}
|
||||
|
||||
public void setSeconds(boolean seconds) {
|
||||
this.seconds = seconds;
|
||||
if (!seconds)
|
||||
setFractions(0);
|
||||
}
|
||||
|
||||
public int getSecond() {
|
||||
return second;
|
||||
}
|
||||
|
||||
public void setSecond(int second) {
|
||||
this.time = true;
|
||||
this.seconds = true;
|
||||
this.second = second;
|
||||
}
|
||||
|
||||
public int getFractions() {
|
||||
return fractions;
|
||||
}
|
||||
|
||||
public void setFractions(int fractions) {
|
||||
this.fractions = fractions;
|
||||
}
|
||||
|
||||
public int getFraction() {
|
||||
return fraction;
|
||||
}
|
||||
|
||||
public void setFraction(int fraction) throws Exception {
|
||||
if (this.fractions == 0)
|
||||
throw new Exception("set 'fractions' before setting 'fraction'");
|
||||
|
||||
this.fraction = fraction;
|
||||
}
|
||||
|
||||
public java.lang.Boolean getTimezone() {
|
||||
return timezone;
|
||||
}
|
||||
|
||||
public void setTimezone(java.lang.Boolean timezone) {
|
||||
this.timezone = timezone;
|
||||
}
|
||||
|
||||
public int getTzHour() {
|
||||
return tzHour;
|
||||
}
|
||||
|
||||
public void setTzHour(int tzHour) {
|
||||
this.tzHour = Math.abs(tzHour);
|
||||
this.timezone = true;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param isPositiveOffset - true if the tz offset is positive (i.e. +06:00), false if the tz offset is negative (-06:00)
|
||||
*/
|
||||
public void setTzSign(boolean isPositiveOffset) {
|
||||
positiveOffset = isPositiveOffset;
|
||||
this.timezone = true;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return true if the tz offset is positive (i.e. +06:00), false if the tz offset is negative (-06:00)
|
||||
*/
|
||||
public boolean getTzSign() {
|
||||
return positiveOffset;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param offset in minutes
|
||||
*/
|
||||
public void setOffsetMinutes(int offset) {
|
||||
boolean positive = (offset >= 0);
|
||||
offset = Math.abs(offset);
|
||||
setTzHour(offset / 60);
|
||||
setTzMin(offset % 60);
|
||||
setTzSign(positive);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return offset in minutes
|
||||
*/
|
||||
public int getOffsetMinutes() {
|
||||
if(timezone == null || !timezone) {
|
||||
return 0;
|
||||
} else {
|
||||
return (positiveOffset ? 1 : -1) * (tzHour * 60 + tzMin);
|
||||
}
|
||||
}
|
||||
|
||||
public int getTzMin() {
|
||||
return tzMin;
|
||||
}
|
||||
|
||||
public void setTzMin(int tzMin) {
|
||||
this.tzMin = Math.abs(tzMin);
|
||||
this.timezone = true;
|
||||
}
|
||||
|
||||
public static DateAndTime now() {
|
||||
return new DateAndTime(Calendar.getInstance());
|
||||
}
|
||||
|
||||
public static DateAndTime today() {
|
||||
DateAndTime dt = new DateAndTime(Calendar.getInstance());
|
||||
dt.setTime(false);
|
||||
return dt;
|
||||
}
|
||||
|
||||
public static DateAndTime parseV3(String xDate) throws ParseException {
|
||||
|
||||
DateAndTime res = new DateAndTime();
|
||||
String s;
|
||||
String t = null;
|
||||
if (xDate.endsWith("Z")) {
|
||||
s = xDate.substring(0, xDate.length()-1);
|
||||
res.timezone = false;
|
||||
} else if (xDate.lastIndexOf("-") > 0) {
|
||||
s = xDate.substring(0, xDate.lastIndexOf("-"));
|
||||
t = xDate.substring(xDate.lastIndexOf("-"));
|
||||
res.setTzSign(false);
|
||||
} else if (xDate.lastIndexOf("+") > 0) {
|
||||
s = xDate.substring(0, xDate.lastIndexOf("+"));
|
||||
t = xDate.substring(xDate.lastIndexOf("+"));
|
||||
res.setTzSign(true);
|
||||
} else { // no timezone
|
||||
s = xDate;
|
||||
t = null;
|
||||
res.timezone = null;
|
||||
}
|
||||
|
||||
int offset = 0;
|
||||
try {
|
||||
res.setYear(readField(s, 0, 4));
|
||||
offset = 4;
|
||||
if (s.length() >= 6)
|
||||
res.setMonth(readField(s, 4, 2));
|
||||
offset = 6;
|
||||
if (s.length() >= 8)
|
||||
res.setDay(readField(s, 6, 2));
|
||||
offset = 8;
|
||||
if (s.length() >= 10)
|
||||
res.setHour(readField(s, 8, 2));
|
||||
offset = 10;
|
||||
if (s.length() >= 12)
|
||||
res.setMinute(readField(s, 10, 2));
|
||||
offset = 12;
|
||||
if (s.length() >= 14)
|
||||
res.setSecond(readField(s, 12, 2));
|
||||
offset = 15;
|
||||
if (s.length() >= 16) {
|
||||
res.setFractions(s.length() - (15));
|
||||
res.setFraction(readField(s, 15, res.fractions));
|
||||
}
|
||||
if (t != null) {
|
||||
res.setTzHour(readField(t, 1, 2));
|
||||
res.setTzMin(readField(t, 3, 2));
|
||||
}
|
||||
} catch (Exception e) {
|
||||
throw new ParseException("The date '"+xDate+"' is not a valid Date Time Format at character "+java.lang.Integer.toString(offset), offset);
|
||||
}
|
||||
return res;
|
||||
}
|
||||
|
||||
public DateAndTime expandTime() {
|
||||
time = true;
|
||||
seconds = true;
|
||||
timezone = true;
|
||||
TimeZone tz = TimeZone.getDefault();
|
||||
|
||||
int offset = tz.getOffset(new java.util.Date().getTime());
|
||||
setOffsetMinutes(offset / (60 * 1000));
|
||||
return this;
|
||||
}
|
||||
|
||||
public String toHumanDisplay() {
|
||||
if (isTime())
|
||||
return java.lang.Integer.toString(this.day)+"-"+this.getMonthCode()+" "+java.lang.Integer.toString(this.getYear()) +" "+java.lang.Integer.toString(this.hour)+":"+java.lang.Integer.toString(this.minute);
|
||||
else
|
||||
return java.lang.Integer.toString(this.day)+"-"+this.getMonthCode()+" "+java.lang.Integer.toString(this.getYear());
|
||||
}
|
||||
|
||||
private String getMonthCode() {
|
||||
switch (month) {
|
||||
case 1: return "Jan";
|
||||
case 2: return "Feb";
|
||||
case 3: return "Mar";
|
||||
case 4: return "Apr";
|
||||
case 5: return "May";
|
||||
case 6: return "Jun";
|
||||
case 7: return "Jul";
|
||||
case 8: return "Aug";
|
||||
case 9: return "Sep";
|
||||
case 10: return "Oct";
|
||||
case 11: return "Nov";
|
||||
case 12: return "Dec";
|
||||
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Add a duration to the DateAndTime. See documentation for Calendar.add
|
||||
*
|
||||
* @param field - Calendar constants for field
|
||||
* @param value - value to add - can be positive or negative
|
||||
* @throws Exception
|
||||
*/
|
||||
public void add(int field, int value) throws Exception {
|
||||
switch (field) {
|
||||
case Calendar.YEAR:
|
||||
year = year + value;
|
||||
break;
|
||||
case Calendar.MONTH:
|
||||
month = month + (value == 0 ? 1 : value);
|
||||
while (month <= 0) {
|
||||
add(Calendar.YEAR, -1);
|
||||
month = month + 12;
|
||||
}
|
||||
while (month > 12) {
|
||||
add(Calendar.YEAR, 1);
|
||||
month = month - 12;
|
||||
}
|
||||
break;
|
||||
case Calendar.DAY_OF_YEAR:
|
||||
day = day + (value == 0 ? 1 : value);
|
||||
while (day <= 0) {
|
||||
add(Calendar.MONTH, -1);
|
||||
day = day + daysInMonth(year, month);
|
||||
}
|
||||
int days = daysInMonth(year, month);
|
||||
while (day > days) {
|
||||
add(Calendar.MONTH, 1);
|
||||
day = day - days;
|
||||
days = daysInMonth(year, month);
|
||||
}
|
||||
break;
|
||||
case Calendar.HOUR:
|
||||
hour = hour + value;
|
||||
time = true;
|
||||
while (hour < 0) {
|
||||
add(Calendar.DAY_OF_YEAR, -1);
|
||||
hour = hour + 24;
|
||||
}
|
||||
while (hour >= 24) {
|
||||
add(Calendar.DAY_OF_YEAR, 1);
|
||||
hour = hour - 24;
|
||||
}
|
||||
break;
|
||||
case Calendar.MINUTE:
|
||||
minute = minute + value;
|
||||
time = true;
|
||||
while (minute < 0) {
|
||||
add(Calendar.HOUR, -1);
|
||||
minute = minute + 60;
|
||||
}
|
||||
while (minute >= 60) {
|
||||
add(Calendar.HOUR, 1);
|
||||
minute = minute - 60;
|
||||
}
|
||||
break;
|
||||
case Calendar.SECOND:
|
||||
second = second + value;
|
||||
seconds = true;
|
||||
while (second < 0) {
|
||||
add(Calendar.MINUTE, -1);
|
||||
second = second + 60;
|
||||
}
|
||||
while (second >= 60) {
|
||||
add(Calendar.MINUTE, 1);
|
||||
second = second - 60;
|
||||
}
|
||||
break;
|
||||
default:
|
||||
throw new Exception("Unknown field");
|
||||
}
|
||||
}
|
||||
|
||||
private int daysInMonth(int aYear, int aMonth) {
|
||||
switch (aMonth) {
|
||||
case 1: return 31;
|
||||
case 2: return isleapYear(aYear) ? 29 : 28;
|
||||
case 3: return 31;
|
||||
case 4: return 30;
|
||||
case 5: return 31;
|
||||
case 6: return 30;
|
||||
case 7: return 31;
|
||||
case 8: return 31;
|
||||
case 9: return 30;
|
||||
case 10: return 31;
|
||||
case 11: return 30;
|
||||
case 12: return 31;
|
||||
default:
|
||||
throw new Error("illegal month "+java.lang.Integer.toString(aMonth));
|
||||
}
|
||||
}
|
||||
|
||||
private boolean isleapYear(int aYear) {
|
||||
return (aYear % 4 == 0) && !((aYear % 100 == 0) && (aYear % 400 != 0));
|
||||
}
|
||||
|
||||
public boolean before(DateAndTime other) {
|
||||
|
||||
if(this.time && other.time) {
|
||||
return toCalendar().getTimeInMillis() < other.toCalendar().getTimeInMillis();
|
||||
} else if (this.year != other.year) {
|
||||
return this.year < other.year;
|
||||
} else if (this.month != other.month) {
|
||||
return this.month < other.month;
|
||||
} else if (this.day != other.day) {
|
||||
return this.day < other.day;
|
||||
} else
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,91 @@
|
||||
package org.hl7.fhir.instance.model;
|
||||
|
||||
public class Enumerations {
|
||||
|
||||
public enum ConformanceResourceStatus {
|
||||
/**
|
||||
* This resource is still under development
|
||||
*/
|
||||
DRAFT,
|
||||
/**
|
||||
* This resource is ready for normal use
|
||||
*/
|
||||
ACTIVE,
|
||||
/**
|
||||
* This resource has been withdrawn or superceded and should no longer be used
|
||||
*/
|
||||
RETIRED,
|
||||
/**
|
||||
* added to help the parsers
|
||||
*/
|
||||
NULL;
|
||||
public static ConformanceResourceStatus fromCode(String codeString) throws Exception {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("draft".equals(codeString))
|
||||
return DRAFT;
|
||||
if ("active".equals(codeString))
|
||||
return ACTIVE;
|
||||
if ("retired".equals(codeString))
|
||||
return RETIRED;
|
||||
throw new Exception("Unknown ConformanceResourceStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode() {
|
||||
switch (this) {
|
||||
case DRAFT: return "draft";
|
||||
case ACTIVE: return "active";
|
||||
case RETIRED: return "retired";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
public String getSystem() {
|
||||
switch (this) {
|
||||
case DRAFT: return "";
|
||||
case ACTIVE: return "";
|
||||
case RETIRED: return "";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
public String getDefinition() {
|
||||
switch (this) {
|
||||
case DRAFT: return "This resource is still under development";
|
||||
case ACTIVE: return "This resource is ready for normal use";
|
||||
case RETIRED: return "This resource has been withdrawn or superceded and should no longer be used";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
public String getDisplay() {
|
||||
switch (this) {
|
||||
case DRAFT: return "Draft";
|
||||
case ACTIVE: return "Active";
|
||||
case RETIRED: return "Retired";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public static class ConformanceResourceStatusEnumFactory implements EnumFactory<ConformanceResourceStatus> {
|
||||
public ConformanceResourceStatus fromCode(String codeString) throws IllegalArgumentException {
|
||||
if (codeString == null || "".equals(codeString))
|
||||
if (codeString == null || "".equals(codeString))
|
||||
return null;
|
||||
if ("draft".equals(codeString))
|
||||
return ConformanceResourceStatus.DRAFT;
|
||||
if ("active".equals(codeString))
|
||||
return ConformanceResourceStatus.ACTIVE;
|
||||
if ("retired".equals(codeString))
|
||||
return ConformanceResourceStatus.RETIRED;
|
||||
throw new IllegalArgumentException("Unknown ConformanceResourceStatus code '"+codeString+"'");
|
||||
}
|
||||
public String toCode(ConformanceResourceStatus code) {
|
||||
if (code == ConformanceResourceStatus.DRAFT)
|
||||
return "draft";
|
||||
if (code == ConformanceResourceStatus.ACTIVE)
|
||||
return "active";
|
||||
if (code == ConformanceResourceStatus.RETIRED)
|
||||
return "retired";
|
||||
return "?";
|
||||
}
|
||||
}
|
||||
|
||||
}
|
@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
|
||||
|
||||
*/
|
||||
|
||||
// Generated on Wed, Feb 18, 2015 12:09-0500 for FHIR v0.4.0
|
||||
// Generated on Thu, Apr 2, 2015 10:47-0400 for FHIR v0.5.0
|
||||
|
||||
import java.util.*;
|
||||
|
||||
@ -90,8 +90,8 @@ public class ExplanationOfBenefit extends DomainResource {
|
||||
}
|
||||
public String getDisplay() {
|
||||
switch (this) {
|
||||
case COMPLETE: return "complete";
|
||||
case ERROR: return "error";
|
||||
case COMPLETE: return "Complete";
|
||||
case ERROR: return "Error";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
@ -120,61 +120,61 @@ 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> identifier;
|
||||
|
||||
/**
|
||||
* Original request resource reference.
|
||||
*/
|
||||
@Child(name = "request", type = {OralHealthClaim.class}, order = 1, min = 0, max = 1)
|
||||
@Child(name ="request", type={Claim.class}, order=1, min=0, max=1)
|
||||
@Description(shortDefinition="Claim reference", formalDefinition="Original request resource reference." )
|
||||
protected Reference request;
|
||||
|
||||
/**
|
||||
* The actual object that is the target of the reference (Original request resource reference.)
|
||||
*/
|
||||
protected OralHealthClaim requestTarget;
|
||||
protected Claim requestTarget;
|
||||
|
||||
/**
|
||||
* 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<RSLink> 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;
|
||||
|
||||
@ -207,7 +207,7 @@ public class ExplanationOfBenefit extends DomainResource {
|
||||
*/
|
||||
protected Organization requestOrganizationTarget;
|
||||
|
||||
private static final long serialVersionUID = 1627363360L;
|
||||
private static final long serialVersionUID = 2098041034L;
|
||||
|
||||
public ExplanationOfBenefit() {
|
||||
super();
|
||||
@ -243,6 +243,16 @@ public class ExplanationOfBenefit extends DomainResource {
|
||||
return t;
|
||||
}
|
||||
|
||||
// syntactic sugar
|
||||
public ExplanationOfBenefit addIdentifier(Identifier t) { //3
|
||||
if (t == null)
|
||||
return this;
|
||||
if (this.identifier == null)
|
||||
this.identifier = new ArrayList<Identifier>();
|
||||
this.identifier.add(t);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {@link #request} (Original request resource reference.)
|
||||
*/
|
||||
@ -270,19 +280,19 @@ public class ExplanationOfBenefit extends DomainResource {
|
||||
/**
|
||||
* @return {@link #request} 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. (Original request resource reference.)
|
||||
*/
|
||||
public OralHealthClaim getRequestTarget() {
|
||||
public Claim getRequestTarget() {
|
||||
if (this.requestTarget == null)
|
||||
if (Configuration.errorOnAutoCreate())
|
||||
throw new Error("Attempt to auto-create ExplanationOfBenefit.request");
|
||||
else if (Configuration.doAutoCreate())
|
||||
this.requestTarget = new OralHealthClaim(); // aa
|
||||
this.requestTarget = new Claim(); // aa
|
||||
return this.requestTarget;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value {@link #request} 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. (Original request resource reference.)
|
||||
*/
|
||||
public ExplanationOfBenefit setRequestTarget(OralHealthClaim value) {
|
||||
public ExplanationOfBenefit setRequestTarget(Claim value) {
|
||||
this.requestTarget = value;
|
||||
return this;
|
||||
}
|
||||
@ -617,7 +627,7 @@ public class ExplanationOfBenefit extends DomainResource {
|
||||
protected void listChildren(List<Property> childrenList) {
|
||||
super.listChildren(childrenList);
|
||||
childrenList.add(new Property("identifier", "Identifier", "The Response Business Identifier.", 0, java.lang.Integer.MAX_VALUE, identifier));
|
||||
childrenList.add(new Property("request", "Reference(OralHealthClaim)", "Original request resource reference.", 0, java.lang.Integer.MAX_VALUE, request));
|
||||
childrenList.add(new Property("request", "Reference(Claim)", "Original request resource reference.", 0, java.lang.Integer.MAX_VALUE, request));
|
||||
childrenList.add(new Property("outcome", "code", "Transaction status: error, complete.", 0, java.lang.Integer.MAX_VALUE, outcome));
|
||||
childrenList.add(new Property("disposition", "string", "A description of the status of the adjudication.", 0, java.lang.Integer.MAX_VALUE, disposition));
|
||||
childrenList.add(new Property("ruleset", "Coding", "The version of the style of resource contents. This should be mapped to the allowable profiles for this and supporting resources.", 0, java.lang.Integer.MAX_VALUE, ruleset));
|
||||
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -1,32 +0,0 @@
|
||||
package org.hl7.fhir.instance.model;
|
||||
|
||||
/*
|
||||
* #%L
|
||||
* HAPI FHIR - Core Library
|
||||
* %%
|
||||
* Copyright (C) 2014 - 2015 University Health Network
|
||||
* %%
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
* #L%
|
||||
*/
|
||||
|
||||
/**
|
||||
* This interface is a simple marker for anything which is an HL7
|
||||
* structure of some kind. It is provided mostly to simplify convergence
|
||||
* between the HL7.org structures and the HAPI ones.
|
||||
*/
|
||||
public interface IBase {
|
||||
|
||||
boolean isEmpty();
|
||||
|
||||
}
|
@ -1,25 +0,0 @@
|
||||
package org.hl7.fhir.instance.model;
|
||||
|
||||
/*
|
||||
* #%L
|
||||
* HAPI FHIR - Core Library
|
||||
* %%
|
||||
* Copyright (C) 2014 - 2015 University Health Network
|
||||
* %%
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
* #L%
|
||||
*/
|
||||
|
||||
public interface ICompositeType extends IBase {
|
||||
|
||||
}
|
@ -1,36 +0,0 @@
|
||||
package org.hl7.fhir.instance.model;
|
||||
|
||||
import org.hl7.fhir.instance.model.api.IBaseDatatype;
|
||||
|
||||
/*
|
||||
* #%L
|
||||
* HAPI FHIR - Core Library
|
||||
* %%
|
||||
* Copyright (C) 2014 - 2015 University Health Network
|
||||
* %%
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
* #L%
|
||||
*/
|
||||
|
||||
|
||||
public interface IPrimitiveType<T> extends IBase, IBaseDatatype {
|
||||
|
||||
void setValueAsString(String theValue) throws IllegalArgumentException;
|
||||
|
||||
String getValueAsString();
|
||||
|
||||
T getValue();
|
||||
|
||||
IPrimitiveType<T> setValue(T theValue) throws IllegalArgumentException;
|
||||
|
||||
}
|
@ -1,588 +0,0 @@
|
||||
/*
|
||||
Copyright (c) 2011+, HL7, Inc
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification,
|
||||
are permitted provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this
|
||||
list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimer in the documentation
|
||||
and/or other materials provided with the distribution.
|
||||
* Neither the name of HL7 nor the names of its contributors may be used to
|
||||
endorse or promote products derived from this software without specific
|
||||
prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
||||
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
||||
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
||||
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
||||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
*/
|
||||
package org.hl7.fhir.instance.model;
|
||||
|
||||
import static org.apache.commons.lang3.StringUtils.*;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
|
||||
import org.apache.commons.lang3.ObjectUtils;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.apache.commons.lang3.Validate;
|
||||
import org.apache.commons.lang3.builder.HashCodeBuilder;
|
||||
import org.hl7.fhir.instance.model.annotations.DatatypeDef;
|
||||
import org.hl7.fhir.instance.model.api.IIdType;
|
||||
|
||||
import ca.uhn.fhir.model.api.annotation.SimpleSetter;
|
||||
import ca.uhn.fhir.model.primitive.UriDt;
|
||||
import ca.uhn.fhir.parser.DataFormatException;
|
||||
import ca.uhn.fhir.rest.server.Constants;
|
||||
import ca.uhn.fhir.util.UrlUtil;
|
||||
|
||||
/**
|
||||
* Primitive type "id" in FHIR: a string from 1 to 64 characters, only containing letters, digits, "-" and "."
|
||||
*/
|
||||
@DatatypeDef(name = "id")
|
||||
public class IdType extends UriType implements IIdType {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
private String myBaseUrl;
|
||||
private boolean myHaveComponentParts;
|
||||
private String myResourceType;
|
||||
private String myUnqualifiedId;
|
||||
private String myUnqualifiedVersionId;
|
||||
private volatile String myValue;
|
||||
|
||||
/**
|
||||
* Create a new empty ID
|
||||
*/
|
||||
public IdType() {
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a new ID, using a BigDecimal input. Uses {@link BigDecimal#toPlainString()} to generate the string representation.
|
||||
*/
|
||||
public IdType(BigDecimal thePid) {
|
||||
if (thePid != null) {
|
||||
setValue(toPlainStringWithNpeThrowIfNeeded(thePid));
|
||||
} else {
|
||||
setValue(null);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a new ID using a long
|
||||
*/
|
||||
public IdType(long theId) {
|
||||
setValue(Long.toString(theId));
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a new ID using a string. This String may contain a simple ID (e.g. "1234") or it may contain a complete URL (http://example.com/fhir/Patient/1234).
|
||||
*
|
||||
* <p>
|
||||
* <b>Description</b>: A whole number in the range 0 to 2^64-1 (optionally represented in hex), a uuid, an oid, or any other combination of lowercase letters, numerals, "-" and ".", with a length
|
||||
* limit of 36 characters.
|
||||
* </p>
|
||||
* <p>
|
||||
* regex: [a-z0-9\-\.]{1,36}
|
||||
* </p>
|
||||
*/
|
||||
@SimpleSetter
|
||||
public IdType(@SimpleSetter.Parameter(name = "theId") String theValue) {
|
||||
setValue(theValue);
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @param theResourceType
|
||||
* The resource type (e.g. "Patient")
|
||||
* @param theIdPart
|
||||
* The ID (e.g. "123")
|
||||
*/
|
||||
public IdType(String theResourceType, BigDecimal theIdPart) {
|
||||
this(theResourceType, toPlainStringWithNpeThrowIfNeeded(theIdPart));
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @param theResourceType
|
||||
* The resource type (e.g. "Patient")
|
||||
* @param theIdPart
|
||||
* The ID (e.g. "123")
|
||||
*/
|
||||
public IdType(String theResourceType, Long theIdPart) {
|
||||
this(theResourceType, toPlainStringWithNpeThrowIfNeeded(theIdPart));
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @param theResourceType
|
||||
* The resource type (e.g. "Patient")
|
||||
* @param theId
|
||||
* The ID (e.g. "123")
|
||||
*/
|
||||
public IdType(String theResourceType, String theId) {
|
||||
this(theResourceType, theId, null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @param theResourceType
|
||||
* The resource type (e.g. "Patient")
|
||||
* @param theId
|
||||
* The ID (e.g. "123")
|
||||
* @param theVersionId
|
||||
* The version ID ("e.g. "456")
|
||||
*/
|
||||
public IdType(String theResourceType, String theId, String theVersionId) {
|
||||
this(null,theResourceType,theId,theVersionId);
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @param theBaseUrl
|
||||
* The server base URL (e.g. "http://example.com/fhir")
|
||||
* @param theResourceType
|
||||
* The resource type (e.g. "Patient")
|
||||
* @param theId
|
||||
* The ID (e.g. "123")
|
||||
* @param theVersionId
|
||||
* The version ID ("e.g. "456")
|
||||
*/
|
||||
public IdType(String theBaseUrl, String theResourceType, String theId, String theVersionId) {
|
||||
myBaseUrl = theBaseUrl;
|
||||
myResourceType = theResourceType;
|
||||
myUnqualifiedId = theId;
|
||||
myUnqualifiedVersionId = StringUtils.defaultIfBlank(theVersionId, null);
|
||||
myHaveComponentParts = true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates an ID based on a given URL
|
||||
*/
|
||||
public IdType(UriDt theUrl) {
|
||||
setValue(theUrl.getValueAsString());
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated Use {@link #getIdPartAsBigDecimal()} instead (this method was deprocated because its name is ambiguous)
|
||||
*/
|
||||
@Deprecated
|
||||
public BigDecimal asBigDecimal() {
|
||||
return getIdPartAsBigDecimal();
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns true if this IdDt matches the given IdDt in terms of resource type and ID, but ignores the URL base
|
||||
*/
|
||||
@SuppressWarnings("deprecation")
|
||||
public boolean equalsIgnoreBase(IdType theId) {
|
||||
if (theId == null) {
|
||||
return false;
|
||||
}
|
||||
if (theId.isEmpty()) {
|
||||
return isEmpty();
|
||||
}
|
||||
return ObjectUtils.equals(getResourceType(), theId.getResourceType()) && ObjectUtils.equals(getIdPart(), theId.getIdPart()) && ObjectUtils.equals(getVersionIdPart(), theId.getVersionIdPart());
|
||||
}
|
||||
|
||||
|
||||
|
||||
@Override
|
||||
public boolean equals(Object theArg0) {
|
||||
if (!(theArg0 instanceof IdType)) {
|
||||
return false;
|
||||
}
|
||||
IdType id = (IdType)theArg0;
|
||||
return StringUtils.equals(getValueAsString(), id.getValueAsString());
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
HashCodeBuilder b = new HashCodeBuilder();
|
||||
b.append(getValueAsString());
|
||||
return b.toHashCode();
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the portion of this resource ID which corresponds to the server base URL. For example given the resource ID <code>http://example.com/fhir/Patient/123</code> the base URL would be
|
||||
* <code>http://example.com/fhir</code>.
|
||||
* <p>
|
||||
* This method may return null if the ID contains no base (e.g. "Patient/123")
|
||||
* </p>
|
||||
*/
|
||||
public String getBaseUrl() {
|
||||
return myBaseUrl;
|
||||
}
|
||||
|
||||
public String getIdPart() {
|
||||
return myUnqualifiedId;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the unqualified portion of this ID as a big decimal, or <code>null</code> if the value is null
|
||||
*
|
||||
* @throws NumberFormatException
|
||||
* If the value is not a valid BigDecimal
|
||||
*/
|
||||
public BigDecimal getIdPartAsBigDecimal() {
|
||||
String val = getIdPart();
|
||||
if (isBlank(val)) {
|
||||
return null;
|
||||
}
|
||||
return new BigDecimal(val);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the unqualified portion of this ID as a {@link Long}, or <code>null</code> if the value is null
|
||||
*
|
||||
* @throws NumberFormatException
|
||||
* If the value is not a valid Long
|
||||
*/
|
||||
public Long getIdPartAsLong() {
|
||||
String val = getIdPart();
|
||||
if (isBlank(val)) {
|
||||
return null;
|
||||
}
|
||||
return Long.parseLong(val);
|
||||
}
|
||||
|
||||
public String getResourceType() {
|
||||
return myResourceType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the value of this ID. Note that this value may be a fully qualified URL, a relative/partial URL, or a simple ID. Use {@link #getIdPart()} to get just the ID portion.
|
||||
*
|
||||
* @see #getIdPart()
|
||||
*/
|
||||
@Override
|
||||
public String getValue() {
|
||||
if (myValue == null && myHaveComponentParts) {
|
||||
StringBuilder b = new StringBuilder();
|
||||
if (isNotBlank(myBaseUrl)) {
|
||||
b.append(myBaseUrl);
|
||||
if (myBaseUrl.charAt(myBaseUrl.length()-1)!='/') {
|
||||
b.append('/');
|
||||
}
|
||||
}
|
||||
|
||||
if (isNotBlank(myResourceType)) {
|
||||
b.append(myResourceType);
|
||||
}
|
||||
|
||||
if (b.length() > 0) {
|
||||
b.append('/');
|
||||
}
|
||||
|
||||
b.append(myUnqualifiedId);
|
||||
if (isNotBlank(myUnqualifiedVersionId)) {
|
||||
b.append('/');
|
||||
b.append(Constants.PARAM_HISTORY);
|
||||
b.append('/');
|
||||
b.append(myUnqualifiedVersionId);
|
||||
}
|
||||
String value = b.toString();
|
||||
myValue = value;
|
||||
}
|
||||
return myValue;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getValueAsString() {
|
||||
return getValue();
|
||||
}
|
||||
|
||||
public String getVersionIdPart() {
|
||||
return myUnqualifiedVersionId;
|
||||
}
|
||||
|
||||
public Long getVersionIdPartAsLong() {
|
||||
if (!hasVersionIdPart()) {
|
||||
return null;
|
||||
} else {
|
||||
return Long.parseLong(getVersionIdPart());
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns true if this ID has a base url
|
||||
*
|
||||
* @see #getBaseUrl()
|
||||
*/
|
||||
public boolean hasBaseUrl() {
|
||||
return isNotBlank(myBaseUrl);
|
||||
}
|
||||
|
||||
public boolean hasIdPart() {
|
||||
return isNotBlank(getIdPart());
|
||||
}
|
||||
|
||||
public boolean hasResourceType() {
|
||||
return isNotBlank(myResourceType);
|
||||
}
|
||||
|
||||
public boolean hasVersionIdPart() {
|
||||
return isNotBlank(getVersionIdPart());
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns <code>true</code> if this ID contains an absolute URL (in other words, a URL starting with "http://" or "https://"
|
||||
*/
|
||||
public boolean isAbsolute() {
|
||||
if (StringUtils.isBlank(getValue())) {
|
||||
return false;
|
||||
}
|
||||
return UrlUtil.isAbsolute(getValue());
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns <code>true</code> if the unqualified ID is a valid {@link Long} value (in other words, it consists only of digits)
|
||||
*/
|
||||
public boolean isIdPartValidLong() {
|
||||
String id = getIdPart();
|
||||
if (StringUtils.isBlank(id)) {
|
||||
return false;
|
||||
}
|
||||
for (int i = 0; i < id.length(); i++) {
|
||||
if (Character.isDigit(id.charAt(i)) == false) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns <code>true</code> if the ID is a local reference (in other words, it begins with the '#' character)
|
||||
*/
|
||||
public boolean isLocal() {
|
||||
return myUnqualifiedId != null && myUnqualifiedId.isEmpty() == false && myUnqualifiedId.charAt(0) == '#';
|
||||
}
|
||||
|
||||
/**
|
||||
* Copies the value from the given IdDt to <code>this</code> IdDt. It is generally not neccesary to use this method but it is provided for consistency with the rest of the API.
|
||||
*/
|
||||
public void setId(IdType theId) {
|
||||
setValue(theId.getValue());
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the value
|
||||
*
|
||||
* <p>
|
||||
* <b>Description</b>: A whole number in the range 0 to 2^64-1 (optionally represented in hex), a uuid, an oid, or any other combination of lowercase letters, numerals, "-" and ".", with a length
|
||||
* limit of 36 characters.
|
||||
* </p>
|
||||
* <p>
|
||||
* regex: [a-z0-9\-\.]{1,36}
|
||||
* </p>
|
||||
*/
|
||||
@Override
|
||||
public IdType setValue(String theValue) throws DataFormatException {
|
||||
// TODO: add validation
|
||||
myValue = theValue;
|
||||
myHaveComponentParts = false;
|
||||
if (StringUtils.isBlank(theValue)) {
|
||||
myBaseUrl = null;
|
||||
myValue = null;
|
||||
myUnqualifiedId = null;
|
||||
myUnqualifiedVersionId = null;
|
||||
myResourceType = null;
|
||||
} else if (theValue.charAt(0)== '#') {
|
||||
myValue = theValue;
|
||||
myUnqualifiedId = theValue;
|
||||
myUnqualifiedVersionId=null;
|
||||
myResourceType = null;
|
||||
myHaveComponentParts = true;
|
||||
} else {
|
||||
int vidIndex = theValue.indexOf("/_history/");
|
||||
int idIndex;
|
||||
if (vidIndex != -1) {
|
||||
myUnqualifiedVersionId = theValue.substring(vidIndex + "/_history/".length());
|
||||
idIndex = theValue.lastIndexOf('/', vidIndex - 1);
|
||||
myUnqualifiedId = theValue.substring(idIndex + 1, vidIndex);
|
||||
} else {
|
||||
idIndex = theValue.lastIndexOf('/');
|
||||
myUnqualifiedId = theValue.substring(idIndex + 1);
|
||||
myUnqualifiedVersionId = null;
|
||||
}
|
||||
|
||||
myBaseUrl = null;
|
||||
if (idIndex <= 0) {
|
||||
myResourceType = null;
|
||||
} else {
|
||||
int typeIndex = theValue.lastIndexOf('/', idIndex - 1);
|
||||
if (typeIndex == -1) {
|
||||
myResourceType = theValue.substring(0, idIndex);
|
||||
} else {
|
||||
myResourceType = theValue.substring(typeIndex + 1, idIndex);
|
||||
|
||||
if (typeIndex > 4) {
|
||||
myBaseUrl = theValue.substring(0, typeIndex);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the value
|
||||
*
|
||||
* <p>
|
||||
* <b>Description</b>: A whole number in the range 0 to 2^64-1 (optionally represented in hex), a uuid, an oid, or any other combination of lowercase letters, numerals, "-" and ".", with a length
|
||||
* limit of 36 characters.
|
||||
* </p>
|
||||
* <p>
|
||||
* regex: [a-z0-9\-\.]{1,36}
|
||||
* </p>
|
||||
*/
|
||||
@Override
|
||||
public void setValueAsString(String theValue) throws DataFormatException {
|
||||
setValue(theValue);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return getValue();
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a new IdDt containing this IdDt's values but with no server base URL if one
|
||||
* is present in this IdDt. For example, if this IdDt contains the ID "http://foo/Patient/1",
|
||||
* this method will return a new IdDt containing ID "Patient/1".
|
||||
*/
|
||||
public IdType toUnqualified() {
|
||||
return new IdType(getResourceType(), getIdPart(), getVersionIdPart());
|
||||
}
|
||||
|
||||
public IdType toUnqualifiedVersionless() {
|
||||
return new IdType(getResourceType(), getIdPart());
|
||||
}
|
||||
|
||||
public IdType toVersionless() {
|
||||
return new IdType(getBaseUrl(), getResourceType(), getIdPart(), null);
|
||||
}
|
||||
|
||||
public IdType withResourceType(String theResourceName) {
|
||||
return new IdType(theResourceName, getIdPart(), getVersionIdPart());
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a view of this ID as a fully qualified URL, given a server base and resource name (which will only be used if the ID does not already contain those respective parts). Essentially,
|
||||
* because IdDt can contain either a complete URL or a partial one (or even jut a simple ID), this method may be used to translate into a complete URL.
|
||||
*
|
||||
* @param theServerBase
|
||||
* The server base (e.g. "http://example.com/fhir")
|
||||
* @param theResourceType
|
||||
* The resource name (e.g. "Patient")
|
||||
* @return A fully qualified URL for this ID (e.g. "http://example.com/fhir/Patient/1")
|
||||
*/
|
||||
public IdType withServerBase(String theServerBase, String theResourceType) {
|
||||
return new IdType(theServerBase, theResourceType, getIdPart(), getVersionIdPart());
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new instance of this ID which is identical, but refers to the specific version of this resource ID noted by theVersion.
|
||||
*
|
||||
* @param theVersion
|
||||
* The actual version string, e.g. "1"
|
||||
* @return A new instance of IdDt which is identical, but refers to the specific version of this resource ID noted by theVersion.
|
||||
*/
|
||||
public IdType withVersion(String theVersion) {
|
||||
Validate.notBlank(theVersion, "Version may not be null or empty");
|
||||
|
||||
String existingValue = getValue();
|
||||
|
||||
int i = existingValue.indexOf(Constants.PARAM_HISTORY);
|
||||
String value;
|
||||
if (i > 1) {
|
||||
value = existingValue.substring(0, i - 1);
|
||||
} else {
|
||||
value = existingValue;
|
||||
}
|
||||
|
||||
return new IdType(value + '/' + Constants.PARAM_HISTORY + '/' + theVersion);
|
||||
}
|
||||
|
||||
private static String toPlainStringWithNpeThrowIfNeeded(BigDecimal theIdPart) {
|
||||
if (theIdPart == null) {
|
||||
throw new NullPointerException("BigDecimal ID can not be null");
|
||||
}
|
||||
return theIdPart.toPlainString();
|
||||
}
|
||||
|
||||
private static String toPlainStringWithNpeThrowIfNeeded(Long theIdPart) {
|
||||
if (theIdPart == null) {
|
||||
throw new NullPointerException("Long ID can not be null");
|
||||
}
|
||||
return theIdPart.toString();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isEmpty() {
|
||||
return isBlank(getValue());
|
||||
}
|
||||
|
||||
<<<<<<< HEAD
|
||||
public void applyTo(IBaseResource theResouce) {
|
||||
if (theResouce == null) {
|
||||
throw new NullPointerException("theResource can not be null");
|
||||
} else if (theResouce instanceof IResource) {
|
||||
((IResource) theResouce).setId(new IdType(getValue()));
|
||||
} else if (theResouce instanceof IAnyResource) {
|
||||
((IAnyResource) theResouce).setId(getIdPart());
|
||||
} else {
|
||||
throw new IllegalArgumentException("Unknown resource class type, does not implement IResource or extend Resource");
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Retrieves the ID from the given resource instance
|
||||
*/
|
||||
public static IdType of(IBaseResource theResouce) {
|
||||
if (theResouce == null) {
|
||||
throw new NullPointerException("theResource can not be null");
|
||||
} else if (theResouce instanceof IResource) {
|
||||
return ((IBaseResource) theResouce).getIdElement();
|
||||
} else if (theResouce instanceof IAnyResource) {
|
||||
// TODO: implement
|
||||
throw new UnsupportedOperationException();
|
||||
} else {
|
||||
throw new IllegalArgumentException("Unknown resource class type, does not implement IResource or extend Resource");
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public IdType copy() {
|
||||
return new IdType(getValue());
|
||||
}
|
||||
|
||||
}
|
||||
=======
|
||||
@Override
|
||||
public IdType copy() {
|
||||
return new IdType(getValue());
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
>>>>>>> 2edc7eadab64d171ddc1b7c971ff36b9eb55ce67
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -1,354 +0,0 @@
|
||||
package org.hl7.fhir.instance.model;
|
||||
|
||||
/*
|
||||
Copyright (c) 2011+, HL7, Inc.
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification,
|
||||
are permitted provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this
|
||||
list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimer in the documentation
|
||||
and/or other materials provided with the distribution.
|
||||
* Neither the name of HL7 nor the names of its contributors may be used to
|
||||
endorse or promote products derived from this software without specific
|
||||
prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
||||
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
||||
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
||||
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
||||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
*/
|
||||
|
||||
// Generated on Wed, Feb 18, 2015 12:09-0500 for FHIR v0.4.0
|
||||
|
||||
import java.util.*;
|
||||
|
||||
import org.hl7.fhir.instance.model.annotations.ResourceDef;
|
||||
import org.hl7.fhir.instance.model.annotations.SearchParamDefinition;
|
||||
import org.hl7.fhir.instance.model.annotations.Block;
|
||||
import org.hl7.fhir.instance.model.annotations.Child;
|
||||
import org.hl7.fhir.instance.model.annotations.Description;
|
||||
/**
|
||||
* Other is a conformant for handling resource concepts not yet defined for FHIR or outside HL7's scope of interest.
|
||||
*/
|
||||
@ResourceDef(name="Other", profile="http://hl7.org/fhir/Profile/Other")
|
||||
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)
|
||||
@Description(shortDefinition="Business identifier", formalDefinition="Identifier assigned to the resource for business purposes, outside the context of FHIR." )
|
||||
protected List<Identifier> 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)
|
||||
@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)
|
||||
@Description(shortDefinition="Identifies the", formalDefinition="Identifies the patient, practitioner, device or any other resource that is the 'focus' of this resoruce." )
|
||||
protected Reference subject;
|
||||
|
||||
/**
|
||||
* The actual object that is the target of the reference (Identifies the patient, practitioner, device or any other resource that is the "focus" of this resoruce.)
|
||||
*/
|
||||
protected Resource subjectTarget;
|
||||
|
||||
/**
|
||||
* 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)
|
||||
@Description(shortDefinition="Who created", formalDefinition="Indicates who was responsible for creating the resource instance." )
|
||||
protected Reference author;
|
||||
|
||||
/**
|
||||
* The actual object that is the target of the reference (Indicates who was responsible for creating the resource instance.)
|
||||
*/
|
||||
protected Resource authorTarget;
|
||||
|
||||
/**
|
||||
* Identifies when the resource was first created.
|
||||
*/
|
||||
@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;
|
||||
|
||||
private static final long serialVersionUID = 916539354L;
|
||||
|
||||
public Other() {
|
||||
super();
|
||||
}
|
||||
|
||||
public Other(CodeableConcept code) {
|
||||
super();
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {@link #identifier} (Identifier assigned to the resource for business purposes, outside the context of FHIR.)
|
||||
*/
|
||||
public List<Identifier> getIdentifier() {
|
||||
if (this.identifier == null)
|
||||
this.identifier = new ArrayList<Identifier>();
|
||||
return this.identifier;
|
||||
}
|
||||
|
||||
public boolean hasIdentifier() {
|
||||
if (this.identifier == null)
|
||||
return false;
|
||||
for (Identifier item : this.identifier)
|
||||
if (!item.isEmpty())
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {@link #identifier} (Identifier assigned to the resource for business purposes, outside the context of FHIR.)
|
||||
*/
|
||||
// syntactic sugar
|
||||
public Identifier addIdentifier() { //3
|
||||
Identifier t = new Identifier();
|
||||
if (this.identifier == null)
|
||||
this.identifier = new ArrayList<Identifier>();
|
||||
this.identifier.add(t);
|
||||
return t;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {@link #code} (Identifies the 'type' of resource - equivalent to the resource name for other resources.)
|
||||
*/
|
||||
public CodeableConcept getCode() {
|
||||
if (this.code == null)
|
||||
if (Configuration.errorOnAutoCreate())
|
||||
throw new Error("Attempt to auto-create Other.code");
|
||||
else if (Configuration.doAutoCreate())
|
||||
this.code = new CodeableConcept(); // cc
|
||||
return this.code;
|
||||
}
|
||||
|
||||
public boolean hasCode() {
|
||||
return this.code != null && !this.code.isEmpty();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value {@link #code} (Identifies the 'type' of resource - equivalent to the resource name for other resources.)
|
||||
*/
|
||||
public Other setCode(CodeableConcept value) {
|
||||
this.code = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {@link #subject} (Identifies the patient, practitioner, device or any other resource that is the "focus" of this resoruce.)
|
||||
*/
|
||||
public Reference getSubject() {
|
||||
if (this.subject == null)
|
||||
if (Configuration.errorOnAutoCreate())
|
||||
throw new Error("Attempt to auto-create Other.subject");
|
||||
else if (Configuration.doAutoCreate())
|
||||
this.subject = new Reference(); // cc
|
||||
return this.subject;
|
||||
}
|
||||
|
||||
public boolean hasSubject() {
|
||||
return this.subject != null && !this.subject.isEmpty();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value {@link #subject} (Identifies the patient, practitioner, device or any other resource that is the "focus" of this resoruce.)
|
||||
*/
|
||||
public Other setSubject(Reference value) {
|
||||
this.subject = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {@link #subject} The actual object that is the target of the reference. The reference library doesn't populate this, but you can use it to hold the resource if you resolve it. (Identifies the patient, practitioner, device or any other resource that is the "focus" of this resoruce.)
|
||||
*/
|
||||
public Resource getSubjectTarget() {
|
||||
return this.subjectTarget;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value {@link #subject} The actual object that is the target of the reference. The reference library doesn't use these, but you can use it to hold the resource if you resolve it. (Identifies the patient, practitioner, device or any other resource that is the "focus" of this resoruce.)
|
||||
*/
|
||||
public Other setSubjectTarget(Resource value) {
|
||||
this.subjectTarget = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {@link #author} (Indicates who was responsible for creating the resource instance.)
|
||||
*/
|
||||
public Reference getAuthor() {
|
||||
if (this.author == null)
|
||||
if (Configuration.errorOnAutoCreate())
|
||||
throw new Error("Attempt to auto-create Other.author");
|
||||
else if (Configuration.doAutoCreate())
|
||||
this.author = new Reference(); // cc
|
||||
return this.author;
|
||||
}
|
||||
|
||||
public boolean hasAuthor() {
|
||||
return this.author != null && !this.author.isEmpty();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value {@link #author} (Indicates who was responsible for creating the resource instance.)
|
||||
*/
|
||||
public Other setAuthor(Reference value) {
|
||||
this.author = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {@link #author} The actual object that is the target of the reference. The reference library doesn't populate this, but you can use it to hold the resource if you resolve it. (Indicates who was responsible for creating the resource instance.)
|
||||
*/
|
||||
public Resource getAuthorTarget() {
|
||||
return this.authorTarget;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value {@link #author} The actual object that is the target of the reference. The reference library doesn't use these, but you can use it to hold the resource if you resolve it. (Indicates who was responsible for creating the resource instance.)
|
||||
*/
|
||||
public Other setAuthorTarget(Resource value) {
|
||||
this.authorTarget = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {@link #created} (Identifies when the resource was first created.). This is the underlying object with id, value and extensions. The accessor "getCreated" gives direct access to the value
|
||||
*/
|
||||
public DateType getCreatedElement() {
|
||||
if (this.created == null)
|
||||
if (Configuration.errorOnAutoCreate())
|
||||
throw new Error("Attempt to auto-create Other.created");
|
||||
else if (Configuration.doAutoCreate())
|
||||
this.created = new DateType(); // bb
|
||||
return this.created;
|
||||
}
|
||||
|
||||
public boolean hasCreatedElement() {
|
||||
return this.created != null && !this.created.isEmpty();
|
||||
}
|
||||
|
||||
public boolean hasCreated() {
|
||||
return this.created != null && !this.created.isEmpty();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value {@link #created} (Identifies when the resource was first created.). This is the underlying object with id, value and extensions. The accessor "getCreated" gives direct access to the value
|
||||
*/
|
||||
public Other setCreatedElement(DateType value) {
|
||||
this.created = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Identifies when the resource was first created.
|
||||
*/
|
||||
public Date getCreated() {
|
||||
return this.created == null ? null : this.created.getValue();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value Identifies when the resource was first created.
|
||||
*/
|
||||
public Other setCreated(Date value) {
|
||||
if (value == null)
|
||||
this.created = null;
|
||||
else {
|
||||
if (this.created == null)
|
||||
this.created = new DateType();
|
||||
this.created.setValue(value);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
protected void listChildren(List<Property> childrenList) {
|
||||
super.listChildren(childrenList);
|
||||
childrenList.add(new Property("identifier", "Identifier", "Identifier assigned to the resource for business purposes, outside the context of FHIR.", 0, java.lang.Integer.MAX_VALUE, identifier));
|
||||
childrenList.add(new Property("code", "CodeableConcept", "Identifies the 'type' of resource - equivalent to the resource name for other resources.", 0, java.lang.Integer.MAX_VALUE, code));
|
||||
childrenList.add(new Property("subject", "Reference(Any)", "Identifies the patient, practitioner, device or any other resource that is the 'focus' of this resoruce.", 0, java.lang.Integer.MAX_VALUE, subject));
|
||||
childrenList.add(new Property("author", "Reference(Practitioner|Patient|RelatedPerson)", "Indicates who was responsible for creating the resource instance.", 0, java.lang.Integer.MAX_VALUE, author));
|
||||
childrenList.add(new Property("created", "date", "Identifies when the resource was first created.", 0, java.lang.Integer.MAX_VALUE, created));
|
||||
}
|
||||
|
||||
public Other copy() {
|
||||
Other dst = new Other();
|
||||
copyValues(dst);
|
||||
if (identifier != null) {
|
||||
dst.identifier = new ArrayList<Identifier>();
|
||||
for (Identifier i : identifier)
|
||||
dst.identifier.add(i.copy());
|
||||
};
|
||||
dst.code = code == null ? null : code.copy();
|
||||
dst.subject = subject == null ? null : subject.copy();
|
||||
dst.author = author == null ? null : author.copy();
|
||||
dst.created = created == null ? null : created.copy();
|
||||
return dst;
|
||||
}
|
||||
|
||||
protected Other typedCopy() {
|
||||
return copy();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equalsDeep(Base other) {
|
||||
if (!super.equalsDeep(other))
|
||||
return false;
|
||||
if (!(other instanceof Other))
|
||||
return false;
|
||||
Other o = (Other) other;
|
||||
return compareDeep(identifier, o.identifier, true) && compareDeep(code, o.code, true) && compareDeep(subject, o.subject, true)
|
||||
&& compareDeep(author, o.author, true) && compareDeep(created, o.created, true);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equalsShallow(Base other) {
|
||||
if (!super.equalsShallow(other))
|
||||
return false;
|
||||
if (!(other instanceof Other))
|
||||
return false;
|
||||
Other o = (Other) other;
|
||||
return compareValues(created, o.created, true);
|
||||
}
|
||||
|
||||
public boolean isEmpty() {
|
||||
return super.isEmpty() && (identifier == null || identifier.isEmpty()) && (code == null || code.isEmpty())
|
||||
&& (subject == null || subject.isEmpty()) && (author == null || author.isEmpty()) && (created == null || created.isEmpty())
|
||||
;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ResourceType getResourceType() {
|
||||
return ResourceType.Other;
|
||||
}
|
||||
|
||||
@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";
|
||||
|
||||
}
|
||||
|
@ -29,7 +29,7 @@ package org.hl7.fhir.instance.model;
|
||||
|
||||
*/
|
||||
|
||||
// Generated on Wed, Feb 18, 2015 12:09-0500 for FHIR v0.4.0
|
||||
// Generated on Thu, Apr 2, 2015 10:47-0400 for FHIR v0.5.0
|
||||
|
||||
import java.util.*;
|
||||
|
||||
@ -90,8 +90,8 @@ public class PaymentReconciliation extends DomainResource {
|
||||
}
|
||||
public String getDisplay() {
|
||||
switch (this) {
|
||||
case COMPLETE: return "complete";
|
||||
case ERROR: return "error";
|
||||
case COMPLETE: return "Complete";
|
||||
case ERROR: return "Error";
|
||||
default: return "?";
|
||||
}
|
||||
}
|
||||
@ -122,14 +122,14 @@ public class PaymentReconciliation extends DomainResource {
|
||||
/**
|
||||
* Code to indicate the nature of the payment, adjustment, funds advance, etc.
|
||||
*/
|
||||
@Child(name="type", type={Coding.class}, order=1, min=1, max=1)
|
||||
@Child(name ="type", type={Coding.class}, order=1, min=1, max=1)
|
||||
@Description(shortDefinition="Type code", formalDefinition="Code to indicate the nature of the payment, adjustment, funds advance, etc." )
|
||||
protected Coding type;
|
||||
|
||||
/**
|
||||
* The claim or financial resource.
|
||||
*/
|
||||
@Child(name="request", type={}, order=2, min=0, max=1)
|
||||
@Child(name ="request", type={}, order=2, min=0, max=1)
|
||||
@Description(shortDefinition="Claim", formalDefinition="The claim or financial resource." )
|
||||
protected Reference request;
|
||||
|
||||
@ -141,7 +141,7 @@ public class PaymentReconciliation extends DomainResource {
|
||||
/**
|
||||
* The claim response resource.
|
||||
*/
|
||||
@Child(name="responce", type={}, order=3, min=0, max=1)
|
||||
@Child(name ="responce", type={}, order=3, min=0, max=1)
|
||||
@Description(shortDefinition="Claim Response", formalDefinition="The claim response resource." )
|
||||
protected Reference responce;
|
||||
|
||||
@ -153,7 +153,7 @@ public class PaymentReconciliation extends DomainResource {
|
||||
/**
|
||||
* The Organization which submitted the invoice or financial transaction.
|
||||
*/
|
||||
@Child(name="submitter", type={Organization.class}, order=4, min=0, max=1)
|
||||
@Child(name ="submitter", type={Organization.class}, order=4, min=0, max=1)
|
||||
@Description(shortDefinition="Submitter", formalDefinition="The Organization which submitted the invoice or financial transaction." )
|
||||
protected Reference submitter;
|
||||
|
||||
@ -165,7 +165,7 @@ public class PaymentReconciliation extends DomainResource {
|
||||
/**
|
||||
* The organization which is receiving the payment.
|
||||
*/
|
||||
@Child(name="payee", type={Organization.class}, order=5, min=0, max=1)
|
||||
@Child(name ="payee", type={Organization.class}, order=5, min=0, max=1)
|
||||
@Description(shortDefinition="Payee", formalDefinition="The organization which is receiving the payment." )
|
||||
protected Reference payee;
|
||||
|
||||
@ -177,14 +177,14 @@ public class PaymentReconciliation extends DomainResource {
|
||||
/**
|
||||
* The date of the invoice or financial resource.
|
||||
*/
|
||||
@Child(name="date", type={DateType.class}, order=6, min=0, max=1)
|
||||
@Child(name ="date", type={DateType.class}, order=6, min=0, max=1)
|
||||
@Description(shortDefinition="Invoice date", formalDefinition="The date of the invoice or financial resource." )
|
||||
protected DateType date;
|
||||
|
||||
/**
|
||||
* Amount paid for this detail.
|
||||
*/
|
||||
@Child(name="amount", type={Money.class}, order=7, min=0, max=1)
|
||||
@Child(name ="amount", type={Money.class}, order=7, min=0, max=1)
|
||||
@Description(shortDefinition="Detail amount", formalDefinition="Amount paid for this detail." )
|
||||
protected Money amount;
|
||||
|
||||
@ -522,14 +522,14 @@ public class PaymentReconciliation extends DomainResource {
|
||||
/**
|
||||
* The note purpose: Print/Display.
|
||||
*/
|
||||
@Child(name="type", type={Coding.class}, order=1, min=0, max=1)
|
||||
@Child(name ="type", type={Coding.class}, order=1, min=0, max=1)
|
||||
@Description(shortDefinition="display | print | printoper", formalDefinition="The note purpose: Print/Display." )
|
||||
protected Coding type;
|
||||
|
||||
/**
|
||||
* The note text.
|
||||
*/
|
||||
@Child(name="text", type={StringType.class}, order=2, min=0, max=1)
|
||||
@Child(name ="text", type={StringType.class}, order=2, min=0, max=1)
|
||||
@Description(shortDefinition="Notes text", formalDefinition="The note text." )
|
||||
protected StringType text;
|
||||
|
||||
@ -656,68 +656,68 @@ 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> identifier;
|
||||
|
||||
/**
|
||||
* Original request resource reference.
|
||||
*/
|
||||
@Child(name = "request", type = {PendedRequest.class}, order = 1, min = 0, max = 1)
|
||||
@Child(name ="request", type={ProcessRequest.class}, order=1, min=0, max=1)
|
||||
@Description(shortDefinition="Claim reference", formalDefinition="Original request resource reference." )
|
||||
protected Reference request;
|
||||
|
||||
/**
|
||||
* The actual object that is the target of the reference (Original request resource reference.)
|
||||
*/
|
||||
protected PendedRequest requestTarget;
|
||||
protected ProcessRequest requestTarget;
|
||||
|
||||
/**
|
||||
* 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<RSLink> 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,32 +753,32 @@ 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<DetailsComponent> 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<NotesComponent> note;
|
||||
|
||||
private static final long serialVersionUID = 2043460985L;
|
||||
private static final long serialVersionUID = 1602249640L;
|
||||
|
||||
public PaymentReconciliation() {
|
||||
super();
|
||||
@ -819,6 +819,16 @@ public class PaymentReconciliation extends DomainResource {
|
||||
return t;
|
||||
}
|
||||
|
||||
// syntactic sugar
|
||||
public PaymentReconciliation addIdentifier(Identifier t) { //3
|
||||
if (t == null)
|
||||
return this;
|
||||
if (this.identifier == null)
|
||||
this.identifier = new ArrayList<Identifier>();
|
||||
this.identifier.add(t);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {@link #request} (Original request resource reference.)
|
||||
*/
|
||||
@ -846,19 +856,19 @@ public class PaymentReconciliation extends DomainResource {
|
||||
/**
|
||||
* @return {@link #request} 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. (Original request resource reference.)
|
||||
*/
|
||||
public PendedRequest getRequestTarget() {
|
||||
public ProcessRequest getRequestTarget() {
|
||||
if (this.requestTarget == null)
|
||||
if (Configuration.errorOnAutoCreate())
|
||||
throw new Error("Attempt to auto-create PaymentReconciliation.request");
|
||||
else if (Configuration.doAutoCreate())
|
||||
this.requestTarget = new PendedRequest(); // aa
|
||||
this.requestTarget = new ProcessRequest(); // aa
|
||||
return this.requestTarget;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value {@link #request} 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. (Original request resource reference.)
|
||||
*/
|
||||
public PaymentReconciliation setRequestTarget(PendedRequest value) {
|
||||
public PaymentReconciliation setRequestTarget(ProcessRequest value) {
|
||||
this.requestTarget = value;
|
||||
return this;
|
||||
}
|
||||
@ -1244,6 +1254,16 @@ public class PaymentReconciliation extends DomainResource {
|
||||
return t;
|
||||
}
|
||||
|
||||
// syntactic sugar
|
||||
public PaymentReconciliation addDetail(DetailsComponent t) { //3
|
||||
if (t == null)
|
||||
return this;
|
||||
if (this.detail == null)
|
||||
this.detail = new ArrayList<DetailsComponent>();
|
||||
this.detail.add(t);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {@link #form} (The form to be used for printing the content.)
|
||||
*/
|
||||
@ -1322,10 +1342,20 @@ public class PaymentReconciliation extends DomainResource {
|
||||
return t;
|
||||
}
|
||||
|
||||
// syntactic sugar
|
||||
public PaymentReconciliation addNote(NotesComponent t) { //3
|
||||
if (t == null)
|
||||
return this;
|
||||
if (this.note == null)
|
||||
this.note = new ArrayList<NotesComponent>();
|
||||
this.note.add(t);
|
||||
return this;
|
||||
}
|
||||
|
||||
protected void listChildren(List<Property> childrenList) {
|
||||
super.listChildren(childrenList);
|
||||
childrenList.add(new Property("identifier", "Identifier", "The Response Business Identifier.", 0, java.lang.Integer.MAX_VALUE, identifier));
|
||||
childrenList.add(new Property("request", "Reference(PendedRequest)", "Original request resource reference.", 0, java.lang.Integer.MAX_VALUE, request));
|
||||
childrenList.add(new Property("request", "Reference(ProcessRequest)", "Original request resource reference.", 0, java.lang.Integer.MAX_VALUE, request));
|
||||
childrenList.add(new Property("outcome", "code", "Transaction status: error, complete.", 0, java.lang.Integer.MAX_VALUE, outcome));
|
||||
childrenList.add(new Property("disposition", "string", "A description of the status of the adjudication.", 0, java.lang.Integer.MAX_VALUE, disposition));
|
||||
childrenList.add(new Property("ruleset", "Coding", "The version of the style of resource contents. This should be mapped to the allowable profiles for this and supporting resources.", 0, java.lang.Integer.MAX_VALUE, ruleset));
|
||||
|
@ -1,670 +0,0 @@
|
||||
package org.hl7.fhir.instance.model;
|
||||
|
||||
/*
|
||||
Copyright (c) 2011+, HL7, Inc.
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification,
|
||||
are permitted provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this
|
||||
list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimer in the documentation
|
||||
and/or other materials provided with the distribution.
|
||||
* Neither the name of HL7 nor the names of its contributors may be used to
|
||||
endorse or promote products derived from this software without specific
|
||||
prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
||||
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
||||
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
||||
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
||||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
*/
|
||||
|
||||
// Generated on Wed, Feb 18, 2015 12:09-0500 for FHIR v0.4.0
|
||||
|
||||
import java.util.*;
|
||||
|
||||
import org.hl7.fhir.utilities.Utilities;
|
||||
import org.hl7.fhir.instance.model.annotations.ResourceDef;
|
||||
import org.hl7.fhir.instance.model.annotations.SearchParamDefinition;
|
||||
import org.hl7.fhir.instance.model.annotations.Block;
|
||||
import org.hl7.fhir.instance.model.annotations.Child;
|
||||
import org.hl7.fhir.instance.model.annotations.Description;
|
||||
/**
|
||||
* This resource provides the request and response details for the resource for which the status is to be checked.
|
||||
*/
|
||||
@ResourceDef(name="PendedRequest", profile="http://hl7.org/fhir/Profile/PendedRequest")
|
||||
public class PendedRequest extends DomainResource {
|
||||
|
||||
/**
|
||||
* The Response Business Identifier.
|
||||
*/
|
||||
@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> 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)
|
||||
@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)
|
||||
@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)
|
||||
@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)
|
||||
@Description(shortDefinition="Insurer", formalDefinition="The Insurer who is target of the request." )
|
||||
protected Reference target;
|
||||
|
||||
/**
|
||||
* The actual object that is the target of the reference (The Insurer who is target of the request.)
|
||||
*/
|
||||
protected Organization targetTarget;
|
||||
|
||||
/**
|
||||
* The practitioner who is responsible for the services rendered to the patient.
|
||||
*/
|
||||
@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;
|
||||
|
||||
/**
|
||||
* The actual object that is the target of the reference (The practitioner who is responsible for the services rendered to the patient.)
|
||||
*/
|
||||
protected Practitioner providerTarget;
|
||||
|
||||
/**
|
||||
* The organization which is responsible for the services rendered to the patient.
|
||||
*/
|
||||
@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;
|
||||
|
||||
/**
|
||||
* The actual object that is the target of the reference (The organization which is responsible for the services rendered to the patient.)
|
||||
*/
|
||||
protected Organization organizationTarget;
|
||||
|
||||
/**
|
||||
* Reference of resource to reverse.
|
||||
*/
|
||||
@Child(name = "request", type = {}, order = 7, min = 0, max = 1)
|
||||
@Description(shortDefinition="Request reference", formalDefinition="Reference of resource to reverse." )
|
||||
protected Reference request;
|
||||
|
||||
/**
|
||||
* The actual object that is the target of the reference (Reference of resource to reverse.)
|
||||
*/
|
||||
protected Resource requestTarget;
|
||||
|
||||
/**
|
||||
* Names of resource types to include.
|
||||
*/
|
||||
@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<StringType> include;
|
||||
|
||||
/**
|
||||
* Names of resource types to exclude.
|
||||
*/
|
||||
@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<StringType> 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)
|
||||
@Description(shortDefinition="Period", formalDefinition="A period of time during which the fulfilling resources would have been created." )
|
||||
protected Period period;
|
||||
|
||||
private static final long serialVersionUID = 1211492560L;
|
||||
|
||||
public PendedRequest() {
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {@link #identifier} (The Response Business Identifier.)
|
||||
*/
|
||||
public List<Identifier> getIdentifier() {
|
||||
if (this.identifier == null)
|
||||
this.identifier = new ArrayList<Identifier>();
|
||||
return this.identifier;
|
||||
}
|
||||
|
||||
public boolean hasIdentifier() {
|
||||
if (this.identifier == null)
|
||||
return false;
|
||||
for (Identifier item : this.identifier)
|
||||
if (!item.isEmpty())
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {@link #identifier} (The Response Business Identifier.)
|
||||
*/
|
||||
// syntactic sugar
|
||||
public Identifier addIdentifier() { //3
|
||||
Identifier t = new Identifier();
|
||||
if (this.identifier == null)
|
||||
this.identifier = new ArrayList<Identifier>();
|
||||
this.identifier.add(t);
|
||||
return t;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {@link #ruleset} (The version of the style of resource contents. This should be mapped to the allowable profiles for this and supporting resources.)
|
||||
*/
|
||||
public Coding getRuleset() {
|
||||
if (this.ruleset == null)
|
||||
if (Configuration.errorOnAutoCreate())
|
||||
throw new Error("Attempt to auto-create PendedRequest.ruleset");
|
||||
else if (Configuration.doAutoCreate())
|
||||
this.ruleset = new Coding(); // cc
|
||||
return this.ruleset;
|
||||
}
|
||||
|
||||
public boolean hasRuleset() {
|
||||
return this.ruleset != null && !this.ruleset.isEmpty();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value {@link #ruleset} (The version of the style of resource contents. This should be mapped to the allowable profiles for this and supporting resources.)
|
||||
*/
|
||||
public PendedRequest setRuleset(Coding value) {
|
||||
this.ruleset = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {@link #originalRuleset} (The style (standard) and version of the original material which was converted into this resource.)
|
||||
*/
|
||||
public Coding getOriginalRuleset() {
|
||||
if (this.originalRuleset == null)
|
||||
if (Configuration.errorOnAutoCreate())
|
||||
throw new Error("Attempt to auto-create PendedRequest.originalRuleset");
|
||||
else if (Configuration.doAutoCreate())
|
||||
this.originalRuleset = new Coding(); // cc
|
||||
return this.originalRuleset;
|
||||
}
|
||||
|
||||
public boolean hasOriginalRuleset() {
|
||||
return this.originalRuleset != null && !this.originalRuleset.isEmpty();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value {@link #originalRuleset} (The style (standard) and version of the original material which was converted into this resource.)
|
||||
*/
|
||||
public PendedRequest setOriginalRuleset(Coding value) {
|
||||
this.originalRuleset = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {@link #created} (The date when this resource was created.). This is the underlying object with id, value and extensions. The accessor "getCreated" gives direct access to the value
|
||||
*/
|
||||
public DateTimeType getCreatedElement() {
|
||||
if (this.created == null)
|
||||
if (Configuration.errorOnAutoCreate())
|
||||
throw new Error("Attempt to auto-create PendedRequest.created");
|
||||
else if (Configuration.doAutoCreate())
|
||||
this.created = new DateTimeType(); // bb
|
||||
return this.created;
|
||||
}
|
||||
|
||||
public boolean hasCreatedElement() {
|
||||
return this.created != null && !this.created.isEmpty();
|
||||
}
|
||||
|
||||
public boolean hasCreated() {
|
||||
return this.created != null && !this.created.isEmpty();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value {@link #created} (The date when this resource was created.). This is the underlying object with id, value and extensions. The accessor "getCreated" gives direct access to the value
|
||||
*/
|
||||
public PendedRequest setCreatedElement(DateTimeType value) {
|
||||
this.created = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return The date when this resource was created.
|
||||
*/
|
||||
public Date getCreated() {
|
||||
return this.created == null ? null : this.created.getValue();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value The date when this resource was created.
|
||||
*/
|
||||
public PendedRequest setCreated(Date value) {
|
||||
if (value == null)
|
||||
this.created = null;
|
||||
else {
|
||||
if (this.created == null)
|
||||
this.created = new DateTimeType();
|
||||
this.created.setValue(value);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {@link #target} (The Insurer who is target of the request.)
|
||||
*/
|
||||
public Reference getTarget() {
|
||||
if (this.target == null)
|
||||
if (Configuration.errorOnAutoCreate())
|
||||
throw new Error("Attempt to auto-create PendedRequest.target");
|
||||
else if (Configuration.doAutoCreate())
|
||||
this.target = new Reference(); // cc
|
||||
return this.target;
|
||||
}
|
||||
|
||||
public boolean hasTarget() {
|
||||
return this.target != null && !this.target.isEmpty();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value {@link #target} (The Insurer who is target of the request.)
|
||||
*/
|
||||
public PendedRequest setTarget(Reference value) {
|
||||
this.target = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {@link #target} The actual object that is the target of the reference. The reference library doesn't populate this, but you can use it to hold the resource if you resolve it. (The Insurer who is target of the request.)
|
||||
*/
|
||||
public Organization getTargetTarget() {
|
||||
if (this.targetTarget == null)
|
||||
if (Configuration.errorOnAutoCreate())
|
||||
throw new Error("Attempt to auto-create PendedRequest.target");
|
||||
else if (Configuration.doAutoCreate())
|
||||
this.targetTarget = new Organization(); // aa
|
||||
return this.targetTarget;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value {@link #target} The actual object that is the target of the reference. The reference library doesn't use these, but you can use it to hold the resource if you resolve it. (The Insurer who is target of the request.)
|
||||
*/
|
||||
public PendedRequest setTargetTarget(Organization value) {
|
||||
this.targetTarget = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {@link #provider} (The practitioner who is responsible for the services rendered to the patient.)
|
||||
*/
|
||||
public Reference getProvider() {
|
||||
if (this.provider == null)
|
||||
if (Configuration.errorOnAutoCreate())
|
||||
throw new Error("Attempt to auto-create PendedRequest.provider");
|
||||
else if (Configuration.doAutoCreate())
|
||||
this.provider = new Reference(); // cc
|
||||
return this.provider;
|
||||
}
|
||||
|
||||
public boolean hasProvider() {
|
||||
return this.provider != null && !this.provider.isEmpty();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value {@link #provider} (The practitioner who is responsible for the services rendered to the patient.)
|
||||
*/
|
||||
public PendedRequest setProvider(Reference value) {
|
||||
this.provider = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {@link #provider} The actual object that is the target of the reference. The reference library doesn't populate this, but you can use it to hold the resource if you resolve it. (The practitioner who is responsible for the services rendered to the patient.)
|
||||
*/
|
||||
public Practitioner getProviderTarget() {
|
||||
if (this.providerTarget == null)
|
||||
if (Configuration.errorOnAutoCreate())
|
||||
throw new Error("Attempt to auto-create PendedRequest.provider");
|
||||
else if (Configuration.doAutoCreate())
|
||||
this.providerTarget = new Practitioner(); // aa
|
||||
return this.providerTarget;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value {@link #provider} The actual object that is the target of the reference. The reference library doesn't use these, but you can use it to hold the resource if you resolve it. (The practitioner who is responsible for the services rendered to the patient.)
|
||||
*/
|
||||
public PendedRequest setProviderTarget(Practitioner value) {
|
||||
this.providerTarget = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {@link #organization} (The organization which is responsible for the services rendered to the patient.)
|
||||
*/
|
||||
public Reference getOrganization() {
|
||||
if (this.organization == null)
|
||||
if (Configuration.errorOnAutoCreate())
|
||||
throw new Error("Attempt to auto-create PendedRequest.organization");
|
||||
else if (Configuration.doAutoCreate())
|
||||
this.organization = new Reference(); // cc
|
||||
return this.organization;
|
||||
}
|
||||
|
||||
public boolean hasOrganization() {
|
||||
return this.organization != null && !this.organization.isEmpty();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value {@link #organization} (The organization which is responsible for the services rendered to the patient.)
|
||||
*/
|
||||
public PendedRequest setOrganization(Reference value) {
|
||||
this.organization = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {@link #organization} 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 which is responsible for the services rendered to the patient.)
|
||||
*/
|
||||
public Organization getOrganizationTarget() {
|
||||
if (this.organizationTarget == null)
|
||||
if (Configuration.errorOnAutoCreate())
|
||||
throw new Error("Attempt to auto-create PendedRequest.organization");
|
||||
else if (Configuration.doAutoCreate())
|
||||
this.organizationTarget = new Organization(); // aa
|
||||
return this.organizationTarget;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value {@link #organization} 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 which is responsible for the services rendered to the patient.)
|
||||
*/
|
||||
public PendedRequest setOrganizationTarget(Organization value) {
|
||||
this.organizationTarget = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {@link #request} (Reference of resource to reverse.)
|
||||
*/
|
||||
public Reference getRequest() {
|
||||
if (this.request == null)
|
||||
if (Configuration.errorOnAutoCreate())
|
||||
throw new Error("Attempt to auto-create PendedRequest.request");
|
||||
else if (Configuration.doAutoCreate())
|
||||
this.request = new Reference(); // cc
|
||||
return this.request;
|
||||
}
|
||||
|
||||
public boolean hasRequest() {
|
||||
return this.request != null && !this.request.isEmpty();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value {@link #request} (Reference of resource to reverse.)
|
||||
*/
|
||||
public PendedRequest setRequest(Reference value) {
|
||||
this.request = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {@link #request} 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. (Reference of resource to reverse.)
|
||||
*/
|
||||
public Resource getRequestTarget() {
|
||||
return this.requestTarget;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value {@link #request} 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. (Reference of resource to reverse.)
|
||||
*/
|
||||
public PendedRequest setRequestTarget(Resource value) {
|
||||
this.requestTarget = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {@link #include} (Names of resource types to include.)
|
||||
*/
|
||||
public List<StringType> getInclude() {
|
||||
if (this.include == null)
|
||||
this.include = new ArrayList<StringType>();
|
||||
return this.include;
|
||||
}
|
||||
|
||||
public boolean hasInclude() {
|
||||
if (this.include == null)
|
||||
return false;
|
||||
for (StringType item : this.include)
|
||||
if (!item.isEmpty())
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {@link #include} (Names of resource types to include.)
|
||||
*/
|
||||
// syntactic sugar
|
||||
public StringType addIncludeElement() {//2
|
||||
StringType t = new StringType();
|
||||
if (this.include == null)
|
||||
this.include = new ArrayList<StringType>();
|
||||
this.include.add(t);
|
||||
return t;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value {@link #include} (Names of resource types to include.)
|
||||
*/
|
||||
public PendedRequest addInclude(String value) { //1
|
||||
StringType t = new StringType();
|
||||
t.setValue(value);
|
||||
if (this.include == null)
|
||||
this.include = new ArrayList<StringType>();
|
||||
this.include.add(t);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value {@link #include} (Names of resource types to include.)
|
||||
*/
|
||||
public boolean hasInclude(String value) {
|
||||
if (this.include == null)
|
||||
return false;
|
||||
for (StringType v : this.include)
|
||||
if (v.equals(value)) // string
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {@link #exclude} (Names of resource types to exclude.)
|
||||
*/
|
||||
public List<StringType> getExclude() {
|
||||
if (this.exclude == null)
|
||||
this.exclude = new ArrayList<StringType>();
|
||||
return this.exclude;
|
||||
}
|
||||
|
||||
public boolean hasExclude() {
|
||||
if (this.exclude == null)
|
||||
return false;
|
||||
for (StringType item : this.exclude)
|
||||
if (!item.isEmpty())
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {@link #exclude} (Names of resource types to exclude.)
|
||||
*/
|
||||
// syntactic sugar
|
||||
public StringType addExcludeElement() {//2
|
||||
StringType t = new StringType();
|
||||
if (this.exclude == null)
|
||||
this.exclude = new ArrayList<StringType>();
|
||||
this.exclude.add(t);
|
||||
return t;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value {@link #exclude} (Names of resource types to exclude.)
|
||||
*/
|
||||
public PendedRequest addExclude(String value) { //1
|
||||
StringType t = new StringType();
|
||||
t.setValue(value);
|
||||
if (this.exclude == null)
|
||||
this.exclude = new ArrayList<StringType>();
|
||||
this.exclude.add(t);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value {@link #exclude} (Names of resource types to exclude.)
|
||||
*/
|
||||
public boolean hasExclude(String value) {
|
||||
if (this.exclude == null)
|
||||
return false;
|
||||
for (StringType v : this.exclude)
|
||||
if (v.equals(value)) // string
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {@link #period} (A period of time during which the fulfilling resources would have been created.)
|
||||
*/
|
||||
public Period getPeriod() {
|
||||
if (this.period == null)
|
||||
if (Configuration.errorOnAutoCreate())
|
||||
throw new Error("Attempt to auto-create PendedRequest.period");
|
||||
else if (Configuration.doAutoCreate())
|
||||
this.period = new Period(); // cc
|
||||
return this.period;
|
||||
}
|
||||
|
||||
public boolean hasPeriod() {
|
||||
return this.period != null && !this.period.isEmpty();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value {@link #period} (A period of time during which the fulfilling resources would have been created.)
|
||||
*/
|
||||
public PendedRequest setPeriod(Period value) {
|
||||
this.period = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
protected void listChildren(List<Property> childrenList) {
|
||||
super.listChildren(childrenList);
|
||||
childrenList.add(new Property("identifier", "Identifier", "The Response Business Identifier.", 0, java.lang.Integer.MAX_VALUE, identifier));
|
||||
childrenList.add(new Property("ruleset", "Coding", "The version of the style of resource contents. This should be mapped to the allowable profiles for this and supporting resources.", 0, java.lang.Integer.MAX_VALUE, ruleset));
|
||||
childrenList.add(new Property("originalRuleset", "Coding", "The style (standard) and version of the original material which was converted into this resource.", 0, java.lang.Integer.MAX_VALUE, originalRuleset));
|
||||
childrenList.add(new Property("created", "dateTime", "The date when this resource was created.", 0, java.lang.Integer.MAX_VALUE, created));
|
||||
childrenList.add(new Property("target", "Reference(Organization)", "The Insurer who is target of the request.", 0, java.lang.Integer.MAX_VALUE, target));
|
||||
childrenList.add(new Property("provider", "Reference(Practitioner)", "The practitioner who is responsible for the services rendered to the patient.", 0, java.lang.Integer.MAX_VALUE, provider));
|
||||
childrenList.add(new Property("organization", "Reference(Organization)", "The organization which is responsible for the services rendered to the patient.", 0, java.lang.Integer.MAX_VALUE, organization));
|
||||
childrenList.add(new Property("request", "Reference(Any)", "Reference of resource to reverse.", 0, java.lang.Integer.MAX_VALUE, request));
|
||||
childrenList.add(new Property("include", "string", "Names of resource types to include.", 0, java.lang.Integer.MAX_VALUE, include));
|
||||
childrenList.add(new Property("exclude", "string", "Names of resource types to exclude.", 0, java.lang.Integer.MAX_VALUE, exclude));
|
||||
childrenList.add(new Property("period", "Period", "A period of time during which the fulfilling resources would have been created.", 0, java.lang.Integer.MAX_VALUE, period));
|
||||
}
|
||||
|
||||
public PendedRequest copy() {
|
||||
PendedRequest dst = new PendedRequest();
|
||||
copyValues(dst);
|
||||
if (identifier != null) {
|
||||
dst.identifier = new ArrayList<Identifier>();
|
||||
for (Identifier i : identifier)
|
||||
dst.identifier.add(i.copy());
|
||||
};
|
||||
dst.ruleset = ruleset == null ? null : ruleset.copy();
|
||||
dst.originalRuleset = originalRuleset == null ? null : originalRuleset.copy();
|
||||
dst.created = created == null ? null : created.copy();
|
||||
dst.target = target == null ? null : target.copy();
|
||||
dst.provider = provider == null ? null : provider.copy();
|
||||
dst.organization = organization == null ? null : organization.copy();
|
||||
dst.request = request == null ? null : request.copy();
|
||||
if (include != null) {
|
||||
dst.include = new ArrayList<StringType>();
|
||||
for (StringType i : include)
|
||||
dst.include.add(i.copy());
|
||||
};
|
||||
if (exclude != null) {
|
||||
dst.exclude = new ArrayList<StringType>();
|
||||
for (StringType i : exclude)
|
||||
dst.exclude.add(i.copy());
|
||||
};
|
||||
dst.period = period == null ? null : period.copy();
|
||||
return dst;
|
||||
}
|
||||
|
||||
protected PendedRequest typedCopy() {
|
||||
return copy();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equalsDeep(Base other) {
|
||||
if (!super.equalsDeep(other))
|
||||
return false;
|
||||
if (!(other instanceof PendedRequest))
|
||||
return false;
|
||||
PendedRequest o = (PendedRequest) other;
|
||||
return compareDeep(identifier, o.identifier, true) && compareDeep(ruleset, o.ruleset, true) && compareDeep(originalRuleset, o.originalRuleset, true)
|
||||
&& compareDeep(created, o.created, true) && compareDeep(target, o.target, true) && compareDeep(provider, o.provider, true)
|
||||
&& compareDeep(organization, o.organization, true) && compareDeep(request, o.request, true) && compareDeep(include, o.include, true)
|
||||
&& compareDeep(exclude, o.exclude, true) && compareDeep(period, o.period, true);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equalsShallow(Base other) {
|
||||
if (!super.equalsShallow(other))
|
||||
return false;
|
||||
if (!(other instanceof PendedRequest))
|
||||
return false;
|
||||
PendedRequest o = (PendedRequest) other;
|
||||
return compareValues(created, o.created, true) && compareValues(include, o.include, true) && compareValues(exclude, o.exclude, true)
|
||||
;
|
||||
}
|
||||
|
||||
public boolean isEmpty() {
|
||||
return super.isEmpty() && (identifier == null || identifier.isEmpty()) && (ruleset == null || ruleset.isEmpty())
|
||||
&& (originalRuleset == null || originalRuleset.isEmpty()) && (created == null || created.isEmpty())
|
||||
&& (target == null || target.isEmpty()) && (provider == null || provider.isEmpty()) && (organization == null || organization.isEmpty())
|
||||
&& (request == null || request.isEmpty()) && (include == null || include.isEmpty()) && (exclude == null || exclude.isEmpty())
|
||||
&& (period == null || period.isEmpty());
|
||||
}
|
||||
|
||||
@Override
|
||||
public ResourceType getResourceType() {
|
||||
return ResourceType.PendedRequest;
|
||||
}
|
||||
|
||||
@SearchParamDefinition(name="identifier", path="PendedRequest.identifier", description="The business identifier of the Eligibility", type="token" )
|
||||
public static final String SP_IDENTIFIER = "identifier";
|
||||
|
||||
}
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,94 @@
|
||||
/*
|
||||
Copyright (c) 2011+, HL7, Inc
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification,
|
||||
are permitted provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this
|
||||
list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimer in the documentation
|
||||
and/or other materials provided with the distribution.
|
||||
* Neither the name of HL7 nor the names of its contributors may be used to
|
||||
endorse or promote products derived from this software without specific
|
||||
prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
||||
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
||||
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
||||
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
||||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
*/
|
||||
/**
|
||||
*
|
||||
*/
|
||||
package org.hl7.fhir.instance.model;
|
||||
|
||||
import org.hl7.fhir.instance.model.annotations.DatatypeDef;
|
||||
|
||||
/**
|
||||
* Primitive type "integer" in FHIR: A signed 32-bit integer
|
||||
*/
|
||||
@DatatypeDef(name = "positiveInt")
|
||||
public class PositiveIntType extends IntegerType {
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private static final long serialVersionUID = 1686497884249402429L;
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*/
|
||||
public PositiveIntType() {
|
||||
// nothing
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*/
|
||||
public PositiveIntType(int theInteger) {
|
||||
setValue(theInteger);
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @param theIntegerAsString
|
||||
* A string representation of an integer
|
||||
* @throws IllegalArgumentException
|
||||
* If the string is not a valid integer representation
|
||||
*/
|
||||
public PositiveIntType(String theIntegerAsString) {
|
||||
setValueAsString(theIntegerAsString);
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @param theValue The value
|
||||
* @throws IllegalArgumentException If the value is too large to fit in a signed integer
|
||||
*/
|
||||
public PositiveIntType(Long theValue) {
|
||||
if (theValue < 1 || theValue > java.lang.Integer.MAX_VALUE) {
|
||||
throw new IllegalArgumentException
|
||||
(theValue + " cannot be cast to int without changing its value.");
|
||||
}
|
||||
if(theValue!=null) {
|
||||
setValue((int)theValue.longValue());
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public PositiveIntType copy() {
|
||||
return new PositiveIntType(getValue());
|
||||
}
|
||||
|
||||
}
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -1,759 +0,0 @@
|
||||
package org.hl7.fhir.instance.model;
|
||||
|
||||
/*
|
||||
Copyright (c) 2011+, HL7, Inc.
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification,
|
||||
are permitted provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this
|
||||
list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimer in the documentation
|
||||
and/or other materials provided with the distribution.
|
||||
* Neither the name of HL7 nor the names of its contributors may be used to
|
||||
endorse or promote products derived from this software without specific
|
||||
prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
||||
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
||||
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
||||
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
||||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
*/
|
||||
|
||||
// Generated on Wed, Feb 18, 2015 12:09-0500 for FHIR v0.4.0
|
||||
|
||||
import java.util.*;
|
||||
|
||||
import org.hl7.fhir.utilities.Utilities;
|
||||
import org.hl7.fhir.instance.model.annotations.ResourceDef;
|
||||
import org.hl7.fhir.instance.model.annotations.SearchParamDefinition;
|
||||
import org.hl7.fhir.instance.model.annotations.Block;
|
||||
import org.hl7.fhir.instance.model.annotations.Child;
|
||||
import org.hl7.fhir.instance.model.annotations.Description;
|
||||
/**
|
||||
* This resource provides the request and line items details for the claim which is to be re-adjudicated.
|
||||
*/
|
||||
@ResourceDef(name="Readjudicate", profile="http://hl7.org/fhir/Profile/Readjudicate")
|
||||
public class Readjudicate extends DomainResource {
|
||||
|
||||
@Block()
|
||||
public static class ItemsComponent extends BackboneElement {
|
||||
/**
|
||||
* A service line number.
|
||||
*/
|
||||
@Child(name="sequenceLinkId", type={IntegerType.class}, order=1, min=1, max=1)
|
||||
@Description(shortDefinition="Service instance", formalDefinition="A service line number." )
|
||||
protected IntegerType sequenceLinkId;
|
||||
|
||||
private static final long serialVersionUID = -1598360600L;
|
||||
|
||||
public ItemsComponent() {
|
||||
super();
|
||||
}
|
||||
|
||||
public ItemsComponent(IntegerType sequenceLinkId) {
|
||||
super();
|
||||
this.sequenceLinkId = sequenceLinkId;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {@link #sequenceLinkId} (A service line number.). This is the underlying object with id, value and extensions. The accessor "getSequenceLinkId" gives direct access to the value
|
||||
*/
|
||||
public IntegerType getSequenceLinkIdElement() {
|
||||
if (this.sequenceLinkId == null)
|
||||
if (Configuration.errorOnAutoCreate())
|
||||
throw new Error("Attempt to auto-create ItemsComponent.sequenceLinkId");
|
||||
else if (Configuration.doAutoCreate())
|
||||
this.sequenceLinkId = new IntegerType(); // bb
|
||||
return this.sequenceLinkId;
|
||||
}
|
||||
|
||||
public boolean hasSequenceLinkIdElement() {
|
||||
return this.sequenceLinkId != null && !this.sequenceLinkId.isEmpty();
|
||||
}
|
||||
|
||||
public boolean hasSequenceLinkId() {
|
||||
return this.sequenceLinkId != null && !this.sequenceLinkId.isEmpty();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value {@link #sequenceLinkId} (A service line number.). This is the underlying object with id, value and extensions. The accessor "getSequenceLinkId" gives direct access to the value
|
||||
*/
|
||||
public ItemsComponent setSequenceLinkIdElement(IntegerType value) {
|
||||
this.sequenceLinkId = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return A service line number.
|
||||
*/
|
||||
public int getSequenceLinkId() {
|
||||
return this.sequenceLinkId == null ? 0 : this.sequenceLinkId.getValue();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value A service line number.
|
||||
*/
|
||||
public ItemsComponent setSequenceLinkId(int value) {
|
||||
if (this.sequenceLinkId == null)
|
||||
this.sequenceLinkId = new IntegerType();
|
||||
this.sequenceLinkId.setValue(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
protected void listChildren(List<Property> childrenList) {
|
||||
super.listChildren(childrenList);
|
||||
childrenList.add(new Property("sequenceLinkId", "integer", "A service line number.", 0, java.lang.Integer.MAX_VALUE, sequenceLinkId));
|
||||
}
|
||||
|
||||
public ItemsComponent copy() {
|
||||
ItemsComponent dst = new ItemsComponent();
|
||||
copyValues(dst);
|
||||
dst.sequenceLinkId = sequenceLinkId == null ? null : sequenceLinkId.copy();
|
||||
return dst;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equalsDeep(Base other) {
|
||||
if (!super.equalsDeep(other))
|
||||
return false;
|
||||
if (!(other instanceof ItemsComponent))
|
||||
return false;
|
||||
ItemsComponent o = (ItemsComponent) other;
|
||||
return compareDeep(sequenceLinkId, o.sequenceLinkId, true);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equalsShallow(Base other) {
|
||||
if (!super.equalsShallow(other))
|
||||
return false;
|
||||
if (!(other instanceof ItemsComponent))
|
||||
return false;
|
||||
ItemsComponent o = (ItemsComponent) other;
|
||||
return compareValues(sequenceLinkId, o.sequenceLinkId, true);
|
||||
}
|
||||
|
||||
public boolean isEmpty() {
|
||||
return super.isEmpty() && (sequenceLinkId == null || sequenceLinkId.isEmpty());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* The Response Business Identifier.
|
||||
*/
|
||||
@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> 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)
|
||||
@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)
|
||||
@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)
|
||||
@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)
|
||||
@Description(shortDefinition="Insurer", formalDefinition="The Insurer who is target of the request." )
|
||||
protected Reference target;
|
||||
|
||||
/**
|
||||
* The actual object that is the target of the reference (The Insurer who is target of the request.)
|
||||
*/
|
||||
protected Organization targetTarget;
|
||||
|
||||
/**
|
||||
* The practitioner who is responsible for the services rendered to the patient.
|
||||
*/
|
||||
@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;
|
||||
|
||||
/**
|
||||
* The actual object that is the target of the reference (The practitioner who is responsible for the services rendered to the patient.)
|
||||
*/
|
||||
protected Practitioner providerTarget;
|
||||
|
||||
/**
|
||||
* The organization which is responsible for the services rendered to the patient.
|
||||
*/
|
||||
@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;
|
||||
|
||||
/**
|
||||
* The actual object that is the target of the reference (The organization which is responsible for the services rendered to the patient.)
|
||||
*/
|
||||
protected Organization organizationTarget;
|
||||
|
||||
/**
|
||||
* Reference of resource to reverse.
|
||||
*/
|
||||
@Child(name = "request", type = {}, order = 7, min = 0, max = 1)
|
||||
@Description(shortDefinition="Request reference", formalDefinition="Reference of resource to reverse." )
|
||||
protected Reference request;
|
||||
|
||||
/**
|
||||
* The actual object that is the target of the reference (Reference of resource to reverse.)
|
||||
*/
|
||||
protected Resource requestTarget;
|
||||
|
||||
/**
|
||||
* Reference of response to resource to reverse.
|
||||
*/
|
||||
@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;
|
||||
|
||||
/**
|
||||
* The actual object that is the target of the reference (Reference of response to resource to reverse.)
|
||||
*/
|
||||
protected Resource responseTarget;
|
||||
|
||||
/**
|
||||
* A reference to supply which authenticated the process.
|
||||
*/
|
||||
@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)
|
||||
@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<ItemsComponent> item;
|
||||
|
||||
private static final long serialVersionUID = 445992972L;
|
||||
|
||||
public Readjudicate() {
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {@link #identifier} (The Response Business Identifier.)
|
||||
*/
|
||||
public List<Identifier> getIdentifier() {
|
||||
if (this.identifier == null)
|
||||
this.identifier = new ArrayList<Identifier>();
|
||||
return this.identifier;
|
||||
}
|
||||
|
||||
public boolean hasIdentifier() {
|
||||
if (this.identifier == null)
|
||||
return false;
|
||||
for (Identifier item : this.identifier)
|
||||
if (!item.isEmpty())
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {@link #identifier} (The Response Business Identifier.)
|
||||
*/
|
||||
// syntactic sugar
|
||||
public Identifier addIdentifier() { //3
|
||||
Identifier t = new Identifier();
|
||||
if (this.identifier == null)
|
||||
this.identifier = new ArrayList<Identifier>();
|
||||
this.identifier.add(t);
|
||||
return t;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {@link #ruleset} (The version of the style of resource contents. This should be mapped to the allowable profiles for this and supporting resources.)
|
||||
*/
|
||||
public Coding getRuleset() {
|
||||
if (this.ruleset == null)
|
||||
if (Configuration.errorOnAutoCreate())
|
||||
throw new Error("Attempt to auto-create Readjudicate.ruleset");
|
||||
else if (Configuration.doAutoCreate())
|
||||
this.ruleset = new Coding(); // cc
|
||||
return this.ruleset;
|
||||
}
|
||||
|
||||
public boolean hasRuleset() {
|
||||
return this.ruleset != null && !this.ruleset.isEmpty();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value {@link #ruleset} (The version of the style of resource contents. This should be mapped to the allowable profiles for this and supporting resources.)
|
||||
*/
|
||||
public Readjudicate setRuleset(Coding value) {
|
||||
this.ruleset = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {@link #originalRuleset} (The style (standard) and version of the original material which was converted into this resource.)
|
||||
*/
|
||||
public Coding getOriginalRuleset() {
|
||||
if (this.originalRuleset == null)
|
||||
if (Configuration.errorOnAutoCreate())
|
||||
throw new Error("Attempt to auto-create Readjudicate.originalRuleset");
|
||||
else if (Configuration.doAutoCreate())
|
||||
this.originalRuleset = new Coding(); // cc
|
||||
return this.originalRuleset;
|
||||
}
|
||||
|
||||
public boolean hasOriginalRuleset() {
|
||||
return this.originalRuleset != null && !this.originalRuleset.isEmpty();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value {@link #originalRuleset} (The style (standard) and version of the original material which was converted into this resource.)
|
||||
*/
|
||||
public Readjudicate setOriginalRuleset(Coding value) {
|
||||
this.originalRuleset = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {@link #created} (The date when this resource was created.). This is the underlying object with id, value and extensions. The accessor "getCreated" gives direct access to the value
|
||||
*/
|
||||
public DateTimeType getCreatedElement() {
|
||||
if (this.created == null)
|
||||
if (Configuration.errorOnAutoCreate())
|
||||
throw new Error("Attempt to auto-create Readjudicate.created");
|
||||
else if (Configuration.doAutoCreate())
|
||||
this.created = new DateTimeType(); // bb
|
||||
return this.created;
|
||||
}
|
||||
|
||||
public boolean hasCreatedElement() {
|
||||
return this.created != null && !this.created.isEmpty();
|
||||
}
|
||||
|
||||
public boolean hasCreated() {
|
||||
return this.created != null && !this.created.isEmpty();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value {@link #created} (The date when this resource was created.). This is the underlying object with id, value and extensions. The accessor "getCreated" gives direct access to the value
|
||||
*/
|
||||
public Readjudicate setCreatedElement(DateTimeType value) {
|
||||
this.created = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return The date when this resource was created.
|
||||
*/
|
||||
public Date getCreated() {
|
||||
return this.created == null ? null : this.created.getValue();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value The date when this resource was created.
|
||||
*/
|
||||
public Readjudicate setCreated(Date value) {
|
||||
if (value == null)
|
||||
this.created = null;
|
||||
else {
|
||||
if (this.created == null)
|
||||
this.created = new DateTimeType();
|
||||
this.created.setValue(value);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {@link #target} (The Insurer who is target of the request.)
|
||||
*/
|
||||
public Reference getTarget() {
|
||||
if (this.target == null)
|
||||
if (Configuration.errorOnAutoCreate())
|
||||
throw new Error("Attempt to auto-create Readjudicate.target");
|
||||
else if (Configuration.doAutoCreate())
|
||||
this.target = new Reference(); // cc
|
||||
return this.target;
|
||||
}
|
||||
|
||||
public boolean hasTarget() {
|
||||
return this.target != null && !this.target.isEmpty();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value {@link #target} (The Insurer who is target of the request.)
|
||||
*/
|
||||
public Readjudicate setTarget(Reference value) {
|
||||
this.target = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {@link #target} The actual object that is the target of the reference. The reference library doesn't populate this, but you can use it to hold the resource if you resolve it. (The Insurer who is target of the request.)
|
||||
*/
|
||||
public Organization getTargetTarget() {
|
||||
if (this.targetTarget == null)
|
||||
if (Configuration.errorOnAutoCreate())
|
||||
throw new Error("Attempt to auto-create Readjudicate.target");
|
||||
else if (Configuration.doAutoCreate())
|
||||
this.targetTarget = new Organization(); // aa
|
||||
return this.targetTarget;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value {@link #target} The actual object that is the target of the reference. The reference library doesn't use these, but you can use it to hold the resource if you resolve it. (The Insurer who is target of the request.)
|
||||
*/
|
||||
public Readjudicate setTargetTarget(Organization value) {
|
||||
this.targetTarget = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {@link #provider} (The practitioner who is responsible for the services rendered to the patient.)
|
||||
*/
|
||||
public Reference getProvider() {
|
||||
if (this.provider == null)
|
||||
if (Configuration.errorOnAutoCreate())
|
||||
throw new Error("Attempt to auto-create Readjudicate.provider");
|
||||
else if (Configuration.doAutoCreate())
|
||||
this.provider = new Reference(); // cc
|
||||
return this.provider;
|
||||
}
|
||||
|
||||
public boolean hasProvider() {
|
||||
return this.provider != null && !this.provider.isEmpty();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value {@link #provider} (The practitioner who is responsible for the services rendered to the patient.)
|
||||
*/
|
||||
public Readjudicate setProvider(Reference value) {
|
||||
this.provider = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {@link #provider} The actual object that is the target of the reference. The reference library doesn't populate this, but you can use it to hold the resource if you resolve it. (The practitioner who is responsible for the services rendered to the patient.)
|
||||
*/
|
||||
public Practitioner getProviderTarget() {
|
||||
if (this.providerTarget == null)
|
||||
if (Configuration.errorOnAutoCreate())
|
||||
throw new Error("Attempt to auto-create Readjudicate.provider");
|
||||
else if (Configuration.doAutoCreate())
|
||||
this.providerTarget = new Practitioner(); // aa
|
||||
return this.providerTarget;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value {@link #provider} The actual object that is the target of the reference. The reference library doesn't use these, but you can use it to hold the resource if you resolve it. (The practitioner who is responsible for the services rendered to the patient.)
|
||||
*/
|
||||
public Readjudicate setProviderTarget(Practitioner value) {
|
||||
this.providerTarget = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {@link #organization} (The organization which is responsible for the services rendered to the patient.)
|
||||
*/
|
||||
public Reference getOrganization() {
|
||||
if (this.organization == null)
|
||||
if (Configuration.errorOnAutoCreate())
|
||||
throw new Error("Attempt to auto-create Readjudicate.organization");
|
||||
else if (Configuration.doAutoCreate())
|
||||
this.organization = new Reference(); // cc
|
||||
return this.organization;
|
||||
}
|
||||
|
||||
public boolean hasOrganization() {
|
||||
return this.organization != null && !this.organization.isEmpty();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value {@link #organization} (The organization which is responsible for the services rendered to the patient.)
|
||||
*/
|
||||
public Readjudicate setOrganization(Reference value) {
|
||||
this.organization = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {@link #organization} 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 which is responsible for the services rendered to the patient.)
|
||||
*/
|
||||
public Organization getOrganizationTarget() {
|
||||
if (this.organizationTarget == null)
|
||||
if (Configuration.errorOnAutoCreate())
|
||||
throw new Error("Attempt to auto-create Readjudicate.organization");
|
||||
else if (Configuration.doAutoCreate())
|
||||
this.organizationTarget = new Organization(); // aa
|
||||
return this.organizationTarget;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value {@link #organization} 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 which is responsible for the services rendered to the patient.)
|
||||
*/
|
||||
public Readjudicate setOrganizationTarget(Organization value) {
|
||||
this.organizationTarget = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {@link #request} (Reference of resource to reverse.)
|
||||
*/
|
||||
public Reference getRequest() {
|
||||
if (this.request == null)
|
||||
if (Configuration.errorOnAutoCreate())
|
||||
throw new Error("Attempt to auto-create Readjudicate.request");
|
||||
else if (Configuration.doAutoCreate())
|
||||
this.request = new Reference(); // cc
|
||||
return this.request;
|
||||
}
|
||||
|
||||
public boolean hasRequest() {
|
||||
return this.request != null && !this.request.isEmpty();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value {@link #request} (Reference of resource to reverse.)
|
||||
*/
|
||||
public Readjudicate setRequest(Reference value) {
|
||||
this.request = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {@link #request} 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. (Reference of resource to reverse.)
|
||||
*/
|
||||
public Resource getRequestTarget() {
|
||||
return this.requestTarget;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value {@link #request} 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. (Reference of resource to reverse.)
|
||||
*/
|
||||
public Readjudicate setRequestTarget(Resource value) {
|
||||
this.requestTarget = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {@link #response} (Reference of response to resource to reverse.)
|
||||
*/
|
||||
public Reference getResponse() {
|
||||
if (this.response == null)
|
||||
if (Configuration.errorOnAutoCreate())
|
||||
throw new Error("Attempt to auto-create Readjudicate.response");
|
||||
else if (Configuration.doAutoCreate())
|
||||
this.response = new Reference(); // cc
|
||||
return this.response;
|
||||
}
|
||||
|
||||
public boolean hasResponse() {
|
||||
return this.response != null && !this.response.isEmpty();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value {@link #response} (Reference of response to resource to reverse.)
|
||||
*/
|
||||
public Readjudicate setResponse(Reference value) {
|
||||
this.response = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {@link #response} 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. (Reference of response to resource to reverse.)
|
||||
*/
|
||||
public Resource getResponseTarget() {
|
||||
return this.responseTarget;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value {@link #response} 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. (Reference of response to resource to reverse.)
|
||||
*/
|
||||
public Readjudicate setResponseTarget(Resource value) {
|
||||
this.responseTarget = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {@link #reference} (A reference to supply which authenticated the process.). This is the underlying object with id, value and extensions. The accessor "getReference" gives direct access to the value
|
||||
*/
|
||||
public StringType getReferenceElement() {
|
||||
if (this.reference == null)
|
||||
if (Configuration.errorOnAutoCreate())
|
||||
throw new Error("Attempt to auto-create Readjudicate.reference");
|
||||
else if (Configuration.doAutoCreate())
|
||||
this.reference = new StringType(); // bb
|
||||
return this.reference;
|
||||
}
|
||||
|
||||
public boolean hasReferenceElement() {
|
||||
return this.reference != null && !this.reference.isEmpty();
|
||||
}
|
||||
|
||||
public boolean hasReference() {
|
||||
return this.reference != null && !this.reference.isEmpty();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value {@link #reference} (A reference to supply which authenticated the process.). This is the underlying object with id, value and extensions. The accessor "getReference" gives direct access to the value
|
||||
*/
|
||||
public Readjudicate setReferenceElement(StringType value) {
|
||||
this.reference = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return A reference to supply which authenticated the process.
|
||||
*/
|
||||
public String getReference() {
|
||||
return this.reference == null ? null : this.reference.getValue();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value A reference to supply which authenticated the process.
|
||||
*/
|
||||
public Readjudicate setReference(String value) {
|
||||
if (Utilities.noString(value))
|
||||
this.reference = null;
|
||||
else {
|
||||
if (this.reference == null)
|
||||
this.reference = new StringType();
|
||||
this.reference.setValue(value);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {@link #item} (List of top level items to be re-adjudicated, if none specified then the entire submission is re-adjudicated.)
|
||||
*/
|
||||
public List<ItemsComponent> getItem() {
|
||||
if (this.item == null)
|
||||
this.item = new ArrayList<ItemsComponent>();
|
||||
return this.item;
|
||||
}
|
||||
|
||||
public boolean hasItem() {
|
||||
if (this.item == null)
|
||||
return false;
|
||||
for (ItemsComponent item : this.item)
|
||||
if (!item.isEmpty())
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {@link #item} (List of top level items to be re-adjudicated, if none specified then the entire submission is re-adjudicated.)
|
||||
*/
|
||||
// syntactic sugar
|
||||
public ItemsComponent addItem() { //3
|
||||
ItemsComponent t = new ItemsComponent();
|
||||
if (this.item == null)
|
||||
this.item = new ArrayList<ItemsComponent>();
|
||||
this.item.add(t);
|
||||
return t;
|
||||
}
|
||||
|
||||
protected void listChildren(List<Property> childrenList) {
|
||||
super.listChildren(childrenList);
|
||||
childrenList.add(new Property("identifier", "Identifier", "The Response Business Identifier.", 0, java.lang.Integer.MAX_VALUE, identifier));
|
||||
childrenList.add(new Property("ruleset", "Coding", "The version of the style of resource contents. This should be mapped to the allowable profiles for this and supporting resources.", 0, java.lang.Integer.MAX_VALUE, ruleset));
|
||||
childrenList.add(new Property("originalRuleset", "Coding", "The style (standard) and version of the original material which was converted into this resource.", 0, java.lang.Integer.MAX_VALUE, originalRuleset));
|
||||
childrenList.add(new Property("created", "dateTime", "The date when this resource was created.", 0, java.lang.Integer.MAX_VALUE, created));
|
||||
childrenList.add(new Property("target", "Reference(Organization)", "The Insurer who is target of the request.", 0, java.lang.Integer.MAX_VALUE, target));
|
||||
childrenList.add(new Property("provider", "Reference(Practitioner)", "The practitioner who is responsible for the services rendered to the patient.", 0, java.lang.Integer.MAX_VALUE, provider));
|
||||
childrenList.add(new Property("organization", "Reference(Organization)", "The organization which is responsible for the services rendered to the patient.", 0, java.lang.Integer.MAX_VALUE, organization));
|
||||
childrenList.add(new Property("request", "Reference(Any)", "Reference of resource to reverse.", 0, java.lang.Integer.MAX_VALUE, request));
|
||||
childrenList.add(new Property("response", "Reference(Any)", "Reference of response to resource to reverse.", 0, java.lang.Integer.MAX_VALUE, response));
|
||||
childrenList.add(new Property("reference", "string", "A reference to supply which authenticated the process.", 0, java.lang.Integer.MAX_VALUE, reference));
|
||||
childrenList.add(new Property("item", "", "List of top level items to be re-adjudicated, if none specified then the entire submission is re-adjudicated.", 0, java.lang.Integer.MAX_VALUE, item));
|
||||
}
|
||||
|
||||
public Readjudicate copy() {
|
||||
Readjudicate dst = new Readjudicate();
|
||||
copyValues(dst);
|
||||
if (identifier != null) {
|
||||
dst.identifier = new ArrayList<Identifier>();
|
||||
for (Identifier i : identifier)
|
||||
dst.identifier.add(i.copy());
|
||||
};
|
||||
dst.ruleset = ruleset == null ? null : ruleset.copy();
|
||||
dst.originalRuleset = originalRuleset == null ? null : originalRuleset.copy();
|
||||
dst.created = created == null ? null : created.copy();
|
||||
dst.target = target == null ? null : target.copy();
|
||||
dst.provider = provider == null ? null : provider.copy();
|
||||
dst.organization = organization == null ? null : organization.copy();
|
||||
dst.request = request == null ? null : request.copy();
|
||||
dst.response = response == null ? null : response.copy();
|
||||
dst.reference = reference == null ? null : reference.copy();
|
||||
if (item != null) {
|
||||
dst.item = new ArrayList<ItemsComponent>();
|
||||
for (ItemsComponent i : item)
|
||||
dst.item.add(i.copy());
|
||||
};
|
||||
return dst;
|
||||
}
|
||||
|
||||
protected Readjudicate typedCopy() {
|
||||
return copy();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equalsDeep(Base other) {
|
||||
if (!super.equalsDeep(other))
|
||||
return false;
|
||||
if (!(other instanceof Readjudicate))
|
||||
return false;
|
||||
Readjudicate o = (Readjudicate) other;
|
||||
return compareDeep(identifier, o.identifier, true) && compareDeep(ruleset, o.ruleset, true) && compareDeep(originalRuleset, o.originalRuleset, true)
|
||||
&& compareDeep(created, o.created, true) && compareDeep(target, o.target, true) && compareDeep(provider, o.provider, true)
|
||||
&& compareDeep(organization, o.organization, true) && compareDeep(request, o.request, true) && compareDeep(response, o.response, true)
|
||||
&& compareDeep(reference, o.reference, true) && compareDeep(item, o.item, true);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equalsShallow(Base other) {
|
||||
if (!super.equalsShallow(other))
|
||||
return false;
|
||||
if (!(other instanceof Readjudicate))
|
||||
return false;
|
||||
Readjudicate o = (Readjudicate) other;
|
||||
return compareValues(created, o.created, true) && compareValues(reference, o.reference, true);
|
||||
}
|
||||
|
||||
public boolean isEmpty() {
|
||||
return super.isEmpty() && (identifier == null || identifier.isEmpty()) && (ruleset == null || ruleset.isEmpty())
|
||||
&& (originalRuleset == null || originalRuleset.isEmpty()) && (created == null || created.isEmpty())
|
||||
&& (target == null || target.isEmpty()) && (provider == null || provider.isEmpty()) && (organization == null || organization.isEmpty())
|
||||
&& (request == null || request.isEmpty()) && (response == null || response.isEmpty()) && (reference == null || reference.isEmpty())
|
||||
&& (item == null || item.isEmpty());
|
||||
}
|
||||
|
||||
@Override
|
||||
public ResourceType getResourceType() {
|
||||
return ResourceType.Readjudicate;
|
||||
}
|
||||
|
||||
@SearchParamDefinition(name="identifier", path="Readjudicate.identifier", description="The business identifier of the Eligibility", type="token" )
|
||||
public static final String SP_IDENTIFIER = "identifier";
|
||||
|
||||
}
|
||||
|
@ -38,24 +38,18 @@ public class ResourceFactory extends Factory {
|
||||
return new Appointment();
|
||||
if ("ReferralRequest".equals(name))
|
||||
return new ReferralRequest();
|
||||
if ("OralHealthClaim".equals(name))
|
||||
return new OralHealthClaim();
|
||||
if ("DocumentManifest".equals(name))
|
||||
return new DocumentManifest();
|
||||
if ("Goal".equals(name))
|
||||
return new Goal();
|
||||
if ("EnrollmentRequest".equals(name))
|
||||
return new EnrollmentRequest();
|
||||
if ("FamilyHistory".equals(name))
|
||||
return new FamilyHistory();
|
||||
if ("Medication".equals(name))
|
||||
return new Medication();
|
||||
if ("Subscription".equals(name))
|
||||
return new Subscription();
|
||||
if ("DocumentReference".equals(name))
|
||||
return new DocumentReference();
|
||||
if ("SecurityEvent".equals(name))
|
||||
return new SecurityEvent();
|
||||
if ("Parameters".equals(name))
|
||||
return new Parameters();
|
||||
if ("Conformance".equals(name))
|
||||
@ -84,8 +78,6 @@ public class ResourceFactory extends Factory {
|
||||
return new Supply();
|
||||
if ("ImagingStudy".equals(name))
|
||||
return new ImagingStudy();
|
||||
if ("Profile".equals(name))
|
||||
return new Profile();
|
||||
if ("DeviceComponent".equals(name))
|
||||
return new DeviceComponent();
|
||||
if ("Encounter".equals(name))
|
||||
@ -98,34 +90,20 @@ public class ResourceFactory extends Factory {
|
||||
return new Communication();
|
||||
if ("OrderResponse".equals(name))
|
||||
return new OrderResponse();
|
||||
if ("StatusResponse".equals(name))
|
||||
return new StatusResponse();
|
||||
if ("VisionClaim".equals(name))
|
||||
return new VisionClaim();
|
||||
if ("DeviceUseStatement".equals(name))
|
||||
return new DeviceUseStatement();
|
||||
if ("Reversal".equals(name))
|
||||
return new Reversal();
|
||||
if ("MessageHeader".equals(name))
|
||||
return new MessageHeader();
|
||||
if ("PharmacyClaim".equals(name))
|
||||
return new PharmacyClaim();
|
||||
if ("ImmunizationRecommendation".equals(name))
|
||||
return new ImmunizationRecommendation();
|
||||
if ("Other".equals(name))
|
||||
return new Other();
|
||||
if ("BodySite".equals(name))
|
||||
return new BodySite();
|
||||
if ("Provenance".equals(name))
|
||||
return new Provenance();
|
||||
if ("Questionnaire".equals(name))
|
||||
return new Questionnaire();
|
||||
if ("ProfessionalClaim".equals(name))
|
||||
return new ProfessionalClaim();
|
||||
if ("ExplanationOfBenefit".equals(name))
|
||||
return new ExplanationOfBenefit();
|
||||
if ("InstitutionalClaim".equals(name))
|
||||
return new InstitutionalClaim();
|
||||
if ("Specimen".equals(name))
|
||||
return new Specimen();
|
||||
if ("AllergyIntolerance".equals(name))
|
||||
@ -182,12 +160,8 @@ public class ResourceFactory extends Factory {
|
||||
return new MedicationStatement();
|
||||
if ("CommunicationRequest".equals(name))
|
||||
return new CommunicationRequest();
|
||||
if ("PendedRequest".equals(name))
|
||||
return new PendedRequest();
|
||||
if ("Basic".equals(name))
|
||||
return new Basic();
|
||||
if ("StatusRequest".equals(name))
|
||||
return new StatusRequest();
|
||||
if ("ClaimResponse".equals(name))
|
||||
return new ClaimResponse();
|
||||
if ("EligibilityRequest".equals(name))
|
||||
@ -200,16 +174,10 @@ public class ResourceFactory extends Factory {
|
||||
return new ImagingObjectSelection();
|
||||
if ("HealthcareService".equals(name))
|
||||
return new HealthcareService();
|
||||
if ("CarePlan2".equals(name))
|
||||
return new CarePlan2();
|
||||
if ("DataElement".equals(name))
|
||||
return new DataElement();
|
||||
if ("ClinicalAssessment".equals(name))
|
||||
return new ClinicalAssessment();
|
||||
if ("QuestionnaireAnswers".equals(name))
|
||||
return new QuestionnaireAnswers();
|
||||
if ("Readjudicate".equals(name))
|
||||
return new Readjudicate();
|
||||
if ("NutritionOrder".equals(name))
|
||||
return new NutritionOrder();
|
||||
if ("PaymentReconciliation".equals(name))
|
||||
@ -226,16 +194,10 @@ public class ResourceFactory extends Factory {
|
||||
return new Patient();
|
||||
if ("Coverage".equals(name))
|
||||
return new Coverage();
|
||||
if ("ExtensionDefinition".equals(name))
|
||||
return new ExtensionDefinition();
|
||||
if ("NamingSystem".equals(name))
|
||||
return new NamingSystem();
|
||||
if ("Schedule".equals(name))
|
||||
return new Schedule();
|
||||
if ("SupportingDocumentation".equals(name))
|
||||
return new SupportingDocumentation();
|
||||
if ("Alert".equals(name))
|
||||
return new Alert();
|
||||
if ("Location".equals(name))
|
||||
return new Location();
|
||||
else
|
||||
|
@ -1,109 +1,97 @@
|
||||
package org.hl7.fhir.instance.model;
|
||||
|
||||
// Generated on Wed, Feb 18, 2015 12:09-0500 for FHIR v0.4.0
|
||||
// Generated on Thu, Apr 2, 2015 10:47-0400 for FHIR v0.5.0
|
||||
|
||||
public enum ResourceType {
|
||||
Appointment,
|
||||
ReferralRequest,
|
||||
OralHealthClaim,
|
||||
DocumentManifest,
|
||||
Goal,
|
||||
EnrollmentRequest,
|
||||
FamilyHistory,
|
||||
Medication,
|
||||
Subscription,
|
||||
DocumentReference,
|
||||
SecurityEvent,
|
||||
Conformance,
|
||||
RelatedPerson,
|
||||
Practitioner,
|
||||
Slot,
|
||||
Contraindication,
|
||||
Contract,
|
||||
Person,
|
||||
RiskAssessment,
|
||||
Group,
|
||||
PaymentNotice,
|
||||
Organization,
|
||||
Supply,
|
||||
ImagingStudy,
|
||||
Profile,
|
||||
DeviceComponent,
|
||||
Encounter,
|
||||
Substance,
|
||||
SearchParameter,
|
||||
Communication,
|
||||
OrderResponse,
|
||||
StatusResponse,
|
||||
VisionClaim,
|
||||
DeviceUseStatement,
|
||||
Reversal,
|
||||
MessageHeader,
|
||||
PharmacyClaim,
|
||||
ImmunizationRecommendation,
|
||||
Other,
|
||||
BodySite,
|
||||
Provenance,
|
||||
Questionnaire,
|
||||
ProfessionalClaim,
|
||||
ExplanationOfBenefit,
|
||||
InstitutionalClaim,
|
||||
DocumentManifest,
|
||||
Specimen,
|
||||
AllergyIntolerance,
|
||||
CarePlan,
|
||||
Goal,
|
||||
StructureDefinition,
|
||||
EnrollmentRequest,
|
||||
EpisodeOfCare,
|
||||
MedicationPrescription,
|
||||
OperationOutcome,
|
||||
Medication,
|
||||
Procedure,
|
||||
List,
|
||||
ConceptMap,
|
||||
Subscription,
|
||||
ValueSet,
|
||||
OperationDefinition,
|
||||
DocumentReference,
|
||||
Order,
|
||||
Immunization,
|
||||
Device,
|
||||
VisionPrescription,
|
||||
Media,
|
||||
Conformance,
|
||||
ProcedureRequest,
|
||||
EligibilityResponse,
|
||||
DeviceUseRequest,
|
||||
DeviceMetric,
|
||||
Flag,
|
||||
RelatedPerson,
|
||||
Practitioner,
|
||||
AppointmentResponse,
|
||||
Observation,
|
||||
MedicationAdministration,
|
||||
Slot,
|
||||
Contraindication,
|
||||
EnrollmentResponse,
|
||||
Binary,
|
||||
MedicationStatement,
|
||||
Contract,
|
||||
Person,
|
||||
CommunicationRequest,
|
||||
PendedRequest,
|
||||
RiskAssessment,
|
||||
Basic,
|
||||
StatusRequest,
|
||||
Group,
|
||||
PaymentNotice,
|
||||
Organization,
|
||||
ClaimResponse,
|
||||
EligibilityRequest,
|
||||
ProcessRequest,
|
||||
MedicationDispense,
|
||||
Supply,
|
||||
DiagnosticReport,
|
||||
ImagingStudy,
|
||||
ImagingObjectSelection,
|
||||
HealthcareService,
|
||||
CarePlan2,
|
||||
DataElement,
|
||||
ClinicalAssessment,
|
||||
DeviceComponent,
|
||||
FamilyMemberHistory,
|
||||
QuestionnaireAnswers,
|
||||
Readjudicate,
|
||||
NutritionOrder,
|
||||
Encounter,
|
||||
Substance,
|
||||
AuditEvent,
|
||||
SearchParameter,
|
||||
PaymentReconciliation,
|
||||
Communication,
|
||||
Condition,
|
||||
Composition,
|
||||
Bundle,
|
||||
DiagnosticOrder,
|
||||
Patient,
|
||||
OrderResponse,
|
||||
Coverage,
|
||||
ExtensionDefinition,
|
||||
DeviceUseStatement,
|
||||
ProcessResponse,
|
||||
NamingSystem,
|
||||
Schedule,
|
||||
SupportingDocumentation,
|
||||
Alert,
|
||||
ClinicalImpression,
|
||||
MessageHeader,
|
||||
Claim,
|
||||
ImmunizationRecommendation,
|
||||
Location,
|
||||
BodySite,
|
||||
Parameters;
|
||||
|
||||
|
||||
@ -111,206 +99,182 @@ 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 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 Profile:
|
||||
return "profile";
|
||||
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 Reversal:
|
||||
return "reversal";
|
||||
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 ReferralRequest:
|
||||
return "referralrequest";
|
||||
case Provenance:
|
||||
return "provenance";
|
||||
case Questionnaire:
|
||||
return "questionnaire";
|
||||
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 DocumentManifest:
|
||||
return "documentmanifest";
|
||||
case Specimen:
|
||||
return "specimen";
|
||||
case AllergyIntolerance:
|
||||
return "allergyintolerance";
|
||||
case CarePlan:
|
||||
return "careplan";
|
||||
case Goal:
|
||||
return "goal";
|
||||
case StructureDefinition:
|
||||
return "structuredefinition";
|
||||
case EnrollmentRequest:
|
||||
return "enrollmentrequest";
|
||||
case EpisodeOfCare:
|
||||
return "episodeofcare";
|
||||
case MedicationPrescription:
|
||||
return "medicationprescription";
|
||||
case OperationOutcome:
|
||||
return "operationoutcome";
|
||||
case Procedure:
|
||||
return "procedure";
|
||||
case List:
|
||||
return "list";
|
||||
case ConceptMap:
|
||||
return "conceptmap";
|
||||
case ValueSet:
|
||||
return "valueset";
|
||||
case OperationDefinition:
|
||||
return "operationdefinition";
|
||||
case Order:
|
||||
return "order";
|
||||
case Medication:
|
||||
return "medication";
|
||||
case Procedure:
|
||||
return "procedure";
|
||||
case List:
|
||||
return "list";
|
||||
case ConceptMap:
|
||||
return "conceptmap";
|
||||
case Subscription:
|
||||
return "subscription";
|
||||
case ValueSet:
|
||||
return "valueset";
|
||||
case OperationDefinition:
|
||||
return "operationdefinition";
|
||||
case DocumentReference:
|
||||
return "documentreference";
|
||||
case Order:
|
||||
return "order";
|
||||
case Immunization:
|
||||
return "immunization";
|
||||
case Device:
|
||||
return "device";
|
||||
case VisionPrescription:
|
||||
return "visionprescription";
|
||||
case Media:
|
||||
return "media";
|
||||
case 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 Conformance:
|
||||
return "conformance";
|
||||
case ProcedureRequest:
|
||||
return "procedurerequest";
|
||||
case EligibilityResponse:
|
||||
return "eligibilityresponse";
|
||||
case DeviceUseRequest:
|
||||
return "deviceuserequest";
|
||||
case DeviceMetric:
|
||||
return "devicemetric";
|
||||
case Flag:
|
||||
return "flag";
|
||||
case RelatedPerson:
|
||||
return "relatedperson";
|
||||
case Practitioner:
|
||||
return "practitioner";
|
||||
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 PendedRequest:
|
||||
return "pendedrequest";
|
||||
case Slot:
|
||||
return "slot";
|
||||
case Contraindication:
|
||||
return "contraindication";
|
||||
case EnrollmentResponse:
|
||||
return "enrollmentresponse";
|
||||
case Binary:
|
||||
return "binary";
|
||||
case MedicationStatement:
|
||||
return "medicationstatement";
|
||||
case Contract:
|
||||
return "contract";
|
||||
case Person:
|
||||
return "person";
|
||||
case CommunicationRequest:
|
||||
return "communicationrequest";
|
||||
case RiskAssessment:
|
||||
return "riskassessment";
|
||||
case 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 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 Group:
|
||||
return "group";
|
||||
case PaymentNotice:
|
||||
return "paymentnotice";
|
||||
case Organization:
|
||||
return "organization";
|
||||
case ClaimResponse:
|
||||
return "claimresponse";
|
||||
case EligibilityRequest:
|
||||
return "eligibilityrequest";
|
||||
case ProcessRequest:
|
||||
return "processrequest";
|
||||
case MedicationDispense:
|
||||
return "medicationdispense";
|
||||
case Supply:
|
||||
return "supply";
|
||||
case DiagnosticReport:
|
||||
return "diagnosticreport";
|
||||
case ImagingStudy:
|
||||
return "imagingstudy";
|
||||
case ImagingObjectSelection:
|
||||
return "imagingobjectselection";
|
||||
case HealthcareService:
|
||||
return "healthcareservice";
|
||||
case DataElement:
|
||||
return "dataelement";
|
||||
case DeviceComponent:
|
||||
return "devicecomponent";
|
||||
case FamilyMemberHistory:
|
||||
return "familymemberhistory";
|
||||
case QuestionnaireAnswers:
|
||||
return "questionnaireanswers";
|
||||
case NutritionOrder:
|
||||
return "nutritionorder";
|
||||
case Encounter:
|
||||
return "encounter";
|
||||
case Substance:
|
||||
return "substance";
|
||||
case AuditEvent:
|
||||
return "auditevent";
|
||||
case SearchParameter:
|
||||
return "searchparameter";
|
||||
case PaymentReconciliation:
|
||||
return "paymentreconciliation";
|
||||
case Communication:
|
||||
return "communication";
|
||||
case Condition:
|
||||
return "condition";
|
||||
case Composition:
|
||||
return "composition";
|
||||
case Bundle:
|
||||
return "bundle";
|
||||
case DiagnosticOrder:
|
||||
return "diagnosticorder";
|
||||
case Patient:
|
||||
return "patient";
|
||||
case 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 OrderResponse:
|
||||
return "orderresponse";
|
||||
case Coverage:
|
||||
return "coverage";
|
||||
case DeviceUseStatement:
|
||||
return "deviceusestatement";
|
||||
case ProcessResponse:
|
||||
return "processresponse";
|
||||
case NamingSystem:
|
||||
return "namingsystem";
|
||||
case Schedule:
|
||||
return "schedule";
|
||||
case ClinicalImpression:
|
||||
return "clinicalimpression";
|
||||
case MessageHeader:
|
||||
return "messageheader";
|
||||
case Claim:
|
||||
return "claim";
|
||||
case ImmunizationRecommendation:
|
||||
return "immunizationrecommendation";
|
||||
case Location:
|
||||
return "location";
|
||||
case BodySite:
|
||||
return "bodysite";
|
||||
case Parameters:
|
||||
return "parameters";
|
||||
}
|
||||
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -1,553 +0,0 @@
|
||||
package org.hl7.fhir.instance.model;
|
||||
|
||||
/*
|
||||
Copyright (c) 2011+, HL7, Inc.
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification,
|
||||
are permitted provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this
|
||||
list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimer in the documentation
|
||||
and/or other materials provided with the distribution.
|
||||
* Neither the name of HL7 nor the names of its contributors may be used to
|
||||
endorse or promote products derived from this software without specific
|
||||
prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
||||
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
||||
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
||||
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
||||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
*/
|
||||
|
||||
// Generated on Wed, Feb 18, 2015 12:09-0500 for FHIR v0.4.0
|
||||
|
||||
import java.util.*;
|
||||
|
||||
import org.hl7.fhir.instance.model.annotations.ResourceDef;
|
||||
import org.hl7.fhir.instance.model.annotations.SearchParamDefinition;
|
||||
import org.hl7.fhir.instance.model.annotations.Block;
|
||||
import org.hl7.fhir.instance.model.annotations.Child;
|
||||
import org.hl7.fhir.instance.model.annotations.Description;
|
||||
/**
|
||||
* This resource provides the request and response details for the resource for which the processing status is to be checked.
|
||||
*/
|
||||
@ResourceDef(name="StatusRequest", profile="http://hl7.org/fhir/Profile/StatusRequest")
|
||||
public class StatusRequest extends DomainResource {
|
||||
|
||||
/**
|
||||
* The Response Business Identifier.
|
||||
*/
|
||||
@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> 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)
|
||||
@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)
|
||||
@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)
|
||||
@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)
|
||||
@Description(shortDefinition="Insurer", formalDefinition="The Insurer who is target of the request." )
|
||||
protected Reference target;
|
||||
|
||||
/**
|
||||
* The actual object that is the target of the reference (The Insurer who is target of the request.)
|
||||
*/
|
||||
protected Organization targetTarget;
|
||||
|
||||
/**
|
||||
* The practitioner who is responsible for the services rendered to the patient.
|
||||
*/
|
||||
@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;
|
||||
|
||||
/**
|
||||
* The actual object that is the target of the reference (The practitioner who is responsible for the services rendered to the patient.)
|
||||
*/
|
||||
protected Practitioner providerTarget;
|
||||
|
||||
/**
|
||||
* The organization which is responsible for the services rendered to the patient.
|
||||
*/
|
||||
@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;
|
||||
|
||||
/**
|
||||
* The actual object that is the target of the reference (The organization which is responsible for the services rendered to the patient.)
|
||||
*/
|
||||
protected Organization organizationTarget;
|
||||
|
||||
/**
|
||||
* Reference of resource to reverse.
|
||||
*/
|
||||
@Child(name = "request", type = {}, order = 7, min = 0, max = 1)
|
||||
@Description(shortDefinition="Request reference", formalDefinition="Reference of resource to reverse." )
|
||||
protected Reference request;
|
||||
|
||||
/**
|
||||
* The actual object that is the target of the reference (Reference of resource to reverse.)
|
||||
*/
|
||||
protected Resource requestTarget;
|
||||
|
||||
/**
|
||||
* Reference of response to resource to reverse.
|
||||
*/
|
||||
@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;
|
||||
|
||||
/**
|
||||
* The actual object that is the target of the reference (Reference of response to resource to reverse.)
|
||||
*/
|
||||
protected Resource responseTarget;
|
||||
|
||||
private static final long serialVersionUID = 2018065278L;
|
||||
|
||||
public StatusRequest() {
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {@link #identifier} (The Response Business Identifier.)
|
||||
*/
|
||||
public List<Identifier> getIdentifier() {
|
||||
if (this.identifier == null)
|
||||
this.identifier = new ArrayList<Identifier>();
|
||||
return this.identifier;
|
||||
}
|
||||
|
||||
public boolean hasIdentifier() {
|
||||
if (this.identifier == null)
|
||||
return false;
|
||||
for (Identifier item : this.identifier)
|
||||
if (!item.isEmpty())
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {@link #identifier} (The Response Business Identifier.)
|
||||
*/
|
||||
// syntactic sugar
|
||||
public Identifier addIdentifier() { //3
|
||||
Identifier t = new Identifier();
|
||||
if (this.identifier == null)
|
||||
this.identifier = new ArrayList<Identifier>();
|
||||
this.identifier.add(t);
|
||||
return t;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {@link #ruleset} (The version of the style of resource contents. This should be mapped to the allowable profiles for this and supporting resources.)
|
||||
*/
|
||||
public Coding getRuleset() {
|
||||
if (this.ruleset == null)
|
||||
if (Configuration.errorOnAutoCreate())
|
||||
throw new Error("Attempt to auto-create StatusRequest.ruleset");
|
||||
else if (Configuration.doAutoCreate())
|
||||
this.ruleset = new Coding(); // cc
|
||||
return this.ruleset;
|
||||
}
|
||||
|
||||
public boolean hasRuleset() {
|
||||
return this.ruleset != null && !this.ruleset.isEmpty();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value {@link #ruleset} (The version of the style of resource contents. This should be mapped to the allowable profiles for this and supporting resources.)
|
||||
*/
|
||||
public StatusRequest setRuleset(Coding value) {
|
||||
this.ruleset = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {@link #originalRuleset} (The style (standard) and version of the original material which was converted into this resource.)
|
||||
*/
|
||||
public Coding getOriginalRuleset() {
|
||||
if (this.originalRuleset == null)
|
||||
if (Configuration.errorOnAutoCreate())
|
||||
throw new Error("Attempt to auto-create StatusRequest.originalRuleset");
|
||||
else if (Configuration.doAutoCreate())
|
||||
this.originalRuleset = new Coding(); // cc
|
||||
return this.originalRuleset;
|
||||
}
|
||||
|
||||
public boolean hasOriginalRuleset() {
|
||||
return this.originalRuleset != null && !this.originalRuleset.isEmpty();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value {@link #originalRuleset} (The style (standard) and version of the original material which was converted into this resource.)
|
||||
*/
|
||||
public StatusRequest setOriginalRuleset(Coding value) {
|
||||
this.originalRuleset = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {@link #created} (The date when this resource was created.). This is the underlying object with id, value and extensions. The accessor "getCreated" gives direct access to the value
|
||||
*/
|
||||
public DateTimeType getCreatedElement() {
|
||||
if (this.created == null)
|
||||
if (Configuration.errorOnAutoCreate())
|
||||
throw new Error("Attempt to auto-create StatusRequest.created");
|
||||
else if (Configuration.doAutoCreate())
|
||||
this.created = new DateTimeType(); // bb
|
||||
return this.created;
|
||||
}
|
||||
|
||||
public boolean hasCreatedElement() {
|
||||
return this.created != null && !this.created.isEmpty();
|
||||
}
|
||||
|
||||
public boolean hasCreated() {
|
||||
return this.created != null && !this.created.isEmpty();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value {@link #created} (The date when this resource was created.). This is the underlying object with id, value and extensions. The accessor "getCreated" gives direct access to the value
|
||||
*/
|
||||
public StatusRequest setCreatedElement(DateTimeType value) {
|
||||
this.created = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return The date when this resource was created.
|
||||
*/
|
||||
public Date getCreated() {
|
||||
return this.created == null ? null : this.created.getValue();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value The date when this resource was created.
|
||||
*/
|
||||
public StatusRequest setCreated(Date value) {
|
||||
if (value == null)
|
||||
this.created = null;
|
||||
else {
|
||||
if (this.created == null)
|
||||
this.created = new DateTimeType();
|
||||
this.created.setValue(value);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {@link #target} (The Insurer who is target of the request.)
|
||||
*/
|
||||
public Reference getTarget() {
|
||||
if (this.target == null)
|
||||
if (Configuration.errorOnAutoCreate())
|
||||
throw new Error("Attempt to auto-create StatusRequest.target");
|
||||
else if (Configuration.doAutoCreate())
|
||||
this.target = new Reference(); // cc
|
||||
return this.target;
|
||||
}
|
||||
|
||||
public boolean hasTarget() {
|
||||
return this.target != null && !this.target.isEmpty();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value {@link #target} (The Insurer who is target of the request.)
|
||||
*/
|
||||
public StatusRequest setTarget(Reference value) {
|
||||
this.target = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {@link #target} The actual object that is the target of the reference. The reference library doesn't populate this, but you can use it to hold the resource if you resolve it. (The Insurer who is target of the request.)
|
||||
*/
|
||||
public Organization getTargetTarget() {
|
||||
if (this.targetTarget == null)
|
||||
if (Configuration.errorOnAutoCreate())
|
||||
throw new Error("Attempt to auto-create StatusRequest.target");
|
||||
else if (Configuration.doAutoCreate())
|
||||
this.targetTarget = new Organization(); // aa
|
||||
return this.targetTarget;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value {@link #target} The actual object that is the target of the reference. The reference library doesn't use these, but you can use it to hold the resource if you resolve it. (The Insurer who is target of the request.)
|
||||
*/
|
||||
public StatusRequest setTargetTarget(Organization value) {
|
||||
this.targetTarget = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {@link #provider} (The practitioner who is responsible for the services rendered to the patient.)
|
||||
*/
|
||||
public Reference getProvider() {
|
||||
if (this.provider == null)
|
||||
if (Configuration.errorOnAutoCreate())
|
||||
throw new Error("Attempt to auto-create StatusRequest.provider");
|
||||
else if (Configuration.doAutoCreate())
|
||||
this.provider = new Reference(); // cc
|
||||
return this.provider;
|
||||
}
|
||||
|
||||
public boolean hasProvider() {
|
||||
return this.provider != null && !this.provider.isEmpty();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value {@link #provider} (The practitioner who is responsible for the services rendered to the patient.)
|
||||
*/
|
||||
public StatusRequest setProvider(Reference value) {
|
||||
this.provider = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {@link #provider} The actual object that is the target of the reference. The reference library doesn't populate this, but you can use it to hold the resource if you resolve it. (The practitioner who is responsible for the services rendered to the patient.)
|
||||
*/
|
||||
public Practitioner getProviderTarget() {
|
||||
if (this.providerTarget == null)
|
||||
if (Configuration.errorOnAutoCreate())
|
||||
throw new Error("Attempt to auto-create StatusRequest.provider");
|
||||
else if (Configuration.doAutoCreate())
|
||||
this.providerTarget = new Practitioner(); // aa
|
||||
return this.providerTarget;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value {@link #provider} The actual object that is the target of the reference. The reference library doesn't use these, but you can use it to hold the resource if you resolve it. (The practitioner who is responsible for the services rendered to the patient.)
|
||||
*/
|
||||
public StatusRequest setProviderTarget(Practitioner value) {
|
||||
this.providerTarget = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {@link #organization} (The organization which is responsible for the services rendered to the patient.)
|
||||
*/
|
||||
public Reference getOrganization() {
|
||||
if (this.organization == null)
|
||||
if (Configuration.errorOnAutoCreate())
|
||||
throw new Error("Attempt to auto-create StatusRequest.organization");
|
||||
else if (Configuration.doAutoCreate())
|
||||
this.organization = new Reference(); // cc
|
||||
return this.organization;
|
||||
}
|
||||
|
||||
public boolean hasOrganization() {
|
||||
return this.organization != null && !this.organization.isEmpty();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value {@link #organization} (The organization which is responsible for the services rendered to the patient.)
|
||||
*/
|
||||
public StatusRequest setOrganization(Reference value) {
|
||||
this.organization = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {@link #organization} 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 which is responsible for the services rendered to the patient.)
|
||||
*/
|
||||
public Organization getOrganizationTarget() {
|
||||
if (this.organizationTarget == null)
|
||||
if (Configuration.errorOnAutoCreate())
|
||||
throw new Error("Attempt to auto-create StatusRequest.organization");
|
||||
else if (Configuration.doAutoCreate())
|
||||
this.organizationTarget = new Organization(); // aa
|
||||
return this.organizationTarget;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value {@link #organization} 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 which is responsible for the services rendered to the patient.)
|
||||
*/
|
||||
public StatusRequest setOrganizationTarget(Organization value) {
|
||||
this.organizationTarget = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {@link #request} (Reference of resource to reverse.)
|
||||
*/
|
||||
public Reference getRequest() {
|
||||
if (this.request == null)
|
||||
if (Configuration.errorOnAutoCreate())
|
||||
throw new Error("Attempt to auto-create StatusRequest.request");
|
||||
else if (Configuration.doAutoCreate())
|
||||
this.request = new Reference(); // cc
|
||||
return this.request;
|
||||
}
|
||||
|
||||
public boolean hasRequest() {
|
||||
return this.request != null && !this.request.isEmpty();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value {@link #request} (Reference of resource to reverse.)
|
||||
*/
|
||||
public StatusRequest setRequest(Reference value) {
|
||||
this.request = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {@link #request} 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. (Reference of resource to reverse.)
|
||||
*/
|
||||
public Resource getRequestTarget() {
|
||||
return this.requestTarget;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value {@link #request} 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. (Reference of resource to reverse.)
|
||||
*/
|
||||
public StatusRequest setRequestTarget(Resource value) {
|
||||
this.requestTarget = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {@link #response} (Reference of response to resource to reverse.)
|
||||
*/
|
||||
public Reference getResponse() {
|
||||
if (this.response == null)
|
||||
if (Configuration.errorOnAutoCreate())
|
||||
throw new Error("Attempt to auto-create StatusRequest.response");
|
||||
else if (Configuration.doAutoCreate())
|
||||
this.response = new Reference(); // cc
|
||||
return this.response;
|
||||
}
|
||||
|
||||
public boolean hasResponse() {
|
||||
return this.response != null && !this.response.isEmpty();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value {@link #response} (Reference of response to resource to reverse.)
|
||||
*/
|
||||
public StatusRequest setResponse(Reference value) {
|
||||
this.response = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {@link #response} 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. (Reference of response to resource to reverse.)
|
||||
*/
|
||||
public Resource getResponseTarget() {
|
||||
return this.responseTarget;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value {@link #response} 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. (Reference of response to resource to reverse.)
|
||||
*/
|
||||
public StatusRequest setResponseTarget(Resource value) {
|
||||
this.responseTarget = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
protected void listChildren(List<Property> childrenList) {
|
||||
super.listChildren(childrenList);
|
||||
childrenList.add(new Property("identifier", "Identifier", "The Response Business Identifier.", 0, java.lang.Integer.MAX_VALUE, identifier));
|
||||
childrenList.add(new Property("ruleset", "Coding", "The version of the style of resource contents. This should be mapped to the allowable profiles for this and supporting resources.", 0, java.lang.Integer.MAX_VALUE, ruleset));
|
||||
childrenList.add(new Property("originalRuleset", "Coding", "The style (standard) and version of the original material which was converted into this resource.", 0, java.lang.Integer.MAX_VALUE, originalRuleset));
|
||||
childrenList.add(new Property("created", "dateTime", "The date when this resource was created.", 0, java.lang.Integer.MAX_VALUE, created));
|
||||
childrenList.add(new Property("target", "Reference(Organization)", "The Insurer who is target of the request.", 0, java.lang.Integer.MAX_VALUE, target));
|
||||
childrenList.add(new Property("provider", "Reference(Practitioner)", "The practitioner who is responsible for the services rendered to the patient.", 0, java.lang.Integer.MAX_VALUE, provider));
|
||||
childrenList.add(new Property("organization", "Reference(Organization)", "The organization which is responsible for the services rendered to the patient.", 0, java.lang.Integer.MAX_VALUE, organization));
|
||||
childrenList.add(new Property("request", "Reference(Any)", "Reference of resource to reverse.", 0, java.lang.Integer.MAX_VALUE, request));
|
||||
childrenList.add(new Property("response", "Reference(Any)", "Reference of response to resource to reverse.", 0, java.lang.Integer.MAX_VALUE, response));
|
||||
}
|
||||
|
||||
public StatusRequest copy() {
|
||||
StatusRequest dst = new StatusRequest();
|
||||
copyValues(dst);
|
||||
if (identifier != null) {
|
||||
dst.identifier = new ArrayList<Identifier>();
|
||||
for (Identifier i : identifier)
|
||||
dst.identifier.add(i.copy());
|
||||
};
|
||||
dst.ruleset = ruleset == null ? null : ruleset.copy();
|
||||
dst.originalRuleset = originalRuleset == null ? null : originalRuleset.copy();
|
||||
dst.created = created == null ? null : created.copy();
|
||||
dst.target = target == null ? null : target.copy();
|
||||
dst.provider = provider == null ? null : provider.copy();
|
||||
dst.organization = organization == null ? null : organization.copy();
|
||||
dst.request = request == null ? null : request.copy();
|
||||
dst.response = response == null ? null : response.copy();
|
||||
return dst;
|
||||
}
|
||||
|
||||
protected StatusRequest typedCopy() {
|
||||
return copy();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equalsDeep(Base other) {
|
||||
if (!super.equalsDeep(other))
|
||||
return false;
|
||||
if (!(other instanceof StatusRequest))
|
||||
return false;
|
||||
StatusRequest o = (StatusRequest) other;
|
||||
return compareDeep(identifier, o.identifier, true) && compareDeep(ruleset, o.ruleset, true) && compareDeep(originalRuleset, o.originalRuleset, true)
|
||||
&& compareDeep(created, o.created, true) && compareDeep(target, o.target, true) && compareDeep(provider, o.provider, true)
|
||||
&& compareDeep(organization, o.organization, true) && compareDeep(request, o.request, true) && compareDeep(response, o.response, true)
|
||||
;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equalsShallow(Base other) {
|
||||
if (!super.equalsShallow(other))
|
||||
return false;
|
||||
if (!(other instanceof StatusRequest))
|
||||
return false;
|
||||
StatusRequest o = (StatusRequest) other;
|
||||
return compareValues(created, o.created, true);
|
||||
}
|
||||
|
||||
public boolean isEmpty() {
|
||||
return super.isEmpty() && (identifier == null || identifier.isEmpty()) && (ruleset == null || ruleset.isEmpty())
|
||||
&& (originalRuleset == null || originalRuleset.isEmpty()) && (created == null || created.isEmpty())
|
||||
&& (target == null || target.isEmpty()) && (provider == null || provider.isEmpty()) && (organization == null || organization.isEmpty())
|
||||
&& (request == null || request.isEmpty()) && (response == null || response.isEmpty());
|
||||
}
|
||||
|
||||
@Override
|
||||
public ResourceType getResourceType() {
|
||||
return ResourceType.StatusRequest;
|
||||
}
|
||||
|
||||
@SearchParamDefinition(name="identifier", path="StatusRequest.identifier", description="The business identifier of the Eligibility", type="token" )
|
||||
public static final String SP_IDENTIFIER = "identifier";
|
||||
|
||||
}
|
||||
|
@ -1,851 +0,0 @@
|
||||
package org.hl7.fhir.instance.model;
|
||||
|
||||
/*
|
||||
Copyright (c) 2011+, HL7, Inc.
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification,
|
||||
are permitted provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this
|
||||
list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimer in the documentation
|
||||
and/or other materials provided with the distribution.
|
||||
* Neither the name of HL7 nor the names of its contributors may be used to
|
||||
endorse or promote products derived from this software without specific
|
||||
prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
||||
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
||||
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
||||
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
||||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
*/
|
||||
|
||||
// Generated on Wed, Feb 18, 2015 12:09-0500 for FHIR v0.4.0
|
||||
|
||||
import java.util.*;
|
||||
|
||||
import org.hl7.fhir.utilities.Utilities;
|
||||
import org.hl7.fhir.instance.model.annotations.ResourceDef;
|
||||
import org.hl7.fhir.instance.model.annotations.SearchParamDefinition;
|
||||
import org.hl7.fhir.instance.model.annotations.Block;
|
||||
import org.hl7.fhir.instance.model.annotations.Child;
|
||||
import org.hl7.fhir.instance.model.annotations.Description;
|
||||
/**
|
||||
* This resource provides processing status, errors and notes from the processing of a resource.
|
||||
*/
|
||||
@ResourceDef(name="StatusResponse", profile="http://hl7.org/fhir/Profile/StatusResponse")
|
||||
public class StatusResponse extends DomainResource {
|
||||
|
||||
@Block()
|
||||
public static class StatusResponseNotesComponent extends BackboneElement {
|
||||
/**
|
||||
* The note purpose: Print/Display.
|
||||
*/
|
||||
@Child(name="type", type={Coding.class}, order=1, min=0, max=1)
|
||||
@Description(shortDefinition="display | print | printoper", formalDefinition="The note purpose: Print/Display." )
|
||||
protected Coding type;
|
||||
|
||||
/**
|
||||
* The note text.
|
||||
*/
|
||||
@Child(name="text", type={StringType.class}, order=2, min=0, max=1)
|
||||
@Description(shortDefinition="Notes text", formalDefinition="The note text." )
|
||||
protected StringType text;
|
||||
|
||||
private static final long serialVersionUID = 129959202L;
|
||||
|
||||
public StatusResponseNotesComponent() {
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {@link #type} (The note purpose: Print/Display.)
|
||||
*/
|
||||
public Coding getType() {
|
||||
if (this.type == null)
|
||||
if (Configuration.errorOnAutoCreate())
|
||||
throw new Error("Attempt to auto-create StatusResponseNotesComponent.type");
|
||||
else if (Configuration.doAutoCreate())
|
||||
this.type = new Coding(); // cc
|
||||
return this.type;
|
||||
}
|
||||
|
||||
public boolean hasType() {
|
||||
return this.type != null && !this.type.isEmpty();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value {@link #type} (The note purpose: Print/Display.)
|
||||
*/
|
||||
public StatusResponseNotesComponent setType(Coding value) {
|
||||
this.type = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {@link #text} (The note text.). This is the underlying object with id, value and extensions. The accessor "getText" gives direct access to the value
|
||||
*/
|
||||
public StringType getTextElement() {
|
||||
if (this.text == null)
|
||||
if (Configuration.errorOnAutoCreate())
|
||||
throw new Error("Attempt to auto-create StatusResponseNotesComponent.text");
|
||||
else if (Configuration.doAutoCreate())
|
||||
this.text = new StringType(); // bb
|
||||
return this.text;
|
||||
}
|
||||
|
||||
public boolean hasTextElement() {
|
||||
return this.text != null && !this.text.isEmpty();
|
||||
}
|
||||
|
||||
public boolean hasText() {
|
||||
return this.text != null && !this.text.isEmpty();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value {@link #text} (The note text.). This is the underlying object with id, value and extensions. The accessor "getText" gives direct access to the value
|
||||
*/
|
||||
public StatusResponseNotesComponent setTextElement(StringType value) {
|
||||
this.text = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return The note text.
|
||||
*/
|
||||
public String getText() {
|
||||
return this.text == null ? null : this.text.getValue();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value The note text.
|
||||
*/
|
||||
public StatusResponseNotesComponent setText(String value) {
|
||||
if (Utilities.noString(value))
|
||||
this.text = null;
|
||||
else {
|
||||
if (this.text == null)
|
||||
this.text = new StringType();
|
||||
this.text.setValue(value);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
protected void listChildren(List<Property> childrenList) {
|
||||
super.listChildren(childrenList);
|
||||
childrenList.add(new Property("type", "Coding", "The note purpose: Print/Display.", 0, java.lang.Integer.MAX_VALUE, type));
|
||||
childrenList.add(new Property("text", "string", "The note text.", 0, java.lang.Integer.MAX_VALUE, text));
|
||||
}
|
||||
|
||||
public StatusResponseNotesComponent copy() {
|
||||
StatusResponseNotesComponent dst = new StatusResponseNotesComponent();
|
||||
copyValues(dst);
|
||||
dst.type = type == null ? null : type.copy();
|
||||
dst.text = text == null ? null : text.copy();
|
||||
return dst;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equalsDeep(Base other) {
|
||||
if (!super.equalsDeep(other))
|
||||
return false;
|
||||
if (!(other instanceof StatusResponseNotesComponent))
|
||||
return false;
|
||||
StatusResponseNotesComponent o = (StatusResponseNotesComponent) other;
|
||||
return compareDeep(type, o.type, true) && compareDeep(text, o.text, true);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equalsShallow(Base other) {
|
||||
if (!super.equalsShallow(other))
|
||||
return false;
|
||||
if (!(other instanceof StatusResponseNotesComponent))
|
||||
return false;
|
||||
StatusResponseNotesComponent o = (StatusResponseNotesComponent) other;
|
||||
return compareValues(text, o.text, true);
|
||||
}
|
||||
|
||||
public boolean isEmpty() {
|
||||
return super.isEmpty() && (type == null || type.isEmpty()) && (text == null || text.isEmpty())
|
||||
;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* The Response Business Identifier.
|
||||
*/
|
||||
@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> identifier;
|
||||
|
||||
/**
|
||||
* Original request resource reference.
|
||||
*/
|
||||
@Child(name = "request", type = {}, order = 1, min = 0, max = 1)
|
||||
@Description(shortDefinition="Request reference", formalDefinition="Original request resource reference." )
|
||||
protected Reference request;
|
||||
|
||||
/**
|
||||
* The actual object that is the target of the reference (Original request resource reference.)
|
||||
*/
|
||||
protected Resource requestTarget;
|
||||
|
||||
/**
|
||||
* Transaction status: error, complete, held.
|
||||
*/
|
||||
@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)
|
||||
@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)
|
||||
@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)
|
||||
@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)
|
||||
@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)
|
||||
@Description(shortDefinition="Insurer", formalDefinition="The Insurer who produced this adjudicated response." )
|
||||
protected Reference organization;
|
||||
|
||||
/**
|
||||
* The actual object that is the target of the reference (The Insurer who produced this adjudicated response.)
|
||||
*/
|
||||
protected Organization organizationTarget;
|
||||
|
||||
/**
|
||||
* The practitioner who is responsible for the services rendered to the patient.
|
||||
*/
|
||||
@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;
|
||||
|
||||
/**
|
||||
* The actual object that is the target of the reference (The practitioner who is responsible for the services rendered to the patient.)
|
||||
*/
|
||||
protected Practitioner requestProviderTarget;
|
||||
|
||||
/**
|
||||
* The organization which is responsible for the services rendered to the patient.
|
||||
*/
|
||||
@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;
|
||||
|
||||
/**
|
||||
* The actual object that is the target of the reference (The organization which is responsible for the services rendered to the patient.)
|
||||
*/
|
||||
protected Organization requestOrganizationTarget;
|
||||
|
||||
/**
|
||||
* The form to be used for printing the content.
|
||||
*/
|
||||
@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)
|
||||
@Description(shortDefinition="Notes", formalDefinition="Suite of processing note or additional requirements is the processing has been held." )
|
||||
protected List<StatusResponseNotesComponent> notes;
|
||||
|
||||
/**
|
||||
* Processing errors.
|
||||
*/
|
||||
@Child(name = "error", type = {Coding.class}, order = 12, min = 0, max = Child.MAX_UNLIMITED)
|
||||
@Description(shortDefinition="Error code", formalDefinition="Processing errors." )
|
||||
protected List<Coding> error;
|
||||
|
||||
private static final long serialVersionUID = 1671399476L;
|
||||
|
||||
public StatusResponse() {
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {@link #identifier} (The Response Business Identifier.)
|
||||
*/
|
||||
public List<Identifier> getIdentifier() {
|
||||
if (this.identifier == null)
|
||||
this.identifier = new ArrayList<Identifier>();
|
||||
return this.identifier;
|
||||
}
|
||||
|
||||
public boolean hasIdentifier() {
|
||||
if (this.identifier == null)
|
||||
return false;
|
||||
for (Identifier item : this.identifier)
|
||||
if (!item.isEmpty())
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {@link #identifier} (The Response Business Identifier.)
|
||||
*/
|
||||
// syntactic sugar
|
||||
public Identifier addIdentifier() { //3
|
||||
Identifier t = new Identifier();
|
||||
if (this.identifier == null)
|
||||
this.identifier = new ArrayList<Identifier>();
|
||||
this.identifier.add(t);
|
||||
return t;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {@link #request} (Original request resource reference.)
|
||||
*/
|
||||
public Reference getRequest() {
|
||||
if (this.request == null)
|
||||
if (Configuration.errorOnAutoCreate())
|
||||
throw new Error("Attempt to auto-create StatusResponse.request");
|
||||
else if (Configuration.doAutoCreate())
|
||||
this.request = new Reference(); // cc
|
||||
return this.request;
|
||||
}
|
||||
|
||||
public boolean hasRequest() {
|
||||
return this.request != null && !this.request.isEmpty();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value {@link #request} (Original request resource reference.)
|
||||
*/
|
||||
public StatusResponse setRequest(Reference value) {
|
||||
this.request = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {@link #request} 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. (Original request resource reference.)
|
||||
*/
|
||||
public Resource getRequestTarget() {
|
||||
return this.requestTarget;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value {@link #request} 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. (Original request resource reference.)
|
||||
*/
|
||||
public StatusResponse setRequestTarget(Resource value) {
|
||||
this.requestTarget = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {@link #outcome} (Transaction status: error, complete, held.)
|
||||
*/
|
||||
public Coding getOutcome() {
|
||||
if (this.outcome == null)
|
||||
if (Configuration.errorOnAutoCreate())
|
||||
throw new Error("Attempt to auto-create StatusResponse.outcome");
|
||||
else if (Configuration.doAutoCreate())
|
||||
this.outcome = new Coding(); // cc
|
||||
return this.outcome;
|
||||
}
|
||||
|
||||
public boolean hasOutcome() {
|
||||
return this.outcome != null && !this.outcome.isEmpty();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value {@link #outcome} (Transaction status: error, complete, held.)
|
||||
*/
|
||||
public StatusResponse setOutcome(Coding value) {
|
||||
this.outcome = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {@link #disposition} (A description of the status of the adjudication or processing.). This is the underlying object with id, value and extensions. The accessor "getDisposition" gives direct access to the value
|
||||
*/
|
||||
public StringType getDispositionElement() {
|
||||
if (this.disposition == null)
|
||||
if (Configuration.errorOnAutoCreate())
|
||||
throw new Error("Attempt to auto-create StatusResponse.disposition");
|
||||
else if (Configuration.doAutoCreate())
|
||||
this.disposition = new StringType(); // bb
|
||||
return this.disposition;
|
||||
}
|
||||
|
||||
public boolean hasDispositionElement() {
|
||||
return this.disposition != null && !this.disposition.isEmpty();
|
||||
}
|
||||
|
||||
public boolean hasDisposition() {
|
||||
return this.disposition != null && !this.disposition.isEmpty();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value {@link #disposition} (A description of the status of the adjudication or processing.). This is the underlying object with id, value and extensions. The accessor "getDisposition" gives direct access to the value
|
||||
*/
|
||||
public StatusResponse setDispositionElement(StringType value) {
|
||||
this.disposition = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return A description of the status of the adjudication or processing.
|
||||
*/
|
||||
public String getDisposition() {
|
||||
return this.disposition == null ? null : this.disposition.getValue();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value A description of the status of the adjudication or processing.
|
||||
*/
|
||||
public StatusResponse setDisposition(String value) {
|
||||
if (Utilities.noString(value))
|
||||
this.disposition = null;
|
||||
else {
|
||||
if (this.disposition == null)
|
||||
this.disposition = new StringType();
|
||||
this.disposition.setValue(value);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {@link #ruleset} (The version of the style of resource contents. This should be mapped to the allowable profiles for this and supporting resources.)
|
||||
*/
|
||||
public Coding getRuleset() {
|
||||
if (this.ruleset == null)
|
||||
if (Configuration.errorOnAutoCreate())
|
||||
throw new Error("Attempt to auto-create StatusResponse.ruleset");
|
||||
else if (Configuration.doAutoCreate())
|
||||
this.ruleset = new Coding(); // cc
|
||||
return this.ruleset;
|
||||
}
|
||||
|
||||
public boolean hasRuleset() {
|
||||
return this.ruleset != null && !this.ruleset.isEmpty();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value {@link #ruleset} (The version of the style of resource contents. This should be mapped to the allowable profiles for this and supporting resources.)
|
||||
*/
|
||||
public StatusResponse setRuleset(Coding value) {
|
||||
this.ruleset = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {@link #originalRuleset} (The style (standard) and version of the original material which was converted into this resource.)
|
||||
*/
|
||||
public Coding getOriginalRuleset() {
|
||||
if (this.originalRuleset == null)
|
||||
if (Configuration.errorOnAutoCreate())
|
||||
throw new Error("Attempt to auto-create StatusResponse.originalRuleset");
|
||||
else if (Configuration.doAutoCreate())
|
||||
this.originalRuleset = new Coding(); // cc
|
||||
return this.originalRuleset;
|
||||
}
|
||||
|
||||
public boolean hasOriginalRuleset() {
|
||||
return this.originalRuleset != null && !this.originalRuleset.isEmpty();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value {@link #originalRuleset} (The style (standard) and version of the original material which was converted into this resource.)
|
||||
*/
|
||||
public StatusResponse setOriginalRuleset(Coding value) {
|
||||
this.originalRuleset = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {@link #created} (The date when the enclosed suite of services were performed or completed.). This is the underlying object with id, value and extensions. The accessor "getCreated" gives direct access to the value
|
||||
*/
|
||||
public DateTimeType getCreatedElement() {
|
||||
if (this.created == null)
|
||||
if (Configuration.errorOnAutoCreate())
|
||||
throw new Error("Attempt to auto-create StatusResponse.created");
|
||||
else if (Configuration.doAutoCreate())
|
||||
this.created = new DateTimeType(); // bb
|
||||
return this.created;
|
||||
}
|
||||
|
||||
public boolean hasCreatedElement() {
|
||||
return this.created != null && !this.created.isEmpty();
|
||||
}
|
||||
|
||||
public boolean hasCreated() {
|
||||
return this.created != null && !this.created.isEmpty();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value {@link #created} (The date when the enclosed suite of services were performed or completed.). This is the underlying object with id, value and extensions. The accessor "getCreated" gives direct access to the value
|
||||
*/
|
||||
public StatusResponse setCreatedElement(DateTimeType value) {
|
||||
this.created = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return The date when the enclosed suite of services were performed or completed.
|
||||
*/
|
||||
public Date getCreated() {
|
||||
return this.created == null ? null : this.created.getValue();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value The date when the enclosed suite of services were performed or completed.
|
||||
*/
|
||||
public StatusResponse setCreated(Date value) {
|
||||
if (value == null)
|
||||
this.created = null;
|
||||
else {
|
||||
if (this.created == null)
|
||||
this.created = new DateTimeType();
|
||||
this.created.setValue(value);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {@link #organization} (The Insurer who produced this adjudicated response.)
|
||||
*/
|
||||
public Reference getOrganization() {
|
||||
if (this.organization == null)
|
||||
if (Configuration.errorOnAutoCreate())
|
||||
throw new Error("Attempt to auto-create StatusResponse.organization");
|
||||
else if (Configuration.doAutoCreate())
|
||||
this.organization = new Reference(); // cc
|
||||
return this.organization;
|
||||
}
|
||||
|
||||
public boolean hasOrganization() {
|
||||
return this.organization != null && !this.organization.isEmpty();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value {@link #organization} (The Insurer who produced this adjudicated response.)
|
||||
*/
|
||||
public StatusResponse setOrganization(Reference value) {
|
||||
this.organization = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {@link #organization} 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 Insurer who produced this adjudicated response.)
|
||||
*/
|
||||
public Organization getOrganizationTarget() {
|
||||
if (this.organizationTarget == null)
|
||||
if (Configuration.errorOnAutoCreate())
|
||||
throw new Error("Attempt to auto-create StatusResponse.organization");
|
||||
else if (Configuration.doAutoCreate())
|
||||
this.organizationTarget = new Organization(); // aa
|
||||
return this.organizationTarget;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value {@link #organization} 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 Insurer who produced this adjudicated response.)
|
||||
*/
|
||||
public StatusResponse setOrganizationTarget(Organization value) {
|
||||
this.organizationTarget = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {@link #requestProvider} (The practitioner who is responsible for the services rendered to the patient.)
|
||||
*/
|
||||
public Reference getRequestProvider() {
|
||||
if (this.requestProvider == null)
|
||||
if (Configuration.errorOnAutoCreate())
|
||||
throw new Error("Attempt to auto-create StatusResponse.requestProvider");
|
||||
else if (Configuration.doAutoCreate())
|
||||
this.requestProvider = new Reference(); // cc
|
||||
return this.requestProvider;
|
||||
}
|
||||
|
||||
public boolean hasRequestProvider() {
|
||||
return this.requestProvider != null && !this.requestProvider.isEmpty();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value {@link #requestProvider} (The practitioner who is responsible for the services rendered to the patient.)
|
||||
*/
|
||||
public StatusResponse setRequestProvider(Reference value) {
|
||||
this.requestProvider = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {@link #requestProvider} The actual object that is the target of the reference. The reference library doesn't populate this, but you can use it to hold the resource if you resolve it. (The practitioner who is responsible for the services rendered to the patient.)
|
||||
*/
|
||||
public Practitioner getRequestProviderTarget() {
|
||||
if (this.requestProviderTarget == null)
|
||||
if (Configuration.errorOnAutoCreate())
|
||||
throw new Error("Attempt to auto-create StatusResponse.requestProvider");
|
||||
else if (Configuration.doAutoCreate())
|
||||
this.requestProviderTarget = new Practitioner(); // aa
|
||||
return this.requestProviderTarget;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value {@link #requestProvider} The actual object that is the target of the reference. The reference library doesn't use these, but you can use it to hold the resource if you resolve it. (The practitioner who is responsible for the services rendered to the patient.)
|
||||
*/
|
||||
public StatusResponse setRequestProviderTarget(Practitioner value) {
|
||||
this.requestProviderTarget = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {@link #requestOrganization} (The organization which is responsible for the services rendered to the patient.)
|
||||
*/
|
||||
public Reference getRequestOrganization() {
|
||||
if (this.requestOrganization == null)
|
||||
if (Configuration.errorOnAutoCreate())
|
||||
throw new Error("Attempt to auto-create StatusResponse.requestOrganization");
|
||||
else if (Configuration.doAutoCreate())
|
||||
this.requestOrganization = new Reference(); // cc
|
||||
return this.requestOrganization;
|
||||
}
|
||||
|
||||
public boolean hasRequestOrganization() {
|
||||
return this.requestOrganization != null && !this.requestOrganization.isEmpty();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value {@link #requestOrganization} (The organization which is responsible for the services rendered to the patient.)
|
||||
*/
|
||||
public StatusResponse setRequestOrganization(Reference value) {
|
||||
this.requestOrganization = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {@link #requestOrganization} 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 which is responsible for the services rendered to the patient.)
|
||||
*/
|
||||
public Organization getRequestOrganizationTarget() {
|
||||
if (this.requestOrganizationTarget == null)
|
||||
if (Configuration.errorOnAutoCreate())
|
||||
throw new Error("Attempt to auto-create StatusResponse.requestOrganization");
|
||||
else if (Configuration.doAutoCreate())
|
||||
this.requestOrganizationTarget = new Organization(); // aa
|
||||
return this.requestOrganizationTarget;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value {@link #requestOrganization} 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 which is responsible for the services rendered to the patient.)
|
||||
*/
|
||||
public StatusResponse setRequestOrganizationTarget(Organization value) {
|
||||
this.requestOrganizationTarget = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {@link #form} (The form to be used for printing the content.)
|
||||
*/
|
||||
public Coding getForm() {
|
||||
if (this.form == null)
|
||||
if (Configuration.errorOnAutoCreate())
|
||||
throw new Error("Attempt to auto-create StatusResponse.form");
|
||||
else if (Configuration.doAutoCreate())
|
||||
this.form = new Coding(); // cc
|
||||
return this.form;
|
||||
}
|
||||
|
||||
public boolean hasForm() {
|
||||
return this.form != null && !this.form.isEmpty();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value {@link #form} (The form to be used for printing the content.)
|
||||
*/
|
||||
public StatusResponse setForm(Coding value) {
|
||||
this.form = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {@link #notes} (Suite of processing note or additional requirements is the processing has been held.)
|
||||
*/
|
||||
public List<StatusResponseNotesComponent> getNotes() {
|
||||
if (this.notes == null)
|
||||
this.notes = new ArrayList<StatusResponseNotesComponent>();
|
||||
return this.notes;
|
||||
}
|
||||
|
||||
public boolean hasNotes() {
|
||||
if (this.notes == null)
|
||||
return false;
|
||||
for (StatusResponseNotesComponent item : this.notes)
|
||||
if (!item.isEmpty())
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {@link #notes} (Suite of processing note or additional requirements is the processing has been held.)
|
||||
*/
|
||||
// syntactic sugar
|
||||
public StatusResponseNotesComponent addNotes() { //3
|
||||
StatusResponseNotesComponent t = new StatusResponseNotesComponent();
|
||||
if (this.notes == null)
|
||||
this.notes = new ArrayList<StatusResponseNotesComponent>();
|
||||
this.notes.add(t);
|
||||
return t;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {@link #error} (Processing errors.)
|
||||
*/
|
||||
public List<Coding> getError() {
|
||||
if (this.error == null)
|
||||
this.error = new ArrayList<Coding>();
|
||||
return this.error;
|
||||
}
|
||||
|
||||
public boolean hasError() {
|
||||
if (this.error == null)
|
||||
return false;
|
||||
for (Coding item : this.error)
|
||||
if (!item.isEmpty())
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {@link #error} (Processing errors.)
|
||||
*/
|
||||
// syntactic sugar
|
||||
public Coding addError() { //3
|
||||
Coding t = new Coding();
|
||||
if (this.error == null)
|
||||
this.error = new ArrayList<Coding>();
|
||||
this.error.add(t);
|
||||
return t;
|
||||
}
|
||||
|
||||
protected void listChildren(List<Property> childrenList) {
|
||||
super.listChildren(childrenList);
|
||||
childrenList.add(new Property("identifier", "Identifier", "The Response Business Identifier.", 0, java.lang.Integer.MAX_VALUE, identifier));
|
||||
childrenList.add(new Property("request", "Reference(Any)", "Original request resource reference.", 0, java.lang.Integer.MAX_VALUE, request));
|
||||
childrenList.add(new Property("outcome", "Coding", "Transaction status: error, complete, held.", 0, java.lang.Integer.MAX_VALUE, outcome));
|
||||
childrenList.add(new Property("disposition", "string", "A description of the status of the adjudication or processing.", 0, java.lang.Integer.MAX_VALUE, disposition));
|
||||
childrenList.add(new Property("ruleset", "Coding", "The version of the style of resource contents. This should be mapped to the allowable profiles for this and supporting resources.", 0, java.lang.Integer.MAX_VALUE, ruleset));
|
||||
childrenList.add(new Property("originalRuleset", "Coding", "The style (standard) and version of the original material which was converted into this resource.", 0, java.lang.Integer.MAX_VALUE, originalRuleset));
|
||||
childrenList.add(new Property("created", "dateTime", "The date when the enclosed suite of services were performed or completed.", 0, java.lang.Integer.MAX_VALUE, created));
|
||||
childrenList.add(new Property("organization", "Reference(Organization)", "The Insurer who produced this adjudicated response.", 0, java.lang.Integer.MAX_VALUE, organization));
|
||||
childrenList.add(new Property("requestProvider", "Reference(Practitioner)", "The practitioner who is responsible for the services rendered to the patient.", 0, java.lang.Integer.MAX_VALUE, requestProvider));
|
||||
childrenList.add(new Property("requestOrganization", "Reference(Organization)", "The organization which is responsible for the services rendered to the patient.", 0, java.lang.Integer.MAX_VALUE, requestOrganization));
|
||||
childrenList.add(new Property("form", "Coding", "The form to be used for printing the content.", 0, java.lang.Integer.MAX_VALUE, form));
|
||||
childrenList.add(new Property("notes", "", "Suite of processing note or additional requirements is the processing has been held.", 0, java.lang.Integer.MAX_VALUE, notes));
|
||||
childrenList.add(new Property("error", "Coding", "Processing errors.", 0, java.lang.Integer.MAX_VALUE, error));
|
||||
}
|
||||
|
||||
public StatusResponse copy() {
|
||||
StatusResponse dst = new StatusResponse();
|
||||
copyValues(dst);
|
||||
if (identifier != null) {
|
||||
dst.identifier = new ArrayList<Identifier>();
|
||||
for (Identifier i : identifier)
|
||||
dst.identifier.add(i.copy());
|
||||
};
|
||||
dst.request = request == null ? null : request.copy();
|
||||
dst.outcome = outcome == null ? null : outcome.copy();
|
||||
dst.disposition = disposition == null ? null : disposition.copy();
|
||||
dst.ruleset = ruleset == null ? null : ruleset.copy();
|
||||
dst.originalRuleset = originalRuleset == null ? null : originalRuleset.copy();
|
||||
dst.created = created == null ? null : created.copy();
|
||||
dst.organization = organization == null ? null : organization.copy();
|
||||
dst.requestProvider = requestProvider == null ? null : requestProvider.copy();
|
||||
dst.requestOrganization = requestOrganization == null ? null : requestOrganization.copy();
|
||||
dst.form = form == null ? null : form.copy();
|
||||
if (notes != null) {
|
||||
dst.notes = new ArrayList<StatusResponseNotesComponent>();
|
||||
for (StatusResponseNotesComponent i : notes)
|
||||
dst.notes.add(i.copy());
|
||||
};
|
||||
if (error != null) {
|
||||
dst.error = new ArrayList<Coding>();
|
||||
for (Coding i : error)
|
||||
dst.error.add(i.copy());
|
||||
};
|
||||
return dst;
|
||||
}
|
||||
|
||||
protected StatusResponse typedCopy() {
|
||||
return copy();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equalsDeep(Base other) {
|
||||
if (!super.equalsDeep(other))
|
||||
return false;
|
||||
if (!(other instanceof StatusResponse))
|
||||
return false;
|
||||
StatusResponse o = (StatusResponse) other;
|
||||
return compareDeep(identifier, o.identifier, true) && compareDeep(request, o.request, true) && compareDeep(outcome, o.outcome, true)
|
||||
&& compareDeep(disposition, o.disposition, true) && compareDeep(ruleset, o.ruleset, true) && compareDeep(originalRuleset, o.originalRuleset, true)
|
||||
&& compareDeep(created, o.created, true) && compareDeep(organization, o.organization, true) && compareDeep(requestProvider, o.requestProvider, true)
|
||||
&& compareDeep(requestOrganization, o.requestOrganization, true) && compareDeep(form, o.form, true)
|
||||
&& compareDeep(notes, o.notes, true) && compareDeep(error, o.error, true);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equalsShallow(Base other) {
|
||||
if (!super.equalsShallow(other))
|
||||
return false;
|
||||
if (!(other instanceof StatusResponse))
|
||||
return false;
|
||||
StatusResponse o = (StatusResponse) other;
|
||||
return compareValues(disposition, o.disposition, true) && compareValues(created, o.created, true);
|
||||
}
|
||||
|
||||
public boolean isEmpty() {
|
||||
return super.isEmpty() && (identifier == null || identifier.isEmpty()) && (request == null || request.isEmpty())
|
||||
&& (outcome == null || outcome.isEmpty()) && (disposition == null || disposition.isEmpty())
|
||||
&& (ruleset == null || ruleset.isEmpty()) && (originalRuleset == null || originalRuleset.isEmpty())
|
||||
&& (created == null || created.isEmpty()) && (organization == null || organization.isEmpty())
|
||||
&& (requestProvider == null || requestProvider.isEmpty()) && (requestOrganization == null || requestOrganization.isEmpty())
|
||||
&& (form == null || form.isEmpty()) && (notes == null || notes.isEmpty()) && (error == null || error.isEmpty())
|
||||
;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ResourceType getResourceType() {
|
||||
return ResourceType.StatusResponse;
|
||||
}
|
||||
|
||||
@SearchParamDefinition(name="identifier", path="StatusResponse.identifier", description="The business identifier of the Explanation of Benefit", type="token" )
|
||||
public static final String SP_IDENTIFIER = "identifier";
|
||||
|
||||
}
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -1,925 +0,0 @@
|
||||
package org.hl7.fhir.instance.model;
|
||||
|
||||
/*
|
||||
Copyright (c) 2011+, HL7, Inc.
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification,
|
||||
are permitted provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this
|
||||
list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimer in the documentation
|
||||
and/or other materials provided with the distribution.
|
||||
* Neither the name of HL7 nor the names of its contributors may be used to
|
||||
endorse or promote products derived from this software without specific
|
||||
prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
||||
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
||||
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
||||
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
||||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
*/
|
||||
|
||||
// Generated on Wed, Feb 18, 2015 12:09-0500 for FHIR v0.4.0
|
||||
|
||||
import java.util.*;
|
||||
|
||||
import org.hl7.fhir.instance.model.annotations.ResourceDef;
|
||||
import org.hl7.fhir.instance.model.annotations.SearchParamDefinition;
|
||||
import org.hl7.fhir.instance.model.annotations.Block;
|
||||
import org.hl7.fhir.instance.model.annotations.Child;
|
||||
import org.hl7.fhir.instance.model.annotations.Description;
|
||||
/**
|
||||
* This resource provides the supporting information for a process, for example clinical or financial information related to a claim or pre-authorization.
|
||||
*/
|
||||
@ResourceDef(name="SupportingDocumentation", profile="http://hl7.org/fhir/Profile/SupportingDocumentation")
|
||||
public class SupportingDocumentation extends DomainResource {
|
||||
|
||||
@Block()
|
||||
public static class SupportingDocumentationDetailComponent extends BackboneElement {
|
||||
/**
|
||||
* A link Id for the response to reference.
|
||||
*/
|
||||
@Child(name="linkId", type={IntegerType.class}, order=1, min=1, max=1)
|
||||
@Description(shortDefinition="LinkId", formalDefinition="A link Id for the response to reference." )
|
||||
protected IntegerType linkId;
|
||||
|
||||
/**
|
||||
* The attached content.
|
||||
*/
|
||||
@Child(name="content", type={Attachment.class}, order=2, min=1, max=1)
|
||||
@Description(shortDefinition="Content", formalDefinition="The attached content." )
|
||||
protected Type content;
|
||||
|
||||
/**
|
||||
* The date and optionally time when the material was created.
|
||||
*/
|
||||
@Child(name="dateTime", type={DateTimeType.class}, order=3, min=0, max=1)
|
||||
@Description(shortDefinition="Creation date and time", formalDefinition="The date and optionally time when the material was created." )
|
||||
protected DateTimeType dateTime;
|
||||
|
||||
private static final long serialVersionUID = -132176946L;
|
||||
|
||||
public SupportingDocumentationDetailComponent() {
|
||||
super();
|
||||
}
|
||||
|
||||
public SupportingDocumentationDetailComponent(IntegerType linkId, Type content) {
|
||||
super();
|
||||
this.linkId = linkId;
|
||||
this.content = content;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {@link #linkId} (A link Id for the response to reference.). This is the underlying object with id, value and extensions. The accessor "getLinkId" gives direct access to the value
|
||||
*/
|
||||
public IntegerType getLinkIdElement() {
|
||||
if (this.linkId == null)
|
||||
if (Configuration.errorOnAutoCreate())
|
||||
throw new Error("Attempt to auto-create SupportingDocumentationDetailComponent.linkId");
|
||||
else if (Configuration.doAutoCreate())
|
||||
this.linkId = new IntegerType(); // bb
|
||||
return this.linkId;
|
||||
}
|
||||
|
||||
public boolean hasLinkIdElement() {
|
||||
return this.linkId != null && !this.linkId.isEmpty();
|
||||
}
|
||||
|
||||
public boolean hasLinkId() {
|
||||
return this.linkId != null && !this.linkId.isEmpty();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value {@link #linkId} (A link Id for the response to reference.). This is the underlying object with id, value and extensions. The accessor "getLinkId" gives direct access to the value
|
||||
*/
|
||||
public SupportingDocumentationDetailComponent setLinkIdElement(IntegerType value) {
|
||||
this.linkId = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return A link Id for the response to reference.
|
||||
*/
|
||||
public int getLinkId() {
|
||||
return this.linkId == null ? 0 : this.linkId.getValue();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value A link Id for the response to reference.
|
||||
*/
|
||||
public SupportingDocumentationDetailComponent setLinkId(int value) {
|
||||
if (this.linkId == null)
|
||||
this.linkId = new IntegerType();
|
||||
this.linkId.setValue(value);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {@link #content} (The attached content.)
|
||||
*/
|
||||
public Type getContent() {
|
||||
return this.content;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {@link #content} (The attached content.)
|
||||
*/
|
||||
public Reference getContentReference() throws Exception {
|
||||
if (!(this.content instanceof Reference))
|
||||
throw new Exception("Type mismatch: the type Reference was expected, but "+this.content.getClass().getName()+" was encountered");
|
||||
return (Reference) this.content;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {@link #content} (The attached content.)
|
||||
*/
|
||||
public Attachment getContentAttachment() throws Exception {
|
||||
if (!(this.content instanceof Attachment))
|
||||
throw new Exception("Type mismatch: the type Attachment was expected, but "+this.content.getClass().getName()+" was encountered");
|
||||
return (Attachment) this.content;
|
||||
}
|
||||
|
||||
public boolean hasContent() {
|
||||
return this.content != null && !this.content.isEmpty();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value {@link #content} (The attached content.)
|
||||
*/
|
||||
public SupportingDocumentationDetailComponent setContent(Type value) {
|
||||
this.content = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {@link #dateTime} (The date and optionally time when the material was created.). This is the underlying object with id, value and extensions. The accessor "getDateTime" gives direct access to the value
|
||||
*/
|
||||
public DateTimeType getDateTimeElement() {
|
||||
if (this.dateTime == null)
|
||||
if (Configuration.errorOnAutoCreate())
|
||||
throw new Error("Attempt to auto-create SupportingDocumentationDetailComponent.dateTime");
|
||||
else if (Configuration.doAutoCreate())
|
||||
this.dateTime = new DateTimeType(); // bb
|
||||
return this.dateTime;
|
||||
}
|
||||
|
||||
public boolean hasDateTimeElement() {
|
||||
return this.dateTime != null && !this.dateTime.isEmpty();
|
||||
}
|
||||
|
||||
public boolean hasDateTime() {
|
||||
return this.dateTime != null && !this.dateTime.isEmpty();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value {@link #dateTime} (The date and optionally time when the material was created.). This is the underlying object with id, value and extensions. The accessor "getDateTime" gives direct access to the value
|
||||
*/
|
||||
public SupportingDocumentationDetailComponent setDateTimeElement(DateTimeType value) {
|
||||
this.dateTime = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return The date and optionally time when the material was created.
|
||||
*/
|
||||
public Date getDateTime() {
|
||||
return this.dateTime == null ? null : this.dateTime.getValue();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value The date and optionally time when the material was created.
|
||||
*/
|
||||
public SupportingDocumentationDetailComponent setDateTime(Date value) {
|
||||
if (value == null)
|
||||
this.dateTime = null;
|
||||
else {
|
||||
if (this.dateTime == null)
|
||||
this.dateTime = new DateTimeType();
|
||||
this.dateTime.setValue(value);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
protected void listChildren(List<Property> childrenList) {
|
||||
super.listChildren(childrenList);
|
||||
childrenList.add(new Property("linkId", "integer", "A link Id for the response to reference.", 0, java.lang.Integer.MAX_VALUE, linkId));
|
||||
childrenList.add(new Property("content[x]", "Reference(Any)|Attachment", "The attached content.", 0, java.lang.Integer.MAX_VALUE, content));
|
||||
childrenList.add(new Property("dateTime", "dateTime", "The date and optionally time when the material was created.", 0, java.lang.Integer.MAX_VALUE, dateTime));
|
||||
}
|
||||
|
||||
public SupportingDocumentationDetailComponent copy() {
|
||||
SupportingDocumentationDetailComponent dst = new SupportingDocumentationDetailComponent();
|
||||
copyValues(dst);
|
||||
dst.linkId = linkId == null ? null : linkId.copy();
|
||||
dst.content = content == null ? null : content.copy();
|
||||
dst.dateTime = dateTime == null ? null : dateTime.copy();
|
||||
return dst;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equalsDeep(Base other) {
|
||||
if (!super.equalsDeep(other))
|
||||
return false;
|
||||
if (!(other instanceof SupportingDocumentationDetailComponent))
|
||||
return false;
|
||||
SupportingDocumentationDetailComponent o = (SupportingDocumentationDetailComponent) other;
|
||||
return compareDeep(linkId, o.linkId, true) && compareDeep(content, o.content, true) && compareDeep(dateTime, o.dateTime, true)
|
||||
;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equalsShallow(Base other) {
|
||||
if (!super.equalsShallow(other))
|
||||
return false;
|
||||
if (!(other instanceof SupportingDocumentationDetailComponent))
|
||||
return false;
|
||||
SupportingDocumentationDetailComponent o = (SupportingDocumentationDetailComponent) other;
|
||||
return compareValues(linkId, o.linkId, true) && compareValues(dateTime, o.dateTime, true);
|
||||
}
|
||||
|
||||
public boolean isEmpty() {
|
||||
return super.isEmpty() && (linkId == null || linkId.isEmpty()) && (content == null || content.isEmpty())
|
||||
&& (dateTime == null || dateTime.isEmpty());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* The Response Business Identifier.
|
||||
*/
|
||||
@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> 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)
|
||||
@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)
|
||||
@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)
|
||||
@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)
|
||||
@Description(shortDefinition="Insurer or Provider", formalDefinition="The Insurer, organization or Provider who is target of the submission." )
|
||||
protected Reference target;
|
||||
|
||||
/**
|
||||
* The actual object that is the target of the reference (The Insurer, organization or Provider who is target of the submission.)
|
||||
*/
|
||||
protected Resource targetTarget;
|
||||
|
||||
/**
|
||||
* The practitioner who is responsible for the services rendered to the patient.
|
||||
*/
|
||||
@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;
|
||||
|
||||
/**
|
||||
* The actual object that is the target of the reference (The practitioner who is responsible for the services rendered to the patient.)
|
||||
*/
|
||||
protected Practitioner providerTarget;
|
||||
|
||||
/**
|
||||
* The organization which is responsible for the services rendered to the patient.
|
||||
*/
|
||||
@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;
|
||||
|
||||
/**
|
||||
* The actual object that is the target of the reference (The organization which is responsible for the services rendered to the patient.)
|
||||
*/
|
||||
protected Organization organizationTarget;
|
||||
|
||||
/**
|
||||
* Original request.
|
||||
*/
|
||||
@Child(name = "request", type = {}, order = 7, min = 0, max = 1)
|
||||
@Description(shortDefinition="Request reference", formalDefinition="Original request." )
|
||||
protected Reference request;
|
||||
|
||||
/**
|
||||
* The actual object that is the target of the reference (Original request.)
|
||||
*/
|
||||
protected Resource requestTarget;
|
||||
|
||||
/**
|
||||
* Original response.
|
||||
*/
|
||||
@Child(name = "response", type = {}, order = 8, min = 0, max = 1)
|
||||
@Description(shortDefinition="Response reference", formalDefinition="Original response." )
|
||||
protected Reference response;
|
||||
|
||||
/**
|
||||
* The actual object that is the target of the reference (Original response.)
|
||||
*/
|
||||
protected Resource responseTarget;
|
||||
|
||||
/**
|
||||
* Person who created the submission.
|
||||
*/
|
||||
@Child(name = "author", type = {Practitioner.class}, order = 9, min = 0, max = 1)
|
||||
@Description(shortDefinition="Author", formalDefinition="Person who created the submission." )
|
||||
protected Reference author;
|
||||
|
||||
/**
|
||||
* The actual object that is the target of the reference (Person who created the submission.)
|
||||
*/
|
||||
protected Practitioner authorTarget;
|
||||
|
||||
/**
|
||||
* 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)
|
||||
@Description(shortDefinition="Patient", formalDefinition="The patient who is directly or indirectly the subject of the supporting information." )
|
||||
protected Reference subject;
|
||||
|
||||
/**
|
||||
* The actual object that is the target of the reference (The patient who is directly or indirectly the subject of the supporting information.)
|
||||
*/
|
||||
protected Patient subjectTarget;
|
||||
|
||||
/**
|
||||
* Supporting Files.
|
||||
*/
|
||||
@Child(name = "detail", type = {}, order = 11, min = 0, max = Child.MAX_UNLIMITED)
|
||||
@Description(shortDefinition="Supporting Files", formalDefinition="Supporting Files." )
|
||||
protected List<SupportingDocumentationDetailComponent> detail;
|
||||
|
||||
private static final long serialVersionUID = -1353519836L;
|
||||
|
||||
public SupportingDocumentation() {
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {@link #identifier} (The Response Business Identifier.)
|
||||
*/
|
||||
public List<Identifier> getIdentifier() {
|
||||
if (this.identifier == null)
|
||||
this.identifier = new ArrayList<Identifier>();
|
||||
return this.identifier;
|
||||
}
|
||||
|
||||
public boolean hasIdentifier() {
|
||||
if (this.identifier == null)
|
||||
return false;
|
||||
for (Identifier item : this.identifier)
|
||||
if (!item.isEmpty())
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {@link #identifier} (The Response Business Identifier.)
|
||||
*/
|
||||
// syntactic sugar
|
||||
public Identifier addIdentifier() { //3
|
||||
Identifier t = new Identifier();
|
||||
if (this.identifier == null)
|
||||
this.identifier = new ArrayList<Identifier>();
|
||||
this.identifier.add(t);
|
||||
return t;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {@link #ruleset} (The version of the style of resource contents. This should be mapped to the allowable profiles for this and supporting resources.)
|
||||
*/
|
||||
public Coding getRuleset() {
|
||||
if (this.ruleset == null)
|
||||
if (Configuration.errorOnAutoCreate())
|
||||
throw new Error("Attempt to auto-create SupportingDocumentation.ruleset");
|
||||
else if (Configuration.doAutoCreate())
|
||||
this.ruleset = new Coding(); // cc
|
||||
return this.ruleset;
|
||||
}
|
||||
|
||||
public boolean hasRuleset() {
|
||||
return this.ruleset != null && !this.ruleset.isEmpty();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value {@link #ruleset} (The version of the style of resource contents. This should be mapped to the allowable profiles for this and supporting resources.)
|
||||
*/
|
||||
public SupportingDocumentation setRuleset(Coding value) {
|
||||
this.ruleset = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {@link #originalRuleset} (The style (standard) and version of the original material which was converted into this resource.)
|
||||
*/
|
||||
public Coding getOriginalRuleset() {
|
||||
if (this.originalRuleset == null)
|
||||
if (Configuration.errorOnAutoCreate())
|
||||
throw new Error("Attempt to auto-create SupportingDocumentation.originalRuleset");
|
||||
else if (Configuration.doAutoCreate())
|
||||
this.originalRuleset = new Coding(); // cc
|
||||
return this.originalRuleset;
|
||||
}
|
||||
|
||||
public boolean hasOriginalRuleset() {
|
||||
return this.originalRuleset != null && !this.originalRuleset.isEmpty();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value {@link #originalRuleset} (The style (standard) and version of the original material which was converted into this resource.)
|
||||
*/
|
||||
public SupportingDocumentation setOriginalRuleset(Coding value) {
|
||||
this.originalRuleset = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {@link #created} (The date when this resource was created.). This is the underlying object with id, value and extensions. The accessor "getCreated" gives direct access to the value
|
||||
*/
|
||||
public DateTimeType getCreatedElement() {
|
||||
if (this.created == null)
|
||||
if (Configuration.errorOnAutoCreate())
|
||||
throw new Error("Attempt to auto-create SupportingDocumentation.created");
|
||||
else if (Configuration.doAutoCreate())
|
||||
this.created = new DateTimeType(); // bb
|
||||
return this.created;
|
||||
}
|
||||
|
||||
public boolean hasCreatedElement() {
|
||||
return this.created != null && !this.created.isEmpty();
|
||||
}
|
||||
|
||||
public boolean hasCreated() {
|
||||
return this.created != null && !this.created.isEmpty();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value {@link #created} (The date when this resource was created.). This is the underlying object with id, value and extensions. The accessor "getCreated" gives direct access to the value
|
||||
*/
|
||||
public SupportingDocumentation setCreatedElement(DateTimeType value) {
|
||||
this.created = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return The date when this resource was created.
|
||||
*/
|
||||
public Date getCreated() {
|
||||
return this.created == null ? null : this.created.getValue();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value The date when this resource was created.
|
||||
*/
|
||||
public SupportingDocumentation setCreated(Date value) {
|
||||
if (value == null)
|
||||
this.created = null;
|
||||
else {
|
||||
if (this.created == null)
|
||||
this.created = new DateTimeType();
|
||||
this.created.setValue(value);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {@link #target} (The Insurer, organization or Provider who is target of the submission.)
|
||||
*/
|
||||
public Reference getTarget() {
|
||||
if (this.target == null)
|
||||
if (Configuration.errorOnAutoCreate())
|
||||
throw new Error("Attempt to auto-create SupportingDocumentation.target");
|
||||
else if (Configuration.doAutoCreate())
|
||||
this.target = new Reference(); // cc
|
||||
return this.target;
|
||||
}
|
||||
|
||||
public boolean hasTarget() {
|
||||
return this.target != null && !this.target.isEmpty();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value {@link #target} (The Insurer, organization or Provider who is target of the submission.)
|
||||
*/
|
||||
public SupportingDocumentation setTarget(Reference value) {
|
||||
this.target = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {@link #target} The actual object that is the target of the reference. The reference library doesn't populate this, but you can use it to hold the resource if you resolve it. (The Insurer, organization or Provider who is target of the submission.)
|
||||
*/
|
||||
public Resource getTargetTarget() {
|
||||
return this.targetTarget;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value {@link #target} The actual object that is the target of the reference. The reference library doesn't use these, but you can use it to hold the resource if you resolve it. (The Insurer, organization or Provider who is target of the submission.)
|
||||
*/
|
||||
public SupportingDocumentation setTargetTarget(Resource value) {
|
||||
this.targetTarget = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {@link #provider} (The practitioner who is responsible for the services rendered to the patient.)
|
||||
*/
|
||||
public Reference getProvider() {
|
||||
if (this.provider == null)
|
||||
if (Configuration.errorOnAutoCreate())
|
||||
throw new Error("Attempt to auto-create SupportingDocumentation.provider");
|
||||
else if (Configuration.doAutoCreate())
|
||||
this.provider = new Reference(); // cc
|
||||
return this.provider;
|
||||
}
|
||||
|
||||
public boolean hasProvider() {
|
||||
return this.provider != null && !this.provider.isEmpty();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value {@link #provider} (The practitioner who is responsible for the services rendered to the patient.)
|
||||
*/
|
||||
public SupportingDocumentation setProvider(Reference value) {
|
||||
this.provider = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {@link #provider} The actual object that is the target of the reference. The reference library doesn't populate this, but you can use it to hold the resource if you resolve it. (The practitioner who is responsible for the services rendered to the patient.)
|
||||
*/
|
||||
public Practitioner getProviderTarget() {
|
||||
if (this.providerTarget == null)
|
||||
if (Configuration.errorOnAutoCreate())
|
||||
throw new Error("Attempt to auto-create SupportingDocumentation.provider");
|
||||
else if (Configuration.doAutoCreate())
|
||||
this.providerTarget = new Practitioner(); // aa
|
||||
return this.providerTarget;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value {@link #provider} The actual object that is the target of the reference. The reference library doesn't use these, but you can use it to hold the resource if you resolve it. (The practitioner who is responsible for the services rendered to the patient.)
|
||||
*/
|
||||
public SupportingDocumentation setProviderTarget(Practitioner value) {
|
||||
this.providerTarget = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {@link #organization} (The organization which is responsible for the services rendered to the patient.)
|
||||
*/
|
||||
public Reference getOrganization() {
|
||||
if (this.organization == null)
|
||||
if (Configuration.errorOnAutoCreate())
|
||||
throw new Error("Attempt to auto-create SupportingDocumentation.organization");
|
||||
else if (Configuration.doAutoCreate())
|
||||
this.organization = new Reference(); // cc
|
||||
return this.organization;
|
||||
}
|
||||
|
||||
public boolean hasOrganization() {
|
||||
return this.organization != null && !this.organization.isEmpty();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value {@link #organization} (The organization which is responsible for the services rendered to the patient.)
|
||||
*/
|
||||
public SupportingDocumentation setOrganization(Reference value) {
|
||||
this.organization = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {@link #organization} 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 which is responsible for the services rendered to the patient.)
|
||||
*/
|
||||
public Organization getOrganizationTarget() {
|
||||
if (this.organizationTarget == null)
|
||||
if (Configuration.errorOnAutoCreate())
|
||||
throw new Error("Attempt to auto-create SupportingDocumentation.organization");
|
||||
else if (Configuration.doAutoCreate())
|
||||
this.organizationTarget = new Organization(); // aa
|
||||
return this.organizationTarget;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value {@link #organization} 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 which is responsible for the services rendered to the patient.)
|
||||
*/
|
||||
public SupportingDocumentation setOrganizationTarget(Organization value) {
|
||||
this.organizationTarget = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {@link #request} (Original request.)
|
||||
*/
|
||||
public Reference getRequest() {
|
||||
if (this.request == null)
|
||||
if (Configuration.errorOnAutoCreate())
|
||||
throw new Error("Attempt to auto-create SupportingDocumentation.request");
|
||||
else if (Configuration.doAutoCreate())
|
||||
this.request = new Reference(); // cc
|
||||
return this.request;
|
||||
}
|
||||
|
||||
public boolean hasRequest() {
|
||||
return this.request != null && !this.request.isEmpty();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value {@link #request} (Original request.)
|
||||
*/
|
||||
public SupportingDocumentation setRequest(Reference value) {
|
||||
this.request = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {@link #request} 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. (Original request.)
|
||||
*/
|
||||
public Resource getRequestTarget() {
|
||||
return this.requestTarget;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value {@link #request} 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. (Original request.)
|
||||
*/
|
||||
public SupportingDocumentation setRequestTarget(Resource value) {
|
||||
this.requestTarget = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {@link #response} (Original response.)
|
||||
*/
|
||||
public Reference getResponse() {
|
||||
if (this.response == null)
|
||||
if (Configuration.errorOnAutoCreate())
|
||||
throw new Error("Attempt to auto-create SupportingDocumentation.response");
|
||||
else if (Configuration.doAutoCreate())
|
||||
this.response = new Reference(); // cc
|
||||
return this.response;
|
||||
}
|
||||
|
||||
public boolean hasResponse() {
|
||||
return this.response != null && !this.response.isEmpty();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value {@link #response} (Original response.)
|
||||
*/
|
||||
public SupportingDocumentation setResponse(Reference value) {
|
||||
this.response = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {@link #response} 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. (Original response.)
|
||||
*/
|
||||
public Resource getResponseTarget() {
|
||||
return this.responseTarget;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value {@link #response} 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. (Original response.)
|
||||
*/
|
||||
public SupportingDocumentation setResponseTarget(Resource value) {
|
||||
this.responseTarget = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {@link #author} (Person who created the submission.)
|
||||
*/
|
||||
public Reference getAuthor() {
|
||||
if (this.author == null)
|
||||
if (Configuration.errorOnAutoCreate())
|
||||
throw new Error("Attempt to auto-create SupportingDocumentation.author");
|
||||
else if (Configuration.doAutoCreate())
|
||||
this.author = new Reference(); // cc
|
||||
return this.author;
|
||||
}
|
||||
|
||||
public boolean hasAuthor() {
|
||||
return this.author != null && !this.author.isEmpty();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value {@link #author} (Person who created the submission.)
|
||||
*/
|
||||
public SupportingDocumentation setAuthor(Reference value) {
|
||||
this.author = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {@link #author} 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. (Person who created the submission.)
|
||||
*/
|
||||
public Practitioner getAuthorTarget() {
|
||||
if (this.authorTarget == null)
|
||||
if (Configuration.errorOnAutoCreate())
|
||||
throw new Error("Attempt to auto-create SupportingDocumentation.author");
|
||||
else if (Configuration.doAutoCreate())
|
||||
this.authorTarget = new Practitioner(); // aa
|
||||
return this.authorTarget;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value {@link #author} 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. (Person who created the submission.)
|
||||
*/
|
||||
public SupportingDocumentation setAuthorTarget(Practitioner value) {
|
||||
this.authorTarget = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {@link #subject} (The patient who is directly or indirectly the subject of the supporting information.)
|
||||
*/
|
||||
public Reference getSubject() {
|
||||
if (this.subject == null)
|
||||
if (Configuration.errorOnAutoCreate())
|
||||
throw new Error("Attempt to auto-create SupportingDocumentation.subject");
|
||||
else if (Configuration.doAutoCreate())
|
||||
this.subject = new Reference(); // cc
|
||||
return this.subject;
|
||||
}
|
||||
|
||||
public boolean hasSubject() {
|
||||
return this.subject != null && !this.subject.isEmpty();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value {@link #subject} (The patient who is directly or indirectly the subject of the supporting information.)
|
||||
*/
|
||||
public SupportingDocumentation setSubject(Reference value) {
|
||||
this.subject = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {@link #subject} The actual object that is the target of the reference. The reference library doesn't populate this, but you can use it to hold the resource if you resolve it. (The patient who is directly or indirectly the subject of the supporting information.)
|
||||
*/
|
||||
public Patient getSubjectTarget() {
|
||||
if (this.subjectTarget == null)
|
||||
if (Configuration.errorOnAutoCreate())
|
||||
throw new Error("Attempt to auto-create SupportingDocumentation.subject");
|
||||
else if (Configuration.doAutoCreate())
|
||||
this.subjectTarget = new Patient(); // aa
|
||||
return this.subjectTarget;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param value {@link #subject} The actual object that is the target of the reference. The reference library doesn't use these, but you can use it to hold the resource if you resolve it. (The patient who is directly or indirectly the subject of the supporting information.)
|
||||
*/
|
||||
public SupportingDocumentation setSubjectTarget(Patient value) {
|
||||
this.subjectTarget = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {@link #detail} (Supporting Files.)
|
||||
*/
|
||||
public List<SupportingDocumentationDetailComponent> getDetail() {
|
||||
if (this.detail == null)
|
||||
this.detail = new ArrayList<SupportingDocumentationDetailComponent>();
|
||||
return this.detail;
|
||||
}
|
||||
|
||||
public boolean hasDetail() {
|
||||
if (this.detail == null)
|
||||
return false;
|
||||
for (SupportingDocumentationDetailComponent item : this.detail)
|
||||
if (!item.isEmpty())
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return {@link #detail} (Supporting Files.)
|
||||
*/
|
||||
// syntactic sugar
|
||||
public SupportingDocumentationDetailComponent addDetail() { //3
|
||||
SupportingDocumentationDetailComponent t = new SupportingDocumentationDetailComponent();
|
||||
if (this.detail == null)
|
||||
this.detail = new ArrayList<SupportingDocumentationDetailComponent>();
|
||||
this.detail.add(t);
|
||||
return t;
|
||||
}
|
||||
|
||||
protected void listChildren(List<Property> childrenList) {
|
||||
super.listChildren(childrenList);
|
||||
childrenList.add(new Property("identifier", "Identifier", "The Response Business Identifier.", 0, java.lang.Integer.MAX_VALUE, identifier));
|
||||
childrenList.add(new Property("ruleset", "Coding", "The version of the style of resource contents. This should be mapped to the allowable profiles for this and supporting resources.", 0, java.lang.Integer.MAX_VALUE, ruleset));
|
||||
childrenList.add(new Property("originalRuleset", "Coding", "The style (standard) and version of the original material which was converted into this resource.", 0, java.lang.Integer.MAX_VALUE, originalRuleset));
|
||||
childrenList.add(new Property("created", "dateTime", "The date when this resource was created.", 0, java.lang.Integer.MAX_VALUE, created));
|
||||
childrenList.add(new Property("target", "Reference(Organization|Practitioner)", "The Insurer, organization or Provider who is target of the submission.", 0, java.lang.Integer.MAX_VALUE, target));
|
||||
childrenList.add(new Property("provider", "Reference(Practitioner)", "The practitioner who is responsible for the services rendered to the patient.", 0, java.lang.Integer.MAX_VALUE, provider));
|
||||
childrenList.add(new Property("organization", "Reference(Organization)", "The organization which is responsible for the services rendered to the patient.", 0, java.lang.Integer.MAX_VALUE, organization));
|
||||
childrenList.add(new Property("request", "Reference(Any)", "Original request.", 0, java.lang.Integer.MAX_VALUE, request));
|
||||
childrenList.add(new Property("response", "Reference(Any)", "Original response.", 0, java.lang.Integer.MAX_VALUE, response));
|
||||
childrenList.add(new Property("author", "Reference(Practitioner)", "Person who created the submission.", 0, java.lang.Integer.MAX_VALUE, author));
|
||||
childrenList.add(new Property("subject", "Reference(Patient)", "The patient who is directly or indirectly the subject of the supporting information.", 0, java.lang.Integer.MAX_VALUE, subject));
|
||||
childrenList.add(new Property("detail", "", "Supporting Files.", 0, java.lang.Integer.MAX_VALUE, detail));
|
||||
}
|
||||
|
||||
public SupportingDocumentation copy() {
|
||||
SupportingDocumentation dst = new SupportingDocumentation();
|
||||
copyValues(dst);
|
||||
if (identifier != null) {
|
||||
dst.identifier = new ArrayList<Identifier>();
|
||||
for (Identifier i : identifier)
|
||||
dst.identifier.add(i.copy());
|
||||
};
|
||||
dst.ruleset = ruleset == null ? null : ruleset.copy();
|
||||
dst.originalRuleset = originalRuleset == null ? null : originalRuleset.copy();
|
||||
dst.created = created == null ? null : created.copy();
|
||||
dst.target = target == null ? null : target.copy();
|
||||
dst.provider = provider == null ? null : provider.copy();
|
||||
dst.organization = organization == null ? null : organization.copy();
|
||||
dst.request = request == null ? null : request.copy();
|
||||
dst.response = response == null ? null : response.copy();
|
||||
dst.author = author == null ? null : author.copy();
|
||||
dst.subject = subject == null ? null : subject.copy();
|
||||
if (detail != null) {
|
||||
dst.detail = new ArrayList<SupportingDocumentationDetailComponent>();
|
||||
for (SupportingDocumentationDetailComponent i : detail)
|
||||
dst.detail.add(i.copy());
|
||||
};
|
||||
return dst;
|
||||
}
|
||||
|
||||
protected SupportingDocumentation typedCopy() {
|
||||
return copy();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equalsDeep(Base other) {
|
||||
if (!super.equalsDeep(other))
|
||||
return false;
|
||||
if (!(other instanceof SupportingDocumentation))
|
||||
return false;
|
||||
SupportingDocumentation o = (SupportingDocumentation) other;
|
||||
return compareDeep(identifier, o.identifier, true) && compareDeep(ruleset, o.ruleset, true) && compareDeep(originalRuleset, o.originalRuleset, true)
|
||||
&& compareDeep(created, o.created, true) && compareDeep(target, o.target, true) && compareDeep(provider, o.provider, true)
|
||||
&& compareDeep(organization, o.organization, true) && compareDeep(request, o.request, true) && compareDeep(response, o.response, true)
|
||||
&& compareDeep(author, o.author, true) && compareDeep(subject, o.subject, true) && compareDeep(detail, o.detail, true)
|
||||
;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equalsShallow(Base other) {
|
||||
if (!super.equalsShallow(other))
|
||||
return false;
|
||||
if (!(other instanceof SupportingDocumentation))
|
||||
return false;
|
||||
SupportingDocumentation o = (SupportingDocumentation) other;
|
||||
return compareValues(created, o.created, true);
|
||||
}
|
||||
|
||||
public boolean isEmpty() {
|
||||
return super.isEmpty() && (identifier == null || identifier.isEmpty()) && (ruleset == null || ruleset.isEmpty())
|
||||
&& (originalRuleset == null || originalRuleset.isEmpty()) && (created == null || created.isEmpty())
|
||||
&& (target == null || target.isEmpty()) && (provider == null || provider.isEmpty()) && (organization == null || organization.isEmpty())
|
||||
&& (request == null || request.isEmpty()) && (response == null || response.isEmpty()) && (author == null || author.isEmpty())
|
||||
&& (subject == null || subject.isEmpty()) && (detail == null || detail.isEmpty());
|
||||
}
|
||||
|
||||
@Override
|
||||
public ResourceType getResourceType() {
|
||||
return ResourceType.SupportingDocumentation;
|
||||
}
|
||||
|
||||
@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")
|
||||
public static final String SP_PATIENT = "patient";
|
||||
|
||||
}
|
||||
|
@ -0,0 +1,95 @@
|
||||
/*
|
||||
Copyright (c) 2011+, HL7, Inc
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without modification,
|
||||
are permitted provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this
|
||||
list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimer in the documentation
|
||||
and/or other materials provided with the distribution.
|
||||
* Neither the name of HL7 nor the names of its contributors may be used to
|
||||
endorse or promote products derived from this software without specific
|
||||
prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
||||
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
||||
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
||||
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
||||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
*/
|
||||
/**
|
||||
*
|
||||
*/
|
||||
package org.hl7.fhir.instance.model;
|
||||
|
||||
import org.hl7.fhir.instance.model.annotations.DatatypeDef;
|
||||
|
||||
/**
|
||||
* Primitive type "integer" in FHIR: A signed 32-bit integer
|
||||
*/
|
||||
@DatatypeDef(name = "unsignedInt")
|
||||
public class UnsignedIntType extends IntegerType {
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private static final long serialVersionUID = -7991875974606711355L;
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*/
|
||||
public UnsignedIntType() {
|
||||
// nothing
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*/
|
||||
public UnsignedIntType(int theInteger) {
|
||||
setValue(theInteger);
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @param theIntegerAsString
|
||||
* A string representation of an integer
|
||||
* @throws IllegalArgumentException
|
||||
* If the string is not a valid integer representation
|
||||
*/
|
||||
public UnsignedIntType(String theIntegerAsString) {
|
||||
setValueAsString(theIntegerAsString);
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @param theValue The value
|
||||
* @throws IllegalArgumentException If the value is too large to fit in a signed integer
|
||||
*/
|
||||
public UnsignedIntType(Long theValue) {
|
||||
if (theValue < 0 || theValue > java.lang.Integer.MAX_VALUE) {
|
||||
throw new IllegalArgumentException
|
||||
(theValue + " cannot be cast to int without changing its value.");
|
||||
}
|
||||
if(theValue!=null) {
|
||||
setValue((int)theValue.longValue());
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public UnsignedIntType copy() {
|
||||
return new UnsignedIntType(getValue());
|
||||
}
|
||||
|
||||
}
|
File diff suppressed because it is too large
Load Diff
@ -1453,7 +1453,7 @@ public class XmlParserHl7OrgDstu2Test {
|
||||
@Test
|
||||
public void testSimpleResourceEncode() throws IOException, SAXException {
|
||||
|
||||
String xmlString = IOUtils.toString(JsonParser.class.getResourceAsStream("/example-patient-general.json"), Charset.forName("UTF-8"));
|
||||
String xmlString = IOUtils.toString(XmlParserHl7OrgDstu2Test.class.getResourceAsStream("/example-patient-general.json"), Charset.forName("UTF-8"));
|
||||
Patient obs = ourCtx.newJsonParser().parseResource(Patient.class, xmlString);
|
||||
|
||||
List<Extension> undeclaredExtensions = obs.getContact().get(0).getName().getFamily().get(0).getExtension();
|
||||
@ -1466,7 +1466,7 @@ public class XmlParserHl7OrgDstu2Test {
|
||||
String encoded = jsonParser.encodeResourceToString(obs);
|
||||
ourLog.info(encoded);
|
||||
|
||||
String jsonString = IOUtils.toString(JsonParser.class.getResourceAsStream("/example-patient-general.xml"), Charset.forName("UTF-8"));
|
||||
String jsonString = IOUtils.toString(XmlParserHl7OrgDstu2Test.class.getResourceAsStream("/example-patient-general.xml"), Charset.forName("UTF-8"));
|
||||
|
||||
String expected = (jsonString);
|
||||
String actual = (encoded.trim());
|
||||
@ -1480,7 +1480,7 @@ public class XmlParserHl7OrgDstu2Test {
|
||||
public void testSimpleResourceEncodeWithCustomType() throws IOException {
|
||||
|
||||
FhirContext fhirCtx = new FhirContext(MyObservationWithExtensions.class);
|
||||
String xmlString = IOUtils.toString(JsonParser.class.getResourceAsStream("/example-patient-general.xml"), Charset.forName("UTF-8"));
|
||||
String xmlString = IOUtils.toString(XmlParserHl7OrgDstu2Test.class.getResourceAsStream("/example-patient-general.xml"), Charset.forName("UTF-8"));
|
||||
MyObservationWithExtensions obs = fhirCtx.newXmlParser().parseResource(MyObservationWithExtensions.class, xmlString);
|
||||
|
||||
assertEquals(0, obs.getExtension().size());
|
||||
@ -1496,7 +1496,7 @@ public class XmlParserHl7OrgDstu2Test {
|
||||
String encoded = jsonParser.encodeResourceToString(obs);
|
||||
ourLog.info(encoded);
|
||||
|
||||
String jsonString = IOUtils.toString(JsonParser.class.getResourceAsStream("/example-patient-general.json"), Charset.forName("UTF-8"));
|
||||
String jsonString = IOUtils.toString(XmlParserHl7OrgDstu2Test.class.getResourceAsStream("/example-patient-general.json"), Charset.forName("UTF-8"));
|
||||
|
||||
JSON expected = JSONSerializer.toJSON(jsonString);
|
||||
JSON actual = JSONSerializer.toJSON(encoded.trim());
|
||||
|
@ -0,0 +1,175 @@
|
||||
package ca.uhn.fhir.model.dstu2.resource;
|
||||
|
||||
/*
|
||||
* #%L
|
||||
* HAPI FHIR Structures - DSTU2 (FHIR v0.4.0)
|
||||
* %%
|
||||
* Copyright (C) 2014 - 2015 University Health Network
|
||||
* %%
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
* #L%
|
||||
*/
|
||||
|
||||
import org.apache.commons.lang3.Validate;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import org.hl7.fhir.instance.model.api.IIdType;
|
||||
|
||||
import ca.uhn.fhir.model.api.BaseElement;
|
||||
import ca.uhn.fhir.model.api.IResource;
|
||||
import ca.uhn.fhir.model.api.annotation.Child;
|
||||
import ca.uhn.fhir.model.api.annotation.SearchParamDefinition;
|
||||
import ca.uhn.fhir.model.base.resource.ResourceMetadataMap;
|
||||
import ca.uhn.fhir.model.dstu2.composite.ContainedDt;
|
||||
import ca.uhn.fhir.model.dstu2.composite.NarrativeDt;
|
||||
import ca.uhn.fhir.model.primitive.CodeDt;
|
||||
import ca.uhn.fhir.model.primitive.IdDt;
|
||||
import ca.uhn.fhir.rest.gclient.StringClientParam;
|
||||
import ca.uhn.fhir.util.ElementUtil;
|
||||
|
||||
public abstract class BaseResource extends BaseElement implements IResource {
|
||||
|
||||
/**
|
||||
* Search parameter constant for <b>_language</b>
|
||||
*/
|
||||
@SearchParamDefinition(name="_language", path="", description="The language of the resource", type="string" )
|
||||
public static final String SP_RES_LANGUAGE = "_language";
|
||||
|
||||
|
||||
/**
|
||||
* Search parameter constant for <b>_id</b>
|
||||
*/
|
||||
@SearchParamDefinition(name="_id", path="", description="The ID of the resource", type="string" )
|
||||
public static final String SP_RES_ID = "_id";
|
||||
|
||||
/**
|
||||
* <b>Fluent Client</b> search parameter constant for <b>_id</b>
|
||||
* <p>
|
||||
* Description: <b>the _id of a resource</b><br>
|
||||
* Type: <b>string</b><br>
|
||||
* Path: <b>Resource._id</b><br>
|
||||
* </p>
|
||||
*/
|
||||
public static final StringClientParam RES_ID = new StringClientParam(BaseResource.SP_RES_ID);
|
||||
|
||||
|
||||
@Child(name = "contained", order = 2, min = 0, max = 1)
|
||||
private ContainedDt myContained;
|
||||
|
||||
private IdDt myId;
|
||||
|
||||
@Child(name = "language", order = 0, min = 0, max = Child.MAX_UNLIMITED)
|
||||
private CodeDt myLanguage;
|
||||
|
||||
private ResourceMetadataMap myResourceMetadata;
|
||||
|
||||
@Child(name = "text", order = 1, min = 0, max = 1)
|
||||
private NarrativeDt myText;
|
||||
|
||||
@Override
|
||||
public ContainedDt getContained() {
|
||||
if (myContained == null) {
|
||||
myContained = new ContainedDt();
|
||||
}
|
||||
return myContained;
|
||||
}
|
||||
|
||||
public IdDt getId() {
|
||||
if (myId == null) {
|
||||
myId = new IdDt();
|
||||
}
|
||||
return myId;
|
||||
}
|
||||
|
||||
@Override
|
||||
public CodeDt getLanguage() {
|
||||
if (myLanguage == null) {
|
||||
myLanguage = new CodeDt();
|
||||
}
|
||||
return myLanguage;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ResourceMetadataMap getResourceMetadata() {
|
||||
if (myResourceMetadata == null) {
|
||||
myResourceMetadata = new ResourceMetadataMap();
|
||||
}
|
||||
return myResourceMetadata;
|
||||
}
|
||||
|
||||
@Override
|
||||
public NarrativeDt getText() {
|
||||
if (myText == null) {
|
||||
myText = new NarrativeDt();
|
||||
}
|
||||
return myText;
|
||||
}
|
||||
|
||||
public void setContained(ContainedDt theContained) {
|
||||
myContained = theContained;
|
||||
}
|
||||
|
||||
public void setId(IdDt theId) {
|
||||
myId = theId;
|
||||
}
|
||||
|
||||
public BaseResource setId(IIdType theId) {
|
||||
if (theId instanceof IdDt) {
|
||||
myId = (IdDt) theId;
|
||||
} else if (theId != null) {
|
||||
myId = new IdDt(theId.getValue());
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
public BaseResource setId(String theId) {
|
||||
if (theId == null) {
|
||||
myId = null;
|
||||
} else {
|
||||
myId = new IdDt(theId);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setLanguage(CodeDt theLanguage) {
|
||||
myLanguage = theLanguage;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setResourceMetadata(ResourceMetadataMap theMap) {
|
||||
Validate.notNull(theMap, "The Map must not be null");
|
||||
myResourceMetadata = theMap;
|
||||
}
|
||||
|
||||
public void setText(NarrativeDt theText) {
|
||||
myText = theText;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
ToStringBuilder b = new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE);
|
||||
b.append("id", getId().toUnqualified());
|
||||
return b.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* Intended to be called by extending classes {@link #isEmpty()} implementations, returns <code>true</code> if all
|
||||
* content in this superclass instance is empty per the semantics of {@link #isEmpty()}.
|
||||
*/
|
||||
@Override
|
||||
protected boolean isBaseEmpty() {
|
||||
return super.isBaseEmpty() && ElementUtil.isEmpty(myLanguage, myText, myId);
|
||||
}
|
||||
|
||||
}
|
2
pom.xml
2
pom.xml
@ -861,7 +861,7 @@
|
||||
<module>hapi-tinder-test</module>
|
||||
<module>hapi-fhir-structures-dstu</module>
|
||||
<module>hapi-fhir-structures-dstu2</module>
|
||||
<!--<module>hapi-fhir-structures-dev</module>-->
|
||||
<module>hapi-fhir-structures-hl7org-dstu2</module>
|
||||
<module>hapi-fhir-jpaserver-base</module>
|
||||
<module>hapi-fhir-jpaserver-example</module>
|
||||
<module>restful-server-example</module>
|
||||
|
Loading…
x
Reference in New Issue
Block a user