Update DSTU3 definitions to latest

This commit is contained in:
James Agnew 2016-08-05 12:36:41 -04:00
parent dd8b1cd979
commit 3e7cd153fd
791 changed files with 268292 additions and 892122 deletions

View File

@ -351,7 +351,6 @@
<configuration>
<runOrder>alphabetical</runOrder>
<argLine>${argLine} -Dfile.encoding=UTF-8 -Xmx712m</argLine>
<forkCount>1</forkCount>
</configuration>
</plugin>
<plugin>

View File

@ -10,7 +10,7 @@ package ca.uhn.fhir.jpa.dao.dstu3;
* 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
* 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,
@ -23,13 +23,7 @@ import static org.apache.commons.lang3.StringUtils.isBlank;
import static org.apache.commons.lang3.StringUtils.isNotBlank;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Date;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import java.util.TreeSet;
import java.util.*;
import javax.measure.unit.NonSI;
import javax.measure.unit.Unit;
@ -38,31 +32,12 @@ import org.apache.commons.lang3.StringUtils;
import org.apache.commons.lang3.tuple.Pair;
import org.hl7.fhir.dstu3.exceptions.FHIRException;
import org.hl7.fhir.dstu3.hapi.validation.IValidationSupport;
import org.hl7.fhir.dstu3.model.Address;
import org.hl7.fhir.dstu3.model.Base;
import org.hl7.fhir.dstu3.model.BaseDateTimeType;
import org.hl7.fhir.dstu3.model.CodeSystem;
import org.hl7.fhir.dstu3.model.CodeableConcept;
import org.hl7.fhir.dstu3.model.Coding;
import org.hl7.fhir.dstu3.model.*;
import org.hl7.fhir.dstu3.model.Conformance.ConformanceRestSecurityComponent;
import org.hl7.fhir.dstu3.model.ContactPoint;
import org.hl7.fhir.dstu3.model.DateTimeType;
import org.hl7.fhir.dstu3.model.Duration;
import org.hl7.fhir.dstu3.model.Enumeration;
import org.hl7.fhir.dstu3.model.HumanName;
import org.hl7.fhir.dstu3.model.Identifier;
import org.hl7.fhir.dstu3.model.IntegerType;
import org.hl7.fhir.dstu3.model.Location.LocationPositionComponent;
import org.hl7.fhir.dstu3.model.Patient.PatientCommunicationComponent;
import org.hl7.fhir.dstu3.model.Period;
import org.hl7.fhir.dstu3.model.Quantity;
import org.hl7.fhir.dstu3.model.Questionnaire;
import org.hl7.fhir.dstu3.model.Range;
import org.hl7.fhir.dstu3.model.SimpleQuantity;
import org.hl7.fhir.dstu3.model.StringType;
import org.hl7.fhir.dstu3.model.Timing;
import org.hl7.fhir.dstu3.model.UriType;
import org.hl7.fhir.dstu3.utils.FHIRPathEngine;
import org.hl7.fhir.dstu3.utils.FluentPathEngine;
import org.hl7.fhir.dstu3.utils.IWorkerContext;
import org.hl7.fhir.instance.model.api.IBase;
import org.hl7.fhir.instance.model.api.IBaseResource;
@ -79,15 +54,7 @@ import ca.uhn.fhir.jpa.dao.BaseHapiFhirDao;
import ca.uhn.fhir.jpa.dao.BaseSearchParamExtractor;
import ca.uhn.fhir.jpa.dao.ISearchParamExtractor;
import ca.uhn.fhir.jpa.dao.PathAndRef;
import ca.uhn.fhir.jpa.entity.BaseResourceIndexedSearchParam;
import ca.uhn.fhir.jpa.entity.ResourceIndexedSearchParamCoords;
import ca.uhn.fhir.jpa.entity.ResourceIndexedSearchParamDate;
import ca.uhn.fhir.jpa.entity.ResourceIndexedSearchParamNumber;
import ca.uhn.fhir.jpa.entity.ResourceIndexedSearchParamQuantity;
import ca.uhn.fhir.jpa.entity.ResourceIndexedSearchParamString;
import ca.uhn.fhir.jpa.entity.ResourceIndexedSearchParamToken;
import ca.uhn.fhir.jpa.entity.ResourceIndexedSearchParamUri;
import ca.uhn.fhir.jpa.entity.ResourceTable;
import ca.uhn.fhir.jpa.entity.*;
import ca.uhn.fhir.rest.method.RestSearchParameterTypeEnum;
import ca.uhn.fhir.rest.server.exceptions.InternalErrorException;
@ -195,7 +162,7 @@ public class SearchParamExtractorDstu3 extends BaseSearchParamExtractor implemen
if (dates.isEmpty()) {
continue;
}
nextEntity = new ResourceIndexedSearchParamDate(nextSpDef.getName(), dates.first(), dates.last());
} else if (nextObject instanceof StringType) {
// CarePlan.activitydate can be a string
@ -344,14 +311,11 @@ public class SearchParamExtractorDstu3 extends BaseSearchParamExtractor implemen
if (nextObject instanceof Quantity) {
Quantity nextValue = (Quantity) nextObject;
if (nextValue.getValueElement().isEmpty()) {
continue;
}
ResourceIndexedSearchParamQuantity nextEntity = new ResourceIndexedSearchParamQuantity(resourceName, nextValue.getValueElement().getValue(),
nextValue.getSystemElement().getValueAsString(), nextValue.getCode());
nextEntity.setResource(theEntity);
retVal.add(nextEntity);
addQuantity(theEntity, retVal, resourceName, nextValue);
} else if (nextObject instanceof Range) {
Range nextValue = (Range)nextObject;
addQuantity(theEntity, retVal, resourceName, nextValue.getLow());
addQuantity(theEntity, retVal, resourceName, nextValue.getHigh());
} else if (nextObject instanceof LocationPositionComponent) {
continue;
} else {
@ -367,6 +331,17 @@ public class SearchParamExtractorDstu3 extends BaseSearchParamExtractor implemen
return retVal;
}
private void addQuantity(ResourceTable theEntity, HashSet<ResourceIndexedSearchParamQuantity> retVal, String resourceName, Quantity nextValue) {
if (!nextValue.getValueElement().isEmpty()) {
BigDecimal nextValueValue = nextValue.getValueElement().getValue();
String nextValueString = nextValue.getSystemElement().getValueAsString();
String nextValueCode = nextValue.getCode();
ResourceIndexedSearchParamQuantity nextEntity = new ResourceIndexedSearchParamQuantity(resourceName, nextValueValue, nextValueString, nextValueCode);
nextEntity.setResource(theEntity);
retVal.add(nextEntity);
}
}
/*
* (non-Javadoc)
*
@ -701,7 +676,7 @@ public class SearchParamExtractorDstu3 extends BaseSearchParamExtractor implemen
@Override
protected List<Object> extractValues(String thePaths, IBaseResource theResource) {
IWorkerContext worker = new org.hl7.fhir.dstu3.hapi.validation.HapiWorkerContext(getContext(), myValidationSupport);
FHIRPathEngine fp = new FHIRPathEngine(worker);
FluentPathEngine fp = new FluentPathEngine(worker);
List<Object> values = new ArrayList<Object>();
try {

View File

@ -60,8 +60,7 @@ public class TestDstu2Config extends BaseJavaConfigDstu2 {
extraProperties.put("hibernate.show_sql", "false");
extraProperties.put("hibernate.hbm2ddl.auto", "update");
extraProperties.put("hibernate.dialect", "org.hibernate.dialect.DerbyTenSevenDialect");
extraProperties.put("hibernate.search.default.directory_provider" ,"filesystem");
extraProperties.put("hibernate.search.default.indexBase", "target/lucene_index_dstu2");
extraProperties.put("hibernate.search.default.directory_provider", "ram");
extraProperties.put("hibernate.search.lucene_version","LUCENE_CURRENT");
return extraProperties;
}

View File

@ -61,9 +61,8 @@ public class TestDstu3Config extends BaseJavaConfigDstu3 {
extraProperties.put("hibernate.show_sql", "false");
extraProperties.put("hibernate.hbm2ddl.auto", "update");
extraProperties.put("hibernate.dialect", "org.hibernate.dialect.DerbyTenSevenDialect");
extraProperties.put("hibernate.search.default.directory_provider" ,"filesystem");
extraProperties.put("hibernate.search.default.indexBase", "target/lucene_index_dstu3");
extraProperties.put("hibernate.search.lucene_version","LUCENE_CURRENT");
extraProperties.put("hibernate.search.default.directory_provider", "ram");
extraProperties.put("hibernate.search.lucene_version", "LUCENE_CURRENT");
extraProperties.put("hibernate.search.autoregister_listeners", "true");
return extraProperties;
}

View File

@ -25,7 +25,7 @@ import org.hl7.fhir.dstu3.model.CompartmentDefinition;
import org.hl7.fhir.dstu3.model.ConceptMap;
import org.hl7.fhir.dstu3.model.Condition;
import org.hl7.fhir.dstu3.model.Device;
import org.hl7.fhir.dstu3.model.DiagnosticOrder;
import org.hl7.fhir.dstu3.model.DiagnosticRequest;
import org.hl7.fhir.dstu3.model.DiagnosticReport;
import org.hl7.fhir.dstu3.model.Encounter;
import org.hl7.fhir.dstu3.model.Immunization;
@ -130,8 +130,8 @@ public abstract class BaseJpaDstu3Test extends BaseJpaTest {
@Qualifier("myDeviceDaoDstu3")
protected IFhirResourceDao<Device> myDeviceDao;
@Autowired
@Qualifier("myDiagnosticOrderDaoDstu3")
protected IFhirResourceDao<DiagnosticOrder> myDiagnosticOrderDao;
@Qualifier("myDiagnosticRequestDaoDstu3")
protected IFhirResourceDao<DiagnosticRequest> myDiagnosticRequestDao;
@Autowired
@Qualifier("myDiagnosticReportDaoDstu3")
protected IFhirResourceDao<DiagnosticReport> myDiagnosticReportDao;

View File

@ -31,7 +31,7 @@ import org.hl7.fhir.dstu3.model.ContactPoint.ContactPointSystem;
import org.hl7.fhir.dstu3.model.DateTimeType;
import org.hl7.fhir.dstu3.model.DateType;
import org.hl7.fhir.dstu3.model.Device;
import org.hl7.fhir.dstu3.model.DiagnosticOrder;
import org.hl7.fhir.dstu3.model.DiagnosticRequest;
import org.hl7.fhir.dstu3.model.DiagnosticReport;
import org.hl7.fhir.dstu3.model.Encounter;
import org.hl7.fhir.dstu3.model.Enumerations.AdministrativeGender;
@ -154,17 +154,17 @@ public class FhirResourceDaoDstu3SearchNoFtTest extends BaseJpaDstu3Test {
@Test
public void testIndexNoDuplicatesDate() {
DiagnosticOrder order = new DiagnosticOrder();
order.addItem().addEvent().setDateTimeElement(new DateTimeType("2011-12-11T11:12:12Z"));
order.addItem().addEvent().setDateTimeElement(new DateTimeType("2011-12-11T11:12:12Z"));
order.addItem().addEvent().setDateTimeElement(new DateTimeType("2011-12-11T11:12:12Z"));
order.addItem().addEvent().setDateTimeElement(new DateTimeType("2011-12-12T11:12:12Z"));
order.addItem().addEvent().setDateTimeElement(new DateTimeType("2011-12-12T11:12:12Z"));
order.addItem().addEvent().setDateTimeElement(new DateTimeType("2011-12-12T11:12:12Z"));
Encounter order = new Encounter();
order.addLocation().getPeriod().setStartElement(new DateTimeType("2011-12-12T11:12:12Z")).setEndElement(new DateTimeType("2011-12-12T11:12:12Z"));
order.addLocation().getPeriod().setStartElement(new DateTimeType("2011-12-12T11:12:12Z")).setEndElement(new DateTimeType("2011-12-12T11:12:12Z"));
order.addLocation().getPeriod().setStartElement(new DateTimeType("2011-12-12T11:12:12Z")).setEndElement(new DateTimeType("2011-12-12T11:12:12Z"));
order.addLocation().getPeriod().setStartElement(new DateTimeType("2011-12-11T11:12:12Z")).setEndElement(new DateTimeType("2011-12-11T11:12:12Z"));
order.addLocation().getPeriod().setStartElement(new DateTimeType("2011-12-11T11:12:12Z")).setEndElement(new DateTimeType("2011-12-11T11:12:12Z"));
order.addLocation().getPeriod().setStartElement(new DateTimeType("2011-12-11T11:12:12Z")).setEndElement(new DateTimeType("2011-12-11T11:12:12Z"));
IIdType id = myDiagnosticOrderDao.create(order, mySrd).getId().toUnqualifiedVersionless();
IIdType id = myEncounterDao.create(order, mySrd).getId().toUnqualifiedVersionless();
List<IIdType> actual = toUnqualifiedVersionlessIds(myDiagnosticOrderDao.search(DiagnosticOrder.SP_ITEM_DATE, new DateParam("2011-12-12T11:12:12Z")));
List<IIdType> actual = toUnqualifiedVersionlessIds(myEncounterDao.search(Encounter.SP_LOCATION_PERIOD, new DateParam("2011-12-12T11:12:12Z")));
assertThat(actual, contains(id));
Class<ResourceIndexedSearchParamDate> type = ResourceIndexedSearchParamDate.class;
@ -224,20 +224,20 @@ public class FhirResourceDaoDstu3SearchNoFtTest extends BaseJpaDstu3Test {
pract2.addName().addFamily("SOME PRACT2");
myPractitionerDao.update(pract2, mySrd);
DiagnosticOrder res = new DiagnosticOrder();
res.addEvent().setActor(new Reference("Practitioner/somepract"));
res.addEvent().setActor(new Reference("Practitioner/somepract"));
res.addEvent().setActor(new Reference("Practitioner/somepract2"));
res.addEvent().setActor(new Reference("Practitioner/somepract2"));
DiagnosticRequest res = new DiagnosticRequest();
res.addReplaces(new Reference("Practitioner/somepract"));
res.addReplaces(new Reference("Practitioner/somepract"));
res.addReplaces(new Reference("Practitioner/somepract2"));
res.addReplaces(new Reference("Practitioner/somepract2"));
IIdType id = myDiagnosticOrderDao.create(res, mySrd).getId().toUnqualifiedVersionless();
IIdType id = myDiagnosticRequestDao.create(res, mySrd).getId().toUnqualifiedVersionless();
Class<ResourceLink> type = ResourceLink.class;
List<?> results = myEntityManager.createQuery("SELECT i FROM " + type.getSimpleName() + " i", type).getResultList();
ourLog.info(toStringMultiline(results));
assertEquals(2, results.size());
List<IIdType> actual = toUnqualifiedVersionlessIds(myDiagnosticOrderDao.search(DiagnosticOrder.SP_ACTOR, new ReferenceParam("Practitioner/somepract")));
List<IIdType> actual = toUnqualifiedVersionlessIds(myDiagnosticRequestDao.search(DiagnosticRequest.SP_REPLACES, new ReferenceParam("Practitioner/somepract")));
assertThat(actual, contains(id));
}

View File

@ -1,81 +1,15 @@
package ca.uhn.fhir.jpa.dao.dstu3;
import static org.hamcrest.Matchers.contains;
import static org.hamcrest.Matchers.containsInAnyOrder;
import static org.hamcrest.Matchers.containsInRelativeOrder;
import static org.hamcrest.Matchers.empty;
import static org.hamcrest.Matchers.endsWith;
import static org.hamcrest.Matchers.hasItems;
import static org.hamcrest.Matchers.not;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertThat;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;
import static org.mockito.Mockito.mock;
import java.math.BigDecimal;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Set;
import javax.persistence.EntityManager;
import javax.servlet.http.HttpServletRequest;
import org.apache.commons.lang3.StringUtils;
import org.hl7.fhir.dstu3.hapi.validation.IValidationSupport;
import org.hl7.fhir.dstu3.model.AllergyIntolerance;
import org.hl7.fhir.dstu3.model.Appointment;
import org.hl7.fhir.dstu3.model.AuditEvent;
import org.hl7.fhir.dstu3.model.Bundle;
import org.hl7.fhir.dstu3.model.CarePlan;
import org.hl7.fhir.dstu3.model.CodeSystem;
import org.hl7.fhir.dstu3.model.CodeType;
import org.hl7.fhir.dstu3.model.CodeableConcept;
import org.hl7.fhir.dstu3.model.Coding;
import org.hl7.fhir.dstu3.model.CompartmentDefinition;
import org.hl7.fhir.dstu3.model.ConceptMap;
import org.hl7.fhir.dstu3.model.Condition;
import org.hl7.fhir.dstu3.model.ContactPoint.ContactPointSystem;
import org.hl7.fhir.dstu3.model.DateTimeType;
import org.hl7.fhir.dstu3.model.DateType;
import org.hl7.fhir.dstu3.model.Device;
import org.hl7.fhir.dstu3.model.DiagnosticOrder;
import org.hl7.fhir.dstu3.model.DiagnosticReport;
import org.hl7.fhir.dstu3.model.Encounter;
import org.hl7.fhir.dstu3.model.Enumerations.AdministrativeGender;
import org.hl7.fhir.dstu3.model.IdType;
import org.hl7.fhir.dstu3.model.Immunization;
import org.hl7.fhir.dstu3.model.Location;
import org.hl7.fhir.dstu3.model.Media;
import org.hl7.fhir.dstu3.model.Medication;
import org.hl7.fhir.dstu3.model.MedicationOrder;
import org.hl7.fhir.dstu3.model.Meta;
import org.hl7.fhir.dstu3.model.NamingSystem;
import org.hl7.fhir.dstu3.model.Observation;
import org.hl7.fhir.dstu3.model.OperationDefinition;
import org.hl7.fhir.dstu3.model.Organization;
import org.hl7.fhir.dstu3.model.Patient;
import org.hl7.fhir.dstu3.model.Period;
import org.hl7.fhir.dstu3.model.Practitioner;
import org.hl7.fhir.dstu3.model.Quantity;
import org.hl7.fhir.dstu3.model.Questionnaire;
import org.hl7.fhir.dstu3.model.QuestionnaireResponse;
import org.hl7.fhir.dstu3.model.Reference;
import org.hl7.fhir.dstu3.model.StringType;
import org.hl7.fhir.dstu3.model.StructureDefinition;
import org.hl7.fhir.dstu3.model.Subscription;
import org.hl7.fhir.dstu3.model.Subscription.SubscriptionChannelType;
import org.hl7.fhir.dstu3.model.Subscription.SubscriptionStatus;
import org.hl7.fhir.dstu3.model.Substance;
import org.hl7.fhir.dstu3.model.TemporalPrecisionEnum;
import org.hl7.fhir.instance.model.api.IAnyResource;
import org.hl7.fhir.instance.model.api.IBaseResource;
import org.hl7.fhir.dstu3.model.*;
import org.hl7.fhir.instance.model.api.IIdType;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
@ -86,46 +20,11 @@ import org.springframework.transaction.PlatformTransactionManager;
import org.springframework.transaction.annotation.Transactional;
import ca.uhn.fhir.context.FhirContext;
import ca.uhn.fhir.jpa.config.TestDstu3Config;
import ca.uhn.fhir.jpa.config.TestDstu3WithoutLuceneConfig;
import ca.uhn.fhir.jpa.dao.BaseHapiFhirDao;
import ca.uhn.fhir.jpa.dao.BaseJpaTest;
import ca.uhn.fhir.jpa.dao.DaoConfig;
import ca.uhn.fhir.jpa.dao.IFhirResourceDao;
import ca.uhn.fhir.jpa.dao.IFhirResourceDaoPatient;
import ca.uhn.fhir.jpa.dao.IFhirResourceDaoSubscription;
import ca.uhn.fhir.jpa.dao.IFhirSystemDao;
import ca.uhn.fhir.jpa.dao.SearchParameterMap;
import ca.uhn.fhir.jpa.entity.ResourceIndexedSearchParamDate;
import ca.uhn.fhir.jpa.entity.ResourceIndexedSearchParamNumber;
import ca.uhn.fhir.jpa.entity.ResourceIndexedSearchParamQuantity;
import ca.uhn.fhir.jpa.entity.ResourceIndexedSearchParamString;
import ca.uhn.fhir.jpa.entity.ResourceIndexedSearchParamToken;
import ca.uhn.fhir.jpa.entity.ResourceLink;
import ca.uhn.fhir.jpa.dao.*;
import ca.uhn.fhir.jpa.provider.dstu3.JpaSystemProviderDstu3;
import ca.uhn.fhir.model.api.IQueryParameterType;
import ca.uhn.fhir.model.api.Include;
import ca.uhn.fhir.model.dstu.valueset.QuantityCompararatorEnum;
import ca.uhn.fhir.rest.api.SortOrderEnum;
import ca.uhn.fhir.rest.api.SortSpec;
import ca.uhn.fhir.rest.param.CompositeParam;
import ca.uhn.fhir.rest.param.DateParam;
import ca.uhn.fhir.rest.param.DateRangeParam;
import ca.uhn.fhir.rest.param.HasParam;
import ca.uhn.fhir.rest.param.NumberParam;
import ca.uhn.fhir.rest.param.ParamPrefixEnum;
import ca.uhn.fhir.rest.param.QuantityParam;
import ca.uhn.fhir.rest.param.ReferenceParam;
import ca.uhn.fhir.rest.param.StringAndListParam;
import ca.uhn.fhir.rest.param.StringOrListParam;
import ca.uhn.fhir.rest.param.StringParam;
import ca.uhn.fhir.rest.param.TokenAndListParam;
import ca.uhn.fhir.rest.param.TokenOrListParam;
import ca.uhn.fhir.rest.param.TokenParam;
import ca.uhn.fhir.rest.param.TokenParamModifier;
import ca.uhn.fhir.rest.param.UriParam;
import ca.uhn.fhir.rest.server.Constants;
import ca.uhn.fhir.rest.server.IBundleProvider;
import ca.uhn.fhir.rest.server.exceptions.InvalidRequestException;
import ca.uhn.fhir.util.TestUtil;
@ -170,8 +69,8 @@ public class FhirResourceDaoDstu3SearchWithLuceneDisabledTest extends BaseJpaTes
@Qualifier("myDeviceDaoDstu3")
private IFhirResourceDao<Device> myDeviceDao;
@Autowired
@Qualifier("myDiagnosticOrderDaoDstu3")
private IFhirResourceDao<DiagnosticOrder> myDiagnosticOrderDao;
@Qualifier("myDiagnosticRequestDaoDstu3")
private IFhirResourceDao<DiagnosticRequest> myDiagnosticRequestDao;
@Autowired
@Qualifier("myDiagnosticReportDaoDstu3")
private IFhirResourceDao<DiagnosticReport> myDiagnosticReportDao;

View File

@ -555,7 +555,7 @@ public class FhirResourceDaoDstu3TerminologyTest extends BaseJpaDstu3Test {
String id1 = myAllergyIntoleranceDao.create(ai1, mySrd).getId().toUnqualifiedVersionless().getValue();
AllergyIntolerance ai2 = new AllergyIntolerance();
ai2.setStatus(AllergyIntoleranceStatus.CONFIRMED);
ai2.setStatus(AllergyIntoleranceStatus.ACTIVECONFIRMED);
String id2 = myAllergyIntoleranceDao.create(ai2, mySrd).getId().toUnqualifiedVersionless().getValue();
AllergyIntolerance ai3 = new AllergyIntolerance();
@ -595,7 +595,7 @@ public class FhirResourceDaoDstu3TerminologyTest extends BaseJpaDstu3Test {
String id1 = myAllergyIntoleranceDao.create(ai1, mySrd).getId().toUnqualifiedVersionless().getValue();
AllergyIntolerance ai2 = new AllergyIntolerance();
ai2.setStatus(AllergyIntoleranceStatus.CONFIRMED);
ai2.setStatus(AllergyIntoleranceStatus.ACTIVECONFIRMED);
String id2 = myAllergyIntoleranceDao.create(ai2, mySrd).getId().toUnqualifiedVersionless().getValue();
AllergyIntolerance ai3 = new AllergyIntolerance();
@ -630,7 +630,7 @@ public class FhirResourceDaoDstu3TerminologyTest extends BaseJpaDstu3Test {
String id1 = myAllergyIntoleranceDao.create(ai1, mySrd).getId().toUnqualifiedVersionless().getValue();
AllergyIntolerance ai2 = new AllergyIntolerance();
ai2.setStatus(AllergyIntoleranceStatus.CONFIRMED);
ai2.setStatus(AllergyIntoleranceStatus.ACTIVECONFIRMED);
String id2 = myAllergyIntoleranceDao.create(ai2, mySrd).getId().toUnqualifiedVersionless().getValue();
AllergyIntolerance ai3 = new AllergyIntolerance();
@ -647,11 +647,11 @@ public class FhirResourceDaoDstu3TerminologyTest extends BaseJpaDstu3Test {
assertThat(toUnqualifiedVersionlessIdValues(myAllergyIntoleranceDao.search(params)), containsInAnyOrder(id1, id2));
params = new SearchParameterMap();
params.add(AllergyIntolerance.SP_STATUS, new TokenParam("http://hl7.org/fhir/allergy-intolerance-status", AllergyIntoleranceStatus.CONFIRMED.toCode()).setModifier(TokenParamModifier.BELOW));
params.add(AllergyIntolerance.SP_STATUS, new TokenParam("http://hl7.org/fhir/allergy-intolerance-status", AllergyIntoleranceStatus.ACTIVECONFIRMED.toCode()).setModifier(TokenParamModifier.BELOW));
assertThat(toUnqualifiedVersionlessIdValues(myAllergyIntoleranceDao.search(params)), containsInAnyOrder(id2));
params = new SearchParameterMap();
params.add(AllergyIntolerance.SP_STATUS, new TokenParam("http://hl7.org/fhir/allergy-intolerance-status", AllergyIntoleranceStatus.CONFIRMED.toCode()));
params.add(AllergyIntolerance.SP_STATUS, new TokenParam("http://hl7.org/fhir/allergy-intolerance-status", AllergyIntoleranceStatus.ACTIVECONFIRMED.toCode()));
assertThat(toUnqualifiedVersionlessIdValues(myAllergyIntoleranceDao.search(params)), containsInAnyOrder(id2));
params = new SearchParameterMap();
@ -677,7 +677,7 @@ public class FhirResourceDaoDstu3TerminologyTest extends BaseJpaDstu3Test {
String id1 = myAllergyIntoleranceDao.create(ai1, mySrd).getId().toUnqualifiedVersionless().getValue();
AllergyIntolerance ai2 = new AllergyIntolerance();
ai2.setStatus(AllergyIntoleranceStatus.CONFIRMED);
ai2.setStatus(AllergyIntoleranceStatus.ACTIVECONFIRMED);
String id2 = myAllergyIntoleranceDao.create(ai2, mySrd).getId().toUnqualifiedVersionless().getValue();
AllergyIntolerance ai3 = new AllergyIntolerance();
@ -694,11 +694,11 @@ public class FhirResourceDaoDstu3TerminologyTest extends BaseJpaDstu3Test {
assertThat(toUnqualifiedVersionlessIdValues(myAllergyIntoleranceDao.search(params)), containsInAnyOrder(id1, id2));
params = new SearchParameterMap();
params.add(AllergyIntolerance.SP_STATUS, new TokenParam(null, AllergyIntoleranceStatus.CONFIRMED.toCode()).setModifier(TokenParamModifier.BELOW));
params.add(AllergyIntolerance.SP_STATUS, new TokenParam(null, AllergyIntoleranceStatus.ACTIVECONFIRMED.toCode()).setModifier(TokenParamModifier.BELOW));
assertThat(toUnqualifiedVersionlessIdValues(myAllergyIntoleranceDao.search(params)), containsInAnyOrder(id2));
params = new SearchParameterMap();
params.add(AllergyIntolerance.SP_STATUS, new TokenParam(null, AllergyIntoleranceStatus.CONFIRMED.toCode()));
params.add(AllergyIntolerance.SP_STATUS, new TokenParam(null, AllergyIntoleranceStatus.ACTIVECONFIRMED.toCode()));
assertThat(toUnqualifiedVersionlessIdValues(myAllergyIntoleranceDao.search(params)), containsInAnyOrder(id2));
params = new SearchParameterMap();

View File

@ -56,7 +56,7 @@ import org.hl7.fhir.dstu3.model.Condition;
import org.hl7.fhir.dstu3.model.DateTimeType;
import org.hl7.fhir.dstu3.model.DateType;
import org.hl7.fhir.dstu3.model.Device;
import org.hl7.fhir.dstu3.model.DiagnosticOrder;
import org.hl7.fhir.dstu3.model.DiagnosticRequest;
import org.hl7.fhir.dstu3.model.DocumentManifest;
import org.hl7.fhir.dstu3.model.DocumentReference;
import org.hl7.fhir.dstu3.model.Encounter;
@ -100,6 +100,8 @@ import com.google.common.collect.Lists;
import ca.uhn.fhir.model.primitive.InstantDt;
import ca.uhn.fhir.model.primitive.UriDt;
import ca.uhn.fhir.parser.IParser;
import ca.uhn.fhir.parser.StrictErrorHandler;
import ca.uhn.fhir.rest.api.MethodOutcome;
import ca.uhn.fhir.rest.api.SummaryEnum;
import ca.uhn.fhir.rest.client.IGenericClient;
@ -925,17 +927,17 @@ public class ResourceProviderDstu3Test extends BaseResourceProviderDstu3Test {
* See issue #52
*/
@Test
public void testDiagnosticOrderResources() throws Exception {
public void testDiagnosticRequestResources() throws Exception {
IGenericClient client = ourClient;
int initialSize = client.search().forResource(DiagnosticOrder.class).returnBundle(Bundle.class).execute().getEntry().size();
int initialSize = client.search().forResource(DiagnosticRequest.class).returnBundle(Bundle.class).execute().getEntry().size();
DiagnosticOrder res = new DiagnosticOrder();
DiagnosticRequest res = new DiagnosticRequest();
res.addIdentifier().setSystem("urn:foo").setValue("123");
client.create().resource(res).execute();
int newSize = client.search().forResource(DiagnosticOrder.class).returnBundle(Bundle.class).execute().getEntry().size();
int newSize = client.search().forResource(DiagnosticRequest.class).returnBundle(Bundle.class).execute().getEntry().size();
assertEquals(1, newSize - initialSize);
@ -1170,7 +1172,9 @@ public class ResourceProviderDstu3Test extends BaseResourceProviderDstu3Test {
@Test
public void testEverythingPatientDoesntRepeatPatient() throws Exception {
Bundle b;
b = myFhirCtx.newJsonParser().parseResource(Bundle.class, new InputStreamReader(ResourceProviderDstu3Test.class.getResourceAsStream("/bug147-bundle.json")));
IParser parser = myFhirCtx.newJsonParser();
parser.setParserErrorHandler(new StrictErrorHandler());
b = parser.parseResource(Bundle.class, new InputStreamReader(ResourceProviderDstu3Test.class.getResourceAsStream("/bug147-bundle-dstu3.json")));
Bundle resp = ourClient.transaction().withBundle(b).execute();
List<IdType> ids = new ArrayList<IdType>();
@ -1261,7 +1265,7 @@ public class ResourceProviderDstu3Test extends BaseResourceProviderDstu3Test {
b.addEntry().setResource(p).getRequest().setMethod(HTTPVerb.POST);
Condition c = new Condition();
c.getPatient().setReference("Patient/1");
c.getSubject().setReference("Patient/1");
b.addEntry().setResource(c).getRequest().setMethod(HTTPVerb.POST);
Bundle resp = ourClient.transaction().withBundle(b).execute();
@ -1351,10 +1355,10 @@ public class ResourceProviderDstu3Test extends BaseResourceProviderDstu3Test {
IIdType p2Id = ourClient.create().resource(p2).execute().getId().toUnqualifiedVersionless();
Condition c1 = new Condition();
c1.getPatient().setReferenceElement(p1Id);
c1.getSubject().setReferenceElement(p1Id);
IIdType c1Id = ourClient.create().resource(c1).execute().getId().toUnqualifiedVersionless();
Condition c2 = new Condition();
c2.getPatient().setReferenceElement(p2Id);
c2.getSubject().setReferenceElement(p2Id);
IIdType c2Id = ourClient.create().resource(c2).execute().getId().toUnqualifiedVersionless();
Condition c3 = new Condition();
@ -1393,7 +1397,7 @@ public class ResourceProviderDstu3Test extends BaseResourceProviderDstu3Test {
Condition c = new Condition();
c.getCode().setText(methodName);
c.getPatient().setReferenceElement(pId);
c.getSubject().setReferenceElement(pId);
IIdType cId = ourClient.create().resource(c).execute().getId().toUnqualifiedVersionless();
Thread.sleep(10);

View File

@ -109,11 +109,11 @@ public class TerminologySvcImplTest extends BaseJpaDstu3Test {
concepts = myTermSvc.findCodesBelow("http://hl7.org/fhir/allergy-intolerance-status", "active");
codes = toCodes(concepts);
assertThat(codes, containsInAnyOrder("active", "confirmed", "unconfirmed"));
assertThat(codes, containsInAnyOrder("active", "active-confirmed"));
concepts = myTermSvc.findCodesBelow("http://hl7.org/fhir/allergy-intolerance-status", "confirmed");
concepts = myTermSvc.findCodesBelow("http://hl7.org/fhir/allergy-intolerance-status", "active-confirmed");
codes = toCodes(concepts);
assertThat(codes, containsInAnyOrder("confirmed"));
assertThat(codes, containsInAnyOrder("active-confirmed"));
// Unknown code
concepts = myTermSvc.findCodesBelow("http://hl7.org/fhir/allergy-intolerance-status", "FOO");
@ -135,9 +135,9 @@ public class TerminologySvcImplTest extends BaseJpaDstu3Test {
codes = toCodes(concepts);
assertThat(codes, containsInAnyOrder("active"));
concepts = myTermSvc.findCodesAbove("http://hl7.org/fhir/allergy-intolerance-status", "confirmed");
concepts = myTermSvc.findCodesAbove("http://hl7.org/fhir/allergy-intolerance-status", "active-confirmed");
codes = toCodes(concepts);
assertThat(codes, containsInAnyOrder("active", "confirmed"));
assertThat(codes, containsInAnyOrder("active", "active-confirmed"));
// Unknown code
concepts = myTermSvc.findCodesAbove("http://hl7.org/fhir/allergy-intolerance-status", "FOO");

File diff suppressed because one or more lines are too long

View File

@ -442,7 +442,7 @@
"substance": {
"text": "Doxycycline"
},
"status": "confirmed",
"status": "active-confirmed",
"criticality": "high",
"type": "allergy",
"event": [

View File

@ -220,12 +220,14 @@ public class Element extends Base {
}
List<Base> result = new ArrayList<Base>();
if (children != null) {
for (Element child : children) {
if (child.getName().equals(name))
result.add(child);
if (child.getName().startsWith(name) && child.getProperty().isChoice() && child.getProperty().getName().equals(name+"[x]"))
result.add(child);
}
}
if (result.isEmpty() && checkValid) {
// throw new FHIRException("not determined yet");
}
@ -233,10 +235,19 @@ public class Element extends Base {
}
@Override
protected void listChildren(
List<org.hl7.fhir.dstu3.model.Property> result) {
// TODO Auto-generated method stub
protected void listChildren(List<org.hl7.fhir.dstu3.model.Property> childProps) {
if (children != null) {
for (Element c : children) {
childProps.add(new org.hl7.fhir.dstu3.model.Property(c.getName(), c.fhirType(), c.getProperty().getDefinition().getDefinition(), c.getProperty().getDefinition().getMin(), maxToInt(c.getProperty().getDefinition().getMax()), c));
}
}
}
private int maxToInt(String max) {
if (max.equals("*"))
return Integer.MAX_VALUE;
else
return Integer.parseInt(max);
}
@Override
@ -244,6 +255,11 @@ public class Element extends Base {
return type != null ? property.isPrimitive(type) : property.isPrimitive(property.getType(name));
}
@Override
public boolean isResource() {
return property.isResource();
}
@Override
public boolean hasPrimitiveValue() {
@ -359,6 +375,11 @@ public class Element extends Base {
return getNamedChild(name) != null;
}
@Override
public String toString() {
return name+"="+fhirType() + "["+(children == null || hasValue() ? value : Integer.toString(children.size())+" children")+"]";
}
// @Override
// public boolean equalsDeep(Base other) {
// if (!super.equalsDeep(other))

View File

@ -52,27 +52,41 @@ public class Property {
public String getType(String elementName) {
if (!definition.getPath().contains("."))
return definition.getPath();
if (definition.getType().size() == 0)
ElementDefinition ed = definition;
if (definition.hasContentReference()) {
if (!definition.getContentReference().startsWith("#"))
throw new Error("not handled yet");
boolean found = false;
for (ElementDefinition d : structure.getSnapshot().getElement()) {
if (d.getPath().equals(definition.getContentReference().substring(1))) {
found = true;
ed = d;
}
}
if (!found)
throw new Error("Unable to resolve "+definition.getContentReference());
}
if (ed.getType().size() == 0)
return null;
else if (definition.getType().size() > 1) {
String t = definition.getType().get(0).getCode();
else if (ed.getType().size() > 1) {
String t = ed.getType().get(0).getCode();
boolean all = true;
for (TypeRefComponent tr : definition.getType()) {
for (TypeRefComponent tr : ed.getType()) {
if (!t.equals(tr.getCode()))
all = false;
}
if (all)
return t;
String tail = definition.getPath().substring(definition.getPath().lastIndexOf(".")+1);
String tail = ed.getPath().substring(ed.getPath().lastIndexOf(".")+1);
if (tail.endsWith("[x]") && elementName != null && elementName.startsWith(tail.substring(0, tail.length()-3))) {
String name = elementName.substring(tail.length()-3);
return isPrimitive(lowFirst(name)) ? lowFirst(name) : name;
} else
throw new Error("logic error, gettype when types > 1, name mismatch for "+elementName+" on at "+definition.getPath());
} else if (definition.getType().get(0).getCode() == null) {
throw new Error("logic error, gettype when types > 1, name mismatch for "+elementName+" on at "+ed.getPath());
} else if (ed.getType().get(0).getCode() == null) {
return structure.getId();
} else
return definition.getType().get(0).getCode();
return ed.getType().get(0).getCode();
}
public boolean hasType(String elementName) {
@ -112,7 +126,10 @@ public class Property {
}
public boolean isResource() {
if (definition.getType().size() > 0)
return definition.getType().size() == 1 && ("Resource".equals(definition.getType().get(0).getCode()) || "DomainResource".equals(definition.getType().get(0).getCode()));
else
return !definition.getPath().contains(".") && structure.getKind() == StructureDefinitionKind.RESOURCE;
}
public boolean isList() {

View File

@ -24,6 +24,7 @@ import org.hl7.fhir.dstu3.model.Resource;
import org.hl7.fhir.dstu3.model.ResourceType;
import org.hl7.fhir.dstu3.model.StructureDefinition;
import org.hl7.fhir.dstu3.model.ValueSet;
import org.hl7.fhir.dstu3.model.ValueSet.ConceptReferenceComponent;
import org.hl7.fhir.dstu3.model.ValueSet.ConceptSetComponent;
import org.hl7.fhir.dstu3.model.ValueSet.ValueSetExpansionComponent;
import org.hl7.fhir.dstu3.model.ValueSet.ValueSetExpansionContainsComponent;
@ -228,7 +229,7 @@ public final class HapiWorkerContext implements IWorkerContext, ValueSetExpander
@Override
public ValidationResult validateCode(String theSystem, String theCode, String theDisplay, ValueSet theVs) {
boolean caseSensitive = true;
CodeSystem system = fetchCodeSystem(theSystem);
if (system != null) {
@ -236,19 +237,53 @@ public final class HapiWorkerContext implements IWorkerContext, ValueSetExpander
caseSensitive = system.getCaseSensitive();
}
}
String wantCode = theCode;
if (!caseSensitive) {
wantCode = wantCode.toUpperCase();
}
ValueSetExpansionOutcome expandedValueSet = null;
/*
* The following valueset is a special case, since the BCP codesystem is very difficult to expand
*/
if (theVs != null && "http://hl7.org/fhir/ValueSet/languages".equals(theVs.getId())) {
ValueSet expansion = new ValueSet();
for (ConceptSetComponent nextInclude : theVs.getCompose().getInclude()) {
for (ConceptReferenceComponent nextConcept : nextInclude.getConcept()) {
expansion.getExpansion().addContains().setCode(nextConcept.getCode()).setDisplay(nextConcept.getDisplay());
}
}
expandedValueSet= new ValueSetExpansionOutcome(expansion);
}
// if (theVs.getCompose().hasExclude() == false) {
// if (theVs.getCompose().hasImport() == false) {
// if (theVs.getCompose().hasInclude()) {
// for (ConceptSetComponent nextInclude : theVs.getCompose().getInclude()) {
// if (nextInclude.hasFilter() == false) {
// if (nextInclude.hasConcept() == false) {
// if (nextInclude.hasSystem()) {
//
// }
// }
// }
// }
// }
// }
// }
if (expandedValueSet == null) {
expandedValueSet = expand(theVs);
}
ValueSetExpansionOutcome expandedValueSet = expand(theVs);
for (ValueSetExpansionContainsComponent next : expandedValueSet.getValueset().getExpansion().getContains()) {
String nextCode = next.getCode();
if (!caseSensitive) {
nextCode = nextCode.toUpperCase();
}
if (nextCode.equals(wantCode)) {
if (theSystem == null || next.getSystem().equals(theSystem)) {
ConceptDefinitionComponent definition = new ConceptDefinitionComponent();
@ -299,5 +334,5 @@ public final class HapiWorkerContext implements IWorkerContext, ValueSetExpander
public boolean hasCache() {
throw new UnsupportedOperationException();
}
}

View File

@ -29,7 +29,7 @@ package org.hl7.fhir.dstu3.model;
*/
// Generated on Tue, Jul 12, 2016 12:04-0400 for FHIR v1.5.0
// Generated on Wed, Aug 3, 2016 09:39-0400 for FHIR v1.5.0
import java.util.*;
@ -57,6 +57,10 @@ public class Account extends DomainResource {
* This account is inactive and should not be used to track financial information.
*/
INACTIVE,
/**
* This instance should not have been part of this patient's medical record.
*/
ENTEREDINERROR,
/**
* added to help the parsers with the generic types
*/
@ -68,6 +72,8 @@ public class Account extends DomainResource {
return ACTIVE;
if ("inactive".equals(codeString))
return INACTIVE;
if ("entered-in-error".equals(codeString))
return ENTEREDINERROR;
if (Configuration.isAcceptInvalidEnums())
return null;
else
@ -77,6 +83,7 @@ public class Account extends DomainResource {
switch (this) {
case ACTIVE: return "active";
case INACTIVE: return "inactive";
case ENTEREDINERROR: return "entered-in-error";
default: return "?";
}
}
@ -84,6 +91,7 @@ public class Account extends DomainResource {
switch (this) {
case ACTIVE: return "http://hl7.org/fhir/account-status";
case INACTIVE: return "http://hl7.org/fhir/account-status";
case ENTEREDINERROR: return "http://hl7.org/fhir/account-status";
default: return "?";
}
}
@ -91,6 +99,7 @@ public class Account extends DomainResource {
switch (this) {
case ACTIVE: return "This account is active and may be used.";
case INACTIVE: return "This account is inactive and should not be used to track financial information.";
case ENTEREDINERROR: return "This instance should not have been part of this patient's medical record.";
default: return "?";
}
}
@ -98,6 +107,7 @@ public class Account extends DomainResource {
switch (this) {
case ACTIVE: return "Active";
case INACTIVE: return "Inactive";
case ENTEREDINERROR: return "Entered in error";
default: return "?";
}
}
@ -112,6 +122,8 @@ public class Account extends DomainResource {
return AccountStatus.ACTIVE;
if ("inactive".equals(codeString))
return AccountStatus.INACTIVE;
if ("entered-in-error".equals(codeString))
return AccountStatus.ENTEREDINERROR;
throw new IllegalArgumentException("Unknown AccountStatus code '"+codeString+"'");
}
public Enumeration<AccountStatus> fromType(Base code) throws FHIRException {
@ -124,6 +136,8 @@ public class Account extends DomainResource {
return new Enumeration<AccountStatus>(this, AccountStatus.ACTIVE);
if ("inactive".equals(codeString))
return new Enumeration<AccountStatus>(this, AccountStatus.INACTIVE);
if ("entered-in-error".equals(codeString))
return new Enumeration<AccountStatus>(this, AccountStatus.ENTEREDINERROR);
throw new FHIRException("Unknown AccountStatus code '"+codeString+"'");
}
public String toCode(AccountStatus code) {
@ -131,6 +145,8 @@ public class Account extends DomainResource {
return "active";
if (code == AccountStatus.INACTIVE)
return "inactive";
if (code == AccountStatus.ENTEREDINERROR)
return "entered-in-error";
return "?";
}
public String toSystem(AccountStatus code) {
@ -163,16 +179,17 @@ public class Account extends DomainResource {
* Indicates whether the account is presently used/useable or not.
*/
@Child(name = "status", type = {CodeType.class}, order=3, min=0, max=1, modifier=true, summary=true)
@Description(shortDefinition="active | inactive", formalDefinition="Indicates whether the account is presently used/useable or not." )
@Description(shortDefinition="active | inactive | entered-in-error", formalDefinition="Indicates whether the account is presently used/useable or not." )
@ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/account-status")
protected Enumeration<AccountStatus> status;
/**
* Indicates the period of time over which the account is allowed.
* Indicates the period of time over which the account is allowed to have transactions posted to it.
This period may be different to the coveragePeriod which is the duration of time that services may occur.
*/
@Child(name = "activePeriod", type = {Period.class}, order=4, min=0, max=1, modifier=false, summary=true)
@Description(shortDefinition="Valid from..to", formalDefinition="Indicates the period of time over which the account is allowed." )
protected Period activePeriod;
@Child(name = "active", type = {Period.class}, order=4, min=0, max=1, modifier=false, summary=true)
@Description(shortDefinition="Time window that transactions may be posted to this account", formalDefinition="Indicates the period of time over which the account is allowed to have transactions posted to it.\nThis period may be different to the coveragePeriod which is the duration of time that services may occur." )
protected Period active;
/**
* Identifies the currency to which transactions must be converted when crediting or debiting the account.
@ -188,17 +205,33 @@ public class Account extends DomainResource {
@Description(shortDefinition="How much is in account?", formalDefinition="Represents the sum of all credits less all debits associated with the account. Might be positive, zero or negative." )
protected Money balance;
/**
* The party(s) that are responsible for payment (or part of) of charges applied to this account (including self-pay).
A coverage may only be resposible for specific types of charges, and the sequence of the coverages in the account could be important when processing billing.
*/
@Child(name = "coverage", type = {Coverage.class}, order=7, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
@Description(shortDefinition="The party(s) that are responsible for covering the payment of this account", formalDefinition="The party(s) that are responsible for payment (or part of) of charges applied to this account (including self-pay).\n\nA coverage may only be resposible for specific types of charges, and the sequence of the coverages in the account could be important when processing billing." )
protected List<Reference> coverage;
/**
* The actual objects that are the target of the reference (The party(s) that are responsible for payment (or part of) of charges applied to this account (including self-pay).
A coverage may only be resposible for specific types of charges, and the sequence of the coverages in the account could be important when processing billing.)
*/
protected List<Coverage> coverageTarget;
/**
* Identifies the period of time the account applies to; e.g. accounts created per fiscal year, quarter, etc.
*/
@Child(name = "coveragePeriod", type = {Period.class}, order=7, min=0, max=1, modifier=false, summary=true)
@Child(name = "coveragePeriod", type = {Period.class}, order=8, min=0, max=1, modifier=false, summary=true)
@Description(shortDefinition="Transaction window", formalDefinition="Identifies the period of time the account applies to; e.g. accounts created per fiscal year, quarter, etc." )
protected Period coveragePeriod;
/**
* Identifies the patient, device, practitioner, location or other object the account is associated with.
*/
@Child(name = "subject", type = {Patient.class, Device.class, Practitioner.class, Location.class, HealthcareService.class, Organization.class}, order=8, min=0, max=1, modifier=false, summary=true)
@Child(name = "subject", type = {Patient.class, Device.class, Practitioner.class, Location.class, HealthcareService.class, Organization.class}, order=9, min=0, max=1, modifier=false, summary=true)
@Description(shortDefinition="What is account tied to?", formalDefinition="Identifies the patient, device, practitioner, location or other object the account is associated with." )
protected Reference subject;
@ -210,7 +243,7 @@ public class Account extends DomainResource {
/**
* Indicates the organization, department, etc. with responsibility for the account.
*/
@Child(name = "owner", type = {Organization.class}, order=9, min=0, max=1, modifier=false, summary=true)
@Child(name = "owner", type = {Organization.class}, order=10, min=0, max=1, modifier=false, summary=true)
@Description(shortDefinition="Who is responsible?", formalDefinition="Indicates the organization, department, etc. with responsibility for the account." )
protected Reference owner;
@ -222,11 +255,11 @@ public class Account extends DomainResource {
/**
* Provides additional information about what the account tracks and how it is used.
*/
@Child(name = "description", type = {StringType.class}, order=10, min=0, max=1, modifier=false, summary=true)
@Child(name = "description", type = {StringType.class}, order=11, min=0, max=1, modifier=false, summary=true)
@Description(shortDefinition="Explanation of purpose/use", formalDefinition="Provides additional information about what the account tracks and how it is used." )
protected StringType description;
private static final long serialVersionUID = -1926153194L;
private static final long serialVersionUID = -143220425L;
/**
* Constructor
@ -411,26 +444,28 @@ public class Account extends DomainResource {
}
/**
* @return {@link #activePeriod} (Indicates the period of time over which the account is allowed.)
* @return {@link #active} (Indicates the period of time over which the account is allowed to have transactions posted to it.
This period may be different to the coveragePeriod which is the duration of time that services may occur.)
*/
public Period getActivePeriod() {
if (this.activePeriod == null)
public Period getActive() {
if (this.active == null)
if (Configuration.errorOnAutoCreate())
throw new Error("Attempt to auto-create Account.activePeriod");
throw new Error("Attempt to auto-create Account.active");
else if (Configuration.doAutoCreate())
this.activePeriod = new Period(); // cc
return this.activePeriod;
this.active = new Period(); // cc
return this.active;
}
public boolean hasActivePeriod() {
return this.activePeriod != null && !this.activePeriod.isEmpty();
public boolean hasActive() {
return this.active != null && !this.active.isEmpty();
}
/**
* @param value {@link #activePeriod} (Indicates the period of time over which the account is allowed.)
* @param value {@link #active} (Indicates the period of time over which the account is allowed to have transactions posted to it.
This period may be different to the coveragePeriod which is the duration of time that services may occur.)
*/
public Account setActivePeriod(Period value) {
this.activePeriod = value;
public Account setActive(Period value) {
this.active = value;
return this;
}
@ -482,6 +517,83 @@ public class Account extends DomainResource {
return this;
}
/**
* @return {@link #coverage} (The party(s) that are responsible for payment (or part of) of charges applied to this account (including self-pay).
A coverage may only be resposible for specific types of charges, and the sequence of the coverages in the account could be important when processing billing.)
*/
public List<Reference> getCoverage() {
if (this.coverage == null)
this.coverage = new ArrayList<Reference>();
return this.coverage;
}
/**
* @return Returns a reference to <code>this</code> for easy method chaining
*/
public Account setCoverage(List<Reference> theCoverage) {
this.coverage = theCoverage;
return this;
}
public boolean hasCoverage() {
if (this.coverage == null)
return false;
for (Reference item : this.coverage)
if (!item.isEmpty())
return true;
return false;
}
public Reference addCoverage() { //3
Reference t = new Reference();
if (this.coverage == null)
this.coverage = new ArrayList<Reference>();
this.coverage.add(t);
return t;
}
public Account addCoverage(Reference t) { //3
if (t == null)
return this;
if (this.coverage == null)
this.coverage = new ArrayList<Reference>();
this.coverage.add(t);
return this;
}
/**
* @return The first repetition of repeating field {@link #coverage}, creating it if it does not already exist
*/
public Reference getCoverageFirstRep() {
if (getCoverage().isEmpty()) {
addCoverage();
}
return getCoverage().get(0);
}
/**
* @deprecated Use Reference#setResource(IBaseResource) instead
*/
@Deprecated
public List<Coverage> getCoverageTarget() {
if (this.coverageTarget == null)
this.coverageTarget = new ArrayList<Coverage>();
return this.coverageTarget;
}
/**
* @deprecated Use Reference#setResource(IBaseResource) instead
*/
@Deprecated
public Coverage addCoverageTarget() {
Coverage r = new Coverage();
if (this.coverageTarget == null)
this.coverageTarget = new ArrayList<Coverage>();
this.coverageTarget.add(r);
return r;
}
/**
* @return {@link #coveragePeriod} (Identifies the period of time the account applies to; e.g. accounts created per fiscal year, quarter, etc.)
*/
@ -644,9 +756,10 @@ public class Account extends DomainResource {
childrenList.add(new Property("name", "string", "Name used for the account when displaying it to humans in reports, etc.", 0, java.lang.Integer.MAX_VALUE, name));
childrenList.add(new Property("type", "CodeableConcept", "Categorizes the account for reporting and searching purposes.", 0, java.lang.Integer.MAX_VALUE, type));
childrenList.add(new Property("status", "code", "Indicates whether the account is presently used/useable or not.", 0, java.lang.Integer.MAX_VALUE, status));
childrenList.add(new Property("activePeriod", "Period", "Indicates the period of time over which the account is allowed.", 0, java.lang.Integer.MAX_VALUE, activePeriod));
childrenList.add(new Property("active", "Period", "Indicates the period of time over which the account is allowed to have transactions posted to it.\nThis period may be different to the coveragePeriod which is the duration of time that services may occur.", 0, java.lang.Integer.MAX_VALUE, active));
childrenList.add(new Property("currency", "Coding", "Identifies the currency to which transactions must be converted when crediting or debiting the account.", 0, java.lang.Integer.MAX_VALUE, currency));
childrenList.add(new Property("balance", "Money", "Represents the sum of all credits less all debits associated with the account. Might be positive, zero or negative.", 0, java.lang.Integer.MAX_VALUE, balance));
childrenList.add(new Property("coverage", "Reference(Coverage)", "The party(s) that are responsible for payment (or part of) of charges applied to this account (including self-pay).\n\nA coverage may only be resposible for specific types of charges, and the sequence of the coverages in the account could be important when processing billing.", 0, java.lang.Integer.MAX_VALUE, coverage));
childrenList.add(new Property("coveragePeriod", "Period", "Identifies the period of time the account applies to; e.g. accounts created per fiscal year, quarter, etc.", 0, java.lang.Integer.MAX_VALUE, coveragePeriod));
childrenList.add(new Property("subject", "Reference(Patient|Device|Practitioner|Location|HealthcareService|Organization)", "Identifies the patient, device, practitioner, location or other object the account is associated with.", 0, java.lang.Integer.MAX_VALUE, subject));
childrenList.add(new Property("owner", "Reference(Organization)", "Indicates the organization, department, etc. with responsibility for the account.", 0, java.lang.Integer.MAX_VALUE, owner));
@ -660,9 +773,10 @@ public class Account extends DomainResource {
case 3373707: /*name*/ return this.name == null ? new Base[0] : new Base[] {this.name}; // StringType
case 3575610: /*type*/ return this.type == null ? new Base[0] : new Base[] {this.type}; // CodeableConcept
case -892481550: /*status*/ return this.status == null ? new Base[0] : new Base[] {this.status}; // Enumeration<AccountStatus>
case 1325532263: /*activePeriod*/ return this.activePeriod == null ? new Base[0] : new Base[] {this.activePeriod}; // Period
case -1422950650: /*active*/ return this.active == null ? new Base[0] : new Base[] {this.active}; // Period
case 575402001: /*currency*/ return this.currency == null ? new Base[0] : new Base[] {this.currency}; // Coding
case -339185956: /*balance*/ return this.balance == null ? new Base[0] : new Base[] {this.balance}; // Money
case -351767064: /*coverage*/ return this.coverage == null ? new Base[0] : this.coverage.toArray(new Base[this.coverage.size()]); // Reference
case 1024117193: /*coveragePeriod*/ return this.coveragePeriod == null ? new Base[0] : new Base[] {this.coveragePeriod}; // Period
case -1867885268: /*subject*/ return this.subject == null ? new Base[0] : new Base[] {this.subject}; // Reference
case 106164915: /*owner*/ return this.owner == null ? new Base[0] : new Base[] {this.owner}; // Reference
@ -687,8 +801,8 @@ public class Account extends DomainResource {
case -892481550: // status
this.status = new AccountStatusEnumFactory().fromType(value); // Enumeration<AccountStatus>
break;
case 1325532263: // activePeriod
this.activePeriod = castToPeriod(value); // Period
case -1422950650: // active
this.active = castToPeriod(value); // Period
break;
case 575402001: // currency
this.currency = castToCoding(value); // Coding
@ -696,6 +810,9 @@ public class Account extends DomainResource {
case -339185956: // balance
this.balance = castToMoney(value); // Money
break;
case -351767064: // coverage
this.getCoverage().add(castToReference(value)); // Reference
break;
case 1024117193: // coveragePeriod
this.coveragePeriod = castToPeriod(value); // Period
break;
@ -723,12 +840,14 @@ public class Account extends DomainResource {
this.type = castToCodeableConcept(value); // CodeableConcept
else if (name.equals("status"))
this.status = new AccountStatusEnumFactory().fromType(value); // Enumeration<AccountStatus>
else if (name.equals("activePeriod"))
this.activePeriod = castToPeriod(value); // Period
else if (name.equals("active"))
this.active = castToPeriod(value); // Period
else if (name.equals("currency"))
this.currency = castToCoding(value); // Coding
else if (name.equals("balance"))
this.balance = castToMoney(value); // Money
else if (name.equals("coverage"))
this.getCoverage().add(castToReference(value));
else if (name.equals("coveragePeriod"))
this.coveragePeriod = castToPeriod(value); // Period
else if (name.equals("subject"))
@ -748,9 +867,10 @@ public class Account extends DomainResource {
case 3373707: throw new FHIRException("Cannot make property name as it is not a complex type"); // StringType
case 3575610: return getType(); // CodeableConcept
case -892481550: throw new FHIRException("Cannot make property status as it is not a complex type"); // Enumeration<AccountStatus>
case 1325532263: return getActivePeriod(); // Period
case -1422950650: return getActive(); // Period
case 575402001: return getCurrency(); // Coding
case -339185956: return getBalance(); // Money
case -351767064: return addCoverage(); // Reference
case 1024117193: return getCoveragePeriod(); // Period
case -1867885268: return getSubject(); // Reference
case 106164915: return getOwner(); // Reference
@ -775,9 +895,9 @@ public class Account extends DomainResource {
else if (name.equals("status")) {
throw new FHIRException("Cannot call addChild on a primitive type Account.status");
}
else if (name.equals("activePeriod")) {
this.activePeriod = new Period();
return this.activePeriod;
else if (name.equals("active")) {
this.active = new Period();
return this.active;
}
else if (name.equals("currency")) {
this.currency = new Coding();
@ -787,6 +907,9 @@ public class Account extends DomainResource {
this.balance = new Money();
return this.balance;
}
else if (name.equals("coverage")) {
return addCoverage();
}
else if (name.equals("coveragePeriod")) {
this.coveragePeriod = new Period();
return this.coveragePeriod;
@ -822,9 +945,14 @@ public class Account extends DomainResource {
dst.name = name == null ? null : name.copy();
dst.type = type == null ? null : type.copy();
dst.status = status == null ? null : status.copy();
dst.activePeriod = activePeriod == null ? null : activePeriod.copy();
dst.active = active == null ? null : active.copy();
dst.currency = currency == null ? null : currency.copy();
dst.balance = balance == null ? null : balance.copy();
if (coverage != null) {
dst.coverage = new ArrayList<Reference>();
for (Reference i : coverage)
dst.coverage.add(i.copy());
};
dst.coveragePeriod = coveragePeriod == null ? null : coveragePeriod.copy();
dst.subject = subject == null ? null : subject.copy();
dst.owner = owner == null ? null : owner.copy();
@ -844,8 +972,8 @@ public class Account extends DomainResource {
return false;
Account o = (Account) other;
return compareDeep(identifier, o.identifier, true) && compareDeep(name, o.name, true) && compareDeep(type, o.type, true)
&& compareDeep(status, o.status, true) && compareDeep(activePeriod, o.activePeriod, true) && compareDeep(currency, o.currency, true)
&& compareDeep(balance, o.balance, true) && compareDeep(coveragePeriod, o.coveragePeriod, true)
&& compareDeep(status, o.status, true) && compareDeep(active, o.active, true) && compareDeep(currency, o.currency, true)
&& compareDeep(balance, o.balance, true) && compareDeep(coverage, o.coverage, true) && compareDeep(coveragePeriod, o.coveragePeriod, true)
&& compareDeep(subject, o.subject, true) && compareDeep(owner, o.owner, true) && compareDeep(description, o.description, true)
;
}
@ -863,7 +991,7 @@ public class Account extends DomainResource {
public boolean isEmpty() {
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(identifier, name, type, status
, activePeriod, currency, balance, coveragePeriod, subject, owner, description
, active, currency, balance, coverage, coveragePeriod, subject, owner, description
);
}
@ -1053,17 +1181,17 @@ public class Account extends DomainResource {
/**
* Search parameter: <b>status</b>
* <p>
* Description: <b>active | inactive</b><br>
* Description: <b>active | inactive | entered-in-error</b><br>
* Type: <b>token</b><br>
* Path: <b>Account.status</b><br>
* </p>
*/
@SearchParamDefinition(name="status", path="Account.status", description="active | inactive", type="token" )
@SearchParamDefinition(name="status", path="Account.status", description="active | inactive | entered-in-error", type="token" )
public static final String SP_STATUS = "status";
/**
* <b>Fluent Client</b> search parameter constant for <b>status</b>
* <p>
* Description: <b>active | inactive</b><br>
* Description: <b>active | inactive | entered-in-error</b><br>
* Type: <b>token</b><br>
* Path: <b>Account.status</b><br>
* </p>

View File

@ -29,7 +29,7 @@ package org.hl7.fhir.dstu3.model;
*/
// Generated on Tue, Jul 12, 2016 12:04-0400 for FHIR v1.5.0
// Generated on Wed, Aug 3, 2016 09:39-0400 for FHIR v1.5.0
import java.util.*;

View File

@ -29,7 +29,7 @@ package org.hl7.fhir.dstu3.model;
*/
// Generated on Tue, Jul 12, 2016 12:04-0400 for FHIR v1.5.0
// Generated on Wed, Aug 3, 2016 09:39-0400 for FHIR v1.5.0
import java.util.*;

View File

@ -29,7 +29,7 @@ package org.hl7.fhir.dstu3.model;
*/
// Generated on Tue, Jul 12, 2016 12:04-0400 for FHIR v1.5.0
// Generated on Wed, Aug 3, 2016 09:39-0400 for FHIR v1.5.0
import java.util.*;
@ -50,27 +50,23 @@ public class AllergyIntolerance extends DomainResource {
public enum AllergyIntoleranceStatus {
/**
* An active record of a reaction to the identified Substance.
* An active record of a risk of a reaction to the identified substance.
*/
ACTIVE,
/**
* A low level of certainty about the propensity for a reaction to the identified Substance.
* A high level of certainty about the propensity for a reaction to the identified substance, which may include clinical evidence by testing or rechallenge.
*/
UNCONFIRMED,
ACTIVECONFIRMED,
/**
* A high level of certainty about the propensity for a reaction to the identified Substance, which may include clinical evidence by testing or rechallenge.
*/
CONFIRMED,
/**
* An inactive record of a reaction to the identified Substance.
* An inactivated record of a risk of a reaction to the identified substance
*/
INACTIVE,
/**
* A reaction to the identified Substance has been clinically reassessed by testing or rechallenge and considered to be resolved.
* A reaction to the identified substance has been clinically reassessed by testing or rechallenge re-exposure and considered to be resolved e.g. change the word rechallenged to re-exposure
*/
RESOLVED,
/**
* A propensity for a reaction to the identified Substance has been disproven with a high level of clinical certainty, which may include testing or rechallenge, and is refuted.
* A propensity for a reaction to the identified substance has been disproven with a high level of clinical certainty, which may include testing or rechallenge, and is refuted.
*/
REFUTED,
/**
@ -86,10 +82,8 @@ public class AllergyIntolerance extends DomainResource {
return null;
if ("active".equals(codeString))
return ACTIVE;
if ("unconfirmed".equals(codeString))
return UNCONFIRMED;
if ("confirmed".equals(codeString))
return CONFIRMED;
if ("active-confirmed".equals(codeString))
return ACTIVECONFIRMED;
if ("inactive".equals(codeString))
return INACTIVE;
if ("resolved".equals(codeString))
@ -106,8 +100,7 @@ public class AllergyIntolerance extends DomainResource {
public String toCode() {
switch (this) {
case ACTIVE: return "active";
case UNCONFIRMED: return "unconfirmed";
case CONFIRMED: return "confirmed";
case ACTIVECONFIRMED: return "active-confirmed";
case INACTIVE: return "inactive";
case RESOLVED: return "resolved";
case REFUTED: return "refuted";
@ -118,8 +111,7 @@ public class AllergyIntolerance extends DomainResource {
public String getSystem() {
switch (this) {
case ACTIVE: return "http://hl7.org/fhir/allergy-intolerance-status";
case UNCONFIRMED: return "http://hl7.org/fhir/allergy-intolerance-status";
case CONFIRMED: return "http://hl7.org/fhir/allergy-intolerance-status";
case ACTIVECONFIRMED: return "http://hl7.org/fhir/allergy-intolerance-status";
case INACTIVE: return "http://hl7.org/fhir/allergy-intolerance-status";
case RESOLVED: return "http://hl7.org/fhir/allergy-intolerance-status";
case REFUTED: return "http://hl7.org/fhir/allergy-intolerance-status";
@ -129,12 +121,11 @@ public class AllergyIntolerance extends DomainResource {
}
public String getDefinition() {
switch (this) {
case ACTIVE: return "An active record of a reaction to the identified Substance.";
case UNCONFIRMED: return "A low level of certainty about the propensity for a reaction to the identified Substance.";
case CONFIRMED: return "A high level of certainty about the propensity for a reaction to the identified Substance, which may include clinical evidence by testing or rechallenge.";
case INACTIVE: return "An inactive record of a reaction to the identified Substance.";
case RESOLVED: return "A reaction to the identified Substance has been clinically reassessed by testing or rechallenge and considered to be resolved.";
case REFUTED: return "A propensity for a reaction to the identified Substance has been disproven with a high level of clinical certainty, which may include testing or rechallenge, and is refuted.";
case ACTIVE: return "An active record of a risk of a reaction to the identified substance.";
case ACTIVECONFIRMED: return "A high level of certainty about the propensity for a reaction to the identified substance, which may include clinical evidence by testing or rechallenge.";
case INACTIVE: return "An inactivated record of a risk of a reaction to the identified substance";
case RESOLVED: return "A reaction to the identified substance has been clinically reassessed by testing or rechallenge re-exposure and considered to be resolved e.g. change the word rechallenged to re-exposure";
case REFUTED: return "A propensity for a reaction to the identified substance has been disproven with a high level of clinical certainty, which may include testing or rechallenge, and is refuted.";
case ENTEREDINERROR: return "The statement was entered in error and is not valid.";
default: return "?";
}
@ -142,8 +133,7 @@ public class AllergyIntolerance extends DomainResource {
public String getDisplay() {
switch (this) {
case ACTIVE: return "Active";
case UNCONFIRMED: return "Unconfirmed";
case CONFIRMED: return "Confirmed";
case ACTIVECONFIRMED: return "Active Confirmed";
case INACTIVE: return "Inactive";
case RESOLVED: return "Resolved";
case REFUTED: return "Refuted";
@ -160,10 +150,8 @@ public class AllergyIntolerance extends DomainResource {
return null;
if ("active".equals(codeString))
return AllergyIntoleranceStatus.ACTIVE;
if ("unconfirmed".equals(codeString))
return AllergyIntoleranceStatus.UNCONFIRMED;
if ("confirmed".equals(codeString))
return AllergyIntoleranceStatus.CONFIRMED;
if ("active-confirmed".equals(codeString))
return AllergyIntoleranceStatus.ACTIVECONFIRMED;
if ("inactive".equals(codeString))
return AllergyIntoleranceStatus.INACTIVE;
if ("resolved".equals(codeString))
@ -182,10 +170,8 @@ public class AllergyIntolerance extends DomainResource {
return null;
if ("active".equals(codeString))
return new Enumeration<AllergyIntoleranceStatus>(this, AllergyIntoleranceStatus.ACTIVE);
if ("unconfirmed".equals(codeString))
return new Enumeration<AllergyIntoleranceStatus>(this, AllergyIntoleranceStatus.UNCONFIRMED);
if ("confirmed".equals(codeString))
return new Enumeration<AllergyIntoleranceStatus>(this, AllergyIntoleranceStatus.CONFIRMED);
if ("active-confirmed".equals(codeString))
return new Enumeration<AllergyIntoleranceStatus>(this, AllergyIntoleranceStatus.ACTIVECONFIRMED);
if ("inactive".equals(codeString))
return new Enumeration<AllergyIntoleranceStatus>(this, AllergyIntoleranceStatus.INACTIVE);
if ("resolved".equals(codeString))
@ -199,10 +185,8 @@ public class AllergyIntolerance extends DomainResource {
public String toCode(AllergyIntoleranceStatus code) {
if (code == AllergyIntoleranceStatus.ACTIVE)
return "active";
if (code == AllergyIntoleranceStatus.UNCONFIRMED)
return "unconfirmed";
if (code == AllergyIntoleranceStatus.CONFIRMED)
return "confirmed";
if (code == AllergyIntoleranceStatus.ACTIVECONFIRMED)
return "active-confirmed";
if (code == AllergyIntoleranceStatus.INACTIVE)
return "inactive";
if (code == AllergyIntoleranceStatus.RESOLVED)
@ -321,10 +305,6 @@ public class AllergyIntolerance extends DomainResource {
* Substances that are encountered in the environment.
*/
ENVIRONMENT,
/**
* Other substances that are not covered by any other category.
*/
OTHER,
/**
* added to help the parsers with the generic types
*/
@ -338,8 +318,6 @@ public class AllergyIntolerance extends DomainResource {
return MEDICATION;
if ("environment".equals(codeString))
return ENVIRONMENT;
if ("other".equals(codeString))
return OTHER;
if (Configuration.isAcceptInvalidEnums())
return null;
else
@ -350,7 +328,6 @@ public class AllergyIntolerance extends DomainResource {
case FOOD: return "food";
case MEDICATION: return "medication";
case ENVIRONMENT: return "environment";
case OTHER: return "other";
default: return "?";
}
}
@ -359,7 +336,6 @@ public class AllergyIntolerance extends DomainResource {
case FOOD: return "http://hl7.org/fhir/allergy-intolerance-category";
case MEDICATION: return "http://hl7.org/fhir/allergy-intolerance-category";
case ENVIRONMENT: return "http://hl7.org/fhir/allergy-intolerance-category";
case OTHER: return "http://hl7.org/fhir/allergy-intolerance-category";
default: return "?";
}
}
@ -368,7 +344,6 @@ public class AllergyIntolerance extends DomainResource {
case FOOD: return "Any substance consumed to provide nutritional support for the body.";
case MEDICATION: return "Substances administered to achieve a physiological effect.";
case ENVIRONMENT: return "Substances that are encountered in the environment.";
case OTHER: return "Other substances that are not covered by any other category.";
default: return "?";
}
}
@ -377,7 +352,6 @@ public class AllergyIntolerance extends DomainResource {
case FOOD: return "Food";
case MEDICATION: return "Medication";
case ENVIRONMENT: return "Environment";
case OTHER: return "Other";
default: return "?";
}
}
@ -394,8 +368,6 @@ public class AllergyIntolerance extends DomainResource {
return AllergyIntoleranceCategory.MEDICATION;
if ("environment".equals(codeString))
return AllergyIntoleranceCategory.ENVIRONMENT;
if ("other".equals(codeString))
return AllergyIntoleranceCategory.OTHER;
throw new IllegalArgumentException("Unknown AllergyIntoleranceCategory code '"+codeString+"'");
}
public Enumeration<AllergyIntoleranceCategory> fromType(Base code) throws FHIRException {
@ -410,8 +382,6 @@ public class AllergyIntolerance extends DomainResource {
return new Enumeration<AllergyIntoleranceCategory>(this, AllergyIntoleranceCategory.MEDICATION);
if ("environment".equals(codeString))
return new Enumeration<AllergyIntoleranceCategory>(this, AllergyIntoleranceCategory.ENVIRONMENT);
if ("other".equals(codeString))
return new Enumeration<AllergyIntoleranceCategory>(this, AllergyIntoleranceCategory.OTHER);
throw new FHIRException("Unknown AllergyIntoleranceCategory code '"+codeString+"'");
}
public String toCode(AllergyIntoleranceCategory code) {
@ -421,8 +391,6 @@ public class AllergyIntolerance extends DomainResource {
return "medication";
if (code == AllergyIntoleranceCategory.ENVIRONMENT)
return "environment";
if (code == AllergyIntoleranceCategory.OTHER)
return "other";
return "?";
}
public String toSystem(AllergyIntoleranceCategory code) {
@ -538,15 +506,15 @@ public class AllergyIntolerance extends DomainResource {
public enum AllergyIntoleranceCertainty {
/**
* There is a low level of clinical certainty that the reaction was caused by the identified Substance.
* There is a low level of clinical certainty that the reaction was caused by the identified substance.
*/
UNLIKELY,
/**
* There is a high level of clinical certainty that the reaction was caused by the identified Substance.
* There is a high level of clinical certainty that the reaction was caused by the identified substance.
*/
LIKELY,
/**
* There is a very high level of clinical certainty that the reaction was due to the identified Substance, which may include clinical evidence by testing or rechallenge.
* There is a very high level of clinical certainty that the reaction was due to the identified substance, which may include clinical evidence by testing or rechallenge.
*/
CONFIRMED,
/**
@ -585,9 +553,9 @@ public class AllergyIntolerance extends DomainResource {
}
public String getDefinition() {
switch (this) {
case UNLIKELY: return "There is a low level of clinical certainty that the reaction was caused by the identified Substance.";
case LIKELY: return "There is a high level of clinical certainty that the reaction was caused by the identified Substance.";
case CONFIRMED: return "There is a very high level of clinical certainty that the reaction was due to the identified Substance, which may include clinical evidence by testing or rechallenge.";
case UNLIKELY: return "There is a low level of clinical certainty that the reaction was caused by the identified substance.";
case LIKELY: return "There is a high level of clinical certainty that the reaction was caused by the identified substance.";
case CONFIRMED: return "There is a very high level of clinical certainty that the reaction was due to the identified substance, which may include clinical evidence by testing or rechallenge.";
default: return "?";
}
}
@ -751,10 +719,10 @@ public class AllergyIntolerance extends DomainResource {
@Block()
public static class AllergyIntoleranceReactionComponent extends BackboneElement implements IBaseBackboneElement {
/**
* Identification of the specific substance considered to be responsible for the Adverse Reaction event. Note: the substance for a specific reaction may be different to the substance identified as the cause of the risk, but must be consistent with it. For instance, it may be a more specific substance (e.g. a brand medication) or a composite substance that includes the identified substance. It must be clinically safe to only process the AllergyIntolerance.substance and ignore the AllergyIntolerance.event.substance.
* Identification of the specific substance (or pharmaceutical product) considered to be responsible for the Adverse Reaction event. Note: the substance for a specific reaction may be different from the substance identified as the cause of the risk, but it must be consistent with it. For instance, it may be a more specific substance (e.g. a brand medication) or a composite product that includes the identified substance. It must be clinically safe to only process the 'code' and ignore the 'reaction.substance'.
*/
@Child(name = "substance", type = {CodeableConcept.class}, order=1, min=0, max=1, modifier=false, summary=true)
@Description(shortDefinition="Specific substance considered to be responsible for event", formalDefinition="Identification of the specific substance considered to be responsible for the Adverse Reaction event. Note: the substance for a specific reaction may be different to the substance identified as the cause of the risk, but must be consistent with it. For instance, it may be a more specific substance (e.g. a brand medication) or a composite substance that includes the identified substance. It must be clinically safe to only process the AllergyIntolerance.substance and ignore the AllergyIntolerance.event.substance." )
@Description(shortDefinition="Specific substance or pharmaceutical product considered to be responsible for event", formalDefinition="Identification of the specific substance (or pharmaceutical product) considered to be responsible for the Adverse Reaction event. Note: the substance for a specific reaction may be different from the substance identified as the cause of the risk, but it must be consistent with it. For instance, it may be a more specific substance (e.g. a brand medication) or a composite product that includes the identified substance. It must be clinically safe to only process the 'code' and ignore the 'reaction.substance'." )
@ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/substance-code")
protected CodeableConcept substance;
@ -821,7 +789,7 @@ public class AllergyIntolerance extends DomainResource {
}
/**
* @return {@link #substance} (Identification of the specific substance considered to be responsible for the Adverse Reaction event. Note: the substance for a specific reaction may be different to the substance identified as the cause of the risk, but must be consistent with it. For instance, it may be a more specific substance (e.g. a brand medication) or a composite substance that includes the identified substance. It must be clinically safe to only process the AllergyIntolerance.substance and ignore the AllergyIntolerance.event.substance.)
* @return {@link #substance} (Identification of the specific substance (or pharmaceutical product) considered to be responsible for the Adverse Reaction event. Note: the substance for a specific reaction may be different from the substance identified as the cause of the risk, but it must be consistent with it. For instance, it may be a more specific substance (e.g. a brand medication) or a composite product that includes the identified substance. It must be clinically safe to only process the 'code' and ignore the 'reaction.substance'.)
*/
public CodeableConcept getSubstance() {
if (this.substance == null)
@ -837,7 +805,7 @@ public class AllergyIntolerance extends DomainResource {
}
/**
* @param value {@link #substance} (Identification of the specific substance considered to be responsible for the Adverse Reaction event. Note: the substance for a specific reaction may be different to the substance identified as the cause of the risk, but must be consistent with it. For instance, it may be a more specific substance (e.g. a brand medication) or a composite substance that includes the identified substance. It must be clinically safe to only process the AllergyIntolerance.substance and ignore the AllergyIntolerance.event.substance.)
* @param value {@link #substance} (Identification of the specific substance (or pharmaceutical product) considered to be responsible for the Adverse Reaction event. Note: the substance for a specific reaction may be different from the substance identified as the cause of the risk, but it must be consistent with it. For instance, it may be a more specific substance (e.g. a brand medication) or a composite product that includes the identified substance. It must be clinically safe to only process the 'code' and ignore the 'reaction.substance'.)
*/
public AllergyIntoleranceReactionComponent setSubstance(CodeableConcept value) {
this.substance = value;
@ -1172,7 +1140,7 @@ public class AllergyIntolerance extends DomainResource {
protected void listChildren(List<Property> childrenList) {
super.listChildren(childrenList);
childrenList.add(new Property("substance", "CodeableConcept", "Identification of the specific substance considered to be responsible for the Adverse Reaction event. Note: the substance for a specific reaction may be different to the substance identified as the cause of the risk, but must be consistent with it. For instance, it may be a more specific substance (e.g. a brand medication) or a composite substance that includes the identified substance. It must be clinically safe to only process the AllergyIntolerance.substance and ignore the AllergyIntolerance.event.substance.", 0, java.lang.Integer.MAX_VALUE, substance));
childrenList.add(new Property("substance", "CodeableConcept", "Identification of the specific substance (or pharmaceutical product) considered to be responsible for the Adverse Reaction event. Note: the substance for a specific reaction may be different from the substance identified as the cause of the risk, but it must be consistent with it. For instance, it may be a more specific substance (e.g. a brand medication) or a composite product that includes the identified substance. It must be clinically safe to only process the 'code' and ignore the 'reaction.substance'.", 0, java.lang.Integer.MAX_VALUE, substance));
childrenList.add(new Property("certainty", "code", "Statement about the degree of clinical certainty that the specific substance was the cause of the manifestation in this reaction event.", 0, java.lang.Integer.MAX_VALUE, certainty));
childrenList.add(new Property("manifestation", "CodeableConcept", "Clinical symptoms and/or signs that are observed or associated with the adverse reaction event.", 0, java.lang.Integer.MAX_VALUE, manifestation));
childrenList.add(new Property("description", "string", "Text description about the reaction as a whole, including details of the manifestation if required.", 0, java.lang.Integer.MAX_VALUE, description));
@ -1365,10 +1333,10 @@ public class AllergyIntolerance extends DomainResource {
protected List<Identifier> identifier;
/**
* Assertion about certainty associated with the propensity, or potential risk, of a reaction to the identified Substance.
* Assertion about certainty associated with the propensity, or potential risk, of a reaction to the identified substance (including pharmaceutical product).
*/
@Child(name = "status", type = {CodeType.class}, order=1, min=0, max=1, modifier=true, summary=true)
@Description(shortDefinition="active | unconfirmed | confirmed | inactive | resolved | refuted | entered-in-error", formalDefinition="Assertion about certainty associated with the propensity, or potential risk, of a reaction to the identified Substance." )
@Description(shortDefinition="active | active-confirmed | inactive | resolved | refuted | entered-in-error", formalDefinition="Assertion about certainty associated with the propensity, or potential risk, of a reaction to the identified substance (including pharmaceutical product)." )
@ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/allergy-intolerance-status")
protected Enumeration<AllergyIntoleranceStatus> status;
@ -1381,28 +1349,28 @@ public class AllergyIntolerance extends DomainResource {
protected Enumeration<AllergyIntoleranceType> type;
/**
* Category of the identified Substance.
* Category of the identified substance.
*/
@Child(name = "category", type = {CodeType.class}, order=3, min=0, max=1, modifier=false, summary=true)
@Description(shortDefinition="food | medication | environment | other - Category of Substance", formalDefinition="Category of the identified Substance." )
@Description(shortDefinition="food | medication | environment", formalDefinition="Category of the identified substance." )
@ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/allergy-intolerance-category")
protected Enumeration<AllergyIntoleranceCategory> category;
/**
* Estimate of the potential clinical harm, or seriousness, of the reaction to the identified Substance.
* Estimate of the potential clinical harm, or seriousness, of the reaction to the identified substance.
*/
@Child(name = "criticality", type = {CodeType.class}, order=4, min=0, max=1, modifier=false, summary=true)
@Description(shortDefinition="low | high | unable-to-assess", formalDefinition="Estimate of the potential clinical harm, or seriousness, of the reaction to the identified Substance." )
@Description(shortDefinition="low | high | unable-to-assess", formalDefinition="Estimate of the potential clinical harm, or seriousness, of the reaction to the identified substance." )
@ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/allergy-intolerance-criticality")
protected Enumeration<AllergyIntoleranceCriticality> criticality;
/**
* Identification of a substance, or a class of substances, that is considered to be responsible for the adverse reaction risk.
* Code for an allergy or intolerance statement (either a positive or a negated/excluded statement). This may be a code for a substance or pharmaceutical product that is considered to be responsible for the adverse reaction risk (e.g., "Latex"), an allergy or intolerance condition (e.g., "Latex allergy"), or a negated/excluded code for a specific substance or class (e.g., "No latex allergy") or a general or categorical negated statement (e.g., "No known allergy", "No known drug allergies").
*/
@Child(name = "substance", type = {CodeableConcept.class}, order=5, min=1, max=1, modifier=false, summary=true)
@Description(shortDefinition="Substance, (or class) considered to be responsible for risk", formalDefinition="Identification of a substance, or a class of substances, that is considered to be responsible for the adverse reaction risk." )
@ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/allergyintolerance-substance-code")
protected CodeableConcept substance;
@Child(name = "code", type = {CodeableConcept.class}, order=5, min=0, max=1, modifier=false, summary=true)
@Description(shortDefinition="Allergy or intolerance code", formalDefinition="Code for an allergy or intolerance statement (either a positive or a negated/excluded statement). This may be a code for a substance or pharmaceutical product that is considered to be responsible for the adverse reaction risk (e.g., \"Latex\"), an allergy or intolerance condition (e.g., \"Latex allergy\"), or a negated/excluded code for a specific substance or class (e.g., \"No latex allergy\") or a general or categorical negated statement (e.g., \"No known allergy\", \"No known drug allergies\")." )
@ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/allergyintolerance-code")
protected CodeableConcept code;
/**
* The patient who has the allergy or intolerance.
@ -1417,11 +1385,11 @@ public class AllergyIntolerance extends DomainResource {
protected Patient patientTarget;
/**
* Date when the sensitivity was recorded.
* Indicates the most recent date on which the recorder has asserted that the information represented by this AllergyIntolerance record is accurate.
*/
@Child(name = "recordedDate", type = {DateTimeType.class}, order=7, min=0, max=1, modifier=false, summary=true)
@Description(shortDefinition="When recorded", formalDefinition="Date when the sensitivity was recorded." )
protected DateTimeType recordedDate;
@Child(name = "attestedDate", type = {DateTimeType.class}, order=7, min=0, max=1, modifier=false, summary=true)
@Description(shortDefinition="Date record was believed accurate", formalDefinition="Indicates the most recent date on which the recorder has asserted that the information represented by this AllergyIntolerance record is accurate." )
protected DateTimeType attestedDate;
/**
* Individual who recorded the record and takes responsibility for its content.
@ -1469,13 +1437,13 @@ public class AllergyIntolerance extends DomainResource {
protected List<Annotation> note;
/**
* Details about each adverse reaction event linked to exposure to the identified Substance.
* Details about each adverse reaction event linked to exposure to the identified substance.
*/
@Child(name = "reaction", type = {}, order=13, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
@Description(shortDefinition="Adverse Reaction Events linked to exposure to substance", formalDefinition="Details about each adverse reaction event linked to exposure to the identified Substance." )
@Description(shortDefinition="Adverse Reaction Events linked to exposure to substance", formalDefinition="Details about each adverse reaction event linked to exposure to the identified substance." )
protected List<AllergyIntoleranceReactionComponent> reaction;
private static final long serialVersionUID = 2119732291L;
private static final long serialVersionUID = 2033085856L;
/**
* Constructor
@ -1487,9 +1455,8 @@ public class AllergyIntolerance extends DomainResource {
/**
* Constructor
*/
public AllergyIntolerance(CodeableConcept substance, Reference patient) {
public AllergyIntolerance(Reference patient) {
super();
this.substance = substance;
this.patient = patient;
}
@ -1547,7 +1514,7 @@ public class AllergyIntolerance extends DomainResource {
}
/**
* @return {@link #status} (Assertion about certainty associated with the propensity, or potential risk, of a reaction to the identified Substance.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value
* @return {@link #status} (Assertion about certainty associated with the propensity, or potential risk, of a reaction to the identified substance (including pharmaceutical product).). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value
*/
public Enumeration<AllergyIntoleranceStatus> getStatusElement() {
if (this.status == null)
@ -1567,7 +1534,7 @@ public class AllergyIntolerance extends DomainResource {
}
/**
* @param value {@link #status} (Assertion about certainty associated with the propensity, or potential risk, of a reaction to the identified Substance.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value
* @param value {@link #status} (Assertion about certainty associated with the propensity, or potential risk, of a reaction to the identified substance (including pharmaceutical product).). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value
*/
public AllergyIntolerance setStatusElement(Enumeration<AllergyIntoleranceStatus> value) {
this.status = value;
@ -1575,14 +1542,14 @@ public class AllergyIntolerance extends DomainResource {
}
/**
* @return Assertion about certainty associated with the propensity, or potential risk, of a reaction to the identified Substance.
* @return Assertion about certainty associated with the propensity, or potential risk, of a reaction to the identified substance (including pharmaceutical product).
*/
public AllergyIntoleranceStatus getStatus() {
return this.status == null ? null : this.status.getValue();
}
/**
* @param value Assertion about certainty associated with the propensity, or potential risk, of a reaction to the identified Substance.
* @param value Assertion about certainty associated with the propensity, or potential risk, of a reaction to the identified substance (including pharmaceutical product).
*/
public AllergyIntolerance setStatus(AllergyIntoleranceStatus value) {
if (value == null)
@ -1645,7 +1612,7 @@ public class AllergyIntolerance extends DomainResource {
}
/**
* @return {@link #category} (Category of the identified Substance.). This is the underlying object with id, value and extensions. The accessor "getCategory" gives direct access to the value
* @return {@link #category} (Category of the identified substance.). This is the underlying object with id, value and extensions. The accessor "getCategory" gives direct access to the value
*/
public Enumeration<AllergyIntoleranceCategory> getCategoryElement() {
if (this.category == null)
@ -1665,7 +1632,7 @@ public class AllergyIntolerance extends DomainResource {
}
/**
* @param value {@link #category} (Category of the identified Substance.). This is the underlying object with id, value and extensions. The accessor "getCategory" gives direct access to the value
* @param value {@link #category} (Category of the identified substance.). This is the underlying object with id, value and extensions. The accessor "getCategory" gives direct access to the value
*/
public AllergyIntolerance setCategoryElement(Enumeration<AllergyIntoleranceCategory> value) {
this.category = value;
@ -1673,14 +1640,14 @@ public class AllergyIntolerance extends DomainResource {
}
/**
* @return Category of the identified Substance.
* @return Category of the identified substance.
*/
public AllergyIntoleranceCategory getCategory() {
return this.category == null ? null : this.category.getValue();
}
/**
* @param value Category of the identified Substance.
* @param value Category of the identified substance.
*/
public AllergyIntolerance setCategory(AllergyIntoleranceCategory value) {
if (value == null)
@ -1694,7 +1661,7 @@ public class AllergyIntolerance extends DomainResource {
}
/**
* @return {@link #criticality} (Estimate of the potential clinical harm, or seriousness, of the reaction to the identified Substance.). This is the underlying object with id, value and extensions. The accessor "getCriticality" gives direct access to the value
* @return {@link #criticality} (Estimate of the potential clinical harm, or seriousness, of the reaction to the identified substance.). This is the underlying object with id, value and extensions. The accessor "getCriticality" gives direct access to the value
*/
public Enumeration<AllergyIntoleranceCriticality> getCriticalityElement() {
if (this.criticality == null)
@ -1714,7 +1681,7 @@ public class AllergyIntolerance extends DomainResource {
}
/**
* @param value {@link #criticality} (Estimate of the potential clinical harm, or seriousness, of the reaction to the identified Substance.). This is the underlying object with id, value and extensions. The accessor "getCriticality" gives direct access to the value
* @param value {@link #criticality} (Estimate of the potential clinical harm, or seriousness, of the reaction to the identified substance.). This is the underlying object with id, value and extensions. The accessor "getCriticality" gives direct access to the value
*/
public AllergyIntolerance setCriticalityElement(Enumeration<AllergyIntoleranceCriticality> value) {
this.criticality = value;
@ -1722,14 +1689,14 @@ public class AllergyIntolerance extends DomainResource {
}
/**
* @return Estimate of the potential clinical harm, or seriousness, of the reaction to the identified Substance.
* @return Estimate of the potential clinical harm, or seriousness, of the reaction to the identified substance.
*/
public AllergyIntoleranceCriticality getCriticality() {
return this.criticality == null ? null : this.criticality.getValue();
}
/**
* @param value Estimate of the potential clinical harm, or seriousness, of the reaction to the identified Substance.
* @param value Estimate of the potential clinical harm, or seriousness, of the reaction to the identified substance.
*/
public AllergyIntolerance setCriticality(AllergyIntoleranceCriticality value) {
if (value == null)
@ -1743,26 +1710,26 @@ public class AllergyIntolerance extends DomainResource {
}
/**
* @return {@link #substance} (Identification of a substance, or a class of substances, that is considered to be responsible for the adverse reaction risk.)
* @return {@link #code} (Code for an allergy or intolerance statement (either a positive or a negated/excluded statement). This may be a code for a substance or pharmaceutical product that is considered to be responsible for the adverse reaction risk (e.g., "Latex"), an allergy or intolerance condition (e.g., "Latex allergy"), or a negated/excluded code for a specific substance or class (e.g., "No latex allergy") or a general or categorical negated statement (e.g., "No known allergy", "No known drug allergies").)
*/
public CodeableConcept getSubstance() {
if (this.substance == null)
public CodeableConcept getCode() {
if (this.code == null)
if (Configuration.errorOnAutoCreate())
throw new Error("Attempt to auto-create AllergyIntolerance.substance");
throw new Error("Attempt to auto-create AllergyIntolerance.code");
else if (Configuration.doAutoCreate())
this.substance = new CodeableConcept(); // cc
return this.substance;
this.code = new CodeableConcept(); // cc
return this.code;
}
public boolean hasSubstance() {
return this.substance != null && !this.substance.isEmpty();
public boolean hasCode() {
return this.code != null && !this.code.isEmpty();
}
/**
* @param value {@link #substance} (Identification of a substance, or a class of substances, that is considered to be responsible for the adverse reaction risk.)
* @param value {@link #code} (Code for an allergy or intolerance statement (either a positive or a negated/excluded statement). This may be a code for a substance or pharmaceutical product that is considered to be responsible for the adverse reaction risk (e.g., "Latex"), an allergy or intolerance condition (e.g., "Latex allergy"), or a negated/excluded code for a specific substance or class (e.g., "No latex allergy") or a general or categorical negated statement (e.g., "No known allergy", "No known drug allergies").)
*/
public AllergyIntolerance setSubstance(CodeableConcept value) {
this.substance = value;
public AllergyIntolerance setCode(CodeableConcept value) {
this.code = value;
return this;
}
@ -1811,50 +1778,50 @@ public class AllergyIntolerance extends DomainResource {
}
/**
* @return {@link #recordedDate} (Date when the sensitivity was recorded.). This is the underlying object with id, value and extensions. The accessor "getRecordedDate" gives direct access to the value
* @return {@link #attestedDate} (Indicates the most recent date on which the recorder has asserted that the information represented by this AllergyIntolerance record is accurate.). This is the underlying object with id, value and extensions. The accessor "getAttestedDate" gives direct access to the value
*/
public DateTimeType getRecordedDateElement() {
if (this.recordedDate == null)
public DateTimeType getAttestedDateElement() {
if (this.attestedDate == null)
if (Configuration.errorOnAutoCreate())
throw new Error("Attempt to auto-create AllergyIntolerance.recordedDate");
throw new Error("Attempt to auto-create AllergyIntolerance.attestedDate");
else if (Configuration.doAutoCreate())
this.recordedDate = new DateTimeType(); // bb
return this.recordedDate;
this.attestedDate = new DateTimeType(); // bb
return this.attestedDate;
}
public boolean hasRecordedDateElement() {
return this.recordedDate != null && !this.recordedDate.isEmpty();
public boolean hasAttestedDateElement() {
return this.attestedDate != null && !this.attestedDate.isEmpty();
}
public boolean hasRecordedDate() {
return this.recordedDate != null && !this.recordedDate.isEmpty();
public boolean hasAttestedDate() {
return this.attestedDate != null && !this.attestedDate.isEmpty();
}
/**
* @param value {@link #recordedDate} (Date when the sensitivity was recorded.). This is the underlying object with id, value and extensions. The accessor "getRecordedDate" gives direct access to the value
* @param value {@link #attestedDate} (Indicates the most recent date on which the recorder has asserted that the information represented by this AllergyIntolerance record is accurate.). This is the underlying object with id, value and extensions. The accessor "getAttestedDate" gives direct access to the value
*/
public AllergyIntolerance setRecordedDateElement(DateTimeType value) {
this.recordedDate = value;
public AllergyIntolerance setAttestedDateElement(DateTimeType value) {
this.attestedDate = value;
return this;
}
/**
* @return Date when the sensitivity was recorded.
* @return Indicates the most recent date on which the recorder has asserted that the information represented by this AllergyIntolerance record is accurate.
*/
public Date getRecordedDate() {
return this.recordedDate == null ? null : this.recordedDate.getValue();
public Date getAttestedDate() {
return this.attestedDate == null ? null : this.attestedDate.getValue();
}
/**
* @param value Date when the sensitivity was recorded.
* @param value Indicates the most recent date on which the recorder has asserted that the information represented by this AllergyIntolerance record is accurate.
*/
public AllergyIntolerance setRecordedDate(Date value) {
public AllergyIntolerance setAttestedDate(Date value) {
if (value == null)
this.recordedDate = null;
this.attestedDate = null;
else {
if (this.recordedDate == null)
this.recordedDate = new DateTimeType();
this.recordedDate.setValue(value);
if (this.attestedDate == null)
this.attestedDate = new DateTimeType();
this.attestedDate.setValue(value);
}
return this;
}
@ -2089,7 +2056,7 @@ public class AllergyIntolerance extends DomainResource {
}
/**
* @return {@link #reaction} (Details about each adverse reaction event linked to exposure to the identified Substance.)
* @return {@link #reaction} (Details about each adverse reaction event linked to exposure to the identified substance.)
*/
public List<AllergyIntoleranceReactionComponent> getReaction() {
if (this.reaction == null)
@ -2144,19 +2111,19 @@ public class AllergyIntolerance extends DomainResource {
protected void listChildren(List<Property> childrenList) {
super.listChildren(childrenList);
childrenList.add(new Property("identifier", "Identifier", "This records identifiers associated with this allergy/intolerance concern that are defined by business processes and/or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation).", 0, java.lang.Integer.MAX_VALUE, identifier));
childrenList.add(new Property("status", "code", "Assertion about certainty associated with the propensity, or potential risk, of a reaction to the identified Substance.", 0, java.lang.Integer.MAX_VALUE, status));
childrenList.add(new Property("status", "code", "Assertion about certainty associated with the propensity, or potential risk, of a reaction to the identified substance (including pharmaceutical product).", 0, java.lang.Integer.MAX_VALUE, status));
childrenList.add(new Property("type", "code", "Identification of the underlying physiological mechanism for the reaction risk.", 0, java.lang.Integer.MAX_VALUE, type));
childrenList.add(new Property("category", "code", "Category of the identified Substance.", 0, java.lang.Integer.MAX_VALUE, category));
childrenList.add(new Property("criticality", "code", "Estimate of the potential clinical harm, or seriousness, of the reaction to the identified Substance.", 0, java.lang.Integer.MAX_VALUE, criticality));
childrenList.add(new Property("substance", "CodeableConcept", "Identification of a substance, or a class of substances, that is considered to be responsible for the adverse reaction risk.", 0, java.lang.Integer.MAX_VALUE, substance));
childrenList.add(new Property("category", "code", "Category of the identified substance.", 0, java.lang.Integer.MAX_VALUE, category));
childrenList.add(new Property("criticality", "code", "Estimate of the potential clinical harm, or seriousness, of the reaction to the identified substance.", 0, java.lang.Integer.MAX_VALUE, criticality));
childrenList.add(new Property("code", "CodeableConcept", "Code for an allergy or intolerance statement (either a positive or a negated/excluded statement). This may be a code for a substance or pharmaceutical product that is considered to be responsible for the adverse reaction risk (e.g., \"Latex\"), an allergy or intolerance condition (e.g., \"Latex allergy\"), or a negated/excluded code for a specific substance or class (e.g., \"No latex allergy\") or a general or categorical negated statement (e.g., \"No known allergy\", \"No known drug allergies\").", 0, java.lang.Integer.MAX_VALUE, code));
childrenList.add(new Property("patient", "Reference(Patient)", "The patient who has the allergy or intolerance.", 0, java.lang.Integer.MAX_VALUE, patient));
childrenList.add(new Property("recordedDate", "dateTime", "Date when the sensitivity was recorded.", 0, java.lang.Integer.MAX_VALUE, recordedDate));
childrenList.add(new Property("attestedDate", "dateTime", "Indicates the most recent date on which the recorder has asserted that the information represented by this AllergyIntolerance record is accurate.", 0, java.lang.Integer.MAX_VALUE, attestedDate));
childrenList.add(new Property("recorder", "Reference(Practitioner|Patient)", "Individual who recorded the record and takes responsibility for its content.", 0, java.lang.Integer.MAX_VALUE, recorder));
childrenList.add(new Property("reporter", "Reference(Patient|RelatedPerson|Practitioner)", "The source of the information about the allergy that is recorded.", 0, java.lang.Integer.MAX_VALUE, reporter));
childrenList.add(new Property("onset", "dateTime", "Record of the date and/or time of the onset of the Allergy or Intolerance.", 0, java.lang.Integer.MAX_VALUE, onset));
childrenList.add(new Property("lastOccurrence", "dateTime", "Represents the date and/or time of the last known occurrence of a reaction event.", 0, java.lang.Integer.MAX_VALUE, lastOccurrence));
childrenList.add(new Property("note", "Annotation", "Additional narrative about the propensity for the Adverse Reaction, not captured in other fields.", 0, java.lang.Integer.MAX_VALUE, note));
childrenList.add(new Property("reaction", "", "Details about each adverse reaction event linked to exposure to the identified Substance.", 0, java.lang.Integer.MAX_VALUE, reaction));
childrenList.add(new Property("reaction", "", "Details about each adverse reaction event linked to exposure to the identified substance.", 0, java.lang.Integer.MAX_VALUE, reaction));
}
@Override
@ -2167,9 +2134,9 @@ public class AllergyIntolerance extends DomainResource {
case 3575610: /*type*/ return this.type == null ? new Base[0] : new Base[] {this.type}; // Enumeration<AllergyIntoleranceType>
case 50511102: /*category*/ return this.category == null ? new Base[0] : new Base[] {this.category}; // Enumeration<AllergyIntoleranceCategory>
case -1608054609: /*criticality*/ return this.criticality == null ? new Base[0] : new Base[] {this.criticality}; // Enumeration<AllergyIntoleranceCriticality>
case 530040176: /*substance*/ return this.substance == null ? new Base[0] : new Base[] {this.substance}; // CodeableConcept
case 3059181: /*code*/ return this.code == null ? new Base[0] : new Base[] {this.code}; // CodeableConcept
case -791418107: /*patient*/ return this.patient == null ? new Base[0] : new Base[] {this.patient}; // Reference
case -1952893826: /*recordedDate*/ return this.recordedDate == null ? new Base[0] : new Base[] {this.recordedDate}; // DateTimeType
case -424886158: /*attestedDate*/ return this.attestedDate == null ? new Base[0] : new Base[] {this.attestedDate}; // DateTimeType
case -799233858: /*recorder*/ return this.recorder == null ? new Base[0] : new Base[] {this.recorder}; // Reference
case -427039519: /*reporter*/ return this.reporter == null ? new Base[0] : new Base[] {this.reporter}; // Reference
case 105901603: /*onset*/ return this.onset == null ? new Base[0] : new Base[] {this.onset}; // DateTimeType
@ -2199,14 +2166,14 @@ public class AllergyIntolerance extends DomainResource {
case -1608054609: // criticality
this.criticality = new AllergyIntoleranceCriticalityEnumFactory().fromType(value); // Enumeration<AllergyIntoleranceCriticality>
break;
case 530040176: // substance
this.substance = castToCodeableConcept(value); // CodeableConcept
case 3059181: // code
this.code = castToCodeableConcept(value); // CodeableConcept
break;
case -791418107: // patient
this.patient = castToReference(value); // Reference
break;
case -1952893826: // recordedDate
this.recordedDate = castToDateTime(value); // DateTimeType
case -424886158: // attestedDate
this.attestedDate = castToDateTime(value); // DateTimeType
break;
case -799233858: // recorder
this.recorder = castToReference(value); // Reference
@ -2243,12 +2210,12 @@ public class AllergyIntolerance extends DomainResource {
this.category = new AllergyIntoleranceCategoryEnumFactory().fromType(value); // Enumeration<AllergyIntoleranceCategory>
else if (name.equals("criticality"))
this.criticality = new AllergyIntoleranceCriticalityEnumFactory().fromType(value); // Enumeration<AllergyIntoleranceCriticality>
else if (name.equals("substance"))
this.substance = castToCodeableConcept(value); // CodeableConcept
else if (name.equals("code"))
this.code = castToCodeableConcept(value); // CodeableConcept
else if (name.equals("patient"))
this.patient = castToReference(value); // Reference
else if (name.equals("recordedDate"))
this.recordedDate = castToDateTime(value); // DateTimeType
else if (name.equals("attestedDate"))
this.attestedDate = castToDateTime(value); // DateTimeType
else if (name.equals("recorder"))
this.recorder = castToReference(value); // Reference
else if (name.equals("reporter"))
@ -2273,9 +2240,9 @@ public class AllergyIntolerance extends DomainResource {
case 3575610: throw new FHIRException("Cannot make property type as it is not a complex type"); // Enumeration<AllergyIntoleranceType>
case 50511102: throw new FHIRException("Cannot make property category as it is not a complex type"); // Enumeration<AllergyIntoleranceCategory>
case -1608054609: throw new FHIRException("Cannot make property criticality as it is not a complex type"); // Enumeration<AllergyIntoleranceCriticality>
case 530040176: return getSubstance(); // CodeableConcept
case 3059181: return getCode(); // CodeableConcept
case -791418107: return getPatient(); // Reference
case -1952893826: throw new FHIRException("Cannot make property recordedDate as it is not a complex type"); // DateTimeType
case -424886158: throw new FHIRException("Cannot make property attestedDate as it is not a complex type"); // DateTimeType
case -799233858: return getRecorder(); // Reference
case -427039519: return getReporter(); // Reference
case 105901603: throw new FHIRException("Cannot make property onset as it is not a complex type"); // DateTimeType
@ -2304,16 +2271,16 @@ public class AllergyIntolerance extends DomainResource {
else if (name.equals("criticality")) {
throw new FHIRException("Cannot call addChild on a primitive type AllergyIntolerance.criticality");
}
else if (name.equals("substance")) {
this.substance = new CodeableConcept();
return this.substance;
else if (name.equals("code")) {
this.code = new CodeableConcept();
return this.code;
}
else if (name.equals("patient")) {
this.patient = new Reference();
return this.patient;
}
else if (name.equals("recordedDate")) {
throw new FHIRException("Cannot call addChild on a primitive type AllergyIntolerance.recordedDate");
else if (name.equals("attestedDate")) {
throw new FHIRException("Cannot call addChild on a primitive type AllergyIntolerance.attestedDate");
}
else if (name.equals("recorder")) {
this.recorder = new Reference();
@ -2356,9 +2323,9 @@ public class AllergyIntolerance extends DomainResource {
dst.type = type == null ? null : type.copy();
dst.category = category == null ? null : category.copy();
dst.criticality = criticality == null ? null : criticality.copy();
dst.substance = substance == null ? null : substance.copy();
dst.code = code == null ? null : code.copy();
dst.patient = patient == null ? null : patient.copy();
dst.recordedDate = recordedDate == null ? null : recordedDate.copy();
dst.attestedDate = attestedDate == null ? null : attestedDate.copy();
dst.recorder = recorder == null ? null : recorder.copy();
dst.reporter = reporter == null ? null : reporter.copy();
dst.onset = onset == null ? null : onset.copy();
@ -2388,8 +2355,8 @@ public class AllergyIntolerance extends DomainResource {
return false;
AllergyIntolerance o = (AllergyIntolerance) other;
return compareDeep(identifier, o.identifier, true) && compareDeep(status, o.status, true) && compareDeep(type, o.type, true)
&& compareDeep(category, o.category, true) && compareDeep(criticality, o.criticality, true) && compareDeep(substance, o.substance, true)
&& compareDeep(patient, o.patient, true) && compareDeep(recordedDate, o.recordedDate, true) && compareDeep(recorder, o.recorder, true)
&& compareDeep(category, o.category, true) && compareDeep(criticality, o.criticality, true) && compareDeep(code, o.code, true)
&& compareDeep(patient, o.patient, true) && compareDeep(attestedDate, o.attestedDate, true) && compareDeep(recorder, o.recorder, true)
&& compareDeep(reporter, o.reporter, true) && compareDeep(onset, o.onset, true) && compareDeep(lastOccurrence, o.lastOccurrence, true)
&& compareDeep(note, o.note, true) && compareDeep(reaction, o.reaction, true);
}
@ -2402,14 +2369,14 @@ public class AllergyIntolerance extends DomainResource {
return false;
AllergyIntolerance o = (AllergyIntolerance) other;
return compareValues(status, o.status, true) && compareValues(type, o.type, true) && compareValues(category, o.category, true)
&& compareValues(criticality, o.criticality, true) && compareValues(recordedDate, o.recordedDate, true)
&& compareValues(criticality, o.criticality, true) && compareValues(attestedDate, o.attestedDate, true)
&& compareValues(onset, o.onset, true) && compareValues(lastOccurrence, o.lastOccurrence, true);
}
public boolean isEmpty() {
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(identifier, status, type
, category, criticality, substance, patient, recordedDate, recorder, reporter
, onset, lastOccurrence, note, reaction);
, category, criticality, code, patient, attestedDate, recorder, reporter, onset
, lastOccurrence, note, reaction);
}
@Override
@ -2440,19 +2407,19 @@ public class AllergyIntolerance extends DomainResource {
/**
* Search parameter: <b>date</b>
* <p>
* Description: <b>When recorded</b><br>
* Description: <b>Date record was believed accurate</b><br>
* Type: <b>date</b><br>
* Path: <b>AllergyIntolerance.recordedDate</b><br>
* Path: <b>AllergyIntolerance.attestedDate</b><br>
* </p>
*/
@SearchParamDefinition(name="date", path="AllergyIntolerance.recordedDate", description="When recorded", type="date" )
@SearchParamDefinition(name="date", path="AllergyIntolerance.attestedDate", description="Date record was believed accurate", type="date" )
public static final String SP_DATE = "date";
/**
* <b>Fluent Client</b> search parameter constant for <b>date</b>
* <p>
* Description: <b>When recorded</b><br>
* Description: <b>Date record was believed accurate</b><br>
* Type: <b>date</b><br>
* Path: <b>AllergyIntolerance.recordedDate</b><br>
* Path: <b>AllergyIntolerance.attestedDate</b><br>
* </p>
*/
public static final ca.uhn.fhir.rest.gclient.DateClientParam DATE = new ca.uhn.fhir.rest.gclient.DateClientParam(SP_DATE);
@ -2524,24 +2491,24 @@ public class AllergyIntolerance extends DomainResource {
public static final ca.uhn.fhir.model.api.Include INCLUDE_RECORDER = new ca.uhn.fhir.model.api.Include("AllergyIntolerance:recorder").toLocked();
/**
* Search parameter: <b>substance</b>
* Search parameter: <b>code</b>
* <p>
* Description: <b>Substance, (or class) considered to be responsible for risk</b><br>
* Description: <b>Allergy or intolerance code</b><br>
* Type: <b>token</b><br>
* Path: <b>AllergyIntolerance.substance, AllergyIntolerance.reaction.substance</b><br>
* Path: <b>AllergyIntolerance.code, AllergyIntolerance.reaction.substance</b><br>
* </p>
*/
@SearchParamDefinition(name="substance", path="AllergyIntolerance.substance | AllergyIntolerance.reaction.substance", description="Substance, (or class) considered to be responsible for risk", type="token" )
public static final String SP_SUBSTANCE = "substance";
@SearchParamDefinition(name="code", path="AllergyIntolerance.code | AllergyIntolerance.reaction.substance", description="Allergy or intolerance code", type="token" )
public static final String SP_CODE = "code";
/**
* <b>Fluent Client</b> search parameter constant for <b>substance</b>
* <b>Fluent Client</b> search parameter constant for <b>code</b>
* <p>
* Description: <b>Substance, (or class) considered to be responsible for risk</b><br>
* Description: <b>Allergy or intolerance code</b><br>
* Type: <b>token</b><br>
* Path: <b>AllergyIntolerance.substance, AllergyIntolerance.reaction.substance</b><br>
* Path: <b>AllergyIntolerance.code, AllergyIntolerance.reaction.substance</b><br>
* </p>
*/
public static final ca.uhn.fhir.rest.gclient.TokenClientParam SUBSTANCE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_SUBSTANCE);
public static final ca.uhn.fhir.rest.gclient.TokenClientParam CODE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CODE);
/**
* Search parameter: <b>criticality</b>
@ -2678,17 +2645,17 @@ public class AllergyIntolerance extends DomainResource {
/**
* Search parameter: <b>category</b>
* <p>
* Description: <b>food | medication | environment | other - Category of Substance</b><br>
* Description: <b>food | medication | environment</b><br>
* Type: <b>token</b><br>
* Path: <b>AllergyIntolerance.category</b><br>
* </p>
*/
@SearchParamDefinition(name="category", path="AllergyIntolerance.category", description="food | medication | environment | other - Category of Substance", type="token" )
@SearchParamDefinition(name="category", path="AllergyIntolerance.category", description="food | medication | environment", type="token" )
public static final String SP_CATEGORY = "category";
/**
* <b>Fluent Client</b> search parameter constant for <b>category</b>
* <p>
* Description: <b>food | medication | environment | other - Category of Substance</b><br>
* Description: <b>food | medication | environment</b><br>
* Type: <b>token</b><br>
* Path: <b>AllergyIntolerance.category</b><br>
* </p>
@ -2718,17 +2685,17 @@ public class AllergyIntolerance extends DomainResource {
/**
* Search parameter: <b>status</b>
* <p>
* Description: <b>active | unconfirmed | confirmed | inactive | resolved | refuted | entered-in-error</b><br>
* Description: <b>active | active-confirmed | inactive | resolved | refuted | entered-in-error</b><br>
* Type: <b>token</b><br>
* Path: <b>AllergyIntolerance.status</b><br>
* </p>
*/
@SearchParamDefinition(name="status", path="AllergyIntolerance.status", description="active | unconfirmed | confirmed | inactive | resolved | refuted | entered-in-error", type="token" )
@SearchParamDefinition(name="status", path="AllergyIntolerance.status", description="active | active-confirmed | inactive | resolved | refuted | entered-in-error", type="token" )
public static final String SP_STATUS = "status";
/**
* <b>Fluent Client</b> search parameter constant for <b>status</b>
* <p>
* Description: <b>active | unconfirmed | confirmed | inactive | resolved | refuted | entered-in-error</b><br>
* Description: <b>active | active-confirmed | inactive | resolved | refuted | entered-in-error</b><br>
* Type: <b>token</b><br>
* Path: <b>AllergyIntolerance.status</b><br>
* </p>

View File

@ -29,7 +29,7 @@ package org.hl7.fhir.dstu3.model;
*/
// Generated on Tue, Jul 12, 2016 12:04-0400 for FHIR v1.5.0
// Generated on Wed, Aug 3, 2016 09:39-0400 for FHIR v1.5.0
import java.util.*;

View File

@ -29,7 +29,7 @@ package org.hl7.fhir.dstu3.model;
*/
// Generated on Tue, Jul 12, 2016 12:04-0400 for FHIR v1.5.0
// Generated on Wed, Aug 3, 2016 09:39-0400 for FHIR v1.5.0
import java.util.*;
@ -77,6 +77,10 @@ public class Appointment extends DomainResource {
* Some or all of the participant(s) have not/did not appear for the appointment (usually the patient).
*/
NOSHOW,
/**
* This instance should not have been part of this patient's medical record.
*/
ENTEREDINERROR,
/**
* added to help the parsers with the generic types
*/
@ -98,6 +102,8 @@ public class Appointment extends DomainResource {
return CANCELLED;
if ("noshow".equals(codeString))
return NOSHOW;
if ("entered-in-error".equals(codeString))
return ENTEREDINERROR;
if (Configuration.isAcceptInvalidEnums())
return null;
else
@ -112,6 +118,7 @@ public class Appointment extends DomainResource {
case FULFILLED: return "fulfilled";
case CANCELLED: return "cancelled";
case NOSHOW: return "noshow";
case ENTEREDINERROR: return "entered-in-error";
default: return "?";
}
}
@ -124,6 +131,7 @@ public class Appointment extends DomainResource {
case FULFILLED: return "http://hl7.org/fhir/appointmentstatus";
case CANCELLED: return "http://hl7.org/fhir/appointmentstatus";
case NOSHOW: return "http://hl7.org/fhir/appointmentstatus";
case ENTEREDINERROR: return "http://hl7.org/fhir/appointmentstatus";
default: return "?";
}
}
@ -136,6 +144,7 @@ public class Appointment extends DomainResource {
case FULFILLED: return "This appointment has completed and may have resulted in an encounter.";
case CANCELLED: return "The appointment has been cancelled.";
case NOSHOW: return "Some or all of the participant(s) have not/did not appear for the appointment (usually the patient).";
case ENTEREDINERROR: return "This instance should not have been part of this patient's medical record.";
default: return "?";
}
}
@ -148,6 +157,7 @@ public class Appointment extends DomainResource {
case FULFILLED: return "Fulfilled";
case CANCELLED: return "Cancelled";
case NOSHOW: return "No Show";
case ENTEREDINERROR: return "Entered in error";
default: return "?";
}
}
@ -172,6 +182,8 @@ public class Appointment extends DomainResource {
return AppointmentStatus.CANCELLED;
if ("noshow".equals(codeString))
return AppointmentStatus.NOSHOW;
if ("entered-in-error".equals(codeString))
return AppointmentStatus.ENTEREDINERROR;
throw new IllegalArgumentException("Unknown AppointmentStatus code '"+codeString+"'");
}
public Enumeration<AppointmentStatus> fromType(Base code) throws FHIRException {
@ -194,6 +206,8 @@ public class Appointment extends DomainResource {
return new Enumeration<AppointmentStatus>(this, AppointmentStatus.CANCELLED);
if ("noshow".equals(codeString))
return new Enumeration<AppointmentStatus>(this, AppointmentStatus.NOSHOW);
if ("entered-in-error".equals(codeString))
return new Enumeration<AppointmentStatus>(this, AppointmentStatus.ENTEREDINERROR);
throw new FHIRException("Unknown AppointmentStatus code '"+codeString+"'");
}
public String toCode(AppointmentStatus code) {
@ -211,6 +225,8 @@ public class Appointment extends DomainResource {
return "cancelled";
if (code == AppointmentStatus.NOSHOW)
return "noshow";
if (code == AppointmentStatus.ENTEREDINERROR)
return "entered-in-error";
return "?";
}
public String toSystem(AppointmentStatus code) {
@ -830,7 +846,7 @@ public class Appointment extends DomainResource {
* The overall status of the Appointment. Each of the participants has their own participation status which indicates their involvement in the process, however this status indicates the shared status.
*/
@Child(name = "status", type = {CodeType.class}, order=1, min=1, max=1, modifier=true, summary=true)
@Description(shortDefinition="proposed | pending | booked | arrived | fulfilled | cancelled | noshow", formalDefinition="The overall status of the Appointment. Each of the participants has their own participation status which indicates their involvement in the process, however this status indicates the shared status." )
@Description(shortDefinition="proposed | pending | booked | arrived | fulfilled | cancelled | noshow | entered-in-error", formalDefinition="The overall status of the Appointment. Each of the participants has their own participation status which indicates their involvement in the process, however this status indicates the shared status." )
@ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/appointmentstatus")
protected Enumeration<AppointmentStatus> status;

View File

@ -29,7 +29,7 @@ package org.hl7.fhir.dstu3.model;
*/
// Generated on Tue, Jul 12, 2016 12:04-0400 for FHIR v1.5.0
// Generated on Wed, Aug 3, 2016 09:39-0400 for FHIR v1.5.0
import java.util.*;
@ -48,6 +48,128 @@ import org.hl7.fhir.dstu3.exceptions.FHIRException;
@ResourceDef(name="AppointmentResponse", profile="http://hl7.org/fhir/Profile/AppointmentResponse")
public class AppointmentResponse extends DomainResource {
public enum ParticipantStatus {
/**
* The participant has accepted the appointment.
*/
ACCEPTED,
/**
* The participant has declined the appointment and will not participate in the appointment.
*/
DECLINED,
/**
* The participant has tentatively accepted the appointment. This could be automatically created by a system and requires further processing before it can be accepted. There is no commitment that attendance will occur.
*/
TENTATIVE,
/**
* The participant needs to indicate if they accept the appointment by changing this status to one of the other statuses.
*/
NEEDSACTION,
/**
* added to help the parsers with the generic types
*/
NULL;
public static ParticipantStatus fromCode(String codeString) throws FHIRException {
if (codeString == null || "".equals(codeString))
return null;
if ("accepted".equals(codeString))
return ACCEPTED;
if ("declined".equals(codeString))
return DECLINED;
if ("tentative".equals(codeString))
return TENTATIVE;
if ("needs-action".equals(codeString))
return NEEDSACTION;
if (Configuration.isAcceptInvalidEnums())
return null;
else
throw new FHIRException("Unknown ParticipantStatus code '"+codeString+"'");
}
public String toCode() {
switch (this) {
case ACCEPTED: return "accepted";
case DECLINED: return "declined";
case TENTATIVE: return "tentative";
case NEEDSACTION: return "needs-action";
default: return "?";
}
}
public String getSystem() {
switch (this) {
case ACCEPTED: return "http://hl7.org/fhir/participationstatus";
case DECLINED: return "http://hl7.org/fhir/participationstatus";
case TENTATIVE: return "http://hl7.org/fhir/participationstatus";
case NEEDSACTION: return "http://hl7.org/fhir/participationstatus";
default: return "?";
}
}
public String getDefinition() {
switch (this) {
case ACCEPTED: return "The participant has accepted the appointment.";
case DECLINED: return "The participant has declined the appointment and will not participate in the appointment.";
case TENTATIVE: return "The participant has tentatively accepted the appointment. This could be automatically created by a system and requires further processing before it can be accepted. There is no commitment that attendance will occur.";
case NEEDSACTION: return "The participant needs to indicate if they accept the appointment by changing this status to one of the other statuses.";
default: return "?";
}
}
public String getDisplay() {
switch (this) {
case ACCEPTED: return "Accepted";
case DECLINED: return "Declined";
case TENTATIVE: return "Tentative";
case NEEDSACTION: return "Needs Action";
default: return "?";
}
}
}
public static class ParticipantStatusEnumFactory implements EnumFactory<ParticipantStatus> {
public ParticipantStatus fromCode(String codeString) throws IllegalArgumentException {
if (codeString == null || "".equals(codeString))
if (codeString == null || "".equals(codeString))
return null;
if ("accepted".equals(codeString))
return ParticipantStatus.ACCEPTED;
if ("declined".equals(codeString))
return ParticipantStatus.DECLINED;
if ("tentative".equals(codeString))
return ParticipantStatus.TENTATIVE;
if ("needs-action".equals(codeString))
return ParticipantStatus.NEEDSACTION;
throw new IllegalArgumentException("Unknown ParticipantStatus code '"+codeString+"'");
}
public Enumeration<ParticipantStatus> fromType(Base code) throws FHIRException {
if (code == null || code.isEmpty())
return null;
String codeString = ((PrimitiveType) code).asStringValue();
if (codeString == null || "".equals(codeString))
return null;
if ("accepted".equals(codeString))
return new Enumeration<ParticipantStatus>(this, ParticipantStatus.ACCEPTED);
if ("declined".equals(codeString))
return new Enumeration<ParticipantStatus>(this, ParticipantStatus.DECLINED);
if ("tentative".equals(codeString))
return new Enumeration<ParticipantStatus>(this, ParticipantStatus.TENTATIVE);
if ("needs-action".equals(codeString))
return new Enumeration<ParticipantStatus>(this, ParticipantStatus.NEEDSACTION);
throw new FHIRException("Unknown ParticipantStatus code '"+codeString+"'");
}
public String toCode(ParticipantStatus code) {
if (code == ParticipantStatus.ACCEPTED)
return "accepted";
if (code == ParticipantStatus.DECLINED)
return "declined";
if (code == ParticipantStatus.TENTATIVE)
return "tentative";
if (code == ParticipantStatus.NEEDSACTION)
return "needs-action";
return "?";
}
public String toSystem(ParticipantStatus code) {
return code.getSystem();
}
}
/**
* This records identifiers associated with this appointment response concern that are defined by business processes and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate.
*/
@ -105,9 +227,9 @@ public class AppointmentResponse extends DomainResource {
* Participation status of the participant. When the status is declined or tentative if the start/end times are different to the appointment, then these times should be interpreted as a requested time change. When the status is accepted, the times can either be the time of the appointment (as a confirmation of the time) or can be empty.
*/
@Child(name = "participantStatus", type = {CodeType.class}, order=6, min=1, max=1, modifier=true, summary=true)
@Description(shortDefinition="accepted | declined | tentative | in-process | completed | needs-action", formalDefinition="Participation status of the participant. When the status is declined or tentative if the start/end times are different to the appointment, then these times should be interpreted as a requested time change. When the status is accepted, the times can either be the time of the appointment (as a confirmation of the time) or can be empty." )
@Description(shortDefinition="accepted | declined | tentative | in-process | completed | needs-action | entered-in-error", formalDefinition="Participation status of the participant. When the status is declined or tentative if the start/end times are different to the appointment, then these times should be interpreted as a requested time change. When the status is accepted, the times can either be the time of the appointment (as a confirmation of the time) or can be empty." )
@ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/participationstatus")
protected CodeType participantStatus;
protected Enumeration<ParticipantStatus> participantStatus;
/**
* Additional comments about the appointment.
@ -116,7 +238,7 @@ public class AppointmentResponse extends DomainResource {
@Description(shortDefinition="Additional comments", formalDefinition="Additional comments about the appointment." )
protected StringType comment;
private static final long serialVersionUID = -1645343660L;
private static final long serialVersionUID = 248548635L;
/**
* Constructor
@ -128,7 +250,7 @@ public class AppointmentResponse extends DomainResource {
/**
* Constructor
*/
public AppointmentResponse(Reference appointment, CodeType participantStatus) {
public AppointmentResponse(Reference appointment, Enumeration<ParticipantStatus> participantStatus) {
super();
this.appointment = appointment;
this.participantStatus = participantStatus;
@ -424,12 +546,12 @@ public class AppointmentResponse extends DomainResource {
/**
* @return {@link #participantStatus} (Participation status of the participant. When the status is declined or tentative if the start/end times are different to the appointment, then these times should be interpreted as a requested time change. When the status is accepted, the times can either be the time of the appointment (as a confirmation of the time) or can be empty.). This is the underlying object with id, value and extensions. The accessor "getParticipantStatus" gives direct access to the value
*/
public CodeType getParticipantStatusElement() {
public Enumeration<ParticipantStatus> getParticipantStatusElement() {
if (this.participantStatus == null)
if (Configuration.errorOnAutoCreate())
throw new Error("Attempt to auto-create AppointmentResponse.participantStatus");
else if (Configuration.doAutoCreate())
this.participantStatus = new CodeType(); // bb
this.participantStatus = new Enumeration<ParticipantStatus>(new ParticipantStatusEnumFactory()); // bb
return this.participantStatus;
}
@ -444,7 +566,7 @@ public class AppointmentResponse extends DomainResource {
/**
* @param value {@link #participantStatus} (Participation status of the participant. When the status is declined or tentative if the start/end times are different to the appointment, then these times should be interpreted as a requested time change. When the status is accepted, the times can either be the time of the appointment (as a confirmation of the time) or can be empty.). This is the underlying object with id, value and extensions. The accessor "getParticipantStatus" gives direct access to the value
*/
public AppointmentResponse setParticipantStatusElement(CodeType value) {
public AppointmentResponse setParticipantStatusElement(Enumeration<ParticipantStatus> value) {
this.participantStatus = value;
return this;
}
@ -452,16 +574,16 @@ public class AppointmentResponse extends DomainResource {
/**
* @return Participation status of the participant. When the status is declined or tentative if the start/end times are different to the appointment, then these times should be interpreted as a requested time change. When the status is accepted, the times can either be the time of the appointment (as a confirmation of the time) or can be empty.
*/
public String getParticipantStatus() {
public ParticipantStatus getParticipantStatus() {
return this.participantStatus == null ? null : this.participantStatus.getValue();
}
/**
* @param value Participation status of the participant. When the status is declined or tentative if the start/end times are different to the appointment, then these times should be interpreted as a requested time change. When the status is accepted, the times can either be the time of the appointment (as a confirmation of the time) or can be empty.
*/
public AppointmentResponse setParticipantStatus(String value) {
public AppointmentResponse setParticipantStatus(ParticipantStatus value) {
if (this.participantStatus == null)
this.participantStatus = new CodeType();
this.participantStatus = new Enumeration<ParticipantStatus>(new ParticipantStatusEnumFactory());
this.participantStatus.setValue(value);
return this;
}
@ -536,7 +658,7 @@ public class AppointmentResponse extends DomainResource {
case 100571: /*end*/ return this.end == null ? new Base[0] : new Base[] {this.end}; // InstantType
case 841294093: /*participantType*/ return this.participantType == null ? new Base[0] : this.participantType.toArray(new Base[this.participantType.size()]); // CodeableConcept
case 92645877: /*actor*/ return this.actor == null ? new Base[0] : new Base[] {this.actor}; // Reference
case 996096261: /*participantStatus*/ return this.participantStatus == null ? new Base[0] : new Base[] {this.participantStatus}; // CodeType
case 996096261: /*participantStatus*/ return this.participantStatus == null ? new Base[0] : new Base[] {this.participantStatus}; // Enumeration<ParticipantStatus>
case 950398559: /*comment*/ return this.comment == null ? new Base[0] : new Base[] {this.comment}; // StringType
default: return super.getProperty(hash, name, checkValid);
}
@ -565,7 +687,7 @@ public class AppointmentResponse extends DomainResource {
this.actor = castToReference(value); // Reference
break;
case 996096261: // participantStatus
this.participantStatus = castToCode(value); // CodeType
this.participantStatus = new ParticipantStatusEnumFactory().fromType(value); // Enumeration<ParticipantStatus>
break;
case 950398559: // comment
this.comment = castToString(value); // StringType
@ -590,7 +712,7 @@ public class AppointmentResponse extends DomainResource {
else if (name.equals("actor"))
this.actor = castToReference(value); // Reference
else if (name.equals("participantStatus"))
this.participantStatus = castToCode(value); // CodeType
this.participantStatus = new ParticipantStatusEnumFactory().fromType(value); // Enumeration<ParticipantStatus>
else if (name.equals("comment"))
this.comment = castToString(value); // StringType
else
@ -606,7 +728,7 @@ public class AppointmentResponse extends DomainResource {
case 100571: throw new FHIRException("Cannot make property end as it is not a complex type"); // InstantType
case 841294093: return addParticipantType(); // CodeableConcept
case 92645877: return getActor(); // Reference
case 996096261: throw new FHIRException("Cannot make property participantStatus as it is not a complex type"); // CodeType
case 996096261: throw new FHIRException("Cannot make property participantStatus as it is not a complex type"); // Enumeration<ParticipantStatus>
case 950398559: throw new FHIRException("Cannot make property comment as it is not a complex type"); // StringType
default: return super.makeProperty(hash, name);
}

View File

@ -29,7 +29,7 @@ package org.hl7.fhir.dstu3.model;
*/
// Generated on Tue, Jul 12, 2016 12:04-0400 for FHIR v1.5.0
// Generated on Wed, Aug 3, 2016 09:39-0400 for FHIR v1.5.0
import java.util.*;
@ -60,6 +60,7 @@ public class Attachment extends Type implements ICompositeType {
*/
@Child(name = "language", type = {CodeType.class}, order=1, min=0, max=1, modifier=false, summary=true)
@Description(shortDefinition="Human language of the content (BCP-47)", formalDefinition="The human language of the content. The value can be any valid value according to BCP 47." )
@ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/languages")
protected CodeType language;
/**

View File

@ -29,7 +29,7 @@ package org.hl7.fhir.dstu3.model;
*/
// Generated on Tue, Jul 12, 2016 12:04-0400 for FHIR v1.5.0
// Generated on Wed, Aug 3, 2016 09:39-0400 for FHIR v1.5.0
import java.util.*;

View File

@ -29,7 +29,7 @@ package org.hl7.fhir.dstu3.model;
*/
// Generated on Tue, Jul 12, 2016 12:04-0400 for FHIR v1.5.0
// Generated on Wed, Aug 3, 2016 09:39-0400 for FHIR v1.5.0
import java.util.*;

View File

@ -144,21 +144,20 @@ private Map<String, Object> userData;
}
public List<Base> listChildrenByName(String name) throws FHIRException {
List<Base> result = new ArrayList<Base>();
List<Base> result = new ArrayList<Base>();
for (Base b : listChildrenByName(name, true))
if (b != null)
result.add(b);
return result;
return result;
}
public Base[] listChildrenByName(String name, boolean checkValid) throws FHIRException {
if (name.equals("*")) {
List<Property> children = new ArrayList<Property>();
listChildren(children);
List<Base> result = new ArrayList<Base>();
for (Property c : children)
if (name.equals("*") || c.getName().equals(name) || (c.getName().endsWith("[x]") && c.getName().startsWith(name)))
result.addAll(c.getValues());
result.addAll(c.getValues());
return result.toArray(new Base[result.size()]);
}
else
@ -200,7 +199,7 @@ private Map<String, Object> userData;
boolean noLeft = e1 == null || e1.isEmpty();
boolean noRight = e2 == null || e2.isEmpty();
if (noLeft && noRight) {
return true;
return true;
}
}
if (e1 == null || e2 == null)
@ -238,7 +237,7 @@ private Map<String, Object> userData;
boolean noLeft = e1 == null || e1.isEmpty();
boolean noRight = e2 == null || e2.isEmpty();
if (noLeft && noRight && allowNull) {
return true;
return true;
}
if (noLeft != noRight)
return false;
@ -297,7 +296,7 @@ private Map<String, Object> userData;
return (UriType) b;
else if (b.hasPrimitiveValue())
return new UriType(b.primitiveValue());
else
else
throw new FHIRException("Unable to convert a "+b.getClass().getName()+" to a Uri");
}
@ -306,7 +305,7 @@ private Map<String, Object> userData;
return (DateType) b;
else if (b.hasPrimitiveValue())
return new DateType(b.primitiveValue());
else
else
throw new FHIRException("Unable to convert a "+b.getClass().getName()+" to a Date");
}
@ -494,7 +493,7 @@ private Map<String, Object> userData;
else
throw new FHIRException("Unable to convert a "+b.getClass().getName()+" to a Address");
}
public ContactDetail castToContactDetail(Base b) throws FHIRException {
if (b instanceof ContactDetail)
return (ContactDetail) b;
@ -580,20 +579,6 @@ private Map<String, Object> userData;
throw new FHIRException("Unable to convert a "+b.getClass().getName()+" to a ElementDefinition");
}
public ModuleMetadata castToModuleMetadata(Base b) throws FHIRException {
if (b instanceof ModuleMetadata)
return (ModuleMetadata) b;
else
throw new FHIRException("Unable to convert a "+b.getClass().getName()+" to a ModuleMetadata");
}
public ActionDefinition castToActionDefinition(Base b) throws FHIRException {
if (b instanceof ActionDefinition)
return (ActionDefinition) b;
else
throw new FHIRException("Unable to convert a "+b.getClass().getName()+" to a ActionDefinition");
}
public DataRequirement castToDataRequirement(Base b) throws FHIRException {
if (b instanceof DataRequirement)
return (DataRequirement) b;
@ -641,6 +626,10 @@ private Map<String, Object> userData;
else
return v1.equals(v2);
}
public boolean isResource() {
return false;
}
}

View File

@ -29,7 +29,7 @@ package org.hl7.fhir.dstu3.model;
*/
// Generated on Tue, Jul 12, 2016 12:04-0400 for FHIR v1.5.0
// Generated on Wed, Aug 3, 2016 09:39-0400 for FHIR v1.5.0
import java.util.*;

View File

@ -31,4 +31,10 @@ public abstract class BaseResource extends Base implements IAnyResource, IElemen
return FhirVersionEnum.DSTU3;
}
@Override
public boolean isResource() {
return true;
}
}

View File

@ -29,7 +29,7 @@ package org.hl7.fhir.dstu3.model;
*/
// Generated on Tue, Jul 12, 2016 12:04-0400 for FHIR v1.5.0
// Generated on Wed, Aug 3, 2016 09:39-0400 for FHIR v1.5.0
import java.util.*;

View File

@ -29,7 +29,7 @@ package org.hl7.fhir.dstu3.model;
*/
// Generated on Tue, Jul 12, 2016 12:04-0400 for FHIR v1.5.0
// Generated on Wed, Aug 3, 2016 09:39-0400 for FHIR v1.5.0
import java.util.*;
@ -59,7 +59,7 @@ public class Binary extends BaseBinary implements IBaseBinary {
/**
* The actual content, base64 encoded.
*/
@Child(name = "content", type = {Base64BinaryType.class}, order=1, min=1, max=1, modifier=false, summary=true)
@Child(name = "content", type = {Base64BinaryType.class}, order=1, min=1, max=1, modifier=false, summary=false)
@Description(shortDefinition="The actual content", formalDefinition="The actual content, base64 encoded." )
protected Base64BinaryType content;

View File

@ -29,7 +29,7 @@ package org.hl7.fhir.dstu3.model;
*/
// Generated on Tue, Jul 12, 2016 12:04-0400 for FHIR v1.5.0
// Generated on Wed, Aug 3, 2016 09:39-0400 for FHIR v1.5.0
import java.util.*;

View File

@ -29,7 +29,7 @@ package org.hl7.fhir.dstu3.model;
*/
// Generated on Tue, Jul 12, 2016 12:04-0400 for FHIR v1.5.0
// Generated on Wed, Aug 3, 2016 09:39-0400 for FHIR v1.5.0
import java.util.*;
@ -2797,17 +2797,17 @@ public class Bundle extends Resource implements IBaseBundle {
* <p>
* Description: <b>The first resource in the bundle, if the bundle type is "document" - this is a composition, and this parameter provides access to searches its contents</b><br>
* Type: <b>reference</b><br>
* Path: <b>Bundle.entry.resource(0)</b><br>
* Path: <b>Bundle.entry(0).resource</b><br>
* </p>
*/
@SearchParamDefinition(name="composition", path="Bundle.entry.resource[0]", description="The first resource in the bundle, if the bundle type is \"document\" - this is a composition, and this parameter provides access to searches its contents", type="reference", target={Composition.class } )
@SearchParamDefinition(name="composition", path="Bundle.entry[0].resource", description="The first resource in the bundle, if the bundle type is \"document\" - this is a composition, and this parameter provides access to searches its contents", type="reference", target={Composition.class } )
public static final String SP_COMPOSITION = "composition";
/**
* <b>Fluent Client</b> search parameter constant for <b>composition</b>
* <p>
* Description: <b>The first resource in the bundle, if the bundle type is "document" - this is a composition, and this parameter provides access to searches its contents</b><br>
* Type: <b>reference</b><br>
* Path: <b>Bundle.entry.resource(0)</b><br>
* Path: <b>Bundle.entry(0).resource</b><br>
* </p>
*/
public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam COMPOSITION = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_COMPOSITION);
@ -2843,17 +2843,17 @@ public class Bundle extends Resource implements IBaseBundle {
* <p>
* Description: <b>The first resource in the bundle, if the bundle type is "message" - this is a message header, and this parameter provides access to search its contents</b><br>
* Type: <b>reference</b><br>
* Path: <b>Bundle.entry.resource(0)</b><br>
* Path: <b>Bundle.entry(0).resource</b><br>
* </p>
*/
@SearchParamDefinition(name="message", path="Bundle.entry.resource[0]", description="The first resource in the bundle, if the bundle type is \"message\" - this is a message header, and this parameter provides access to search its contents", type="reference", target={MessageHeader.class } )
@SearchParamDefinition(name="message", path="Bundle.entry[0].resource", description="The first resource in the bundle, if the bundle type is \"message\" - this is a message header, and this parameter provides access to search its contents", type="reference", target={MessageHeader.class } )
public static final String SP_MESSAGE = "message";
/**
* <b>Fluent Client</b> search parameter constant for <b>message</b>
* <p>
* Description: <b>The first resource in the bundle, if the bundle type is "message" - this is a message header, and this parameter provides access to search its contents</b><br>
* Type: <b>reference</b><br>
* Path: <b>Bundle.entry.resource(0)</b><br>
* Path: <b>Bundle.entry(0).resource</b><br>
* </p>
*/
public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam MESSAGE = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_MESSAGE);

View File

@ -29,7 +29,7 @@ package org.hl7.fhir.dstu3.model;
*/
// Generated on Tue, Jul 12, 2016 12:04-0400 for FHIR v1.5.0
// Generated on Wed, Aug 3, 2016 09:39-0400 for FHIR v1.5.0
import java.util.*;
@ -694,17 +694,24 @@ public class CarePlan extends DomainResource {
protected List<Resource> actionResultingTarget;
/**
* Results of the careplan activity.
*/
@Child(name = "outcome", type = {CodeableConcept.class}, order=2, min=0, max=1, modifier=false, summary=false)
@Description(shortDefinition="Results of the activity", formalDefinition="Results of the careplan activity." )
protected CodeableConcept outcome;
/**
* Notes about the adherence/status/progress of the activity.
*/
@Child(name = "progress", type = {Annotation.class}, order=2, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
@Child(name = "progress", type = {Annotation.class}, order=3, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
@Description(shortDefinition="Comments about the activity status/progress", formalDefinition="Notes about the adherence/status/progress of the activity." )
protected List<Annotation> progress;
/**
* The details of the proposed activity represented in a specific resource.
*/
@Child(name = "reference", type = {Appointment.class, CommunicationRequest.class, DeviceUseRequest.class, DiagnosticOrder.class, MedicationOrder.class, NutritionOrder.class, Order.class, ProcedureRequest.class, ProcessRequest.class, ReferralRequest.class, SupplyRequest.class, VisionPrescription.class}, order=3, min=0, max=1, modifier=false, summary=false)
@Child(name = "reference", type = {Appointment.class, CommunicationRequest.class, DeviceUseRequest.class, DiagnosticRequest.class, MedicationOrder.class, NutritionRequest.class, ProcedureRequest.class, ProcessRequest.class, ReferralRequest.class, SupplyRequest.class, VisionPrescription.class}, order=4, min=0, max=1, modifier=false, summary=false)
@Description(shortDefinition="Activity details defined in specific resource", formalDefinition="The details of the proposed activity represented in a specific resource." )
protected Reference reference;
@ -716,11 +723,11 @@ public class CarePlan extends DomainResource {
/**
* A simple summary of a planned activity suitable for a general care plan system (e.g. form driven) that doesn't know about specific resources such as procedure etc.
*/
@Child(name = "detail", type = {}, order=4, min=0, max=1, modifier=false, summary=false)
@Child(name = "detail", type = {}, order=5, min=0, max=1, modifier=false, summary=false)
@Description(shortDefinition="In-line definition of activity", formalDefinition="A simple summary of a planned activity suitable for a general care plan system (e.g. form driven) that doesn't know about specific resources such as procedure etc." )
protected CarePlanActivityDetailComponent detail;
private static final long serialVersionUID = 40181608L;
private static final long serialVersionUID = -961931681L;
/**
* Constructor
@ -792,6 +799,30 @@ public class CarePlan extends DomainResource {
return this.actionResultingTarget;
}
/**
* @return {@link #outcome} (Results of the careplan activity.)
*/
public CodeableConcept getOutcome() {
if (this.outcome == null)
if (Configuration.errorOnAutoCreate())
throw new Error("Attempt to auto-create CarePlanActivityComponent.outcome");
else if (Configuration.doAutoCreate())
this.outcome = new CodeableConcept(); // cc
return this.outcome;
}
public boolean hasOutcome() {
return this.outcome != null && !this.outcome.isEmpty();
}
/**
* @param value {@link #outcome} (Results of the careplan activity.)
*/
public CarePlanActivityComponent setOutcome(CodeableConcept value) {
this.outcome = value;
return this;
}
/**
* @return {@link #progress} (Notes about the adherence/status/progress of the activity.)
*/
@ -911,8 +942,9 @@ public class CarePlan extends DomainResource {
protected void listChildren(List<Property> childrenList) {
super.listChildren(childrenList);
childrenList.add(new Property("actionResulting", "Reference(Any)", "Resources that describe follow-on actions resulting from the plan, such as drug prescriptions, encounter records, appointments, etc.", 0, java.lang.Integer.MAX_VALUE, actionResulting));
childrenList.add(new Property("outcome", "CodeableConcept", "Results of the careplan activity.", 0, java.lang.Integer.MAX_VALUE, outcome));
childrenList.add(new Property("progress", "Annotation", "Notes about the adherence/status/progress of the activity.", 0, java.lang.Integer.MAX_VALUE, progress));
childrenList.add(new Property("reference", "Reference(Appointment|CommunicationRequest|DeviceUseRequest|DiagnosticOrder|MedicationOrder|NutritionOrder|Order|ProcedureRequest|ProcessRequest|ReferralRequest|SupplyRequest|VisionPrescription)", "The details of the proposed activity represented in a specific resource.", 0, java.lang.Integer.MAX_VALUE, reference));
childrenList.add(new Property("reference", "Reference(Appointment|CommunicationRequest|DeviceUseRequest|DiagnosticRequest|MedicationOrder|NutritionRequest|ProcedureRequest|ProcessRequest|ReferralRequest|SupplyRequest|VisionPrescription)", "The details of the proposed activity represented in a specific resource.", 0, java.lang.Integer.MAX_VALUE, reference));
childrenList.add(new Property("detail", "", "A simple summary of a planned activity suitable for a general care plan system (e.g. form driven) that doesn't know about specific resources such as procedure etc.", 0, java.lang.Integer.MAX_VALUE, detail));
}
@ -920,6 +952,7 @@ public class CarePlan extends DomainResource {
public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException {
switch (hash) {
case 836386063: /*actionResulting*/ return this.actionResulting == null ? new Base[0] : this.actionResulting.toArray(new Base[this.actionResulting.size()]); // Reference
case -1106507950: /*outcome*/ return this.outcome == null ? new Base[0] : new Base[] {this.outcome}; // CodeableConcept
case -1001078227: /*progress*/ return this.progress == null ? new Base[0] : this.progress.toArray(new Base[this.progress.size()]); // Annotation
case -925155509: /*reference*/ return this.reference == null ? new Base[0] : new Base[] {this.reference}; // Reference
case -1335224239: /*detail*/ return this.detail == null ? new Base[0] : new Base[] {this.detail}; // CarePlanActivityDetailComponent
@ -934,6 +967,9 @@ public class CarePlan extends DomainResource {
case 836386063: // actionResulting
this.getActionResulting().add(castToReference(value)); // Reference
break;
case -1106507950: // outcome
this.outcome = castToCodeableConcept(value); // CodeableConcept
break;
case -1001078227: // progress
this.getProgress().add(castToAnnotation(value)); // Annotation
break;
@ -952,6 +988,8 @@ public class CarePlan extends DomainResource {
public void setProperty(String name, Base value) throws FHIRException {
if (name.equals("actionResulting"))
this.getActionResulting().add(castToReference(value));
else if (name.equals("outcome"))
this.outcome = castToCodeableConcept(value); // CodeableConcept
else if (name.equals("progress"))
this.getProgress().add(castToAnnotation(value));
else if (name.equals("reference"))
@ -966,6 +1004,7 @@ public class CarePlan extends DomainResource {
public Base makeProperty(int hash, String name) throws FHIRException {
switch (hash) {
case 836386063: return addActionResulting(); // Reference
case -1106507950: return getOutcome(); // CodeableConcept
case -1001078227: return addProgress(); // Annotation
case -925155509: return getReference(); // Reference
case -1335224239: return getDetail(); // CarePlanActivityDetailComponent
@ -979,6 +1018,10 @@ public class CarePlan extends DomainResource {
if (name.equals("actionResulting")) {
return addActionResulting();
}
else if (name.equals("outcome")) {
this.outcome = new CodeableConcept();
return this.outcome;
}
else if (name.equals("progress")) {
return addProgress();
}
@ -1002,6 +1045,7 @@ public class CarePlan extends DomainResource {
for (Reference i : actionResulting)
dst.actionResulting.add(i.copy());
};
dst.outcome = outcome == null ? null : outcome.copy();
if (progress != null) {
dst.progress = new ArrayList<Annotation>();
for (Annotation i : progress)
@ -1019,8 +1063,9 @@ public class CarePlan extends DomainResource {
if (!(other instanceof CarePlanActivityComponent))
return false;
CarePlanActivityComponent o = (CarePlanActivityComponent) other;
return compareDeep(actionResulting, o.actionResulting, true) && compareDeep(progress, o.progress, true)
&& compareDeep(reference, o.reference, true) && compareDeep(detail, o.detail, true);
return compareDeep(actionResulting, o.actionResulting, true) && compareDeep(outcome, o.outcome, true)
&& compareDeep(progress, o.progress, true) && compareDeep(reference, o.reference, true) && compareDeep(detail, o.detail, true)
;
}
@Override
@ -1034,7 +1079,7 @@ public class CarePlan extends DomainResource {
}
public boolean isEmpty() {
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(actionResulting, progress
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(actionResulting, outcome, progress
, reference, detail);
}
@ -1055,10 +1100,22 @@ public class CarePlan extends DomainResource {
@ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/care-plan-activity-category")
protected CodeableConcept category;
/**
* Identifies the protocol, questionnaire, guideline or other specification the planned activity should be conducted in accordance with.
*/
@Child(name = "definition", type = {PlanDefinition.class, Questionnaire.class}, order=2, min=0, max=1, modifier=false, summary=false)
@Description(shortDefinition="Protocol or definition", formalDefinition="Identifies the protocol, questionnaire, guideline or other specification the planned activity should be conducted in accordance with." )
protected Reference definition;
/**
* The actual object that is the target of the reference (Identifies the protocol, questionnaire, guideline or other specification the planned activity should be conducted in accordance with.)
*/
protected Resource definitionTarget;
/**
* Detailed description of the type of planned activity; e.g. What lab test, what procedure, what kind of encounter.
*/
@Child(name = "code", type = {CodeableConcept.class}, order=2, min=0, max=1, modifier=false, summary=false)
@Child(name = "code", type = {CodeableConcept.class}, order=3, min=0, max=1, modifier=false, summary=false)
@Description(shortDefinition="Detail type of activity", formalDefinition="Detailed description of the type of planned activity; e.g. What lab test, what procedure, what kind of encounter." )
@ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/care-plan-activity")
protected CodeableConcept code;
@ -1066,7 +1123,7 @@ public class CarePlan extends DomainResource {
/**
* Provides the rationale that drove the inclusion of this particular activity as part of the plan.
*/
@Child(name = "reasonCode", type = {CodeableConcept.class}, order=3, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
@Child(name = "reasonCode", type = {CodeableConcept.class}, order=4, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
@Description(shortDefinition="Why activity should be done", formalDefinition="Provides the rationale that drove the inclusion of this particular activity as part of the plan." )
@ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/activity-reason")
protected List<CodeableConcept> reasonCode;
@ -1074,7 +1131,7 @@ public class CarePlan extends DomainResource {
/**
* Provides the health condition(s) that drove the inclusion of this particular activity as part of the plan.
*/
@Child(name = "reasonReference", type = {Condition.class}, order=4, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
@Child(name = "reasonReference", type = {Condition.class}, order=5, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
@Description(shortDefinition="Condition triggering need for activity", formalDefinition="Provides the health condition(s) that drove the inclusion of this particular activity as part of the plan." )
protected List<Reference> reasonReference;
/**
@ -1086,7 +1143,7 @@ public class CarePlan extends DomainResource {
/**
* Internal reference that identifies the goals that this activity is intended to contribute towards meeting.
*/
@Child(name = "goal", type = {Goal.class}, order=5, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
@Child(name = "goal", type = {Goal.class}, order=6, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
@Description(shortDefinition="Goals this activity relates to", formalDefinition="Internal reference that identifies the goals that this activity is intended to contribute towards meeting." )
protected List<Reference> goal;
/**
@ -1098,7 +1155,7 @@ public class CarePlan extends DomainResource {
/**
* Identifies what progress is being made for the specific activity.
*/
@Child(name = "status", type = {CodeType.class}, order=6, min=0, max=1, modifier=true, summary=false)
@Child(name = "status", type = {CodeType.class}, order=7, min=0, max=1, modifier=true, summary=false)
@Description(shortDefinition="not-started | scheduled | in-progress | on-hold | completed | cancelled", formalDefinition="Identifies what progress is being made for the specific activity." )
@ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/care-plan-activity-status")
protected Enumeration<CarePlanActivityStatus> status;
@ -1106,7 +1163,7 @@ public class CarePlan extends DomainResource {
/**
* Provides reason why the activity isn't yet started, is on hold, was cancelled, etc.
*/
@Child(name = "statusReason", type = {CodeableConcept.class}, order=7, min=0, max=1, modifier=false, summary=false)
@Child(name = "statusReason", type = {CodeableConcept.class}, order=8, min=0, max=1, modifier=false, summary=false)
@Description(shortDefinition="Reason for current status", formalDefinition="Provides reason why the activity isn't yet started, is on hold, was cancelled, etc." )
@ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/goal-status-reason")
protected CodeableConcept statusReason;
@ -1114,21 +1171,21 @@ public class CarePlan extends DomainResource {
/**
* If true, indicates that the described activity is one that must NOT be engaged in when following the plan.
*/
@Child(name = "prohibited", type = {BooleanType.class}, order=8, min=1, max=1, modifier=true, summary=false)
@Child(name = "prohibited", type = {BooleanType.class}, order=9, min=1, max=1, modifier=true, summary=false)
@Description(shortDefinition="Do NOT do", formalDefinition="If true, indicates that the described activity is one that must NOT be engaged in when following the plan." )
protected BooleanType prohibited;
/**
* The period, timing or frequency upon which the described activity is to occur.
*/
@Child(name = "scheduled", type = {Timing.class, Period.class, StringType.class}, order=9, min=0, max=1, modifier=false, summary=false)
@Child(name = "scheduled", type = {Timing.class, Period.class, StringType.class}, order=10, min=0, max=1, modifier=false, summary=false)
@Description(shortDefinition="When activity is to occur", formalDefinition="The period, timing or frequency upon which the described activity is to occur." )
protected Type scheduled;
/**
* Identifies the facility where the activity will occur; e.g. home, hospital, specific clinic, etc.
*/
@Child(name = "location", type = {Location.class}, order=10, min=0, max=1, modifier=false, summary=false)
@Child(name = "location", type = {Location.class}, order=11, min=0, max=1, modifier=false, summary=false)
@Description(shortDefinition="Where it should happen", formalDefinition="Identifies the facility where the activity will occur; e.g. home, hospital, specific clinic, etc." )
protected Reference location;
@ -1140,7 +1197,7 @@ public class CarePlan extends DomainResource {
/**
* Identifies who's expected to be involved in the activity.
*/
@Child(name = "performer", type = {Practitioner.class, Organization.class, RelatedPerson.class, Patient.class}, order=11, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
@Child(name = "performer", type = {Practitioner.class, Organization.class, RelatedPerson.class, Patient.class}, order=12, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
@Description(shortDefinition="Who will be responsible?", formalDefinition="Identifies who's expected to be involved in the activity." )
protected List<Reference> performer;
/**
@ -1152,7 +1209,7 @@ public class CarePlan extends DomainResource {
/**
* Identifies the food, drug or other product to be consumed or supplied in the activity.
*/
@Child(name = "product", type = {CodeableConcept.class, Medication.class, Substance.class}, order=12, min=0, max=1, modifier=false, summary=false)
@Child(name = "product", type = {CodeableConcept.class, Medication.class, Substance.class}, order=13, min=0, max=1, modifier=false, summary=false)
@Description(shortDefinition="What is to be administered/supplied", formalDefinition="Identifies the food, drug or other product to be consumed or supplied in the activity." )
@ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/medication-codes")
protected Type product;
@ -1160,25 +1217,25 @@ public class CarePlan extends DomainResource {
/**
* Identifies the quantity expected to be consumed in a given day.
*/
@Child(name = "dailyAmount", type = {SimpleQuantity.class}, order=13, min=0, max=1, modifier=false, summary=false)
@Child(name = "dailyAmount", type = {SimpleQuantity.class}, order=14, min=0, max=1, modifier=false, summary=false)
@Description(shortDefinition="How to consume/day?", formalDefinition="Identifies the quantity expected to be consumed in a given day." )
protected SimpleQuantity dailyAmount;
/**
* Identifies the quantity expected to be supplied, administered or consumed by the subject.
*/
@Child(name = "quantity", type = {SimpleQuantity.class}, order=14, min=0, max=1, modifier=false, summary=false)
@Child(name = "quantity", type = {SimpleQuantity.class}, order=15, min=0, max=1, modifier=false, summary=false)
@Description(shortDefinition="How much to administer/supply/consume", formalDefinition="Identifies the quantity expected to be supplied, administered or consumed by the subject." )
protected SimpleQuantity quantity;
/**
* This provides a textual description of constraints on the intended activity occurrence, including relation to other activities. It may also include objectives, pre-conditions and end-conditions. Finally, it may convey specifics about the activity such as body site, method, route, etc.
*/
@Child(name = "description", type = {StringType.class}, order=15, min=0, max=1, modifier=false, summary=false)
@Child(name = "description", type = {StringType.class}, order=16, min=0, max=1, modifier=false, summary=false)
@Description(shortDefinition="Extra info describing activity to perform", formalDefinition="This provides a textual description of constraints on the intended activity occurrence, including relation to other activities. It may also include objectives, pre-conditions and end-conditions. Finally, it may convey specifics about the activity such as body site, method, route, etc." )
protected StringType description;
private static final long serialVersionUID = -1763965702L;
private static final long serialVersionUID = 1475798298L;
/**
* Constructor
@ -1219,6 +1276,45 @@ public class CarePlan extends DomainResource {
return this;
}
/**
* @return {@link #definition} (Identifies the protocol, questionnaire, guideline or other specification the planned activity should be conducted in accordance with.)
*/
public Reference getDefinition() {
if (this.definition == null)
if (Configuration.errorOnAutoCreate())
throw new Error("Attempt to auto-create CarePlanActivityDetailComponent.definition");
else if (Configuration.doAutoCreate())
this.definition = new Reference(); // cc
return this.definition;
}
public boolean hasDefinition() {
return this.definition != null && !this.definition.isEmpty();
}
/**
* @param value {@link #definition} (Identifies the protocol, questionnaire, guideline or other specification the planned activity should be conducted in accordance with.)
*/
public CarePlanActivityDetailComponent setDefinition(Reference value) {
this.definition = value;
return this;
}
/**
* @return {@link #definition} 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 protocol, questionnaire, guideline or other specification the planned activity should be conducted in accordance with.)
*/
public Resource getDefinitionTarget() {
return this.definitionTarget;
}
/**
* @param value {@link #definition} 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 protocol, questionnaire, guideline or other specification the planned activity should be conducted in accordance with.)
*/
public CarePlanActivityDetailComponent setDefinitionTarget(Resource value) {
this.definitionTarget = value;
return this;
}
/**
* @return {@link #code} (Detailed description of the type of planned activity; e.g. What lab test, what procedure, what kind of encounter.)
*/
@ -1874,6 +1970,7 @@ public class CarePlan extends DomainResource {
protected void listChildren(List<Property> childrenList) {
super.listChildren(childrenList);
childrenList.add(new Property("category", "CodeableConcept", "High-level categorization of the type of activity in a care plan.", 0, java.lang.Integer.MAX_VALUE, category));
childrenList.add(new Property("definition", "Reference(PlanDefinition|Questionnaire)", "Identifies the protocol, questionnaire, guideline or other specification the planned activity should be conducted in accordance with.", 0, java.lang.Integer.MAX_VALUE, definition));
childrenList.add(new Property("code", "CodeableConcept", "Detailed description of the type of planned activity; e.g. What lab test, what procedure, what kind of encounter.", 0, java.lang.Integer.MAX_VALUE, code));
childrenList.add(new Property("reasonCode", "CodeableConcept", "Provides the rationale that drove the inclusion of this particular activity as part of the plan.", 0, java.lang.Integer.MAX_VALUE, reasonCode));
childrenList.add(new Property("reasonReference", "Reference(Condition)", "Provides the health condition(s) that drove the inclusion of this particular activity as part of the plan.", 0, java.lang.Integer.MAX_VALUE, reasonReference));
@ -1894,6 +1991,7 @@ public class CarePlan extends DomainResource {
public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException {
switch (hash) {
case 50511102: /*category*/ return this.category == null ? new Base[0] : new Base[] {this.category}; // CodeableConcept
case -1014418093: /*definition*/ return this.definition == null ? new Base[0] : new Base[] {this.definition}; // Reference
case 3059181: /*code*/ return this.code == null ? new Base[0] : new Base[] {this.code}; // CodeableConcept
case 722137681: /*reasonCode*/ return this.reasonCode == null ? new Base[0] : this.reasonCode.toArray(new Base[this.reasonCode.size()]); // CodeableConcept
case -1146218137: /*reasonReference*/ return this.reasonReference == null ? new Base[0] : this.reasonReference.toArray(new Base[this.reasonReference.size()]); // Reference
@ -1919,6 +2017,9 @@ public class CarePlan extends DomainResource {
case 50511102: // category
this.category = castToCodeableConcept(value); // CodeableConcept
break;
case -1014418093: // definition
this.definition = castToReference(value); // Reference
break;
case 3059181: // code
this.code = castToCodeableConcept(value); // CodeableConcept
break;
@ -1970,6 +2071,8 @@ public class CarePlan extends DomainResource {
public void setProperty(String name, Base value) throws FHIRException {
if (name.equals("category"))
this.category = castToCodeableConcept(value); // CodeableConcept
else if (name.equals("definition"))
this.definition = castToReference(value); // Reference
else if (name.equals("code"))
this.code = castToCodeableConcept(value); // CodeableConcept
else if (name.equals("reasonCode"))
@ -2006,6 +2109,7 @@ public class CarePlan extends DomainResource {
public Base makeProperty(int hash, String name) throws FHIRException {
switch (hash) {
case 50511102: return getCategory(); // CodeableConcept
case -1014418093: return getDefinition(); // Reference
case 3059181: return getCode(); // CodeableConcept
case 722137681: return addReasonCode(); // CodeableConcept
case -1146218137: return addReasonReference(); // Reference
@ -2031,6 +2135,10 @@ public class CarePlan extends DomainResource {
this.category = new CodeableConcept();
return this.category;
}
else if (name.equals("definition")) {
this.definition = new Reference();
return this.definition;
}
else if (name.equals("code")) {
this.code = new CodeableConcept();
return this.code;
@ -2100,6 +2208,7 @@ public class CarePlan extends DomainResource {
CarePlanActivityDetailComponent dst = new CarePlanActivityDetailComponent();
copyValues(dst);
dst.category = category == null ? null : category.copy();
dst.definition = definition == null ? null : definition.copy();
dst.code = code == null ? null : code.copy();
if (reasonCode != null) {
dst.reasonCode = new ArrayList<CodeableConcept>();
@ -2140,12 +2249,12 @@ public class CarePlan extends DomainResource {
if (!(other instanceof CarePlanActivityDetailComponent))
return false;
CarePlanActivityDetailComponent o = (CarePlanActivityDetailComponent) other;
return compareDeep(category, o.category, true) && compareDeep(code, o.code, true) && compareDeep(reasonCode, o.reasonCode, true)
&& compareDeep(reasonReference, o.reasonReference, true) && compareDeep(goal, o.goal, true) && compareDeep(status, o.status, true)
&& compareDeep(statusReason, o.statusReason, true) && compareDeep(prohibited, o.prohibited, true)
&& compareDeep(scheduled, o.scheduled, true) && compareDeep(location, o.location, true) && compareDeep(performer, o.performer, true)
&& compareDeep(product, o.product, true) && compareDeep(dailyAmount, o.dailyAmount, true) && compareDeep(quantity, o.quantity, true)
&& compareDeep(description, o.description, true);
return compareDeep(category, o.category, true) && compareDeep(definition, o.definition, true) && compareDeep(code, o.code, true)
&& compareDeep(reasonCode, o.reasonCode, true) && compareDeep(reasonReference, o.reasonReference, true)
&& compareDeep(goal, o.goal, true) && compareDeep(status, o.status, true) && compareDeep(statusReason, o.statusReason, true)
&& compareDeep(prohibited, o.prohibited, true) && compareDeep(scheduled, o.scheduled, true) && compareDeep(location, o.location, true)
&& compareDeep(performer, o.performer, true) && compareDeep(product, o.product, true) && compareDeep(dailyAmount, o.dailyAmount, true)
&& compareDeep(quantity, o.quantity, true) && compareDeep(description, o.description, true);
}
@Override
@ -2160,9 +2269,9 @@ public class CarePlan extends DomainResource {
}
public boolean isEmpty() {
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(category, code, reasonCode
, reasonReference, goal, status, statusReason, prohibited, scheduled, location
, performer, product, dailyAmount, quantity, description);
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(category, definition, code
, reasonCode, reasonReference, goal, status, statusReason, prohibited, scheduled
, location, performer, product, dailyAmount, quantity, description);
}
public String fhirType() {
@ -3528,7 +3637,7 @@ public class CarePlan extends DomainResource {
* Path: <b>CarePlan.activity.reference</b><br>
* </p>
*/
@SearchParamDefinition(name="activityreference", path="CarePlan.activity.reference", description="Activity details defined in specific resource", type="reference", target={Appointment.class, CommunicationRequest.class, DeviceUseRequest.class, DiagnosticOrder.class, MedicationOrder.class, NutritionOrder.class, Order.class, ProcedureRequest.class, ProcessRequest.class, ReferralRequest.class, SupplyRequest.class, VisionPrescription.class } )
@SearchParamDefinition(name="activityreference", path="CarePlan.activity.reference", description="Activity details defined in specific resource", type="reference", target={Appointment.class, CommunicationRequest.class, DeviceUseRequest.class, DiagnosticRequest.class, MedicationOrder.class, NutritionRequest.class, ProcedureRequest.class, ProcessRequest.class, ReferralRequest.class, SupplyRequest.class, VisionPrescription.class } )
public static final String SP_ACTIVITYREFERENCE = "activityreference";
/**
* <b>Fluent Client</b> search parameter constant for <b>activityreference</b>

View File

@ -29,7 +29,7 @@ package org.hl7.fhir.dstu3.model;
*/
// Generated on Tue, Jul 12, 2016 12:04-0400 for FHIR v1.5.0
// Generated on Wed, Aug 3, 2016 09:39-0400 for FHIR v1.5.0
import java.util.*;

View File

@ -29,7 +29,7 @@ package org.hl7.fhir.dstu3.model;
*/
// Generated on Tue, Jul 12, 2016 12:04-0400 for FHIR v1.5.0
// Generated on Wed, Aug 3, 2016 09:39-0400 for FHIR v1.5.0
import java.util.*;
@ -557,7 +557,7 @@ public class Claim extends DomainResource {
*/
@Child(name = "resourceType", type = {Coding.class}, order=2, min=0, max=1, modifier=false, summary=false)
@Description(shortDefinition="organization | patient | practitioner | relatedperson", formalDefinition="organization | patient | practitioner | relatedperson." )
@ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/resource-type")
@ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/ex-payee-resource-type")
protected Coding resourceType;
/**
@ -8805,44 +8805,56 @@ public class Claim extends DomainResource {
public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_IDENTIFIER);
/**
* Search parameter: <b>patientidentifier</b>
* Search parameter: <b>insurer-reference</b>
* <p>
* Description: <b>Patient receiving the services</b><br>
* Type: <b>token</b><br>
* Path: <b>Claim.patientIdentifier</b><br>
* Description: <b>The target payor/insurer for the Claim</b><br>
* Type: <b>reference</b><br>
* Path: <b>Claim.insurerReference</b><br>
* </p>
*/
@SearchParamDefinition(name="patientidentifier", path="Claim.patient.as(Identifier)", description="Patient receiving the services", type="token", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Patient") } )
public static final String SP_PATIENTIDENTIFIER = "patientidentifier";
@SearchParamDefinition(name="insurer-reference", path="Claim.insurer.as(Reference)", description="The target payor/insurer for the Claim", type="reference", target={Organization.class } )
public static final String SP_INSURER_REFERENCE = "insurer-reference";
/**
* <b>Fluent Client</b> search parameter constant for <b>patientidentifier</b>
* <b>Fluent Client</b> search parameter constant for <b>insurer-reference</b>
* <p>
* Description: <b>Patient receiving the services</b><br>
* Type: <b>token</b><br>
* Path: <b>Claim.patientIdentifier</b><br>
* Description: <b>The target payor/insurer for the Claim</b><br>
* Type: <b>reference</b><br>
* Path: <b>Claim.insurerReference</b><br>
* </p>
*/
public static final ca.uhn.fhir.rest.gclient.TokenClientParam PATIENTIDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_PATIENTIDENTIFIER);
public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam INSURER_REFERENCE = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_INSURER_REFERENCE);
/**
* Constant for fluent queries to be used to add include statements. Specifies
* the path value of "<b>Claim:insurer-reference</b>".
*/
public static final ca.uhn.fhir.model.api.Include INCLUDE_INSURER_REFERENCE = new ca.uhn.fhir.model.api.Include("Claim:insurer-reference").toLocked();
/**
* Search parameter: <b>organizationidentifier</b>
* Search parameter: <b>organization-reference</b>
* <p>
* Description: <b>The reference to the providing organization</b><br>
* Type: <b>token</b><br>
* Path: <b>Claim.organizationIdentifier</b><br>
* Type: <b>reference</b><br>
* Path: <b>Claim.organizationReference</b><br>
* </p>
*/
@SearchParamDefinition(name="organizationidentifier", path="Claim.organization.as(Identifier)", description="The reference to the providing organization", type="token" )
public static final String SP_ORGANIZATIONIDENTIFIER = "organizationidentifier";
@SearchParamDefinition(name="organization-reference", path="Claim.organization.as(Reference)", description="The reference to the providing organization", type="reference", target={Organization.class } )
public static final String SP_ORGANIZATION_REFERENCE = "organization-reference";
/**
* <b>Fluent Client</b> search parameter constant for <b>organizationidentifier</b>
* <b>Fluent Client</b> search parameter constant for <b>organization-reference</b>
* <p>
* Description: <b>The reference to the providing organization</b><br>
* Type: <b>token</b><br>
* Path: <b>Claim.organizationIdentifier</b><br>
* Type: <b>reference</b><br>
* Path: <b>Claim.organizationReference</b><br>
* </p>
*/
public static final ca.uhn.fhir.rest.gclient.TokenClientParam ORGANIZATIONIDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_ORGANIZATIONIDENTIFIER);
public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam ORGANIZATION_REFERENCE = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_ORGANIZATION_REFERENCE);
/**
* Constant for fluent queries to be used to add include statements. Specifies
* the path value of "<b>Claim:organization-reference</b>".
*/
public static final ca.uhn.fhir.model.api.Include INCLUDE_ORGANIZATION_REFERENCE = new ca.uhn.fhir.model.api.Include("Claim:organization-reference").toLocked();
/**
* Search parameter: <b>use</b>
@ -8864,6 +8876,32 @@ public class Claim extends DomainResource {
*/
public static final ca.uhn.fhir.rest.gclient.TokenClientParam USE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_USE);
/**
* Search parameter: <b>patient-reference</b>
* <p>
* Description: <b>Patient receiving the services</b><br>
* Type: <b>reference</b><br>
* Path: <b>Claim.patientReference</b><br>
* </p>
*/
@SearchParamDefinition(name="patient-reference", path="Claim.patient.as(Reference)", description="Patient receiving the services", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Patient") }, target={Patient.class } )
public static final String SP_PATIENT_REFERENCE = "patient-reference";
/**
* <b>Fluent Client</b> search parameter constant for <b>patient-reference</b>
* <p>
* Description: <b>Patient receiving the services</b><br>
* Type: <b>reference</b><br>
* Path: <b>Claim.patientReference</b><br>
* </p>
*/
public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PATIENT_REFERENCE = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_PATIENT_REFERENCE);
/**
* Constant for fluent queries to be used to add include statements. Specifies
* the path value of "<b>Claim:patient-reference</b>".
*/
public static final ca.uhn.fhir.model.api.Include INCLUDE_PATIENT_REFERENCE = new ca.uhn.fhir.model.api.Include("Claim:patient-reference").toLocked();
/**
* Search parameter: <b>created</b>
* <p>
@ -8885,82 +8923,24 @@ public class Claim extends DomainResource {
public static final ca.uhn.fhir.rest.gclient.DateClientParam CREATED = new ca.uhn.fhir.rest.gclient.DateClientParam(SP_CREATED);
/**
* Search parameter: <b>patientreference</b>
* <p>
* Description: <b>Patient receiving the services</b><br>
* Type: <b>reference</b><br>
* Path: <b>Claim.patientReference</b><br>
* </p>
*/
@SearchParamDefinition(name="patientreference", path="Claim.patient.as(Reference)", description="Patient receiving the services", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Patient") }, target={Patient.class } )
public static final String SP_PATIENTREFERENCE = "patientreference";
/**
* <b>Fluent Client</b> search parameter constant for <b>patientreference</b>
* <p>
* Description: <b>Patient receiving the services</b><br>
* Type: <b>reference</b><br>
* Path: <b>Claim.patientReference</b><br>
* </p>
*/
public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PATIENTREFERENCE = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_PATIENTREFERENCE);
/**
* Constant for fluent queries to be used to add include statements. Specifies
* the path value of "<b>Claim:patientreference</b>".
*/
public static final ca.uhn.fhir.model.api.Include INCLUDE_PATIENTREFERENCE = new ca.uhn.fhir.model.api.Include("Claim:patientreference").toLocked();
/**
* Search parameter: <b>providerreference</b>
* Search parameter: <b>provider-identifier</b>
* <p>
* Description: <b>Provider responsible for the Claim</b><br>
* Type: <b>reference</b><br>
* Path: <b>Claim.providerReference</b><br>
* Type: <b>token</b><br>
* Path: <b>Claim.providerIdentifier</b><br>
* </p>
*/
@SearchParamDefinition(name="providerreference", path="Claim.provider.as(Reference)", description="Provider responsible for the Claim", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Practitioner") }, target={Practitioner.class } )
public static final String SP_PROVIDERREFERENCE = "providerreference";
@SearchParamDefinition(name="provider-identifier", path="Claim.provider.as(Identifier)", description="Provider responsible for the Claim", type="token", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Practitioner") } )
public static final String SP_PROVIDER_IDENTIFIER = "provider-identifier";
/**
* <b>Fluent Client</b> search parameter constant for <b>providerreference</b>
* <b>Fluent Client</b> search parameter constant for <b>provider-identifier</b>
* <p>
* Description: <b>Provider responsible for the Claim</b><br>
* Type: <b>reference</b><br>
* Path: <b>Claim.providerReference</b><br>
* Type: <b>token</b><br>
* Path: <b>Claim.providerIdentifier</b><br>
* </p>
*/
public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PROVIDERREFERENCE = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_PROVIDERREFERENCE);
/**
* Constant for fluent queries to be used to add include statements. Specifies
* the path value of "<b>Claim:providerreference</b>".
*/
public static final ca.uhn.fhir.model.api.Include INCLUDE_PROVIDERREFERENCE = new ca.uhn.fhir.model.api.Include("Claim:providerreference").toLocked();
/**
* Search parameter: <b>organizationreference</b>
* <p>
* Description: <b>The reference to the providing organization</b><br>
* Type: <b>reference</b><br>
* Path: <b>Claim.organizationReference</b><br>
* </p>
*/
@SearchParamDefinition(name="organizationreference", path="Claim.organization.as(Reference)", description="The reference to the providing organization", type="reference", target={Organization.class } )
public static final String SP_ORGANIZATIONREFERENCE = "organizationreference";
/**
* <b>Fluent Client</b> search parameter constant for <b>organizationreference</b>
* <p>
* Description: <b>The reference to the providing organization</b><br>
* Type: <b>reference</b><br>
* Path: <b>Claim.organizationReference</b><br>
* </p>
*/
public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam ORGANIZATIONREFERENCE = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_ORGANIZATIONREFERENCE);
/**
* Constant for fluent queries to be used to add include statements. Specifies
* the path value of "<b>Claim:organizationreference</b>".
*/
public static final ca.uhn.fhir.model.api.Include INCLUDE_ORGANIZATIONREFERENCE = new ca.uhn.fhir.model.api.Include("Claim:organizationreference").toLocked();
public static final ca.uhn.fhir.rest.gclient.TokenClientParam PROVIDER_IDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_PROVIDER_IDENTIFIER);
/**
* Search parameter: <b>priority</b>
@ -8983,116 +8963,136 @@ public class Claim extends DomainResource {
public static final ca.uhn.fhir.rest.gclient.TokenClientParam PRIORITY = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_PRIORITY);
/**
* Search parameter: <b>provideridentifier</b>
* <p>
* Description: <b>Provider responsible for the Claim</b><br>
* Type: <b>token</b><br>
* Path: <b>Claim.providerIdentifier</b><br>
* </p>
*/
@SearchParamDefinition(name="provideridentifier", path="Claim.provider.as(Identifier)", description="Provider responsible for the Claim", type="token", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Practitioner") } )
public static final String SP_PROVIDERIDENTIFIER = "provideridentifier";
/**
* <b>Fluent Client</b> search parameter constant for <b>provideridentifier</b>
* <p>
* Description: <b>Provider responsible for the Claim</b><br>
* Type: <b>token</b><br>
* Path: <b>Claim.providerIdentifier</b><br>
* </p>
*/
public static final ca.uhn.fhir.rest.gclient.TokenClientParam PROVIDERIDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_PROVIDERIDENTIFIER);
/**
* Search parameter: <b>facilityreference</b>
* Search parameter: <b>facility-reference</b>
* <p>
* Description: <b>Facility responsible for the goods and services</b><br>
* Type: <b>reference</b><br>
* Path: <b>Claim.facilityReference</b><br>
* </p>
*/
@SearchParamDefinition(name="facilityreference", path="Claim.facility.as(Reference)", description="Facility responsible for the goods and services", type="reference", target={Location.class } )
public static final String SP_FACILITYREFERENCE = "facilityreference";
@SearchParamDefinition(name="facility-reference", path="Claim.facility.as(Reference)", description="Facility responsible for the goods and services", type="reference", target={Location.class } )
public static final String SP_FACILITY_REFERENCE = "facility-reference";
/**
* <b>Fluent Client</b> search parameter constant for <b>facilityreference</b>
* <b>Fluent Client</b> search parameter constant for <b>facility-reference</b>
* <p>
* Description: <b>Facility responsible for the goods and services</b><br>
* Type: <b>reference</b><br>
* Path: <b>Claim.facilityReference</b><br>
* </p>
*/
public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam FACILITYREFERENCE = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_FACILITYREFERENCE);
public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam FACILITY_REFERENCE = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_FACILITY_REFERENCE);
/**
* Constant for fluent queries to be used to add include statements. Specifies
* the path value of "<b>Claim:facilityreference</b>".
* the path value of "<b>Claim:facility-reference</b>".
*/
public static final ca.uhn.fhir.model.api.Include INCLUDE_FACILITYREFERENCE = new ca.uhn.fhir.model.api.Include("Claim:facilityreference").toLocked();
public static final ca.uhn.fhir.model.api.Include INCLUDE_FACILITY_REFERENCE = new ca.uhn.fhir.model.api.Include("Claim:facility-reference").toLocked();
/**
* Search parameter: <b>insurerreference</b>
* <p>
* Description: <b>The target payor/insurer for the Claim</b><br>
* Type: <b>reference</b><br>
* Path: <b>Claim.insurerReference</b><br>
* </p>
*/
@SearchParamDefinition(name="insurerreference", path="Claim.insurer.as(Reference)", description="The target payor/insurer for the Claim", type="reference", target={Organization.class } )
public static final String SP_INSURERREFERENCE = "insurerreference";
/**
* <b>Fluent Client</b> search parameter constant for <b>insurerreference</b>
* <p>
* Description: <b>The target payor/insurer for the Claim</b><br>
* Type: <b>reference</b><br>
* Path: <b>Claim.insurerReference</b><br>
* </p>
*/
public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam INSURERREFERENCE = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_INSURERREFERENCE);
/**
* Constant for fluent queries to be used to add include statements. Specifies
* the path value of "<b>Claim:insurerreference</b>".
*/
public static final ca.uhn.fhir.model.api.Include INCLUDE_INSURERREFERENCE = new ca.uhn.fhir.model.api.Include("Claim:insurerreference").toLocked();
/**
* Search parameter: <b>insureridentifier</b>
* Search parameter: <b>insurer-identifier</b>
* <p>
* Description: <b>The target payor/insurer for the Claim</b><br>
* Type: <b>token</b><br>
* Path: <b>Claim.insurerIdentifier</b><br>
* </p>
*/
@SearchParamDefinition(name="insureridentifier", path="Claim.insurer.as(Identifier)", description="The target payor/insurer for the Claim", type="token" )
public static final String SP_INSURERIDENTIFIER = "insureridentifier";
@SearchParamDefinition(name="insurer-identifier", path="Claim.insurer.as(Identifier)", description="The target payor/insurer for the Claim", type="token" )
public static final String SP_INSURER_IDENTIFIER = "insurer-identifier";
/**
* <b>Fluent Client</b> search parameter constant for <b>insureridentifier</b>
* <b>Fluent Client</b> search parameter constant for <b>insurer-identifier</b>
* <p>
* Description: <b>The target payor/insurer for the Claim</b><br>
* Type: <b>token</b><br>
* Path: <b>Claim.insurerIdentifier</b><br>
* </p>
*/
public static final ca.uhn.fhir.rest.gclient.TokenClientParam INSURERIDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_INSURERIDENTIFIER);
public static final ca.uhn.fhir.rest.gclient.TokenClientParam INSURER_IDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_INSURER_IDENTIFIER);
/**
* Search parameter: <b>facilityidentifier</b>
* Search parameter: <b>organization-identifier</b>
* <p>
* Description: <b>Facility responsible for the goods and services</b><br>
* Description: <b>The reference to the providing organization</b><br>
* Type: <b>token</b><br>
* Path: <b>Claim.facilityIdentifier</b><br>
* Path: <b>Claim.organizationIdentifier</b><br>
* </p>
*/
@SearchParamDefinition(name="facilityidentifier", path="Claim.facility.as(Identifier)", description="Facility responsible for the goods and services", type="token" )
public static final String SP_FACILITYIDENTIFIER = "facilityidentifier";
@SearchParamDefinition(name="organization-identifier", path="Claim.organization.as(Identifier)", description="The reference to the providing organization", type="token" )
public static final String SP_ORGANIZATION_IDENTIFIER = "organization-identifier";
/**
* <b>Fluent Client</b> search parameter constant for <b>facilityidentifier</b>
* <b>Fluent Client</b> search parameter constant for <b>organization-identifier</b>
* <p>
* Description: <b>The reference to the providing organization</b><br>
* Type: <b>token</b><br>
* Path: <b>Claim.organizationIdentifier</b><br>
* </p>
*/
public static final ca.uhn.fhir.rest.gclient.TokenClientParam ORGANIZATION_IDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_ORGANIZATION_IDENTIFIER);
/**
* Search parameter: <b>facility-identifier</b>
* <p>
* Description: <b>Facility responsible for the goods and services</b><br>
* Type: <b>token</b><br>
* Path: <b>Claim.facilityIdentifier</b><br>
* </p>
*/
public static final ca.uhn.fhir.rest.gclient.TokenClientParam FACILITYIDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_FACILITYIDENTIFIER);
@SearchParamDefinition(name="facility-identifier", path="Claim.facility.as(Identifier)", description="Facility responsible for the goods and services", type="token" )
public static final String SP_FACILITY_IDENTIFIER = "facility-identifier";
/**
* <b>Fluent Client</b> search parameter constant for <b>facility-identifier</b>
* <p>
* Description: <b>Facility responsible for the goods and services</b><br>
* Type: <b>token</b><br>
* Path: <b>Claim.facilityIdentifier</b><br>
* </p>
*/
public static final ca.uhn.fhir.rest.gclient.TokenClientParam FACILITY_IDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_FACILITY_IDENTIFIER);
/**
* Search parameter: <b>provider-reference</b>
* <p>
* Description: <b>Provider responsible for the Claim</b><br>
* Type: <b>reference</b><br>
* Path: <b>Claim.providerReference</b><br>
* </p>
*/
@SearchParamDefinition(name="provider-reference", path="Claim.provider.as(Reference)", description="Provider responsible for the Claim", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Practitioner") }, target={Practitioner.class } )
public static final String SP_PROVIDER_REFERENCE = "provider-reference";
/**
* <b>Fluent Client</b> search parameter constant for <b>provider-reference</b>
* <p>
* Description: <b>Provider responsible for the Claim</b><br>
* Type: <b>reference</b><br>
* Path: <b>Claim.providerReference</b><br>
* </p>
*/
public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PROVIDER_REFERENCE = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_PROVIDER_REFERENCE);
/**
* Constant for fluent queries to be used to add include statements. Specifies
* the path value of "<b>Claim:provider-reference</b>".
*/
public static final ca.uhn.fhir.model.api.Include INCLUDE_PROVIDER_REFERENCE = new ca.uhn.fhir.model.api.Include("Claim:provider-reference").toLocked();
/**
* Search parameter: <b>patient-identifier</b>
* <p>
* Description: <b>Patient receiving the services</b><br>
* Type: <b>token</b><br>
* Path: <b>Claim.patientIdentifier</b><br>
* </p>
*/
@SearchParamDefinition(name="patient-identifier", path="Claim.patient.as(Identifier)", description="Patient receiving the services", type="token", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Patient") } )
public static final String SP_PATIENT_IDENTIFIER = "patient-identifier";
/**
* <b>Fluent Client</b> search parameter constant for <b>patient-identifier</b>
* <p>
* Description: <b>Patient receiving the services</b><br>
* Type: <b>token</b><br>
* Path: <b>Claim.patientIdentifier</b><br>
* </p>
*/
public static final ca.uhn.fhir.rest.gclient.TokenClientParam PATIENT_IDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_PATIENT_IDENTIFIER);
}

View File

@ -29,7 +29,7 @@ package org.hl7.fhir.dstu3.model;
*/
// Generated on Tue, Jul 12, 2016 12:04-0400 for FHIR v1.5.0
// Generated on Wed, Aug 3, 2016 09:39-0400 for FHIR v1.5.0
import java.util.*;
@ -3535,6 +3535,7 @@ public class ClaimResponse extends DomainResource {
*/
@Child(name = "language", type = {Coding.class}, order=4, min=0, max=1, modifier=false, summary=false)
@Description(shortDefinition="Language", formalDefinition="The ISO-639-1 alpha 2 code in lower case for the language, optionally followed by a hyphen and the ISO-3166-1 alpha 2 code for the region in upper case; e.g. \"en\" for English, or \"en-US\" for American English versus \"en-EN\" for England English." )
@ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/languages")
protected Coding language;
private static final long serialVersionUID = -1578585461L;
@ -5849,6 +5850,32 @@ public class ClaimResponse extends DomainResource {
*/
public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_IDENTIFIER);
/**
* Search parameter: <b>request-reference</b>
* <p>
* Description: <b>The claim reference</b><br>
* Type: <b>reference</b><br>
* Path: <b>ClaimResponse.requestReference</b><br>
* </p>
*/
@SearchParamDefinition(name="request-reference", path="ClaimResponse.request.as(Reference)", description="The claim reference", type="reference", target={Claim.class } )
public static final String SP_REQUEST_REFERENCE = "request-reference";
/**
* <b>Fluent Client</b> search parameter constant for <b>request-reference</b>
* <p>
* Description: <b>The claim reference</b><br>
* Type: <b>reference</b><br>
* Path: <b>ClaimResponse.requestReference</b><br>
* </p>
*/
public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam REQUEST_REFERENCE = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_REQUEST_REFERENCE);
/**
* Constant for fluent queries to be used to add include statements. Specifies
* the path value of "<b>ClaimResponse:request-reference</b>".
*/
public static final ca.uhn.fhir.model.api.Include INCLUDE_REQUEST_REFERENCE = new ca.uhn.fhir.model.api.Include("ClaimResponse:request-reference").toLocked();
/**
* Search parameter: <b>disposition</b>
* <p>
@ -5890,24 +5917,30 @@ public class ClaimResponse extends DomainResource {
public static final ca.uhn.fhir.rest.gclient.DateClientParam PAYMENTDATE = new ca.uhn.fhir.rest.gclient.DateClientParam(SP_PAYMENTDATE);
/**
* Search parameter: <b>organizationidentifier</b>
* Search parameter: <b>organization-reference</b>
* <p>
* Description: <b>The organization who generated this resource</b><br>
* Type: <b>token</b><br>
* Path: <b>ClaimResponse.organizationIdentifier</b><br>
* Type: <b>reference</b><br>
* Path: <b>ClaimResponse.organizationReference</b><br>
* </p>
*/
@SearchParamDefinition(name="organizationidentifier", path="ClaimResponse.organization.as(Identifier)", description="The organization who generated this resource", type="token" )
public static final String SP_ORGANIZATIONIDENTIFIER = "organizationidentifier";
@SearchParamDefinition(name="organization-reference", path="ClaimResponse.organization.as(Reference)", description="The organization who generated this resource", type="reference", target={Organization.class } )
public static final String SP_ORGANIZATION_REFERENCE = "organization-reference";
/**
* <b>Fluent Client</b> search parameter constant for <b>organizationidentifier</b>
* <b>Fluent Client</b> search parameter constant for <b>organization-reference</b>
* <p>
* Description: <b>The organization who generated this resource</b><br>
* Type: <b>token</b><br>
* Path: <b>ClaimResponse.organizationIdentifier</b><br>
* Type: <b>reference</b><br>
* Path: <b>ClaimResponse.organizationReference</b><br>
* </p>
*/
public static final ca.uhn.fhir.rest.gclient.TokenClientParam ORGANIZATIONIDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_ORGANIZATIONIDENTIFIER);
public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam ORGANIZATION_REFERENCE = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_ORGANIZATION_REFERENCE);
/**
* Constant for fluent queries to be used to add include statements. Specifies
* the path value of "<b>ClaimResponse:organization-reference</b>".
*/
public static final ca.uhn.fhir.model.api.Include INCLUDE_ORGANIZATION_REFERENCE = new ca.uhn.fhir.model.api.Include("ClaimResponse:organization-reference").toLocked();
/**
* Search parameter: <b>created</b>
@ -5930,76 +5963,44 @@ public class ClaimResponse extends DomainResource {
public static final ca.uhn.fhir.rest.gclient.DateClientParam CREATED = new ca.uhn.fhir.rest.gclient.DateClientParam(SP_CREATED);
/**
* Search parameter: <b>requestidentifier</b>
* Search parameter: <b>organization-identifier</b>
* <p>
* Description: <b>The organization who generated this resource</b><br>
* Type: <b>token</b><br>
* Path: <b>ClaimResponse.organizationIdentifier</b><br>
* </p>
*/
@SearchParamDefinition(name="organization-identifier", path="ClaimResponse.organization.as(Identifier)", description="The organization who generated this resource", type="token" )
public static final String SP_ORGANIZATION_IDENTIFIER = "organization-identifier";
/**
* <b>Fluent Client</b> search parameter constant for <b>organization-identifier</b>
* <p>
* Description: <b>The organization who generated this resource</b><br>
* Type: <b>token</b><br>
* Path: <b>ClaimResponse.organizationIdentifier</b><br>
* </p>
*/
public static final ca.uhn.fhir.rest.gclient.TokenClientParam ORGANIZATION_IDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_ORGANIZATION_IDENTIFIER);
/**
* Search parameter: <b>request-identifier</b>
* <p>
* Description: <b>The claim reference</b><br>
* Type: <b>token</b><br>
* Path: <b>ClaimResponse.requestIdentifier</b><br>
* </p>
*/
@SearchParamDefinition(name="requestidentifier", path="ClaimResponse.request.as(Identifier)", description="The claim reference", type="token" )
public static final String SP_REQUESTIDENTIFIER = "requestidentifier";
@SearchParamDefinition(name="request-identifier", path="ClaimResponse.request.as(Identifier)", description="The claim reference", type="token" )
public static final String SP_REQUEST_IDENTIFIER = "request-identifier";
/**
* <b>Fluent Client</b> search parameter constant for <b>requestidentifier</b>
* <b>Fluent Client</b> search parameter constant for <b>request-identifier</b>
* <p>
* Description: <b>The claim reference</b><br>
* Type: <b>token</b><br>
* Path: <b>ClaimResponse.requestIdentifier</b><br>
* </p>
*/
public static final ca.uhn.fhir.rest.gclient.TokenClientParam REQUESTIDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_REQUESTIDENTIFIER);
/**
* Search parameter: <b>organizationreference</b>
* <p>
* Description: <b>The organization who generated this resource</b><br>
* Type: <b>reference</b><br>
* Path: <b>ClaimResponse.organizationReference</b><br>
* </p>
*/
@SearchParamDefinition(name="organizationreference", path="ClaimResponse.organization.as(Reference)", description="The organization who generated this resource", type="reference", target={Organization.class } )
public static final String SP_ORGANIZATIONREFERENCE = "organizationreference";
/**
* <b>Fluent Client</b> search parameter constant for <b>organizationreference</b>
* <p>
* Description: <b>The organization who generated this resource</b><br>
* Type: <b>reference</b><br>
* Path: <b>ClaimResponse.organizationReference</b><br>
* </p>
*/
public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam ORGANIZATIONREFERENCE = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_ORGANIZATIONREFERENCE);
/**
* Constant for fluent queries to be used to add include statements. Specifies
* the path value of "<b>ClaimResponse:organizationreference</b>".
*/
public static final ca.uhn.fhir.model.api.Include INCLUDE_ORGANIZATIONREFERENCE = new ca.uhn.fhir.model.api.Include("ClaimResponse:organizationreference").toLocked();
/**
* Search parameter: <b>requestreference</b>
* <p>
* Description: <b>The claim reference</b><br>
* Type: <b>reference</b><br>
* Path: <b>ClaimResponse.requestReference</b><br>
* </p>
*/
@SearchParamDefinition(name="requestreference", path="ClaimResponse.request.as(Reference)", description="The claim reference", type="reference", target={Claim.class } )
public static final String SP_REQUESTREFERENCE = "requestreference";
/**
* <b>Fluent Client</b> search parameter constant for <b>requestreference</b>
* <p>
* Description: <b>The claim reference</b><br>
* Type: <b>reference</b><br>
* Path: <b>ClaimResponse.requestReference</b><br>
* </p>
*/
public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam REQUESTREFERENCE = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_REQUESTREFERENCE);
/**
* Constant for fluent queries to be used to add include statements. Specifies
* the path value of "<b>ClaimResponse:requestreference</b>".
*/
public static final ca.uhn.fhir.model.api.Include INCLUDE_REQUESTREFERENCE = new ca.uhn.fhir.model.api.Include("ClaimResponse:requestreference").toLocked();
public static final ca.uhn.fhir.rest.gclient.TokenClientParam REQUEST_IDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_REQUEST_IDENTIFIER);
/**
* Search parameter: <b>outcome</b>

View File

@ -29,7 +29,7 @@ package org.hl7.fhir.dstu3.model;
*/
// Generated on Tue, Jul 12, 2016 12:04-0400 for FHIR v1.5.0
// Generated on Wed, Aug 3, 2016 09:39-0400 for FHIR v1.5.0
import java.util.*;
@ -47,9 +47,131 @@ import org.hl7.fhir.dstu3.exceptions.FHIRException;
* A code system resource specifies a set of codes drawn from one or more code systems.
*/
@ResourceDef(name="CodeSystem", profile="http://hl7.org/fhir/Profile/CodeSystem")
@ChildOrder(names={"url", "identifier", "version", "name", "status", "experimental", "publisher", "contact", "date", "description", "useContext", "requirements", "copyright", "caseSensitive", "valueSet", "compositional", "versionNeeded", "content", "count", "filter", "property", "concept"})
@ChildOrder(names={"url", "identifier", "version", "name", "status", "experimental", "publisher", "contact", "date", "description", "useContext", "requirements", "copyright", "caseSensitive", "valueSet", "hierarchyMeaning", "compositional", "versionNeeded", "content", "count", "filter", "property", "concept"})
public class CodeSystem extends BaseConformance {
public enum CodeSystemHierarchyMeaning {
/**
* No particular relationship between the concepts can be assumed, except what can be determined by inspection of the definitions of the elements (possible reasons to use this: importing from a source where this is not defined, or where various parts of the heirarchy have different meanings)
*/
GROUPEDBY,
/**
* A hierarchy where the child concepts are "a kind of" the parent (typically an IS-A relationship.)
*/
SUBSUMES,
/**
* Child elements list the individual parts of a composite whole (e.g. bodysite)
*/
PARTOF,
/**
* Child concepts in the hierarchy may have only one parent and there is a presumption that the code system is a "closed world" meaning all things must be in the hierarchy. This results in concepts such as "not otherwise clasified."
*/
CLASSIFIEDWITH,
/**
* added to help the parsers with the generic types
*/
NULL;
public static CodeSystemHierarchyMeaning fromCode(String codeString) throws FHIRException {
if (codeString == null || "".equals(codeString))
return null;
if ("grouped-by".equals(codeString))
return GROUPEDBY;
if ("subsumes".equals(codeString))
return SUBSUMES;
if ("part-of".equals(codeString))
return PARTOF;
if ("classified-with".equals(codeString))
return CLASSIFIEDWITH;
if (Configuration.isAcceptInvalidEnums())
return null;
else
throw new FHIRException("Unknown CodeSystemHierarchyMeaning code '"+codeString+"'");
}
public String toCode() {
switch (this) {
case GROUPEDBY: return "grouped-by";
case SUBSUMES: return "subsumes";
case PARTOF: return "part-of";
case CLASSIFIEDWITH: return "classified-with";
default: return "?";
}
}
public String getSystem() {
switch (this) {
case GROUPEDBY: return "http://hl7.org/fhir/codesystem-hierarchy-meaning";
case SUBSUMES: return "http://hl7.org/fhir/codesystem-hierarchy-meaning";
case PARTOF: return "http://hl7.org/fhir/codesystem-hierarchy-meaning";
case CLASSIFIEDWITH: return "http://hl7.org/fhir/codesystem-hierarchy-meaning";
default: return "?";
}
}
public String getDefinition() {
switch (this) {
case GROUPEDBY: return "No particular relationship between the concepts can be assumed, except what can be determined by inspection of the definitions of the elements (possible reasons to use this: importing from a source where this is not defined, or where various parts of the heirarchy have different meanings)";
case SUBSUMES: return "A hierarchy where the child concepts are \"a kind of\" the parent (typically an IS-A relationship.)";
case PARTOF: return "Child elements list the individual parts of a composite whole (e.g. bodysite)";
case CLASSIFIEDWITH: return "Child concepts in the hierarchy may have only one parent and there is a presumption that the code system is a \"closed world\" meaning all things must be in the hierarchy. This results in concepts such as \"not otherwise clasified.\"";
default: return "?";
}
}
public String getDisplay() {
switch (this) {
case GROUPEDBY: return "Grouped By";
case SUBSUMES: return "Subsumes";
case PARTOF: return "Part Of";
case CLASSIFIEDWITH: return "Classified With";
default: return "?";
}
}
}
public static class CodeSystemHierarchyMeaningEnumFactory implements EnumFactory<CodeSystemHierarchyMeaning> {
public CodeSystemHierarchyMeaning fromCode(String codeString) throws IllegalArgumentException {
if (codeString == null || "".equals(codeString))
if (codeString == null || "".equals(codeString))
return null;
if ("grouped-by".equals(codeString))
return CodeSystemHierarchyMeaning.GROUPEDBY;
if ("subsumes".equals(codeString))
return CodeSystemHierarchyMeaning.SUBSUMES;
if ("part-of".equals(codeString))
return CodeSystemHierarchyMeaning.PARTOF;
if ("classified-with".equals(codeString))
return CodeSystemHierarchyMeaning.CLASSIFIEDWITH;
throw new IllegalArgumentException("Unknown CodeSystemHierarchyMeaning code '"+codeString+"'");
}
public Enumeration<CodeSystemHierarchyMeaning> fromType(Base code) throws FHIRException {
if (code == null || code.isEmpty())
return null;
String codeString = ((PrimitiveType) code).asStringValue();
if (codeString == null || "".equals(codeString))
return null;
if ("grouped-by".equals(codeString))
return new Enumeration<CodeSystemHierarchyMeaning>(this, CodeSystemHierarchyMeaning.GROUPEDBY);
if ("subsumes".equals(codeString))
return new Enumeration<CodeSystemHierarchyMeaning>(this, CodeSystemHierarchyMeaning.SUBSUMES);
if ("part-of".equals(codeString))
return new Enumeration<CodeSystemHierarchyMeaning>(this, CodeSystemHierarchyMeaning.PARTOF);
if ("classified-with".equals(codeString))
return new Enumeration<CodeSystemHierarchyMeaning>(this, CodeSystemHierarchyMeaning.CLASSIFIEDWITH);
throw new FHIRException("Unknown CodeSystemHierarchyMeaning code '"+codeString+"'");
}
public String toCode(CodeSystemHierarchyMeaning code) {
if (code == CodeSystemHierarchyMeaning.GROUPEDBY)
return "grouped-by";
if (code == CodeSystemHierarchyMeaning.SUBSUMES)
return "subsumes";
if (code == CodeSystemHierarchyMeaning.PARTOF)
return "part-of";
if (code == CodeSystemHierarchyMeaning.CLASSIFIEDWITH)
return "classified-with";
return "?";
}
public String toSystem(CodeSystemHierarchyMeaning code) {
return code.getSystem();
}
}
public enum CodeSystemContentMode {
/**
* None of the concepts defined by the code system are included in the code system resource
@ -172,6 +294,176 @@ public class CodeSystem extends BaseConformance {
}
}
public enum FilterOperator {
/**
* The specified property of the code equals the provided value.
*/
EQUAL,
/**
* Includes all concept ids that have a transitive is-a relationship with the concept Id provided as the value, including the provided concept itself (i.e. include child codes)
*/
ISA,
/**
* The specified property of the code does not have an is-a relationship with the provided value.
*/
ISNOTA,
/**
* The specified property of the code matches the regex specified in the provided value.
*/
REGEX,
/**
* The specified property of the code is in the set of codes or concepts specified in the provided value (comma separated list).
*/
IN,
/**
* The specified property of the code is not in the set of codes or concepts specified in the provided value (comma separated list).
*/
NOTIN,
/**
* Includes all concept ids that have a transitive is-a relationship from the concept Id provided as the value, including the provided concept itself (e.g. include parent codes)
*/
GENERALIZES,
/**
* added to help the parsers with the generic types
*/
NULL;
public static FilterOperator fromCode(String codeString) throws FHIRException {
if (codeString == null || "".equals(codeString))
return null;
if ("=".equals(codeString))
return EQUAL;
if ("is-a".equals(codeString))
return ISA;
if ("is-not-a".equals(codeString))
return ISNOTA;
if ("regex".equals(codeString))
return REGEX;
if ("in".equals(codeString))
return IN;
if ("not-in".equals(codeString))
return NOTIN;
if ("generalizes".equals(codeString))
return GENERALIZES;
if (Configuration.isAcceptInvalidEnums())
return null;
else
throw new FHIRException("Unknown FilterOperator code '"+codeString+"'");
}
public String toCode() {
switch (this) {
case EQUAL: return "=";
case ISA: return "is-a";
case ISNOTA: return "is-not-a";
case REGEX: return "regex";
case IN: return "in";
case NOTIN: return "not-in";
case GENERALIZES: return "generalizes";
default: return "?";
}
}
public String getSystem() {
switch (this) {
case EQUAL: return "http://hl7.org/fhir/filter-operator";
case ISA: return "http://hl7.org/fhir/filter-operator";
case ISNOTA: return "http://hl7.org/fhir/filter-operator";
case REGEX: return "http://hl7.org/fhir/filter-operator";
case IN: return "http://hl7.org/fhir/filter-operator";
case NOTIN: return "http://hl7.org/fhir/filter-operator";
case GENERALIZES: return "http://hl7.org/fhir/filter-operator";
default: return "?";
}
}
public String getDefinition() {
switch (this) {
case EQUAL: return "The specified property of the code equals the provided value.";
case ISA: return "Includes all concept ids that have a transitive is-a relationship with the concept Id provided as the value, including the provided concept itself (i.e. include child codes)";
case ISNOTA: return "The specified property of the code does not have an is-a relationship with the provided value.";
case REGEX: return "The specified property of the code matches the regex specified in the provided value.";
case IN: return "The specified property of the code is in the set of codes or concepts specified in the provided value (comma separated list).";
case NOTIN: return "The specified property of the code is not in the set of codes or concepts specified in the provided value (comma separated list).";
case GENERALIZES: return "Includes all concept ids that have a transitive is-a relationship from the concept Id provided as the value, including the provided concept itself (e.g. include parent codes)";
default: return "?";
}
}
public String getDisplay() {
switch (this) {
case EQUAL: return "Equals";
case ISA: return "Is A (by subsumption)";
case ISNOTA: return "Not (Is A) (by subsumption)";
case REGEX: return "Regular Expression";
case IN: return "In Set";
case NOTIN: return "Not in Set";
case GENERALIZES: return "Generalizes (by Subsumption)";
default: return "?";
}
}
}
public static class FilterOperatorEnumFactory implements EnumFactory<FilterOperator> {
public FilterOperator fromCode(String codeString) throws IllegalArgumentException {
if (codeString == null || "".equals(codeString))
if (codeString == null || "".equals(codeString))
return null;
if ("=".equals(codeString))
return FilterOperator.EQUAL;
if ("is-a".equals(codeString))
return FilterOperator.ISA;
if ("is-not-a".equals(codeString))
return FilterOperator.ISNOTA;
if ("regex".equals(codeString))
return FilterOperator.REGEX;
if ("in".equals(codeString))
return FilterOperator.IN;
if ("not-in".equals(codeString))
return FilterOperator.NOTIN;
if ("generalizes".equals(codeString))
return FilterOperator.GENERALIZES;
throw new IllegalArgumentException("Unknown FilterOperator code '"+codeString+"'");
}
public Enumeration<FilterOperator> fromType(Base code) throws FHIRException {
if (code == null || code.isEmpty())
return null;
String codeString = ((PrimitiveType) code).asStringValue();
if (codeString == null || "".equals(codeString))
return null;
if ("=".equals(codeString))
return new Enumeration<FilterOperator>(this, FilterOperator.EQUAL);
if ("is-a".equals(codeString))
return new Enumeration<FilterOperator>(this, FilterOperator.ISA);
if ("is-not-a".equals(codeString))
return new Enumeration<FilterOperator>(this, FilterOperator.ISNOTA);
if ("regex".equals(codeString))
return new Enumeration<FilterOperator>(this, FilterOperator.REGEX);
if ("in".equals(codeString))
return new Enumeration<FilterOperator>(this, FilterOperator.IN);
if ("not-in".equals(codeString))
return new Enumeration<FilterOperator>(this, FilterOperator.NOTIN);
if ("generalizes".equals(codeString))
return new Enumeration<FilterOperator>(this, FilterOperator.GENERALIZES);
throw new FHIRException("Unknown FilterOperator code '"+codeString+"'");
}
public String toCode(FilterOperator code) {
if (code == FilterOperator.EQUAL)
return "=";
if (code == FilterOperator.ISA)
return "is-a";
if (code == FilterOperator.ISNOTA)
return "is-not-a";
if (code == FilterOperator.REGEX)
return "regex";
if (code == FilterOperator.IN)
return "in";
if (code == FilterOperator.NOTIN)
return "not-in";
if (code == FilterOperator.GENERALIZES)
return "generalizes";
return "?";
}
public String toSystem(FilterOperator code) {
return code.getSystem();
}
}
public enum PropertyType {
/**
* The property value is a code that identifies a concept defined in the code system
@ -580,7 +872,7 @@ public class CodeSystem extends BaseConformance {
@Child(name = "operator", type = {CodeType.class}, order=3, min=1, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
@Description(shortDefinition="Operators that can be used with filter", formalDefinition="A list of operators that can be used with the filter." )
@ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/filter-operator")
protected List<CodeType> operator;
protected List<Enumeration<FilterOperator>> operator;
/**
* A description of what the value for the filter should be.
@ -589,7 +881,7 @@ public class CodeSystem extends BaseConformance {
@Description(shortDefinition="What to use for the value", formalDefinition="A description of what the value for the filter should be." )
protected StringType value;
private static final long serialVersionUID = 20272432L;
private static final long serialVersionUID = -1087409836L;
/**
* Constructor
@ -704,16 +996,16 @@ public class CodeSystem extends BaseConformance {
/**
* @return {@link #operator} (A list of operators that can be used with the filter.)
*/
public List<CodeType> getOperator() {
public List<Enumeration<FilterOperator>> getOperator() {
if (this.operator == null)
this.operator = new ArrayList<CodeType>();
this.operator = new ArrayList<Enumeration<FilterOperator>>();
return this.operator;
}
/**
* @return Returns a reference to <code>this</code> for easy method chaining
*/
public CodeSystemFilterComponent setOperator(List<CodeType> theOperator) {
public CodeSystemFilterComponent setOperator(List<Enumeration<FilterOperator>> theOperator) {
this.operator = theOperator;
return this;
}
@ -721,7 +1013,7 @@ public class CodeSystem extends BaseConformance {
public boolean hasOperator() {
if (this.operator == null)
return false;
for (CodeType item : this.operator)
for (Enumeration<FilterOperator> item : this.operator)
if (!item.isEmpty())
return true;
return false;
@ -730,10 +1022,10 @@ public class CodeSystem extends BaseConformance {
/**
* @return {@link #operator} (A list of operators that can be used with the filter.)
*/
public CodeType addOperatorElement() {//2
CodeType t = new CodeType();
public Enumeration<FilterOperator> addOperatorElement() {//2
Enumeration<FilterOperator> t = new Enumeration<FilterOperator>(new FilterOperatorEnumFactory());
if (this.operator == null)
this.operator = new ArrayList<CodeType>();
this.operator = new ArrayList<Enumeration<FilterOperator>>();
this.operator.add(t);
return t;
}
@ -741,11 +1033,11 @@ public class CodeSystem extends BaseConformance {
/**
* @param value {@link #operator} (A list of operators that can be used with the filter.)
*/
public CodeSystemFilterComponent addOperator(String value) { //1
CodeType t = new CodeType();
public CodeSystemFilterComponent addOperator(FilterOperator value) { //1
Enumeration<FilterOperator> t = new Enumeration<FilterOperator>(new FilterOperatorEnumFactory());
t.setValue(value);
if (this.operator == null)
this.operator = new ArrayList<CodeType>();
this.operator = new ArrayList<Enumeration<FilterOperator>>();
this.operator.add(t);
return this;
}
@ -753,11 +1045,11 @@ public class CodeSystem extends BaseConformance {
/**
* @param value {@link #operator} (A list of operators that can be used with the filter.)
*/
public boolean hasOperator(String value) {
public boolean hasOperator(FilterOperator value) {
if (this.operator == null)
return false;
for (CodeType v : this.operator)
if (v.equals(value)) // code
for (Enumeration<FilterOperator> v : this.operator)
if (v.getValue().equals(value)) // code
return true;
return false;
}
@ -820,7 +1112,7 @@ public class CodeSystem extends BaseConformance {
switch (hash) {
case 3059181: /*code*/ return this.code == null ? new Base[0] : new Base[] {this.code}; // CodeType
case -1724546052: /*description*/ return this.description == null ? new Base[0] : new Base[] {this.description}; // StringType
case -500553564: /*operator*/ return this.operator == null ? new Base[0] : this.operator.toArray(new Base[this.operator.size()]); // CodeType
case -500553564: /*operator*/ return this.operator == null ? new Base[0] : this.operator.toArray(new Base[this.operator.size()]); // Enumeration<FilterOperator>
case 111972721: /*value*/ return this.value == null ? new Base[0] : new Base[] {this.value}; // StringType
default: return super.getProperty(hash, name, checkValid);
}
@ -837,7 +1129,7 @@ public class CodeSystem extends BaseConformance {
this.description = castToString(value); // StringType
break;
case -500553564: // operator
this.getOperator().add(castToCode(value)); // CodeType
this.getOperator().add(new FilterOperatorEnumFactory().fromType(value)); // Enumeration<FilterOperator>
break;
case 111972721: // value
this.value = castToString(value); // StringType
@ -854,7 +1146,7 @@ public class CodeSystem extends BaseConformance {
else if (name.equals("description"))
this.description = castToString(value); // StringType
else if (name.equals("operator"))
this.getOperator().add(castToCode(value));
this.getOperator().add(new FilterOperatorEnumFactory().fromType(value));
else if (name.equals("value"))
this.value = castToString(value); // StringType
else
@ -866,7 +1158,7 @@ public class CodeSystem extends BaseConformance {
switch (hash) {
case 3059181: throw new FHIRException("Cannot make property code as it is not a complex type"); // CodeType
case -1724546052: throw new FHIRException("Cannot make property description as it is not a complex type"); // StringType
case -500553564: throw new FHIRException("Cannot make property operator as it is not a complex type"); // CodeType
case -500553564: throw new FHIRException("Cannot make property operator as it is not a complex type"); // Enumeration<FilterOperator>
case 111972721: throw new FHIRException("Cannot make property value as it is not a complex type"); // StringType
default: return super.makeProperty(hash, name);
}
@ -897,8 +1189,8 @@ public class CodeSystem extends BaseConformance {
dst.code = code == null ? null : code.copy();
dst.description = description == null ? null : description.copy();
if (operator != null) {
dst.operator = new ArrayList<CodeType>();
for (CodeType i : operator)
dst.operator = new ArrayList<Enumeration<FilterOperator>>();
for (Enumeration<FilterOperator> i : operator)
dst.operator.add(i.copy());
};
dst.value = value == null ? null : value.copy();
@ -1839,6 +2131,7 @@ public class CodeSystem extends BaseConformance {
*/
@Child(name = "language", type = {CodeType.class}, order=1, min=0, max=1, modifier=false, summary=false)
@Description(shortDefinition="Human language of the designation", formalDefinition="The language this designation is defined for." )
@ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/languages")
protected CodeType language;
/**
@ -2467,24 +2760,32 @@ public class CodeSystem extends BaseConformance {
@Description(shortDefinition="Canonical URL for value set with entire code system", formalDefinition="Canonical URL of value set that contains the entire code system." )
protected UriType valueSet;
/**
* The meaning of the heirarchy of concepts.
*/
@Child(name = "hierarchyMeaning", type = {CodeType.class}, order=9, min=0, max=1, modifier=false, summary=true)
@Description(shortDefinition="grouped-by | subsumes | part-of | classified-with", formalDefinition="The meaning of the heirarchy of concepts." )
@ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/codesystem-hierarchy-meaning")
protected Enumeration<CodeSystemHierarchyMeaning> hierarchyMeaning;
/**
* True If code system defines a post-composition grammar.
*/
@Child(name = "compositional", type = {BooleanType.class}, order=9, min=0, max=1, modifier=false, summary=true)
@Child(name = "compositional", type = {BooleanType.class}, order=10, min=0, max=1, modifier=false, summary=true)
@Description(shortDefinition="If code system defines a post-composition grammar", formalDefinition="True If code system defines a post-composition grammar." )
protected BooleanType compositional;
/**
* This flag is used to signify that the code system has not (or does not) maintain the definitions, and a version must be specified when referencing this code system.
*/
@Child(name = "versionNeeded", type = {BooleanType.class}, order=10, min=0, max=1, modifier=false, summary=true)
@Child(name = "versionNeeded", type = {BooleanType.class}, order=11, min=0, max=1, modifier=false, summary=true)
@Description(shortDefinition="If definitions are not stable", formalDefinition="This flag is used to signify that the code system has not (or does not) maintain the definitions, and a version must be specified when referencing this code system." )
protected BooleanType versionNeeded;
/**
* How much of the content of the code system - the concepts and codes it defines - are represented in this resource.
*/
@Child(name = "content", type = {CodeType.class}, order=11, min=1, max=1, modifier=false, summary=true)
@Child(name = "content", type = {CodeType.class}, order=12, min=1, max=1, modifier=false, summary=true)
@Description(shortDefinition="not-present | examplar | fragment | complete", formalDefinition="How much of the content of the code system - the concepts and codes it defines - are represented in this resource." )
@ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/codesystem-content-mode")
protected Enumeration<CodeSystemContentMode> content;
@ -2492,32 +2793,32 @@ public class CodeSystem extends BaseConformance {
/**
* The total number of concepts defined by the code system. Where the code system has a compositional grammar, the count refers to the number of base (primitive) concepts.
*/
@Child(name = "count", type = {UnsignedIntType.class}, order=12, min=0, max=1, modifier=false, summary=true)
@Child(name = "count", type = {UnsignedIntType.class}, order=13, min=0, max=1, modifier=false, summary=true)
@Description(shortDefinition="Total concepts in the code system", formalDefinition="The total number of concepts defined by the code system. Where the code system has a compositional grammar, the count refers to the number of base (primitive) concepts." )
protected UnsignedIntType count;
/**
* A filter that can be used in a value set compose statement when selecting concepts using a filter.
*/
@Child(name = "filter", type = {}, order=13, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
@Child(name = "filter", type = {}, order=14, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
@Description(shortDefinition="Filter that can be used in a value set", formalDefinition="A filter that can be used in a value set compose statement when selecting concepts using a filter." )
protected List<CodeSystemFilterComponent> filter;
/**
* A property defines an additional slot through which additional information can be provided about a concept.
*/
@Child(name = "property", type = {}, order=14, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
@Child(name = "property", type = {}, order=15, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
@Description(shortDefinition="Additional information supplied about each concept", formalDefinition="A property defines an additional slot through which additional information can be provided about a concept." )
protected List<PropertyComponent> property;
/**
* Concepts that are in the code system. The concept definitions are inherently hierarchical, but the definitions must be consulted to determine what the meaning of the hierarchical relationships are.
*/
@Child(name = "concept", type = {}, order=15, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
@Child(name = "concept", type = {}, order=16, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
@Description(shortDefinition="Concepts in the code system", formalDefinition="Concepts that are in the code system. The concept definitions are inherently hierarchical, but the definitions must be consulted to determine what the meaning of the hierarchical relationships are." )
protected List<ConceptDefinitionComponent> concept;
private static final long serialVersionUID = -611281540L;
private static final long serialVersionUID = 236208281L;
/**
* Constructor
@ -3013,6 +3314,55 @@ public class CodeSystem extends BaseConformance {
return this;
}
/**
* @return {@link #hierarchyMeaning} (The meaning of the heirarchy of concepts.). This is the underlying object with id, value and extensions. The accessor "getHierarchyMeaning" gives direct access to the value
*/
public Enumeration<CodeSystemHierarchyMeaning> getHierarchyMeaningElement() {
if (this.hierarchyMeaning == null)
if (Configuration.errorOnAutoCreate())
throw new Error("Attempt to auto-create CodeSystem.hierarchyMeaning");
else if (Configuration.doAutoCreate())
this.hierarchyMeaning = new Enumeration<CodeSystemHierarchyMeaning>(new CodeSystemHierarchyMeaningEnumFactory()); // bb
return this.hierarchyMeaning;
}
public boolean hasHierarchyMeaningElement() {
return this.hierarchyMeaning != null && !this.hierarchyMeaning.isEmpty();
}
public boolean hasHierarchyMeaning() {
return this.hierarchyMeaning != null && !this.hierarchyMeaning.isEmpty();
}
/**
* @param value {@link #hierarchyMeaning} (The meaning of the heirarchy of concepts.). This is the underlying object with id, value and extensions. The accessor "getHierarchyMeaning" gives direct access to the value
*/
public CodeSystem setHierarchyMeaningElement(Enumeration<CodeSystemHierarchyMeaning> value) {
this.hierarchyMeaning = value;
return this;
}
/**
* @return The meaning of the heirarchy of concepts.
*/
public CodeSystemHierarchyMeaning getHierarchyMeaning() {
return this.hierarchyMeaning == null ? null : this.hierarchyMeaning.getValue();
}
/**
* @param value The meaning of the heirarchy of concepts.
*/
public CodeSystem setHierarchyMeaning(CodeSystemHierarchyMeaning value) {
if (value == null)
this.hierarchyMeaning = null;
else {
if (this.hierarchyMeaning == null)
this.hierarchyMeaning = new Enumeration<CodeSystemHierarchyMeaning>(new CodeSystemHierarchyMeaningEnumFactory());
this.hierarchyMeaning.setValue(value);
}
return this;
}
/**
* @return {@link #compositional} (True If code system defines a post-composition grammar.). This is the underlying object with id, value and extensions. The accessor "getCompositional" gives direct access to the value
*/
@ -3363,6 +3713,7 @@ public class CodeSystem extends BaseConformance {
childrenList.add(new Property("copyright", "string", "A copyright statement relating to the code system and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the code system.", 0, java.lang.Integer.MAX_VALUE, copyright));
childrenList.add(new Property("caseSensitive", "boolean", "If code comparison is case sensitive when codes within this system are compared to each other.", 0, java.lang.Integer.MAX_VALUE, caseSensitive));
childrenList.add(new Property("valueSet", "uri", "Canonical URL of value set that contains the entire code system.", 0, java.lang.Integer.MAX_VALUE, valueSet));
childrenList.add(new Property("hierarchyMeaning", "code", "The meaning of the heirarchy of concepts.", 0, java.lang.Integer.MAX_VALUE, hierarchyMeaning));
childrenList.add(new Property("compositional", "boolean", "True If code system defines a post-composition grammar.", 0, java.lang.Integer.MAX_VALUE, compositional));
childrenList.add(new Property("versionNeeded", "boolean", "This flag is used to signify that the code system has not (or does not) maintain the definitions, and a version must be specified when referencing this code system.", 0, java.lang.Integer.MAX_VALUE, versionNeeded));
childrenList.add(new Property("content", "code", "How much of the content of the code system - the concepts and codes it defines - are represented in this resource.", 0, java.lang.Integer.MAX_VALUE, content));
@ -3390,6 +3741,7 @@ public class CodeSystem extends BaseConformance {
case 1522889671: /*copyright*/ return this.copyright == null ? new Base[0] : new Base[] {this.copyright}; // StringType
case -35616442: /*caseSensitive*/ return this.caseSensitive == null ? new Base[0] : new Base[] {this.caseSensitive}; // BooleanType
case -1410174671: /*valueSet*/ return this.valueSet == null ? new Base[0] : new Base[] {this.valueSet}; // UriType
case 1913078280: /*hierarchyMeaning*/ return this.hierarchyMeaning == null ? new Base[0] : new Base[] {this.hierarchyMeaning}; // Enumeration<CodeSystemHierarchyMeaning>
case 1248023381: /*compositional*/ return this.compositional == null ? new Base[0] : new Base[] {this.compositional}; // BooleanType
case 617270957: /*versionNeeded*/ return this.versionNeeded == null ? new Base[0] : new Base[] {this.versionNeeded}; // BooleanType
case 951530617: /*content*/ return this.content == null ? new Base[0] : new Base[] {this.content}; // Enumeration<CodeSystemContentMode>
@ -3450,6 +3802,9 @@ public class CodeSystem extends BaseConformance {
case -1410174671: // valueSet
this.valueSet = castToUri(value); // UriType
break;
case 1913078280: // hierarchyMeaning
this.hierarchyMeaning = new CodeSystemHierarchyMeaningEnumFactory().fromType(value); // Enumeration<CodeSystemHierarchyMeaning>
break;
case 1248023381: // compositional
this.compositional = castToBoolean(value); // BooleanType
break;
@ -3508,6 +3863,8 @@ public class CodeSystem extends BaseConformance {
this.caseSensitive = castToBoolean(value); // BooleanType
else if (name.equals("valueSet"))
this.valueSet = castToUri(value); // UriType
else if (name.equals("hierarchyMeaning"))
this.hierarchyMeaning = new CodeSystemHierarchyMeaningEnumFactory().fromType(value); // Enumeration<CodeSystemHierarchyMeaning>
else if (name.equals("compositional"))
this.compositional = castToBoolean(value); // BooleanType
else if (name.equals("versionNeeded"))
@ -3544,6 +3901,7 @@ public class CodeSystem extends BaseConformance {
case 1522889671: throw new FHIRException("Cannot make property copyright as it is not a complex type"); // StringType
case -35616442: throw new FHIRException("Cannot make property caseSensitive as it is not a complex type"); // BooleanType
case -1410174671: throw new FHIRException("Cannot make property valueSet as it is not a complex type"); // UriType
case 1913078280: throw new FHIRException("Cannot make property hierarchyMeaning as it is not a complex type"); // Enumeration<CodeSystemHierarchyMeaning>
case 1248023381: throw new FHIRException("Cannot make property compositional as it is not a complex type"); // BooleanType
case 617270957: throw new FHIRException("Cannot make property versionNeeded as it is not a complex type"); // BooleanType
case 951530617: throw new FHIRException("Cannot make property content as it is not a complex type"); // Enumeration<CodeSystemContentMode>
@ -3604,6 +3962,9 @@ public class CodeSystem extends BaseConformance {
else if (name.equals("valueSet")) {
throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.valueSet");
}
else if (name.equals("hierarchyMeaning")) {
throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.hierarchyMeaning");
}
else if (name.equals("compositional")) {
throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.compositional");
}
@ -3660,6 +4021,7 @@ public class CodeSystem extends BaseConformance {
dst.copyright = copyright == null ? null : copyright.copy();
dst.caseSensitive = caseSensitive == null ? null : caseSensitive.copy();
dst.valueSet = valueSet == null ? null : valueSet.copy();
dst.hierarchyMeaning = hierarchyMeaning == null ? null : hierarchyMeaning.copy();
dst.compositional = compositional == null ? null : compositional.copy();
dst.versionNeeded = versionNeeded == null ? null : versionNeeded.copy();
dst.content = content == null ? null : content.copy();
@ -3697,9 +4059,10 @@ public class CodeSystem extends BaseConformance {
&& compareDeep(publisher, o.publisher, true) && compareDeep(contact, o.contact, true) && compareDeep(description, o.description, true)
&& compareDeep(requirements, o.requirements, true) && compareDeep(copyright, o.copyright, true)
&& compareDeep(caseSensitive, o.caseSensitive, true) && compareDeep(valueSet, o.valueSet, true)
&& compareDeep(compositional, o.compositional, true) && compareDeep(versionNeeded, o.versionNeeded, true)
&& compareDeep(content, o.content, true) && compareDeep(count, o.count, true) && compareDeep(filter, o.filter, true)
&& compareDeep(property, o.property, true) && compareDeep(concept, o.concept, true);
&& compareDeep(hierarchyMeaning, o.hierarchyMeaning, true) && compareDeep(compositional, o.compositional, true)
&& compareDeep(versionNeeded, o.versionNeeded, true) && compareDeep(content, o.content, true) && compareDeep(count, o.count, true)
&& compareDeep(filter, o.filter, true) && compareDeep(property, o.property, true) && compareDeep(concept, o.concept, true)
;
}
@Override
@ -3712,15 +4075,15 @@ public class CodeSystem extends BaseConformance {
return compareValues(experimental, o.experimental, true) && compareValues(publisher, o.publisher, true)
&& compareValues(description, o.description, true) && compareValues(requirements, o.requirements, true)
&& compareValues(copyright, o.copyright, true) && compareValues(caseSensitive, o.caseSensitive, true)
&& compareValues(valueSet, o.valueSet, true) && compareValues(compositional, o.compositional, true)
&& compareValues(versionNeeded, o.versionNeeded, true) && compareValues(content, o.content, true) && compareValues(count, o.count, true)
;
&& compareValues(valueSet, o.valueSet, true) && compareValues(hierarchyMeaning, o.hierarchyMeaning, true)
&& compareValues(compositional, o.compositional, true) && compareValues(versionNeeded, o.versionNeeded, true)
&& compareValues(content, o.content, true) && compareValues(count, o.count, true);
}
public boolean isEmpty() {
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(identifier, experimental, publisher
, contact, description, requirements, copyright, caseSensitive, valueSet, compositional
, versionNeeded, content, count, filter, property, concept);
, contact, description, requirements, copyright, caseSensitive, valueSet, hierarchyMeaning
, compositional, versionNeeded, content, count, filter, property, concept);
}
@Override

View File

@ -29,7 +29,7 @@ package org.hl7.fhir.dstu3.model;
*/
// Generated on Tue, Jul 12, 2016 12:04-0400 for FHIR v1.5.0
// Generated on Wed, Aug 3, 2016 09:39-0400 for FHIR v1.5.0
import java.util.*;

View File

@ -29,7 +29,7 @@ package org.hl7.fhir.dstu3.model;
*/
// Generated on Tue, Jul 12, 2016 12:04-0400 for FHIR v1.5.0
// Generated on Wed, Aug 3, 2016 09:39-0400 for FHIR v1.5.0
import java.util.*;

View File

@ -29,7 +29,7 @@ package org.hl7.fhir.dstu3.model;
*/
// Generated on Tue, Jul 12, 2016 12:04-0400 for FHIR v1.5.0
// Generated on Wed, Aug 3, 2016 09:39-0400 for FHIR v1.5.0
import java.util.*;
@ -571,7 +571,7 @@ public class CommunicationRequest extends DomainResource {
*/
@Child(name = "priority", type = {CodeableConcept.class}, order=13, min=0, max=1, modifier=false, summary=true)
@Description(shortDefinition="Message urgency", formalDefinition="Characterizes how quickly the proposed act must be initiated. Includes concepts such as stat, urgent, routine." )
@ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/diagnostic-order-priority")
@ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/request-priority")
protected CodeableConcept priority;
private static final long serialVersionUID = 146906020L;

View File

@ -29,7 +29,7 @@ package org.hl7.fhir.dstu3.model;
*/
// Generated on Tue, Jul 12, 2016 12:04-0400 for FHIR v1.5.0
// Generated on Wed, Aug 3, 2016 09:39-0400 for FHIR v1.5.0
import java.util.*;

View File

@ -29,7 +29,7 @@ package org.hl7.fhir.dstu3.model;
*/
// Generated on Tue, Jul 12, 2016 12:04-0400 for FHIR v1.5.0
// Generated on Wed, Aug 3, 2016 09:39-0400 for FHIR v1.5.0
import java.util.*;
@ -170,6 +170,160 @@ public class Composition extends DomainResource {
}
}
public enum DocumentConfidentiality {
/**
* null
*/
U,
/**
* null
*/
L,
/**
* null
*/
M,
/**
* null
*/
N,
/**
* null
*/
R,
/**
* null
*/
V,
/**
* added to help the parsers with the generic types
*/
NULL;
public static DocumentConfidentiality fromCode(String codeString) throws FHIRException {
if (codeString == null || "".equals(codeString))
return null;
if ("U".equals(codeString))
return U;
if ("L".equals(codeString))
return L;
if ("M".equals(codeString))
return M;
if ("N".equals(codeString))
return N;
if ("R".equals(codeString))
return R;
if ("V".equals(codeString))
return V;
if (Configuration.isAcceptInvalidEnums())
return null;
else
throw new FHIRException("Unknown DocumentConfidentiality code '"+codeString+"'");
}
public String toCode() {
switch (this) {
case U: return "U";
case L: return "L";
case M: return "M";
case N: return "N";
case R: return "R";
case V: return "V";
default: return "?";
}
}
public String getSystem() {
switch (this) {
case U: return "http://hl7.org/fhir/v3/Confidentiality";
case L: return "http://hl7.org/fhir/v3/Confidentiality";
case M: return "http://hl7.org/fhir/v3/Confidentiality";
case N: return "http://hl7.org/fhir/v3/Confidentiality";
case R: return "http://hl7.org/fhir/v3/Confidentiality";
case V: return "http://hl7.org/fhir/v3/Confidentiality";
default: return "?";
}
}
public String getDefinition() {
switch (this) {
case U: return "";
case L: return "";
case M: return "";
case N: return "";
case R: return "";
case V: return "";
default: return "?";
}
}
public String getDisplay() {
switch (this) {
case U: return "U";
case L: return "L";
case M: return "M";
case N: return "N";
case R: return "R";
case V: return "V";
default: return "?";
}
}
}
public static class DocumentConfidentialityEnumFactory implements EnumFactory<DocumentConfidentiality> {
public DocumentConfidentiality fromCode(String codeString) throws IllegalArgumentException {
if (codeString == null || "".equals(codeString))
if (codeString == null || "".equals(codeString))
return null;
if ("U".equals(codeString))
return DocumentConfidentiality.U;
if ("L".equals(codeString))
return DocumentConfidentiality.L;
if ("M".equals(codeString))
return DocumentConfidentiality.M;
if ("N".equals(codeString))
return DocumentConfidentiality.N;
if ("R".equals(codeString))
return DocumentConfidentiality.R;
if ("V".equals(codeString))
return DocumentConfidentiality.V;
throw new IllegalArgumentException("Unknown DocumentConfidentiality code '"+codeString+"'");
}
public Enumeration<DocumentConfidentiality> fromType(Base code) throws FHIRException {
if (code == null || code.isEmpty())
return null;
String codeString = ((PrimitiveType) code).asStringValue();
if (codeString == null || "".equals(codeString))
return null;
if ("U".equals(codeString))
return new Enumeration<DocumentConfidentiality>(this, DocumentConfidentiality.U);
if ("L".equals(codeString))
return new Enumeration<DocumentConfidentiality>(this, DocumentConfidentiality.L);
if ("M".equals(codeString))
return new Enumeration<DocumentConfidentiality>(this, DocumentConfidentiality.M);
if ("N".equals(codeString))
return new Enumeration<DocumentConfidentiality>(this, DocumentConfidentiality.N);
if ("R".equals(codeString))
return new Enumeration<DocumentConfidentiality>(this, DocumentConfidentiality.R);
if ("V".equals(codeString))
return new Enumeration<DocumentConfidentiality>(this, DocumentConfidentiality.V);
throw new FHIRException("Unknown DocumentConfidentiality code '"+codeString+"'");
}
public String toCode(DocumentConfidentiality code) {
if (code == DocumentConfidentiality.U)
return "U";
if (code == DocumentConfidentiality.L)
return "L";
if (code == DocumentConfidentiality.M)
return "M";
if (code == DocumentConfidentiality.N)
return "N";
if (code == DocumentConfidentiality.R)
return "R";
if (code == DocumentConfidentiality.V)
return "V";
return "?";
}
public String toSystem(DocumentConfidentiality code) {
return code.getSystem();
}
}
public enum CompositionAttestationMode {
/**
* The person authenticated the content in their personal capacity.
@ -292,6 +446,112 @@ public class Composition extends DomainResource {
}
}
public enum SectionMode {
/**
* This list is the master list, maintained in an ongoing fashion with regular updates as the real world list it is tracking changes
*/
WORKING,
/**
* This list was prepared as a snapshot. It should not be assumed to be current
*/
SNAPSHOT,
/**
* A list that indicates where changes have been made or recommended
*/
CHANGES,
/**
* added to help the parsers with the generic types
*/
NULL;
public static SectionMode fromCode(String codeString) throws FHIRException {
if (codeString == null || "".equals(codeString))
return null;
if ("working".equals(codeString))
return WORKING;
if ("snapshot".equals(codeString))
return SNAPSHOT;
if ("changes".equals(codeString))
return CHANGES;
if (Configuration.isAcceptInvalidEnums())
return null;
else
throw new FHIRException("Unknown SectionMode code '"+codeString+"'");
}
public String toCode() {
switch (this) {
case WORKING: return "working";
case SNAPSHOT: return "snapshot";
case CHANGES: return "changes";
default: return "?";
}
}
public String getSystem() {
switch (this) {
case WORKING: return "http://hl7.org/fhir/list-mode";
case SNAPSHOT: return "http://hl7.org/fhir/list-mode";
case CHANGES: return "http://hl7.org/fhir/list-mode";
default: return "?";
}
}
public String getDefinition() {
switch (this) {
case WORKING: return "This list is the master list, maintained in an ongoing fashion with regular updates as the real world list it is tracking changes";
case SNAPSHOT: return "This list was prepared as a snapshot. It should not be assumed to be current";
case CHANGES: return "A list that indicates where changes have been made or recommended";
default: return "?";
}
}
public String getDisplay() {
switch (this) {
case WORKING: return "Working List";
case SNAPSHOT: return "Snapshot List";
case CHANGES: return "Change List";
default: return "?";
}
}
}
public static class SectionModeEnumFactory implements EnumFactory<SectionMode> {
public SectionMode fromCode(String codeString) throws IllegalArgumentException {
if (codeString == null || "".equals(codeString))
if (codeString == null || "".equals(codeString))
return null;
if ("working".equals(codeString))
return SectionMode.WORKING;
if ("snapshot".equals(codeString))
return SectionMode.SNAPSHOT;
if ("changes".equals(codeString))
return SectionMode.CHANGES;
throw new IllegalArgumentException("Unknown SectionMode code '"+codeString+"'");
}
public Enumeration<SectionMode> fromType(Base code) throws FHIRException {
if (code == null || code.isEmpty())
return null;
String codeString = ((PrimitiveType) code).asStringValue();
if (codeString == null || "".equals(codeString))
return null;
if ("working".equals(codeString))
return new Enumeration<SectionMode>(this, SectionMode.WORKING);
if ("snapshot".equals(codeString))
return new Enumeration<SectionMode>(this, SectionMode.SNAPSHOT);
if ("changes".equals(codeString))
return new Enumeration<SectionMode>(this, SectionMode.CHANGES);
throw new FHIRException("Unknown SectionMode code '"+codeString+"'");
}
public String toCode(SectionMode code) {
if (code == SectionMode.WORKING)
return "working";
if (code == SectionMode.SNAPSHOT)
return "snapshot";
if (code == SectionMode.CHANGES)
return "changes";
return "?";
}
public String toSystem(SectionMode code) {
return code.getSystem();
}
}
@Block()
public static class CompositionAttesterComponent extends BackboneElement implements IBaseBackboneElement {
/**
@ -929,7 +1189,7 @@ public class Composition extends DomainResource {
@Child(name = "mode", type = {CodeType.class}, order=4, min=0, max=1, modifier=true, summary=true)
@Description(shortDefinition="working | snapshot | changes", formalDefinition="How the entry list was prepared - whether it is a working list that is suitable for being maintained on an ongoing basis, or if it represents a snapshot of a list of items from another source, or whether it is a prepared list where items may be marked as added, modified or deleted." )
@ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/list-mode")
protected CodeType mode;
protected Enumeration<SectionMode> mode;
/**
* Specifies the order applied to the items in the section entries.
@ -966,7 +1226,7 @@ public class Composition extends DomainResource {
@Description(shortDefinition="Nested Section", formalDefinition="A nested sub-section within this section." )
protected List<SectionComponent> section;
private static final long serialVersionUID = -726390626L;
private static final long serialVersionUID = -128426142L;
/**
* Constructor
@ -1075,12 +1335,12 @@ public class Composition extends DomainResource {
/**
* @return {@link #mode} (How the entry list was prepared - whether it is a working list that is suitable for being maintained on an ongoing basis, or if it represents a snapshot of a list of items from another source, or whether it is a prepared list where items may be marked as added, modified or deleted.). This is the underlying object with id, value and extensions. The accessor "getMode" gives direct access to the value
*/
public CodeType getModeElement() {
public Enumeration<SectionMode> getModeElement() {
if (this.mode == null)
if (Configuration.errorOnAutoCreate())
throw new Error("Attempt to auto-create SectionComponent.mode");
else if (Configuration.doAutoCreate())
this.mode = new CodeType(); // bb
this.mode = new Enumeration<SectionMode>(new SectionModeEnumFactory()); // bb
return this.mode;
}
@ -1095,7 +1355,7 @@ public class Composition extends DomainResource {
/**
* @param value {@link #mode} (How the entry list was prepared - whether it is a working list that is suitable for being maintained on an ongoing basis, or if it represents a snapshot of a list of items from another source, or whether it is a prepared list where items may be marked as added, modified or deleted.). This is the underlying object with id, value and extensions. The accessor "getMode" gives direct access to the value
*/
public SectionComponent setModeElement(CodeType value) {
public SectionComponent setModeElement(Enumeration<SectionMode> value) {
this.mode = value;
return this;
}
@ -1103,19 +1363,19 @@ public class Composition extends DomainResource {
/**
* @return How the entry list was prepared - whether it is a working list that is suitable for being maintained on an ongoing basis, or if it represents a snapshot of a list of items from another source, or whether it is a prepared list where items may be marked as added, modified or deleted.
*/
public String getMode() {
public SectionMode getMode() {
return this.mode == null ? null : this.mode.getValue();
}
/**
* @param value How the entry list was prepared - whether it is a working list that is suitable for being maintained on an ongoing basis, or if it represents a snapshot of a list of items from another source, or whether it is a prepared list where items may be marked as added, modified or deleted.
*/
public SectionComponent setMode(String value) {
if (Utilities.noString(value))
public SectionComponent setMode(SectionMode value) {
if (value == null)
this.mode = null;
else {
if (this.mode == null)
this.mode = new CodeType();
this.mode = new Enumeration<SectionMode>(new SectionModeEnumFactory());
this.mode.setValue(value);
}
return this;
@ -1303,7 +1563,7 @@ public class Composition extends DomainResource {
case 110371416: /*title*/ return this.title == null ? new Base[0] : new Base[] {this.title}; // StringType
case 3059181: /*code*/ return this.code == null ? new Base[0] : new Base[] {this.code}; // CodeableConcept
case 3556653: /*text*/ return this.text == null ? new Base[0] : new Base[] {this.text}; // Narrative
case 3357091: /*mode*/ return this.mode == null ? new Base[0] : new Base[] {this.mode}; // CodeType
case 3357091: /*mode*/ return this.mode == null ? new Base[0] : new Base[] {this.mode}; // Enumeration<SectionMode>
case -391079516: /*orderedBy*/ return this.orderedBy == null ? new Base[0] : new Base[] {this.orderedBy}; // CodeableConcept
case 96667762: /*entry*/ return this.entry == null ? new Base[0] : this.entry.toArray(new Base[this.entry.size()]); // Reference
case 1140135409: /*emptyReason*/ return this.emptyReason == null ? new Base[0] : new Base[] {this.emptyReason}; // CodeableConcept
@ -1326,7 +1586,7 @@ public class Composition extends DomainResource {
this.text = castToNarrative(value); // Narrative
break;
case 3357091: // mode
this.mode = castToCode(value); // CodeType
this.mode = new SectionModeEnumFactory().fromType(value); // Enumeration<SectionMode>
break;
case -391079516: // orderedBy
this.orderedBy = castToCodeableConcept(value); // CodeableConcept
@ -1354,7 +1614,7 @@ public class Composition extends DomainResource {
else if (name.equals("text"))
this.text = castToNarrative(value); // Narrative
else if (name.equals("mode"))
this.mode = castToCode(value); // CodeType
this.mode = new SectionModeEnumFactory().fromType(value); // Enumeration<SectionMode>
else if (name.equals("orderedBy"))
this.orderedBy = castToCodeableConcept(value); // CodeableConcept
else if (name.equals("entry"))
@ -1373,7 +1633,7 @@ public class Composition extends DomainResource {
case 110371416: throw new FHIRException("Cannot make property title as it is not a complex type"); // StringType
case 3059181: return getCode(); // CodeableConcept
case 3556653: return getText(); // Narrative
case 3357091: throw new FHIRException("Cannot make property mode as it is not a complex type"); // CodeType
case 3357091: throw new FHIRException("Cannot make property mode as it is not a complex type"); // Enumeration<SectionMode>
case -391079516: return getOrderedBy(); // CodeableConcept
case 96667762: return addEntry(); // Reference
case 1140135409: return getEmptyReason(); // CodeableConcept
@ -1524,7 +1784,7 @@ public class Composition extends DomainResource {
@Child(name = "confidentiality", type = {CodeType.class}, order=6, min=0, max=1, modifier=true, summary=true)
@Description(shortDefinition="As defined by affinity domain", formalDefinition="The code specifying the level of confidentiality of the Composition." )
@ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/v3-ConfidentialityClassification")
protected CodeType confidentiality;
protected Enumeration<DocumentConfidentiality> confidentiality;
/**
* Who or what the composition is about. The composition can be about a person, (patient or healthcare practitioner), a device (e.g. a machine) or even a group of subjects (such as a document about a herd of livestock, or a set of patients that share a common exposure).
@ -1595,7 +1855,7 @@ public class Composition extends DomainResource {
@Description(shortDefinition="Composition is broken into sections", formalDefinition="The root of the sections that make up the composition." )
protected List<SectionComponent> section;
private static final long serialVersionUID = 2127852326L;
private static final long serialVersionUID = 1076817605L;
/**
* Constructor
@ -1826,12 +2086,12 @@ public class Composition extends DomainResource {
/**
* @return {@link #confidentiality} (The code specifying the level of confidentiality of the Composition.). This is the underlying object with id, value and extensions. The accessor "getConfidentiality" gives direct access to the value
*/
public CodeType getConfidentialityElement() {
public Enumeration<DocumentConfidentiality> getConfidentialityElement() {
if (this.confidentiality == null)
if (Configuration.errorOnAutoCreate())
throw new Error("Attempt to auto-create Composition.confidentiality");
else if (Configuration.doAutoCreate())
this.confidentiality = new CodeType(); // bb
this.confidentiality = new Enumeration<DocumentConfidentiality>(new DocumentConfidentialityEnumFactory()); // bb
return this.confidentiality;
}
@ -1846,7 +2106,7 @@ public class Composition extends DomainResource {
/**
* @param value {@link #confidentiality} (The code specifying the level of confidentiality of the Composition.). This is the underlying object with id, value and extensions. The accessor "getConfidentiality" gives direct access to the value
*/
public Composition setConfidentialityElement(CodeType value) {
public Composition setConfidentialityElement(Enumeration<DocumentConfidentiality> value) {
this.confidentiality = value;
return this;
}
@ -1854,19 +2114,19 @@ public class Composition extends DomainResource {
/**
* @return The code specifying the level of confidentiality of the Composition.
*/
public String getConfidentiality() {
public DocumentConfidentiality getConfidentiality() {
return this.confidentiality == null ? null : this.confidentiality.getValue();
}
/**
* @param value The code specifying the level of confidentiality of the Composition.
*/
public Composition setConfidentiality(String value) {
if (Utilities.noString(value))
public Composition setConfidentiality(DocumentConfidentiality value) {
if (value == null)
this.confidentiality = null;
else {
if (this.confidentiality == null)
this.confidentiality = new CodeType();
this.confidentiality = new Enumeration<DocumentConfidentiality>(new DocumentConfidentialityEnumFactory());
this.confidentiality.setValue(value);
}
return this;
@ -2248,7 +2508,7 @@ public class Composition extends DomainResource {
case 94742904: /*class*/ return this.class_ == null ? new Base[0] : new Base[] {this.class_}; // CodeableConcept
case 110371416: /*title*/ return this.title == null ? new Base[0] : new Base[] {this.title}; // StringType
case -892481550: /*status*/ return this.status == null ? new Base[0] : new Base[] {this.status}; // Enumeration<CompositionStatus>
case -1923018202: /*confidentiality*/ return this.confidentiality == null ? new Base[0] : new Base[] {this.confidentiality}; // CodeType
case -1923018202: /*confidentiality*/ return this.confidentiality == null ? new Base[0] : new Base[] {this.confidentiality}; // Enumeration<DocumentConfidentiality>
case -1867885268: /*subject*/ return this.subject == null ? new Base[0] : new Base[] {this.subject}; // Reference
case -1406328437: /*author*/ return this.author == null ? new Base[0] : this.author.toArray(new Base[this.author.size()]); // Reference
case 542920370: /*attester*/ return this.attester == null ? new Base[0] : this.attester.toArray(new Base[this.attester.size()]); // CompositionAttesterComponent
@ -2283,7 +2543,7 @@ public class Composition extends DomainResource {
this.status = new CompositionStatusEnumFactory().fromType(value); // Enumeration<CompositionStatus>
break;
case -1923018202: // confidentiality
this.confidentiality = castToCode(value); // CodeType
this.confidentiality = new DocumentConfidentialityEnumFactory().fromType(value); // Enumeration<DocumentConfidentiality>
break;
case -1867885268: // subject
this.subject = castToReference(value); // Reference
@ -2326,7 +2586,7 @@ public class Composition extends DomainResource {
else if (name.equals("status"))
this.status = new CompositionStatusEnumFactory().fromType(value); // Enumeration<CompositionStatus>
else if (name.equals("confidentiality"))
this.confidentiality = castToCode(value); // CodeType
this.confidentiality = new DocumentConfidentialityEnumFactory().fromType(value); // Enumeration<DocumentConfidentiality>
else if (name.equals("subject"))
this.subject = castToReference(value); // Reference
else if (name.equals("author"))
@ -2354,7 +2614,7 @@ public class Composition extends DomainResource {
case 94742904: return getClass_(); // CodeableConcept
case 110371416: throw new FHIRException("Cannot make property title as it is not a complex type"); // StringType
case -892481550: throw new FHIRException("Cannot make property status as it is not a complex type"); // Enumeration<CompositionStatus>
case -1923018202: throw new FHIRException("Cannot make property confidentiality as it is not a complex type"); // CodeType
case -1923018202: throw new FHIRException("Cannot make property confidentiality as it is not a complex type"); // Enumeration<DocumentConfidentiality>
case -1867885268: return getSubject(); // Reference
case -1406328437: return addAuthor(); // Reference
case 542920370: return addAttester(); // CompositionAttesterComponent

View File

@ -29,7 +29,7 @@ package org.hl7.fhir.dstu3.model;
*/
// Generated on Tue, Jul 12, 2016 12:04-0400 for FHIR v1.5.0
// Generated on Wed, Aug 3, 2016 09:39-0400 for FHIR v1.5.0
import java.util.*;

View File

@ -94,6 +94,8 @@ public class Configuration {
// 1: error
// 2: return null
private static boolean acceptInvalidEnums;
public static boolean errorOnAutoCreate() {
return status == 1;
}
@ -105,7 +107,13 @@ public class Configuration {
public static boolean isAcceptInvalidEnums() {
return true;
return acceptInvalidEnums;
}
public static void setAcceptInvalidEnums(boolean value) {
acceptInvalidEnums = value;
}
}

View File

@ -29,7 +29,7 @@ package org.hl7.fhir.dstu3.model;
*/
// Generated on Tue, Jul 12, 2016 12:04-0400 for FHIR v1.5.0
// Generated on Wed, Aug 3, 2016 09:39-0400 for FHIR v1.5.0
import java.util.*;
@ -47,7 +47,7 @@ import org.hl7.fhir.dstu3.exceptions.FHIRException;
* A conformance statement is a set of capabilities of a FHIR Server that may be used as a statement of actual server functionality or a statement of required or desired server implementation.
*/
@ResourceDef(name="Conformance", profile="http://hl7.org/fhir/Profile/Conformance")
@ChildOrder(names={"url", "version", "name", "status", "experimental", "date", "publisher", "contact", "description", "useContext", "requirements", "copyright", "kind", "software", "implementation", "fhirVersion", "acceptUnknown", "format", "profile", "rest", "messaging", "document"})
@ChildOrder(names={"url", "version", "name", "status", "experimental", "date", "publisher", "contact", "description", "useContext", "requirements", "copyright", "kind", "instantiates", "software", "implementation", "fhirVersion", "acceptUnknown", "format", "profile", "rest", "messaging", "document"})
public class Conformance extends BaseConformance implements IBaseConformance {
public enum ConformanceStatementKind {
@ -1111,6 +1111,10 @@ public class Conformance extends BaseConformance implements IBaseConformance {
* null
*/
TRANSACTION,
/**
* null
*/
BATCH,
/**
* null
*/
@ -1128,6 +1132,8 @@ public class Conformance extends BaseConformance implements IBaseConformance {
return null;
if ("transaction".equals(codeString))
return TRANSACTION;
if ("batch".equals(codeString))
return BATCH;
if ("search-system".equals(codeString))
return SEARCHSYSTEM;
if ("history-system".equals(codeString))
@ -1140,6 +1146,7 @@ public class Conformance extends BaseConformance implements IBaseConformance {
public String toCode() {
switch (this) {
case TRANSACTION: return "transaction";
case BATCH: return "batch";
case SEARCHSYSTEM: return "search-system";
case HISTORYSYSTEM: return "history-system";
default: return "?";
@ -1148,6 +1155,7 @@ public class Conformance extends BaseConformance implements IBaseConformance {
public String getSystem() {
switch (this) {
case TRANSACTION: return "http://hl7.org/fhir/restful-interaction";
case BATCH: return "http://hl7.org/fhir/restful-interaction";
case SEARCHSYSTEM: return "http://hl7.org/fhir/restful-interaction";
case HISTORYSYSTEM: return "http://hl7.org/fhir/restful-interaction";
default: return "?";
@ -1156,6 +1164,7 @@ public class Conformance extends BaseConformance implements IBaseConformance {
public String getDefinition() {
switch (this) {
case TRANSACTION: return "";
case BATCH: return "";
case SEARCHSYSTEM: return "";
case HISTORYSYSTEM: return "";
default: return "?";
@ -1164,6 +1173,7 @@ public class Conformance extends BaseConformance implements IBaseConformance {
public String getDisplay() {
switch (this) {
case TRANSACTION: return "transaction";
case BATCH: return "batch";
case SEARCHSYSTEM: return "search-system";
case HISTORYSYSTEM: return "history-system";
default: return "?";
@ -1178,6 +1188,8 @@ public class Conformance extends BaseConformance implements IBaseConformance {
return null;
if ("transaction".equals(codeString))
return SystemRestfulInteraction.TRANSACTION;
if ("batch".equals(codeString))
return SystemRestfulInteraction.BATCH;
if ("search-system".equals(codeString))
return SystemRestfulInteraction.SEARCHSYSTEM;
if ("history-system".equals(codeString))
@ -1192,6 +1204,8 @@ public class Conformance extends BaseConformance implements IBaseConformance {
return null;
if ("transaction".equals(codeString))
return new Enumeration<SystemRestfulInteraction>(this, SystemRestfulInteraction.TRANSACTION);
if ("batch".equals(codeString))
return new Enumeration<SystemRestfulInteraction>(this, SystemRestfulInteraction.BATCH);
if ("search-system".equals(codeString))
return new Enumeration<SystemRestfulInteraction>(this, SystemRestfulInteraction.SEARCHSYSTEM);
if ("history-system".equals(codeString))
@ -1201,6 +1215,8 @@ public class Conformance extends BaseConformance implements IBaseConformance {
public String toCode(SystemRestfulInteraction code) {
if (code == SystemRestfulInteraction.TRANSACTION)
return "transaction";
if (code == SystemRestfulInteraction.BATCH)
return "batch";
if (code == SystemRestfulInteraction.SEARCHSYSTEM)
return "search-system";
if (code == SystemRestfulInteraction.HISTORYSYSTEM)
@ -1212,128 +1228,6 @@ public class Conformance extends BaseConformance implements IBaseConformance {
}
}
public enum TransactionMode {
/**
* Neither batch or transaction is supported.
*/
NOTSUPPORTED,
/**
* Batches are supported.
*/
BATCH,
/**
* Transactions are supported.
*/
TRANSACTION,
/**
* Both batches and transactions are supported.
*/
BOTH,
/**
* added to help the parsers with the generic types
*/
NULL;
public static TransactionMode fromCode(String codeString) throws FHIRException {
if (codeString == null || "".equals(codeString))
return null;
if ("not-supported".equals(codeString))
return NOTSUPPORTED;
if ("batch".equals(codeString))
return BATCH;
if ("transaction".equals(codeString))
return TRANSACTION;
if ("both".equals(codeString))
return BOTH;
if (Configuration.isAcceptInvalidEnums())
return null;
else
throw new FHIRException("Unknown TransactionMode code '"+codeString+"'");
}
public String toCode() {
switch (this) {
case NOTSUPPORTED: return "not-supported";
case BATCH: return "batch";
case TRANSACTION: return "transaction";
case BOTH: return "both";
default: return "?";
}
}
public String getSystem() {
switch (this) {
case NOTSUPPORTED: return "http://hl7.org/fhir/transaction-mode";
case BATCH: return "http://hl7.org/fhir/transaction-mode";
case TRANSACTION: return "http://hl7.org/fhir/transaction-mode";
case BOTH: return "http://hl7.org/fhir/transaction-mode";
default: return "?";
}
}
public String getDefinition() {
switch (this) {
case NOTSUPPORTED: return "Neither batch or transaction is supported.";
case BATCH: return "Batches are supported.";
case TRANSACTION: return "Transactions are supported.";
case BOTH: return "Both batches and transactions are supported.";
default: return "?";
}
}
public String getDisplay() {
switch (this) {
case NOTSUPPORTED: return "None";
case BATCH: return "Batches supported";
case TRANSACTION: return "Transactions Supported";
case BOTH: return "Batches & Transactions";
default: return "?";
}
}
}
public static class TransactionModeEnumFactory implements EnumFactory<TransactionMode> {
public TransactionMode fromCode(String codeString) throws IllegalArgumentException {
if (codeString == null || "".equals(codeString))
if (codeString == null || "".equals(codeString))
return null;
if ("not-supported".equals(codeString))
return TransactionMode.NOTSUPPORTED;
if ("batch".equals(codeString))
return TransactionMode.BATCH;
if ("transaction".equals(codeString))
return TransactionMode.TRANSACTION;
if ("both".equals(codeString))
return TransactionMode.BOTH;
throw new IllegalArgumentException("Unknown TransactionMode code '"+codeString+"'");
}
public Enumeration<TransactionMode> fromType(Base code) throws FHIRException {
if (code == null || code.isEmpty())
return null;
String codeString = ((PrimitiveType) code).asStringValue();
if (codeString == null || "".equals(codeString))
return null;
if ("not-supported".equals(codeString))
return new Enumeration<TransactionMode>(this, TransactionMode.NOTSUPPORTED);
if ("batch".equals(codeString))
return new Enumeration<TransactionMode>(this, TransactionMode.BATCH);
if ("transaction".equals(codeString))
return new Enumeration<TransactionMode>(this, TransactionMode.TRANSACTION);
if ("both".equals(codeString))
return new Enumeration<TransactionMode>(this, TransactionMode.BOTH);
throw new FHIRException("Unknown TransactionMode code '"+codeString+"'");
}
public String toCode(TransactionMode code) {
if (code == TransactionMode.NOTSUPPORTED)
return "not-supported";
if (code == TransactionMode.BATCH)
return "batch";
if (code == TransactionMode.TRANSACTION)
return "transaction";
if (code == TransactionMode.BOTH)
return "both";
return "?";
}
public String toSystem(TransactionMode code) {
return code.getSystem();
}
}
public enum MessageSignificanceCategory {
/**
* The message represents/requests a change that should not be processed more than once; e.g. Making a booking for an appointment.
@ -2417,36 +2311,28 @@ public class Conformance extends BaseConformance implements IBaseConformance {
@Description(shortDefinition="What operations are supported?", formalDefinition="A specification of restful operations supported by the system." )
protected List<SystemInteractionComponent> interaction;
/**
* A code that indicates how transactions are supported.
*/
@Child(name = "transactionMode", type = {CodeType.class}, order=6, min=0, max=1, modifier=false, summary=false)
@Description(shortDefinition="not-supported | batch | transaction | both", formalDefinition="A code that indicates how transactions are supported." )
@ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/transaction-mode")
protected Enumeration<TransactionMode> transactionMode;
/**
* Search parameters that are supported for searching all resources for implementations to support and/or make use of - either references to ones defined in the specification, or additional ones defined for/by the implementation.
*/
@Child(name = "searchParam", type = {ConformanceRestResourceSearchParamComponent.class}, order=7, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
@Child(name = "searchParam", type = {ConformanceRestResourceSearchParamComponent.class}, order=6, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
@Description(shortDefinition="Search params for searching all resources", formalDefinition="Search parameters that are supported for searching all resources for implementations to support and/or make use of - either references to ones defined in the specification, or additional ones defined for/by the implementation." )
protected List<ConformanceRestResourceSearchParamComponent> searchParam;
/**
* Definition of an operation or a named query and with its parameters and their meaning and type.
*/
@Child(name = "operation", type = {}, order=8, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
@Child(name = "operation", type = {}, order=7, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
@Description(shortDefinition="Definition of an operation or a custom query", formalDefinition="Definition of an operation or a named query and with its parameters and their meaning and type." )
protected List<ConformanceRestOperationComponent> operation;
/**
* An absolute URI which is a reference to the definition of a compartment that the system supports. The reference is to a CompartmentDefinition resource by it's canonical URL.
*/
@Child(name = "compartment", type = {UriType.class}, order=9, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
@Child(name = "compartment", type = {UriType.class}, order=8, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
@Description(shortDefinition="Compartments served/used by system", formalDefinition="An absolute URI which is a reference to the definition of a compartment that the system supports. The reference is to a CompartmentDefinition resource by it's canonical URL." )
protected List<UriType> compartment;
private static final long serialVersionUID = 931983837L;
private static final long serialVersionUID = -351789290L;
/**
* Constructor
@ -2687,55 +2573,6 @@ public class Conformance extends BaseConformance implements IBaseConformance {
return getInteraction().get(0);
}
/**
* @return {@link #transactionMode} (A code that indicates how transactions are supported.). This is the underlying object with id, value and extensions. The accessor "getTransactionMode" gives direct access to the value
*/
public Enumeration<TransactionMode> getTransactionModeElement() {
if (this.transactionMode == null)
if (Configuration.errorOnAutoCreate())
throw new Error("Attempt to auto-create ConformanceRestComponent.transactionMode");
else if (Configuration.doAutoCreate())
this.transactionMode = new Enumeration<TransactionMode>(new TransactionModeEnumFactory()); // bb
return this.transactionMode;
}
public boolean hasTransactionModeElement() {
return this.transactionMode != null && !this.transactionMode.isEmpty();
}
public boolean hasTransactionMode() {
return this.transactionMode != null && !this.transactionMode.isEmpty();
}
/**
* @param value {@link #transactionMode} (A code that indicates how transactions are supported.). This is the underlying object with id, value and extensions. The accessor "getTransactionMode" gives direct access to the value
*/
public ConformanceRestComponent setTransactionModeElement(Enumeration<TransactionMode> value) {
this.transactionMode = value;
return this;
}
/**
* @return A code that indicates how transactions are supported.
*/
public TransactionMode getTransactionMode() {
return this.transactionMode == null ? null : this.transactionMode.getValue();
}
/**
* @param value A code that indicates how transactions are supported.
*/
public ConformanceRestComponent setTransactionMode(TransactionMode value) {
if (value == null)
this.transactionMode = null;
else {
if (this.transactionMode == null)
this.transactionMode = new Enumeration<TransactionMode>(new TransactionModeEnumFactory());
this.transactionMode.setValue(value);
}
return this;
}
/**
* @return {@link #searchParam} (Search parameters that are supported for searching all resources for implementations to support and/or make use of - either references to ones defined in the specification, or additional ones defined for/by the implementation.)
*/
@ -2910,7 +2747,6 @@ public class Conformance extends BaseConformance implements IBaseConformance {
childrenList.add(new Property("security", "", "Information about security implementation from an interface perspective - what a client needs to know.", 0, java.lang.Integer.MAX_VALUE, security));
childrenList.add(new Property("resource", "", "A specification of the restful capabilities of the solution for a specific resource type.", 0, java.lang.Integer.MAX_VALUE, resource));
childrenList.add(new Property("interaction", "", "A specification of restful operations supported by the system.", 0, java.lang.Integer.MAX_VALUE, interaction));
childrenList.add(new Property("transactionMode", "code", "A code that indicates how transactions are supported.", 0, java.lang.Integer.MAX_VALUE, transactionMode));
childrenList.add(new Property("searchParam", "@Conformance.rest.resource.searchParam", "Search parameters that are supported for searching all resources for implementations to support and/or make use of - either references to ones defined in the specification, or additional ones defined for/by the implementation.", 0, java.lang.Integer.MAX_VALUE, searchParam));
childrenList.add(new Property("operation", "", "Definition of an operation or a named query and with its parameters and their meaning and type.", 0, java.lang.Integer.MAX_VALUE, operation));
childrenList.add(new Property("compartment", "uri", "An absolute URI which is a reference to the definition of a compartment that the system supports. The reference is to a CompartmentDefinition resource by it's canonical URL.", 0, java.lang.Integer.MAX_VALUE, compartment));
@ -2924,7 +2760,6 @@ public class Conformance extends BaseConformance implements IBaseConformance {
case 949122880: /*security*/ return this.security == null ? new Base[0] : new Base[] {this.security}; // ConformanceRestSecurityComponent
case -341064690: /*resource*/ return this.resource == null ? new Base[0] : this.resource.toArray(new Base[this.resource.size()]); // ConformanceRestResourceComponent
case 1844104722: /*interaction*/ return this.interaction == null ? new Base[0] : this.interaction.toArray(new Base[this.interaction.size()]); // SystemInteractionComponent
case 1262805409: /*transactionMode*/ return this.transactionMode == null ? new Base[0] : new Base[] {this.transactionMode}; // Enumeration<TransactionMode>
case -553645115: /*searchParam*/ return this.searchParam == null ? new Base[0] : this.searchParam.toArray(new Base[this.searchParam.size()]); // ConformanceRestResourceSearchParamComponent
case 1662702951: /*operation*/ return this.operation == null ? new Base[0] : this.operation.toArray(new Base[this.operation.size()]); // ConformanceRestOperationComponent
case -397756334: /*compartment*/ return this.compartment == null ? new Base[0] : this.compartment.toArray(new Base[this.compartment.size()]); // UriType
@ -2951,9 +2786,6 @@ public class Conformance extends BaseConformance implements IBaseConformance {
case 1844104722: // interaction
this.getInteraction().add((SystemInteractionComponent) value); // SystemInteractionComponent
break;
case 1262805409: // transactionMode
this.transactionMode = new TransactionModeEnumFactory().fromType(value); // Enumeration<TransactionMode>
break;
case -553645115: // searchParam
this.getSearchParam().add((ConformanceRestResourceSearchParamComponent) value); // ConformanceRestResourceSearchParamComponent
break;
@ -2980,8 +2812,6 @@ public class Conformance extends BaseConformance implements IBaseConformance {
this.getResource().add((ConformanceRestResourceComponent) value);
else if (name.equals("interaction"))
this.getInteraction().add((SystemInteractionComponent) value);
else if (name.equals("transactionMode"))
this.transactionMode = new TransactionModeEnumFactory().fromType(value); // Enumeration<TransactionMode>
else if (name.equals("searchParam"))
this.getSearchParam().add((ConformanceRestResourceSearchParamComponent) value);
else if (name.equals("operation"))
@ -3000,7 +2830,6 @@ public class Conformance extends BaseConformance implements IBaseConformance {
case 949122880: return getSecurity(); // ConformanceRestSecurityComponent
case -341064690: return addResource(); // ConformanceRestResourceComponent
case 1844104722: return addInteraction(); // SystemInteractionComponent
case 1262805409: throw new FHIRException("Cannot make property transactionMode as it is not a complex type"); // Enumeration<TransactionMode>
case -553645115: return addSearchParam(); // ConformanceRestResourceSearchParamComponent
case 1662702951: return addOperation(); // ConformanceRestOperationComponent
case -397756334: throw new FHIRException("Cannot make property compartment as it is not a complex type"); // UriType
@ -3027,9 +2856,6 @@ public class Conformance extends BaseConformance implements IBaseConformance {
else if (name.equals("interaction")) {
return addInteraction();
}
else if (name.equals("transactionMode")) {
throw new FHIRException("Cannot call addChild on a primitive type Conformance.transactionMode");
}
else if (name.equals("searchParam")) {
return addSearchParam();
}
@ -3059,7 +2885,6 @@ public class Conformance extends BaseConformance implements IBaseConformance {
for (SystemInteractionComponent i : interaction)
dst.interaction.add(i.copy());
};
dst.transactionMode = transactionMode == null ? null : transactionMode.copy();
if (searchParam != null) {
dst.searchParam = new ArrayList<ConformanceRestResourceSearchParamComponent>();
for (ConformanceRestResourceSearchParamComponent i : searchParam)
@ -3086,9 +2911,8 @@ public class Conformance extends BaseConformance implements IBaseConformance {
return false;
ConformanceRestComponent o = (ConformanceRestComponent) other;
return compareDeep(mode, o.mode, true) && compareDeep(documentation, o.documentation, true) && compareDeep(security, o.security, true)
&& compareDeep(resource, o.resource, true) && compareDeep(interaction, o.interaction, true) && compareDeep(transactionMode, o.transactionMode, true)
&& compareDeep(searchParam, o.searchParam, true) && compareDeep(operation, o.operation, true) && compareDeep(compartment, o.compartment, true)
;
&& compareDeep(resource, o.resource, true) && compareDeep(interaction, o.interaction, true) && compareDeep(searchParam, o.searchParam, true)
&& compareDeep(operation, o.operation, true) && compareDeep(compartment, o.compartment, true);
}
@Override
@ -3098,13 +2922,13 @@ public class Conformance extends BaseConformance implements IBaseConformance {
if (!(other instanceof ConformanceRestComponent))
return false;
ConformanceRestComponent o = (ConformanceRestComponent) other;
return compareValues(mode, o.mode, true) && compareValues(documentation, o.documentation, true) && compareValues(transactionMode, o.transactionMode, true)
&& compareValues(compartment, o.compartment, true);
return compareValues(mode, o.mode, true) && compareValues(documentation, o.documentation, true) && compareValues(compartment, o.compartment, true)
;
}
public boolean isEmpty() {
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(mode, documentation, security
, resource, interaction, transactionMode, searchParam, operation, compartment);
, resource, interaction, searchParam, operation, compartment);
}
public String fhirType() {
@ -5664,7 +5488,7 @@ public class Conformance extends BaseConformance implements IBaseConformance {
* A coded identifier of the operation, supported by the system.
*/
@Child(name = "code", type = {CodeType.class}, order=1, min=1, max=1, modifier=false, summary=false)
@Description(shortDefinition="transaction | search-system | history-system", formalDefinition="A coded identifier of the operation, supported by the system." )
@Description(shortDefinition="transaction | batch | search-system | history-system", formalDefinition="A coded identifier of the operation, supported by the system." )
@ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/system-restful-interaction")
protected Enumeration<SystemRestfulInteraction> code;
@ -7603,31 +7427,38 @@ public class Conformance extends BaseConformance implements IBaseConformance {
@ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/conformance-statement-kind")
protected Enumeration<ConformanceStatementKind> kind;
/**
* Reference to a canonical URL of another conformance that this software implements or uses. This conformance statement is a published API description that corresponds to a business service. The rest of the conformance statement does not need to repeat the details of the referenced Conformance resource, but can do so.
*/
@Child(name = "instantiates", type = {UriType.class}, order=7, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
@Description(shortDefinition="Canonical URL of service implemented/used by software", formalDefinition="Reference to a canonical URL of another conformance that this software implements or uses. This conformance statement is a published API description that corresponds to a business service. The rest of the conformance statement does not need to repeat the details of the referenced Conformance resource, but can do so." )
protected List<UriType> instantiates;
/**
* Software that is covered by this conformance statement. It is used when the conformance statement describes the capabilities of a particular software version, independent of an installation.
*/
@Child(name = "software", type = {}, order=7, min=0, max=1, modifier=false, summary=true)
@Child(name = "software", type = {}, order=8, min=0, max=1, modifier=false, summary=true)
@Description(shortDefinition="Software that is covered by this conformance statement", formalDefinition="Software that is covered by this conformance statement. It is used when the conformance statement describes the capabilities of a particular software version, independent of an installation." )
protected ConformanceSoftwareComponent software;
/**
* Identifies a specific implementation instance that is described by the conformance statement - i.e. a particular installation, rather than the capabilities of a software program.
*/
@Child(name = "implementation", type = {}, order=8, min=0, max=1, modifier=false, summary=true)
@Child(name = "implementation", type = {}, order=9, min=0, max=1, modifier=false, summary=true)
@Description(shortDefinition="If this describes a specific instance", formalDefinition="Identifies a specific implementation instance that is described by the conformance statement - i.e. a particular installation, rather than the capabilities of a software program." )
protected ConformanceImplementationComponent implementation;
/**
* The version of the FHIR specification on which this conformance statement is based.
*/
@Child(name = "fhirVersion", type = {IdType.class}, order=9, min=1, max=1, modifier=false, summary=true)
@Child(name = "fhirVersion", type = {IdType.class}, order=10, min=1, max=1, modifier=false, summary=true)
@Description(shortDefinition="FHIR Version the system uses", formalDefinition="The version of the FHIR specification on which this conformance statement is based." )
protected IdType fhirVersion;
/**
* A code that indicates whether the application accepts unknown elements or extensions when reading resources.
*/
@Child(name = "acceptUnknown", type = {CodeType.class}, order=10, min=1, max=1, modifier=false, summary=true)
@Child(name = "acceptUnknown", type = {CodeType.class}, order=11, min=1, max=1, modifier=false, summary=true)
@Description(shortDefinition="no | extensions | elements | both", formalDefinition="A code that indicates whether the application accepts unknown elements or extensions when reading resources." )
@ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/unknown-content-code")
protected Enumeration<UnknownContentCode> acceptUnknown;
@ -7635,14 +7466,14 @@ public class Conformance extends BaseConformance implements IBaseConformance {
/**
* A list of the formats supported by this implementation using their content types.
*/
@Child(name = "format", type = {CodeType.class}, order=11, min=1, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
@Child(name = "format", type = {CodeType.class}, order=12, min=1, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
@Description(shortDefinition="formats supported (xml | json | ttl | mime type)", formalDefinition="A list of the formats supported by this implementation using their content types." )
protected List<CodeType> format;
/**
* A list of profiles that represent different use cases supported by the system. For a server, "supported by the system" means the system hosts/produces a set of resources that are conformant to a particular profile, and allows clients that use its services to search using this profile and to find appropriate data. For a client, it means the system will search by this profile and process data according to the guidance implicit in the profile. See further discussion in [Using Profiles]{profiling.html#profile-uses}.
*/
@Child(name = "profile", type = {StructureDefinition.class}, order=12, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
@Child(name = "profile", type = {StructureDefinition.class}, order=13, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
@Description(shortDefinition="Profiles for use cases supported", formalDefinition="A list of profiles that represent different use cases supported by the system. For a server, \"supported by the system\" means the system hosts/produces a set of resources that are conformant to a particular profile, and allows clients that use its services to search using this profile and to find appropriate data. For a client, it means the system will search by this profile and process data according to the guidance implicit in the profile. See further discussion in [Using Profiles]{profiling.html#profile-uses}." )
protected List<Reference> profile;
/**
@ -7654,25 +7485,25 @@ public class Conformance extends BaseConformance implements IBaseConformance {
/**
* A definition of the restful capabilities of the solution, if any.
*/
@Child(name = "rest", type = {}, order=13, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
@Child(name = "rest", type = {}, order=14, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
@Description(shortDefinition="If the endpoint is a RESTful one", formalDefinition="A definition of the restful capabilities of the solution, if any." )
protected List<ConformanceRestComponent> rest;
/**
* A description of the messaging capabilities of the solution.
*/
@Child(name = "messaging", type = {}, order=14, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
@Child(name = "messaging", type = {}, order=15, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
@Description(shortDefinition="If messaging is supported", formalDefinition="A description of the messaging capabilities of the solution." )
protected List<ConformanceMessagingComponent> messaging;
/**
* A document definition.
*/
@Child(name = "document", type = {}, order=15, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
@Child(name = "document", type = {}, order=16, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
@Description(shortDefinition="Document definition", formalDefinition="A document definition." )
protected List<ConformanceDocumentComponent> document;
private static final long serialVersionUID = -935912607L;
private static final long serialVersionUID = -1845122934L;
/**
* Constructor
@ -8094,6 +7925,67 @@ public class Conformance extends BaseConformance implements IBaseConformance {
return this;
}
/**
* @return {@link #instantiates} (Reference to a canonical URL of another conformance that this software implements or uses. This conformance statement is a published API description that corresponds to a business service. The rest of the conformance statement does not need to repeat the details of the referenced Conformance resource, but can do so.)
*/
public List<UriType> getInstantiates() {
if (this.instantiates == null)
this.instantiates = new ArrayList<UriType>();
return this.instantiates;
}
/**
* @return Returns a reference to <code>this</code> for easy method chaining
*/
public Conformance setInstantiates(List<UriType> theInstantiates) {
this.instantiates = theInstantiates;
return this;
}
public boolean hasInstantiates() {
if (this.instantiates == null)
return false;
for (UriType item : this.instantiates)
if (!item.isEmpty())
return true;
return false;
}
/**
* @return {@link #instantiates} (Reference to a canonical URL of another conformance that this software implements or uses. This conformance statement is a published API description that corresponds to a business service. The rest of the conformance statement does not need to repeat the details of the referenced Conformance resource, but can do so.)
*/
public UriType addInstantiatesElement() {//2
UriType t = new UriType();
if (this.instantiates == null)
this.instantiates = new ArrayList<UriType>();
this.instantiates.add(t);
return t;
}
/**
* @param value {@link #instantiates} (Reference to a canonical URL of another conformance that this software implements or uses. This conformance statement is a published API description that corresponds to a business service. The rest of the conformance statement does not need to repeat the details of the referenced Conformance resource, but can do so.)
*/
public Conformance addInstantiates(String value) { //1
UriType t = new UriType();
t.setValue(value);
if (this.instantiates == null)
this.instantiates = new ArrayList<UriType>();
this.instantiates.add(t);
return this;
}
/**
* @param value {@link #instantiates} (Reference to a canonical URL of another conformance that this software implements or uses. This conformance statement is a published API description that corresponds to a business service. The rest of the conformance statement does not need to repeat the details of the referenced Conformance resource, but can do so.)
*/
public boolean hasInstantiates(String value) {
if (this.instantiates == null)
return false;
for (UriType v : this.instantiates)
if (v.equals(value)) // uri
return true;
return false;
}
/**
* @return {@link #software} (Software that is covered by this conformance statement. It is used when the conformance statement describes the capabilities of a particular software version, independent of an installation.)
*/
@ -8536,6 +8428,7 @@ public class Conformance extends BaseConformance implements IBaseConformance {
childrenList.add(new Property("requirements", "markdown", "Explains why this conformance statement is needed and why it's been constrained as it has.", 0, java.lang.Integer.MAX_VALUE, requirements));
childrenList.add(new Property("copyright", "string", "A copyright statement relating to the conformance statement and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the details of the system described by the conformance statement.", 0, java.lang.Integer.MAX_VALUE, copyright));
childrenList.add(new Property("kind", "code", "The way that this statement is intended to be used, to describe an actual running instance of software, a particular product (kind not instance of software) or a class of implementation (e.g. a desired purchase).", 0, java.lang.Integer.MAX_VALUE, kind));
childrenList.add(new Property("instantiates", "uri", "Reference to a canonical URL of another conformance that this software implements or uses. This conformance statement is a published API description that corresponds to a business service. The rest of the conformance statement does not need to repeat the details of the referenced Conformance resource, but can do so.", 0, java.lang.Integer.MAX_VALUE, instantiates));
childrenList.add(new Property("software", "", "Software that is covered by this conformance statement. It is used when the conformance statement describes the capabilities of a particular software version, independent of an installation.", 0, java.lang.Integer.MAX_VALUE, software));
childrenList.add(new Property("implementation", "", "Identifies a specific implementation instance that is described by the conformance statement - i.e. a particular installation, rather than the capabilities of a software program.", 0, java.lang.Integer.MAX_VALUE, implementation));
childrenList.add(new Property("fhirVersion", "id", "The version of the FHIR specification on which this conformance statement is based.", 0, java.lang.Integer.MAX_VALUE, fhirVersion));
@ -8563,6 +8456,7 @@ public class Conformance extends BaseConformance implements IBaseConformance {
case -1619874672: /*requirements*/ return this.requirements == null ? new Base[0] : new Base[] {this.requirements}; // MarkdownType
case 1522889671: /*copyright*/ return this.copyright == null ? new Base[0] : new Base[] {this.copyright}; // StringType
case 3292052: /*kind*/ return this.kind == null ? new Base[0] : new Base[] {this.kind}; // Enumeration<ConformanceStatementKind>
case -246883639: /*instantiates*/ return this.instantiates == null ? new Base[0] : this.instantiates.toArray(new Base[this.instantiates.size()]); // UriType
case 1319330215: /*software*/ return this.software == null ? new Base[0] : new Base[] {this.software}; // ConformanceSoftwareComponent
case 1683336114: /*implementation*/ return this.implementation == null ? new Base[0] : new Base[] {this.implementation}; // ConformanceImplementationComponent
case 461006061: /*fhirVersion*/ return this.fhirVersion == null ? new Base[0] : new Base[] {this.fhirVersion}; // IdType
@ -8619,6 +8513,9 @@ public class Conformance extends BaseConformance implements IBaseConformance {
case 3292052: // kind
this.kind = new ConformanceStatementKindEnumFactory().fromType(value); // Enumeration<ConformanceStatementKind>
break;
case -246883639: // instantiates
this.getInstantiates().add(castToUri(value)); // UriType
break;
case 1319330215: // software
this.software = (ConformanceSoftwareComponent) value; // ConformanceSoftwareComponent
break;
@ -8679,6 +8576,8 @@ public class Conformance extends BaseConformance implements IBaseConformance {
this.copyright = castToString(value); // StringType
else if (name.equals("kind"))
this.kind = new ConformanceStatementKindEnumFactory().fromType(value); // Enumeration<ConformanceStatementKind>
else if (name.equals("instantiates"))
this.getInstantiates().add(castToUri(value));
else if (name.equals("software"))
this.software = (ConformanceSoftwareComponent) value; // ConformanceSoftwareComponent
else if (name.equals("implementation"))
@ -8717,6 +8616,7 @@ public class Conformance extends BaseConformance implements IBaseConformance {
case -1619874672: throw new FHIRException("Cannot make property requirements as it is not a complex type"); // MarkdownType
case 1522889671: throw new FHIRException("Cannot make property copyright as it is not a complex type"); // StringType
case 3292052: throw new FHIRException("Cannot make property kind as it is not a complex type"); // Enumeration<ConformanceStatementKind>
case -246883639: throw new FHIRException("Cannot make property instantiates as it is not a complex type"); // UriType
case 1319330215: return getSoftware(); // ConformanceSoftwareComponent
case 1683336114: return getImplementation(); // ConformanceImplementationComponent
case 461006061: throw new FHIRException("Cannot make property fhirVersion as it is not a complex type"); // IdType
@ -8772,6 +8672,9 @@ public class Conformance extends BaseConformance implements IBaseConformance {
else if (name.equals("kind")) {
throw new FHIRException("Cannot call addChild on a primitive type Conformance.kind");
}
else if (name.equals("instantiates")) {
throw new FHIRException("Cannot call addChild on a primitive type Conformance.instantiates");
}
else if (name.equals("software")) {
this.software = new ConformanceSoftwareComponent();
return this.software;
@ -8834,6 +8737,11 @@ public class Conformance extends BaseConformance implements IBaseConformance {
dst.requirements = requirements == null ? null : requirements.copy();
dst.copyright = copyright == null ? null : copyright.copy();
dst.kind = kind == null ? null : kind.copy();
if (instantiates != null) {
dst.instantiates = new ArrayList<UriType>();
for (UriType i : instantiates)
dst.instantiates.add(i.copy());
};
dst.software = software == null ? null : software.copy();
dst.implementation = implementation == null ? null : implementation.copy();
dst.fhirVersion = fhirVersion == null ? null : fhirVersion.copy();
@ -8879,11 +8787,11 @@ public class Conformance extends BaseConformance implements IBaseConformance {
Conformance o = (Conformance) other;
return compareDeep(experimental, o.experimental, true) && compareDeep(publisher, o.publisher, true)
&& compareDeep(contact, o.contact, true) && compareDeep(description, o.description, true) && compareDeep(requirements, o.requirements, true)
&& compareDeep(copyright, o.copyright, true) && compareDeep(kind, o.kind, true) && compareDeep(software, o.software, true)
&& compareDeep(implementation, o.implementation, true) && compareDeep(fhirVersion, o.fhirVersion, true)
&& compareDeep(acceptUnknown, o.acceptUnknown, true) && compareDeep(format, o.format, true) && compareDeep(profile, o.profile, true)
&& compareDeep(rest, o.rest, true) && compareDeep(messaging, o.messaging, true) && compareDeep(document, o.document, true)
;
&& compareDeep(copyright, o.copyright, true) && compareDeep(kind, o.kind, true) && compareDeep(instantiates, o.instantiates, true)
&& compareDeep(software, o.software, true) && compareDeep(implementation, o.implementation, true)
&& compareDeep(fhirVersion, o.fhirVersion, true) && compareDeep(acceptUnknown, o.acceptUnknown, true)
&& compareDeep(format, o.format, true) && compareDeep(profile, o.profile, true) && compareDeep(rest, o.rest, true)
&& compareDeep(messaging, o.messaging, true) && compareDeep(document, o.document, true);
}
@Override
@ -8895,14 +8803,15 @@ public class Conformance extends BaseConformance implements IBaseConformance {
Conformance o = (Conformance) other;
return compareValues(experimental, o.experimental, true) && compareValues(publisher, o.publisher, true)
&& compareValues(description, o.description, true) && compareValues(requirements, o.requirements, true)
&& compareValues(copyright, o.copyright, true) && compareValues(kind, o.kind, true) && compareValues(fhirVersion, o.fhirVersion, true)
&& compareValues(acceptUnknown, o.acceptUnknown, true) && compareValues(format, o.format, true);
&& compareValues(copyright, o.copyright, true) && compareValues(kind, o.kind, true) && compareValues(instantiates, o.instantiates, true)
&& compareValues(fhirVersion, o.fhirVersion, true) && compareValues(acceptUnknown, o.acceptUnknown, true)
&& compareValues(format, o.format, true);
}
public boolean isEmpty() {
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(experimental, publisher, contact
, description, requirements, copyright, kind, software, implementation, fhirVersion
, acceptUnknown, format, profile, rest, messaging, document);
, description, requirements, copyright, kind, instantiates, software, implementation
, fhirVersion, acceptUnknown, format, profile, rest, messaging, document);
}
@Override

View File

@ -29,7 +29,7 @@ package org.hl7.fhir.dstu3.model;
*/
// Generated on Tue, Jul 12, 2016 12:04-0400 for FHIR v1.5.0
// Generated on Wed, Aug 3, 2016 09:39-0400 for FHIR v1.5.0
import java.util.*;
@ -402,18 +402,18 @@ public class Consent extends DomainResource {
@Block()
public static class ExceptComponent extends BackboneElement implements IBaseBackboneElement {
/**
* How the exception is statement is applied, as adding additional consent, ore removing.
* Action to take - permit or deny - when the exception conditions are met.
*/
@Child(name = "type", type = {CodeType.class}, order=1, min=1, max=1, modifier=false, summary=true)
@Description(shortDefinition="deny | permit", formalDefinition="How the exception is statement is applied, as adding additional consent, ore removing." )
@Description(shortDefinition="deny | permit", formalDefinition="Action to take - permit or deny - when the exception conditions are met." )
@ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/consent-except-type")
protected Enumeration<ConsentExceptType> type;
/**
* Relevant time or time-period when this Consent Exception is applicable.
* The timeframe in which data is controlled by this exception.
*/
@Child(name = "period", type = {Period.class}, order=2, min=0, max=1, modifier=false, summary=true)
@Description(shortDefinition="Consent Exception Effective Time", formalDefinition="Relevant time or time-period when this Consent Exception is applicable." )
@Description(shortDefinition="Timeframe for data controlled by this exception", formalDefinition="The timeframe in which data is controlled by this exception." )
protected Period period;
/**
@ -440,11 +440,11 @@ public class Consent extends DomainResource {
protected List<Coding> securityLabel;
/**
* A set of security labels that define the context of which actions are controlled by this exception. If more than one label is specified, operations must have all the specified labels.
* The context of the activities a user is taking - why the user is accessing the data - that are controlled by this exception.
*/
@Child(name = "purpose", type = {Coding.class}, order=6, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
@Description(shortDefinition="Security Labels for the operation/context", formalDefinition="A set of security labels that define the context of which actions are controlled by this exception. If more than one label is specified, operations must have all the specified labels." )
@ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/security-labels")
@Description(shortDefinition="Context of activities covered by this exception", formalDefinition="The context of the activities a user is taking - why the user is accessing the data - that are controlled by this exception." )
@ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/v3-PurposeOfUse")
protected List<Coding> purpose;
/**
@ -488,7 +488,7 @@ public class Consent extends DomainResource {
}
/**
* @return {@link #type} (How the exception is statement is applied, as adding additional consent, ore removing.). This is the underlying object with id, value and extensions. The accessor "getType" gives direct access to the value
* @return {@link #type} (Action to take - permit or deny - when the exception conditions are met.). This is the underlying object with id, value and extensions. The accessor "getType" gives direct access to the value
*/
public Enumeration<ConsentExceptType> getTypeElement() {
if (this.type == null)
@ -508,7 +508,7 @@ public class Consent extends DomainResource {
}
/**
* @param value {@link #type} (How the exception is statement is applied, as adding additional consent, ore removing.). This is the underlying object with id, value and extensions. The accessor "getType" gives direct access to the value
* @param value {@link #type} (Action to take - permit or deny - when the exception conditions are met.). This is the underlying object with id, value and extensions. The accessor "getType" gives direct access to the value
*/
public ExceptComponent setTypeElement(Enumeration<ConsentExceptType> value) {
this.type = value;
@ -516,14 +516,14 @@ public class Consent extends DomainResource {
}
/**
* @return How the exception is statement is applied, as adding additional consent, ore removing.
* @return Action to take - permit or deny - when the exception conditions are met.
*/
public ConsentExceptType getType() {
return this.type == null ? null : this.type.getValue();
}
/**
* @param value How the exception is statement is applied, as adding additional consent, ore removing.
* @param value Action to take - permit or deny - when the exception conditions are met.
*/
public ExceptComponent setType(ConsentExceptType value) {
if (this.type == null)
@ -533,7 +533,7 @@ public class Consent extends DomainResource {
}
/**
* @return {@link #period} (Relevant time or time-period when this Consent Exception is applicable.)
* @return {@link #period} (The timeframe in which data is controlled by this exception.)
*/
public Period getPeriod() {
if (this.period == null)
@ -549,7 +549,7 @@ public class Consent extends DomainResource {
}
/**
* @param value {@link #period} (Relevant time or time-period when this Consent Exception is applicable.)
* @param value {@link #period} (The timeframe in which data is controlled by this exception.)
*/
public ExceptComponent setPeriod(Period value) {
this.period = value;
@ -716,7 +716,7 @@ public class Consent extends DomainResource {
}
/**
* @return {@link #purpose} (A set of security labels that define the context of which actions are controlled by this exception. If more than one label is specified, operations must have all the specified labels.)
* @return {@link #purpose} (The context of the activities a user is taking - why the user is accessing the data - that are controlled by this exception.)
*/
public List<Coding> getPurpose() {
if (this.purpose == null)
@ -929,12 +929,12 @@ public class Consent extends DomainResource {
protected void listChildren(List<Property> childrenList) {
super.listChildren(childrenList);
childrenList.add(new Property("type", "code", "How the exception is statement is applied, as adding additional consent, ore removing.", 0, java.lang.Integer.MAX_VALUE, type));
childrenList.add(new Property("period", "Period", "Relevant time or time-period when this Consent Exception is applicable.", 0, java.lang.Integer.MAX_VALUE, period));
childrenList.add(new Property("type", "code", "Action to take - permit or deny - when the exception conditions are met.", 0, java.lang.Integer.MAX_VALUE, type));
childrenList.add(new Property("period", "Period", "The timeframe in which data is controlled by this exception.", 0, java.lang.Integer.MAX_VALUE, period));
childrenList.add(new Property("actor", "", "Who or what is controlled by this Exception. Use group to identify a set of actors by some property they share (e.g. 'admitting officers').", 0, java.lang.Integer.MAX_VALUE, actor));
childrenList.add(new Property("action", "CodeableConcept", "Actions controlled by this Exception.", 0, java.lang.Integer.MAX_VALUE, action));
childrenList.add(new Property("securityLabel", "Coding", "A set of security labels that define which resources are controlled by this exception. If more than one label is specified, all resources must have all the specified labels.", 0, java.lang.Integer.MAX_VALUE, securityLabel));
childrenList.add(new Property("purpose", "Coding", "A set of security labels that define the context of which actions are controlled by this exception. If more than one label is specified, operations must have all the specified labels.", 0, java.lang.Integer.MAX_VALUE, purpose));
childrenList.add(new Property("purpose", "Coding", "The context of the activities a user is taking - why the user is accessing the data - that are controlled by this exception.", 0, java.lang.Integer.MAX_VALUE, purpose));
childrenList.add(new Property("class", "Coding", "The class of information covered by this exception. The type can be a FHIR resource type, a profile on a type, or a CDA document, or some other type that indicates what sort of information the consent relates to.", 0, java.lang.Integer.MAX_VALUE, class_));
childrenList.add(new Property("code", "Coding", "If this code is found in an instance, then the exception applies. TODO: where do you not have to look? This is a problematic element.", 0, java.lang.Integer.MAX_VALUE, code));
childrenList.add(new Property("data", "", "The resources controlled by this exception, if specific resources are referenced.", 0, java.lang.Integer.MAX_VALUE, data));
@ -1665,25 +1665,33 @@ public class Consent extends DomainResource {
protected UriType policy;
/**
* Who or what is this Consent statement is intended for - which entity is being targeted for the consent statement.
* Actor whose access is controlled by this consent under the terms of the policy and exceptions.
*/
@Child(name = "recipient", type = {Device.class, Group.class, Organization.class, Patient.class, Practitioner.class, RelatedPerson.class, CareTeam.class}, order=10, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
@Description(shortDefinition="Who|what the consent is in regard to", formalDefinition="Who or what is this Consent statement is intended for - which entity is being targeted for the consent statement." )
@Description(shortDefinition="Whose access is controlled by the policy", formalDefinition="Actor whose access is controlled by this consent under the terms of the policy and exceptions." )
protected List<Reference> recipient;
/**
* The actual objects that are the target of the reference (Who or what is this Consent statement is intended for - which entity is being targeted for the consent statement.)
* The actual objects that are the target of the reference (Actor whose access is controlled by this consent under the terms of the policy and exceptions.)
*/
protected List<Resource> recipientTarget;
/**
* An exception to the base policy of this Consent.
* The context of the activities a user is taking - why the user is accessing the data - that are controlled by this consent.
*/
@Child(name = "except", type = {}, order=11, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
@Description(shortDefinition="Consent Exception", formalDefinition="An exception to the base policy of this Consent." )
@Child(name = "purpose", type = {Coding.class}, order=11, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
@Description(shortDefinition="Context of activities for which the agreement is made", formalDefinition="The context of the activities a user is taking - why the user is accessing the data - that are controlled by this consent." )
@ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/v3-PurposeOfUse")
protected List<Coding> purpose;
/**
* An exception to the base policy of this consent. An exception can be an addition or removal of access permissions.
*/
@Child(name = "except", type = {}, order=12, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
@Description(shortDefinition="Additional rule - addition or removal of permissions", formalDefinition="An exception to the base policy of this consent. An exception can be an addition or removal of access permissions." )
protected List<ExceptComponent> except;
private static final long serialVersionUID = 1122839630L;
private static final long serialVersionUID = -453805974L;
/**
* Constructor
@ -2152,7 +2160,7 @@ public class Consent extends DomainResource {
}
/**
* @return {@link #recipient} (Who or what is this Consent statement is intended for - which entity is being targeted for the consent statement.)
* @return {@link #recipient} (Actor whose access is controlled by this consent under the terms of the policy and exceptions.)
*/
public List<Reference> getRecipient() {
if (this.recipient == null)
@ -2215,7 +2223,60 @@ public class Consent extends DomainResource {
}
/**
* @return {@link #except} (An exception to the base policy of this Consent.)
* @return {@link #purpose} (The context of the activities a user is taking - why the user is accessing the data - that are controlled by this consent.)
*/
public List<Coding> getPurpose() {
if (this.purpose == null)
this.purpose = new ArrayList<Coding>();
return this.purpose;
}
/**
* @return Returns a reference to <code>this</code> for easy method chaining
*/
public Consent setPurpose(List<Coding> thePurpose) {
this.purpose = thePurpose;
return this;
}
public boolean hasPurpose() {
if (this.purpose == null)
return false;
for (Coding item : this.purpose)
if (!item.isEmpty())
return true;
return false;
}
public Coding addPurpose() { //3
Coding t = new Coding();
if (this.purpose == null)
this.purpose = new ArrayList<Coding>();
this.purpose.add(t);
return t;
}
public Consent addPurpose(Coding t) { //3
if (t == null)
return this;
if (this.purpose == null)
this.purpose = new ArrayList<Coding>();
this.purpose.add(t);
return this;
}
/**
* @return The first repetition of repeating field {@link #purpose}, creating it if it does not already exist
*/
public Coding getPurposeFirstRep() {
if (getPurpose().isEmpty()) {
addPurpose();
}
return getPurpose().get(0);
}
/**
* @return {@link #except} (An exception to the base policy of this consent. An exception can be an addition or removal of access permissions.)
*/
public List<ExceptComponent> getExcept() {
if (this.except == null)
@ -2279,8 +2340,9 @@ public class Consent extends DomainResource {
childrenList.add(new Property("organization", "Reference(Organization)", "The organization that manages the consent, and the framework within which it is executed.", 0, java.lang.Integer.MAX_VALUE, organization));
childrenList.add(new Property("source[x]", "Attachment|Identifier|Reference(Consent|DocumentReference|Contract|QuestionnaireResponse)", "The source on which this consent statement is based. The source might be a scanned original paper form, or a reference to a consent that links back to such a source, a reference to a document repository (e.g. XDS) that stores the original consent document.", 0, java.lang.Integer.MAX_VALUE, source));
childrenList.add(new Property("policy", "uri", "A reference to the policy that this consents to. Policies may be organizational, but are often defined jurisdictionally, or in law.", 0, java.lang.Integer.MAX_VALUE, policy));
childrenList.add(new Property("recipient", "Reference(Device|Group|Organization|Patient|Practitioner|RelatedPerson|CareTeam)", "Who or what is this Consent statement is intended for - which entity is being targeted for the consent statement.", 0, java.lang.Integer.MAX_VALUE, recipient));
childrenList.add(new Property("except", "", "An exception to the base policy of this Consent.", 0, java.lang.Integer.MAX_VALUE, except));
childrenList.add(new Property("recipient", "Reference(Device|Group|Organization|Patient|Practitioner|RelatedPerson|CareTeam)", "Actor whose access is controlled by this consent under the terms of the policy and exceptions.", 0, java.lang.Integer.MAX_VALUE, recipient));
childrenList.add(new Property("purpose", "Coding", "The context of the activities a user is taking - why the user is accessing the data - that are controlled by this consent.", 0, java.lang.Integer.MAX_VALUE, purpose));
childrenList.add(new Property("except", "", "An exception to the base policy of this consent. An exception can be an addition or removal of access permissions.", 0, java.lang.Integer.MAX_VALUE, except));
}
@Override
@ -2297,6 +2359,7 @@ public class Consent extends DomainResource {
case -896505829: /*source*/ return this.source == null ? new Base[0] : new Base[] {this.source}; // Type
case -982670030: /*policy*/ return this.policy == null ? new Base[0] : new Base[] {this.policy}; // UriType
case 820081177: /*recipient*/ return this.recipient == null ? new Base[0] : this.recipient.toArray(new Base[this.recipient.size()]); // Reference
case -220463842: /*purpose*/ return this.purpose == null ? new Base[0] : this.purpose.toArray(new Base[this.purpose.size()]); // Coding
case -1289550567: /*except*/ return this.except == null ? new Base[0] : this.except.toArray(new Base[this.except.size()]); // ExceptComponent
default: return super.getProperty(hash, name, checkValid);
}
@ -2339,6 +2402,9 @@ public class Consent extends DomainResource {
case 820081177: // recipient
this.getRecipient().add(castToReference(value)); // Reference
break;
case -220463842: // purpose
this.getPurpose().add(castToCoding(value)); // Coding
break;
case -1289550567: // except
this.getExcept().add((ExceptComponent) value); // ExceptComponent
break;
@ -2371,6 +2437,8 @@ public class Consent extends DomainResource {
this.policy = castToUri(value); // UriType
else if (name.equals("recipient"))
this.getRecipient().add(castToReference(value));
else if (name.equals("purpose"))
this.getPurpose().add(castToCoding(value));
else if (name.equals("except"))
this.getExcept().add((ExceptComponent) value);
else
@ -2391,6 +2459,7 @@ public class Consent extends DomainResource {
case -1698413947: return getSource(); // Type
case -982670030: throw new FHIRException("Cannot make property policy as it is not a complex type"); // UriType
case 820081177: return addRecipient(); // Reference
case -220463842: return addPurpose(); // Coding
case -1289550567: return addExcept(); // ExceptComponent
default: return super.makeProperty(hash, name);
}
@ -2445,6 +2514,9 @@ public class Consent extends DomainResource {
else if (name.equals("recipient")) {
return addRecipient();
}
else if (name.equals("purpose")) {
return addPurpose();
}
else if (name.equals("except")) {
return addExcept();
}
@ -2483,6 +2555,11 @@ public class Consent extends DomainResource {
for (Reference i : recipient)
dst.recipient.add(i.copy());
};
if (purpose != null) {
dst.purpose = new ArrayList<Coding>();
for (Coding i : purpose)
dst.purpose.add(i.copy());
};
if (except != null) {
dst.except = new ArrayList<ExceptComponent>();
for (ExceptComponent i : except)
@ -2506,7 +2583,7 @@ public class Consent extends DomainResource {
&& compareDeep(dateTime, o.dateTime, true) && compareDeep(period, o.period, true) && compareDeep(patient, o.patient, true)
&& compareDeep(consentor, o.consentor, true) && compareDeep(organization, o.organization, true)
&& compareDeep(source, o.source, true) && compareDeep(policy, o.policy, true) && compareDeep(recipient, o.recipient, true)
&& compareDeep(except, o.except, true);
&& compareDeep(purpose, o.purpose, true) && compareDeep(except, o.except, true);
}
@Override
@ -2523,7 +2600,7 @@ public class Consent extends DomainResource {
public boolean isEmpty() {
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(identifier, status, category
, dateTime, period, patient, consentor, organization, source, policy, recipient
, except);
, purpose, except);
}
@Override
@ -2620,17 +2697,17 @@ public class Consent extends DomainResource {
/**
* Search parameter: <b>purpose</b>
* <p>
* Description: <b>Security Labels for the operation/context</b><br>
* Description: <b>Context of activities covered by this exception</b><br>
* Type: <b>token</b><br>
* Path: <b>Consent.except.purpose</b><br>
* </p>
*/
@SearchParamDefinition(name="purpose", path="Consent.except.purpose", description="Security Labels for the operation/context", type="token" )
@SearchParamDefinition(name="purpose", path="Consent.except.purpose", description="Context of activities covered by this exception", type="token" )
public static final String SP_PURPOSE = "purpose";
/**
* <b>Fluent Client</b> search parameter constant for <b>purpose</b>
* <p>
* Description: <b>Security Labels for the operation/context</b><br>
* Description: <b>Context of activities covered by this exception</b><br>
* Type: <b>token</b><br>
* Path: <b>Consent.except.purpose</b><br>
* </p>
@ -2764,17 +2841,17 @@ public class Consent extends DomainResource {
/**
* Search parameter: <b>recipient</b>
* <p>
* Description: <b>Who|what the consent is in regard to</b><br>
* Description: <b>Whose access is controlled by the policy</b><br>
* Type: <b>reference</b><br>
* Path: <b>Consent.recipient</b><br>
* </p>
*/
@SearchParamDefinition(name="recipient", path="Consent.recipient", description="Who|what the consent is in regard to", type="reference", target={CareTeam.class, Device.class, Group.class, Organization.class, Patient.class, Practitioner.class, RelatedPerson.class } )
@SearchParamDefinition(name="recipient", path="Consent.recipient", description="Whose access is controlled by the policy", type="reference", target={CareTeam.class, Device.class, Group.class, Organization.class, Patient.class, Practitioner.class, RelatedPerson.class } )
public static final String SP_RECIPIENT = "recipient";
/**
* <b>Fluent Client</b> search parameter constant for <b>recipient</b>
* <p>
* Description: <b>Who|what the consent is in regard to</b><br>
* Description: <b>Whose access is controlled by the policy</b><br>
* Type: <b>reference</b><br>
* Path: <b>Consent.recipient</b><br>
* </p>

View File

@ -29,12 +29,12 @@ package org.hl7.fhir.dstu3.model;
*/
// Generated on Fri, Apr 1, 2016 17:57-0400 for FHIR v1.4.0
// Generated on Wed, Aug 3, 2016 09:39-0400 for FHIR v1.5.0
public class Constants {
public final static String VERSION = "1.4.0";
public final static String REVISION = "8139";
public final static String DATE = "Fri Apr 01 17:57:29 EDT 2016";
public final static String VERSION = "1.5.0";
public final static String REVISION = "9395";
public final static String DATE = "Wed Aug 03 09:39:24 EDT 2016";
}

View File

@ -29,7 +29,7 @@ package org.hl7.fhir.dstu3.model;
*/
// Generated on Tue, Jul 12, 2016 12:04-0400 for FHIR v1.5.0
// Generated on Wed, Aug 3, 2016 09:39-0400 for FHIR v1.5.0
import java.util.*;

View File

@ -29,7 +29,7 @@ package org.hl7.fhir.dstu3.model;
*/
// Generated on Tue, Jul 12, 2016 12:04-0400 for FHIR v1.5.0
// Generated on Wed, Aug 3, 2016 09:39-0400 for FHIR v1.5.0
import java.util.*;

View File

@ -29,7 +29,7 @@ package org.hl7.fhir.dstu3.model;
*/
// Generated on Tue, Jul 12, 2016 12:04-0400 for FHIR v1.5.0
// Generated on Wed, Aug 3, 2016 09:39-0400 for FHIR v1.5.0
import java.util.*;

View File

@ -29,7 +29,7 @@ package org.hl7.fhir.dstu3.model;
*/
// Generated on Tue, Jul 12, 2016 12:04-0400 for FHIR v1.5.0
// Generated on Wed, Aug 3, 2016 09:39-0400 for FHIR v1.5.0
import java.util.*;

View File

@ -29,7 +29,7 @@ package org.hl7.fhir.dstu3.model;
*/
// Generated on Tue, Jul 12, 2016 12:04-0400 for FHIR v1.5.0
// Generated on Wed, Aug 3, 2016 09:39-0400 for FHIR v1.5.0
import java.util.*;

View File

@ -29,7 +29,7 @@ package org.hl7.fhir.dstu3.model;
*/
// Generated on Tue, Jul 12, 2016 12:04-0400 for FHIR v1.5.0
// Generated on Wed, Aug 3, 2016 09:39-0400 for FHIR v1.5.0
import java.util.*;
@ -253,42 +253,56 @@ public class Coverage extends DomainResource {
/**
* Identifies a style or collective of coverage issues by the underwriter, for example may be used to identify a class of coverage or employer group. May also be referred to as a Policy or Group ID.
*/
@Child(name = "plan", type = {StringType.class}, order=11, min=0, max=1, modifier=false, summary=true)
@Child(name = "subGroup", type = {StringType.class}, order=11, min=0, max=1, modifier=false, summary=true)
@Description(shortDefinition="An identifier for the subsection of the group", formalDefinition="Identifies a style or collective of coverage issues by the underwriter, for example may be used to identify a class of coverage or employer group. May also be referred to as a Policy or Group ID." )
protected StringType subGroup;
/**
* Identifies a style or collective of coverage issues by the underwriter, for example may be used to identify a class of coverage or employer group. May also be referred to as a Policy or Group ID.
*/
@Child(name = "plan", type = {StringType.class}, order=12, min=0, max=1, modifier=false, summary=true)
@Description(shortDefinition="An identifier for the plan", formalDefinition="Identifies a style or collective of coverage issues by the underwriter, for example may be used to identify a class of coverage or employer group. May also be referred to as a Policy or Group ID." )
protected StringType plan;
/**
* Identifies a sub-style or sub-collective of coverage issues by the underwriter, for example may be used to identify a specific employer group within a class of employers. May be referred to as a Section or Division ID.
*/
@Child(name = "subPlan", type = {StringType.class}, order=12, min=0, max=1, modifier=false, summary=true)
@Child(name = "subPlan", type = {StringType.class}, order=13, min=0, max=1, modifier=false, summary=true)
@Description(shortDefinition="An identifier for the subsection of the plan", formalDefinition="Identifies a sub-style or sub-collective of coverage issues by the underwriter, for example may be used to identify a specific employer group within a class of employers. May be referred to as a Section or Division ID." )
protected StringType subPlan;
/**
* Identifies a style or collective of coverage issues by the underwriter, for example may be used to identify a class of coverage or employer group.
*/
@Child(name = "class", type = {StringType.class}, order=14, min=0, max=1, modifier=false, summary=true)
@Description(shortDefinition="An identifier for the class", formalDefinition="Identifies a style or collective of coverage issues by the underwriter, for example may be used to identify a class of coverage or employer group." )
protected StringType class_;
/**
* A unique identifier for a dependent under the coverage.
*/
@Child(name = "dependent", type = {PositiveIntType.class}, order=13, min=0, max=1, modifier=false, summary=true)
@Child(name = "dependent", type = {PositiveIntType.class}, order=15, min=0, max=1, modifier=false, summary=true)
@Description(shortDefinition="Dependent number", formalDefinition="A unique identifier for a dependent under the coverage." )
protected PositiveIntType dependent;
/**
* An optional counter for a particular instance of the identified coverage which increments upon each renewal.
*/
@Child(name = "sequence", type = {PositiveIntType.class}, order=14, min=0, max=1, modifier=false, summary=true)
@Child(name = "sequence", type = {PositiveIntType.class}, order=16, min=0, max=1, modifier=false, summary=true)
@Description(shortDefinition="The plan instance or sequence counter", formalDefinition="An optional counter for a particular instance of the identified coverage which increments upon each renewal." )
protected PositiveIntType sequence;
/**
* The identifier for a community of providers.
*/
@Child(name = "network", type = {StringType.class}, order=15, min=0, max=1, modifier=false, summary=true)
@Child(name = "network", type = {StringType.class}, order=17, min=0, max=1, modifier=false, summary=true)
@Description(shortDefinition="Insurer network", formalDefinition="The identifier for a community of providers." )
protected StringType network;
/**
* The policy(s) which constitute this insurance coverage.
*/
@Child(name = "contract", type = {Contract.class}, order=16, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
@Child(name = "contract", type = {Contract.class}, order=18, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
@Description(shortDefinition="Contract details", formalDefinition="The policy(s) which constitute this insurance coverage." )
protected List<Reference> contract;
/**
@ -297,7 +311,7 @@ public class Coverage extends DomainResource {
protected List<Contract> contractTarget;
private static final long serialVersionUID = 236069267L;
private static final long serialVersionUID = -841734565L;
/**
* Constructor
@ -766,6 +780,55 @@ public class Coverage extends DomainResource {
return this;
}
/**
* @return {@link #subGroup} (Identifies a style or collective of coverage issues by the underwriter, for example may be used to identify a class of coverage or employer group. May also be referred to as a Policy or Group ID.). This is the underlying object with id, value and extensions. The accessor "getSubGroup" gives direct access to the value
*/
public StringType getSubGroupElement() {
if (this.subGroup == null)
if (Configuration.errorOnAutoCreate())
throw new Error("Attempt to auto-create Coverage.subGroup");
else if (Configuration.doAutoCreate())
this.subGroup = new StringType(); // bb
return this.subGroup;
}
public boolean hasSubGroupElement() {
return this.subGroup != null && !this.subGroup.isEmpty();
}
public boolean hasSubGroup() {
return this.subGroup != null && !this.subGroup.isEmpty();
}
/**
* @param value {@link #subGroup} (Identifies a style or collective of coverage issues by the underwriter, for example may be used to identify a class of coverage or employer group. May also be referred to as a Policy or Group ID.). This is the underlying object with id, value and extensions. The accessor "getSubGroup" gives direct access to the value
*/
public Coverage setSubGroupElement(StringType value) {
this.subGroup = value;
return this;
}
/**
* @return Identifies a style or collective of coverage issues by the underwriter, for example may be used to identify a class of coverage or employer group. May also be referred to as a Policy or Group ID.
*/
public String getSubGroup() {
return this.subGroup == null ? null : this.subGroup.getValue();
}
/**
* @param value Identifies a style or collective of coverage issues by the underwriter, for example may be used to identify a class of coverage or employer group. May also be referred to as a Policy or Group ID.
*/
public Coverage setSubGroup(String value) {
if (Utilities.noString(value))
this.subGroup = null;
else {
if (this.subGroup == null)
this.subGroup = new StringType();
this.subGroup.setValue(value);
}
return this;
}
/**
* @return {@link #plan} (Identifies a style or collective of coverage issues by the underwriter, for example may be used to identify a class of coverage or employer group. May also be referred to as a Policy or Group ID.). This is the underlying object with id, value and extensions. The accessor "getPlan" gives direct access to the value
*/
@ -864,6 +927,55 @@ public class Coverage extends DomainResource {
return this;
}
/**
* @return {@link #class_} (Identifies a style or collective of coverage issues by the underwriter, for example may be used to identify a class of coverage or employer group.). This is the underlying object with id, value and extensions. The accessor "getClass_" gives direct access to the value
*/
public StringType getClass_Element() {
if (this.class_ == null)
if (Configuration.errorOnAutoCreate())
throw new Error("Attempt to auto-create Coverage.class_");
else if (Configuration.doAutoCreate())
this.class_ = new StringType(); // bb
return this.class_;
}
public boolean hasClass_Element() {
return this.class_ != null && !this.class_.isEmpty();
}
public boolean hasClass_() {
return this.class_ != null && !this.class_.isEmpty();
}
/**
* @param value {@link #class_} (Identifies a style or collective of coverage issues by the underwriter, for example may be used to identify a class of coverage or employer group.). This is the underlying object with id, value and extensions. The accessor "getClass_" gives direct access to the value
*/
public Coverage setClass_Element(StringType value) {
this.class_ = value;
return this;
}
/**
* @return Identifies a style or collective of coverage issues by the underwriter, for example may be used to identify a class of coverage or employer group.
*/
public String getClass_() {
return this.class_ == null ? null : this.class_.getValue();
}
/**
* @param value Identifies a style or collective of coverage issues by the underwriter, for example may be used to identify a class of coverage or employer group.
*/
public Coverage setClass_(String value) {
if (Utilities.noString(value))
this.class_ = null;
else {
if (this.class_ == null)
this.class_ = new StringType();
this.class_.setValue(value);
}
return this;
}
/**
* @return {@link #dependent} (A unique identifier for a dependent under the coverage.). This is the underlying object with id, value and extensions. The accessor "getDependent" gives direct access to the value
*/
@ -1091,8 +1203,10 @@ public class Coverage extends DomainResource {
childrenList.add(new Property("relationship", "Coding", "The relationship of beneficiary (patient) (subscriber) to the the planholder.", 0, java.lang.Integer.MAX_VALUE, relationship));
childrenList.add(new Property("identifier", "Identifier", "The main (and possibly only) identifier for the coverage - often referred to as a Member Id, Subscriber Id, Certificate number or Personal Health Number or Case ID.", 0, java.lang.Integer.MAX_VALUE, identifier));
childrenList.add(new Property("group", "string", "Identifies a style or collective of coverage issues by the underwriter, for example may be used to identify a class of coverage or employer group. May also be referred to as a Policy or Group ID.", 0, java.lang.Integer.MAX_VALUE, group));
childrenList.add(new Property("subGroup", "string", "Identifies a style or collective of coverage issues by the underwriter, for example may be used to identify a class of coverage or employer group. May also be referred to as a Policy or Group ID.", 0, java.lang.Integer.MAX_VALUE, subGroup));
childrenList.add(new Property("plan", "string", "Identifies a style or collective of coverage issues by the underwriter, for example may be used to identify a class of coverage or employer group. May also be referred to as a Policy or Group ID.", 0, java.lang.Integer.MAX_VALUE, plan));
childrenList.add(new Property("subPlan", "string", "Identifies a sub-style or sub-collective of coverage issues by the underwriter, for example may be used to identify a specific employer group within a class of employers. May be referred to as a Section or Division ID.", 0, java.lang.Integer.MAX_VALUE, subPlan));
childrenList.add(new Property("class", "string", "Identifies a style or collective of coverage issues by the underwriter, for example may be used to identify a class of coverage or employer group.", 0, java.lang.Integer.MAX_VALUE, class_));
childrenList.add(new Property("dependent", "positiveInt", "A unique identifier for a dependent under the coverage.", 0, java.lang.Integer.MAX_VALUE, dependent));
childrenList.add(new Property("sequence", "positiveInt", "An optional counter for a particular instance of the identified coverage which increments upon each renewal.", 0, java.lang.Integer.MAX_VALUE, sequence));
childrenList.add(new Property("network", "string", "The identifier for a community of providers.", 0, java.lang.Integer.MAX_VALUE, network));
@ -1113,8 +1227,10 @@ public class Coverage extends DomainResource {
case -261851592: /*relationship*/ return this.relationship == null ? new Base[0] : new Base[] {this.relationship}; // Coding
case -1618432855: /*identifier*/ return this.identifier == null ? new Base[0] : this.identifier.toArray(new Base[this.identifier.size()]); // Identifier
case 98629247: /*group*/ return this.group == null ? new Base[0] : new Base[] {this.group}; // StringType
case -2101792737: /*subGroup*/ return this.subGroup == null ? new Base[0] : new Base[] {this.subGroup}; // StringType
case 3443497: /*plan*/ return this.plan == null ? new Base[0] : new Base[] {this.plan}; // StringType
case -1868653175: /*subPlan*/ return this.subPlan == null ? new Base[0] : new Base[] {this.subPlan}; // StringType
case 94742904: /*class*/ return this.class_ == null ? new Base[0] : new Base[] {this.class_}; // StringType
case -1109226753: /*dependent*/ return this.dependent == null ? new Base[0] : new Base[] {this.dependent}; // PositiveIntType
case 1349547969: /*sequence*/ return this.sequence == null ? new Base[0] : new Base[] {this.sequence}; // PositiveIntType
case 1843485230: /*network*/ return this.network == null ? new Base[0] : new Base[] {this.network}; // StringType
@ -1160,12 +1276,18 @@ public class Coverage extends DomainResource {
case 98629247: // group
this.group = castToString(value); // StringType
break;
case -2101792737: // subGroup
this.subGroup = castToString(value); // StringType
break;
case 3443497: // plan
this.plan = castToString(value); // StringType
break;
case -1868653175: // subPlan
this.subPlan = castToString(value); // StringType
break;
case 94742904: // class
this.class_ = castToString(value); // StringType
break;
case -1109226753: // dependent
this.dependent = castToPositiveInt(value); // PositiveIntType
break;
@ -1207,10 +1329,14 @@ public class Coverage extends DomainResource {
this.getIdentifier().add(castToIdentifier(value));
else if (name.equals("group"))
this.group = castToString(value); // StringType
else if (name.equals("subGroup"))
this.subGroup = castToString(value); // StringType
else if (name.equals("plan"))
this.plan = castToString(value); // StringType
else if (name.equals("subPlan"))
this.subPlan = castToString(value); // StringType
else if (name.equals("class"))
this.class_ = castToString(value); // StringType
else if (name.equals("dependent"))
this.dependent = castToPositiveInt(value); // PositiveIntType
else if (name.equals("sequence"))
@ -1237,8 +1363,10 @@ public class Coverage extends DomainResource {
case -261851592: return getRelationship(); // Coding
case -1618432855: return addIdentifier(); // Identifier
case 98629247: throw new FHIRException("Cannot make property group as it is not a complex type"); // StringType
case -2101792737: throw new FHIRException("Cannot make property subGroup as it is not a complex type"); // StringType
case 3443497: throw new FHIRException("Cannot make property plan as it is not a complex type"); // StringType
case -1868653175: throw new FHIRException("Cannot make property subPlan as it is not a complex type"); // StringType
case 94742904: throw new FHIRException("Cannot make property class as it is not a complex type"); // StringType
case -1109226753: throw new FHIRException("Cannot make property dependent as it is not a complex type"); // PositiveIntType
case 1349547969: throw new FHIRException("Cannot make property sequence as it is not a complex type"); // PositiveIntType
case 1843485230: throw new FHIRException("Cannot make property network as it is not a complex type"); // StringType
@ -1301,12 +1429,18 @@ public class Coverage extends DomainResource {
else if (name.equals("group")) {
throw new FHIRException("Cannot call addChild on a primitive type Coverage.group");
}
else if (name.equals("subGroup")) {
throw new FHIRException("Cannot call addChild on a primitive type Coverage.subGroup");
}
else if (name.equals("plan")) {
throw new FHIRException("Cannot call addChild on a primitive type Coverage.plan");
}
else if (name.equals("subPlan")) {
throw new FHIRException("Cannot call addChild on a primitive type Coverage.subPlan");
}
else if (name.equals("class")) {
throw new FHIRException("Cannot call addChild on a primitive type Coverage.class");
}
else if (name.equals("dependent")) {
throw new FHIRException("Cannot call addChild on a primitive type Coverage.dependent");
}
@ -1346,8 +1480,10 @@ public class Coverage extends DomainResource {
dst.identifier.add(i.copy());
};
dst.group = group == null ? null : group.copy();
dst.subGroup = subGroup == null ? null : subGroup.copy();
dst.plan = plan == null ? null : plan.copy();
dst.subPlan = subPlan == null ? null : subPlan.copy();
dst.class_ = class_ == null ? null : class_.copy();
dst.dependent = dependent == null ? null : dependent.copy();
dst.sequence = sequence == null ? null : sequence.copy();
dst.network = network == null ? null : network.copy();
@ -1374,9 +1510,10 @@ public class Coverage extends DomainResource {
&& compareDeep(bin, o.bin, true) && compareDeep(period, o.period, true) && compareDeep(type, o.type, true)
&& compareDeep(planholder, o.planholder, true) && compareDeep(beneficiary, o.beneficiary, true)
&& compareDeep(relationship, o.relationship, true) && compareDeep(identifier, o.identifier, true)
&& compareDeep(group, o.group, true) && compareDeep(plan, o.plan, true) && compareDeep(subPlan, o.subPlan, true)
&& compareDeep(dependent, o.dependent, true) && compareDeep(sequence, o.sequence, true) && compareDeep(network, o.network, true)
&& compareDeep(contract, o.contract, true);
&& compareDeep(group, o.group, true) && compareDeep(subGroup, o.subGroup, true) && compareDeep(plan, o.plan, true)
&& compareDeep(subPlan, o.subPlan, true) && compareDeep(class_, o.class_, true) && compareDeep(dependent, o.dependent, true)
&& compareDeep(sequence, o.sequence, true) && compareDeep(network, o.network, true) && compareDeep(contract, o.contract, true)
;
}
@Override
@ -1387,15 +1524,15 @@ public class Coverage extends DomainResource {
return false;
Coverage o = (Coverage) other;
return compareValues(status, o.status, true) && compareValues(isAgreement, o.isAgreement, true) && compareValues(bin, o.bin, true)
&& compareValues(group, o.group, true) && compareValues(plan, o.plan, true) && compareValues(subPlan, o.subPlan, true)
&& compareValues(dependent, o.dependent, true) && compareValues(sequence, o.sequence, true) && compareValues(network, o.network, true)
;
&& compareValues(group, o.group, true) && compareValues(subGroup, o.subGroup, true) && compareValues(plan, o.plan, true)
&& compareValues(subPlan, o.subPlan, true) && compareValues(class_, o.class_, true) && compareValues(dependent, o.dependent, true)
&& compareValues(sequence, o.sequence, true) && compareValues(network, o.network, true);
}
public boolean isEmpty() {
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(status, issuer, isAgreement
, bin, period, type, planholder, beneficiary, relationship, identifier, group
, plan, subPlan, dependent, sequence, network, contract);
, subGroup, plan, subPlan, class_, dependent, sequence, network, contract);
}
@Override
@ -1424,30 +1561,24 @@ public class Coverage extends DomainResource {
public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_IDENTIFIER);
/**
* Search parameter: <b>issuerreference</b>
* Search parameter: <b>subgroup</b>
* <p>
* Description: <b>The identity of the insurer</b><br>
* Type: <b>reference</b><br>
* Path: <b>Coverage.issuerReference</b><br>
* Description: <b>Sub-group identifier</b><br>
* Type: <b>token</b><br>
* Path: <b>Coverage.subGroup</b><br>
* </p>
*/
@SearchParamDefinition(name="issuerreference", path="Coverage.issuer.as(Reference)", description="The identity of the insurer", type="reference", target={Organization.class, Patient.class, RelatedPerson.class } )
public static final String SP_ISSUERREFERENCE = "issuerreference";
@SearchParamDefinition(name="subgroup", path="Coverage.subGroup", description="Sub-group identifier", type="token" )
public static final String SP_SUBGROUP = "subgroup";
/**
* <b>Fluent Client</b> search parameter constant for <b>issuerreference</b>
* <b>Fluent Client</b> search parameter constant for <b>subgroup</b>
* <p>
* Description: <b>The identity of the insurer</b><br>
* Type: <b>reference</b><br>
* Path: <b>Coverage.issuerReference</b><br>
* Description: <b>Sub-group identifier</b><br>
* Type: <b>token</b><br>
* Path: <b>Coverage.subGroup</b><br>
* </p>
*/
public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam ISSUERREFERENCE = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_ISSUERREFERENCE);
/**
* Constant for fluent queries to be used to add include statements. Specifies
* the path value of "<b>Coverage:issuerreference</b>".
*/
public static final ca.uhn.fhir.model.api.Include INCLUDE_ISSUERREFERENCE = new ca.uhn.fhir.model.api.Include("Coverage:issuerreference").toLocked();
public static final ca.uhn.fhir.rest.gclient.TokenClientParam SUBGROUP = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_SUBGROUP);
/**
* Search parameter: <b>subplan</b>
@ -1469,6 +1600,26 @@ public class Coverage extends DomainResource {
*/
public static final ca.uhn.fhir.rest.gclient.TokenClientParam SUBPLAN = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_SUBPLAN);
/**
* Search parameter: <b>beneficiary-identifier</b>
* <p>
* Description: <b>Covered party</b><br>
* Type: <b>token</b><br>
* Path: <b>Coverage.beneficiaryIdentifier</b><br>
* </p>
*/
@SearchParamDefinition(name="beneficiary-identifier", path="Coverage.beneficiary.as(Identifier)", description="Covered party", type="token" )
public static final String SP_BENEFICIARY_IDENTIFIER = "beneficiary-identifier";
/**
* <b>Fluent Client</b> search parameter constant for <b>beneficiary-identifier</b>
* <p>
* Description: <b>Covered party</b><br>
* Type: <b>token</b><br>
* Path: <b>Coverage.beneficiaryIdentifier</b><br>
* </p>
*/
public static final ca.uhn.fhir.rest.gclient.TokenClientParam BENEFICIARY_IDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_BENEFICIARY_IDENTIFIER);
/**
* Search parameter: <b>type</b>
* <p>
@ -1490,110 +1641,116 @@ public class Coverage extends DomainResource {
public static final ca.uhn.fhir.rest.gclient.TokenClientParam TYPE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_TYPE);
/**
* Search parameter: <b>beneficiaryidentifier</b>
* Search parameter: <b>issuer-reference</b>
* <p>
* Description: <b>Covered party</b><br>
* Type: <b>token</b><br>
* Path: <b>Coverage.beneficiaryIdentifier</b><br>
* Description: <b>The identity of the insurer</b><br>
* Type: <b>reference</b><br>
* Path: <b>Coverage.issuerReference</b><br>
* </p>
*/
@SearchParamDefinition(name="beneficiaryidentifier", path="Coverage.beneficiary.as(Identifier)", description="Covered party", type="token" )
public static final String SP_BENEFICIARYIDENTIFIER = "beneficiaryidentifier";
@SearchParamDefinition(name="issuer-reference", path="Coverage.issuer.as(Reference)", description="The identity of the insurer", type="reference", target={Organization.class, Patient.class, RelatedPerson.class } )
public static final String SP_ISSUER_REFERENCE = "issuer-reference";
/**
* <b>Fluent Client</b> search parameter constant for <b>beneficiaryidentifier</b>
* <b>Fluent Client</b> search parameter constant for <b>issuer-reference</b>
* <p>
* Description: <b>Covered party</b><br>
* Type: <b>token</b><br>
* Path: <b>Coverage.beneficiaryIdentifier</b><br>
* Description: <b>The identity of the insurer</b><br>
* Type: <b>reference</b><br>
* Path: <b>Coverage.issuerReference</b><br>
* </p>
*/
public static final ca.uhn.fhir.rest.gclient.TokenClientParam BENEFICIARYIDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_BENEFICIARYIDENTIFIER);
public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam ISSUER_REFERENCE = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_ISSUER_REFERENCE);
/**
* Constant for fluent queries to be used to add include statements. Specifies
* the path value of "<b>Coverage:issuer-reference</b>".
*/
public static final ca.uhn.fhir.model.api.Include INCLUDE_ISSUER_REFERENCE = new ca.uhn.fhir.model.api.Include("Coverage:issuer-reference").toLocked();
/**
* Search parameter: <b>planholderidentifier</b>
* Search parameter: <b>planholder-identifier</b>
* <p>
* Description: <b>Reference to the planholder</b><br>
* Type: <b>token</b><br>
* Path: <b>Coverage.planholderIdentifier</b><br>
* </p>
*/
@SearchParamDefinition(name="planholderidentifier", path="Coverage.planholder.as(Identifier)", description="Reference to the planholder", type="token" )
public static final String SP_PLANHOLDERIDENTIFIER = "planholderidentifier";
@SearchParamDefinition(name="planholder-identifier", path="Coverage.planholder.as(Identifier)", description="Reference to the planholder", type="token" )
public static final String SP_PLANHOLDER_IDENTIFIER = "planholder-identifier";
/**
* <b>Fluent Client</b> search parameter constant for <b>planholderidentifier</b>
* <b>Fluent Client</b> search parameter constant for <b>planholder-identifier</b>
* <p>
* Description: <b>Reference to the planholder</b><br>
* Type: <b>token</b><br>
* Path: <b>Coverage.planholderIdentifier</b><br>
* </p>
*/
public static final ca.uhn.fhir.rest.gclient.TokenClientParam PLANHOLDERIDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_PLANHOLDERIDENTIFIER);
public static final ca.uhn.fhir.rest.gclient.TokenClientParam PLANHOLDER_IDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_PLANHOLDER_IDENTIFIER);
/**
* Search parameter: <b>sequence</b>
* <p>
* Description: <b>Sequence number</b><br>
* Type: <b>token</b><br>
* Type: <b>number</b><br>
* Path: <b>Coverage.sequence</b><br>
* </p>
*/
@SearchParamDefinition(name="sequence", path="Coverage.sequence", description="Sequence number", type="token" )
@SearchParamDefinition(name="sequence", path="Coverage.sequence", description="Sequence number", type="number" )
public static final String SP_SEQUENCE = "sequence";
/**
* <b>Fluent Client</b> search parameter constant for <b>sequence</b>
* <p>
* Description: <b>Sequence number</b><br>
* Type: <b>token</b><br>
* Type: <b>number</b><br>
* Path: <b>Coverage.sequence</b><br>
* </p>
*/
public static final ca.uhn.fhir.rest.gclient.TokenClientParam SEQUENCE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_SEQUENCE);
public static final ca.uhn.fhir.rest.gclient.NumberClientParam SEQUENCE = new ca.uhn.fhir.rest.gclient.NumberClientParam(SP_SEQUENCE);
/**
* Search parameter: <b>planholderreference</b>
* Search parameter: <b>issuer-identifier</b>
* <p>
* Description: <b>Reference to the planholder</b><br>
* Type: <b>reference</b><br>
* Path: <b>Coverage.planholderReference</b><br>
* Description: <b>The identity of the insurer</b><br>
* Type: <b>token</b><br>
* Path: <b>Coverage.issuerIdentifier</b><br>
* </p>
*/
@SearchParamDefinition(name="planholderreference", path="Coverage.planholder.as(Reference)", description="Reference to the planholder", type="reference", target={Organization.class, Patient.class } )
public static final String SP_PLANHOLDERREFERENCE = "planholderreference";
@SearchParamDefinition(name="issuer-identifier", path="Coverage.issuer.as(Identifier)", description="The identity of the insurer", type="token" )
public static final String SP_ISSUER_IDENTIFIER = "issuer-identifier";
/**
* <b>Fluent Client</b> search parameter constant for <b>planholderreference</b>
* <b>Fluent Client</b> search parameter constant for <b>issuer-identifier</b>
* <p>
* Description: <b>The identity of the insurer</b><br>
* Type: <b>token</b><br>
* Path: <b>Coverage.issuerIdentifier</b><br>
* </p>
*/
public static final ca.uhn.fhir.rest.gclient.TokenClientParam ISSUER_IDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_ISSUER_IDENTIFIER);
/**
* Search parameter: <b>planholder-reference</b>
* <p>
* Description: <b>Reference to the planholder</b><br>
* Type: <b>reference</b><br>
* Path: <b>Coverage.planholderReference</b><br>
* </p>
*/
public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PLANHOLDERREFERENCE = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_PLANHOLDERREFERENCE);
@SearchParamDefinition(name="planholder-reference", path="Coverage.planholder.as(Reference)", description="Reference to the planholder", type="reference", target={Organization.class, Patient.class } )
public static final String SP_PLANHOLDER_REFERENCE = "planholder-reference";
/**
* <b>Fluent Client</b> search parameter constant for <b>planholder-reference</b>
* <p>
* Description: <b>Reference to the planholder</b><br>
* Type: <b>reference</b><br>
* Path: <b>Coverage.planholderReference</b><br>
* </p>
*/
public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PLANHOLDER_REFERENCE = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_PLANHOLDER_REFERENCE);
/**
* Constant for fluent queries to be used to add include statements. Specifies
* the path value of "<b>Coverage:planholderreference</b>".
* the path value of "<b>Coverage:planholder-reference</b>".
*/
public static final ca.uhn.fhir.model.api.Include INCLUDE_PLANHOLDERREFERENCE = new ca.uhn.fhir.model.api.Include("Coverage:planholderreference").toLocked();
/**
* Search parameter: <b>issueridentifier</b>
* <p>
* Description: <b>The identity of the insurer</b><br>
* Type: <b>token</b><br>
* Path: <b>Coverage.issuerIdentifier</b><br>
* </p>
*/
@SearchParamDefinition(name="issueridentifier", path="Coverage.issuer.as(Identifier)", description="The identity of the insurer", type="token" )
public static final String SP_ISSUERIDENTIFIER = "issueridentifier";
/**
* <b>Fluent Client</b> search parameter constant for <b>issueridentifier</b>
* <p>
* Description: <b>The identity of the insurer</b><br>
* Type: <b>token</b><br>
* Path: <b>Coverage.issuerIdentifier</b><br>
* </p>
*/
public static final ca.uhn.fhir.rest.gclient.TokenClientParam ISSUERIDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_ISSUERIDENTIFIER);
public static final ca.uhn.fhir.model.api.Include INCLUDE_PLANHOLDER_REFERENCE = new ca.uhn.fhir.model.api.Include("Coverage:planholder-reference").toLocked();
/**
* Search parameter: <b>plan</b>
@ -1619,47 +1776,47 @@ public class Coverage extends DomainResource {
* Search parameter: <b>dependent</b>
* <p>
* Description: <b>Dependent number</b><br>
* Type: <b>token</b><br>
* Type: <b>number</b><br>
* Path: <b>Coverage.dependent</b><br>
* </p>
*/
@SearchParamDefinition(name="dependent", path="Coverage.dependent", description="Dependent number", type="token" )
@SearchParamDefinition(name="dependent", path="Coverage.dependent", description="Dependent number", type="number" )
public static final String SP_DEPENDENT = "dependent";
/**
* <b>Fluent Client</b> search parameter constant for <b>dependent</b>
* <p>
* Description: <b>Dependent number</b><br>
* Type: <b>token</b><br>
* Type: <b>number</b><br>
* Path: <b>Coverage.dependent</b><br>
* </p>
*/
public static final ca.uhn.fhir.rest.gclient.TokenClientParam DEPENDENT = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_DEPENDENT);
public static final ca.uhn.fhir.rest.gclient.NumberClientParam DEPENDENT = new ca.uhn.fhir.rest.gclient.NumberClientParam(SP_DEPENDENT);
/**
* Search parameter: <b>beneficiaryreference</b>
* Search parameter: <b>beneficiary-reference</b>
* <p>
* Description: <b>Covered party</b><br>
* Type: <b>reference</b><br>
* Path: <b>Coverage.beneficiaryReference</b><br>
* </p>
*/
@SearchParamDefinition(name="beneficiaryreference", path="Coverage.beneficiary.as(Reference)", description="Covered party", type="reference", target={Patient.class } )
public static final String SP_BENEFICIARYREFERENCE = "beneficiaryreference";
@SearchParamDefinition(name="beneficiary-reference", path="Coverage.beneficiary.as(Reference)", description="Covered party", type="reference", target={Patient.class } )
public static final String SP_BENEFICIARY_REFERENCE = "beneficiary-reference";
/**
* <b>Fluent Client</b> search parameter constant for <b>beneficiaryreference</b>
* <b>Fluent Client</b> search parameter constant for <b>beneficiary-reference</b>
* <p>
* Description: <b>Covered party</b><br>
* Type: <b>reference</b><br>
* Path: <b>Coverage.beneficiaryReference</b><br>
* </p>
*/
public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam BENEFICIARYREFERENCE = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_BENEFICIARYREFERENCE);
public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam BENEFICIARY_REFERENCE = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_BENEFICIARY_REFERENCE);
/**
* Constant for fluent queries to be used to add include statements. Specifies
* the path value of "<b>Coverage:beneficiaryreference</b>".
* the path value of "<b>Coverage:beneficiary-reference</b>".
*/
public static final ca.uhn.fhir.model.api.Include INCLUDE_BENEFICIARYREFERENCE = new ca.uhn.fhir.model.api.Include("Coverage:beneficiaryreference").toLocked();
public static final ca.uhn.fhir.model.api.Include INCLUDE_BENEFICIARY_REFERENCE = new ca.uhn.fhir.model.api.Include("Coverage:beneficiary-reference").toLocked();
/**
* Search parameter: <b>group</b>

View File

@ -29,7 +29,7 @@ package org.hl7.fhir.dstu3.model;
*/
// Generated on Tue, Jul 12, 2016 12:04-0400 for FHIR v1.5.0
// Generated on Wed, Aug 3, 2016 09:39-0400 for FHIR v1.5.0
import java.util.*;

View File

@ -29,7 +29,7 @@ package org.hl7.fhir.dstu3.model;
*/
// Generated on Tue, Jul 12, 2016 12:04-0400 for FHIR v1.5.0
// Generated on Wed, Aug 3, 2016 09:39-0400 for FHIR v1.5.0
import java.util.*;
@ -526,10 +526,10 @@ public class DataRequirement extends Type implements ICompositeType {
protected StringType path;
/**
* The value of the filter. If period is specified, the filter will return only those data items that fall within the bounds determined by the Period, inclusive of the period boundaries. If dateTime is specified, the filter will return only those data items that are equal to the specified dateTime.
* The value of the filter. If period is specified, the filter will return only those data items that fall within the bounds determined by the Period, inclusive of the period boundaries. If dateTime is specified, the filter will return only those data items that are equal to the specified dateTime. If a Duration is specified, the filter will return only those data items that fall within Duration from now.
*/
@Child(name = "value", type = {DateTimeType.class, Period.class}, order=2, min=0, max=1, modifier=false, summary=true)
@Description(shortDefinition="The value of the filter, as a Period or dateTime value", formalDefinition="The value of the filter. If period is specified, the filter will return only those data items that fall within the bounds determined by the Period, inclusive of the period boundaries. If dateTime is specified, the filter will return only those data items that are equal to the specified dateTime." )
@Child(name = "value", type = {DateTimeType.class, Period.class, Duration.class}, order=2, min=0, max=1, modifier=false, summary=true)
@Description(shortDefinition="The value of the filter, as a Period, DateTime, or Duration value", formalDefinition="The value of the filter. If period is specified, the filter will return only those data items that fall within the bounds determined by the Period, inclusive of the period boundaries. If dateTime is specified, the filter will return only those data items that are equal to the specified dateTime. If a Duration is specified, the filter will return only those data items that fall within Duration from now." )
protected Type value;
private static final long serialVersionUID = 1791957163L;
@ -595,14 +595,14 @@ public class DataRequirement extends Type implements ICompositeType {
}
/**
* @return {@link #value} (The value of the filter. If period is specified, the filter will return only those data items that fall within the bounds determined by the Period, inclusive of the period boundaries. If dateTime is specified, the filter will return only those data items that are equal to the specified dateTime.)
* @return {@link #value} (The value of the filter. If period is specified, the filter will return only those data items that fall within the bounds determined by the Period, inclusive of the period boundaries. If dateTime is specified, the filter will return only those data items that are equal to the specified dateTime. If a Duration is specified, the filter will return only those data items that fall within Duration from now.)
*/
public Type getValue() {
return this.value;
}
/**
* @return {@link #value} (The value of the filter. If period is specified, the filter will return only those data items that fall within the bounds determined by the Period, inclusive of the period boundaries. If dateTime is specified, the filter will return only those data items that are equal to the specified dateTime.)
* @return {@link #value} (The value of the filter. If period is specified, the filter will return only those data items that fall within the bounds determined by the Period, inclusive of the period boundaries. If dateTime is specified, the filter will return only those data items that are equal to the specified dateTime. If a Duration is specified, the filter will return only those data items that fall within Duration from now.)
*/
public DateTimeType getValueDateTimeType() throws FHIRException {
if (!(this.value instanceof DateTimeType))
@ -615,7 +615,7 @@ public class DataRequirement extends Type implements ICompositeType {
}
/**
* @return {@link #value} (The value of the filter. If period is specified, the filter will return only those data items that fall within the bounds determined by the Period, inclusive of the period boundaries. If dateTime is specified, the filter will return only those data items that are equal to the specified dateTime.)
* @return {@link #value} (The value of the filter. If period is specified, the filter will return only those data items that fall within the bounds determined by the Period, inclusive of the period boundaries. If dateTime is specified, the filter will return only those data items that are equal to the specified dateTime. If a Duration is specified, the filter will return only those data items that fall within Duration from now.)
*/
public Period getValuePeriod() throws FHIRException {
if (!(this.value instanceof Period))
@ -627,12 +627,25 @@ public class DataRequirement extends Type implements ICompositeType {
return this.value instanceof Period;
}
/**
* @return {@link #value} (The value of the filter. If period is specified, the filter will return only those data items that fall within the bounds determined by the Period, inclusive of the period boundaries. If dateTime is specified, the filter will return only those data items that are equal to the specified dateTime. If a Duration is specified, the filter will return only those data items that fall within Duration from now.)
*/
public Duration getValueDuration() throws FHIRException {
if (!(this.value instanceof Duration))
throw new FHIRException("Type mismatch: the type Duration was expected, but "+this.value.getClass().getName()+" was encountered");
return (Duration) this.value;
}
public boolean hasValueDuration() {
return this.value instanceof Duration;
}
public boolean hasValue() {
return this.value != null && !this.value.isEmpty();
}
/**
* @param value {@link #value} (The value of the filter. If period is specified, the filter will return only those data items that fall within the bounds determined by the Period, inclusive of the period boundaries. If dateTime is specified, the filter will return only those data items that are equal to the specified dateTime.)
* @param value {@link #value} (The value of the filter. If period is specified, the filter will return only those data items that fall within the bounds determined by the Period, inclusive of the period boundaries. If dateTime is specified, the filter will return only those data items that are equal to the specified dateTime. If a Duration is specified, the filter will return only those data items that fall within Duration from now.)
*/
public DataRequirementDateFilterComponent setValue(Type value) {
this.value = value;
@ -642,7 +655,7 @@ public class DataRequirement extends Type implements ICompositeType {
protected void listChildren(List<Property> childrenList) {
super.listChildren(childrenList);
childrenList.add(new Property("path", "string", "The date-valued attribute of the filter. The specified path must be resolvable from the type of the required data. The path is allowed to contain qualifiers (.) to traverse sub-elements, as well as indexers ([x]) to traverse multiple-cardinality sub-elements. Note that the index must be an integer constant. The path must resolve to an element of type dateTime, Period, Schedule, or Timing.", 0, java.lang.Integer.MAX_VALUE, path));
childrenList.add(new Property("value[x]", "dateTime|Period", "The value of the filter. If period is specified, the filter will return only those data items that fall within the bounds determined by the Period, inclusive of the period boundaries. If dateTime is specified, the filter will return only those data items that are equal to the specified dateTime.", 0, java.lang.Integer.MAX_VALUE, value));
childrenList.add(new Property("value[x]", "dateTime|Period|Duration", "The value of the filter. If period is specified, the filter will return only those data items that fall within the bounds determined by the Period, inclusive of the period boundaries. If dateTime is specified, the filter will return only those data items that are equal to the specified dateTime. If a Duration is specified, the filter will return only those data items that fall within Duration from now.", 0, java.lang.Integer.MAX_VALUE, value));
}
@Override
@ -702,6 +715,10 @@ public class DataRequirement extends Type implements ICompositeType {
this.value = new Period();
return this.value;
}
else if (name.equals("valueDuration")) {
this.value = new Duration();
return this.value;
}
else
return super.addChild(name);
}
@ -756,14 +773,14 @@ public class DataRequirement extends Type implements ICompositeType {
/**
* The profile of the required data, specified as the uri of the profile definition.
*/
@Child(name = "profile", type = {StructureDefinition.class}, order=1, min=0, max=1, modifier=false, summary=true)
@Child(name = "profile", type = {StructureDefinition.class}, order=1, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
@Description(shortDefinition="The profile of the required data", formalDefinition="The profile of the required data, specified as the uri of the profile definition." )
protected Reference profile;
protected List<Reference> profile;
/**
* The actual object that is the target of the reference (The profile of the required data, specified as the uri of the profile definition.)
* The actual objects that are the target of the reference (The profile of the required data, specified as the uri of the profile definition.)
*/
protected StructureDefinition profileTarget;
protected List<StructureDefinition> profileTarget;
/**
* Indicates that specific elements of the type are referenced by the knowledge module and must be supported by the consumer in order to obtain an effective evaluation. This does not mean that a value is required for this element, only that the consuming system must understand the element and be able to provide values for it if they are available.
@ -786,7 +803,7 @@ public class DataRequirement extends Type implements ICompositeType {
@Description(shortDefinition="Date filters for the data", formalDefinition="Date filters specify additional constraints on the data in terms of the applicable date range for specific elements." )
protected List<DataRequirementDateFilterComponent> dateFilter;
private static final long serialVersionUID = 1768899744L;
private static final long serialVersionUID = -953492266L;
/**
* Constructor
@ -851,45 +868,76 @@ public class DataRequirement extends Type implements ICompositeType {
/**
* @return {@link #profile} (The profile of the required data, specified as the uri of the profile definition.)
*/
public Reference getProfile() {
public List<Reference> getProfile() {
if (this.profile == null)
if (Configuration.errorOnAutoCreate())
throw new Error("Attempt to auto-create DataRequirement.profile");
else if (Configuration.doAutoCreate())
this.profile = new Reference(); // cc
this.profile = new ArrayList<Reference>();
return this.profile;
}
public boolean hasProfile() {
return this.profile != null && !this.profile.isEmpty();
/**
* @return Returns a reference to <code>this</code> for easy method chaining
*/
public DataRequirement setProfile(List<Reference> theProfile) {
this.profile = theProfile;
return this;
}
/**
* @param value {@link #profile} (The profile of the required data, specified as the uri of the profile definition.)
*/
public DataRequirement setProfile(Reference value) {
this.profile = value;
public boolean hasProfile() {
if (this.profile == null)
return false;
for (Reference item : this.profile)
if (!item.isEmpty())
return true;
return false;
}
public Reference addProfile() { //3
Reference t = new Reference();
if (this.profile == null)
this.profile = new ArrayList<Reference>();
this.profile.add(t);
return t;
}
public DataRequirement addProfile(Reference t) { //3
if (t == null)
return this;
if (this.profile == null)
this.profile = new ArrayList<Reference>();
this.profile.add(t);
return this;
}
/**
* @return {@link #profile} The actual object that is the target of the reference. The reference library doesn't populate this, but you can use it to hold the resource if you resolve it. (The profile of the required data, specified as the uri of the profile definition.)
* @return The first repetition of repeating field {@link #profile}, creating it if it does not already exist
*/
public StructureDefinition getProfileTarget() {
public Reference getProfileFirstRep() {
if (getProfile().isEmpty()) {
addProfile();
}
return getProfile().get(0);
}
/**
* @deprecated Use Reference#setResource(IBaseResource) instead
*/
@Deprecated
public List<StructureDefinition> getProfileTarget() {
if (this.profileTarget == null)
if (Configuration.errorOnAutoCreate())
throw new Error("Attempt to auto-create DataRequirement.profile");
else if (Configuration.doAutoCreate())
this.profileTarget = new StructureDefinition(); // aa
this.profileTarget = new ArrayList<StructureDefinition>();
return this.profileTarget;
}
/**
* @param value {@link #profile} The actual object that is the target of the reference. The reference library doesn't use these, but you can use it to hold the resource if you resolve it. (The profile of the required data, specified as the uri of the profile definition.)
* @deprecated Use Reference#setResource(IBaseResource) instead
*/
public DataRequirement setProfileTarget(StructureDefinition value) {
this.profileTarget = value;
return this;
@Deprecated
public StructureDefinition addProfileTarget() {
StructureDefinition r = new StructureDefinition();
if (this.profileTarget == null)
this.profileTarget = new ArrayList<StructureDefinition>();
this.profileTarget.add(r);
return r;
}
/**
@ -1072,7 +1120,7 @@ public class DataRequirement extends Type implements ICompositeType {
public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException {
switch (hash) {
case 3575610: /*type*/ return this.type == null ? new Base[0] : new Base[] {this.type}; // CodeType
case -309425751: /*profile*/ return this.profile == null ? new Base[0] : new Base[] {this.profile}; // Reference
case -309425751: /*profile*/ return this.profile == null ? new Base[0] : this.profile.toArray(new Base[this.profile.size()]); // Reference
case -1402857082: /*mustSupport*/ return this.mustSupport == null ? new Base[0] : this.mustSupport.toArray(new Base[this.mustSupport.size()]); // StringType
case -1303674939: /*codeFilter*/ return this.codeFilter == null ? new Base[0] : this.codeFilter.toArray(new Base[this.codeFilter.size()]); // DataRequirementCodeFilterComponent
case 149531846: /*dateFilter*/ return this.dateFilter == null ? new Base[0] : this.dateFilter.toArray(new Base[this.dateFilter.size()]); // DataRequirementDateFilterComponent
@ -1088,7 +1136,7 @@ public class DataRequirement extends Type implements ICompositeType {
this.type = castToCode(value); // CodeType
break;
case -309425751: // profile
this.profile = castToReference(value); // Reference
this.getProfile().add(castToReference(value)); // Reference
break;
case -1402857082: // mustSupport
this.getMustSupport().add(castToString(value)); // StringType
@ -1109,7 +1157,7 @@ public class DataRequirement extends Type implements ICompositeType {
if (name.equals("type"))
this.type = castToCode(value); // CodeType
else if (name.equals("profile"))
this.profile = castToReference(value); // Reference
this.getProfile().add(castToReference(value));
else if (name.equals("mustSupport"))
this.getMustSupport().add(castToString(value));
else if (name.equals("codeFilter"))
@ -1124,7 +1172,7 @@ public class DataRequirement extends Type implements ICompositeType {
public Base makeProperty(int hash, String name) throws FHIRException {
switch (hash) {
case 3575610: throw new FHIRException("Cannot make property type as it is not a complex type"); // CodeType
case -309425751: return getProfile(); // Reference
case -309425751: return addProfile(); // Reference
case -1402857082: throw new FHIRException("Cannot make property mustSupport as it is not a complex type"); // StringType
case -1303674939: return addCodeFilter(); // DataRequirementCodeFilterComponent
case 149531846: return addDateFilter(); // DataRequirementDateFilterComponent
@ -1139,8 +1187,7 @@ public class DataRequirement extends Type implements ICompositeType {
throw new FHIRException("Cannot call addChild on a primitive type DataRequirement.type");
}
else if (name.equals("profile")) {
this.profile = new Reference();
return this.profile;
return addProfile();
}
else if (name.equals("mustSupport")) {
throw new FHIRException("Cannot call addChild on a primitive type DataRequirement.mustSupport");
@ -1164,7 +1211,11 @@ public class DataRequirement extends Type implements ICompositeType {
DataRequirement dst = new DataRequirement();
copyValues(dst);
dst.type = type == null ? null : type.copy();
dst.profile = profile == null ? null : profile.copy();
if (profile != null) {
dst.profile = new ArrayList<Reference>();
for (Reference i : profile)
dst.profile.add(i.copy());
};
if (mustSupport != null) {
dst.mustSupport = new ArrayList<StringType>();
for (StringType i : mustSupport)

View File

@ -1,636 +0,0 @@
package org.hl7.fhir.dstu3.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 Tue, Jul 12, 2016 12:04-0400 for FHIR v1.5.0
import java.util.*;
import org.hl7.fhir.utilities.Utilities;
import ca.uhn.fhir.model.api.annotation.ResourceDef;
import ca.uhn.fhir.model.api.annotation.SearchParamDefinition;
import ca.uhn.fhir.model.api.annotation.Child;
import ca.uhn.fhir.model.api.annotation.ChildOrder;
import ca.uhn.fhir.model.api.annotation.Description;
import ca.uhn.fhir.model.api.annotation.Block;
import org.hl7.fhir.instance.model.api.*;
import org.hl7.fhir.dstu3.exceptions.FHIRException;
/**
* This resource defines a decision support rule of the form [on Event] if Condition then Action. It is intended to be a shareable, computable definition of a actions that should be taken whenever some condition is met in response to a particular event or events.
*/
@ResourceDef(name="DecisionSupportRule", profile="http://hl7.org/fhir/Profile/DecisionSupportRule")
public class DecisionSupportRule extends DomainResource {
/**
* The metadata for the decision support rule, including publishing, life-cycle, version, documentation, and supporting evidence.
*/
@Child(name = "moduleMetadata", type = {ModuleMetadata.class}, order=0, min=0, max=1, modifier=false, summary=true)
@Description(shortDefinition="Module information for the rule", formalDefinition="The metadata for the decision support rule, including publishing, life-cycle, version, documentation, and supporting evidence." )
protected ModuleMetadata moduleMetadata;
/**
* A reference to a Library containing the formal logic used by the rule.
*/
@Child(name = "library", type = {Library.class}, order=1, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
@Description(shortDefinition="Logic used within the rule", formalDefinition="A reference to a Library containing the formal logic used by the rule." )
protected List<Reference> library;
/**
* The actual objects that are the target of the reference (A reference to a Library containing the formal logic used by the rule.)
*/
protected List<Library> libraryTarget;
/**
* The trigger element defines when the rule should be invoked. This information is used by consumers of the rule to determine how to integrate the rule into a specific workflow.
*/
@Child(name = "trigger", type = {TriggerDefinition.class}, order=2, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
@Description(shortDefinition="\"when\" the rule should be invoked", formalDefinition="The trigger element defines when the rule should be invoked. This information is used by consumers of the rule to determine how to integrate the rule into a specific workflow." )
protected List<TriggerDefinition> trigger;
/**
* The condition element describes he "if" portion of the rule that determines whether or not the rule "fires". The condition must be the name of an expression in a referenced library.
*/
@Child(name = "condition", type = {StringType.class}, order=3, min=0, max=1, modifier=false, summary=true)
@Description(shortDefinition="\"if\" some condition is true", formalDefinition="The condition element describes he \"if\" portion of the rule that determines whether or not the rule \"fires\". The condition must be the name of an expression in a referenced library." )
protected StringType condition;
/**
* The action element defines the "when" portion of the rule that determines what actions should be performed if the condition evaluates to true.
*/
@Child(name = "action", type = {ActionDefinition.class}, order=4, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
@Description(shortDefinition="\"then\" perform these actions", formalDefinition="The action element defines the \"when\" portion of the rule that determines what actions should be performed if the condition evaluates to true." )
protected List<ActionDefinition> action;
private static final long serialVersionUID = -810482843L;
/**
* Constructor
*/
public DecisionSupportRule() {
super();
}
/**
* @return {@link #moduleMetadata} (The metadata for the decision support rule, including publishing, life-cycle, version, documentation, and supporting evidence.)
*/
public ModuleMetadata getModuleMetadata() {
if (this.moduleMetadata == null)
if (Configuration.errorOnAutoCreate())
throw new Error("Attempt to auto-create DecisionSupportRule.moduleMetadata");
else if (Configuration.doAutoCreate())
this.moduleMetadata = new ModuleMetadata(); // cc
return this.moduleMetadata;
}
public boolean hasModuleMetadata() {
return this.moduleMetadata != null && !this.moduleMetadata.isEmpty();
}
/**
* @param value {@link #moduleMetadata} (The metadata for the decision support rule, including publishing, life-cycle, version, documentation, and supporting evidence.)
*/
public DecisionSupportRule setModuleMetadata(ModuleMetadata value) {
this.moduleMetadata = value;
return this;
}
/**
* @return {@link #library} (A reference to a Library containing the formal logic used by the rule.)
*/
public List<Reference> getLibrary() {
if (this.library == null)
this.library = new ArrayList<Reference>();
return this.library;
}
/**
* @return Returns a reference to <code>this</code> for easy method chaining
*/
public DecisionSupportRule setLibrary(List<Reference> theLibrary) {
this.library = theLibrary;
return this;
}
public boolean hasLibrary() {
if (this.library == null)
return false;
for (Reference item : this.library)
if (!item.isEmpty())
return true;
return false;
}
public Reference addLibrary() { //3
Reference t = new Reference();
if (this.library == null)
this.library = new ArrayList<Reference>();
this.library.add(t);
return t;
}
public DecisionSupportRule addLibrary(Reference t) { //3
if (t == null)
return this;
if (this.library == null)
this.library = new ArrayList<Reference>();
this.library.add(t);
return this;
}
/**
* @return The first repetition of repeating field {@link #library}, creating it if it does not already exist
*/
public Reference getLibraryFirstRep() {
if (getLibrary().isEmpty()) {
addLibrary();
}
return getLibrary().get(0);
}
/**
* @deprecated Use Reference#setResource(IBaseResource) instead
*/
@Deprecated
public List<Library> getLibraryTarget() {
if (this.libraryTarget == null)
this.libraryTarget = new ArrayList<Library>();
return this.libraryTarget;
}
/**
* @deprecated Use Reference#setResource(IBaseResource) instead
*/
@Deprecated
public Library addLibraryTarget() {
Library r = new Library();
if (this.libraryTarget == null)
this.libraryTarget = new ArrayList<Library>();
this.libraryTarget.add(r);
return r;
}
/**
* @return {@link #trigger} (The trigger element defines when the rule should be invoked. This information is used by consumers of the rule to determine how to integrate the rule into a specific workflow.)
*/
public List<TriggerDefinition> getTrigger() {
if (this.trigger == null)
this.trigger = new ArrayList<TriggerDefinition>();
return this.trigger;
}
/**
* @return Returns a reference to <code>this</code> for easy method chaining
*/
public DecisionSupportRule setTrigger(List<TriggerDefinition> theTrigger) {
this.trigger = theTrigger;
return this;
}
public boolean hasTrigger() {
if (this.trigger == null)
return false;
for (TriggerDefinition item : this.trigger)
if (!item.isEmpty())
return true;
return false;
}
public TriggerDefinition addTrigger() { //3
TriggerDefinition t = new TriggerDefinition();
if (this.trigger == null)
this.trigger = new ArrayList<TriggerDefinition>();
this.trigger.add(t);
return t;
}
public DecisionSupportRule addTrigger(TriggerDefinition t) { //3
if (t == null)
return this;
if (this.trigger == null)
this.trigger = new ArrayList<TriggerDefinition>();
this.trigger.add(t);
return this;
}
/**
* @return The first repetition of repeating field {@link #trigger}, creating it if it does not already exist
*/
public TriggerDefinition getTriggerFirstRep() {
if (getTrigger().isEmpty()) {
addTrigger();
}
return getTrigger().get(0);
}
/**
* @return {@link #condition} (The condition element describes he "if" portion of the rule that determines whether or not the rule "fires". The condition must be the name of an expression in a referenced library.). This is the underlying object with id, value and extensions. The accessor "getCondition" gives direct access to the value
*/
public StringType getConditionElement() {
if (this.condition == null)
if (Configuration.errorOnAutoCreate())
throw new Error("Attempt to auto-create DecisionSupportRule.condition");
else if (Configuration.doAutoCreate())
this.condition = new StringType(); // bb
return this.condition;
}
public boolean hasConditionElement() {
return this.condition != null && !this.condition.isEmpty();
}
public boolean hasCondition() {
return this.condition != null && !this.condition.isEmpty();
}
/**
* @param value {@link #condition} (The condition element describes he "if" portion of the rule that determines whether or not the rule "fires". The condition must be the name of an expression in a referenced library.). This is the underlying object with id, value and extensions. The accessor "getCondition" gives direct access to the value
*/
public DecisionSupportRule setConditionElement(StringType value) {
this.condition = value;
return this;
}
/**
* @return The condition element describes he "if" portion of the rule that determines whether or not the rule "fires". The condition must be the name of an expression in a referenced library.
*/
public String getCondition() {
return this.condition == null ? null : this.condition.getValue();
}
/**
* @param value The condition element describes he "if" portion of the rule that determines whether or not the rule "fires". The condition must be the name of an expression in a referenced library.
*/
public DecisionSupportRule setCondition(String value) {
if (Utilities.noString(value))
this.condition = null;
else {
if (this.condition == null)
this.condition = new StringType();
this.condition.setValue(value);
}
return this;
}
/**
* @return {@link #action} (The action element defines the "when" portion of the rule that determines what actions should be performed if the condition evaluates to true.)
*/
public List<ActionDefinition> getAction() {
if (this.action == null)
this.action = new ArrayList<ActionDefinition>();
return this.action;
}
/**
* @return Returns a reference to <code>this</code> for easy method chaining
*/
public DecisionSupportRule setAction(List<ActionDefinition> theAction) {
this.action = theAction;
return this;
}
public boolean hasAction() {
if (this.action == null)
return false;
for (ActionDefinition item : this.action)
if (!item.isEmpty())
return true;
return false;
}
public ActionDefinition addAction() { //3
ActionDefinition t = new ActionDefinition();
if (this.action == null)
this.action = new ArrayList<ActionDefinition>();
this.action.add(t);
return t;
}
public DecisionSupportRule addAction(ActionDefinition t) { //3
if (t == null)
return this;
if (this.action == null)
this.action = new ArrayList<ActionDefinition>();
this.action.add(t);
return this;
}
/**
* @return The first repetition of repeating field {@link #action}, creating it if it does not already exist
*/
public ActionDefinition getActionFirstRep() {
if (getAction().isEmpty()) {
addAction();
}
return getAction().get(0);
}
protected void listChildren(List<Property> childrenList) {
super.listChildren(childrenList);
childrenList.add(new Property("moduleMetadata", "ModuleMetadata", "The metadata for the decision support rule, including publishing, life-cycle, version, documentation, and supporting evidence.", 0, java.lang.Integer.MAX_VALUE, moduleMetadata));
childrenList.add(new Property("library", "Reference(Library)", "A reference to a Library containing the formal logic used by the rule.", 0, java.lang.Integer.MAX_VALUE, library));
childrenList.add(new Property("trigger", "TriggerDefinition", "The trigger element defines when the rule should be invoked. This information is used by consumers of the rule to determine how to integrate the rule into a specific workflow.", 0, java.lang.Integer.MAX_VALUE, trigger));
childrenList.add(new Property("condition", "string", "The condition element describes he \"if\" portion of the rule that determines whether or not the rule \"fires\". The condition must be the name of an expression in a referenced library.", 0, java.lang.Integer.MAX_VALUE, condition));
childrenList.add(new Property("action", "ActionDefinition", "The action element defines the \"when\" portion of the rule that determines what actions should be performed if the condition evaluates to true.", 0, java.lang.Integer.MAX_VALUE, action));
}
@Override
public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException {
switch (hash) {
case 455891387: /*moduleMetadata*/ return this.moduleMetadata == null ? new Base[0] : new Base[] {this.moduleMetadata}; // ModuleMetadata
case 166208699: /*library*/ return this.library == null ? new Base[0] : this.library.toArray(new Base[this.library.size()]); // Reference
case -1059891784: /*trigger*/ return this.trigger == null ? new Base[0] : this.trigger.toArray(new Base[this.trigger.size()]); // TriggerDefinition
case -861311717: /*condition*/ return this.condition == null ? new Base[0] : new Base[] {this.condition}; // StringType
case -1422950858: /*action*/ return this.action == null ? new Base[0] : this.action.toArray(new Base[this.action.size()]); // ActionDefinition
default: return super.getProperty(hash, name, checkValid);
}
}
@Override
public void setProperty(int hash, String name, Base value) throws FHIRException {
switch (hash) {
case 455891387: // moduleMetadata
this.moduleMetadata = castToModuleMetadata(value); // ModuleMetadata
break;
case 166208699: // library
this.getLibrary().add(castToReference(value)); // Reference
break;
case -1059891784: // trigger
this.getTrigger().add(castToTriggerDefinition(value)); // TriggerDefinition
break;
case -861311717: // condition
this.condition = castToString(value); // StringType
break;
case -1422950858: // action
this.getAction().add(castToActionDefinition(value)); // ActionDefinition
break;
default: super.setProperty(hash, name, value);
}
}
@Override
public void setProperty(String name, Base value) throws FHIRException {
if (name.equals("moduleMetadata"))
this.moduleMetadata = castToModuleMetadata(value); // ModuleMetadata
else if (name.equals("library"))
this.getLibrary().add(castToReference(value));
else if (name.equals("trigger"))
this.getTrigger().add(castToTriggerDefinition(value));
else if (name.equals("condition"))
this.condition = castToString(value); // StringType
else if (name.equals("action"))
this.getAction().add(castToActionDefinition(value));
else
super.setProperty(name, value);
}
@Override
public Base makeProperty(int hash, String name) throws FHIRException {
switch (hash) {
case 455891387: return getModuleMetadata(); // ModuleMetadata
case 166208699: return addLibrary(); // Reference
case -1059891784: return addTrigger(); // TriggerDefinition
case -861311717: throw new FHIRException("Cannot make property condition as it is not a complex type"); // StringType
case -1422950858: return addAction(); // ActionDefinition
default: return super.makeProperty(hash, name);
}
}
@Override
public Base addChild(String name) throws FHIRException {
if (name.equals("moduleMetadata")) {
this.moduleMetadata = new ModuleMetadata();
return this.moduleMetadata;
}
else if (name.equals("library")) {
return addLibrary();
}
else if (name.equals("trigger")) {
return addTrigger();
}
else if (name.equals("condition")) {
throw new FHIRException("Cannot call addChild on a primitive type DecisionSupportRule.condition");
}
else if (name.equals("action")) {
return addAction();
}
else
return super.addChild(name);
}
public String fhirType() {
return "DecisionSupportRule";
}
public DecisionSupportRule copy() {
DecisionSupportRule dst = new DecisionSupportRule();
copyValues(dst);
dst.moduleMetadata = moduleMetadata == null ? null : moduleMetadata.copy();
if (library != null) {
dst.library = new ArrayList<Reference>();
for (Reference i : library)
dst.library.add(i.copy());
};
if (trigger != null) {
dst.trigger = new ArrayList<TriggerDefinition>();
for (TriggerDefinition i : trigger)
dst.trigger.add(i.copy());
};
dst.condition = condition == null ? null : condition.copy();
if (action != null) {
dst.action = new ArrayList<ActionDefinition>();
for (ActionDefinition i : action)
dst.action.add(i.copy());
};
return dst;
}
protected DecisionSupportRule typedCopy() {
return copy();
}
@Override
public boolean equalsDeep(Base other) {
if (!super.equalsDeep(other))
return false;
if (!(other instanceof DecisionSupportRule))
return false;
DecisionSupportRule o = (DecisionSupportRule) other;
return compareDeep(moduleMetadata, o.moduleMetadata, true) && compareDeep(library, o.library, true)
&& compareDeep(trigger, o.trigger, true) && compareDeep(condition, o.condition, true) && compareDeep(action, o.action, true)
;
}
@Override
public boolean equalsShallow(Base other) {
if (!super.equalsShallow(other))
return false;
if (!(other instanceof DecisionSupportRule))
return false;
DecisionSupportRule o = (DecisionSupportRule) other;
return compareValues(condition, o.condition, true);
}
public boolean isEmpty() {
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(moduleMetadata, library, trigger
, condition, action);
}
@Override
public ResourceType getResourceType() {
return ResourceType.DecisionSupportRule;
}
/**
* Search parameter: <b>identifier</b>
* <p>
* Description: <b>Logical identifier for the module (e.g. CMS-143)</b><br>
* Type: <b>token</b><br>
* Path: <b>DecisionSupportRule.moduleMetadata.identifier</b><br>
* </p>
*/
@SearchParamDefinition(name="identifier", path="DecisionSupportRule.moduleMetadata.identifier", description="Logical identifier for the module (e.g. CMS-143)", type="token" )
public static final String SP_IDENTIFIER = "identifier";
/**
* <b>Fluent Client</b> search parameter constant for <b>identifier</b>
* <p>
* Description: <b>Logical identifier for the module (e.g. CMS-143)</b><br>
* Type: <b>token</b><br>
* Path: <b>DecisionSupportRule.moduleMetadata.identifier</b><br>
* </p>
*/
public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_IDENTIFIER);
/**
* Search parameter: <b>topic</b>
* <p>
* Description: <b>Topics associated with the module</b><br>
* Type: <b>token</b><br>
* Path: <b>DecisionSupportRule.moduleMetadata.topic</b><br>
* </p>
*/
@SearchParamDefinition(name="topic", path="DecisionSupportRule.moduleMetadata.topic", description="Topics associated with the module", type="token" )
public static final String SP_TOPIC = "topic";
/**
* <b>Fluent Client</b> search parameter constant for <b>topic</b>
* <p>
* Description: <b>Topics associated with the module</b><br>
* Type: <b>token</b><br>
* Path: <b>DecisionSupportRule.moduleMetadata.topic</b><br>
* </p>
*/
public static final ca.uhn.fhir.rest.gclient.TokenClientParam TOPIC = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_TOPIC);
/**
* Search parameter: <b>description</b>
* <p>
* Description: <b>Text search against the description</b><br>
* Type: <b>string</b><br>
* Path: <b>DecisionSupportRule.moduleMetadata.description</b><br>
* </p>
*/
@SearchParamDefinition(name="description", path="DecisionSupportRule.moduleMetadata.description", description="Text search against the description", type="string" )
public static final String SP_DESCRIPTION = "description";
/**
* <b>Fluent Client</b> search parameter constant for <b>description</b>
* <p>
* Description: <b>Text search against the description</b><br>
* Type: <b>string</b><br>
* Path: <b>DecisionSupportRule.moduleMetadata.description</b><br>
* </p>
*/
public static final ca.uhn.fhir.rest.gclient.StringClientParam DESCRIPTION = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_DESCRIPTION);
/**
* Search parameter: <b>title</b>
* <p>
* Description: <b>Text search against the title</b><br>
* Type: <b>string</b><br>
* Path: <b>DecisionSupportRule.moduleMetadata.title</b><br>
* </p>
*/
@SearchParamDefinition(name="title", path="DecisionSupportRule.moduleMetadata.title", description="Text search against the title", type="string" )
public static final String SP_TITLE = "title";
/**
* <b>Fluent Client</b> search parameter constant for <b>title</b>
* <p>
* Description: <b>Text search against the title</b><br>
* Type: <b>string</b><br>
* Path: <b>DecisionSupportRule.moduleMetadata.title</b><br>
* </p>
*/
public static final ca.uhn.fhir.rest.gclient.StringClientParam TITLE = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_TITLE);
/**
* Search parameter: <b>version</b>
* <p>
* Description: <b>Version of the module (e.g. 1.0.0)</b><br>
* Type: <b>string</b><br>
* Path: <b>DecisionSupportRule.moduleMetadata.version</b><br>
* </p>
*/
@SearchParamDefinition(name="version", path="DecisionSupportRule.moduleMetadata.version", description="Version of the module (e.g. 1.0.0)", type="string" )
public static final String SP_VERSION = "version";
/**
* <b>Fluent Client</b> search parameter constant for <b>version</b>
* <p>
* Description: <b>Version of the module (e.g. 1.0.0)</b><br>
* Type: <b>string</b><br>
* Path: <b>DecisionSupportRule.moduleMetadata.version</b><br>
* </p>
*/
public static final ca.uhn.fhir.rest.gclient.StringClientParam VERSION = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_VERSION);
/**
* Search parameter: <b>status</b>
* <p>
* Description: <b>Status of the module</b><br>
* Type: <b>token</b><br>
* Path: <b>DecisionSupportRule.moduleMetadata.status</b><br>
* </p>
*/
@SearchParamDefinition(name="status", path="DecisionSupportRule.moduleMetadata.status", description="Status of the module", type="token" )
public static final String SP_STATUS = "status";
/**
* <b>Fluent Client</b> search parameter constant for <b>status</b>
* <p>
* Description: <b>Status of the module</b><br>
* Type: <b>token</b><br>
* Path: <b>DecisionSupportRule.moduleMetadata.status</b><br>
* </p>
*/
public static final ca.uhn.fhir.rest.gclient.TokenClientParam STATUS = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_STATUS);
}

View File

@ -29,7 +29,7 @@ package org.hl7.fhir.dstu3.model;
*/
// Generated on Tue, Jul 12, 2016 12:04-0400 for FHIR v1.5.0
// Generated on Wed, Aug 3, 2016 09:39-0400 for FHIR v1.5.0
import java.util.*;

View File

@ -29,7 +29,7 @@ package org.hl7.fhir.dstu3.model;
*/
// Generated on Tue, Jul 12, 2016 12:04-0400 for FHIR v1.5.0
// Generated on Wed, Aug 3, 2016 09:39-0400 for FHIR v1.5.0
import java.util.*;

View File

@ -29,7 +29,7 @@ package org.hl7.fhir.dstu3.model;
*/
// Generated on Tue, Jul 12, 2016 12:04-0400 for FHIR v1.5.0
// Generated on Wed, Aug 3, 2016 09:39-0400 for FHIR v1.5.0
import java.util.*;
@ -608,6 +608,7 @@ public class DeviceComponent extends DomainResource {
*/
@Child(name = "languageCode", type = {CodeableConcept.class}, order=9, min=0, max=1, modifier=false, summary=true)
@Description(shortDefinition="Language code for the human-readable text strings produced by the device", formalDefinition="Describes the language code for the human-readable text string produced by the device. This language code will follow the IETF language tag. Example: en-US." )
@ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/languages")
protected CodeableConcept languageCode;
private static final long serialVersionUID = -1742890034L;

View File

@ -29,7 +29,7 @@ package org.hl7.fhir.dstu3.model;
*/
// Generated on Tue, Jul 12, 2016 12:04-0400 for FHIR v1.5.0
// Generated on Wed, Aug 3, 2016 09:39-0400 for FHIR v1.5.0
import java.util.*;

View File

@ -29,7 +29,7 @@ package org.hl7.fhir.dstu3.model;
*/
// Generated on Tue, Jul 12, 2016 12:04-0400 for FHIR v1.5.0
// Generated on Wed, Aug 3, 2016 09:39-0400 for FHIR v1.5.0
import java.util.*;

View File

@ -29,7 +29,7 @@ package org.hl7.fhir.dstu3.model;
*/
// Generated on Tue, Jul 12, 2016 12:04-0400 for FHIR v1.5.0
// Generated on Wed, Aug 3, 2016 09:39-0400 for FHIR v1.5.0
import java.util.*;
@ -535,7 +535,7 @@ public class DiagnosticReport extends DomainResource {
/**
* Details concerning a test or procedure requested.
*/
@Child(name = "request", type = {DiagnosticOrder.class, ProcedureRequest.class, ReferralRequest.class}, order=9, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
@Child(name = "request", type = {DiagnosticRequest.class, ProcedureRequest.class, ReferralRequest.class}, order=9, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
@Description(shortDefinition="What was requested", formalDefinition="Details concerning a test or procedure requested." )
protected List<Reference> request;
/**
@ -1507,7 +1507,7 @@ public class DiagnosticReport extends DomainResource {
childrenList.add(new Property("effective[x]", "dateTime|Period", "The time or time-period the observed values are related to. When the subject of the report is a patient, this is usually either the time of the procedure or of specimen collection(s), but very often the source of the date/time is not known, only the date/time itself.", 0, java.lang.Integer.MAX_VALUE, effective));
childrenList.add(new Property("issued", "instant", "The date and time that this version of the report was released from the source diagnostic service.", 0, java.lang.Integer.MAX_VALUE, issued));
childrenList.add(new Property("performer", "Reference(Practitioner|Organization)", "The diagnostic service that is responsible for issuing the report.", 0, java.lang.Integer.MAX_VALUE, performer));
childrenList.add(new Property("request", "Reference(DiagnosticOrder|ProcedureRequest|ReferralRequest)", "Details concerning a test or procedure requested.", 0, java.lang.Integer.MAX_VALUE, request));
childrenList.add(new Property("request", "Reference(DiagnosticRequest|ProcedureRequest|ReferralRequest)", "Details concerning a test or procedure requested.", 0, java.lang.Integer.MAX_VALUE, request));
childrenList.add(new Property("specimen", "Reference(Specimen)", "Details about the specimens on which this diagnostic report is based.", 0, java.lang.Integer.MAX_VALUE, specimen));
childrenList.add(new Property("result", "Reference(Observation)", "Observations that are part of this diagnostic report. Observations can be simple name/value pairs (e.g. \"atomic\" results), or they can be grouping observations that include references to other members of the group (e.g. \"panels\").", 0, java.lang.Integer.MAX_VALUE, result));
childrenList.add(new Property("imagingStudy", "Reference(ImagingStudy|ImagingManifest)", "One or more links to full details of any imaging performed during the diagnostic investigation. Typically, this is imaging performed by DICOM enabled modalities, but this is not required. A fully enabled PACS viewer can use this information to provide views of the source images.", 0, java.lang.Integer.MAX_VALUE, imagingStudy));
@ -1912,7 +1912,7 @@ public class DiagnosticReport extends DomainResource {
* Path: <b>DiagnosticReport.request</b><br>
* </p>
*/
@SearchParamDefinition(name="request", path="DiagnosticReport.request", description="Reference to the test or procedure request.", type="reference", target={DiagnosticOrder.class, ProcedureRequest.class, ReferralRequest.class } )
@SearchParamDefinition(name="request", path="DiagnosticReport.request", description="Reference to the test or procedure request.", type="reference", target={DiagnosticRequest.class, ProcedureRequest.class, ReferralRequest.class } )
public static final String SP_REQUEST = "request";
/**
* <b>Fluent Client</b> search parameter constant for <b>request</b>

View File

@ -29,7 +29,7 @@ package org.hl7.fhir.dstu3.model;
*/
// Generated on Tue, Jul 12, 2016 12:04-0400 for FHIR v1.5.0
// Generated on Wed, Aug 3, 2016 09:39-0400 for FHIR v1.5.0
import java.util.*;

View File

@ -29,7 +29,7 @@ package org.hl7.fhir.dstu3.model;
*/
// Generated on Tue, Jul 12, 2016 12:04-0400 for FHIR v1.5.0
// Generated on Wed, Aug 3, 2016 09:39-0400 for FHIR v1.5.0
import java.util.*;
@ -224,14 +224,14 @@ public class DocumentManifest extends DomainResource {
protected Identifier identifier;
/**
* Related Resource to this DocumentManifest. For example, Order, DiagnosticOrder, Procedure, EligibilityRequest, etc.
* Related Resource to this DocumentManifest. For example, Order, DiagnosticRequest, Procedure, EligibilityRequest, etc.
*/
@Child(name = "ref", type = {Reference.class}, order=2, min=0, max=1, modifier=false, summary=true)
@Description(shortDefinition="Related Resource", formalDefinition="Related Resource to this DocumentManifest. For example, Order, DiagnosticOrder, Procedure, EligibilityRequest, etc." )
@Description(shortDefinition="Related Resource", formalDefinition="Related Resource to this DocumentManifest. For example, Order, DiagnosticRequest, Procedure, EligibilityRequest, etc." )
protected Reference ref;
/**
* The actual object that is the target of the reference (Related Resource to this DocumentManifest. For example, Order, DiagnosticOrder, Procedure, EligibilityRequest, etc.)
* The actual object that is the target of the reference (Related Resource to this DocumentManifest. For example, Order, DiagnosticRequest, Procedure, EligibilityRequest, etc.)
*/
protected Resource refTarget;
@ -269,7 +269,7 @@ public class DocumentManifest extends DomainResource {
}
/**
* @return {@link #ref} (Related Resource to this DocumentManifest. For example, Order, DiagnosticOrder, Procedure, EligibilityRequest, etc.)
* @return {@link #ref} (Related Resource to this DocumentManifest. For example, Order, DiagnosticRequest, Procedure, EligibilityRequest, etc.)
*/
public Reference getRef() {
if (this.ref == null)
@ -285,7 +285,7 @@ public class DocumentManifest extends DomainResource {
}
/**
* @param value {@link #ref} (Related Resource to this DocumentManifest. For example, Order, DiagnosticOrder, Procedure, EligibilityRequest, etc.)
* @param value {@link #ref} (Related Resource to this DocumentManifest. For example, Order, DiagnosticRequest, Procedure, EligibilityRequest, etc.)
*/
public DocumentManifestRelatedComponent setRef(Reference value) {
this.ref = value;
@ -293,14 +293,14 @@ public class DocumentManifest extends DomainResource {
}
/**
* @return {@link #ref} 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. (Related Resource to this DocumentManifest. For example, Order, DiagnosticOrder, Procedure, EligibilityRequest, etc.)
* @return {@link #ref} 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. (Related Resource to this DocumentManifest. For example, Order, DiagnosticRequest, Procedure, EligibilityRequest, etc.)
*/
public Resource getRefTarget() {
return this.refTarget;
}
/**
* @param value {@link #ref} 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. (Related Resource to this DocumentManifest. For example, Order, DiagnosticOrder, Procedure, EligibilityRequest, etc.)
* @param value {@link #ref} 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. (Related Resource to this DocumentManifest. For example, Order, DiagnosticRequest, Procedure, EligibilityRequest, etc.)
*/
public DocumentManifestRelatedComponent setRefTarget(Resource value) {
this.refTarget = value;
@ -310,7 +310,7 @@ public class DocumentManifest extends DomainResource {
protected void listChildren(List<Property> childrenList) {
super.listChildren(childrenList);
childrenList.add(new Property("identifier", "Identifier", "Related identifier to this DocumentManifest. For example, Order numbers, accession numbers, XDW workflow numbers.", 0, java.lang.Integer.MAX_VALUE, identifier));
childrenList.add(new Property("ref", "Reference(Any)", "Related Resource to this DocumentManifest. For example, Order, DiagnosticOrder, Procedure, EligibilityRequest, etc.", 0, java.lang.Integer.MAX_VALUE, ref));
childrenList.add(new Property("ref", "Reference(Any)", "Related Resource to this DocumentManifest. For example, Order, DiagnosticRequest, Procedure, EligibilityRequest, etc.", 0, java.lang.Integer.MAX_VALUE, ref));
}
@Override

View File

@ -29,7 +29,7 @@ package org.hl7.fhir.dstu3.model;
*/
// Generated on Tue, Jul 12, 2016 12:04-0400 for FHIR v1.5.0
// Generated on Wed, Aug 3, 2016 09:39-0400 for FHIR v1.5.0
import java.util.*;

View File

@ -29,7 +29,7 @@ package org.hl7.fhir.dstu3.model;
*/
// Generated on Tue, Jul 12, 2016 12:04-0400 for FHIR v1.5.0
// Generated on Wed, Aug 3, 2016 09:39-0400 for FHIR v1.5.0
import java.util.*;

View File

@ -29,7 +29,7 @@ package org.hl7.fhir.dstu3.model;
*/
// Generated on Tue, Jul 12, 2016 12:04-0400 for FHIR v1.5.0
// Generated on Wed, Aug 3, 2016 09:39-0400 for FHIR v1.5.0
import java.util.*;

View File

@ -30,17 +30,16 @@ package org.hl7.fhir.dstu3.model;
*/
// Generated on Tue, Jul 12, 2016 12:04-0400 for FHIR v1.5.0
import java.util.ArrayList;
import java.util.List;
import java.util.*;
import org.hl7.fhir.utilities.Utilities;
import ca.uhn.fhir.model.api.annotation.Child;
import ca.uhn.fhir.model.api.annotation.ChildOrder;
import ca.uhn.fhir.model.api.annotation.Description;
import ca.uhn.fhir.model.api.annotation.DatatypeDef;
import ca.uhn.fhir.model.api.annotation.Block;
import org.hl7.fhir.instance.model.api.*;
import org.hl7.fhir.dstu3.exceptions.FHIRException;
import org.hl7.fhir.instance.model.api.IBaseElement;
import org.hl7.fhir.instance.model.api.IBaseHasExtensions;
import org.hl7.fhir.utilities.Utilities;
import ca.uhn.fhir.model.api.annotation.Child;
import ca.uhn.fhir.model.api.annotation.Description;
/**
* Base definition for all elements in a resource.
*/

View File

@ -29,7 +29,7 @@ package org.hl7.fhir.dstu3.model;
*/
// Generated on Tue, Jul 12, 2016 12:04-0400 for FHIR v1.5.0
// Generated on Wed, Aug 3, 2016 09:39-0400 for FHIR v1.5.0
import java.util.*;

View File

@ -29,7 +29,7 @@ package org.hl7.fhir.dstu3.model;
*/
// Generated on Tue, Jul 12, 2016 12:04-0400 for FHIR v1.5.0
// Generated on Wed, Aug 3, 2016 09:39-0400 for FHIR v1.5.0
import java.util.*;
@ -1357,70 +1357,56 @@ public class EligibilityRequest extends DomainResource {
public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_IDENTIFIER);
/**
* Search parameter: <b>facilityreference</b>
* Search parameter: <b>organization-reference</b>
* <p>
* Description: <b>Facility responsible for the goods and services</b><br>
* Description: <b>The reference to the providing organization</b><br>
* Type: <b>reference</b><br>
* Path: <b>EligibilityRequest.facilityReference</b><br>
* Path: <b>EligibilityRequest.organizationReference</b><br>
* </p>
*/
@SearchParamDefinition(name="facilityreference", path="EligibilityRequest.facility.as(Reference)", description="Facility responsible for the goods and services", type="reference", target={Location.class } )
public static final String SP_FACILITYREFERENCE = "facilityreference";
@SearchParamDefinition(name="organization-reference", path="EligibilityRequest.organization.as(Reference)", description="The reference to the providing organization", type="reference", target={Organization.class } )
public static final String SP_ORGANIZATION_REFERENCE = "organization-reference";
/**
* <b>Fluent Client</b> search parameter constant for <b>facilityreference</b>
* <b>Fluent Client</b> search parameter constant for <b>organization-reference</b>
* <p>
* Description: <b>Facility responsible for the goods and services</b><br>
* Description: <b>The reference to the providing organization</b><br>
* Type: <b>reference</b><br>
* Path: <b>EligibilityRequest.facilityReference</b><br>
* Path: <b>EligibilityRequest.organizationReference</b><br>
* </p>
*/
public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam FACILITYREFERENCE = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_FACILITYREFERENCE);
public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam ORGANIZATION_REFERENCE = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_ORGANIZATION_REFERENCE);
/**
* Constant for fluent queries to be used to add include statements. Specifies
* the path value of "<b>EligibilityRequest:facilityreference</b>".
* the path value of "<b>EligibilityRequest:organization-reference</b>".
*/
public static final ca.uhn.fhir.model.api.Include INCLUDE_FACILITYREFERENCE = new ca.uhn.fhir.model.api.Include("EligibilityRequest:facilityreference").toLocked();
public static final ca.uhn.fhir.model.api.Include INCLUDE_ORGANIZATION_REFERENCE = new ca.uhn.fhir.model.api.Include("EligibilityRequest:organization-reference").toLocked();
/**
* Search parameter: <b>patientidentifier</b>
* Search parameter: <b>patient-reference</b>
* <p>
* Description: <b>The reference to the patient</b><br>
* Type: <b>token</b><br>
* Path: <b>EligibilityRequest.patientIdentifier</b><br>
* Type: <b>reference</b><br>
* Path: <b>EligibilityRequest.patientReference</b><br>
* </p>
*/
@SearchParamDefinition(name="patientidentifier", path="EligibilityRequest.patient.as(Identifier)", description="The reference to the patient", type="token" )
public static final String SP_PATIENTIDENTIFIER = "patientidentifier";
@SearchParamDefinition(name="patient-reference", path="EligibilityRequest.patient.as(Reference)", description="The reference to the patient", type="reference", target={Patient.class } )
public static final String SP_PATIENT_REFERENCE = "patient-reference";
/**
* <b>Fluent Client</b> search parameter constant for <b>patientidentifier</b>
* <b>Fluent Client</b> search parameter constant for <b>patient-reference</b>
* <p>
* Description: <b>The reference to the patient</b><br>
* Type: <b>token</b><br>
* Path: <b>EligibilityRequest.patientIdentifier</b><br>
* Type: <b>reference</b><br>
* Path: <b>EligibilityRequest.patientReference</b><br>
* </p>
*/
public static final ca.uhn.fhir.rest.gclient.TokenClientParam PATIENTIDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_PATIENTIDENTIFIER);
public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PATIENT_REFERENCE = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_PATIENT_REFERENCE);
/**
* Search parameter: <b>organizationidentifier</b>
* <p>
* Description: <b>The reference to the providing organization</b><br>
* Type: <b>token</b><br>
* Path: <b>EligibilityRequest.organizationidentifier</b><br>
* </p>
/**
* Constant for fluent queries to be used to add include statements. Specifies
* the path value of "<b>EligibilityRequest:patient-reference</b>".
*/
@SearchParamDefinition(name="organizationidentifier", path="EligibilityRequest.organization.as(identifier)", description="The reference to the providing organization", type="token" )
public static final String SP_ORGANIZATIONIDENTIFIER = "organizationidentifier";
/**
* <b>Fluent Client</b> search parameter constant for <b>organizationidentifier</b>
* <p>
* Description: <b>The reference to the providing organization</b><br>
* Type: <b>token</b><br>
* Path: <b>EligibilityRequest.organizationidentifier</b><br>
* </p>
*/
public static final ca.uhn.fhir.rest.gclient.TokenClientParam ORGANIZATIONIDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_ORGANIZATIONIDENTIFIER);
public static final ca.uhn.fhir.model.api.Include INCLUDE_PATIENT_REFERENCE = new ca.uhn.fhir.model.api.Include("EligibilityRequest:patient-reference").toLocked();
/**
* Search parameter: <b>created</b>
@ -1443,122 +1429,136 @@ public class EligibilityRequest extends DomainResource {
public static final ca.uhn.fhir.rest.gclient.DateClientParam CREATED = new ca.uhn.fhir.rest.gclient.DateClientParam(SP_CREATED);
/**
* Search parameter: <b>patientreference</b>
* <p>
* Description: <b>The reference to the patient</b><br>
* Type: <b>reference</b><br>
* Path: <b>EligibilityRequest.patientReference</b><br>
* </p>
*/
@SearchParamDefinition(name="patientreference", path="EligibilityRequest.patient.as(Reference)", description="The reference to the patient", type="reference", target={Patient.class } )
public static final String SP_PATIENTREFERENCE = "patientreference";
/**
* <b>Fluent Client</b> search parameter constant for <b>patientreference</b>
* <p>
* Description: <b>The reference to the patient</b><br>
* Type: <b>reference</b><br>
* Path: <b>EligibilityRequest.patientReference</b><br>
* </p>
*/
public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PATIENTREFERENCE = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_PATIENTREFERENCE);
/**
* Constant for fluent queries to be used to add include statements. Specifies
* the path value of "<b>EligibilityRequest:patientreference</b>".
*/
public static final ca.uhn.fhir.model.api.Include INCLUDE_PATIENTREFERENCE = new ca.uhn.fhir.model.api.Include("EligibilityRequest:patientreference").toLocked();
/**
* Search parameter: <b>providerreference</b>
* <p>
* Description: <b>The reference to the provider</b><br>
* Type: <b>reference</b><br>
* Path: <b>EligibilityRequest.providerReference</b><br>
* </p>
*/
@SearchParamDefinition(name="providerreference", path="EligibilityRequest.provider.as(Reference)", description="The reference to the provider", type="reference", target={Practitioner.class } )
public static final String SP_PROVIDERREFERENCE = "providerreference";
/**
* <b>Fluent Client</b> search parameter constant for <b>providerreference</b>
* <p>
* Description: <b>The reference to the provider</b><br>
* Type: <b>reference</b><br>
* Path: <b>EligibilityRequest.providerReference</b><br>
* </p>
*/
public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PROVIDERREFERENCE = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_PROVIDERREFERENCE);
/**
* Constant for fluent queries to be used to add include statements. Specifies
* the path value of "<b>EligibilityRequest:providerreference</b>".
*/
public static final ca.uhn.fhir.model.api.Include INCLUDE_PROVIDERREFERENCE = new ca.uhn.fhir.model.api.Include("EligibilityRequest:providerreference").toLocked();
/**
* Search parameter: <b>organizationreference</b>
* Search parameter: <b>organization-identifier</b>
* <p>
* Description: <b>The reference to the providing organization</b><br>
* Type: <b>reference</b><br>
* Path: <b>EligibilityRequest.organizationReference</b><br>
* Type: <b>token</b><br>
* Path: <b>EligibilityRequest.organizationidentifier</b><br>
* </p>
*/
@SearchParamDefinition(name="organizationreference", path="EligibilityRequest.organization.as(Reference)", description="The reference to the providing organization", type="reference", target={Organization.class } )
public static final String SP_ORGANIZATIONREFERENCE = "organizationreference";
@SearchParamDefinition(name="organization-identifier", path="EligibilityRequest.organization.as(identifier)", description="The reference to the providing organization", type="token" )
public static final String SP_ORGANIZATION_IDENTIFIER = "organization-identifier";
/**
* <b>Fluent Client</b> search parameter constant for <b>organizationreference</b>
* <b>Fluent Client</b> search parameter constant for <b>organization-identifier</b>
* <p>
* Description: <b>The reference to the providing organization</b><br>
* Type: <b>reference</b><br>
* Path: <b>EligibilityRequest.organizationReference</b><br>
* Type: <b>token</b><br>
* Path: <b>EligibilityRequest.organizationidentifier</b><br>
* </p>
*/
public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam ORGANIZATIONREFERENCE = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_ORGANIZATIONREFERENCE);
/**
* Constant for fluent queries to be used to add include statements. Specifies
* the path value of "<b>EligibilityRequest:organizationreference</b>".
*/
public static final ca.uhn.fhir.model.api.Include INCLUDE_ORGANIZATIONREFERENCE = new ca.uhn.fhir.model.api.Include("EligibilityRequest:organizationreference").toLocked();
public static final ca.uhn.fhir.rest.gclient.TokenClientParam ORGANIZATION_IDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_ORGANIZATION_IDENTIFIER);
/**
* Search parameter: <b>provideridentifier</b>
* Search parameter: <b>provider-identifier</b>
* <p>
* Description: <b>The reference to the provider</b><br>
* Type: <b>token</b><br>
* Path: <b>EligibilityRequest.provideridentifier</b><br>
* </p>
*/
@SearchParamDefinition(name="provideridentifier", path="EligibilityRequest.provider.as(identifier)", description="The reference to the provider", type="token" )
public static final String SP_PROVIDERIDENTIFIER = "provideridentifier";
@SearchParamDefinition(name="provider-identifier", path="EligibilityRequest.provider.as(identifier)", description="The reference to the provider", type="token" )
public static final String SP_PROVIDER_IDENTIFIER = "provider-identifier";
/**
* <b>Fluent Client</b> search parameter constant for <b>provideridentifier</b>
* <b>Fluent Client</b> search parameter constant for <b>provider-identifier</b>
* <p>
* Description: <b>The reference to the provider</b><br>
* Type: <b>token</b><br>
* Path: <b>EligibilityRequest.provideridentifier</b><br>
* </p>
*/
public static final ca.uhn.fhir.rest.gclient.TokenClientParam PROVIDERIDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_PROVIDERIDENTIFIER);
public static final ca.uhn.fhir.rest.gclient.TokenClientParam PROVIDER_IDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_PROVIDER_IDENTIFIER);
/**
* Search parameter: <b>facilityidentifier</b>
* Search parameter: <b>facility-identifier</b>
* <p>
* Description: <b>Facility responsible for the goods and services</b><br>
* Type: <b>token</b><br>
* Path: <b>EligibilityRequest.facilityidentifier</b><br>
* </p>
*/
@SearchParamDefinition(name="facilityidentifier", path="EligibilityRequest.facility.as(identifier)", description="Facility responsible for the goods and services", type="token" )
public static final String SP_FACILITYIDENTIFIER = "facilityidentifier";
@SearchParamDefinition(name="facility-identifier", path="EligibilityRequest.facility.as(identifier)", description="Facility responsible for the goods and services", type="token" )
public static final String SP_FACILITY_IDENTIFIER = "facility-identifier";
/**
* <b>Fluent Client</b> search parameter constant for <b>facilityidentifier</b>
* <b>Fluent Client</b> search parameter constant for <b>facility-identifier</b>
* <p>
* Description: <b>Facility responsible for the goods and services</b><br>
* Type: <b>token</b><br>
* Path: <b>EligibilityRequest.facilityidentifier</b><br>
* </p>
*/
public static final ca.uhn.fhir.rest.gclient.TokenClientParam FACILITYIDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_FACILITYIDENTIFIER);
public static final ca.uhn.fhir.rest.gclient.TokenClientParam FACILITY_IDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_FACILITY_IDENTIFIER);
/**
* Search parameter: <b>provider-reference</b>
* <p>
* Description: <b>The reference to the provider</b><br>
* Type: <b>reference</b><br>
* Path: <b>EligibilityRequest.providerReference</b><br>
* </p>
*/
@SearchParamDefinition(name="provider-reference", path="EligibilityRequest.provider.as(Reference)", description="The reference to the provider", type="reference", target={Practitioner.class } )
public static final String SP_PROVIDER_REFERENCE = "provider-reference";
/**
* <b>Fluent Client</b> search parameter constant for <b>provider-reference</b>
* <p>
* Description: <b>The reference to the provider</b><br>
* Type: <b>reference</b><br>
* Path: <b>EligibilityRequest.providerReference</b><br>
* </p>
*/
public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PROVIDER_REFERENCE = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_PROVIDER_REFERENCE);
/**
* Constant for fluent queries to be used to add include statements. Specifies
* the path value of "<b>EligibilityRequest:provider-reference</b>".
*/
public static final ca.uhn.fhir.model.api.Include INCLUDE_PROVIDER_REFERENCE = new ca.uhn.fhir.model.api.Include("EligibilityRequest:provider-reference").toLocked();
/**
* Search parameter: <b>patient-identifier</b>
* <p>
* Description: <b>The reference to the patient</b><br>
* Type: <b>token</b><br>
* Path: <b>EligibilityRequest.patientIdentifier</b><br>
* </p>
*/
@SearchParamDefinition(name="patient-identifier", path="EligibilityRequest.patient.as(Identifier)", description="The reference to the patient", type="token" )
public static final String SP_PATIENT_IDENTIFIER = "patient-identifier";
/**
* <b>Fluent Client</b> search parameter constant for <b>patient-identifier</b>
* <p>
* Description: <b>The reference to the patient</b><br>
* Type: <b>token</b><br>
* Path: <b>EligibilityRequest.patientIdentifier</b><br>
* </p>
*/
public static final ca.uhn.fhir.rest.gclient.TokenClientParam PATIENT_IDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_PATIENT_IDENTIFIER);
/**
* Search parameter: <b>facility-reference</b>
* <p>
* Description: <b>Facility responsible for the goods and services</b><br>
* Type: <b>reference</b><br>
* Path: <b>EligibilityRequest.facilityReference</b><br>
* </p>
*/
@SearchParamDefinition(name="facility-reference", path="EligibilityRequest.facility.as(Reference)", description="Facility responsible for the goods and services", type="reference", target={Location.class } )
public static final String SP_FACILITY_REFERENCE = "facility-reference";
/**
* <b>Fluent Client</b> search parameter constant for <b>facility-reference</b>
* <p>
* Description: <b>Facility responsible for the goods and services</b><br>
* Type: <b>reference</b><br>
* Path: <b>EligibilityRequest.facilityReference</b><br>
* </p>
*/
public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam FACILITY_REFERENCE = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_FACILITY_REFERENCE);
/**
* Constant for fluent queries to be used to add include statements. Specifies
* the path value of "<b>EligibilityRequest:facility-reference</b>".
*/
public static final ca.uhn.fhir.model.api.Include INCLUDE_FACILITY_REFERENCE = new ca.uhn.fhir.model.api.Include("EligibilityRequest:facility-reference").toLocked();
}

View File

@ -29,7 +29,7 @@ package org.hl7.fhir.dstu3.model;
*/
// Generated on Tue, Jul 12, 2016 12:04-0400 for FHIR v1.5.0
// Generated on Wed, Aug 3, 2016 09:39-0400 for FHIR v1.5.0
import java.util.*;
@ -2299,46 +2299,6 @@ public class EligibilityResponse extends DomainResource {
return ResourceType.EligibilityResponse;
}
/**
* Search parameter: <b>requestprovideridentifier</b>
* <p>
* Description: <b>The EligibilityRequest provider</b><br>
* Type: <b>token</b><br>
* Path: <b>EligibilityResponse.requestProviderIdentifier</b><br>
* </p>
*/
@SearchParamDefinition(name="requestprovideridentifier", path="EligibilityResponse.requestProvider.as(Identifier)", description="The EligibilityRequest provider", type="token" )
public static final String SP_REQUESTPROVIDERIDENTIFIER = "requestprovideridentifier";
/**
* <b>Fluent Client</b> search parameter constant for <b>requestprovideridentifier</b>
* <p>
* Description: <b>The EligibilityRequest provider</b><br>
* Type: <b>token</b><br>
* Path: <b>EligibilityResponse.requestProviderIdentifier</b><br>
* </p>
*/
public static final ca.uhn.fhir.rest.gclient.TokenClientParam REQUESTPROVIDERIDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_REQUESTPROVIDERIDENTIFIER);
/**
* Search parameter: <b>requestorganizationidentifier</b>
* <p>
* Description: <b>The EligibilityRequest organization</b><br>
* Type: <b>token</b><br>
* Path: <b>EligibilityResponse.requestOrganizationIdentifier</b><br>
* </p>
*/
@SearchParamDefinition(name="requestorganizationidentifier", path="EligibilityResponse.requestOrganization.as(Identifier)", description="The EligibilityRequest organization", type="token" )
public static final String SP_REQUESTORGANIZATIONIDENTIFIER = "requestorganizationidentifier";
/**
* <b>Fluent Client</b> search parameter constant for <b>requestorganizationidentifier</b>
* <p>
* Description: <b>The EligibilityRequest organization</b><br>
* Type: <b>token</b><br>
* Path: <b>EligibilityResponse.requestOrganizationIdentifier</b><br>
* </p>
*/
public static final ca.uhn.fhir.rest.gclient.TokenClientParam REQUESTORGANIZATIONIDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_REQUESTORGANIZATIONIDENTIFIER);
/**
* Search parameter: <b>identifier</b>
* <p>
@ -2359,6 +2319,32 @@ public class EligibilityResponse extends DomainResource {
*/
public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_IDENTIFIER);
/**
* Search parameter: <b>request-reference</b>
* <p>
* Description: <b>The EligibilityRequest reference</b><br>
* Type: <b>reference</b><br>
* Path: <b>EligibilityResponse.requestReference</b><br>
* </p>
*/
@SearchParamDefinition(name="request-reference", path="EligibilityResponse.request.as(Reference)", description="The EligibilityRequest reference", type="reference", target={EligibilityRequest.class } )
public static final String SP_REQUEST_REFERENCE = "request-reference";
/**
* <b>Fluent Client</b> search parameter constant for <b>request-reference</b>
* <p>
* Description: <b>The EligibilityRequest reference</b><br>
* Type: <b>reference</b><br>
* Path: <b>EligibilityResponse.requestReference</b><br>
* </p>
*/
public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam REQUEST_REFERENCE = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_REQUEST_REFERENCE);
/**
* Constant for fluent queries to be used to add include statements. Specifies
* the path value of "<b>EligibilityResponse:request-reference</b>".
*/
public static final ca.uhn.fhir.model.api.Include INCLUDE_REQUEST_REFERENCE = new ca.uhn.fhir.model.api.Include("EligibilityResponse:request-reference").toLocked();
/**
* Search parameter: <b>disposition</b>
* <p>
@ -2380,24 +2366,76 @@ public class EligibilityResponse extends DomainResource {
public static final ca.uhn.fhir.rest.gclient.StringClientParam DISPOSITION = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_DISPOSITION);
/**
* Search parameter: <b>organizationidentifier</b>
* Search parameter: <b>request-provider-identifier</b>
* <p>
* Description: <b>The organization which generated this resource</b><br>
* Description: <b>The EligibilityRequest provider</b><br>
* Type: <b>token</b><br>
* Path: <b>EligibilityResponse.organizationIdentifier</b><br>
* Path: <b>EligibilityResponse.requestProviderIdentifier</b><br>
* </p>
*/
@SearchParamDefinition(name="organizationidentifier", path="EligibilityResponse.organization.as(Identifier)", description="The organization which generated this resource", type="token" )
public static final String SP_ORGANIZATIONIDENTIFIER = "organizationidentifier";
@SearchParamDefinition(name="request-provider-identifier", path="EligibilityResponse.requestProvider.as(Identifier)", description="The EligibilityRequest provider", type="token" )
public static final String SP_REQUEST_PROVIDER_IDENTIFIER = "request-provider-identifier";
/**
* <b>Fluent Client</b> search parameter constant for <b>organizationidentifier</b>
* <b>Fluent Client</b> search parameter constant for <b>request-provider-identifier</b>
* <p>
* Description: <b>The organization which generated this resource</b><br>
* Description: <b>The EligibilityRequest provider</b><br>
* Type: <b>token</b><br>
* Path: <b>EligibilityResponse.organizationIdentifier</b><br>
* Path: <b>EligibilityResponse.requestProviderIdentifier</b><br>
* </p>
*/
public static final ca.uhn.fhir.rest.gclient.TokenClientParam ORGANIZATIONIDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_ORGANIZATIONIDENTIFIER);
public static final ca.uhn.fhir.rest.gclient.TokenClientParam REQUEST_PROVIDER_IDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_REQUEST_PROVIDER_IDENTIFIER);
/**
* Search parameter: <b>request-organization-reference</b>
* <p>
* Description: <b>The EligibilityRequest organization</b><br>
* Type: <b>reference</b><br>
* Path: <b>EligibilityResponse.requestOrganizationReference</b><br>
* </p>
*/
@SearchParamDefinition(name="request-organization-reference", path="EligibilityResponse.requestOrganization.as(Reference)", description="The EligibilityRequest organization", type="reference", target={Organization.class } )
public static final String SP_REQUEST_ORGANIZATION_REFERENCE = "request-organization-reference";
/**
* <b>Fluent Client</b> search parameter constant for <b>request-organization-reference</b>
* <p>
* Description: <b>The EligibilityRequest organization</b><br>
* Type: <b>reference</b><br>
* Path: <b>EligibilityResponse.requestOrganizationReference</b><br>
* </p>
*/
public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam REQUEST_ORGANIZATION_REFERENCE = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_REQUEST_ORGANIZATION_REFERENCE);
/**
* Constant for fluent queries to be used to add include statements. Specifies
* the path value of "<b>EligibilityResponse:request-organization-reference</b>".
*/
public static final ca.uhn.fhir.model.api.Include INCLUDE_REQUEST_ORGANIZATION_REFERENCE = new ca.uhn.fhir.model.api.Include("EligibilityResponse:request-organization-reference").toLocked();
/**
* Search parameter: <b>organization-reference</b>
* <p>
* Description: <b>The organization which generated this resource</b><br>
* Type: <b>reference</b><br>
* Path: <b>EligibilityResponse.organizationReference</b><br>
* </p>
*/
@SearchParamDefinition(name="organization-reference", path="EligibilityResponse.organization.as(Reference)", description="The organization which generated this resource", type="reference", target={Organization.class } )
public static final String SP_ORGANIZATION_REFERENCE = "organization-reference";
/**
* <b>Fluent Client</b> search parameter constant for <b>organization-reference</b>
* <p>
* Description: <b>The organization which generated this resource</b><br>
* Type: <b>reference</b><br>
* Path: <b>EligibilityResponse.organizationReference</b><br>
* </p>
*/
public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam ORGANIZATION_REFERENCE = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_ORGANIZATION_REFERENCE);
/**
* Constant for fluent queries to be used to add include statements. Specifies
* the path value of "<b>EligibilityResponse:organization-reference</b>".
*/
public static final ca.uhn.fhir.model.api.Include INCLUDE_ORGANIZATION_REFERENCE = new ca.uhn.fhir.model.api.Include("EligibilityResponse:organization-reference").toLocked();
/**
* Search parameter: <b>created</b>
@ -2420,128 +2458,64 @@ public class EligibilityResponse extends DomainResource {
public static final ca.uhn.fhir.rest.gclient.DateClientParam CREATED = new ca.uhn.fhir.rest.gclient.DateClientParam(SP_CREATED);
/**
* Search parameter: <b>requestidentifier</b>
* Search parameter: <b>organization-identifier</b>
* <p>
* Description: <b>The organization which generated this resource</b><br>
* Type: <b>token</b><br>
* Path: <b>EligibilityResponse.organizationIdentifier</b><br>
* </p>
*/
@SearchParamDefinition(name="organization-identifier", path="EligibilityResponse.organization.as(Identifier)", description="The organization which generated this resource", type="token" )
public static final String SP_ORGANIZATION_IDENTIFIER = "organization-identifier";
/**
* <b>Fluent Client</b> search parameter constant for <b>organization-identifier</b>
* <p>
* Description: <b>The organization which generated this resource</b><br>
* Type: <b>token</b><br>
* Path: <b>EligibilityResponse.organizationIdentifier</b><br>
* </p>
*/
public static final ca.uhn.fhir.rest.gclient.TokenClientParam ORGANIZATION_IDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_ORGANIZATION_IDENTIFIER);
/**
* Search parameter: <b>request-identifier</b>
* <p>
* Description: <b>The EligibilityRequest reference</b><br>
* Type: <b>token</b><br>
* Path: <b>EligibilityResponse.requestIdentifier</b><br>
* </p>
*/
@SearchParamDefinition(name="requestidentifier", path="EligibilityResponse.request.as(Identifier)", description="The EligibilityRequest reference", type="token" )
public static final String SP_REQUESTIDENTIFIER = "requestidentifier";
@SearchParamDefinition(name="request-identifier", path="EligibilityResponse.request.as(Identifier)", description="The EligibilityRequest reference", type="token" )
public static final String SP_REQUEST_IDENTIFIER = "request-identifier";
/**
* <b>Fluent Client</b> search parameter constant for <b>requestidentifier</b>
* <b>Fluent Client</b> search parameter constant for <b>request-identifier</b>
* <p>
* Description: <b>The EligibilityRequest reference</b><br>
* Type: <b>token</b><br>
* Path: <b>EligibilityResponse.requestIdentifier</b><br>
* </p>
*/
public static final ca.uhn.fhir.rest.gclient.TokenClientParam REQUESTIDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_REQUESTIDENTIFIER);
public static final ca.uhn.fhir.rest.gclient.TokenClientParam REQUEST_IDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_REQUEST_IDENTIFIER);
/**
* Search parameter: <b>organizationreference</b>
* <p>
* Description: <b>The organization which generated this resource</b><br>
* Type: <b>reference</b><br>
* Path: <b>EligibilityResponse.organizationReference</b><br>
* </p>
*/
@SearchParamDefinition(name="organizationreference", path="EligibilityResponse.organization.as(Reference)", description="The organization which generated this resource", type="reference", target={Organization.class } )
public static final String SP_ORGANIZATIONREFERENCE = "organizationreference";
/**
* <b>Fluent Client</b> search parameter constant for <b>organizationreference</b>
* <p>
* Description: <b>The organization which generated this resource</b><br>
* Type: <b>reference</b><br>
* Path: <b>EligibilityResponse.organizationReference</b><br>
* </p>
*/
public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam ORGANIZATIONREFERENCE = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_ORGANIZATIONREFERENCE);
/**
* Constant for fluent queries to be used to add include statements. Specifies
* the path value of "<b>EligibilityResponse:organizationreference</b>".
*/
public static final ca.uhn.fhir.model.api.Include INCLUDE_ORGANIZATIONREFERENCE = new ca.uhn.fhir.model.api.Include("EligibilityResponse:organizationreference").toLocked();
/**
* Search parameter: <b>requestproviderreference</b>
* <p>
* Description: <b>The EligibilityRequest provider</b><br>
* Type: <b>reference</b><br>
* Path: <b>EligibilityResponse.requestProviderReference</b><br>
* </p>
*/
@SearchParamDefinition(name="requestproviderreference", path="EligibilityResponse.requestProvider.as(Reference)", description="The EligibilityRequest provider", type="reference", target={Practitioner.class } )
public static final String SP_REQUESTPROVIDERREFERENCE = "requestproviderreference";
/**
* <b>Fluent Client</b> search parameter constant for <b>requestproviderreference</b>
* <p>
* Description: <b>The EligibilityRequest provider</b><br>
* Type: <b>reference</b><br>
* Path: <b>EligibilityResponse.requestProviderReference</b><br>
* </p>
*/
public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam REQUESTPROVIDERREFERENCE = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_REQUESTPROVIDERREFERENCE);
/**
* Constant for fluent queries to be used to add include statements. Specifies
* the path value of "<b>EligibilityResponse:requestproviderreference</b>".
*/
public static final ca.uhn.fhir.model.api.Include INCLUDE_REQUESTPROVIDERREFERENCE = new ca.uhn.fhir.model.api.Include("EligibilityResponse:requestproviderreference").toLocked();
/**
* Search parameter: <b>requestorganizationreference</b>
* Search parameter: <b>request-organization-identifier</b>
* <p>
* Description: <b>The EligibilityRequest organization</b><br>
* Type: <b>reference</b><br>
* Path: <b>EligibilityResponse.requestOrganizationReference</b><br>
* Type: <b>token</b><br>
* Path: <b>EligibilityResponse.requestOrganizationIdentifier</b><br>
* </p>
*/
@SearchParamDefinition(name="requestorganizationreference", path="EligibilityResponse.requestOrganization.as(Reference)", description="The EligibilityRequest organization", type="reference", target={Organization.class } )
public static final String SP_REQUESTORGANIZATIONREFERENCE = "requestorganizationreference";
@SearchParamDefinition(name="request-organization-identifier", path="EligibilityResponse.requestOrganization.as(Identifier)", description="The EligibilityRequest organization", type="token" )
public static final String SP_REQUEST_ORGANIZATION_IDENTIFIER = "request-organization-identifier";
/**
* <b>Fluent Client</b> search parameter constant for <b>requestorganizationreference</b>
* <b>Fluent Client</b> search parameter constant for <b>request-organization-identifier</b>
* <p>
* Description: <b>The EligibilityRequest organization</b><br>
* Type: <b>reference</b><br>
* Path: <b>EligibilityResponse.requestOrganizationReference</b><br>
* Type: <b>token</b><br>
* Path: <b>EligibilityResponse.requestOrganizationIdentifier</b><br>
* </p>
*/
public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam REQUESTORGANIZATIONREFERENCE = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_REQUESTORGANIZATIONREFERENCE);
/**
* Constant for fluent queries to be used to add include statements. Specifies
* the path value of "<b>EligibilityResponse:requestorganizationreference</b>".
*/
public static final ca.uhn.fhir.model.api.Include INCLUDE_REQUESTORGANIZATIONREFERENCE = new ca.uhn.fhir.model.api.Include("EligibilityResponse:requestorganizationreference").toLocked();
/**
* Search parameter: <b>requestreference</b>
* <p>
* Description: <b>The EligibilityRequest reference</b><br>
* Type: <b>reference</b><br>
* Path: <b>EligibilityResponse.requestReference</b><br>
* </p>
*/
@SearchParamDefinition(name="requestreference", path="EligibilityResponse.request.as(Reference)", description="The EligibilityRequest reference", type="reference", target={EligibilityRequest.class } )
public static final String SP_REQUESTREFERENCE = "requestreference";
/**
* <b>Fluent Client</b> search parameter constant for <b>requestreference</b>
* <p>
* Description: <b>The EligibilityRequest reference</b><br>
* Type: <b>reference</b><br>
* Path: <b>EligibilityResponse.requestReference</b><br>
* </p>
*/
public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam REQUESTREFERENCE = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_REQUESTREFERENCE);
/**
* Constant for fluent queries to be used to add include statements. Specifies
* the path value of "<b>EligibilityResponse:requestreference</b>".
*/
public static final ca.uhn.fhir.model.api.Include INCLUDE_REQUESTREFERENCE = new ca.uhn.fhir.model.api.Include("EligibilityResponse:requestreference").toLocked();
public static final ca.uhn.fhir.rest.gclient.TokenClientParam REQUEST_ORGANIZATION_IDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_REQUEST_ORGANIZATION_IDENTIFIER);
/**
* Search parameter: <b>outcome</b>
@ -2563,6 +2537,32 @@ public class EligibilityResponse extends DomainResource {
*/
public static final ca.uhn.fhir.rest.gclient.TokenClientParam OUTCOME = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_OUTCOME);
/**
* Search parameter: <b>request-provider-reference</b>
* <p>
* Description: <b>The EligibilityRequest provider</b><br>
* Type: <b>reference</b><br>
* Path: <b>EligibilityResponse.requestProviderReference</b><br>
* </p>
*/
@SearchParamDefinition(name="request-provider-reference", path="EligibilityResponse.requestProvider.as(Reference)", description="The EligibilityRequest provider", type="reference", target={Practitioner.class } )
public static final String SP_REQUEST_PROVIDER_REFERENCE = "request-provider-reference";
/**
* <b>Fluent Client</b> search parameter constant for <b>request-provider-reference</b>
* <p>
* Description: <b>The EligibilityRequest provider</b><br>
* Type: <b>reference</b><br>
* Path: <b>EligibilityResponse.requestProviderReference</b><br>
* </p>
*/
public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam REQUEST_PROVIDER_REFERENCE = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_REQUEST_PROVIDER_REFERENCE);
/**
* Constant for fluent queries to be used to add include statements. Specifies
* the path value of "<b>EligibilityResponse:request-provider-reference</b>".
*/
public static final ca.uhn.fhir.model.api.Include INCLUDE_REQUEST_PROVIDER_REFERENCE = new ca.uhn.fhir.model.api.Include("EligibilityResponse:request-provider-reference").toLocked();
}

View File

@ -29,7 +29,7 @@ package org.hl7.fhir.dstu3.model;
*/
// Generated on Tue, Jul 12, 2016 12:04-0400 for FHIR v1.5.0
// Generated on Wed, Aug 3, 2016 09:39-0400 for FHIR v1.5.0
import java.util.*;
@ -73,6 +73,10 @@ public class Encounter extends DomainResource {
* The Encounter has ended before it has begun.
*/
CANCELLED,
/**
* This instance should not have been part of this patient's medical record.
*/
ENTEREDINERROR,
/**
* added to help the parsers with the generic types
*/
@ -92,6 +96,8 @@ public class Encounter extends DomainResource {
return FINISHED;
if ("cancelled".equals(codeString))
return CANCELLED;
if ("entered-in-error".equals(codeString))
return ENTEREDINERROR;
if (Configuration.isAcceptInvalidEnums())
return null;
else
@ -105,6 +111,7 @@ public class Encounter extends DomainResource {
case ONLEAVE: return "onleave";
case FINISHED: return "finished";
case CANCELLED: return "cancelled";
case ENTEREDINERROR: return "entered-in-error";
default: return "?";
}
}
@ -116,6 +123,7 @@ public class Encounter extends DomainResource {
case ONLEAVE: return "http://hl7.org/fhir/encounter-status";
case FINISHED: return "http://hl7.org/fhir/encounter-status";
case CANCELLED: return "http://hl7.org/fhir/encounter-status";
case ENTEREDINERROR: return "http://hl7.org/fhir/encounter-status";
default: return "?";
}
}
@ -127,6 +135,7 @@ public class Encounter extends DomainResource {
case ONLEAVE: return "The Encounter has begun, but the patient is temporarily on leave.";
case FINISHED: return "The Encounter has ended.";
case CANCELLED: return "The Encounter has ended before it has begun.";
case ENTEREDINERROR: return "This instance should not have been part of this patient's medical record.";
default: return "?";
}
}
@ -134,10 +143,11 @@ public class Encounter extends DomainResource {
switch (this) {
case PLANNED: return "Planned";
case ARRIVED: return "Arrived";
case INPROGRESS: return "in Progress";
case INPROGRESS: return "In Progress";
case ONLEAVE: return "On Leave";
case FINISHED: return "Finished";
case CANCELLED: return "Cancelled";
case ENTEREDINERROR: return "Entered in Error";
default: return "?";
}
}
@ -160,6 +170,8 @@ public class Encounter extends DomainResource {
return EncounterStatus.FINISHED;
if ("cancelled".equals(codeString))
return EncounterStatus.CANCELLED;
if ("entered-in-error".equals(codeString))
return EncounterStatus.ENTEREDINERROR;
throw new IllegalArgumentException("Unknown EncounterStatus code '"+codeString+"'");
}
public Enumeration<EncounterStatus> fromType(Base code) throws FHIRException {
@ -180,6 +192,8 @@ public class Encounter extends DomainResource {
return new Enumeration<EncounterStatus>(this, EncounterStatus.FINISHED);
if ("cancelled".equals(codeString))
return new Enumeration<EncounterStatus>(this, EncounterStatus.CANCELLED);
if ("entered-in-error".equals(codeString))
return new Enumeration<EncounterStatus>(this, EncounterStatus.ENTEREDINERROR);
throw new FHIRException("Unknown EncounterStatus code '"+codeString+"'");
}
public String toCode(EncounterStatus code) {
@ -195,6 +209,8 @@ public class Encounter extends DomainResource {
return "finished";
if (code == EncounterStatus.CANCELLED)
return "cancelled";
if (code == EncounterStatus.ENTEREDINERROR)
return "entered-in-error";
return "?";
}
public String toSystem(EncounterStatus code) {
@ -208,9 +224,7 @@ public class Encounter extends DomainResource {
*/
PLANNED,
/**
* The patient is currently at this location, or was between the period specified.
A system may update these records when the patient leaves the location to either reserved, or completed
* The patient is currently at this location, or was between the period specified. A system may update these records when the patient leaves the location to either reserved, or completed
*/
ACTIVE,
/**
@ -218,9 +232,7 @@ A system may update these records when the patient leaves the location to either
*/
RESERVED,
/**
* The patient was at this location during the period specified.
Not to be used when the patient is currently at the location
* The patient was at this location during the period specified. Not to be used when the patient is currently at the location
*/
COMPLETED,
/**
@ -264,9 +276,9 @@ Not to be used when the patient is currently at the location
public String getDefinition() {
switch (this) {
case PLANNED: return "The patient is planned to be moved to this location at some point in the future.";
case ACTIVE: return "The patient is currently at this location, or was between the period specified.\n\nA system may update these records when the patient leaves the location to either reserved, or completed";
case ACTIVE: return "The patient is currently at this location, or was between the period specified.\r\rA system may update these records when the patient leaves the location to either reserved, or completed";
case RESERVED: return "This location is held empty for this patient.";
case COMPLETED: return "The patient was at this location during the period specified.\n\nNot to be used when the patient is currently at the location";
case COMPLETED: return "The patient was at this location during the period specified.\r\rNot to be used when the patient is currently at the location";
default: return "?";
}
}
@ -331,10 +343,10 @@ Not to be used when the patient is currently at the location
@Block()
public static class EncounterStatusHistoryComponent extends BackboneElement implements IBaseBackboneElement {
/**
* planned | arrived | in-progress | onleave | finished | cancelled.
* planned | arrived | in-progress | onleave | finished | cancelled | entered-in-error.
*/
@Child(name = "status", type = {CodeType.class}, order=1, min=1, max=1, modifier=false, summary=false)
@Description(shortDefinition="planned | arrived | in-progress | onleave | finished | cancelled", formalDefinition="planned | arrived | in-progress | onleave | finished | cancelled." )
@Description(shortDefinition="planned | arrived | in-progress | onleave | finished | cancelled | entered-in-error", formalDefinition="planned | arrived | in-progress | onleave | finished | cancelled | entered-in-error." )
@ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/encounter-status")
protected Enumeration<EncounterStatus> status;
@ -364,7 +376,7 @@ Not to be used when the patient is currently at the location
}
/**
* @return {@link #status} (planned | arrived | in-progress | onleave | finished | cancelled.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value
* @return {@link #status} (planned | arrived | in-progress | onleave | finished | cancelled | entered-in-error.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value
*/
public Enumeration<EncounterStatus> getStatusElement() {
if (this.status == null)
@ -384,7 +396,7 @@ Not to be used when the patient is currently at the location
}
/**
* @param value {@link #status} (planned | arrived | in-progress | onleave | finished | cancelled.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value
* @param value {@link #status} (planned | arrived | in-progress | onleave | finished | cancelled | entered-in-error.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value
*/
public EncounterStatusHistoryComponent setStatusElement(Enumeration<EncounterStatus> value) {
this.status = value;
@ -392,14 +404,14 @@ Not to be used when the patient is currently at the location
}
/**
* @return planned | arrived | in-progress | onleave | finished | cancelled.
* @return planned | arrived | in-progress | onleave | finished | cancelled | entered-in-error.
*/
public EncounterStatus getStatus() {
return this.status == null ? null : this.status.getValue();
}
/**
* @param value planned | arrived | in-progress | onleave | finished | cancelled.
* @param value planned | arrived | in-progress | onleave | finished | cancelled | entered-in-error.
*/
public EncounterStatusHistoryComponent setStatus(EncounterStatus value) {
if (this.status == null)
@ -434,7 +446,7 @@ Not to be used when the patient is currently at the location
protected void listChildren(List<Property> childrenList) {
super.listChildren(childrenList);
childrenList.add(new Property("status", "code", "planned | arrived | in-progress | onleave | finished | cancelled.", 0, java.lang.Integer.MAX_VALUE, status));
childrenList.add(new Property("status", "code", "planned | arrived | in-progress | onleave | finished | cancelled | entered-in-error.", 0, java.lang.Integer.MAX_VALUE, status));
childrenList.add(new Property("period", "Period", "The time that the episode was in the specified status.", 0, java.lang.Integer.MAX_VALUE, period));
}
@ -1946,10 +1958,10 @@ Not to be used when the patient is currently at the location
protected List<Identifier> identifier;
/**
* planned | arrived | in-progress | onleave | finished | cancelled.
* planned | arrived | in-progress | onleave | finished | cancelled | entered-in-error.
*/
@Child(name = "status", type = {CodeType.class}, order=1, min=1, max=1, modifier=true, summary=true)
@Description(shortDefinition="planned | arrived | in-progress | onleave | finished | cancelled", formalDefinition="planned | arrived | in-progress | onleave | finished | cancelled." )
@Description(shortDefinition="planned | arrived | in-progress | onleave | finished | cancelled | entered-in-error", formalDefinition="planned | arrived | in-progress | onleave | finished | cancelled | entered-in-error." )
@ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/encounter-status")
protected Enumeration<EncounterStatus> status;
@ -1981,7 +1993,7 @@ Not to be used when the patient is currently at the location
*/
@Child(name = "priority", type = {CodeableConcept.class}, order=5, min=0, max=1, modifier=false, summary=false)
@Description(shortDefinition="Indicates the urgency of the encounter", formalDefinition="Indicates the urgency of the encounter." )
@ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/encounter-priority")
@ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/v3-ActPriority")
protected CodeableConcept priority;
/**
@ -2194,7 +2206,7 @@ Not to be used when the patient is currently at the location
}
/**
* @return {@link #status} (planned | arrived | in-progress | onleave | finished | cancelled.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value
* @return {@link #status} (planned | arrived | in-progress | onleave | finished | cancelled | entered-in-error.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value
*/
public Enumeration<EncounterStatus> getStatusElement() {
if (this.status == null)
@ -2214,7 +2226,7 @@ Not to be used when the patient is currently at the location
}
/**
* @param value {@link #status} (planned | arrived | in-progress | onleave | finished | cancelled.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value
* @param value {@link #status} (planned | arrived | in-progress | onleave | finished | cancelled | entered-in-error.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value
*/
public Encounter setStatusElement(Enumeration<EncounterStatus> value) {
this.status = value;
@ -2222,14 +2234,14 @@ Not to be used when the patient is currently at the location
}
/**
* @return planned | arrived | in-progress | onleave | finished | cancelled.
* @return planned | arrived | in-progress | onleave | finished | cancelled | entered-in-error.
*/
public EncounterStatus getStatus() {
return this.status == null ? null : this.status.getValue();
}
/**
* @param value planned | arrived | in-progress | onleave | finished | cancelled.
* @param value planned | arrived | in-progress | onleave | finished | cancelled | entered-in-error.
*/
public Encounter setStatus(EncounterStatus value) {
if (this.status == null)
@ -3090,7 +3102,7 @@ Not to be used when the patient is currently at the location
protected void listChildren(List<Property> childrenList) {
super.listChildren(childrenList);
childrenList.add(new Property("identifier", "Identifier", "Identifier(s) by which this encounter is known.", 0, java.lang.Integer.MAX_VALUE, identifier));
childrenList.add(new Property("status", "code", "planned | arrived | in-progress | onleave | finished | cancelled.", 0, java.lang.Integer.MAX_VALUE, status));
childrenList.add(new Property("status", "code", "planned | arrived | in-progress | onleave | finished | cancelled | entered-in-error.", 0, java.lang.Integer.MAX_VALUE, status));
childrenList.add(new Property("statusHistory", "", "The status history permits the encounter resource to contain the status history without needing to read through the historical versions of the resource, or even have the server store them.", 0, java.lang.Integer.MAX_VALUE, statusHistory));
childrenList.add(new Property("class", "Coding", "inpatient | outpatient | ambulatory | emergency +.", 0, java.lang.Integer.MAX_VALUE, class_));
childrenList.add(new Property("type", "CodeableConcept", "Specific type of encounter (e.g. e-mail consultation, surgical day-care, skilled nursing, rehabilitation).", 0, java.lang.Integer.MAX_VALUE, type));
@ -3939,17 +3951,17 @@ Not to be used when the patient is currently at the location
/**
* Search parameter: <b>status</b>
* <p>
* Description: <b>planned | arrived | in-progress | onleave | finished | cancelled</b><br>
* Description: <b>planned | arrived | in-progress | onleave | finished | cancelled | entered-in-error</b><br>
* Type: <b>token</b><br>
* Path: <b>Encounter.status</b><br>
* </p>
*/
@SearchParamDefinition(name="status", path="Encounter.status", description="planned | arrived | in-progress | onleave | finished | cancelled", type="token" )
@SearchParamDefinition(name="status", path="Encounter.status", description="planned | arrived | in-progress | onleave | finished | cancelled | entered-in-error", type="token" )
public static final String SP_STATUS = "status";
/**
* <b>Fluent Client</b> search parameter constant for <b>status</b>
* <p>
* Description: <b>planned | arrived | in-progress | onleave | finished | cancelled</b><br>
* Description: <b>planned | arrived | in-progress | onleave | finished | cancelled | entered-in-error</b><br>
* Type: <b>token</b><br>
* Path: <b>Encounter.status</b><br>
* </p>

View File

@ -29,7 +29,7 @@ package org.hl7.fhir.dstu3.model;
*/
// Generated on Tue, Jul 12, 2016 12:04-0400 for FHIR v1.5.0
// Generated on Wed, Aug 3, 2016 09:39-0400 for FHIR v1.5.0
import java.util.*;
@ -65,6 +65,10 @@ public class Endpoint extends DomainResource {
* This endpoint is no longer to be used
*/
OFF,
/**
* This instance should not have been part of this patient's medical record.
*/
ENTEREDINERROR,
/**
* added to help the parsers with the generic types
*/
@ -80,6 +84,8 @@ public class Endpoint extends DomainResource {
return ERROR;
if ("off".equals(codeString))
return OFF;
if ("entered-in-error".equals(codeString))
return ENTEREDINERROR;
if (Configuration.isAcceptInvalidEnums())
return null;
else
@ -91,6 +97,7 @@ public class Endpoint extends DomainResource {
case SUSPENDED: return "suspended";
case ERROR: return "error";
case OFF: return "off";
case ENTEREDINERROR: return "entered-in-error";
default: return "?";
}
}
@ -100,6 +107,7 @@ public class Endpoint extends DomainResource {
case SUSPENDED: return "http://hl7.org/fhir/endpoint-status";
case ERROR: return "http://hl7.org/fhir/endpoint-status";
case OFF: return "http://hl7.org/fhir/endpoint-status";
case ENTEREDINERROR: return "http://hl7.org/fhir/endpoint-status";
default: return "?";
}
}
@ -109,6 +117,7 @@ public class Endpoint extends DomainResource {
case SUSPENDED: return "This endpoint is temporarily unavailable";
case ERROR: return "This endpoint has exceeded connectivity thresholds and is considered in an error state and should no longer be attempted to connect to until corrective action is taken";
case OFF: return "This endpoint is no longer to be used";
case ENTEREDINERROR: return "This instance should not have been part of this patient's medical record.";
default: return "?";
}
}
@ -118,6 +127,7 @@ public class Endpoint extends DomainResource {
case SUSPENDED: return "Suspended";
case ERROR: return "Error";
case OFF: return "Off";
case ENTEREDINERROR: return "Entered in error";
default: return "?";
}
}
@ -136,6 +146,8 @@ public class Endpoint extends DomainResource {
return EndpointStatus.ERROR;
if ("off".equals(codeString))
return EndpointStatus.OFF;
if ("entered-in-error".equals(codeString))
return EndpointStatus.ENTEREDINERROR;
throw new IllegalArgumentException("Unknown EndpointStatus code '"+codeString+"'");
}
public Enumeration<EndpointStatus> fromType(Base code) throws FHIRException {
@ -152,6 +164,8 @@ public class Endpoint extends DomainResource {
return new Enumeration<EndpointStatus>(this, EndpointStatus.ERROR);
if ("off".equals(codeString))
return new Enumeration<EndpointStatus>(this, EndpointStatus.OFF);
if ("entered-in-error".equals(codeString))
return new Enumeration<EndpointStatus>(this, EndpointStatus.ENTEREDINERROR);
throw new FHIRException("Unknown EndpointStatus code '"+codeString+"'");
}
public String toCode(EndpointStatus code) {
@ -163,6 +177,8 @@ public class Endpoint extends DomainResource {
return "error";
if (code == EndpointStatus.OFF)
return "off";
if (code == EndpointStatus.ENTEREDINERROR)
return "entered-in-error";
return "?";
}
public String toSystem(EndpointStatus code) {
@ -181,7 +197,7 @@ public class Endpoint extends DomainResource {
* active | suspended | error | off.
*/
@Child(name = "status", type = {CodeType.class}, order=1, min=1, max=1, modifier=true, summary=true)
@Description(shortDefinition="active | suspended | error | off", formalDefinition="active | suspended | error | off." )
@Description(shortDefinition="active | suspended | error | off | entered-in-error", formalDefinition="active | suspended | error | off." )
@ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/endpoint-status")
protected Enumeration<EndpointStatus> status;
@ -242,10 +258,10 @@ public class Endpoint extends DomainResource {
protected UriType address;
/**
* The mime type to send the payload in - either application/xml+fhir, or application/json+fhir. If the mime type is blank, then there is no payload in the notification, just a notification.
* The mime type to send the payload in - either application/fhir+xml, or application/fhir+json. If the mime type is blank, then there is no payload in the notification, just a notification.
*/
@Child(name = "payloadFormat", type = {StringType.class}, order=9, min=1, max=1, modifier=false, summary=false)
@Description(shortDefinition="Mimetype to send, or blank for no payload", formalDefinition="The mime type to send the payload in - either application/xml+fhir, or application/json+fhir. If the mime type is blank, then there is no payload in the notification, just a notification." )
@Description(shortDefinition="Mimetype to send, or blank for no payload", formalDefinition="The mime type to send the payload in - either application/fhir+xml, or application/fhir+json. If the mime type is blank, then there is no payload in the notification, just a notification." )
protected StringType payloadFormat;
/**
@ -681,7 +697,7 @@ public class Endpoint extends DomainResource {
}
/**
* @return {@link #payloadFormat} (The mime type to send the payload in - either application/xml+fhir, or application/json+fhir. If the mime type is blank, then there is no payload in the notification, just a notification.). This is the underlying object with id, value and extensions. The accessor "getPayloadFormat" gives direct access to the value
* @return {@link #payloadFormat} (The mime type to send the payload in - either application/fhir+xml, or application/fhir+json. If the mime type is blank, then there is no payload in the notification, just a notification.). This is the underlying object with id, value and extensions. The accessor "getPayloadFormat" gives direct access to the value
*/
public StringType getPayloadFormatElement() {
if (this.payloadFormat == null)
@ -701,7 +717,7 @@ public class Endpoint extends DomainResource {
}
/**
* @param value {@link #payloadFormat} (The mime type to send the payload in - either application/xml+fhir, or application/json+fhir. If the mime type is blank, then there is no payload in the notification, just a notification.). This is the underlying object with id, value and extensions. The accessor "getPayloadFormat" gives direct access to the value
* @param value {@link #payloadFormat} (The mime type to send the payload in - either application/fhir+xml, or application/fhir+json. If the mime type is blank, then there is no payload in the notification, just a notification.). This is the underlying object with id, value and extensions. The accessor "getPayloadFormat" gives direct access to the value
*/
public Endpoint setPayloadFormatElement(StringType value) {
this.payloadFormat = value;
@ -709,14 +725,14 @@ public class Endpoint extends DomainResource {
}
/**
* @return The mime type to send the payload in - either application/xml+fhir, or application/json+fhir. If the mime type is blank, then there is no payload in the notification, just a notification.
* @return The mime type to send the payload in - either application/fhir+xml, or application/fhir+json. If the mime type is blank, then there is no payload in the notification, just a notification.
*/
public String getPayloadFormat() {
return this.payloadFormat == null ? null : this.payloadFormat.getValue();
}
/**
* @param value The mime type to send the payload in - either application/xml+fhir, or application/json+fhir. If the mime type is blank, then there is no payload in the notification, just a notification.
* @param value The mime type to send the payload in - either application/fhir+xml, or application/fhir+json. If the mime type is blank, then there is no payload in the notification, just a notification.
*/
public Endpoint setPayloadFormat(String value) {
if (this.payloadFormat == null)
@ -899,7 +915,7 @@ public class Endpoint extends DomainResource {
childrenList.add(new Property("method", "Coding", "The http verb to be used when calling this endpoint.", 0, java.lang.Integer.MAX_VALUE, method));
childrenList.add(new Property("period", "Period", "The interval during which the managing organization assumes the defined responsibility.", 0, java.lang.Integer.MAX_VALUE, period));
childrenList.add(new Property("address", "uri", "The uri that describes the actual end-point to send messages to.", 0, java.lang.Integer.MAX_VALUE, address));
childrenList.add(new Property("payloadFormat", "string", "The mime type to send the payload in - either application/xml+fhir, or application/json+fhir. If the mime type is blank, then there is no payload in the notification, just a notification.", 0, java.lang.Integer.MAX_VALUE, payloadFormat));
childrenList.add(new Property("payloadFormat", "string", "The mime type to send the payload in - either application/fhir+xml, or application/fhir+json. If the mime type is blank, then there is no payload in the notification, just a notification.", 0, java.lang.Integer.MAX_VALUE, payloadFormat));
childrenList.add(new Property("payloadType", "CodeableConcept", "The payload type describes the acceptable content that can be communicated on the endpoint.", 0, java.lang.Integer.MAX_VALUE, payloadType));
childrenList.add(new Property("header", "string", "Additional headers / information to send as part of the notification.", 0, java.lang.Integer.MAX_VALUE, header));
childrenList.add(new Property("publicKey", "string", "The public part of the 'keys' allocated to an Organization by an accredited body to support secure exchange of data over the internet. To be provided by the Organization, where available.", 0, java.lang.Integer.MAX_VALUE, publicKey));

View File

@ -29,7 +29,7 @@ package org.hl7.fhir.dstu3.model;
*/
// Generated on Tue, Jul 12, 2016 12:04-0400 for FHIR v1.5.0
// Generated on Wed, Aug 3, 2016 09:39-0400 for FHIR v1.5.0
import java.util.*;
@ -923,32 +923,6 @@ public class EnrollmentRequest extends DomainResource {
return ResourceType.EnrollmentRequest;
}
/**
* Search parameter: <b>subjectreference</b>
* <p>
* Description: <b>The party to be enrolled</b><br>
* Type: <b>reference</b><br>
* Path: <b>EnrollmentRequest.subjectreference</b><br>
* </p>
*/
@SearchParamDefinition(name="subjectreference", path="EnrollmentRequest.subject.as(reference)", description="The party to be enrolled", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Patient") }, target={Patient.class } )
public static final String SP_SUBJECTREFERENCE = "subjectreference";
/**
* <b>Fluent Client</b> search parameter constant for <b>subjectreference</b>
* <p>
* Description: <b>The party to be enrolled</b><br>
* Type: <b>reference</b><br>
* Path: <b>EnrollmentRequest.subjectreference</b><br>
* </p>
*/
public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam SUBJECTREFERENCE = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_SUBJECTREFERENCE);
/**
* Constant for fluent queries to be used to add include statements. Specifies
* the path value of "<b>EnrollmentRequest:subjectreference</b>".
*/
public static final ca.uhn.fhir.model.api.Include INCLUDE_SUBJECTREFERENCE = new ca.uhn.fhir.model.api.Include("EnrollmentRequest:subjectreference").toLocked();
/**
* Search parameter: <b>identifier</b>
* <p>
@ -970,70 +944,96 @@ public class EnrollmentRequest extends DomainResource {
public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_IDENTIFIER);
/**
* Search parameter: <b>patientidentifier</b>
* <p>
* Description: <b>The party to be enrolled</b><br>
* Type: <b>token</b><br>
* Path: <b>EnrollmentRequest.subjectidentifier</b><br>
* </p>
*/
@SearchParamDefinition(name="patientidentifier", path="EnrollmentRequest.subject.as(identifier)", description="The party to be enrolled", type="token" )
public static final String SP_PATIENTIDENTIFIER = "patientidentifier";
/**
* <b>Fluent Client</b> search parameter constant for <b>patientidentifier</b>
* <p>
* Description: <b>The party to be enrolled</b><br>
* Type: <b>token</b><br>
* Path: <b>EnrollmentRequest.subjectidentifier</b><br>
* </p>
*/
public static final ca.uhn.fhir.rest.gclient.TokenClientParam PATIENTIDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_PATIENTIDENTIFIER);
/**
* Search parameter: <b>patientreference</b>
* Search parameter: <b>patient-reference</b>
* <p>
* Description: <b>The party to be enrolled</b><br>
* Type: <b>reference</b><br>
* Path: <b>EnrollmentRequest.subjectreference</b><br>
* </p>
*/
@SearchParamDefinition(name="patientreference", path="EnrollmentRequest.subject.as(reference)", description="The party to be enrolled", type="reference", target={Patient.class } )
public static final String SP_PATIENTREFERENCE = "patientreference";
@SearchParamDefinition(name="patient-reference", path="EnrollmentRequest.subject.as(reference)", description="The party to be enrolled", type="reference", target={Patient.class } )
public static final String SP_PATIENT_REFERENCE = "patient-reference";
/**
* <b>Fluent Client</b> search parameter constant for <b>patientreference</b>
* <b>Fluent Client</b> search parameter constant for <b>patient-reference</b>
* <p>
* Description: <b>The party to be enrolled</b><br>
* Type: <b>reference</b><br>
* Path: <b>EnrollmentRequest.subjectreference</b><br>
* </p>
*/
public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PATIENTREFERENCE = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_PATIENTREFERENCE);
public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PATIENT_REFERENCE = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_PATIENT_REFERENCE);
/**
* Constant for fluent queries to be used to add include statements. Specifies
* the path value of "<b>EnrollmentRequest:patientreference</b>".
* the path value of "<b>EnrollmentRequest:patient-reference</b>".
*/
public static final ca.uhn.fhir.model.api.Include INCLUDE_PATIENTREFERENCE = new ca.uhn.fhir.model.api.Include("EnrollmentRequest:patientreference").toLocked();
public static final ca.uhn.fhir.model.api.Include INCLUDE_PATIENT_REFERENCE = new ca.uhn.fhir.model.api.Include("EnrollmentRequest:patient-reference").toLocked();
/**
* Search parameter: <b>subjectidentifier</b>
* Search parameter: <b>subject-identifier</b>
* <p>
* Description: <b>The party to be enrolled</b><br>
* Type: <b>token</b><br>
* Path: <b>EnrollmentRequest.subjectidentifier</b><br>
* </p>
*/
@SearchParamDefinition(name="subjectidentifier", path="EnrollmentRequest.subject.as(identifier)", description="The party to be enrolled", type="token" )
public static final String SP_SUBJECTIDENTIFIER = "subjectidentifier";
@SearchParamDefinition(name="subject-identifier", path="EnrollmentRequest.subject.as(identifier)", description="The party to be enrolled", type="token" )
public static final String SP_SUBJECT_IDENTIFIER = "subject-identifier";
/**
* <b>Fluent Client</b> search parameter constant for <b>subjectidentifier</b>
* <b>Fluent Client</b> search parameter constant for <b>subject-identifier</b>
* <p>
* Description: <b>The party to be enrolled</b><br>
* Type: <b>token</b><br>
* Path: <b>EnrollmentRequest.subjectidentifier</b><br>
* </p>
*/
public static final ca.uhn.fhir.rest.gclient.TokenClientParam SUBJECTIDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_SUBJECTIDENTIFIER);
public static final ca.uhn.fhir.rest.gclient.TokenClientParam SUBJECT_IDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_SUBJECT_IDENTIFIER);
/**
* Search parameter: <b>subject-reference</b>
* <p>
* Description: <b>The party to be enrolled</b><br>
* Type: <b>reference</b><br>
* Path: <b>EnrollmentRequest.subjectreference</b><br>
* </p>
*/
@SearchParamDefinition(name="subject-reference", path="EnrollmentRequest.subject.as(reference)", description="The party to be enrolled", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Patient") }, target={Patient.class } )
public static final String SP_SUBJECT_REFERENCE = "subject-reference";
/**
* <b>Fluent Client</b> search parameter constant for <b>subject-reference</b>
* <p>
* Description: <b>The party to be enrolled</b><br>
* Type: <b>reference</b><br>
* Path: <b>EnrollmentRequest.subjectreference</b><br>
* </p>
*/
public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam SUBJECT_REFERENCE = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_SUBJECT_REFERENCE);
/**
* Constant for fluent queries to be used to add include statements. Specifies
* the path value of "<b>EnrollmentRequest:subject-reference</b>".
*/
public static final ca.uhn.fhir.model.api.Include INCLUDE_SUBJECT_REFERENCE = new ca.uhn.fhir.model.api.Include("EnrollmentRequest:subject-reference").toLocked();
/**
* Search parameter: <b>patient-identifier</b>
* <p>
* Description: <b>The party to be enrolled</b><br>
* Type: <b>token</b><br>
* Path: <b>EnrollmentRequest.subjectidentifier</b><br>
* </p>
*/
@SearchParamDefinition(name="patient-identifier", path="EnrollmentRequest.subject.as(identifier)", description="The party to be enrolled", type="token" )
public static final String SP_PATIENT_IDENTIFIER = "patient-identifier";
/**
* <b>Fluent Client</b> search parameter constant for <b>patient-identifier</b>
* <p>
* Description: <b>The party to be enrolled</b><br>
* Type: <b>token</b><br>
* Path: <b>EnrollmentRequest.subjectidentifier</b><br>
* </p>
*/
public static final ca.uhn.fhir.rest.gclient.TokenClientParam PATIENT_IDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_PATIENT_IDENTIFIER);
}

View File

@ -29,7 +29,7 @@ package org.hl7.fhir.dstu3.model;
*/
// Generated on Tue, Jul 12, 2016 12:04-0400 for FHIR v1.5.0
// Generated on Wed, Aug 3, 2016 09:39-0400 for FHIR v1.5.0
import java.util.*;
@ -994,17 +994,17 @@ public class EnrollmentResponse extends DomainResource {
/**
* Search parameter: <b>identifier</b>
* <p>
* Description: <b>The business identifier of the Explanation of Benefit</b><br>
* Description: <b>The business identifier of the EnrollmentResponse</b><br>
* Type: <b>token</b><br>
* Path: <b>EnrollmentResponse.identifier</b><br>
* </p>
*/
@SearchParamDefinition(name="identifier", path="EnrollmentResponse.identifier", description="The business identifier of the Explanation of Benefit", type="token" )
@SearchParamDefinition(name="identifier", path="EnrollmentResponse.identifier", description="The business identifier of the EnrollmentResponse", type="token" )
public static final String SP_IDENTIFIER = "identifier";
/**
* <b>Fluent Client</b> search parameter constant for <b>identifier</b>
* <p>
* Description: <b>The business identifier of the Explanation of Benefit</b><br>
* Description: <b>The business identifier of the EnrollmentResponse</b><br>
* Type: <b>token</b><br>
* Path: <b>EnrollmentResponse.identifier</b><br>
* </p>

View File

@ -29,7 +29,7 @@ package org.hl7.fhir.dstu3.model;
*/
// Generated on Tue, Jul 12, 2016 12:04-0400 for FHIR v1.5.0
// Generated on Wed, Aug 3, 2016 09:39-0400 for FHIR v1.5.0
import java.util.*;
@ -73,6 +73,10 @@ public class EpisodeOfCare extends DomainResource {
* The episode of care was cancelled, or withdrawn from service, often selected during the planned stage as the patient may have gone elsewhere, or the circumstances have changed and the organization is unable to provide the care. It indicates that services terminated outside the planned/expected workflow.
*/
CANCELLED,
/**
* This instance should not have been part of this patient's medical record.
*/
ENTEREDINERROR,
/**
* added to help the parsers with the generic types
*/
@ -92,6 +96,8 @@ public class EpisodeOfCare extends DomainResource {
return FINISHED;
if ("cancelled".equals(codeString))
return CANCELLED;
if ("entered-in-error".equals(codeString))
return ENTEREDINERROR;
if (Configuration.isAcceptInvalidEnums())
return null;
else
@ -105,6 +111,7 @@ public class EpisodeOfCare extends DomainResource {
case ONHOLD: return "onhold";
case FINISHED: return "finished";
case CANCELLED: return "cancelled";
case ENTEREDINERROR: return "entered-in-error";
default: return "?";
}
}
@ -116,6 +123,7 @@ public class EpisodeOfCare extends DomainResource {
case ONHOLD: return "http://hl7.org/fhir/episode-of-care-status";
case FINISHED: return "http://hl7.org/fhir/episode-of-care-status";
case CANCELLED: return "http://hl7.org/fhir/episode-of-care-status";
case ENTEREDINERROR: return "http://hl7.org/fhir/episode-of-care-status";
default: return "?";
}
}
@ -127,6 +135,7 @@ public class EpisodeOfCare extends DomainResource {
case ONHOLD: return "This episode of care is on hold, the organization has limited responsibility for the patient (such as while on respite).";
case FINISHED: return "This episode of care is finished at the organization is not expecting to be providing care to the patient. Can also be known as \"closed\", \"completed\" or other similar terms.";
case CANCELLED: return "The episode of care was cancelled, or withdrawn from service, often selected during the planned stage as the patient may have gone elsewhere, or the circumstances have changed and the organization is unable to provide the care. It indicates that services terminated outside the planned/expected workflow.";
case ENTEREDINERROR: return "This instance should not have been part of this patient's medical record.";
default: return "?";
}
}
@ -138,6 +147,7 @@ public class EpisodeOfCare extends DomainResource {
case ONHOLD: return "On Hold";
case FINISHED: return "Finished";
case CANCELLED: return "Cancelled";
case ENTEREDINERROR: return "Entered in Error";
default: return "?";
}
}
@ -160,6 +170,8 @@ public class EpisodeOfCare extends DomainResource {
return EpisodeOfCareStatus.FINISHED;
if ("cancelled".equals(codeString))
return EpisodeOfCareStatus.CANCELLED;
if ("entered-in-error".equals(codeString))
return EpisodeOfCareStatus.ENTEREDINERROR;
throw new IllegalArgumentException("Unknown EpisodeOfCareStatus code '"+codeString+"'");
}
public Enumeration<EpisodeOfCareStatus> fromType(Base code) throws FHIRException {
@ -180,6 +192,8 @@ public class EpisodeOfCare extends DomainResource {
return new Enumeration<EpisodeOfCareStatus>(this, EpisodeOfCareStatus.FINISHED);
if ("cancelled".equals(codeString))
return new Enumeration<EpisodeOfCareStatus>(this, EpisodeOfCareStatus.CANCELLED);
if ("entered-in-error".equals(codeString))
return new Enumeration<EpisodeOfCareStatus>(this, EpisodeOfCareStatus.ENTEREDINERROR);
throw new FHIRException("Unknown EpisodeOfCareStatus code '"+codeString+"'");
}
public String toCode(EpisodeOfCareStatus code) {
@ -195,6 +209,8 @@ public class EpisodeOfCare extends DomainResource {
return "finished";
if (code == EpisodeOfCareStatus.CANCELLED)
return "cancelled";
if (code == EpisodeOfCareStatus.ENTEREDINERROR)
return "entered-in-error";
return "?";
}
public String toSystem(EpisodeOfCareStatus code) {
@ -208,7 +224,7 @@ public class EpisodeOfCare extends DomainResource {
* planned | waitlist | active | onhold | finished | cancelled.
*/
@Child(name = "status", type = {CodeType.class}, order=1, min=1, max=1, modifier=false, summary=false)
@Description(shortDefinition="planned | waitlist | active | onhold | finished | cancelled", formalDefinition="planned | waitlist | active | onhold | finished | cancelled." )
@Description(shortDefinition="planned | waitlist | active | onhold | finished | cancelled | entered-in-error", formalDefinition="planned | waitlist | active | onhold | finished | cancelled." )
@ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/episode-of-care-status")
protected Enumeration<EpisodeOfCareStatus> status;
@ -419,7 +435,7 @@ public class EpisodeOfCare extends DomainResource {
* planned | waitlist | active | onhold | finished | cancelled.
*/
@Child(name = "status", type = {CodeType.class}, order=1, min=1, max=1, modifier=true, summary=true)
@Description(shortDefinition="planned | waitlist | active | onhold | finished | cancelled", formalDefinition="planned | waitlist | active | onhold | finished | cancelled." )
@Description(shortDefinition="planned | waitlist | active | onhold | finished | cancelled | entered-in-error", formalDefinition="planned | waitlist | active | onhold | finished | cancelled." )
@ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/episode-of-care-status")
protected Enumeration<EpisodeOfCareStatus> status;

View File

@ -29,7 +29,7 @@ package org.hl7.fhir.dstu3.model;
*/
// Generated on Tue, Jul 12, 2016 12:04-0400 for FHIR v1.5.0
// Generated on Wed, Aug 3, 2016 09:39-0400 for FHIR v1.5.0
import java.util.*;
@ -1589,6 +1589,7 @@ public class ExpansionProfile extends BaseConformance {
*/
@Child(name = "language", type = {CodeType.class}, order=1, min=0, max=1, modifier=false, summary=true)
@Description(shortDefinition="Human language of the designation to be included", formalDefinition="The language this designation is defined for." )
@ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/languages")
protected CodeType language;
/**
@ -1954,6 +1955,7 @@ public class ExpansionProfile extends BaseConformance {
*/
@Child(name = "language", type = {CodeType.class}, order=1, min=0, max=1, modifier=false, summary=true)
@Description(shortDefinition="Human language of the designation to be excluded", formalDefinition="The language this designation is defined for." )
@ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/languages")
protected CodeType language;
/**
@ -2244,6 +2246,7 @@ public class ExpansionProfile extends BaseConformance {
*/
@Child(name = "displayLanguage", type = {CodeType.class}, order=13, min=0, max=1, modifier=false, summary=true)
@Description(shortDefinition="Specify the language for the display element of codes in the value set expansion", formalDefinition="Specifies the language to be used for description in the expansions i.e. the language to be used for ValueSet.expansion.contains.display." )
@ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/languages")
protected CodeType displayLanguage;
/**

View File

@ -29,7 +29,7 @@ package org.hl7.fhir.dstu3.model;
*/
// Generated on Tue, Jul 12, 2016 12:04-0400 for FHIR v1.5.0
// Generated on Wed, Aug 3, 2016 09:39-0400 for FHIR v1.5.0
import java.util.*;
@ -8688,6 +8688,7 @@ public class ExplanationOfBenefit extends DomainResource {
*/
@Child(name = "language", type = {Coding.class}, order=4, min=0, max=1, modifier=false, summary=false)
@Description(shortDefinition="Language", formalDefinition="The ISO-639-1 alpha 2 code in lower case for the language, optionally followed by a hyphen and the ISO-3166-1 alpha 2 code for the region in upper case; e.g. \"en\" for English, or \"en-US\" for American English versus \"en-EN\" for England English." )
@ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/languages")
protected Coding language;
private static final long serialVersionUID = -1578585461L;

View File

@ -8,6 +8,7 @@ import java.util.Set;
import org.hl7.fhir.dstu3.model.ExpressionNode.CollectionStatus;
import org.hl7.fhir.dstu3.model.ExpressionNode.TypeDetails;
import org.hl7.fhir.dstu3.utils.IWorkerContext;
import org.hl7.fhir.utilities.Utilities;
public class ExpressionNode {
@ -253,10 +254,21 @@ public class ExpressionNode {
public void addTypes(Collection<String> n) {
this.types.addAll(n);
}
public boolean hasType(String... tn) {
public boolean hasType(IWorkerContext context, String... tn) {
for (String t: tn)
if (types.contains(t))
return true;
for (String t: tn) {
StructureDefinition sd = context.fetchResource(StructureDefinition.class, "http://hl7.org/fhir/StructureDefinition/"+t);
while (sd != null) {
if (types.contains(sd.getId()))
return true;
if (sd.hasBaseDefinition())
sd = context.fetchResource(StructureDefinition.class, sd.getBaseDefinition());
else
sd = null;
}
}
return false;
}
public void update(TypeDetails source) {

View File

@ -29,7 +29,7 @@ package org.hl7.fhir.dstu3.model;
*/
// Generated on Tue, Jul 12, 2016 12:04-0400 for FHIR v1.5.0
// Generated on Wed, Aug 3, 2016 09:39-0400 for FHIR v1.5.0
import java.util.*;

View File

@ -29,7 +29,7 @@ package org.hl7.fhir.dstu3.model;
*/
// Generated on Tue, Jul 12, 2016 12:04-0400 for FHIR v1.5.0
// Generated on Wed, Aug 3, 2016 09:39-0400 for FHIR v1.5.0
import java.util.*;
@ -55,7 +55,7 @@ public class FamilyMemberHistory extends DomainResource {
*/
PARTIAL,
/**
* All relevant health information is known and captured.
* All available related health information is captured as of the date (and possibly time) when the family member history was taken.
*/
COMPLETED,
/**
@ -107,7 +107,7 @@ public class FamilyMemberHistory extends DomainResource {
public String getDefinition() {
switch (this) {
case PARTIAL: return "Some health information is known and captured, but not complete - see notes for details.";
case COMPLETED: return "All relevant health information is known and captured.";
case COMPLETED: return "All available related health information is captured as of the date (and possibly time) when the family member history was taken.";
case ENTEREDINERROR: return "This instance should not have been part of this patient's medical record.";
case HEALTHUNKNOWN: return "Health information for this individual is unavailable/unknown.";
default: return "?";
@ -533,10 +533,10 @@ public class FamilyMemberHistory extends DomainResource {
protected DateTimeType date;
/**
* A code specifying a state of a Family Member History record.
* A code specifying the status of the record of the family history of a specific family member.
*/
@Child(name = "status", type = {CodeType.class}, order=3, min=1, max=1, modifier=true, summary=true)
@Description(shortDefinition="partial | completed | entered-in-error | health-unknown", formalDefinition="A code specifying a state of a Family Member History record." )
@Description(shortDefinition="partial | completed | entered-in-error | health-unknown", formalDefinition="A code specifying the status of the record of the family history of a specific family member." )
@ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/history-status")
protected Enumeration<FamilyHistoryStatus> status;
@ -571,34 +571,41 @@ public class FamilyMemberHistory extends DomainResource {
protected Type born;
/**
* The actual or approximate age of the relative at the time the family member history is recorded.
* The age of the relative at the time the family member history is recorded.
*/
@Child(name = "age", type = {Age.class, Range.class, StringType.class}, order=8, min=0, max=1, modifier=false, summary=false)
@Description(shortDefinition="(approximate) age", formalDefinition="The actual or approximate age of the relative at the time the family member history is recorded." )
@Child(name = "age", type = {Age.class, Range.class, StringType.class}, order=8, min=0, max=1, modifier=false, summary=true)
@Description(shortDefinition="(approximate) age", formalDefinition="The age of the relative at the time the family member history is recorded." )
protected Type age;
/**
* If true, indicates that the age value specified is an estimated value.
*/
@Child(name = "estimatedAge", type = {BooleanType.class}, order=9, min=0, max=1, modifier=true, summary=true)
@Description(shortDefinition="Age is estimated?", formalDefinition="If true, indicates that the age value specified is an estimated value." )
protected BooleanType estimatedAge;
/**
* Deceased flag or the actual or approximate age of the relative at the time of death for the family member history record.
*/
@Child(name = "deceased", type = {BooleanType.class, Age.class, Range.class, DateType.class, StringType.class}, order=9, min=0, max=1, modifier=false, summary=false)
@Child(name = "deceased", type = {BooleanType.class, Age.class, Range.class, DateType.class, StringType.class}, order=10, min=0, max=1, modifier=false, summary=true)
@Description(shortDefinition="Dead? How old/when?", formalDefinition="Deceased flag or the actual or approximate age of the relative at the time of death for the family member history record." )
protected Type deceased;
/**
* This property allows a non condition-specific note to the made about the related person. Ideally, the note would be in the condition property, but this is not always possible.
*/
@Child(name = "note", type = {Annotation.class}, order=10, min=0, max=1, modifier=false, summary=false)
@Child(name = "note", type = {Annotation.class}, order=11, min=0, max=1, modifier=false, summary=false)
@Description(shortDefinition="General note about related person", formalDefinition="This property allows a non condition-specific note to the made about the related person. Ideally, the note would be in the condition property, but this is not always possible." )
protected Annotation note;
/**
* The significant Conditions (or condition) that the family member had. This is a repeating section to allow a system to represent more than one condition per resource, though there is nothing stopping multiple resources - one per condition.
*/
@Child(name = "condition", type = {}, order=11, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
@Child(name = "condition", type = {}, order=12, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
@Description(shortDefinition="Condition that the related person had", formalDefinition="The significant Conditions (or condition) that the family member had. This is a repeating section to allow a system to represent more than one condition per resource, though there is nothing stopping multiple resources - one per condition." )
protected List<FamilyMemberHistoryConditionComponent> condition;
private static final long serialVersionUID = -1799103041L;
private static final long serialVersionUID = 1798797770L;
/**
* Constructor
@ -764,7 +771,7 @@ public class FamilyMemberHistory extends DomainResource {
}
/**
* @return {@link #status} (A code specifying a state of a Family Member History record.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value
* @return {@link #status} (A code specifying the status of the record of the family history of a specific family member.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value
*/
public Enumeration<FamilyHistoryStatus> getStatusElement() {
if (this.status == null)
@ -784,7 +791,7 @@ public class FamilyMemberHistory extends DomainResource {
}
/**
* @param value {@link #status} (A code specifying a state of a Family Member History record.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value
* @param value {@link #status} (A code specifying the status of the record of the family history of a specific family member.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value
*/
public FamilyMemberHistory setStatusElement(Enumeration<FamilyHistoryStatus> value) {
this.status = value;
@ -792,14 +799,14 @@ public class FamilyMemberHistory extends DomainResource {
}
/**
* @return A code specifying a state of a Family Member History record.
* @return A code specifying the status of the record of the family history of a specific family member.
*/
public FamilyHistoryStatus getStatus() {
return this.status == null ? null : this.status.getValue();
}
/**
* @param value A code specifying a state of a Family Member History record.
* @param value A code specifying the status of the record of the family history of a specific family member.
*/
public FamilyMemberHistory setStatus(FamilyHistoryStatus value) {
if (this.status == null)
@ -989,14 +996,14 @@ public class FamilyMemberHistory extends DomainResource {
}
/**
* @return {@link #age} (The actual or approximate age of the relative at the time the family member history is recorded.)
* @return {@link #age} (The age of the relative at the time the family member history is recorded.)
*/
public Type getAge() {
return this.age;
}
/**
* @return {@link #age} (The actual or approximate age of the relative at the time the family member history is recorded.)
* @return {@link #age} (The age of the relative at the time the family member history is recorded.)
*/
public Age getAgeAge() throws FHIRException {
if (!(this.age instanceof Age))
@ -1009,7 +1016,7 @@ public class FamilyMemberHistory extends DomainResource {
}
/**
* @return {@link #age} (The actual or approximate age of the relative at the time the family member history is recorded.)
* @return {@link #age} (The age of the relative at the time the family member history is recorded.)
*/
public Range getAgeRange() throws FHIRException {
if (!(this.age instanceof Range))
@ -1022,7 +1029,7 @@ public class FamilyMemberHistory extends DomainResource {
}
/**
* @return {@link #age} (The actual or approximate age of the relative at the time the family member history is recorded.)
* @return {@link #age} (The age of the relative at the time the family member history is recorded.)
*/
public StringType getAgeStringType() throws FHIRException {
if (!(this.age instanceof StringType))
@ -1039,13 +1046,58 @@ public class FamilyMemberHistory extends DomainResource {
}
/**
* @param value {@link #age} (The actual or approximate age of the relative at the time the family member history is recorded.)
* @param value {@link #age} (The age of the relative at the time the family member history is recorded.)
*/
public FamilyMemberHistory setAge(Type value) {
this.age = value;
return this;
}
/**
* @return {@link #estimatedAge} (If true, indicates that the age value specified is an estimated value.). This is the underlying object with id, value and extensions. The accessor "getEstimatedAge" gives direct access to the value
*/
public BooleanType getEstimatedAgeElement() {
if (this.estimatedAge == null)
if (Configuration.errorOnAutoCreate())
throw new Error("Attempt to auto-create FamilyMemberHistory.estimatedAge");
else if (Configuration.doAutoCreate())
this.estimatedAge = new BooleanType(); // bb
return this.estimatedAge;
}
public boolean hasEstimatedAgeElement() {
return this.estimatedAge != null && !this.estimatedAge.isEmpty();
}
public boolean hasEstimatedAge() {
return this.estimatedAge != null && !this.estimatedAge.isEmpty();
}
/**
* @param value {@link #estimatedAge} (If true, indicates that the age value specified is an estimated value.). This is the underlying object with id, value and extensions. The accessor "getEstimatedAge" gives direct access to the value
*/
public FamilyMemberHistory setEstimatedAgeElement(BooleanType value) {
this.estimatedAge = value;
return this;
}
/**
* @return If true, indicates that the age value specified is an estimated value.
*/
public boolean getEstimatedAge() {
return this.estimatedAge == null || this.estimatedAge.isEmpty() ? false : this.estimatedAge.getValue();
}
/**
* @param value If true, indicates that the age value specified is an estimated value.
*/
public FamilyMemberHistory setEstimatedAge(boolean value) {
if (this.estimatedAge == null)
this.estimatedAge = new BooleanType();
this.estimatedAge.setValue(value);
return this;
}
/**
* @return {@link #deceased} (Deceased flag or the actual or approximate age of the relative at the time of death for the family member history record.)
*/
@ -1212,12 +1264,13 @@ public class FamilyMemberHistory extends DomainResource {
childrenList.add(new Property("identifier", "Identifier", "This records identifiers associated with this family member history record that are defined by business processes and/ or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation).", 0, java.lang.Integer.MAX_VALUE, identifier));
childrenList.add(new Property("patient", "Reference(Patient)", "The person who this history concerns.", 0, java.lang.Integer.MAX_VALUE, patient));
childrenList.add(new Property("date", "dateTime", "The date (and possibly time) when the family member history was taken.", 0, java.lang.Integer.MAX_VALUE, date));
childrenList.add(new Property("status", "code", "A code specifying a state of a Family Member History record.", 0, java.lang.Integer.MAX_VALUE, status));
childrenList.add(new Property("status", "code", "A code specifying the status of the record of the family history of a specific family member.", 0, java.lang.Integer.MAX_VALUE, status));
childrenList.add(new Property("name", "string", "This will either be a name or a description; e.g. \"Aunt Susan\", \"my cousin with the red hair\".", 0, java.lang.Integer.MAX_VALUE, name));
childrenList.add(new Property("relationship", "CodeableConcept", "The type of relationship this person has to the patient (father, mother, brother etc.).", 0, java.lang.Integer.MAX_VALUE, relationship));
childrenList.add(new Property("gender", "code", "Administrative Gender - the gender that the relative is considered to have for administration and record keeping purposes.", 0, java.lang.Integer.MAX_VALUE, gender));
childrenList.add(new Property("born[x]", "Period|date|string", "The actual or approximate date of birth of the relative.", 0, java.lang.Integer.MAX_VALUE, born));
childrenList.add(new Property("age[x]", "Age|Range|string", "The actual or approximate age of the relative at the time the family member history is recorded.", 0, java.lang.Integer.MAX_VALUE, age));
childrenList.add(new Property("age[x]", "Age|Range|string", "The age of the relative at the time the family member history is recorded.", 0, java.lang.Integer.MAX_VALUE, age));
childrenList.add(new Property("estimatedAge", "boolean", "If true, indicates that the age value specified is an estimated value.", 0, java.lang.Integer.MAX_VALUE, estimatedAge));
childrenList.add(new Property("deceased[x]", "boolean|Age|Range|date|string", "Deceased flag or the actual or approximate age of the relative at the time of death for the family member history record.", 0, java.lang.Integer.MAX_VALUE, deceased));
childrenList.add(new Property("note", "Annotation", "This property allows a non condition-specific note to the made about the related person. Ideally, the note would be in the condition property, but this is not always possible.", 0, java.lang.Integer.MAX_VALUE, note));
childrenList.add(new Property("condition", "", "The significant Conditions (or condition) that the family member had. This is a repeating section to allow a system to represent more than one condition per resource, though there is nothing stopping multiple resources - one per condition.", 0, java.lang.Integer.MAX_VALUE, condition));
@ -1235,6 +1288,7 @@ public class FamilyMemberHistory extends DomainResource {
case -1249512767: /*gender*/ return this.gender == null ? new Base[0] : new Base[] {this.gender}; // Enumeration<AdministrativeGender>
case 3029833: /*born*/ return this.born == null ? new Base[0] : new Base[] {this.born}; // Type
case 96511: /*age*/ return this.age == null ? new Base[0] : new Base[] {this.age}; // Type
case 2130167587: /*estimatedAge*/ return this.estimatedAge == null ? new Base[0] : new Base[] {this.estimatedAge}; // BooleanType
case 561497972: /*deceased*/ return this.deceased == null ? new Base[0] : new Base[] {this.deceased}; // Type
case 3387378: /*note*/ return this.note == null ? new Base[0] : new Base[] {this.note}; // Annotation
case -861311717: /*condition*/ return this.condition == null ? new Base[0] : this.condition.toArray(new Base[this.condition.size()]); // FamilyMemberHistoryConditionComponent
@ -1273,6 +1327,9 @@ public class FamilyMemberHistory extends DomainResource {
case 96511: // age
this.age = (Type) value; // Type
break;
case 2130167587: // estimatedAge
this.estimatedAge = castToBoolean(value); // BooleanType
break;
case 561497972: // deceased
this.deceased = (Type) value; // Type
break;
@ -1307,6 +1364,8 @@ public class FamilyMemberHistory extends DomainResource {
this.born = (Type) value; // Type
else if (name.equals("age[x]"))
this.age = (Type) value; // Type
else if (name.equals("estimatedAge"))
this.estimatedAge = castToBoolean(value); // BooleanType
else if (name.equals("deceased[x]"))
this.deceased = (Type) value; // Type
else if (name.equals("note"))
@ -1329,6 +1388,7 @@ public class FamilyMemberHistory extends DomainResource {
case -1249512767: throw new FHIRException("Cannot make property gender as it is not a complex type"); // Enumeration<AdministrativeGender>
case 67532951: return getBorn(); // Type
case -1419716831: return getAge(); // Type
case 2130167587: throw new FHIRException("Cannot make property estimatedAge as it is not a complex type"); // BooleanType
case -1311442804: return getDeceased(); // Type
case 3387378: return getNote(); // Annotation
case -861311717: return addCondition(); // FamilyMemberHistoryConditionComponent
@ -1386,6 +1446,9 @@ public class FamilyMemberHistory extends DomainResource {
this.age = new StringType();
return this.age;
}
else if (name.equals("estimatedAge")) {
throw new FHIRException("Cannot call addChild on a primitive type FamilyMemberHistory.estimatedAge");
}
else if (name.equals("deceasedBoolean")) {
this.deceased = new BooleanType();
return this.deceased;
@ -1438,6 +1501,7 @@ public class FamilyMemberHistory extends DomainResource {
dst.gender = gender == null ? null : gender.copy();
dst.born = born == null ? null : born.copy();
dst.age = age == null ? null : age.copy();
dst.estimatedAge = estimatedAge == null ? null : estimatedAge.copy();
dst.deceased = deceased == null ? null : deceased.copy();
dst.note = note == null ? null : note.copy();
if (condition != null) {
@ -1462,8 +1526,8 @@ public class FamilyMemberHistory extends DomainResource {
return compareDeep(identifier, o.identifier, true) && compareDeep(patient, o.patient, true) && compareDeep(date, o.date, true)
&& compareDeep(status, o.status, true) && compareDeep(name, o.name, true) && compareDeep(relationship, o.relationship, true)
&& compareDeep(gender, o.gender, true) && compareDeep(born, o.born, true) && compareDeep(age, o.age, true)
&& compareDeep(deceased, o.deceased, true) && compareDeep(note, o.note, true) && compareDeep(condition, o.condition, true)
;
&& compareDeep(estimatedAge, o.estimatedAge, true) && compareDeep(deceased, o.deceased, true) && compareDeep(note, o.note, true)
&& compareDeep(condition, o.condition, true);
}
@Override
@ -1474,13 +1538,13 @@ public class FamilyMemberHistory extends DomainResource {
return false;
FamilyMemberHistory o = (FamilyMemberHistory) other;
return compareValues(date, o.date, true) && compareValues(status, o.status, true) && compareValues(name, o.name, true)
&& compareValues(gender, o.gender, true);
&& compareValues(gender, o.gender, true) && compareValues(estimatedAge, o.estimatedAge, true);
}
public boolean isEmpty() {
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(identifier, patient, date
, status, name, relationship, gender, born, age, deceased, note, condition
);
, status, name, relationship, gender, born, age, estimatedAge, deceased, note
, condition);
}
@Override

View File

@ -29,7 +29,7 @@ package org.hl7.fhir.dstu3.model;
*/
// Generated on Tue, Jul 12, 2016 12:04-0400 for FHIR v1.5.0
// Generated on Wed, Aug 3, 2016 09:39-0400 for FHIR v1.5.0
import java.util.*;
@ -185,14 +185,14 @@ public class Flag extends DomainResource {
protected Period period;
/**
* The patient, location, group , organization , or practitioner this is about record this flag is associated with.
* The patient, location, group , organization , or practitioner, etc. this is about record this flag is associated with.
*/
@Child(name = "subject", type = {Patient.class, Location.class, Group.class, Organization.class, Practitioner.class}, order=4, min=1, max=1, modifier=false, summary=true)
@Description(shortDefinition="Who/What is flag about?", formalDefinition="The patient, location, group , organization , or practitioner this is about record this flag is associated with." )
@Child(name = "subject", type = {Patient.class, Location.class, Group.class, Organization.class, Practitioner.class, PlanDefinition.class, Medication.class, Procedure.class}, order=4, min=1, max=1, modifier=false, summary=true)
@Description(shortDefinition="Who/What is flag about?", formalDefinition="The patient, location, group , organization , or practitioner, etc. this is about record this flag is associated with." )
protected Reference subject;
/**
* The actual object that is the target of the reference (The patient, location, group , organization , or practitioner this is about record this flag is associated with.)
* The actual object that is the target of the reference (The patient, location, group , organization , or practitioner, etc. this is about record this flag is associated with.)
*/
protected Resource subjectTarget;
@ -394,7 +394,7 @@ public class Flag extends DomainResource {
}
/**
* @return {@link #subject} (The patient, location, group , organization , or practitioner this is about record this flag is associated with.)
* @return {@link #subject} (The patient, location, group , organization , or practitioner, etc. this is about record this flag is associated with.)
*/
public Reference getSubject() {
if (this.subject == null)
@ -410,7 +410,7 @@ public class Flag extends DomainResource {
}
/**
* @param value {@link #subject} (The patient, location, group , organization , or practitioner this is about record this flag is associated with.)
* @param value {@link #subject} (The patient, location, group , organization , or practitioner, etc. this is about record this flag is associated with.)
*/
public Flag setSubject(Reference value) {
this.subject = value;
@ -418,14 +418,14 @@ public class Flag extends DomainResource {
}
/**
* @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, location, group , organization , or practitioner this is about record this flag is associated with.)
* @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, location, group , organization , or practitioner, etc. this is about record this flag is associated with.)
*/
public Resource getSubjectTarget() {
return this.subjectTarget;
}
/**
* @param value {@link #subject} The actual object that is the target of the reference. The reference library doesn't use these, but you can use it to hold the resource if you resolve it. (The patient, location, group , organization , or practitioner this is about record this flag is associated with.)
* @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, location, group , organization , or practitioner, etc. this is about record this flag is associated with.)
*/
public Flag setSubjectTarget(Resource value) {
this.subjectTarget = value;
@ -545,7 +545,7 @@ public class Flag extends DomainResource {
childrenList.add(new Property("category", "CodeableConcept", "Allows an flag to be divided into different categories like clinical, administrative etc. Intended to be used as a means of filtering which flags are displayed to particular user or in a given context.", 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("period", "Period", "The period of time from the activation of the flag to inactivation of the flag. If the flag is active, the end of the period should be unspecified.", 0, java.lang.Integer.MAX_VALUE, period));
childrenList.add(new Property("subject", "Reference(Patient|Location|Group|Organization|Practitioner)", "The patient, location, group , organization , or practitioner this is about record this flag is associated with.", 0, java.lang.Integer.MAX_VALUE, subject));
childrenList.add(new Property("subject", "Reference(Patient|Location|Group|Organization|Practitioner|PlanDefinition|Medication|Procedure)", "The patient, location, group , organization , or practitioner, etc. this is about record this flag is associated with.", 0, java.lang.Integer.MAX_VALUE, subject));
childrenList.add(new Property("encounter", "Reference(Encounter)", "This alert is only relevant during the encounter.", 0, java.lang.Integer.MAX_VALUE, encounter));
childrenList.add(new Property("author", "Reference(Device|Organization|Patient|Practitioner)", "The person, organization or device that created the flag.", 0, java.lang.Integer.MAX_VALUE, author));
childrenList.add(new Property("code", "CodeableConcept", "The coded value or textual component of the flag to display to the user.", 0, java.lang.Integer.MAX_VALUE, code));
@ -760,7 +760,7 @@ public class Flag extends DomainResource {
* Path: <b>Flag.subject</b><br>
* </p>
*/
@SearchParamDefinition(name="subject", path="Flag.subject", description="The identity of a subject to list flags for", type="reference", target={Group.class, Location.class, Organization.class, Patient.class, Practitioner.class } )
@SearchParamDefinition(name="subject", path="Flag.subject", description="The identity of a subject to list flags for", type="reference", target={Group.class, Location.class, Medication.class, Organization.class, Patient.class, PlanDefinition.class, Practitioner.class, Procedure.class } )
public static final String SP_SUBJECT = "subject";
/**
* <b>Fluent Client</b> search parameter constant for <b>subject</b>

View File

@ -29,7 +29,7 @@ package org.hl7.fhir.dstu3.model;
*/
// Generated on Tue, Jul 12, 2016 12:04-0400 for FHIR v1.5.0
// Generated on Wed, Aug 3, 2016 09:39-0400 for FHIR v1.5.0
import java.util.*;
@ -85,6 +85,18 @@ public class Goal extends DomainResource {
* The goal is no longer being sought
*/
CANCELLED,
/**
* The goal is on scheduled for the planned timelines
*/
ONTARGET,
/**
* The goal is ahead of the planned timelines
*/
AHEADOFTARGET,
/**
* The goal is behind the planned timelines
*/
BEHINDTARGET,
/**
* added to help the parsers with the generic types
*/
@ -110,6 +122,12 @@ public class Goal extends DomainResource {
return ONHOLD;
if ("cancelled".equals(codeString))
return CANCELLED;
if ("on-target".equals(codeString))
return ONTARGET;
if ("ahead-of-target".equals(codeString))
return AHEADOFTARGET;
if ("behind-target".equals(codeString))
return BEHINDTARGET;
if (Configuration.isAcceptInvalidEnums())
return null;
else
@ -126,6 +144,9 @@ public class Goal extends DomainResource {
case SUSTAINING: return "sustaining";
case ONHOLD: return "on-hold";
case CANCELLED: return "cancelled";
case ONTARGET: return "on-target";
case AHEADOFTARGET: return "ahead-of-target";
case BEHINDTARGET: return "behind-target";
default: return "?";
}
}
@ -140,6 +161,9 @@ public class Goal extends DomainResource {
case SUSTAINING: return "http://hl7.org/fhir/goal-status";
case ONHOLD: return "http://hl7.org/fhir/goal-status";
case CANCELLED: return "http://hl7.org/fhir/goal-status";
case ONTARGET: return "http://hl7.org/fhir/goal-status";
case AHEADOFTARGET: return "http://hl7.org/fhir/goal-status";
case BEHINDTARGET: return "http://hl7.org/fhir/goal-status";
default: return "?";
}
}
@ -154,6 +178,9 @@ public class Goal extends DomainResource {
case SUSTAINING: return "The goal has been met, but ongoing activity is needed to sustain the goal objective";
case ONHOLD: return "The goal remains a long term objective but is no longer being actively pursued for a temporary period of time.";
case CANCELLED: return "The goal is no longer being sought";
case ONTARGET: return "The goal is on scheduled for the planned timelines";
case AHEADOFTARGET: return "The goal is ahead of the planned timelines";
case BEHINDTARGET: return "The goal is behind the planned timelines";
default: return "?";
}
}
@ -168,6 +195,9 @@ public class Goal extends DomainResource {
case SUSTAINING: return "Sustaining";
case ONHOLD: return "On Hold";
case CANCELLED: return "Cancelled";
case ONTARGET: return "On Target";
case AHEADOFTARGET: return "Ahead of Target";
case BEHINDTARGET: return "Behind Target";
default: return "?";
}
}
@ -196,6 +226,12 @@ public class Goal extends DomainResource {
return GoalStatus.ONHOLD;
if ("cancelled".equals(codeString))
return GoalStatus.CANCELLED;
if ("on-target".equals(codeString))
return GoalStatus.ONTARGET;
if ("ahead-of-target".equals(codeString))
return GoalStatus.AHEADOFTARGET;
if ("behind-target".equals(codeString))
return GoalStatus.BEHINDTARGET;
throw new IllegalArgumentException("Unknown GoalStatus code '"+codeString+"'");
}
public Enumeration<GoalStatus> fromType(Base code) throws FHIRException {
@ -222,6 +258,12 @@ public class Goal extends DomainResource {
return new Enumeration<GoalStatus>(this, GoalStatus.ONHOLD);
if ("cancelled".equals(codeString))
return new Enumeration<GoalStatus>(this, GoalStatus.CANCELLED);
if ("on-target".equals(codeString))
return new Enumeration<GoalStatus>(this, GoalStatus.ONTARGET);
if ("ahead-of-target".equals(codeString))
return new Enumeration<GoalStatus>(this, GoalStatus.AHEADOFTARGET);
if ("behind-target".equals(codeString))
return new Enumeration<GoalStatus>(this, GoalStatus.BEHINDTARGET);
throw new FHIRException("Unknown GoalStatus code '"+codeString+"'");
}
public String toCode(GoalStatus code) {
@ -243,6 +285,12 @@ public class Goal extends DomainResource {
return "on-hold";
if (code == GoalStatus.CANCELLED)
return "cancelled";
if (code == GoalStatus.ONTARGET)
return "on-target";
if (code == GoalStatus.AHEADOFTARGET)
return "ahead-of-target";
if (code == GoalStatus.BEHINDTARGET)
return "behind-target";
return "?";
}
public String toSystem(GoalStatus code) {
@ -450,17 +498,17 @@ public class Goal extends DomainResource {
protected List<CodeableConcept> category;
/**
* Human-readable description of a specific desired objective of care.
* Code and/or human-readable description of a specific desired objective of care.
*/
@Child(name = "description", type = {StringType.class}, order=5, min=1, max=1, modifier=false, summary=true)
@Description(shortDefinition="What's the desired outcome?", formalDefinition="Human-readable description of a specific desired objective of care." )
protected StringType description;
@Child(name = "description", type = {CodeableConcept.class}, order=5, min=1, max=1, modifier=false, summary=true)
@Description(shortDefinition="Code or text describing goal", formalDefinition="Code and/or human-readable description of a specific desired objective of care." )
protected CodeableConcept description;
/**
* Indicates whether the goal has been reached and is still considered relevant.
*/
@Child(name = "status", type = {CodeType.class}, order=6, min=1, max=1, modifier=true, summary=true)
@Description(shortDefinition="proposed | planned | accepted | rejected | in-progress | achieved | sustaining | on-hold | cancelled", formalDefinition="Indicates whether the goal has been reached and is still considered relevant." )
@Description(shortDefinition="proposed | planned | accepted | rejected | in-progress | achieved | sustaining | on-hold | cancelled | on-target | ahead-of-target | behind-target", formalDefinition="Indicates whether the goal has been reached and is still considered relevant." )
@ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/goal-status")
protected Enumeration<GoalStatus> status;
@ -474,10 +522,10 @@ public class Goal extends DomainResource {
/**
* Captures the reason for the current status.
*/
@Child(name = "statusReason", type = {CodeableConcept.class}, order=8, min=0, max=1, modifier=false, summary=false)
@Child(name = "statusReason", type = {CodeableConcept.class}, order=8, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
@Description(shortDefinition="Reason for current status", formalDefinition="Captures the reason for the current status." )
@ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/goal-status-reason")
protected CodeableConcept statusReason;
protected List<CodeableConcept> statusReason;
/**
* Indicates whose goal this is - patient goal, practitioner goal, etc.
@ -502,7 +550,7 @@ public class Goal extends DomainResource {
/**
* The identified conditions and other health record elements that are intended to be addressed by the goal.
*/
@Child(name = "addresses", type = {Condition.class, Observation.class, MedicationStatement.class, NutritionOrder.class, ProcedureRequest.class, RiskAssessment.class}, order=11, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
@Child(name = "addresses", type = {Condition.class, Observation.class, MedicationStatement.class, NutritionRequest.class, ProcedureRequest.class, RiskAssessment.class}, order=11, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
@Description(shortDefinition="Issues addressed by this goal", formalDefinition="The identified conditions and other health record elements that are intended to be addressed by the goal." )
protected List<Reference> addresses;
/**
@ -525,7 +573,7 @@ public class Goal extends DomainResource {
@Description(shortDefinition="What was end result of goal?", formalDefinition="Identifies the change (or lack of change) at the point where the goal was deemed to be cancelled or achieved." )
protected List<GoalOutcomeComponent> outcome;
private static final long serialVersionUID = -475818230L;
private static final long serialVersionUID = 772552830L;
/**
* Constructor
@ -537,7 +585,7 @@ public class Goal extends DomainResource {
/**
* Constructor
*/
public Goal(StringType description, Enumeration<GoalStatus> status) {
public Goal(CodeableConcept description, Enumeration<GoalStatus> status) {
super();
this.description = description;
this.status = status;
@ -779,50 +827,29 @@ public class Goal extends DomainResource {
}
/**
* @return {@link #description} (Human-readable description of a specific desired objective of care.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value
* @return {@link #description} (Code and/or human-readable description of a specific desired objective of care.)
*/
public StringType getDescriptionElement() {
public CodeableConcept getDescription() {
if (this.description == null)
if (Configuration.errorOnAutoCreate())
throw new Error("Attempt to auto-create Goal.description");
else if (Configuration.doAutoCreate())
this.description = new StringType(); // bb
this.description = new CodeableConcept(); // cc
return this.description;
}
public boolean hasDescriptionElement() {
return this.description != null && !this.description.isEmpty();
}
public boolean hasDescription() {
return this.description != null && !this.description.isEmpty();
}
/**
* @param value {@link #description} (Human-readable description of a specific desired objective of care.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value
* @param value {@link #description} (Code and/or human-readable description of a specific desired objective of care.)
*/
public Goal setDescriptionElement(StringType value) {
public Goal setDescription(CodeableConcept value) {
this.description = value;
return this;
}
/**
* @return Human-readable description of a specific desired objective of care.
*/
public String getDescription() {
return this.description == null ? null : this.description.getValue();
}
/**
* @param value Human-readable description of a specific desired objective of care.
*/
public Goal setDescription(String value) {
if (this.description == null)
this.description = new StringType();
this.description.setValue(value);
return this;
}
/**
* @return {@link #status} (Indicates whether the goal has been reached and is still considered relevant.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value
*/
@ -920,25 +947,54 @@ public class Goal extends DomainResource {
/**
* @return {@link #statusReason} (Captures the reason for the current status.)
*/
public CodeableConcept getStatusReason() {
public List<CodeableConcept> getStatusReason() {
if (this.statusReason == null)
if (Configuration.errorOnAutoCreate())
throw new Error("Attempt to auto-create Goal.statusReason");
else if (Configuration.doAutoCreate())
this.statusReason = new CodeableConcept(); // cc
this.statusReason = new ArrayList<CodeableConcept>();
return this.statusReason;
}
/**
* @return Returns a reference to <code>this</code> for easy method chaining
*/
public Goal setStatusReason(List<CodeableConcept> theStatusReason) {
this.statusReason = theStatusReason;
return this;
}
public boolean hasStatusReason() {
return this.statusReason != null && !this.statusReason.isEmpty();
if (this.statusReason == null)
return false;
for (CodeableConcept item : this.statusReason)
if (!item.isEmpty())
return true;
return false;
}
public CodeableConcept addStatusReason() { //3
CodeableConcept t = new CodeableConcept();
if (this.statusReason == null)
this.statusReason = new ArrayList<CodeableConcept>();
this.statusReason.add(t);
return t;
}
public Goal addStatusReason(CodeableConcept t) { //3
if (t == null)
return this;
if (this.statusReason == null)
this.statusReason = new ArrayList<CodeableConcept>();
this.statusReason.add(t);
return this;
}
/**
* @param value {@link #statusReason} (Captures the reason for the current status.)
* @return The first repetition of repeating field {@link #statusReason}, creating it if it does not already exist
*/
public Goal setStatusReason(CodeableConcept value) {
this.statusReason = value;
return this;
public CodeableConcept getStatusReasonFirstRep() {
if (getStatusReason().isEmpty()) {
addStatusReason();
}
return getStatusReason().get(0);
}
/**
@ -1180,13 +1236,13 @@ public class Goal extends DomainResource {
childrenList.add(new Property("start[x]", "date|CodeableConcept", "The date or event after which the goal should begin being pursued.", 0, java.lang.Integer.MAX_VALUE, start));
childrenList.add(new Property("target[x]", "date|Duration", "Indicates either the date or the duration after start by which the goal should be met.", 0, java.lang.Integer.MAX_VALUE, target));
childrenList.add(new Property("category", "CodeableConcept", "Indicates a category the goal falls within.", 0, java.lang.Integer.MAX_VALUE, category));
childrenList.add(new Property("description", "string", "Human-readable description of a specific desired objective of care.", 0, java.lang.Integer.MAX_VALUE, description));
childrenList.add(new Property("description", "CodeableConcept", "Code and/or human-readable description of a specific desired objective of care.", 0, java.lang.Integer.MAX_VALUE, description));
childrenList.add(new Property("status", "code", "Indicates whether the goal has been reached and is still considered relevant.", 0, java.lang.Integer.MAX_VALUE, status));
childrenList.add(new Property("statusDate", "date", "Identifies when the current status. I.e. When initially created, when achieved, when cancelled, etc.", 0, java.lang.Integer.MAX_VALUE, statusDate));
childrenList.add(new Property("statusReason", "CodeableConcept", "Captures the reason for the current status.", 0, java.lang.Integer.MAX_VALUE, statusReason));
childrenList.add(new Property("expressedBy", "Reference(Patient|Practitioner|RelatedPerson)", "Indicates whose goal this is - patient goal, practitioner goal, etc.", 0, java.lang.Integer.MAX_VALUE, expressedBy));
childrenList.add(new Property("priority", "CodeableConcept", "Identifies the mutually agreed level of importance associated with reaching/sustaining the goal.", 0, java.lang.Integer.MAX_VALUE, priority));
childrenList.add(new Property("addresses", "Reference(Condition|Observation|MedicationStatement|NutritionOrder|ProcedureRequest|RiskAssessment)", "The identified conditions and other health record elements that are intended to be addressed by the goal.", 0, java.lang.Integer.MAX_VALUE, addresses));
childrenList.add(new Property("addresses", "Reference(Condition|Observation|MedicationStatement|NutritionRequest|ProcedureRequest|RiskAssessment)", "The identified conditions and other health record elements that are intended to be addressed by the goal.", 0, java.lang.Integer.MAX_VALUE, addresses));
childrenList.add(new Property("note", "Annotation", "Any comments related to the goal.", 0, java.lang.Integer.MAX_VALUE, note));
childrenList.add(new Property("outcome", "", "Identifies the change (or lack of change) at the point where the goal was deemed to be cancelled or achieved.", 0, java.lang.Integer.MAX_VALUE, outcome));
}
@ -1199,10 +1255,10 @@ public class Goal extends DomainResource {
case 109757538: /*start*/ return this.start == null ? new Base[0] : new Base[] {this.start}; // Type
case -880905839: /*target*/ return this.target == null ? new Base[0] : new Base[] {this.target}; // Type
case 50511102: /*category*/ return this.category == null ? new Base[0] : this.category.toArray(new Base[this.category.size()]); // CodeableConcept
case -1724546052: /*description*/ return this.description == null ? new Base[0] : new Base[] {this.description}; // StringType
case -1724546052: /*description*/ return this.description == null ? new Base[0] : new Base[] {this.description}; // CodeableConcept
case -892481550: /*status*/ return this.status == null ? new Base[0] : new Base[] {this.status}; // Enumeration<GoalStatus>
case 247524032: /*statusDate*/ return this.statusDate == null ? new Base[0] : new Base[] {this.statusDate}; // DateType
case 2051346646: /*statusReason*/ return this.statusReason == null ? new Base[0] : new Base[] {this.statusReason}; // CodeableConcept
case 2051346646: /*statusReason*/ return this.statusReason == null ? new Base[0] : this.statusReason.toArray(new Base[this.statusReason.size()]); // CodeableConcept
case 175423686: /*expressedBy*/ return this.expressedBy == null ? new Base[0] : new Base[] {this.expressedBy}; // Reference
case -1165461084: /*priority*/ return this.priority == null ? new Base[0] : new Base[] {this.priority}; // CodeableConcept
case 874544034: /*addresses*/ return this.addresses == null ? new Base[0] : this.addresses.toArray(new Base[this.addresses.size()]); // Reference
@ -1232,7 +1288,7 @@ public class Goal extends DomainResource {
this.getCategory().add(castToCodeableConcept(value)); // CodeableConcept
break;
case -1724546052: // description
this.description = castToString(value); // StringType
this.description = castToCodeableConcept(value); // CodeableConcept
break;
case -892481550: // status
this.status = new GoalStatusEnumFactory().fromType(value); // Enumeration<GoalStatus>
@ -1241,7 +1297,7 @@ public class Goal extends DomainResource {
this.statusDate = castToDate(value); // DateType
break;
case 2051346646: // statusReason
this.statusReason = castToCodeableConcept(value); // CodeableConcept
this.getStatusReason().add(castToCodeableConcept(value)); // CodeableConcept
break;
case 175423686: // expressedBy
this.expressedBy = castToReference(value); // Reference
@ -1276,13 +1332,13 @@ public class Goal extends DomainResource {
else if (name.equals("category"))
this.getCategory().add(castToCodeableConcept(value));
else if (name.equals("description"))
this.description = castToString(value); // StringType
this.description = castToCodeableConcept(value); // CodeableConcept
else if (name.equals("status"))
this.status = new GoalStatusEnumFactory().fromType(value); // Enumeration<GoalStatus>
else if (name.equals("statusDate"))
this.statusDate = castToDate(value); // DateType
else if (name.equals("statusReason"))
this.statusReason = castToCodeableConcept(value); // CodeableConcept
this.getStatusReason().add(castToCodeableConcept(value));
else if (name.equals("expressedBy"))
this.expressedBy = castToReference(value); // Reference
else if (name.equals("priority"))
@ -1305,10 +1361,10 @@ public class Goal extends DomainResource {
case 1316793566: return getStart(); // Type
case -815579825: return getTarget(); // Type
case 50511102: return addCategory(); // CodeableConcept
case -1724546052: throw new FHIRException("Cannot make property description as it is not a complex type"); // StringType
case -1724546052: return getDescription(); // CodeableConcept
case -892481550: throw new FHIRException("Cannot make property status as it is not a complex type"); // Enumeration<GoalStatus>
case 247524032: throw new FHIRException("Cannot make property statusDate as it is not a complex type"); // DateType
case 2051346646: return getStatusReason(); // CodeableConcept
case 2051346646: return addStatusReason(); // CodeableConcept
case 175423686: return getExpressedBy(); // Reference
case -1165461084: return getPriority(); // CodeableConcept
case 874544034: return addAddresses(); // Reference
@ -1348,7 +1404,8 @@ public class Goal extends DomainResource {
return addCategory();
}
else if (name.equals("description")) {
throw new FHIRException("Cannot call addChild on a primitive type Goal.description");
this.description = new CodeableConcept();
return this.description;
}
else if (name.equals("status")) {
throw new FHIRException("Cannot call addChild on a primitive type Goal.status");
@ -1357,8 +1414,7 @@ public class Goal extends DomainResource {
throw new FHIRException("Cannot call addChild on a primitive type Goal.statusDate");
}
else if (name.equals("statusReason")) {
this.statusReason = new CodeableConcept();
return this.statusReason;
return addStatusReason();
}
else if (name.equals("expressedBy")) {
this.expressedBy = new Reference();
@ -1405,7 +1461,11 @@ public class Goal extends DomainResource {
dst.description = description == null ? null : description.copy();
dst.status = status == null ? null : status.copy();
dst.statusDate = statusDate == null ? null : statusDate.copy();
dst.statusReason = statusReason == null ? null : statusReason.copy();
if (statusReason != null) {
dst.statusReason = new ArrayList<CodeableConcept>();
for (CodeableConcept i : statusReason)
dst.statusReason.add(i.copy());
};
dst.expressedBy = expressedBy == null ? null : expressedBy.copy();
dst.priority = priority == null ? null : priority.copy();
if (addresses != null) {
@ -1451,8 +1511,7 @@ public class Goal extends DomainResource {
if (!(other instanceof Goal))
return false;
Goal o = (Goal) other;
return compareValues(description, o.description, true) && compareValues(status, o.status, true) && compareValues(statusDate, o.statusDate, true)
;
return compareValues(status, o.status, true) && compareValues(statusDate, o.statusDate, true);
}
public boolean isEmpty() {
@ -1581,17 +1640,17 @@ public class Goal extends DomainResource {
/**
* Search parameter: <b>status</b>
* <p>
* Description: <b>proposed | planned | accepted | rejected | in-progress | achieved | sustaining | on-hold | cancelled</b><br>
* Description: <b>proposed | planned | accepted | rejected | in-progress | achieved | sustaining | on-hold | cancelled | on-target | ahead-of-target | behind-target</b><br>
* Type: <b>token</b><br>
* Path: <b>Goal.status</b><br>
* </p>
*/
@SearchParamDefinition(name="status", path="Goal.status", description="proposed | planned | accepted | rejected | in-progress | achieved | sustaining | on-hold | cancelled", type="token" )
@SearchParamDefinition(name="status", path="Goal.status", description="proposed | planned | accepted | rejected | in-progress | achieved | sustaining | on-hold | cancelled | on-target | ahead-of-target | behind-target", type="token" )
public static final String SP_STATUS = "status";
/**
* <b>Fluent Client</b> search parameter constant for <b>status</b>
* <p>
* Description: <b>proposed | planned | accepted | rejected | in-progress | achieved | sustaining | on-hold | cancelled</b><br>
* Description: <b>proposed | planned | accepted | rejected | in-progress | achieved | sustaining | on-hold | cancelled | on-target | ahead-of-target | behind-target</b><br>
* Type: <b>token</b><br>
* Path: <b>Goal.status</b><br>
* </p>

View File

@ -29,7 +29,7 @@ package org.hl7.fhir.dstu3.model;
*/
// Generated on Tue, Jul 12, 2016 12:04-0400 for FHIR v1.5.0
// Generated on Wed, Aug 3, 2016 09:39-0400 for FHIR v1.5.0
import java.util.*;

View File

@ -29,7 +29,7 @@ package org.hl7.fhir.dstu3.model;
*/
// Generated on Tue, Jul 12, 2016 12:04-0400 for FHIR v1.5.0
// Generated on Wed, Aug 3, 2016 09:39-0400 for FHIR v1.5.0
import java.util.*;
@ -805,10 +805,17 @@ public class HealthcareService extends DomainResource {
@Description(shortDefinition="External identifiers for this item", formalDefinition="External identifiers for this item." )
protected List<Identifier> identifier;
/**
* Whether this healthcareservice record is in active use.
*/
@Child(name = "active", type = {BooleanType.class}, order=1, min=0, max=1, modifier=true, summary=true)
@Description(shortDefinition="Whether this healthcareservice is in active use", formalDefinition="Whether this healthcareservice record is in active use." )
protected BooleanType active;
/**
* The organization that provides this healthcare service.
*/
@Child(name = "providedBy", type = {Organization.class}, order=1, min=0, max=1, modifier=false, summary=true)
@Child(name = "providedBy", type = {Organization.class}, order=2, min=0, max=1, modifier=false, summary=true)
@Description(shortDefinition="Organization that provides this service", formalDefinition="The organization that provides this healthcare service." )
protected Reference providedBy;
@ -820,7 +827,7 @@ public class HealthcareService extends DomainResource {
/**
* Identifies the broad category of service being performed or delivered.
*/
@Child(name = "serviceCategory", type = {CodeableConcept.class}, order=2, min=0, max=1, modifier=false, summary=true)
@Child(name = "serviceCategory", type = {CodeableConcept.class}, order=3, min=0, max=1, modifier=false, summary=true)
@Description(shortDefinition="Broad category of service being performed or delivered", formalDefinition="Identifies the broad category of service being performed or delivered." )
@ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/service-category")
protected CodeableConcept serviceCategory;
@ -828,7 +835,7 @@ public class HealthcareService extends DomainResource {
/**
* The specific type of service that may be delivered or performed.
*/
@Child(name = "serviceType", type = {CodeableConcept.class}, order=3, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
@Child(name = "serviceType", type = {CodeableConcept.class}, order=4, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
@Description(shortDefinition="Type of service that may be delivered or performed", formalDefinition="The specific type of service that may be delivered or performed." )
@ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/service-type")
protected List<CodeableConcept> serviceType;
@ -836,7 +843,7 @@ public class HealthcareService extends DomainResource {
/**
* Collection of specialties handled by the service site. This is more of a medical term.
*/
@Child(name = "specialty", type = {CodeableConcept.class}, order=4, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
@Child(name = "specialty", type = {CodeableConcept.class}, order=5, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
@Description(shortDefinition="Specialties handled by the HealthcareService", formalDefinition="Collection of specialties handled by the service site. This is more of a medical term." )
@ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/c80-practice-codes")
protected List<CodeableConcept> specialty;
@ -844,7 +851,7 @@ public class HealthcareService extends DomainResource {
/**
* The location(s) where this healthcare service may be provided.
*/
@Child(name = "location", type = {Location.class}, order=5, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
@Child(name = "location", type = {Location.class}, order=6, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
@Description(shortDefinition="Location(s) where service may be provided", formalDefinition="The location(s) where this healthcare service may be provided." )
protected List<Reference> location;
/**
@ -856,42 +863,42 @@ public class HealthcareService extends DomainResource {
/**
* Further description of the service as it would be presented to a consumer while searching.
*/
@Child(name = "serviceName", type = {StringType.class}, order=6, min=0, max=1, modifier=false, summary=true)
@Child(name = "serviceName", type = {StringType.class}, order=7, min=0, max=1, modifier=false, summary=true)
@Description(shortDefinition="Description of service as presented to a consumer while searching", formalDefinition="Further description of the service as it would be presented to a consumer while searching." )
protected StringType serviceName;
/**
* Any additional description of the service and/or any specific issues not covered by the other attributes, which can be displayed as further detail under the serviceName.
*/
@Child(name = "comment", type = {StringType.class}, order=7, min=0, max=1, modifier=false, summary=true)
@Child(name = "comment", type = {StringType.class}, order=8, min=0, max=1, modifier=false, summary=true)
@Description(shortDefinition="Additional description and/or any specific issues not covered elsewhere", formalDefinition="Any additional description of the service and/or any specific issues not covered by the other attributes, which can be displayed as further detail under the serviceName." )
protected StringType comment;
/**
* Extra details about the service that can't be placed in the other fields.
*/
@Child(name = "extraDetails", type = {StringType.class}, order=8, min=0, max=1, modifier=false, summary=false)
@Child(name = "extraDetails", type = {StringType.class}, order=9, min=0, max=1, modifier=false, summary=false)
@Description(shortDefinition="Extra details about the service that can't be placed in the other fields", formalDefinition="Extra details about the service that can't be placed in the other fields." )
protected StringType extraDetails;
/**
* If there is a photo/symbol associated with this HealthcareService, it may be included here to facilitate quick identification of the service in a list.
*/
@Child(name = "photo", type = {Attachment.class}, order=9, min=0, max=1, modifier=false, summary=true)
@Child(name = "photo", type = {Attachment.class}, order=10, min=0, max=1, modifier=false, summary=true)
@Description(shortDefinition="Facilitates quick identification of the service", formalDefinition="If there is a photo/symbol associated with this HealthcareService, it may be included here to facilitate quick identification of the service in a list." )
protected Attachment photo;
/**
* List of contacts related to this specific healthcare service.
*/
@Child(name = "telecom", type = {ContactPoint.class}, order=10, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
@Child(name = "telecom", type = {ContactPoint.class}, order=11, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
@Description(shortDefinition="Contacts related to the healthcare service", formalDefinition="List of contacts related to this specific healthcare service." )
protected List<ContactPoint> telecom;
/**
* The location(s) that this service is available to (not where the service is provided).
*/
@Child(name = "coverageArea", type = {Location.class}, order=11, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
@Child(name = "coverageArea", type = {Location.class}, order=12, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
@Description(shortDefinition="Location(s) service is inteded for/available to", formalDefinition="The location(s) that this service is available to (not where the service is provided)." )
protected List<Reference> coverageArea;
/**
@ -903,7 +910,7 @@ public class HealthcareService extends DomainResource {
/**
* The code(s) that detail the conditions under which the healthcare service is available/offered.
*/
@Child(name = "serviceProvisionCode", type = {CodeableConcept.class}, order=12, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
@Child(name = "serviceProvisionCode", type = {CodeableConcept.class}, order=13, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
@Description(shortDefinition="Conditions under which service is available/offered", formalDefinition="The code(s) that detail the conditions under which the healthcare service is available/offered." )
@ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/service-provision-conditions")
protected List<CodeableConcept> serviceProvisionCode;
@ -911,35 +918,35 @@ public class HealthcareService extends DomainResource {
/**
* Does this service have specific eligibility requirements that need to be met in order to use the service?
*/
@Child(name = "eligibility", type = {CodeableConcept.class}, order=13, min=0, max=1, modifier=false, summary=false)
@Child(name = "eligibility", type = {CodeableConcept.class}, order=14, min=0, max=1, modifier=false, summary=false)
@Description(shortDefinition="Specific eligibility requirements required to use the service", formalDefinition="Does this service have specific eligibility requirements that need to be met in order to use the service?" )
protected CodeableConcept eligibility;
/**
* Describes the eligibility conditions for the service.
*/
@Child(name = "eligibilityNote", type = {StringType.class}, order=14, min=0, max=1, modifier=false, summary=false)
@Child(name = "eligibilityNote", type = {StringType.class}, order=15, min=0, max=1, modifier=false, summary=false)
@Description(shortDefinition="Describes the eligibility conditions for the service", formalDefinition="Describes the eligibility conditions for the service." )
protected StringType eligibilityNote;
/**
* Program Names that can be used to categorize the service.
*/
@Child(name = "programName", type = {StringType.class}, order=15, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
@Child(name = "programName", type = {StringType.class}, order=16, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
@Description(shortDefinition="Program Names that categorize the service", formalDefinition="Program Names that can be used to categorize the service." )
protected List<StringType> programName;
/**
* Collection of characteristics (attributes).
*/
@Child(name = "characteristic", type = {CodeableConcept.class}, order=16, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
@Child(name = "characteristic", type = {CodeableConcept.class}, order=17, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
@Description(shortDefinition="Collection of characteristics (attributes)", formalDefinition="Collection of characteristics (attributes)." )
protected List<CodeableConcept> characteristic;
/**
* Ways that the service accepts referrals, if this is not provided then it is implied that no referral is required.
*/
@Child(name = "referralMethod", type = {CodeableConcept.class}, order=17, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
@Child(name = "referralMethod", type = {CodeableConcept.class}, order=18, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
@Description(shortDefinition="Ways that the service accepts referrals", formalDefinition="Ways that the service accepts referrals, if this is not provided then it is implied that no referral is required." )
@ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/service-referral-method")
protected List<CodeableConcept> referralMethod;
@ -947,39 +954,39 @@ public class HealthcareService extends DomainResource {
/**
* The public part of the 'keys' allocated to an Organization by an accredited body to support secure exchange of data over the internet. To be provided by the Organization, where available.
*/
@Child(name = "publicKey", type = {StringType.class}, order=18, min=0, max=1, modifier=false, summary=false)
@Child(name = "publicKey", type = {StringType.class}, order=19, min=0, max=1, modifier=false, summary=false)
@Description(shortDefinition="PKI Public keys to support secure communications", formalDefinition="The public part of the 'keys' allocated to an Organization by an accredited body to support secure exchange of data over the internet. To be provided by the Organization, where available." )
protected StringType publicKey;
/**
* Indicates whether or not a prospective consumer will require an appointment for a particular service at a site to be provided by the Organization. Indicates if an appointment is required for access to this service.
*/
@Child(name = "appointmentRequired", type = {BooleanType.class}, order=19, min=0, max=1, modifier=false, summary=false)
@Child(name = "appointmentRequired", type = {BooleanType.class}, order=20, min=0, max=1, modifier=false, summary=false)
@Description(shortDefinition="If an appointment is required for access to this service", formalDefinition="Indicates whether or not a prospective consumer will require an appointment for a particular service at a site to be provided by the Organization. Indicates if an appointment is required for access to this service." )
protected BooleanType appointmentRequired;
/**
* A collection of times that the Service Site is available.
*/
@Child(name = "availableTime", type = {}, order=20, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
@Child(name = "availableTime", type = {}, order=21, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
@Description(shortDefinition="Times the Service Site is available", formalDefinition="A collection of times that the Service Site is available." )
protected List<HealthcareServiceAvailableTimeComponent> availableTime;
/**
* The HealthcareService is not available during this period of time due to the provided reason.
*/
@Child(name = "notAvailable", type = {}, order=21, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
@Child(name = "notAvailable", type = {}, order=22, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
@Description(shortDefinition="Not available during this time due to provided reason", formalDefinition="The HealthcareService is not available during this period of time due to the provided reason." )
protected List<HealthcareServiceNotAvailableComponent> notAvailable;
/**
* A description of site availability exceptions, e.g. public holiday availability. Succinctly describing all possible exceptions to normal site availability as details in the available Times and not available Times.
*/
@Child(name = "availabilityExceptions", type = {StringType.class}, order=22, min=0, max=1, modifier=false, summary=false)
@Child(name = "availabilityExceptions", type = {StringType.class}, order=23, min=0, max=1, modifier=false, summary=false)
@Description(shortDefinition="Description of availability exceptions", formalDefinition="A description of site availability exceptions, e.g. public holiday availability. Succinctly describing all possible exceptions to normal site availability as details in the available Times and not available Times." )
protected StringType availabilityExceptions;
private static final long serialVersionUID = -874217100L;
private static final long serialVersionUID = 250295170L;
/**
* Constructor
@ -1041,6 +1048,51 @@ public class HealthcareService extends DomainResource {
return getIdentifier().get(0);
}
/**
* @return {@link #active} (Whether this healthcareservice record is in active use.). This is the underlying object with id, value and extensions. The accessor "getActive" gives direct access to the value
*/
public BooleanType getActiveElement() {
if (this.active == null)
if (Configuration.errorOnAutoCreate())
throw new Error("Attempt to auto-create HealthcareService.active");
else if (Configuration.doAutoCreate())
this.active = new BooleanType(); // bb
return this.active;
}
public boolean hasActiveElement() {
return this.active != null && !this.active.isEmpty();
}
public boolean hasActive() {
return this.active != null && !this.active.isEmpty();
}
/**
* @param value {@link #active} (Whether this healthcareservice record is in active use.). This is the underlying object with id, value and extensions. The accessor "getActive" gives direct access to the value
*/
public HealthcareService setActiveElement(BooleanType value) {
this.active = value;
return this;
}
/**
* @return Whether this healthcareservice record is in active use.
*/
public boolean getActive() {
return this.active == null || this.active.isEmpty() ? false : this.active.getValue();
}
/**
* @param value Whether this healthcareservice record is in active use.
*/
public HealthcareService setActive(boolean value) {
if (this.active == null)
this.active = new BooleanType();
this.active.setValue(value);
return this;
}
/**
* @return {@link #providedBy} (The organization that provides this healthcare service.)
*/
@ -2134,6 +2186,7 @@ public class HealthcareService extends DomainResource {
protected void listChildren(List<Property> childrenList) {
super.listChildren(childrenList);
childrenList.add(new Property("identifier", "Identifier", "External identifiers for this item.", 0, java.lang.Integer.MAX_VALUE, identifier));
childrenList.add(new Property("active", "boolean", "Whether this healthcareservice record is in active use.", 0, java.lang.Integer.MAX_VALUE, active));
childrenList.add(new Property("providedBy", "Reference(Organization)", "The organization that provides this healthcare service.", 0, java.lang.Integer.MAX_VALUE, providedBy));
childrenList.add(new Property("serviceCategory", "CodeableConcept", "Identifies the broad category of service being performed or delivered.", 0, java.lang.Integer.MAX_VALUE, serviceCategory));
childrenList.add(new Property("serviceType", "CodeableConcept", "The specific type of service that may be delivered or performed.", 0, java.lang.Integer.MAX_VALUE, serviceType));
@ -2162,6 +2215,7 @@ public class HealthcareService extends DomainResource {
public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException {
switch (hash) {
case -1618432855: /*identifier*/ return this.identifier == null ? new Base[0] : this.identifier.toArray(new Base[this.identifier.size()]); // Identifier
case -1422950650: /*active*/ return this.active == null ? new Base[0] : new Base[] {this.active}; // BooleanType
case 205136282: /*providedBy*/ return this.providedBy == null ? new Base[0] : new Base[] {this.providedBy}; // Reference
case 1281188563: /*serviceCategory*/ return this.serviceCategory == null ? new Base[0] : new Base[] {this.serviceCategory}; // CodeableConcept
case -1928370289: /*serviceType*/ return this.serviceType == null ? new Base[0] : this.serviceType.toArray(new Base[this.serviceType.size()]); // CodeableConcept
@ -2195,6 +2249,9 @@ public class HealthcareService extends DomainResource {
case -1618432855: // identifier
this.getIdentifier().add(castToIdentifier(value)); // Identifier
break;
case -1422950650: // active
this.active = castToBoolean(value); // BooleanType
break;
case 205136282: // providedBy
this.providedBy = castToReference(value); // Reference
break;
@ -2270,6 +2327,8 @@ public class HealthcareService extends DomainResource {
public void setProperty(String name, Base value) throws FHIRException {
if (name.equals("identifier"))
this.getIdentifier().add(castToIdentifier(value));
else if (name.equals("active"))
this.active = castToBoolean(value); // BooleanType
else if (name.equals("providedBy"))
this.providedBy = castToReference(value); // Reference
else if (name.equals("serviceCategory"))
@ -2322,6 +2381,7 @@ public class HealthcareService extends DomainResource {
public Base makeProperty(int hash, String name) throws FHIRException {
switch (hash) {
case -1618432855: return addIdentifier(); // Identifier
case -1422950650: throw new FHIRException("Cannot make property active as it is not a complex type"); // BooleanType
case 205136282: return getProvidedBy(); // Reference
case 1281188563: return getServiceCategory(); // CodeableConcept
case -1928370289: return addServiceType(); // CodeableConcept
@ -2354,6 +2414,9 @@ public class HealthcareService extends DomainResource {
if (name.equals("identifier")) {
return addIdentifier();
}
else if (name.equals("active")) {
throw new FHIRException("Cannot call addChild on a primitive type HealthcareService.active");
}
else if (name.equals("providedBy")) {
this.providedBy = new Reference();
return this.providedBy;
@ -2441,6 +2504,7 @@ public class HealthcareService extends DomainResource {
for (Identifier i : identifier)
dst.identifier.add(i.copy());
};
dst.active = active == null ? null : active.copy();
dst.providedBy = providedBy == null ? null : providedBy.copy();
dst.serviceCategory = serviceCategory == null ? null : serviceCategory.copy();
if (serviceType != null) {
@ -2521,7 +2585,7 @@ public class HealthcareService extends DomainResource {
if (!(other instanceof HealthcareService))
return false;
HealthcareService o = (HealthcareService) other;
return compareDeep(identifier, o.identifier, true) && compareDeep(providedBy, o.providedBy, true)
return compareDeep(identifier, o.identifier, true) && compareDeep(active, o.active, true) && compareDeep(providedBy, o.providedBy, true)
&& compareDeep(serviceCategory, o.serviceCategory, true) && compareDeep(serviceType, o.serviceType, true)
&& compareDeep(specialty, o.specialty, true) && compareDeep(location, o.location, true) && compareDeep(serviceName, o.serviceName, true)
&& compareDeep(comment, o.comment, true) && compareDeep(extraDetails, o.extraDetails, true) && compareDeep(photo, o.photo, true)
@ -2541,18 +2605,18 @@ public class HealthcareService extends DomainResource {
if (!(other instanceof HealthcareService))
return false;
HealthcareService o = (HealthcareService) other;
return compareValues(serviceName, o.serviceName, true) && compareValues(comment, o.comment, true) && compareValues(extraDetails, o.extraDetails, true)
&& compareValues(eligibilityNote, o.eligibilityNote, true) && compareValues(programName, o.programName, true)
&& compareValues(publicKey, o.publicKey, true) && compareValues(appointmentRequired, o.appointmentRequired, true)
return compareValues(active, o.active, true) && compareValues(serviceName, o.serviceName, true) && compareValues(comment, o.comment, true)
&& compareValues(extraDetails, o.extraDetails, true) && compareValues(eligibilityNote, o.eligibilityNote, true)
&& compareValues(programName, o.programName, true) && compareValues(publicKey, o.publicKey, true) && compareValues(appointmentRequired, o.appointmentRequired, true)
&& compareValues(availabilityExceptions, o.availabilityExceptions, true);
}
public boolean isEmpty() {
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(identifier, providedBy, serviceCategory
, serviceType, specialty, location, serviceName, comment, extraDetails, photo
, telecom, coverageArea, serviceProvisionCode, eligibility, eligibilityNote, programName
, characteristic, referralMethod, publicKey, appointmentRequired, availableTime, notAvailable
, availabilityExceptions);
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(identifier, active, providedBy
, serviceCategory, serviceType, specialty, location, serviceName, comment, extraDetails
, photo, telecom, coverageArea, serviceProvisionCode, eligibility, eligibilityNote
, programName, characteristic, referralMethod, publicKey, appointmentRequired, availableTime
, notAvailable, availabilityExceptions);
}
@Override
@ -2686,6 +2750,26 @@ public class HealthcareService extends DomainResource {
*/
public static final ca.uhn.fhir.rest.gclient.StringClientParam PROGRAMNAME = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_PROGRAMNAME);
/**
* Search parameter: <b>active</b>
* <p>
* Description: <b>The Healthcare Service is currently marked as active</b><br>
* Type: <b>token</b><br>
* Path: <b>HealthcareService.active</b><br>
* </p>
*/
@SearchParamDefinition(name="active", path="HealthcareService.active", description="The Healthcare Service is currently marked as active", type="token" )
public static final String SP_ACTIVE = "active";
/**
* <b>Fluent Client</b> search parameter constant for <b>active</b>
* <p>
* Description: <b>The Healthcare Service is currently marked as active</b><br>
* Type: <b>token</b><br>
* Path: <b>HealthcareService.active</b><br>
* </p>
*/
public static final ca.uhn.fhir.rest.gclient.TokenClientParam ACTIVE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_ACTIVE);
/**
* Search parameter: <b>location</b>
* <p>

View File

@ -29,7 +29,7 @@ package org.hl7.fhir.dstu3.model;
*/
// Generated on Tue, Jul 12, 2016 12:04-0400 for FHIR v1.5.0
// Generated on Wed, Aug 3, 2016 09:39-0400 for FHIR v1.5.0
import java.util.*;

View File

@ -29,7 +29,7 @@ package org.hl7.fhir.dstu3.model;
*/
// Generated on Tue, Jul 12, 2016 12:04-0400 for FHIR v1.5.0
// Generated on Wed, Aug 3, 2016 09:39-0400 for FHIR v1.5.0
import java.util.*;

View File

@ -29,7 +29,7 @@ package org.hl7.fhir.dstu3.model;
*/
// Generated on Tue, Jul 12, 2016 12:04-0400 for FHIR v1.5.0
// Generated on Wed, Aug 3, 2016 09:39-0400 for FHIR v1.5.0
import java.util.*;

View File

@ -29,7 +29,7 @@ package org.hl7.fhir.dstu3.model;
*/
// Generated on Tue, Jul 12, 2016 12:04-0400 for FHIR v1.5.0
// Generated on Wed, Aug 3, 2016 09:39-0400 for FHIR v1.5.0
import java.util.*;
@ -455,7 +455,7 @@ public class ImagingStudy extends DomainResource {
/**
* A single SOP Instance within the series, e.g. an image, or presentation state.
*/
@Child(name = "instance", type = {}, order=11, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
@Child(name = "instance", type = {}, order=11, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
@Description(shortDefinition="A single SOP instance from the series", formalDefinition="A single SOP Instance within the series, e.g. an image, or presentation state." )
protected List<ImagingStudySeriesInstanceComponent> instance;
@ -1377,28 +1377,28 @@ public class ImagingStudy extends DomainResource {
/**
* Formal identifier for this image or other content.
*/
@Child(name = "uid", type = {OidType.class}, order=1, min=1, max=1, modifier=false, summary=true)
@Child(name = "uid", type = {OidType.class}, order=1, min=1, max=1, modifier=false, summary=false)
@Description(shortDefinition="Formal DICOM identifier for this instance", formalDefinition="Formal identifier for this image or other content." )
protected OidType uid;
/**
* The number of instance in the series.
*/
@Child(name = "number", type = {UnsignedIntType.class}, order=2, min=0, max=1, modifier=false, summary=true)
@Child(name = "number", type = {UnsignedIntType.class}, order=2, min=0, max=1, modifier=false, summary=false)
@Description(shortDefinition="The number of this instance in the series", formalDefinition="The number of instance in the series." )
protected UnsignedIntType number;
/**
* DICOM instance type.
*/
@Child(name = "sopClass", type = {OidType.class}, order=3, min=1, max=1, modifier=false, summary=true)
@Child(name = "sopClass", type = {OidType.class}, order=3, min=1, max=1, modifier=false, summary=false)
@Description(shortDefinition="DICOM class type", formalDefinition="DICOM instance type." )
protected OidType sopClass;
/**
* The description of the instance.
*/
@Child(name = "title", type = {StringType.class}, order=4, min=0, max=1, modifier=false, summary=true)
@Child(name = "title", type = {StringType.class}, order=4, min=0, max=1, modifier=false, summary=false)
@Description(shortDefinition="Description of instance", formalDefinition="The description of the instance." )
protected StringType title;
@ -1757,7 +1757,7 @@ public class ImagingStudy extends DomainResource {
* Availability of study (online, offline or nearline).
*/
@Child(name = "availability", type = {CodeType.class}, order=3, min=0, max=1, modifier=false, summary=true)
@Description(shortDefinition="ONLINE | OFFLINE | NEARLINE | UNAVAILABLE (0008,0056)", formalDefinition="Availability of study (online, offline or nearline)." )
@Description(shortDefinition="ONLINE | OFFLINE | NEARLINE | UNAVAILABLE", formalDefinition="Availability of study (online, offline or nearline)." )
@ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/instance-availability")
protected Enumeration<InstanceAvailability> availability;
@ -1781,30 +1781,42 @@ public class ImagingStudy extends DomainResource {
*/
protected Patient patientTarget;
/**
* The encounter at which the request is initiated.
*/
@Child(name = "context", type = {Encounter.class, EpisodeOfCare.class}, order=6, min=0, max=1, modifier=false, summary=true)
@Description(shortDefinition="Originating context", formalDefinition="The encounter at which the request is initiated." )
protected Reference context;
/**
* The actual object that is the target of the reference (The encounter at which the request is initiated.)
*/
protected Resource contextTarget;
/**
* Date and Time the study started.
*/
@Child(name = "started", type = {DateTimeType.class}, order=6, min=0, max=1, modifier=false, summary=true)
@Child(name = "started", type = {DateTimeType.class}, order=7, min=0, max=1, modifier=false, summary=true)
@Description(shortDefinition="When the study was started", formalDefinition="Date and Time the study started." )
protected DateTimeType started;
/**
* A list of the diagnostic orders that resulted in this imaging study being performed.
* A list of the diagnostic requests that resulted in this imaging study being performed.
*/
@Child(name = "order", type = {DiagnosticOrder.class}, order=7, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
@Description(shortDefinition="Order(s) that caused this study to be performed", formalDefinition="A list of the diagnostic orders that resulted in this imaging study being performed." )
protected List<Reference> order;
@Child(name = "basedOn", type = {ReferralRequest.class, CarePlan.class, DiagnosticRequest.class, ProcedureRequest.class}, order=8, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
@Description(shortDefinition="Request fulfilled", formalDefinition="A list of the diagnostic requests that resulted in this imaging study being performed." )
protected List<Reference> basedOn;
/**
* The actual objects that are the target of the reference (A list of the diagnostic orders that resulted in this imaging study being performed.)
* The actual objects that are the target of the reference (A list of the diagnostic requests that resulted in this imaging study being performed.)
*/
protected List<DiagnosticOrder> orderTarget;
protected List<Resource> basedOnTarget;
/**
* The requesting/referring physician.
*/
@Child(name = "referrer", type = {Practitioner.class}, order=8, min=0, max=1, modifier=false, summary=true)
@Description(shortDefinition="Referring physician (0008,0090)", formalDefinition="The requesting/referring physician." )
@Child(name = "referrer", type = {Practitioner.class}, order=9, min=0, max=1, modifier=false, summary=true)
@Description(shortDefinition="Referring physician", formalDefinition="The requesting/referring physician." )
protected Reference referrer;
/**
@ -1815,7 +1827,7 @@ public class ImagingStudy extends DomainResource {
/**
* Who read the study and interpreted the images or other content.
*/
@Child(name = "interpreter", type = {Practitioner.class}, order=9, min=0, max=1, modifier=false, summary=true)
@Child(name = "interpreter", type = {Practitioner.class}, order=10, min=0, max=1, modifier=false, summary=true)
@Description(shortDefinition="Who interpreted images", formalDefinition="Who read the study and interpreted the images or other content." )
protected Reference interpreter;
@ -1827,28 +1839,28 @@ public class ImagingStudy extends DomainResource {
/**
* Methods of accessing (e.g., retrieving, viewing) the study.
*/
@Child(name = "baseLocation", type = {}, order=10, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
@Child(name = "baseLocation", type = {}, order=11, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
@Description(shortDefinition="Study access service endpoint", formalDefinition="Methods of accessing (e.g., retrieving, viewing) the study." )
protected List<StudyBaseLocationComponent> baseLocation;
/**
* Number of Series in Study.
*/
@Child(name = "numberOfSeries", type = {UnsignedIntType.class}, order=11, min=1, max=1, modifier=false, summary=true)
@Child(name = "numberOfSeries", type = {UnsignedIntType.class}, order=12, min=1, max=1, modifier=false, summary=true)
@Description(shortDefinition="Number of Study Related Series", formalDefinition="Number of Series in Study." )
protected UnsignedIntType numberOfSeries;
/**
* Number of SOP Instances in Study.
*/
@Child(name = "numberOfInstances", type = {UnsignedIntType.class}, order=12, min=1, max=1, modifier=false, summary=true)
@Child(name = "numberOfInstances", type = {UnsignedIntType.class}, order=13, min=1, max=1, modifier=false, summary=true)
@Description(shortDefinition="Number of Study Related Instances", formalDefinition="Number of SOP Instances in Study." )
protected UnsignedIntType numberOfInstances;
/**
* Type of procedure performed.
*/
@Child(name = "procedure", type = {Procedure.class}, order=13, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
@Child(name = "procedure", type = {Procedure.class}, order=14, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
@Description(shortDefinition="Type of procedure performed", formalDefinition="Type of procedure performed." )
protected List<Reference> procedure;
/**
@ -1857,21 +1869,28 @@ public class ImagingStudy extends DomainResource {
protected List<Procedure> procedureTarget;
/**
* Description of clinical codition indicating why the ImagingStudy was requested.
*/
@Child(name = "reason", type = {CodeableConcept.class}, order=15, min=0, max=1, modifier=false, summary=true)
@Description(shortDefinition="Reason for study", formalDefinition="Description of clinical codition indicating why the ImagingStudy was requested." )
protected CodeableConcept reason;
/**
* Institution-generated description or classification of the Study performed.
*/
@Child(name = "description", type = {StringType.class}, order=14, min=0, max=1, modifier=false, summary=true)
@Child(name = "description", type = {StringType.class}, order=16, min=0, max=1, modifier=false, summary=true)
@Description(shortDefinition="Institution-generated description", formalDefinition="Institution-generated description or classification of the Study performed." )
protected StringType description;
/**
* Each study has one or more series of images or other content.
*/
@Child(name = "series", type = {}, order=15, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
@Child(name = "series", type = {}, order=17, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
@Description(shortDefinition="Each study has one or more series of instances", formalDefinition="Each study has one or more series of images or other content." )
protected List<ImagingStudySeriesComponent> series;
private static final long serialVersionUID = 1363417483L;
private static final long serialVersionUID = -1406371081L;
/**
* Constructor
@ -2159,6 +2178,45 @@ public class ImagingStudy extends DomainResource {
return this;
}
/**
* @return {@link #context} (The encounter at which the request is initiated.)
*/
public Reference getContext() {
if (this.context == null)
if (Configuration.errorOnAutoCreate())
throw new Error("Attempt to auto-create ImagingStudy.context");
else if (Configuration.doAutoCreate())
this.context = new Reference(); // cc
return this.context;
}
public boolean hasContext() {
return this.context != null && !this.context.isEmpty();
}
/**
* @param value {@link #context} (The encounter at which the request is initiated.)
*/
public ImagingStudy setContext(Reference value) {
this.context = value;
return this;
}
/**
* @return {@link #context} The actual object that is the target of the reference. The reference library doesn't populate this, but you can use it to hold the resource if you resolve it. (The encounter at which the request is initiated.)
*/
public Resource getContextTarget() {
return this.contextTarget;
}
/**
* @param value {@link #context} The actual object that is the target of the reference. The reference library doesn't use these, but you can use it to hold the resource if you resolve it. (The encounter at which the request is initiated.)
*/
public ImagingStudy setContextTarget(Resource value) {
this.contextTarget = value;
return this;
}
/**
* @return {@link #started} (Date and Time the study started.). This is the underlying object with id, value and extensions. The accessor "getStarted" gives direct access to the value
*/
@ -2209,78 +2267,66 @@ public class ImagingStudy extends DomainResource {
}
/**
* @return {@link #order} (A list of the diagnostic orders that resulted in this imaging study being performed.)
* @return {@link #basedOn} (A list of the diagnostic requests that resulted in this imaging study being performed.)
*/
public List<Reference> getOrder() {
if (this.order == null)
this.order = new ArrayList<Reference>();
return this.order;
public List<Reference> getBasedOn() {
if (this.basedOn == null)
this.basedOn = new ArrayList<Reference>();
return this.basedOn;
}
/**
* @return Returns a reference to <code>this</code> for easy method chaining
*/
public ImagingStudy setOrder(List<Reference> theOrder) {
this.order = theOrder;
public ImagingStudy setBasedOn(List<Reference> theBasedOn) {
this.basedOn = theBasedOn;
return this;
}
public boolean hasOrder() {
if (this.order == null)
public boolean hasBasedOn() {
if (this.basedOn == null)
return false;
for (Reference item : this.order)
for (Reference item : this.basedOn)
if (!item.isEmpty())
return true;
return false;
}
public Reference addOrder() { //3
public Reference addBasedOn() { //3
Reference t = new Reference();
if (this.order == null)
this.order = new ArrayList<Reference>();
this.order.add(t);
if (this.basedOn == null)
this.basedOn = new ArrayList<Reference>();
this.basedOn.add(t);
return t;
}
public ImagingStudy addOrder(Reference t) { //3
public ImagingStudy addBasedOn(Reference t) { //3
if (t == null)
return this;
if (this.order == null)
this.order = new ArrayList<Reference>();
this.order.add(t);
if (this.basedOn == null)
this.basedOn = new ArrayList<Reference>();
this.basedOn.add(t);
return this;
}
/**
* @return The first repetition of repeating field {@link #order}, creating it if it does not already exist
* @return The first repetition of repeating field {@link #basedOn}, creating it if it does not already exist
*/
public Reference getOrderFirstRep() {
if (getOrder().isEmpty()) {
addOrder();
public Reference getBasedOnFirstRep() {
if (getBasedOn().isEmpty()) {
addBasedOn();
}
return getOrder().get(0);
return getBasedOn().get(0);
}
/**
* @deprecated Use Reference#setResource(IBaseResource) instead
*/
@Deprecated
public List<DiagnosticOrder> getOrderTarget() {
if (this.orderTarget == null)
this.orderTarget = new ArrayList<DiagnosticOrder>();
return this.orderTarget;
}
/**
* @deprecated Use Reference#setResource(IBaseResource) instead
*/
@Deprecated
public DiagnosticOrder addOrderTarget() {
DiagnosticOrder r = new DiagnosticOrder();
if (this.orderTarget == null)
this.orderTarget = new ArrayList<DiagnosticOrder>();
this.orderTarget.add(r);
return r;
public List<Resource> getBasedOnTarget() {
if (this.basedOnTarget == null)
this.basedOnTarget = new ArrayList<Resource>();
return this.basedOnTarget;
}
/**
@ -2589,6 +2635,30 @@ public class ImagingStudy extends DomainResource {
return r;
}
/**
* @return {@link #reason} (Description of clinical codition indicating why the ImagingStudy was requested.)
*/
public CodeableConcept getReason() {
if (this.reason == null)
if (Configuration.errorOnAutoCreate())
throw new Error("Attempt to auto-create ImagingStudy.reason");
else if (Configuration.doAutoCreate())
this.reason = new CodeableConcept(); // cc
return this.reason;
}
public boolean hasReason() {
return this.reason != null && !this.reason.isEmpty();
}
/**
* @param value {@link #reason} (Description of clinical codition indicating why the ImagingStudy was requested.)
*/
public ImagingStudy setReason(CodeableConcept value) {
this.reason = value;
return this;
}
/**
* @return {@link #description} (Institution-generated description or classification of the Study performed.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value
*/
@ -2699,14 +2769,16 @@ public class ImagingStudy extends DomainResource {
childrenList.add(new Property("availability", "code", "Availability of study (online, offline or nearline).", 0, java.lang.Integer.MAX_VALUE, availability));
childrenList.add(new Property("modalityList", "Coding", "A list of all the Series.ImageModality values that are actual acquisition modalities, i.e. those in the DICOM Context Group 29 (value set OID 1.2.840.10008.6.1.19).", 0, java.lang.Integer.MAX_VALUE, modalityList));
childrenList.add(new Property("patient", "Reference(Patient)", "The patient imaged in the study.", 0, java.lang.Integer.MAX_VALUE, patient));
childrenList.add(new Property("context", "Reference(Encounter|EpisodeOfCare)", "The encounter at which the request is initiated.", 0, java.lang.Integer.MAX_VALUE, context));
childrenList.add(new Property("started", "dateTime", "Date and Time the study started.", 0, java.lang.Integer.MAX_VALUE, started));
childrenList.add(new Property("order", "Reference(DiagnosticOrder)", "A list of the diagnostic orders that resulted in this imaging study being performed.", 0, java.lang.Integer.MAX_VALUE, order));
childrenList.add(new Property("basedOn", "Reference(ReferralRequest|CarePlan|DiagnosticRequest|ProcedureRequest)", "A list of the diagnostic requests that resulted in this imaging study being performed.", 0, java.lang.Integer.MAX_VALUE, basedOn));
childrenList.add(new Property("referrer", "Reference(Practitioner)", "The requesting/referring physician.", 0, java.lang.Integer.MAX_VALUE, referrer));
childrenList.add(new Property("interpreter", "Reference(Practitioner)", "Who read the study and interpreted the images or other content.", 0, java.lang.Integer.MAX_VALUE, interpreter));
childrenList.add(new Property("baseLocation", "", "Methods of accessing (e.g., retrieving, viewing) the study.", 0, java.lang.Integer.MAX_VALUE, baseLocation));
childrenList.add(new Property("numberOfSeries", "unsignedInt", "Number of Series in Study.", 0, java.lang.Integer.MAX_VALUE, numberOfSeries));
childrenList.add(new Property("numberOfInstances", "unsignedInt", "Number of SOP Instances in Study.", 0, java.lang.Integer.MAX_VALUE, numberOfInstances));
childrenList.add(new Property("procedure", "Reference(Procedure)", "Type of procedure performed.", 0, java.lang.Integer.MAX_VALUE, procedure));
childrenList.add(new Property("reason", "CodeableConcept", "Description of clinical codition indicating why the ImagingStudy was requested.", 0, java.lang.Integer.MAX_VALUE, reason));
childrenList.add(new Property("description", "string", "Institution-generated description or classification of the Study performed.", 0, java.lang.Integer.MAX_VALUE, description));
childrenList.add(new Property("series", "", "Each study has one or more series of images or other content.", 0, java.lang.Integer.MAX_VALUE, series));
}
@ -2720,14 +2792,16 @@ public class ImagingStudy extends DomainResource {
case 1997542747: /*availability*/ return this.availability == null ? new Base[0] : new Base[] {this.availability}; // Enumeration<InstanceAvailability>
case -1030238433: /*modalityList*/ return this.modalityList == null ? new Base[0] : this.modalityList.toArray(new Base[this.modalityList.size()]); // Coding
case -791418107: /*patient*/ return this.patient == null ? new Base[0] : new Base[] {this.patient}; // Reference
case 951530927: /*context*/ return this.context == null ? new Base[0] : new Base[] {this.context}; // Reference
case -1897185151: /*started*/ return this.started == null ? new Base[0] : new Base[] {this.started}; // DateTimeType
case 106006350: /*order*/ return this.order == null ? new Base[0] : this.order.toArray(new Base[this.order.size()]); // Reference
case -332612366: /*basedOn*/ return this.basedOn == null ? new Base[0] : this.basedOn.toArray(new Base[this.basedOn.size()]); // Reference
case -722568161: /*referrer*/ return this.referrer == null ? new Base[0] : new Base[] {this.referrer}; // Reference
case -2008009094: /*interpreter*/ return this.interpreter == null ? new Base[0] : new Base[] {this.interpreter}; // Reference
case 231778726: /*baseLocation*/ return this.baseLocation == null ? new Base[0] : this.baseLocation.toArray(new Base[this.baseLocation.size()]); // StudyBaseLocationComponent
case 1920000407: /*numberOfSeries*/ return this.numberOfSeries == null ? new Base[0] : new Base[] {this.numberOfSeries}; // UnsignedIntType
case -1043544226: /*numberOfInstances*/ return this.numberOfInstances == null ? new Base[0] : new Base[] {this.numberOfInstances}; // UnsignedIntType
case -1095204141: /*procedure*/ return this.procedure == null ? new Base[0] : this.procedure.toArray(new Base[this.procedure.size()]); // Reference
case -934964668: /*reason*/ return this.reason == null ? new Base[0] : new Base[] {this.reason}; // CodeableConcept
case -1724546052: /*description*/ return this.description == null ? new Base[0] : new Base[] {this.description}; // StringType
case -905838985: /*series*/ return this.series == null ? new Base[0] : this.series.toArray(new Base[this.series.size()]); // ImagingStudySeriesComponent
default: return super.getProperty(hash, name, checkValid);
@ -2756,11 +2830,14 @@ public class ImagingStudy extends DomainResource {
case -791418107: // patient
this.patient = castToReference(value); // Reference
break;
case 951530927: // context
this.context = castToReference(value); // Reference
break;
case -1897185151: // started
this.started = castToDateTime(value); // DateTimeType
break;
case 106006350: // order
this.getOrder().add(castToReference(value)); // Reference
case -332612366: // basedOn
this.getBasedOn().add(castToReference(value)); // Reference
break;
case -722568161: // referrer
this.referrer = castToReference(value); // Reference
@ -2780,6 +2857,9 @@ public class ImagingStudy extends DomainResource {
case -1095204141: // procedure
this.getProcedure().add(castToReference(value)); // Reference
break;
case -934964668: // reason
this.reason = castToCodeableConcept(value); // CodeableConcept
break;
case -1724546052: // description
this.description = castToString(value); // StringType
break;
@ -2805,10 +2885,12 @@ public class ImagingStudy extends DomainResource {
this.getModalityList().add(castToCoding(value));
else if (name.equals("patient"))
this.patient = castToReference(value); // Reference
else if (name.equals("context"))
this.context = castToReference(value); // Reference
else if (name.equals("started"))
this.started = castToDateTime(value); // DateTimeType
else if (name.equals("order"))
this.getOrder().add(castToReference(value));
else if (name.equals("basedOn"))
this.getBasedOn().add(castToReference(value));
else if (name.equals("referrer"))
this.referrer = castToReference(value); // Reference
else if (name.equals("interpreter"))
@ -2821,6 +2903,8 @@ public class ImagingStudy extends DomainResource {
this.numberOfInstances = castToUnsignedInt(value); // UnsignedIntType
else if (name.equals("procedure"))
this.getProcedure().add(castToReference(value));
else if (name.equals("reason"))
this.reason = castToCodeableConcept(value); // CodeableConcept
else if (name.equals("description"))
this.description = castToString(value); // StringType
else if (name.equals("series"))
@ -2838,14 +2922,16 @@ public class ImagingStudy extends DomainResource {
case 1997542747: throw new FHIRException("Cannot make property availability as it is not a complex type"); // Enumeration<InstanceAvailability>
case -1030238433: return addModalityList(); // Coding
case -791418107: return getPatient(); // Reference
case 951530927: return getContext(); // Reference
case -1897185151: throw new FHIRException("Cannot make property started as it is not a complex type"); // DateTimeType
case 106006350: return addOrder(); // Reference
case -332612366: return addBasedOn(); // Reference
case -722568161: return getReferrer(); // Reference
case -2008009094: return getInterpreter(); // Reference
case 231778726: return addBaseLocation(); // StudyBaseLocationComponent
case 1920000407: throw new FHIRException("Cannot make property numberOfSeries as it is not a complex type"); // UnsignedIntType
case -1043544226: throw new FHIRException("Cannot make property numberOfInstances as it is not a complex type"); // UnsignedIntType
case -1095204141: return addProcedure(); // Reference
case -934964668: return getReason(); // CodeableConcept
case -1724546052: throw new FHIRException("Cannot make property description as it is not a complex type"); // StringType
case -905838985: return addSeries(); // ImagingStudySeriesComponent
default: return super.makeProperty(hash, name);
@ -2875,11 +2961,15 @@ public class ImagingStudy extends DomainResource {
this.patient = new Reference();
return this.patient;
}
else if (name.equals("context")) {
this.context = new Reference();
return this.context;
}
else if (name.equals("started")) {
throw new FHIRException("Cannot call addChild on a primitive type ImagingStudy.started");
}
else if (name.equals("order")) {
return addOrder();
else if (name.equals("basedOn")) {
return addBasedOn();
}
else if (name.equals("referrer")) {
this.referrer = new Reference();
@ -2901,6 +2991,10 @@ public class ImagingStudy extends DomainResource {
else if (name.equals("procedure")) {
return addProcedure();
}
else if (name.equals("reason")) {
this.reason = new CodeableConcept();
return this.reason;
}
else if (name.equals("description")) {
throw new FHIRException("Cannot call addChild on a primitive type ImagingStudy.description");
}
@ -2933,11 +3027,12 @@ public class ImagingStudy extends DomainResource {
dst.modalityList.add(i.copy());
};
dst.patient = patient == null ? null : patient.copy();
dst.context = context == null ? null : context.copy();
dst.started = started == null ? null : started.copy();
if (order != null) {
dst.order = new ArrayList<Reference>();
for (Reference i : order)
dst.order.add(i.copy());
if (basedOn != null) {
dst.basedOn = new ArrayList<Reference>();
for (Reference i : basedOn)
dst.basedOn.add(i.copy());
};
dst.referrer = referrer == null ? null : referrer.copy();
dst.interpreter = interpreter == null ? null : interpreter.copy();
@ -2953,6 +3048,7 @@ public class ImagingStudy extends DomainResource {
for (Reference i : procedure)
dst.procedure.add(i.copy());
};
dst.reason = reason == null ? null : reason.copy();
dst.description = description == null ? null : description.copy();
if (series != null) {
dst.series = new ArrayList<ImagingStudySeriesComponent>();
@ -2975,10 +3071,11 @@ public class ImagingStudy extends DomainResource {
ImagingStudy o = (ImagingStudy) other;
return compareDeep(uid, o.uid, true) && compareDeep(accession, o.accession, true) && compareDeep(identifier, o.identifier, true)
&& compareDeep(availability, o.availability, true) && compareDeep(modalityList, o.modalityList, true)
&& compareDeep(patient, o.patient, true) && compareDeep(started, o.started, true) && compareDeep(order, o.order, true)
&& compareDeep(referrer, o.referrer, true) && compareDeep(interpreter, o.interpreter, true) && compareDeep(baseLocation, o.baseLocation, true)
&& compareDeep(numberOfSeries, o.numberOfSeries, true) && compareDeep(numberOfInstances, o.numberOfInstances, true)
&& compareDeep(procedure, o.procedure, true) && compareDeep(description, o.description, true) && compareDeep(series, o.series, true)
&& compareDeep(patient, o.patient, true) && compareDeep(context, o.context, true) && compareDeep(started, o.started, true)
&& compareDeep(basedOn, o.basedOn, true) && compareDeep(referrer, o.referrer, true) && compareDeep(interpreter, o.interpreter, true)
&& compareDeep(baseLocation, o.baseLocation, true) && compareDeep(numberOfSeries, o.numberOfSeries, true)
&& compareDeep(numberOfInstances, o.numberOfInstances, true) && compareDeep(procedure, o.procedure, true)
&& compareDeep(reason, o.reason, true) && compareDeep(description, o.description, true) && compareDeep(series, o.series, true)
;
}
@ -2996,8 +3093,9 @@ public class ImagingStudy extends DomainResource {
public boolean isEmpty() {
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(uid, accession, identifier
, availability, modalityList, patient, started, order, referrer, interpreter, baseLocation
, numberOfSeries, numberOfInstances, procedure, description, series);
, availability, modalityList, patient, context, started, basedOn, referrer, interpreter
, baseLocation, numberOfSeries, numberOfInstances, procedure, reason, description
, series);
}
@Override
@ -3026,24 +3124,24 @@ public class ImagingStudy extends DomainResource {
public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_IDENTIFIER);
/**
* Search parameter: <b>uid</b>
* Search parameter: <b>reason</b>
* <p>
* Description: <b>The instance unique identifier</b><br>
* Type: <b>uri</b><br>
* Path: <b>ImagingStudy.series.instance.uid</b><br>
* Description: <b>The reason for the study</b><br>
* Type: <b>token</b><br>
* Path: <b>ImagingStudy.reason</b><br>
* </p>
*/
@SearchParamDefinition(name="uid", path="ImagingStudy.series.instance.uid", description="The instance unique identifier", type="uri" )
public static final String SP_UID = "uid";
@SearchParamDefinition(name="reason", path="ImagingStudy.reason", description="The reason for the study", type="token" )
public static final String SP_REASON = "reason";
/**
* <b>Fluent Client</b> search parameter constant for <b>uid</b>
* <b>Fluent Client</b> search parameter constant for <b>reason</b>
* <p>
* Description: <b>The instance unique identifier</b><br>
* Type: <b>uri</b><br>
* Path: <b>ImagingStudy.series.instance.uid</b><br>
* Description: <b>The reason for the study</b><br>
* Type: <b>token</b><br>
* Path: <b>ImagingStudy.reason</b><br>
* </p>
*/
public static final ca.uhn.fhir.rest.gclient.UriClientParam UID = new ca.uhn.fhir.rest.gclient.UriClientParam(SP_UID);
public static final ca.uhn.fhir.rest.gclient.TokenClientParam REASON = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_REASON);
/**
* Search parameter: <b>study</b>
@ -3125,6 +3223,66 @@ public class ImagingStudy extends DomainResource {
*/
public static final ca.uhn.fhir.rest.gclient.TokenClientParam BODYSITE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_BODYSITE);
/**
* Search parameter: <b>started</b>
* <p>
* Description: <b>When the study was started</b><br>
* Type: <b>date</b><br>
* Path: <b>ImagingStudy.started</b><br>
* </p>
*/
@SearchParamDefinition(name="started", path="ImagingStudy.started", description="When the study was started", type="date" )
public static final String SP_STARTED = "started";
/**
* <b>Fluent Client</b> search parameter constant for <b>started</b>
* <p>
* Description: <b>When the study was started</b><br>
* Type: <b>date</b><br>
* Path: <b>ImagingStudy.started</b><br>
* </p>
*/
public static final ca.uhn.fhir.rest.gclient.DateClientParam STARTED = new ca.uhn.fhir.rest.gclient.DateClientParam(SP_STARTED);
/**
* Search parameter: <b>accession</b>
* <p>
* Description: <b>The accession identifier for the study</b><br>
* Type: <b>token</b><br>
* Path: <b>ImagingStudy.accession</b><br>
* </p>
*/
@SearchParamDefinition(name="accession", path="ImagingStudy.accession", description="The accession identifier for the study", type="token" )
public static final String SP_ACCESSION = "accession";
/**
* <b>Fluent Client</b> search parameter constant for <b>accession</b>
* <p>
* Description: <b>The accession identifier for the study</b><br>
* Type: <b>token</b><br>
* Path: <b>ImagingStudy.accession</b><br>
* </p>
*/
public static final ca.uhn.fhir.rest.gclient.TokenClientParam ACCESSION = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_ACCESSION);
/**
* Search parameter: <b>uid</b>
* <p>
* Description: <b>The instance unique identifier</b><br>
* Type: <b>uri</b><br>
* Path: <b>ImagingStudy.series.instance.uid</b><br>
* </p>
*/
@SearchParamDefinition(name="uid", path="ImagingStudy.series.instance.uid", description="The instance unique identifier", type="uri" )
public static final String SP_UID = "uid";
/**
* <b>Fluent Client</b> search parameter constant for <b>uid</b>
* <p>
* Description: <b>The instance unique identifier</b><br>
* Type: <b>uri</b><br>
* Path: <b>ImagingStudy.series.instance.uid</b><br>
* </p>
*/
public static final ca.uhn.fhir.rest.gclient.UriClientParam UID = new ca.uhn.fhir.rest.gclient.UriClientParam(SP_UID);
/**
* Search parameter: <b>patient</b>
* <p>
@ -3172,70 +3330,56 @@ public class ImagingStudy extends DomainResource {
public static final ca.uhn.fhir.rest.gclient.UriClientParam SERIES = new ca.uhn.fhir.rest.gclient.UriClientParam(SP_SERIES);
/**
* Search parameter: <b>started</b>
* Search parameter: <b>context</b>
* <p>
* Description: <b>When the study was started</b><br>
* Type: <b>date</b><br>
* Path: <b>ImagingStudy.started</b><br>
* </p>
*/
@SearchParamDefinition(name="started", path="ImagingStudy.started", description="When the study was started", type="date" )
public static final String SP_STARTED = "started";
/**
* <b>Fluent Client</b> search parameter constant for <b>started</b>
* <p>
* Description: <b>When the study was started</b><br>
* Type: <b>date</b><br>
* Path: <b>ImagingStudy.started</b><br>
* </p>
*/
public static final ca.uhn.fhir.rest.gclient.DateClientParam STARTED = new ca.uhn.fhir.rest.gclient.DateClientParam(SP_STARTED);
/**
* Search parameter: <b>accession</b>
* <p>
* Description: <b>The accession identifier for the study</b><br>
* Type: <b>token</b><br>
* Path: <b>ImagingStudy.accession</b><br>
* </p>
*/
@SearchParamDefinition(name="accession", path="ImagingStudy.accession", description="The accession identifier for the study", type="token" )
public static final String SP_ACCESSION = "accession";
/**
* <b>Fluent Client</b> search parameter constant for <b>accession</b>
* <p>
* Description: <b>The accession identifier for the study</b><br>
* Type: <b>token</b><br>
* Path: <b>ImagingStudy.accession</b><br>
* </p>
*/
public static final ca.uhn.fhir.rest.gclient.TokenClientParam ACCESSION = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_ACCESSION);
/**
* Search parameter: <b>order</b>
* <p>
* Description: <b>The order for the image</b><br>
* Description: <b>The context of the study</b><br>
* Type: <b>reference</b><br>
* Path: <b>ImagingStudy.order</b><br>
* Path: <b>ImagingStudy.context</b><br>
* </p>
*/
@SearchParamDefinition(name="order", path="ImagingStudy.order", description="The order for the image", type="reference", target={DiagnosticOrder.class } )
public static final String SP_ORDER = "order";
@SearchParamDefinition(name="context", path="ImagingStudy.context", description="The context of the study", type="reference", target={Encounter.class, EpisodeOfCare.class } )
public static final String SP_CONTEXT = "context";
/**
* <b>Fluent Client</b> search parameter constant for <b>order</b>
* <b>Fluent Client</b> search parameter constant for <b>context</b>
* <p>
* Description: <b>The order for the image</b><br>
* Description: <b>The context of the study</b><br>
* Type: <b>reference</b><br>
* Path: <b>ImagingStudy.order</b><br>
* Path: <b>ImagingStudy.context</b><br>
* </p>
*/
public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam ORDER = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_ORDER);
public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam CONTEXT = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_CONTEXT);
/**
* Constant for fluent queries to be used to add include statements. Specifies
* the path value of "<b>ImagingStudy:order</b>".
* the path value of "<b>ImagingStudy:context</b>".
*/
public static final ca.uhn.fhir.model.api.Include INCLUDE_ORDER = new ca.uhn.fhir.model.api.Include("ImagingStudy:order").toLocked();
public static final ca.uhn.fhir.model.api.Include INCLUDE_CONTEXT = new ca.uhn.fhir.model.api.Include("ImagingStudy:context").toLocked();
/**
* Search parameter: <b>basedon</b>
* <p>
* Description: <b>The order for the image</b><br>
* Type: <b>reference</b><br>
* Path: <b>ImagingStudy.basedOn</b><br>
* </p>
*/
@SearchParamDefinition(name="basedon", path="ImagingStudy.basedOn", description="The order for the image", type="reference", target={CarePlan.class, DiagnosticRequest.class, ProcedureRequest.class, ReferralRequest.class } )
public static final String SP_BASEDON = "basedon";
/**
* <b>Fluent Client</b> search parameter constant for <b>basedon</b>
* <p>
* Description: <b>The order for the image</b><br>
* Type: <b>reference</b><br>
* Path: <b>ImagingStudy.basedOn</b><br>
* </p>
*/
public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam BASEDON = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_BASEDON);
/**
* Constant for fluent queries to be used to add include statements. Specifies
* the path value of "<b>ImagingStudy:basedon</b>".
*/
public static final ca.uhn.fhir.model.api.Include INCLUDE_BASEDON = new ca.uhn.fhir.model.api.Include("ImagingStudy:basedon").toLocked();
}

Some files were not shown because too many files have changed in this diff Show More