New structures

This commit is contained in:
James Agnew 2016-04-01 18:10:02 -04:00
parent c345209ce4
commit 57abd0a3bb
158 changed files with 53614 additions and 22891 deletions

View File

@ -29,7 +29,7 @@ package org.hl7.fhir.dstu3.model;
*/
// Generated on Sat, Jan 30, 2016 09:18-0500 for FHIR v1.3.0
// Generated on Fri, Apr 1, 2016 17:57-0400 for FHIR v1.4.0
import java.util.*;
@ -39,9 +39,8 @@ import ca.uhn.fhir.model.api.annotation.SearchParamDefinition;
import ca.uhn.fhir.model.api.annotation.Child;
import ca.uhn.fhir.model.api.annotation.Description;
import ca.uhn.fhir.model.api.annotation.Block;
import org.hl7.fhir.dstu3.exceptions.FHIRException;
import org.hl7.fhir.instance.model.api.*;
import org.hl7.fhir.dstu3.exceptions.FHIRException;
/**
* A financial tool for tracking value accrued for a particular purpose. In the healthcare field, used to track charges for a patient, cost centres, etc.
*/
@ -766,11 +765,8 @@ public class Account extends DomainResource {
}
public boolean isEmpty() {
return super.isEmpty() && (identifier == null || identifier.isEmpty()) && (name == null || name.isEmpty())
&& (type == null || type.isEmpty()) && (status == null || status.isEmpty()) && (activePeriod == null || activePeriod.isEmpty())
&& (currency == null || currency.isEmpty()) && (balance == null || balance.isEmpty()) && (coveragePeriod == null || coveragePeriod.isEmpty())
&& (subject == null || subject.isEmpty()) && (owner == null || owner.isEmpty()) && (description == null || description.isEmpty())
;
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( identifier, name, type, status
, activePeriod, currency, balance, coveragePeriod, subject, owner, description);
}
@Override
@ -872,7 +868,7 @@ public class Account extends DomainResource {
* Path: <b>Account.subject</b><br>
* </p>
*/
@SearchParamDefinition(name="subject", path="Account.subject", description="What is account tied to?", type="reference" )
@SearchParamDefinition(name="subject", path="Account.subject", description="What is account tied to?", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Device"), @ca.uhn.fhir.model.api.annotation.Compartment(name="Patient"), @ca.uhn.fhir.model.api.annotation.Compartment(name="Practitioner") } )
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 Sat, Jan 30, 2016 09:18-0500 for FHIR v1.3.0
// Generated on Fri, Apr 1, 2016 17:57-0400 for FHIR v1.4.0
import java.util.*;
@ -38,11 +38,10 @@ import ca.uhn.fhir.model.api.annotation.Child;
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.dstu3.exceptions.FHIRException;
import org.hl7.fhir.instance.model.api.*;
import org.hl7.fhir.dstu3.exceptions.FHIRException;
/**
* There is a variety of postal address formats defined around the world. This format defines a superset that is the basis for all addresses around the world.
* An address expressed using postal conventions (as opposed to GPS or other location definition formats). This data type may be used to convey addresses for use in delivering mail as well as for visiting locations and which might not be valid for mail delivery. There are a variety of postal address formats defined around the world.
*/
@DatatypeDef(name="Address")
public class Address extends Type implements ICompositeType {
@ -951,10 +950,8 @@ public class Address extends Type implements ICompositeType {
}
public boolean isEmpty() {
return super.isEmpty() && (use == null || use.isEmpty()) && (type == null || type.isEmpty())
&& (text == null || text.isEmpty()) && (line == null || line.isEmpty()) && (city == null || city.isEmpty())
&& (district == null || district.isEmpty()) && (state == null || state.isEmpty()) && (postalCode == null || postalCode.isEmpty())
&& (country == null || country.isEmpty()) && (period == null || period.isEmpty());
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( use, type, text, line, city
, district, state, postalCode, country, period);
}

View File

@ -29,13 +29,12 @@ package org.hl7.fhir.dstu3.model;
*/
// Generated on Sat, Jan 30, 2016 09:18-0500 for FHIR v1.3.0
// Generated on Fri, Apr 1, 2016 17:57-0400 for FHIR v1.4.0
import ca.uhn.fhir.model.api.annotation.DatatypeDef;
import ca.uhn.fhir.model.api.annotation.Block;
import org.hl7.fhir.dstu3.exceptions.FHIRException;
import org.hl7.fhir.instance.model.api.*;
import org.hl7.fhir.dstu3.exceptions.FHIRException;
/**
* A measured amount (or an amount that can potentially be measured). Note that measured amounts include amounts that are not precisely quantified, including amounts involving arbitrary units and floating currencies.
*/
@ -82,9 +81,8 @@ public class Age extends Quantity {
}
public boolean isEmpty() {
return super.isEmpty() && (value == null || value.isEmpty()) && (comparator == null || comparator.isEmpty())
&& (unit == null || unit.isEmpty()) && (system == null || system.isEmpty()) && (code == null || code.isEmpty())
;
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( value, comparator, unit, system
, code);
}

View File

@ -29,7 +29,7 @@ package org.hl7.fhir.dstu3.model;
*/
// Generated on Sat, Jan 30, 2016 09:18-0500 for FHIR v1.3.0
// Generated on Fri, Apr 1, 2016 17:57-0400 for FHIR v1.4.0
import java.util.*;
@ -38,9 +38,8 @@ import ca.uhn.fhir.model.api.annotation.Child;
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.dstu3.exceptions.FHIRException;
import org.hl7.fhir.instance.model.api.*;
import org.hl7.fhir.dstu3.exceptions.FHIRException;
/**
* A text note which also contains information about who made the statement and when.
*/
@ -64,7 +63,7 @@ public class Annotation extends Type implements ICompositeType {
/**
* The text of the annotation.
*/
@Child(name = "text", type = {StringType.class}, order=2, min=1, max=1, modifier=false, summary=true)
@Child(name = "text", type = {StringType.class}, order=2, min=1, max=1, modifier=false, summary=false)
@Description(shortDefinition="The annotation - text content", formalDefinition="The text of the annotation." )
protected StringType text;
@ -303,8 +302,7 @@ public class Annotation extends Type implements ICompositeType {
}
public boolean isEmpty() {
return super.isEmpty() && (author == null || author.isEmpty()) && (time == null || time.isEmpty())
&& (text == null || text.isEmpty());
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( author, time, text);
}

View File

@ -29,7 +29,7 @@ package org.hl7.fhir.dstu3.model;
*/
// Generated on Sat, Jan 30, 2016 09:18-0500 for FHIR v1.3.0
// Generated on Fri, Apr 1, 2016 17:57-0400 for FHIR v1.4.0
import java.util.*;
@ -39,9 +39,8 @@ import ca.uhn.fhir.model.api.annotation.SearchParamDefinition;
import ca.uhn.fhir.model.api.annotation.Child;
import ca.uhn.fhir.model.api.annotation.Description;
import ca.uhn.fhir.model.api.annotation.Block;
import org.hl7.fhir.dstu3.exceptions.FHIRException;
import org.hl7.fhir.instance.model.api.*;
import org.hl7.fhir.dstu3.exceptions.FHIRException;
/**
* A booking of a healthcare event among patient(s), practitioner(s), related person(s) and/or device(s) for a specific date/time. This may result in one or more Encounter(s).
*/
@ -739,8 +738,8 @@ public class Appointment extends DomainResource {
}
public boolean isEmpty() {
return super.isEmpty() && (type == null || type.isEmpty()) && (actor == null || actor.isEmpty())
&& (required == null || required.isEmpty()) && (status == null || status.isEmpty());
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( type, actor, required, status
);
}
public String fhirType() {
@ -765,58 +764,79 @@ public class Appointment extends DomainResource {
protected Enumeration<AppointmentStatus> status;
/**
* The type of appointment that is being booked (This may also be associated with participants for location, and/or a HealthcareService).
* A broad categorisation of the service that is to be performed during this appointment.
*/
@Child(name = "type", type = {CodeableConcept.class}, order=2, min=0, max=1, modifier=false, summary=true)
@Description(shortDefinition="The type of appointment that is being booked", formalDefinition="The type of appointment that is being booked (This may also be associated with participants for location, and/or a HealthcareService)." )
protected CodeableConcept type;
@Child(name = "serviceCategory", type = {CodeableConcept.class}, order=2, min=0, max=1, modifier=false, summary=true)
@Description(shortDefinition="A broad categorisation of the service that is to be performed during this appointment", formalDefinition="A broad categorisation of the service that is to be performed during this appointment." )
protected CodeableConcept serviceCategory;
/**
* The specific service that is to be performed during this appointment.
*/
@Child(name = "serviceType", type = {CodeableConcept.class}, order=3, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
@Description(shortDefinition="The specific service that is to be performed during this appointment", formalDefinition="The specific service that is to be performed during this appointment." )
protected List<CodeableConcept> serviceType;
/**
* The specialty of a practitioner that would be required to perform the service requested in this appointment.
*/
@Child(name = "specialty", type = {CodeableConcept.class}, order=4, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
@Description(shortDefinition="The specialty of a practitioner that would be required to perform the service requested in this appointment", formalDefinition="The specialty of a practitioner that would be required to perform the service requested in this appointment." )
protected List<CodeableConcept> specialty;
/**
* The style of appointment or patient that has been booked in the slot (not service type).
*/
@Child(name = "appointmentType", type = {CodeableConcept.class}, order=5, min=0, max=1, modifier=false, summary=true)
@Description(shortDefinition="The style of appointment or patient that has been booked in the slot (not service type)", formalDefinition="The style of appointment or patient that has been booked in the slot (not service type)." )
protected CodeableConcept appointmentType;
/**
* The reason that this appointment is being scheduled. This is more clinical than administrative.
*/
@Child(name = "reason", type = {CodeableConcept.class}, order=3, min=0, max=1, modifier=false, summary=true)
@Child(name = "reason", type = {CodeableConcept.class}, order=6, min=0, max=1, modifier=false, summary=true)
@Description(shortDefinition="Reason this appointment is scheduled", formalDefinition="The reason that this appointment is being scheduled. This is more clinical than administrative." )
protected CodeableConcept reason;
/**
* The priority of the appointment. Can be used to make informed decisions if needing to re-prioritize appointments. (The iCal Standard specifies 0 as undefined, 1 as highest, 9 as lowest priority).
*/
@Child(name = "priority", type = {UnsignedIntType.class}, order=4, min=0, max=1, modifier=false, summary=false)
@Child(name = "priority", type = {UnsignedIntType.class}, order=7, min=0, max=1, modifier=false, summary=false)
@Description(shortDefinition="Used to make informed decisions if needing to re-prioritize", formalDefinition="The priority of the appointment. Can be used to make informed decisions if needing to re-prioritize appointments. (The iCal Standard specifies 0 as undefined, 1 as highest, 9 as lowest priority)." )
protected UnsignedIntType priority;
/**
* The brief description of the appointment as would be shown on a subject line in a meeting request, or appointment list. Detailed or expanded information should be put in the comment field.
*/
@Child(name = "description", type = {StringType.class}, order=5, min=0, max=1, modifier=false, summary=false)
@Child(name = "description", type = {StringType.class}, order=8, min=0, max=1, modifier=false, summary=false)
@Description(shortDefinition="Shown on a subject line in a meeting request, or appointment list", formalDefinition="The brief description of the appointment as would be shown on a subject line in a meeting request, or appointment list. Detailed or expanded information should be put in the comment field." )
protected StringType description;
/**
* Date/Time that the appointment is to take place.
*/
@Child(name = "start", type = {InstantType.class}, order=6, min=0, max=1, modifier=false, summary=true)
@Child(name = "start", type = {InstantType.class}, order=9, min=0, max=1, modifier=false, summary=true)
@Description(shortDefinition="When appointment is to take place", formalDefinition="Date/Time that the appointment is to take place." )
protected InstantType start;
/**
* Date/Time that the appointment is to conclude.
*/
@Child(name = "end", type = {InstantType.class}, order=7, min=0, max=1, modifier=false, summary=true)
@Child(name = "end", type = {InstantType.class}, order=10, min=0, max=1, modifier=false, summary=true)
@Description(shortDefinition="When appointment is to conclude", formalDefinition="Date/Time that the appointment is to conclude." )
protected InstantType end;
/**
* Number of minutes that the appointment is to take. This can be less than the duration between the start and end times (where actual time of appointment is only an estimate or is a planned appointment request).
*/
@Child(name = "minutesDuration", type = {PositiveIntType.class}, order=8, min=0, max=1, modifier=false, summary=false)
@Child(name = "minutesDuration", type = {PositiveIntType.class}, order=11, min=0, max=1, modifier=false, summary=false)
@Description(shortDefinition="Can be less than start/end (e.g. estimate)", formalDefinition="Number of minutes that the appointment is to take. This can be less than the duration between the start and end times (where actual time of appointment is only an estimate or is a planned appointment request)." )
protected PositiveIntType minutesDuration;
/**
* The slot that this appointment is filling. If provided then the schedule will not be provided as slots are not recursive, and the start/end values MUST be the same as from the slot.
*/
@Child(name = "slot", type = {Slot.class}, order=9, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
@Child(name = "slot", type = {Slot.class}, order=12, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
@Description(shortDefinition="If provided, then no schedule and start/end values MUST match slot", formalDefinition="The slot that this appointment is filling. If provided then the schedule will not be provided as slots are not recursive, and the start/end values MUST be the same as from the slot." )
protected List<Reference> slot;
/**
@ -825,21 +845,28 @@ public class Appointment extends DomainResource {
protected List<Slot> slotTarget;
/**
* The date that this appointment was initially created. This could be different to the meta.lastModified value on the initial entry, as this could have been before the resource was created on the FHIR server, and should remain unchanged over the lifespan of the appointment.
*/
@Child(name = "created", type = {DateTimeType.class}, order=13, min=0, max=1, modifier=false, summary=false)
@Description(shortDefinition="The date that this appointment was initially created", formalDefinition="The date that this appointment was initially created. This could be different to the meta.lastModified value on the initial entry, as this could have been before the resource was created on the FHIR server, and should remain unchanged over the lifespan of the appointment." )
protected DateTimeType created;
/**
* Additional comments about the appointment.
*/
@Child(name = "comment", type = {StringType.class}, order=10, min=0, max=1, modifier=false, summary=false)
@Child(name = "comment", type = {StringType.class}, order=14, min=0, max=1, modifier=false, summary=false)
@Description(shortDefinition="Additional comments", formalDefinition="Additional comments about the appointment." )
protected StringType comment;
/**
* List of participants involved in the appointment.
*/
@Child(name = "participant", type = {}, order=11, min=1, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
@Child(name = "participant", type = {}, order=15, min=1, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
@Description(shortDefinition="Participants involved in appointment", formalDefinition="List of participants involved in the appointment." )
protected List<AppointmentParticipantComponent> participant;
private static final long serialVersionUID = -1403944125L;
private static final long serialVersionUID = 552749730L;
/**
* Constructor
@ -942,26 +969,130 @@ public class Appointment extends DomainResource {
}
/**
* @return {@link #type} (The type of appointment that is being booked (This may also be associated with participants for location, and/or a HealthcareService).)
* @return {@link #serviceCategory} (A broad categorisation of the service that is to be performed during this appointment.)
*/
public CodeableConcept getType() {
if (this.type == null)
public CodeableConcept getServiceCategory() {
if (this.serviceCategory == null)
if (Configuration.errorOnAutoCreate())
throw new Error("Attempt to auto-create Appointment.type");
throw new Error("Attempt to auto-create Appointment.serviceCategory");
else if (Configuration.doAutoCreate())
this.type = new CodeableConcept(); // cc
return this.type;
this.serviceCategory = new CodeableConcept(); // cc
return this.serviceCategory;
}
public boolean hasType() {
return this.type != null && !this.type.isEmpty();
public boolean hasServiceCategory() {
return this.serviceCategory != null && !this.serviceCategory.isEmpty();
}
/**
* @param value {@link #type} (The type of appointment that is being booked (This may also be associated with participants for location, and/or a HealthcareService).)
* @param value {@link #serviceCategory} (A broad categorisation of the service that is to be performed during this appointment.)
*/
public Appointment setType(CodeableConcept value) {
this.type = value;
public Appointment setServiceCategory(CodeableConcept value) {
this.serviceCategory = value;
return this;
}
/**
* @return {@link #serviceType} (The specific service that is to be performed during this appointment.)
*/
public List<CodeableConcept> getServiceType() {
if (this.serviceType == null)
this.serviceType = new ArrayList<CodeableConcept>();
return this.serviceType;
}
public boolean hasServiceType() {
if (this.serviceType == null)
return false;
for (CodeableConcept item : this.serviceType)
if (!item.isEmpty())
return true;
return false;
}
/**
* @return {@link #serviceType} (The specific service that is to be performed during this appointment.)
*/
// syntactic sugar
public CodeableConcept addServiceType() { //3
CodeableConcept t = new CodeableConcept();
if (this.serviceType == null)
this.serviceType = new ArrayList<CodeableConcept>();
this.serviceType.add(t);
return t;
}
// syntactic sugar
public Appointment addServiceType(CodeableConcept t) { //3
if (t == null)
return this;
if (this.serviceType == null)
this.serviceType = new ArrayList<CodeableConcept>();
this.serviceType.add(t);
return this;
}
/**
* @return {@link #specialty} (The specialty of a practitioner that would be required to perform the service requested in this appointment.)
*/
public List<CodeableConcept> getSpecialty() {
if (this.specialty == null)
this.specialty = new ArrayList<CodeableConcept>();
return this.specialty;
}
public boolean hasSpecialty() {
if (this.specialty == null)
return false;
for (CodeableConcept item : this.specialty)
if (!item.isEmpty())
return true;
return false;
}
/**
* @return {@link #specialty} (The specialty of a practitioner that would be required to perform the service requested in this appointment.)
*/
// syntactic sugar
public CodeableConcept addSpecialty() { //3
CodeableConcept t = new CodeableConcept();
if (this.specialty == null)
this.specialty = new ArrayList<CodeableConcept>();
this.specialty.add(t);
return t;
}
// syntactic sugar
public Appointment addSpecialty(CodeableConcept t) { //3
if (t == null)
return this;
if (this.specialty == null)
this.specialty = new ArrayList<CodeableConcept>();
this.specialty.add(t);
return this;
}
/**
* @return {@link #appointmentType} (The style of appointment or patient that has been booked in the slot (not service type).)
*/
public CodeableConcept getAppointmentType() {
if (this.appointmentType == null)
if (Configuration.errorOnAutoCreate())
throw new Error("Attempt to auto-create Appointment.appointmentType");
else if (Configuration.doAutoCreate())
this.appointmentType = new CodeableConcept(); // cc
return this.appointmentType;
}
public boolean hasAppointmentType() {
return this.appointmentType != null && !this.appointmentType.isEmpty();
}
/**
* @param value {@link #appointmentType} (The style of appointment or patient that has been booked in the slot (not service type).)
*/
public Appointment setAppointmentType(CodeableConcept value) {
this.appointmentType = value;
return this;
}
@ -1287,6 +1418,55 @@ public class Appointment extends DomainResource {
return r;
}
/**
* @return {@link #created} (The date that this appointment was initially created. This could be different to the meta.lastModified value on the initial entry, as this could have been before the resource was created on the FHIR server, and should remain unchanged over the lifespan of the appointment.). This is the underlying object with id, value and extensions. The accessor "getCreated" gives direct access to the value
*/
public DateTimeType getCreatedElement() {
if (this.created == null)
if (Configuration.errorOnAutoCreate())
throw new Error("Attempt to auto-create Appointment.created");
else if (Configuration.doAutoCreate())
this.created = new DateTimeType(); // bb
return this.created;
}
public boolean hasCreatedElement() {
return this.created != null && !this.created.isEmpty();
}
public boolean hasCreated() {
return this.created != null && !this.created.isEmpty();
}
/**
* @param value {@link #created} (The date that this appointment was initially created. This could be different to the meta.lastModified value on the initial entry, as this could have been before the resource was created on the FHIR server, and should remain unchanged over the lifespan of the appointment.). This is the underlying object with id, value and extensions. The accessor "getCreated" gives direct access to the value
*/
public Appointment setCreatedElement(DateTimeType value) {
this.created = value;
return this;
}
/**
* @return The date that this appointment was initially created. This could be different to the meta.lastModified value on the initial entry, as this could have been before the resource was created on the FHIR server, and should remain unchanged over the lifespan of the appointment.
*/
public Date getCreated() {
return this.created == null ? null : this.created.getValue();
}
/**
* @param value The date that this appointment was initially created. This could be different to the meta.lastModified value on the initial entry, as this could have been before the resource was created on the FHIR server, and should remain unchanged over the lifespan of the appointment.
*/
public Appointment setCreated(Date value) {
if (value == null)
this.created = null;
else {
if (this.created == null)
this.created = new DateTimeType();
this.created.setValue(value);
}
return this;
}
/**
* @return {@link #comment} (Additional comments about the appointment.). This is the underlying object with id, value and extensions. The accessor "getComment" gives direct access to the value
*/
@ -1380,7 +1560,10 @@ public class Appointment extends DomainResource {
super.listChildren(childrenList);
childrenList.add(new Property("identifier", "Identifier", "This records identifiers associated with this appointment 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", "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.", 0, java.lang.Integer.MAX_VALUE, status));
childrenList.add(new Property("type", "CodeableConcept", "The type of appointment that is being booked (This may also be associated with participants for location, and/or a HealthcareService).", 0, java.lang.Integer.MAX_VALUE, type));
childrenList.add(new Property("serviceCategory", "CodeableConcept", "A broad categorisation of the service that is to be performed during this appointment.", 0, java.lang.Integer.MAX_VALUE, serviceCategory));
childrenList.add(new Property("serviceType", "CodeableConcept", "The specific service that is to be performed during this appointment.", 0, java.lang.Integer.MAX_VALUE, serviceType));
childrenList.add(new Property("specialty", "CodeableConcept", "The specialty of a practitioner that would be required to perform the service requested in this appointment.", 0, java.lang.Integer.MAX_VALUE, specialty));
childrenList.add(new Property("appointmentType", "CodeableConcept", "The style of appointment or patient that has been booked in the slot (not service type).", 0, java.lang.Integer.MAX_VALUE, appointmentType));
childrenList.add(new Property("reason", "CodeableConcept", "The reason that this appointment is being scheduled. This is more clinical than administrative.", 0, java.lang.Integer.MAX_VALUE, reason));
childrenList.add(new Property("priority", "unsignedInt", "The priority of the appointment. Can be used to make informed decisions if needing to re-prioritize appointments. (The iCal Standard specifies 0 as undefined, 1 as highest, 9 as lowest priority).", 0, java.lang.Integer.MAX_VALUE, priority));
childrenList.add(new Property("description", "string", "The brief description of the appointment as would be shown on a subject line in a meeting request, or appointment list. Detailed or expanded information should be put in the comment field.", 0, java.lang.Integer.MAX_VALUE, description));
@ -1388,6 +1571,7 @@ public class Appointment extends DomainResource {
childrenList.add(new Property("end", "instant", "Date/Time that the appointment is to conclude.", 0, java.lang.Integer.MAX_VALUE, end));
childrenList.add(new Property("minutesDuration", "positiveInt", "Number of minutes that the appointment is to take. This can be less than the duration between the start and end times (where actual time of appointment is only an estimate or is a planned appointment request).", 0, java.lang.Integer.MAX_VALUE, minutesDuration));
childrenList.add(new Property("slot", "Reference(Slot)", "The slot that this appointment is filling. If provided then the schedule will not be provided as slots are not recursive, and the start/end values MUST be the same as from the slot.", 0, java.lang.Integer.MAX_VALUE, slot));
childrenList.add(new Property("created", "dateTime", "The date that this appointment was initially created. This could be different to the meta.lastModified value on the initial entry, as this could have been before the resource was created on the FHIR server, and should remain unchanged over the lifespan of the appointment.", 0, java.lang.Integer.MAX_VALUE, created));
childrenList.add(new Property("comment", "string", "Additional comments about the appointment.", 0, java.lang.Integer.MAX_VALUE, comment));
childrenList.add(new Property("participant", "", "List of participants involved in the appointment.", 0, java.lang.Integer.MAX_VALUE, participant));
}
@ -1398,8 +1582,14 @@ public class Appointment extends DomainResource {
this.getIdentifier().add(castToIdentifier(value));
else if (name.equals("status"))
this.status = new AppointmentStatusEnumFactory().fromType(value); // Enumeration<AppointmentStatus>
else if (name.equals("type"))
this.type = castToCodeableConcept(value); // CodeableConcept
else if (name.equals("serviceCategory"))
this.serviceCategory = castToCodeableConcept(value); // CodeableConcept
else if (name.equals("serviceType"))
this.getServiceType().add(castToCodeableConcept(value));
else if (name.equals("specialty"))
this.getSpecialty().add(castToCodeableConcept(value));
else if (name.equals("appointmentType"))
this.appointmentType = castToCodeableConcept(value); // CodeableConcept
else if (name.equals("reason"))
this.reason = castToCodeableConcept(value); // CodeableConcept
else if (name.equals("priority"))
@ -1414,6 +1604,8 @@ public class Appointment extends DomainResource {
this.minutesDuration = castToPositiveInt(value); // PositiveIntType
else if (name.equals("slot"))
this.getSlot().add(castToReference(value));
else if (name.equals("created"))
this.created = castToDateTime(value); // DateTimeType
else if (name.equals("comment"))
this.comment = castToString(value); // StringType
else if (name.equals("participant"))
@ -1430,9 +1622,19 @@ public class Appointment extends DomainResource {
else if (name.equals("status")) {
throw new FHIRException("Cannot call addChild on a primitive type Appointment.status");
}
else if (name.equals("type")) {
this.type = new CodeableConcept();
return this.type;
else if (name.equals("serviceCategory")) {
this.serviceCategory = new CodeableConcept();
return this.serviceCategory;
}
else if (name.equals("serviceType")) {
return addServiceType();
}
else if (name.equals("specialty")) {
return addSpecialty();
}
else if (name.equals("appointmentType")) {
this.appointmentType = new CodeableConcept();
return this.appointmentType;
}
else if (name.equals("reason")) {
this.reason = new CodeableConcept();
@ -1456,6 +1658,9 @@ public class Appointment extends DomainResource {
else if (name.equals("slot")) {
return addSlot();
}
else if (name.equals("created")) {
throw new FHIRException("Cannot call addChild on a primitive type Appointment.created");
}
else if (name.equals("comment")) {
throw new FHIRException("Cannot call addChild on a primitive type Appointment.comment");
}
@ -1480,7 +1685,18 @@ public class Appointment extends DomainResource {
dst.identifier.add(i.copy());
};
dst.status = status == null ? null : status.copy();
dst.type = type == null ? null : type.copy();
dst.serviceCategory = serviceCategory == null ? null : serviceCategory.copy();
if (serviceType != null) {
dst.serviceType = new ArrayList<CodeableConcept>();
for (CodeableConcept i : serviceType)
dst.serviceType.add(i.copy());
};
if (specialty != null) {
dst.specialty = new ArrayList<CodeableConcept>();
for (CodeableConcept i : specialty)
dst.specialty.add(i.copy());
};
dst.appointmentType = appointmentType == null ? null : appointmentType.copy();
dst.reason = reason == null ? null : reason.copy();
dst.priority = priority == null ? null : priority.copy();
dst.description = description == null ? null : description.copy();
@ -1492,6 +1708,7 @@ public class Appointment extends DomainResource {
for (Reference i : slot)
dst.slot.add(i.copy());
};
dst.created = created == null ? null : created.copy();
dst.comment = comment == null ? null : comment.copy();
if (participant != null) {
dst.participant = new ArrayList<AppointmentParticipantComponent>();
@ -1512,11 +1729,12 @@ public class Appointment extends DomainResource {
if (!(other instanceof Appointment))
return false;
Appointment o = (Appointment) other;
return compareDeep(identifier, o.identifier, true) && compareDeep(status, o.status, true) && compareDeep(type, o.type, true)
return compareDeep(identifier, o.identifier, true) && compareDeep(status, o.status, true) && compareDeep(serviceCategory, o.serviceCategory, true)
&& compareDeep(serviceType, o.serviceType, true) && compareDeep(specialty, o.specialty, true) && compareDeep(appointmentType, o.appointmentType, true)
&& compareDeep(reason, o.reason, true) && compareDeep(priority, o.priority, true) && compareDeep(description, o.description, true)
&& compareDeep(start, o.start, true) && compareDeep(end, o.end, true) && compareDeep(minutesDuration, o.minutesDuration, true)
&& compareDeep(slot, o.slot, true) && compareDeep(comment, o.comment, true) && compareDeep(participant, o.participant, true)
;
&& compareDeep(slot, o.slot, true) && compareDeep(created, o.created, true) && compareDeep(comment, o.comment, true)
&& compareDeep(participant, o.participant, true);
}
@Override
@ -1528,16 +1746,13 @@ public class Appointment extends DomainResource {
Appointment o = (Appointment) other;
return compareValues(status, o.status, true) && compareValues(priority, o.priority, true) && compareValues(description, o.description, true)
&& compareValues(start, o.start, true) && compareValues(end, o.end, true) && compareValues(minutesDuration, o.minutesDuration, true)
&& compareValues(comment, o.comment, true);
&& compareValues(created, o.created, true) && compareValues(comment, o.comment, true);
}
public boolean isEmpty() {
return super.isEmpty() && (identifier == null || identifier.isEmpty()) && (status == null || status.isEmpty())
&& (type == null || type.isEmpty()) && (reason == null || reason.isEmpty()) && (priority == null || priority.isEmpty())
&& (description == null || description.isEmpty()) && (start == null || start.isEmpty()) && (end == null || end.isEmpty())
&& (minutesDuration == null || minutesDuration.isEmpty()) && (slot == null || slot.isEmpty())
&& (comment == null || comment.isEmpty()) && (participant == null || participant.isEmpty())
;
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( identifier, status, serviceCategory
, serviceType, specialty, appointmentType, reason, priority, description, start, end
, minutesDuration, slot, created, comment, participant);
}
@Override
@ -1573,7 +1788,7 @@ public class Appointment extends DomainResource {
* Path: <b>Appointment.participant.actor</b><br>
* </p>
*/
@SearchParamDefinition(name="actor", path="Appointment.participant.actor", description="Any one of the individuals participating in the appointment", type="reference" )
@SearchParamDefinition(name="actor", path="Appointment.participant.actor", description="Any one of the individuals participating in the appointment", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Device"), @ca.uhn.fhir.model.api.annotation.Compartment(name="Patient"), @ca.uhn.fhir.model.api.annotation.Compartment(name="Practitioner"), @ca.uhn.fhir.model.api.annotation.Compartment(name="RelatedPerson") } )
public static final String SP_ACTOR = "actor";
/**
* <b>Fluent Client</b> search parameter constant for <b>actor</b>
@ -1683,6 +1898,46 @@ public class Appointment extends DomainResource {
*/
public static final ca.uhn.fhir.model.api.Include INCLUDE_PATIENT = new ca.uhn.fhir.model.api.Include("Appointment:patient").toLocked();
/**
* Search parameter: <b>appointment-type</b>
* <p>
* Description: <b>The style of appointment or patient that has been booked in the slot (not service type)</b><br>
* Type: <b>token</b><br>
* Path: <b>Appointment.appointmentType</b><br>
* </p>
*/
@SearchParamDefinition(name="appointment-type", path="Appointment.appointmentType", description="The style of appointment or patient that has been booked in the slot (not service type)", type="token" )
public static final String SP_APPOINTMENT_TYPE = "appointment-type";
/**
* <b>Fluent Client</b> search parameter constant for <b>appointment-type</b>
* <p>
* Description: <b>The style of appointment or patient that has been booked in the slot (not service type)</b><br>
* Type: <b>token</b><br>
* Path: <b>Appointment.appointmentType</b><br>
* </p>
*/
public static final ca.uhn.fhir.rest.gclient.TokenClientParam APPOINTMENT_TYPE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_APPOINTMENT_TYPE);
/**
* Search parameter: <b>service-type</b>
* <p>
* Description: <b>The specific service that is to be performed during this appointment</b><br>
* Type: <b>token</b><br>
* Path: <b>Appointment.serviceType</b><br>
* </p>
*/
@SearchParamDefinition(name="service-type", path="Appointment.serviceType", description="The specific service that is to be performed during this appointment", type="token" )
public static final String SP_SERVICE_TYPE = "service-type";
/**
* <b>Fluent Client</b> search parameter constant for <b>service-type</b>
* <p>
* Description: <b>The specific service that is to be performed during this appointment</b><br>
* Type: <b>token</b><br>
* Path: <b>Appointment.serviceType</b><br>
* </p>
*/
public static final ca.uhn.fhir.rest.gclient.TokenClientParam SERVICE_TYPE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_SERVICE_TYPE);
/**
* Search parameter: <b>location</b>
* <p>

View File

@ -29,7 +29,7 @@ package org.hl7.fhir.dstu3.model;
*/
// Generated on Sat, Jan 30, 2016 09:18-0500 for FHIR v1.3.0
// Generated on Fri, Apr 1, 2016 17:57-0400 for FHIR v1.4.0
import java.util.*;
@ -39,166 +39,14 @@ import ca.uhn.fhir.model.api.annotation.SearchParamDefinition;
import ca.uhn.fhir.model.api.annotation.Child;
import ca.uhn.fhir.model.api.annotation.Description;
import ca.uhn.fhir.model.api.annotation.Block;
import org.hl7.fhir.dstu3.exceptions.FHIRException;
import org.hl7.fhir.instance.model.api.*;
import org.hl7.fhir.dstu3.exceptions.FHIRException;
/**
* A reply to an appointment request for a patient and/or practitioner(s), such as a confirmation or rejection.
*/
@ResourceDef(name="AppointmentResponse", profile="http://hl7.org/fhir/Profile/AppointmentResponse")
public class AppointmentResponse extends DomainResource {
public enum ParticipantStatus {
/**
* The appointment participant has accepted that they can attend the appointment at the time specified in the AppointmentResponse.
*/
ACCEPTED,
/**
* The appointment participant has declined the appointment.
*/
DECLINED,
/**
* The appointment participant has tentatively accepted the appointment.
*/
TENTATIVE,
/**
* The participant has in-process the appointment.
*/
INPROCESS,
/**
* The participant has completed the appointment.
*/
COMPLETED,
/**
* This is the intitial status of an appointment participant until a participant has replied. It implies that there is no commitment for the appointment.
*/
NEEDSACTION,
/**
* added to help the parsers
*/
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 ("in-process".equals(codeString))
return INPROCESS;
if ("completed".equals(codeString))
return COMPLETED;
if ("needs-action".equals(codeString))
return NEEDSACTION;
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 INPROCESS: return "in-process";
case COMPLETED: return "completed";
case NEEDSACTION: return "needs-action";
default: return "?";
}
}
public String getSystem() {
switch (this) {
case ACCEPTED: return "http://hl7.org/fhir/participantstatus";
case DECLINED: return "http://hl7.org/fhir/participantstatus";
case TENTATIVE: return "http://hl7.org/fhir/participantstatus";
case INPROCESS: return "http://hl7.org/fhir/participantstatus";
case COMPLETED: return "http://hl7.org/fhir/participantstatus";
case NEEDSACTION: return "http://hl7.org/fhir/participantstatus";
default: return "?";
}
}
public String getDefinition() {
switch (this) {
case ACCEPTED: return "The appointment participant has accepted that they can attend the appointment at the time specified in the AppointmentResponse.";
case DECLINED: return "The appointment participant has declined the appointment.";
case TENTATIVE: return "The appointment participant has tentatively accepted the appointment.";
case INPROCESS: return "The participant has in-process the appointment.";
case COMPLETED: return "The participant has completed the appointment.";
case NEEDSACTION: return "This is the intitial status of an appointment participant until a participant has replied. It implies that there is no commitment for the appointment.";
default: return "?";
}
}
public String getDisplay() {
switch (this) {
case ACCEPTED: return "Accepted";
case DECLINED: return "Declined";
case TENTATIVE: return "Tentative";
case INPROCESS: return "In Process";
case COMPLETED: return "Completed";
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 ("in-process".equals(codeString))
return ParticipantStatus.INPROCESS;
if ("completed".equals(codeString))
return ParticipantStatus.COMPLETED;
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 ("in-process".equals(codeString))
return new Enumeration<ParticipantStatus>(this, ParticipantStatus.INPROCESS);
if ("completed".equals(codeString))
return new Enumeration<ParticipantStatus>(this, ParticipantStatus.COMPLETED);
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.INPROCESS)
return "in-process";
if (code == ParticipantStatus.COMPLETED)
return "completed";
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.
*/
@ -256,7 +104,7 @@ public class AppointmentResponse extends DomainResource {
*/
@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." )
protected Enumeration<ParticipantStatus> participantStatus;
protected CodeType participantStatus;
/**
* Additional comments about the appointment.
@ -265,7 +113,7 @@ public class AppointmentResponse extends DomainResource {
@Description(shortDefinition="Additional comments", formalDefinition="Additional comments about the appointment." )
protected StringType comment;
private static final long serialVersionUID = 248548635L;
private static final long serialVersionUID = -1645343660L;
/**
* Constructor
@ -277,7 +125,7 @@ public class AppointmentResponse extends DomainResource {
/**
* Constructor
*/
public AppointmentResponse(Reference appointment, Enumeration<ParticipantStatus> participantStatus) {
public AppointmentResponse(Reference appointment, CodeType participantStatus) {
super();
this.appointment = appointment;
this.participantStatus = participantStatus;
@ -547,12 +395,12 @@ public class AppointmentResponse extends DomainResource {
/**
* @return {@link #participantStatus} (Participation status of the participant. When the status is declined or tentative if the start/end times are different to the appointment, then these times should be interpreted as a requested time change. When the status is accepted, the times can either be the time of the appointment (as a confirmation of the time) or can be empty.). This is the underlying object with id, value and extensions. The accessor "getParticipantStatus" gives direct access to the value
*/
public Enumeration<ParticipantStatus> getParticipantStatusElement() {
public CodeType getParticipantStatusElement() {
if (this.participantStatus == null)
if (Configuration.errorOnAutoCreate())
throw new Error("Attempt to auto-create AppointmentResponse.participantStatus");
else if (Configuration.doAutoCreate())
this.participantStatus = new Enumeration<ParticipantStatus>(new ParticipantStatusEnumFactory()); // bb
this.participantStatus = new CodeType(); // bb
return this.participantStatus;
}
@ -567,7 +415,7 @@ public class AppointmentResponse extends DomainResource {
/**
* @param value {@link #participantStatus} (Participation status of the participant. When the status is declined or tentative if the start/end times are different to the appointment, then these times should be interpreted as a requested time change. When the status is accepted, the times can either be the time of the appointment (as a confirmation of the time) or can be empty.). This is the underlying object with id, value and extensions. The accessor "getParticipantStatus" gives direct access to the value
*/
public AppointmentResponse setParticipantStatusElement(Enumeration<ParticipantStatus> value) {
public AppointmentResponse setParticipantStatusElement(CodeType value) {
this.participantStatus = value;
return this;
}
@ -575,16 +423,16 @@ public class AppointmentResponse extends DomainResource {
/**
* @return Participation status of the participant. When the status is declined or tentative if the start/end times are different to the appointment, then these times should be interpreted as a requested time change. When the status is accepted, the times can either be the time of the appointment (as a confirmation of the time) or can be empty.
*/
public ParticipantStatus getParticipantStatus() {
public String getParticipantStatus() {
return this.participantStatus == null ? null : this.participantStatus.getValue();
}
/**
* @param value Participation status of the participant. When the status is declined or tentative if the start/end times are different to the appointment, then these times should be interpreted as a requested time change. When the status is accepted, the times can either be the time of the appointment (as a confirmation of the time) or can be empty.
*/
public AppointmentResponse setParticipantStatus(ParticipantStatus value) {
public AppointmentResponse setParticipantStatus(String value) {
if (this.participantStatus == null)
this.participantStatus = new Enumeration<ParticipantStatus>(new ParticipantStatusEnumFactory());
this.participantStatus = new CodeType();
this.participantStatus.setValue(value);
return this;
}
@ -665,7 +513,7 @@ public class AppointmentResponse extends DomainResource {
else if (name.equals("actor"))
this.actor = castToReference(value); // Reference
else if (name.equals("participantStatus"))
this.participantStatus = new ParticipantStatusEnumFactory().fromType(value); // Enumeration<ParticipantStatus>
this.participantStatus = castToCode(value); // CodeType
else if (name.equals("comment"))
this.comment = castToString(value); // StringType
else
@ -760,10 +608,8 @@ public class AppointmentResponse extends DomainResource {
}
public boolean isEmpty() {
return super.isEmpty() && (identifier == null || identifier.isEmpty()) && (appointment == null || appointment.isEmpty())
&& (start == null || start.isEmpty()) && (end == null || end.isEmpty()) && (participantType == null || participantType.isEmpty())
&& (actor == null || actor.isEmpty()) && (participantStatus == null || participantStatus.isEmpty())
&& (comment == null || comment.isEmpty());
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( identifier, appointment, start
, end, participantType, actor, participantStatus, comment);
}
@Override
@ -779,7 +625,7 @@ public class AppointmentResponse extends DomainResource {
* Path: <b>AppointmentResponse.actor</b><br>
* </p>
*/
@SearchParamDefinition(name="actor", path="AppointmentResponse.actor", description="The Person, Location/HealthcareService or Device that this appointment response replies for", type="reference" )
@SearchParamDefinition(name="actor", path="AppointmentResponse.actor", description="The Person, Location/HealthcareService or Device that this appointment response replies for", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Device"), @ca.uhn.fhir.model.api.annotation.Compartment(name="Patient"), @ca.uhn.fhir.model.api.annotation.Compartment(name="Practitioner"), @ca.uhn.fhir.model.api.annotation.Compartment(name="RelatedPerson") } )
public static final String SP_ACTOR = "actor";
/**
* <b>Fluent Client</b> search parameter constant for <b>actor</b>

View File

@ -29,20 +29,18 @@ package org.hl7.fhir.dstu3.model;
*/
// Generated on Sat, Jan 30, 2016 09:18-0500 for FHIR v1.3.0
// Generated on Fri, Apr 1, 2016 17:57-0400 for FHIR v1.4.0
import java.util.*;
import org.hl7.fhir.utilities.Utilities;
import org.hl7.fhir.dstu3.model.Enumerations.*;
import ca.uhn.fhir.model.api.annotation.Child;
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.dstu3.exceptions.FHIRException;
import org.hl7.fhir.dstu3.model.Enumerations.*;
import org.hl7.fhir.instance.model.api.*;
import org.hl7.fhir.dstu3.exceptions.FHIRException;
/**
* For referring to data content defined in other formats.
*/
@ -66,7 +64,7 @@ public class Attachment extends Type implements ICompositeType {
/**
* The actual data of the attachment - a sequence of bytes. In XML, represented using base64.
*/
@Child(name = "data", type = {Base64BinaryType.class}, order=2, min=0, max=1, modifier=false, summary=true)
@Child(name = "data", type = {Base64BinaryType.class}, order=2, min=0, max=1, modifier=false, summary=false)
@Description(shortDefinition="Data inline, base64ed", formalDefinition="The actual data of the attachment - a sequence of bytes. In XML, represented using base64." )
protected Base64BinaryType data;
@ -616,10 +614,8 @@ public class Attachment extends Type implements ICompositeType {
}
public boolean isEmpty() {
return super.isEmpty() && (contentType == null || contentType.isEmpty()) && (language == null || language.isEmpty())
&& (data == null || data.isEmpty()) && (url == null || url.isEmpty()) && (size == null || size.isEmpty())
&& (hash == null || hash.isEmpty()) && (title == null || title.isEmpty()) && (creation == null || creation.isEmpty())
;
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( contentType, language, data, url
, size, hash, title, creation);
}

View File

@ -29,21 +29,19 @@ package org.hl7.fhir.dstu3.model;
*/
// Generated on Sat, Jan 30, 2016 09:18-0500 for FHIR v1.3.0
// Generated on Fri, Apr 1, 2016 17:57-0400 for FHIR v1.4.0
import java.util.*;
import org.hl7.fhir.utilities.Utilities;
import org.hl7.fhir.dstu3.model.Enumerations.*;
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.Description;
import ca.uhn.fhir.model.api.annotation.Block;
import org.hl7.fhir.dstu3.exceptions.FHIRException;
import org.hl7.fhir.dstu3.model.Enumerations.*;
import org.hl7.fhir.instance.model.api.*;
import org.hl7.fhir.dstu3.exceptions.FHIRException;
/**
* A record of an event made for purposes of maintaining a security log. Typical uses include detection of intrusion attempts and monitoring for inappropriate usage.
*/
@ -442,10 +440,10 @@ public class AuditEvent extends DomainResource {
@Block()
public static class AuditEventAgentComponent extends BackboneElement implements IBaseBackboneElement {
/**
* Specification of the role(s) the user plays when performing the event. Usually the codes used in this element are local codes defined by the role-based access control security system used in the local context.
* Specification of the role(s) the user plays when performing the event. Usually the codes used in this element are local codes defined by the access control security system (e.g. RBAC, ABAC) used in the local context.
*/
@Child(name = "role", type = {CodeableConcept.class}, order=1, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
@Description(shortDefinition="User roles (e.g. local RBAC codes)", formalDefinition="Specification of the role(s) the user plays when performing the event. Usually the codes used in this element are local codes defined by the role-based access control security system used in the local context." )
@Description(shortDefinition="Agent role in the event", formalDefinition="Specification of the role(s) the user plays when performing the event. Usually the codes used in this element are local codes defined by the access control security system (e.g. RBAC, ABAC) used in the local context." )
protected List<CodeableConcept> role;
/**
@ -475,10 +473,10 @@ public class AuditEvent extends DomainResource {
protected StringType altId;
/**
* Human-meaningful name for the user.
* Human-meaningful name for the agent.
*/
@Child(name = "name", type = {StringType.class}, order=5, min=0, max=1, modifier=false, summary=false)
@Description(shortDefinition="Human-meaningful name for the user", formalDefinition="Human-meaningful name for the user." )
@Description(shortDefinition="Human-meaningful name for the agent", formalDefinition="Human-meaningful name for the agent." )
protected StringType name;
/**
@ -546,7 +544,7 @@ public class AuditEvent extends DomainResource {
}
/**
* @return {@link #role} (Specification of the role(s) the user plays when performing the event. Usually the codes used in this element are local codes defined by the role-based access control security system used in the local context.)
* @return {@link #role} (Specification of the role(s) the user plays when performing the event. Usually the codes used in this element are local codes defined by the access control security system (e.g. RBAC, ABAC) used in the local context.)
*/
public List<CodeableConcept> getRole() {
if (this.role == null)
@ -564,7 +562,7 @@ public class AuditEvent extends DomainResource {
}
/**
* @return {@link #role} (Specification of the role(s) the user plays when performing the event. Usually the codes used in this element are local codes defined by the role-based access control security system used in the local context.)
* @return {@link #role} (Specification of the role(s) the user plays when performing the event. Usually the codes used in this element are local codes defined by the access control security system (e.g. RBAC, ABAC) used in the local context.)
*/
// syntactic sugar
public CodeableConcept addRole() { //3
@ -698,7 +696,7 @@ public class AuditEvent extends DomainResource {
}
/**
* @return {@link #name} (Human-meaningful name for the user.). This is the underlying object with id, value and extensions. The accessor "getName" gives direct access to the value
* @return {@link #name} (Human-meaningful name for the agent.). This is the underlying object with id, value and extensions. The accessor "getName" gives direct access to the value
*/
public StringType getNameElement() {
if (this.name == null)
@ -718,7 +716,7 @@ public class AuditEvent extends DomainResource {
}
/**
* @param value {@link #name} (Human-meaningful name for the user.). This is the underlying object with id, value and extensions. The accessor "getName" gives direct access to the value
* @param value {@link #name} (Human-meaningful name for the agent.). This is the underlying object with id, value and extensions. The accessor "getName" gives direct access to the value
*/
public AuditEventAgentComponent setNameElement(StringType value) {
this.name = value;
@ -726,14 +724,14 @@ public class AuditEvent extends DomainResource {
}
/**
* @return Human-meaningful name for the user.
* @return Human-meaningful name for the agent.
*/
public String getName() {
return this.name == null ? null : this.name.getValue();
}
/**
* @param value Human-meaningful name for the user.
* @param value Human-meaningful name for the agent.
*/
public AuditEventAgentComponent setName(String value) {
if (Utilities.noString(value))
@ -979,11 +977,11 @@ public class AuditEvent extends DomainResource {
protected void listChildren(List<Property> childrenList) {
super.listChildren(childrenList);
childrenList.add(new Property("role", "CodeableConcept", "Specification of the role(s) the user plays when performing the event. Usually the codes used in this element are local codes defined by the role-based access control security system used in the local context.", 0, java.lang.Integer.MAX_VALUE, role));
childrenList.add(new Property("role", "CodeableConcept", "Specification of the role(s) the user plays when performing the event. Usually the codes used in this element are local codes defined by the access control security system (e.g. RBAC, ABAC) used in the local context.", 0, java.lang.Integer.MAX_VALUE, role));
childrenList.add(new Property("reference", "Reference(Practitioner|Organization|Device|Patient|RelatedPerson)", "Direct reference to a resource that identifies the agent.", 0, java.lang.Integer.MAX_VALUE, reference));
childrenList.add(new Property("userId", "Identifier", "Unique identifier for the user actively participating in the event.", 0, java.lang.Integer.MAX_VALUE, userId));
childrenList.add(new Property("altId", "string", "Alternative agent Identifier. For a human, this should be a user identifier text string from authentication system. This identifier would be one known to a common authentication system (e.g. single sign-on), if available.", 0, java.lang.Integer.MAX_VALUE, altId));
childrenList.add(new Property("name", "string", "Human-meaningful name for the user.", 0, java.lang.Integer.MAX_VALUE, name));
childrenList.add(new Property("name", "string", "Human-meaningful name for the agent.", 0, java.lang.Integer.MAX_VALUE, name));
childrenList.add(new Property("requestor", "boolean", "Indicator that the user is or is not the requestor, or initiator, for the event being audited.", 0, java.lang.Integer.MAX_VALUE, requestor));
childrenList.add(new Property("location", "Reference(Location)", "Where the event occurred.", 0, java.lang.Integer.MAX_VALUE, location));
childrenList.add(new Property("policy", "uri", "The policy or plan that authorized the activity being recorded. Typically, a single activity may have multiple applicable policies, such as patient consent, guarantor funding, etc. The policy would also indicate the security token used.", 0, java.lang.Integer.MAX_VALUE, policy));
@ -1118,11 +1116,8 @@ public class AuditEvent extends DomainResource {
}
public boolean isEmpty() {
return super.isEmpty() && (role == null || role.isEmpty()) && (reference == null || reference.isEmpty())
&& (userId == null || userId.isEmpty()) && (altId == null || altId.isEmpty()) && (name == null || name.isEmpty())
&& (requestor == null || requestor.isEmpty()) && (location == null || location.isEmpty())
&& (policy == null || policy.isEmpty()) && (media == null || media.isEmpty()) && (network == null || network.isEmpty())
&& (purposeOfUse == null || purposeOfUse.isEmpty());
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( role, reference, userId, altId
, name, requestor, location, policy, media, network, purposeOfUse);
}
public String fhirType() {
@ -1312,8 +1307,7 @@ public class AuditEvent extends DomainResource {
}
public boolean isEmpty() {
return super.isEmpty() && (address == null || address.isEmpty()) && (type == null || type.isEmpty())
;
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( address, type);
}
public String fhirType() {
@ -1546,8 +1540,7 @@ public class AuditEvent extends DomainResource {
}
public boolean isEmpty() {
return super.isEmpty() && (site == null || site.isEmpty()) && (identifier == null || identifier.isEmpty())
&& (type == null || type.isEmpty());
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( site, identifier, type);
}
public String fhirType() {
@ -2135,11 +2128,8 @@ public class AuditEvent extends DomainResource {
}
public boolean isEmpty() {
return super.isEmpty() && (identifier == null || identifier.isEmpty()) && (reference == null || reference.isEmpty())
&& (type == null || type.isEmpty()) && (role == null || role.isEmpty()) && (lifecycle == null || lifecycle.isEmpty())
&& (securityLabel == null || securityLabel.isEmpty()) && (name == null || name.isEmpty())
&& (description == null || description.isEmpty()) && (query == null || query.isEmpty()) && (detail == null || detail.isEmpty())
;
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( identifier, reference, type, role
, lifecycle, securityLabel, name, description, query, detail);
}
public String fhirType() {
@ -2330,8 +2320,7 @@ public class AuditEvent extends DomainResource {
}
public boolean isEmpty() {
return super.isEmpty() && (type == null || type.isEmpty()) && (value == null || value.isEmpty())
;
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( type, value);
}
public String fhirType() {
@ -2391,10 +2380,10 @@ public class AuditEvent extends DomainResource {
protected List<Coding> purposeOfEvent;
/**
* A person, a hardware device or software process.
* An actor taking an active role in the event or activity that is logged.
*/
@Child(name = "agent", type = {}, order=7, min=1, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
@Description(shortDefinition="A person, a hardware device or software process", formalDefinition="A person, a hardware device or software process." )
@Description(shortDefinition="Actor involved in the event", formalDefinition="An actor taking an active role in the event or activity that is logged." )
protected List<AuditEventAgentComponent> agent;
/**
@ -2727,7 +2716,7 @@ public class AuditEvent extends DomainResource {
}
/**
* @return {@link #agent} (A person, a hardware device or software process.)
* @return {@link #agent} (An actor taking an active role in the event or activity that is logged.)
*/
public List<AuditEventAgentComponent> getAgent() {
if (this.agent == null)
@ -2745,7 +2734,7 @@ public class AuditEvent extends DomainResource {
}
/**
* @return {@link #agent} (A person, a hardware device or software process.)
* @return {@link #agent} (An actor taking an active role in the event or activity that is logged.)
*/
// syntactic sugar
public AuditEventAgentComponent addAgent() { //3
@ -2839,7 +2828,7 @@ public class AuditEvent extends DomainResource {
childrenList.add(new Property("outcome", "code", "Indicates whether the event succeeded or failed.", 0, java.lang.Integer.MAX_VALUE, outcome));
childrenList.add(new Property("outcomeDesc", "string", "A free text description of the outcome of the event.", 0, java.lang.Integer.MAX_VALUE, outcomeDesc));
childrenList.add(new Property("purposeOfEvent", "Coding", "The purposeOfUse (reason) that was used during the event being recorded.", 0, java.lang.Integer.MAX_VALUE, purposeOfEvent));
childrenList.add(new Property("agent", "", "A person, a hardware device or software process.", 0, java.lang.Integer.MAX_VALUE, agent));
childrenList.add(new Property("agent", "", "An actor taking an active role in the event or activity that is logged.", 0, java.lang.Integer.MAX_VALUE, agent));
childrenList.add(new Property("source", "", "Application systems and processes.", 0, java.lang.Integer.MAX_VALUE, source));
childrenList.add(new Property("entity", "", "Specific instances of data or objects that have been accessed.", 0, java.lang.Integer.MAX_VALUE, entity));
}
@ -2974,11 +2963,8 @@ public class AuditEvent extends DomainResource {
}
public boolean isEmpty() {
return super.isEmpty() && (type == null || type.isEmpty()) && (subtype == null || subtype.isEmpty())
&& (action == null || action.isEmpty()) && (recorded == null || recorded.isEmpty()) && (outcome == null || outcome.isEmpty())
&& (outcomeDesc == null || outcomeDesc.isEmpty()) && (purposeOfEvent == null || purposeOfEvent.isEmpty())
&& (agent == null || agent.isEmpty()) && (source == null || source.isEmpty()) && (entity == null || entity.isEmpty())
;
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( type, subtype, action, recorded
, outcome, outcomeDesc, purposeOfEvent, agent, source, entity);
}
@Override
@ -3006,6 +2992,52 @@ public class AuditEvent extends DomainResource {
*/
public static final ca.uhn.fhir.rest.gclient.DateClientParam DATE = new ca.uhn.fhir.rest.gclient.DateClientParam(SP_DATE);
/**
* Search parameter: <b>entity-type</b>
* <p>
* Description: <b>Type of object involved</b><br>
* Type: <b>token</b><br>
* Path: <b>AuditEvent.entity.type</b><br>
* </p>
*/
@SearchParamDefinition(name="entity-type", path="AuditEvent.entity.type", description="Type of object involved", type="token" )
public static final String SP_ENTITY_TYPE = "entity-type";
/**
* <b>Fluent Client</b> search parameter constant for <b>entity-type</b>
* <p>
* Description: <b>Type of object involved</b><br>
* Type: <b>token</b><br>
* Path: <b>AuditEvent.entity.type</b><br>
* </p>
*/
public static final ca.uhn.fhir.rest.gclient.TokenClientParam ENTITY_TYPE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_ENTITY_TYPE);
/**
* Search parameter: <b>agent</b>
* <p>
* Description: <b>Direct reference to resource</b><br>
* Type: <b>reference</b><br>
* Path: <b>AuditEvent.agent.reference</b><br>
* </p>
*/
@SearchParamDefinition(name="agent", path="AuditEvent.agent.reference", description="Direct reference to resource", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Device"), @ca.uhn.fhir.model.api.annotation.Compartment(name="Practitioner") } )
public static final String SP_AGENT = "agent";
/**
* <b>Fluent Client</b> search parameter constant for <b>agent</b>
* <p>
* Description: <b>Direct reference to resource</b><br>
* Type: <b>reference</b><br>
* Path: <b>AuditEvent.agent.reference</b><br>
* </p>
*/
public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam AGENT = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_AGENT);
/**
* Constant for fluent queries to be used to add include statements. Specifies
* the path value of "<b>AuditEvent:agent</b>".
*/
public static final ca.uhn.fhir.model.api.Include INCLUDE_AGENT = new ca.uhn.fhir.model.api.Include("AuditEvent:agent").toLocked();
/**
* Search parameter: <b>address</b>
* <p>
@ -3086,58 +3118,6 @@ public class AuditEvent extends DomainResource {
*/
public static final ca.uhn.fhir.rest.gclient.TokenClientParam ALTID = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_ALTID);
/**
* Search parameter: <b>participant</b>
* <p>
* Description: <b>Direct reference to resource</b><br>
* Type: <b>reference</b><br>
* Path: <b>AuditEvent.agent.reference</b><br>
* </p>
*/
@SearchParamDefinition(name="participant", path="AuditEvent.agent.reference", description="Direct reference to resource", type="reference" )
public static final String SP_PARTICIPANT = "participant";
/**
* <b>Fluent Client</b> search parameter constant for <b>participant</b>
* <p>
* Description: <b>Direct reference to resource</b><br>
* Type: <b>reference</b><br>
* Path: <b>AuditEvent.agent.reference</b><br>
* </p>
*/
public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PARTICIPANT = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_PARTICIPANT);
/**
* Constant for fluent queries to be used to add include statements. Specifies
* the path value of "<b>AuditEvent:participant</b>".
*/
public static final ca.uhn.fhir.model.api.Include INCLUDE_PARTICIPANT = new ca.uhn.fhir.model.api.Include("AuditEvent:participant").toLocked();
/**
* Search parameter: <b>reference</b>
* <p>
* Description: <b>Specific instance of resource (e.g. versioned)</b><br>
* Type: <b>reference</b><br>
* Path: <b>AuditEvent.entity.reference</b><br>
* </p>
*/
@SearchParamDefinition(name="reference", path="AuditEvent.entity.reference", description="Specific instance of resource (e.g. versioned)", type="reference" )
public static final String SP_REFERENCE = "reference";
/**
* <b>Fluent Client</b> search parameter constant for <b>reference</b>
* <p>
* Description: <b>Specific instance of resource (e.g. versioned)</b><br>
* Type: <b>reference</b><br>
* Path: <b>AuditEvent.entity.reference</b><br>
* </p>
*/
public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam REFERENCE = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_REFERENCE);
/**
* Constant for fluent queries to be used to add include statements. Specifies
* the path value of "<b>AuditEvent:reference</b>".
*/
public static final ca.uhn.fhir.model.api.Include INCLUDE_REFERENCE = new ca.uhn.fhir.model.api.Include("AuditEvent:reference").toLocked();
/**
* Search parameter: <b>site</b>
* <p>
@ -3158,6 +3138,46 @@ public class AuditEvent extends DomainResource {
*/
public static final ca.uhn.fhir.rest.gclient.TokenClientParam SITE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_SITE);
/**
* Search parameter: <b>agent-name</b>
* <p>
* Description: <b>Human-meaningful name for the agent</b><br>
* Type: <b>string</b><br>
* Path: <b>AuditEvent.agent.name</b><br>
* </p>
*/
@SearchParamDefinition(name="agent-name", path="AuditEvent.agent.name", description="Human-meaningful name for the agent", type="string" )
public static final String SP_AGENT_NAME = "agent-name";
/**
* <b>Fluent Client</b> search parameter constant for <b>agent-name</b>
* <p>
* Description: <b>Human-meaningful name for the agent</b><br>
* Type: <b>string</b><br>
* Path: <b>AuditEvent.agent.name</b><br>
* </p>
*/
public static final ca.uhn.fhir.rest.gclient.StringClientParam AGENT_NAME = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_AGENT_NAME);
/**
* Search parameter: <b>entity-name</b>
* <p>
* Description: <b>Descriptor for entity</b><br>
* Type: <b>string</b><br>
* Path: <b>AuditEvent.entity.name</b><br>
* </p>
*/
@SearchParamDefinition(name="entity-name", path="AuditEvent.entity.name", description="Descriptor for entity", type="string" )
public static final String SP_ENTITY_NAME = "entity-name";
/**
* <b>Fluent Client</b> search parameter constant for <b>entity-name</b>
* <p>
* Description: <b>Descriptor for entity</b><br>
* Type: <b>string</b><br>
* Path: <b>AuditEvent.entity.name</b><br>
* </p>
*/
public static final ca.uhn.fhir.rest.gclient.StringClientParam ENTITY_NAME = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_ENTITY_NAME);
/**
* Search parameter: <b>subtype</b>
* <p>
@ -3178,26 +3198,6 @@ public class AuditEvent extends DomainResource {
*/
public static final ca.uhn.fhir.rest.gclient.TokenClientParam SUBTYPE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_SUBTYPE);
/**
* Search parameter: <b>identity</b>
* <p>
* Description: <b>Specific instance of object (e.g. versioned)</b><br>
* Type: <b>token</b><br>
* Path: <b>AuditEvent.entity.identifier</b><br>
* </p>
*/
@SearchParamDefinition(name="identity", path="AuditEvent.entity.identifier", description="Specific instance of object (e.g. versioned)", type="token" )
public static final String SP_IDENTITY = "identity";
/**
* <b>Fluent Client</b> search parameter constant for <b>identity</b>
* <p>
* Description: <b>Specific instance of object (e.g. versioned)</b><br>
* Type: <b>token</b><br>
* Path: <b>AuditEvent.entity.identifier</b><br>
* </p>
*/
public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTITY = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_IDENTITY);
/**
* Search parameter: <b>patient</b>
* <p>
@ -3206,7 +3206,7 @@ public class AuditEvent extends DomainResource {
* Path: <b>AuditEvent.agent.reference, AuditEvent.entity.reference</b><br>
* </p>
*/
@SearchParamDefinition(name="patient", path="AuditEvent.agent.reference | AuditEvent.entity.reference", description="Direct reference to resource", type="reference" )
@SearchParamDefinition(name="patient", path="AuditEvent.agent.reference | AuditEvent.entity.reference", description="Direct reference to resource", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Patient") } )
public static final String SP_PATIENT = "patient";
/**
* <b>Fluent Client</b> search parameter constant for <b>patient</b>
@ -3224,46 +3224,6 @@ public class AuditEvent extends DomainResource {
*/
public static final ca.uhn.fhir.model.api.Include INCLUDE_PATIENT = new ca.uhn.fhir.model.api.Include("AuditEvent:patient").toLocked();
/**
* Search parameter: <b>object-type</b>
* <p>
* Description: <b>Type of object involved</b><br>
* Type: <b>token</b><br>
* Path: <b>AuditEvent.entity.type</b><br>
* </p>
*/
@SearchParamDefinition(name="object-type", path="AuditEvent.entity.type", description="Type of object involved", type="token" )
public static final String SP_OBJECT_TYPE = "object-type";
/**
* <b>Fluent Client</b> search parameter constant for <b>object-type</b>
* <p>
* Description: <b>Type of object involved</b><br>
* Type: <b>token</b><br>
* Path: <b>AuditEvent.entity.type</b><br>
* </p>
*/
public static final ca.uhn.fhir.rest.gclient.TokenClientParam OBJECT_TYPE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_OBJECT_TYPE);
/**
* Search parameter: <b>name</b>
* <p>
* Description: <b>Human-meaningful name for the user</b><br>
* Type: <b>string</b><br>
* Path: <b>AuditEvent.agent.name</b><br>
* </p>
*/
@SearchParamDefinition(name="name", path="AuditEvent.agent.name", description="Human-meaningful name for the user", type="string" )
public static final String SP_NAME = "name";
/**
* <b>Fluent Client</b> search parameter constant for <b>name</b>
* <p>
* Description: <b>Human-meaningful name for the user</b><br>
* Type: <b>string</b><br>
* Path: <b>AuditEvent.agent.name</b><br>
* </p>
*/
public static final ca.uhn.fhir.rest.gclient.StringClientParam NAME = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_NAME);
/**
* Search parameter: <b>action</b>
* <p>
@ -3305,24 +3265,50 @@ public class AuditEvent extends DomainResource {
public static final ca.uhn.fhir.rest.gclient.TokenClientParam USER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_USER);
/**
* Search parameter: <b>desc</b>
* Search parameter: <b>entity</b>
* <p>
* Description: <b>Descriptor for entity</b><br>
* Type: <b>string</b><br>
* Path: <b>AuditEvent.entity.name</b><br>
* Description: <b>Specific instance of resource (e.g. versioned)</b><br>
* Type: <b>reference</b><br>
* Path: <b>AuditEvent.entity.reference</b><br>
* </p>
*/
@SearchParamDefinition(name="desc", path="AuditEvent.entity.name", description="Descriptor for entity", type="string" )
public static final String SP_DESC = "desc";
@SearchParamDefinition(name="entity", path="AuditEvent.entity.reference", description="Specific instance of resource (e.g. versioned)", type="reference" )
public static final String SP_ENTITY = "entity";
/**
* <b>Fluent Client</b> search parameter constant for <b>desc</b>
* <b>Fluent Client</b> search parameter constant for <b>entity</b>
* <p>
* Description: <b>Descriptor for entity</b><br>
* Type: <b>string</b><br>
* Path: <b>AuditEvent.entity.name</b><br>
* Description: <b>Specific instance of resource (e.g. versioned)</b><br>
* Type: <b>reference</b><br>
* Path: <b>AuditEvent.entity.reference</b><br>
* </p>
*/
public static final ca.uhn.fhir.rest.gclient.StringClientParam DESC = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_DESC);
public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam ENTITY = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_ENTITY);
/**
* Constant for fluent queries to be used to add include statements. Specifies
* the path value of "<b>AuditEvent:entity</b>".
*/
public static final ca.uhn.fhir.model.api.Include INCLUDE_ENTITY = new ca.uhn.fhir.model.api.Include("AuditEvent:entity").toLocked();
/**
* Search parameter: <b>entity-id</b>
* <p>
* Description: <b>Specific instance of object (e.g. versioned)</b><br>
* Type: <b>token</b><br>
* Path: <b>AuditEvent.entity.identifier</b><br>
* </p>
*/
@SearchParamDefinition(name="entity-id", path="AuditEvent.entity.identifier", description="Specific instance of object (e.g. versioned)", type="token" )
public static final String SP_ENTITY_ID = "entity-id";
/**
* <b>Fluent Client</b> search parameter constant for <b>entity-id</b>
* <p>
* Description: <b>Specific instance of object (e.g. versioned)</b><br>
* Type: <b>token</b><br>
* Path: <b>AuditEvent.entity.identifier</b><br>
* </p>
*/
public static final ca.uhn.fhir.rest.gclient.TokenClientParam ENTITY_ID = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_ENTITY_ID);
/**
* Search parameter: <b>policy</b>

View File

@ -29,7 +29,7 @@ package org.hl7.fhir.dstu3.model;
*/
// Generated on Sat, Jan 30, 2016 09:18-0500 for FHIR v1.3.0
// Generated on Fri, Apr 1, 2016 17:57-0400 for FHIR v1.4.0
import java.util.*;
@ -37,9 +37,8 @@ import ca.uhn.fhir.model.api.annotation.Child;
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.dstu3.exceptions.FHIRException;
import org.hl7.fhir.instance.model.api.*;
import org.hl7.fhir.dstu3.exceptions.FHIRException;
/**
* Base definition for all elements that are defined inside a resource - but not those in a data type.
*/
@ -159,7 +158,7 @@ public abstract class BackboneElement extends Element implements IBaseBackboneEl
}
public boolean isEmpty() {
return super.isEmpty() && (modifierExtension == null || modifierExtension.isEmpty());
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( modifierExtension);
}

View File

@ -68,19 +68,16 @@ private Map<String, Object> userData;
return (Integer) getUserData(name);
}
@Override
public boolean hasFormatComment() {
return (formatCommentsPre != null && !formatCommentsPre.isEmpty()) || (formatCommentsPost != null && !formatCommentsPost.isEmpty());
}
@Override
public List<String> getFormatCommentsPre() {
if (formatCommentsPre == null)
formatCommentsPre = new ArrayList<String>();
return formatCommentsPre;
}
@Override
public List<String> getFormatCommentsPost() {
if (formatCommentsPost == null)
formatCommentsPost = new ArrayList<String>();
@ -489,7 +486,7 @@ private Map<String, Object> userData;
else
throw new FHIRException("Unable to convert a "+b.getClass().getName()+" to a Meta");
}
public Extension castToExtension(Base b) throws FHIRException {
if (b instanceof Extension)
return (Extension) b;
@ -518,7 +515,42 @@ private Map<String, Object> userData;
else
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;
else
throw new FHIRException("Unable to convert a "+b.getClass().getName()+" to a DataRequirement");
}
public ParameterDefinition castToParameterDefinition(Base b) throws FHIRException {
if (b instanceof ParameterDefinition)
return (ParameterDefinition) b;
else
throw new FHIRException("Unable to convert a "+b.getClass().getName()+" to a ParameterDefinition");
}
public TriggerDefinition castToTriggerDefinition(Base b) throws FHIRException {
if (b instanceof TriggerDefinition)
return (TriggerDefinition) b;
else
throw new FHIRException("Unable to convert a "+b.getClass().getName()+" to a TriggerDefinition");
}
protected boolean isMetadataBased() {
return false;
}

View File

@ -38,13 +38,11 @@ public abstract class BaseNarrative extends Type implements INarrative {
public abstract Enumeration<?> getStatusElement();
@Override
public INarrative setStatusAsString(String theString) {
getStatusElement().setValueAsString(theString);
return this;
}
@Override
public String getStatusAsString() {
return getStatusElement().getValueAsString();
}

View File

@ -24,11 +24,11 @@ public abstract class BaseResource extends Base implements IAnyResource, IElemen
return this;
}
public abstract BaseResource setIdElement(IdType theIdType);
@Override
public FhirVersionEnum getStructureFhirVersionEnum() {
return FhirVersionEnum.DSTU3;
}
public abstract BaseResource setIdElement(IdType theIdType);
}

View File

@ -29,7 +29,7 @@ package org.hl7.fhir.dstu3.model;
*/
// Generated on Sat, Jan 30, 2016 09:18-0500 for FHIR v1.3.0
// Generated on Fri, Apr 1, 2016 17:57-0400 for FHIR v1.4.0
import java.util.*;
@ -38,9 +38,8 @@ import ca.uhn.fhir.model.api.annotation.SearchParamDefinition;
import ca.uhn.fhir.model.api.annotation.Child;
import ca.uhn.fhir.model.api.annotation.Description;
import ca.uhn.fhir.model.api.annotation.Block;
import org.hl7.fhir.dstu3.exceptions.FHIRException;
import org.hl7.fhir.instance.model.api.*;
import org.hl7.fhir.dstu3.exceptions.FHIRException;
/**
* Basic is used for handling concepts not yet defined in FHIR, narrative-only resources that don't map to an existing resource, and custom resources not appropriate for inclusion in the FHIR specification.
*/
@ -395,9 +394,8 @@ public class Basic extends DomainResource {
}
public boolean isEmpty() {
return super.isEmpty() && (identifier == null || identifier.isEmpty()) && (code == null || code.isEmpty())
&& (subject == null || subject.isEmpty()) && (created == null || created.isEmpty()) && (author == null || author.isEmpty())
;
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( identifier, code, subject, created
, author);
}
@Override
@ -499,7 +497,7 @@ public class Basic extends DomainResource {
* Path: <b>Basic.subject</b><br>
* </p>
*/
@SearchParamDefinition(name="patient", path="Basic.subject", description="Identifies the focus of this resource", type="reference" )
@SearchParamDefinition(name="patient", path="Basic.subject", description="Identifies the focus of this resource", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Patient") } )
public static final String SP_PATIENT = "patient";
/**
* <b>Fluent Client</b> search parameter constant for <b>patient</b>
@ -525,7 +523,7 @@ public class Basic extends DomainResource {
* Path: <b>Basic.author</b><br>
* </p>
*/
@SearchParamDefinition(name="author", path="Basic.author", description="Who created", type="reference" )
@SearchParamDefinition(name="author", path="Basic.author", description="Who created", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Patient"), @ca.uhn.fhir.model.api.annotation.Compartment(name="Practitioner"), @ca.uhn.fhir.model.api.annotation.Compartment(name="RelatedPerson") } )
public static final String SP_AUTHOR = "author";
/**
* <b>Fluent Client</b> search parameter constant for <b>author</b>

View File

@ -29,21 +29,19 @@ package org.hl7.fhir.dstu3.model;
*/
// Generated on Sat, Jan 30, 2016 09:18-0500 for FHIR v1.3.0
// Generated on Fri, Apr 1, 2016 17:57-0400 for FHIR v1.4.0
import java.util.*;
import org.hl7.fhir.utilities.Utilities;
import org.hl7.fhir.dstu3.model.Enumerations.*;
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.Description;
import ca.uhn.fhir.model.api.annotation.Block;
import org.hl7.fhir.dstu3.exceptions.FHIRException;
import org.hl7.fhir.dstu3.model.Enumerations.*;
import org.hl7.fhir.instance.model.api.*;
import org.hl7.fhir.dstu3.exceptions.FHIRException;
/**
* A binary resource can contain any content, whether text, image, pdf, zip archive, etc.
*/
@ -238,8 +236,7 @@ public class Binary extends BaseBinary implements IBaseBinary {
}
public boolean isEmpty() {
return super.isEmpty() && (contentType == null || contentType.isEmpty()) && (content == null || content.isEmpty())
;
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( contentType, content);
}
@Override

View File

@ -29,7 +29,7 @@ package org.hl7.fhir.dstu3.model;
*/
// Generated on Sat, Jan 30, 2016 09:18-0500 for FHIR v1.3.0
// Generated on Fri, Apr 1, 2016 17:57-0400 for FHIR v1.4.0
import java.util.*;
@ -39,9 +39,8 @@ import ca.uhn.fhir.model.api.annotation.SearchParamDefinition;
import ca.uhn.fhir.model.api.annotation.Child;
import ca.uhn.fhir.model.api.annotation.Description;
import ca.uhn.fhir.model.api.annotation.Block;
import org.hl7.fhir.dstu3.exceptions.FHIRException;
import org.hl7.fhir.instance.model.api.*;
import org.hl7.fhir.dstu3.exceptions.FHIRException;
/**
* Record details about the anatomical location of a specimen or body part. This resource may be used when a coded concept does not provide the necessary detail needed for the use case.
*/
@ -459,9 +458,8 @@ public class BodySite extends DomainResource {
}
public boolean isEmpty() {
return super.isEmpty() && (patient == null || patient.isEmpty()) && (identifier == null || identifier.isEmpty())
&& (code == null || code.isEmpty()) && (modifier == null || modifier.isEmpty()) && (description == null || description.isEmpty())
&& (image == null || image.isEmpty());
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( patient, identifier, code, modifier
, description, image);
}
@Override
@ -517,7 +515,7 @@ public class BodySite extends DomainResource {
* Path: <b>BodySite.patient</b><br>
* </p>
*/
@SearchParamDefinition(name="patient", path="BodySite.patient", description="Patient to whom bodysite belongs", type="reference" )
@SearchParamDefinition(name="patient", path="BodySite.patient", description="Patient to whom bodysite belongs", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Patient") } )
public static final String SP_PATIENT = "patient";
/**
* <b>Fluent Client</b> search parameter constant for <b>patient</b>

View File

@ -29,7 +29,7 @@ package org.hl7.fhir.dstu3.model;
*/
// Generated on Sat, Jan 30, 2016 09:18-0500 for FHIR v1.3.0
// Generated on Fri, Apr 1, 2016 17:57-0400 for FHIR v1.4.0
import java.util.*;
@ -40,9 +40,8 @@ import ca.uhn.fhir.model.api.annotation.SearchParamDefinition;
import ca.uhn.fhir.model.api.annotation.Child;
import ca.uhn.fhir.model.api.annotation.Description;
import ca.uhn.fhir.model.api.annotation.Block;
import org.hl7.fhir.dstu3.exceptions.FHIRException;
import org.hl7.fhir.instance.model.api.*;
import org.hl7.fhir.dstu3.exceptions.FHIRException;
/**
* A container for a collection of resources.
*/
@ -651,8 +650,7 @@ public class Bundle extends Resource implements IBaseBundle {
}
public boolean isEmpty() {
return super.isEmpty() && (relation == null || relation.isEmpty()) && (url == null || url.isEmpty())
;
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( relation, url);
}
public String fhirType() {
@ -672,10 +670,12 @@ public class Bundle extends Resource implements IBaseBundle {
protected List<BundleLinkComponent> link;
/**
* The Absolute URL for the resource. This must be provided for all resources. The fullUrl SHALL not disagree with the id in the resource. The fullUrl is a version independent reference to the resource.
* The Absolute URL for the resource. The fullUrl SHALL not disagree with the id in the resource. The fullUrl is a version independent reference to the resource. The fullUrl element SHALL have a value except that:
* fullUrl can be empty on a POST (although it does not need to when specifying a temporary id for reference in the bundle)
* Results from operations might involve resources that are not identified.
*/
@Child(name = "fullUrl", type = {UriType.class}, order=2, min=0, max=1, modifier=false, summary=true)
@Description(shortDefinition="Absolute URL for resource (server address, or UUID/OID)", formalDefinition="The Absolute URL for the resource. This must be provided for all resources. The fullUrl SHALL not disagree with the id in the resource. The fullUrl is a version independent reference to the resource." )
@Description(shortDefinition="Absolute URL for resource (server address, or UUID/OID)", formalDefinition="The Absolute URL for the resource. The fullUrl SHALL not disagree with the id in the resource. The fullUrl is a version independent reference to the resource. The fullUrl element SHALL have a value except that: \n* fullUrl can be empty on a POST (although it does not need to when specifying a temporary id for reference in the bundle)\n* Results from operations might involve resources that are not identified." )
protected UriType fullUrl;
/**
@ -756,7 +756,9 @@ public class Bundle extends Resource implements IBaseBundle {
}
/**
* @return {@link #fullUrl} (The Absolute URL for the resource. This must be provided for all resources. The fullUrl SHALL not disagree with the id in the resource. The fullUrl is a version independent reference to the resource.). This is the underlying object with id, value and extensions. The accessor "getFullUrl" gives direct access to the value
* @return {@link #fullUrl} (The Absolute URL for the resource. The fullUrl SHALL not disagree with the id in the resource. The fullUrl is a version independent reference to the resource. The fullUrl element SHALL have a value except that:
* fullUrl can be empty on a POST (although it does not need to when specifying a temporary id for reference in the bundle)
* Results from operations might involve resources that are not identified.). This is the underlying object with id, value and extensions. The accessor "getFullUrl" gives direct access to the value
*/
public UriType getFullUrlElement() {
if (this.fullUrl == null)
@ -776,7 +778,9 @@ public class Bundle extends Resource implements IBaseBundle {
}
/**
* @param value {@link #fullUrl} (The Absolute URL for the resource. This must be provided for all resources. The fullUrl SHALL not disagree with the id in the resource. The fullUrl is a version independent reference to the resource.). This is the underlying object with id, value and extensions. The accessor "getFullUrl" gives direct access to the value
* @param value {@link #fullUrl} (The Absolute URL for the resource. The fullUrl SHALL not disagree with the id in the resource. The fullUrl is a version independent reference to the resource. The fullUrl element SHALL have a value except that:
* fullUrl can be empty on a POST (although it does not need to when specifying a temporary id for reference in the bundle)
* Results from operations might involve resources that are not identified.). This is the underlying object with id, value and extensions. The accessor "getFullUrl" gives direct access to the value
*/
public BundleEntryComponent setFullUrlElement(UriType value) {
this.fullUrl = value;
@ -784,14 +788,18 @@ public class Bundle extends Resource implements IBaseBundle {
}
/**
* @return The Absolute URL for the resource. This must be provided for all resources. The fullUrl SHALL not disagree with the id in the resource. The fullUrl is a version independent reference to the resource.
* @return The Absolute URL for the resource. The fullUrl SHALL not disagree with the id in the resource. The fullUrl is a version independent reference to the resource. The fullUrl element SHALL have a value except that:
* fullUrl can be empty on a POST (although it does not need to when specifying a temporary id for reference in the bundle)
* Results from operations might involve resources that are not identified.
*/
public String getFullUrl() {
return this.fullUrl == null ? null : this.fullUrl.getValue();
}
/**
* @param value The Absolute URL for the resource. This must be provided for all resources. The fullUrl SHALL not disagree with the id in the resource. The fullUrl is a version independent reference to the resource.
* @param value The Absolute URL for the resource. The fullUrl SHALL not disagree with the id in the resource. The fullUrl is a version independent reference to the resource. The fullUrl element SHALL have a value except that:
* fullUrl can be empty on a POST (although it does not need to when specifying a temporary id for reference in the bundle)
* Results from operations might involve resources that are not identified.
*/
public BundleEntryComponent setFullUrl(String value) {
if (Utilities.noString(value))
@ -945,7 +953,7 @@ public class Bundle extends Resource implements IBaseBundle {
protected void listChildren(List<Property> childrenList) {
super.listChildren(childrenList);
childrenList.add(new Property("link", "@Bundle.link", "A series of links that provide context to this entry.", 0, java.lang.Integer.MAX_VALUE, link));
childrenList.add(new Property("fullUrl", "uri", "The Absolute URL for the resource. This must be provided for all resources. The fullUrl SHALL not disagree with the id in the resource. The fullUrl is a version independent reference to the resource.", 0, java.lang.Integer.MAX_VALUE, fullUrl));
childrenList.add(new Property("fullUrl", "uri", "The Absolute URL for the resource. The fullUrl SHALL not disagree with the id in the resource. The fullUrl is a version independent reference to the resource. The fullUrl element SHALL have a value except that: \n* fullUrl can be empty on a POST (although it does not need to when specifying a temporary id for reference in the bundle)\n* Results from operations might involve resources that are not identified.", 0, java.lang.Integer.MAX_VALUE, fullUrl));
childrenList.add(new Property("resource", "Resource", "The Resources for the entry.", 0, java.lang.Integer.MAX_VALUE, resource));
childrenList.add(new Property("search", "", "Information about the search process that lead to the creation of this entry.", 0, java.lang.Integer.MAX_VALUE, search));
childrenList.add(new Property("request", "", "Additional information about how this entry should be processed as part of a transaction.", 0, java.lang.Integer.MAX_VALUE, request));
@ -1036,9 +1044,8 @@ public class Bundle extends Resource implements IBaseBundle {
}
public boolean isEmpty() {
return super.isEmpty() && (link == null || link.isEmpty()) && (fullUrl == null || fullUrl.isEmpty())
&& (resource == null || resource.isEmpty()) && (search == null || search.isEmpty()) && (request == null || request.isEmpty())
&& (response == null || response.isEmpty());
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( link, fullUrl, resource, search
, request, response);
}
public String fhirType() {
@ -1246,8 +1253,7 @@ public class Bundle extends Resource implements IBaseBundle {
}
public boolean isEmpty() {
return super.isEmpty() && (mode == null || mode.isEmpty()) && (score == null || score.isEmpty())
;
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( mode, score);
}
public String fhirType() {
@ -1260,10 +1266,10 @@ public class Bundle extends Resource implements IBaseBundle {
@Block()
public static class BundleEntryRequestComponent extends BackboneElement implements IBaseBackboneElement {
/**
* The HTTP verb for this entry in either a update history, or a transaction/ transaction response.
* The HTTP verb for this entry in either a change history, or a transaction/ transaction response.
*/
@Child(name = "method", type = {CodeType.class}, order=1, min=1, max=1, modifier=false, summary=true)
@Description(shortDefinition="GET | POST | PUT | DELETE", formalDefinition="The HTTP verb for this entry in either a update history, or a transaction/ transaction response." )
@Description(shortDefinition="GET | POST | PUT | DELETE", formalDefinition="The HTTP verb for this entry in either a change history, or a transaction/ transaction response." )
protected Enumeration<HTTPVerb> method;
/**
@ -1320,7 +1326,7 @@ public class Bundle extends Resource implements IBaseBundle {
}
/**
* @return {@link #method} (The HTTP verb for this entry in either a update history, or a transaction/ transaction response.). This is the underlying object with id, value and extensions. The accessor "getMethod" gives direct access to the value
* @return {@link #method} (The HTTP verb for this entry in either a change history, or a transaction/ transaction response.). This is the underlying object with id, value and extensions. The accessor "getMethod" gives direct access to the value
*/
public Enumeration<HTTPVerb> getMethodElement() {
if (this.method == null)
@ -1340,7 +1346,7 @@ public class Bundle extends Resource implements IBaseBundle {
}
/**
* @param value {@link #method} (The HTTP verb for this entry in either a update history, or a transaction/ transaction response.). This is the underlying object with id, value and extensions. The accessor "getMethod" gives direct access to the value
* @param value {@link #method} (The HTTP verb for this entry in either a change history, or a transaction/ transaction response.). This is the underlying object with id, value and extensions. The accessor "getMethod" gives direct access to the value
*/
public BundleEntryRequestComponent setMethodElement(Enumeration<HTTPVerb> value) {
this.method = value;
@ -1348,14 +1354,14 @@ public class Bundle extends Resource implements IBaseBundle {
}
/**
* @return The HTTP verb for this entry in either a update history, or a transaction/ transaction response.
* @return The HTTP verb for this entry in either a change history, or a transaction/ transaction response.
*/
public HTTPVerb getMethod() {
return this.method == null ? null : this.method.getValue();
}
/**
* @param value The HTTP verb for this entry in either a update history, or a transaction/ transaction response.
* @param value The HTTP verb for this entry in either a change history, or a transaction/ transaction response.
*/
public BundleEntryRequestComponent setMethod(HTTPVerb value) {
if (this.method == null)
@ -1607,7 +1613,7 @@ public class Bundle extends Resource implements IBaseBundle {
protected void listChildren(List<Property> childrenList) {
super.listChildren(childrenList);
childrenList.add(new Property("method", "code", "The HTTP verb for this entry in either a update history, or a transaction/ transaction response.", 0, java.lang.Integer.MAX_VALUE, method));
childrenList.add(new Property("method", "code", "The HTTP verb for this entry in either a change history, or a transaction/ transaction response.", 0, java.lang.Integer.MAX_VALUE, method));
childrenList.add(new Property("url", "uri", "The URL for this entry, relative to the root (the address to which the request is posted).", 0, java.lang.Integer.MAX_VALUE, url));
childrenList.add(new Property("ifNoneMatch", "string", "If the ETag values match, return a 304 Not modified status. See the API documentation for [\"Conditional Read\"](http.html#cread).", 0, java.lang.Integer.MAX_VALUE, ifNoneMatch));
childrenList.add(new Property("ifModifiedSince", "instant", "Only perform the operation if the last updated date matches. See the API documentation for [\"Conditional Read\"](http.html#cread).", 0, java.lang.Integer.MAX_VALUE, ifModifiedSince));
@ -1694,10 +1700,8 @@ public class Bundle extends Resource implements IBaseBundle {
}
public boolean isEmpty() {
return super.isEmpty() && (method == null || method.isEmpty()) && (url == null || url.isEmpty())
&& (ifNoneMatch == null || ifNoneMatch.isEmpty()) && (ifModifiedSince == null || ifModifiedSince.isEmpty())
&& (ifMatch == null || ifMatch.isEmpty()) && (ifNoneExist == null || ifNoneExist.isEmpty())
;
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( method, url, ifNoneMatch, ifModifiedSince
, ifMatch, ifNoneExist);
}
public String fhirType() {
@ -1710,10 +1714,10 @@ public class Bundle extends Resource implements IBaseBundle {
@Block()
public static class BundleEntryResponseComponent extends BackboneElement implements IBaseBackboneElement {
/**
* The status code returned by processing this entry.
* The status code returned by processing this entry. The status SHALL start with a 3 digit HTTP code (e.g. 404) and may contain the standard HTTP description associated with the status code.
*/
@Child(name = "status", type = {StringType.class}, order=1, min=1, max=1, modifier=false, summary=true)
@Description(shortDefinition="Status return code for entry", formalDefinition="The status code returned by processing this entry." )
@Description(shortDefinition="Status response code (text optional)", formalDefinition="The status code returned by processing this entry. The status SHALL start with a 3 digit HTTP code (e.g. 404) and may contain the standard HTTP description associated with the status code." )
protected StringType status;
/**
@ -1755,7 +1759,7 @@ public class Bundle extends Resource implements IBaseBundle {
}
/**
* @return {@link #status} (The status code returned by processing this entry.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value
* @return {@link #status} (The status code returned by processing this entry. The status SHALL start with a 3 digit HTTP code (e.g. 404) and may contain the standard HTTP description associated with the status code.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value
*/
public StringType getStatusElement() {
if (this.status == null)
@ -1775,7 +1779,7 @@ public class Bundle extends Resource implements IBaseBundle {
}
/**
* @param value {@link #status} (The status code returned by processing this entry.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value
* @param value {@link #status} (The status code returned by processing this entry. The status SHALL start with a 3 digit HTTP code (e.g. 404) and may contain the standard HTTP description associated with the status code.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value
*/
public BundleEntryResponseComponent setStatusElement(StringType value) {
this.status = value;
@ -1783,14 +1787,14 @@ public class Bundle extends Resource implements IBaseBundle {
}
/**
* @return The status code returned by processing this entry.
* @return The status code returned by processing this entry. The status SHALL start with a 3 digit HTTP code (e.g. 404) and may contain the standard HTTP description associated with the status code.
*/
public String getStatus() {
return this.status == null ? null : this.status.getValue();
}
/**
* @param value The status code returned by processing this entry.
* @param value The status code returned by processing this entry. The status SHALL start with a 3 digit HTTP code (e.g. 404) and may contain the standard HTTP description associated with the status code.
*/
public BundleEntryResponseComponent setStatus(String value) {
if (this.status == null)
@ -1948,7 +1952,7 @@ public class Bundle extends Resource implements IBaseBundle {
protected void listChildren(List<Property> childrenList) {
super.listChildren(childrenList);
childrenList.add(new Property("status", "string", "The status code returned by processing this entry.", 0, java.lang.Integer.MAX_VALUE, status));
childrenList.add(new Property("status", "string", "The status code returned by processing this entry. The status SHALL start with a 3 digit HTTP code (e.g. 404) and may contain the standard HTTP description associated with the status code.", 0, java.lang.Integer.MAX_VALUE, status));
childrenList.add(new Property("location", "uri", "The location header created by processing this operation.", 0, java.lang.Integer.MAX_VALUE, location));
childrenList.add(new Property("etag", "string", "The etag for the resource, it the operation for the entry produced a versioned resource.", 0, java.lang.Integer.MAX_VALUE, etag));
childrenList.add(new Property("lastModified", "instant", "The date/time that the resource was modified on the server.", 0, java.lang.Integer.MAX_VALUE, lastModified));
@ -2019,8 +2023,8 @@ public class Bundle extends Resource implements IBaseBundle {
}
public boolean isEmpty() {
return super.isEmpty() && (status == null || status.isEmpty()) && (location == null || location.isEmpty())
&& (etag == null || etag.isEmpty()) && (lastModified == null || lastModified.isEmpty());
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( status, location, etag, lastModified
);
}
public String fhirType() {
@ -2420,9 +2424,8 @@ public class Bundle extends Resource implements IBaseBundle {
}
public boolean isEmpty() {
return super.isEmpty() && (type == null || type.isEmpty()) && (total == null || total.isEmpty())
&& (link == null || link.isEmpty()) && (entry == null || entry.isEmpty()) && (signature == null || signature.isEmpty())
;
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( type, total, link, entry, signature
);
}
@Override
@ -2438,7 +2441,7 @@ public class Bundle extends Resource implements IBaseBundle {
* Path: <b>Bundle.entry.resource(0)</b><br>
* </p>
*/
@SearchParamDefinition(name="composition", path="Bundle.entry.resource.item(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" )
@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" )
public static final String SP_COMPOSITION = "composition";
/**
* <b>Fluent Client</b> search parameter constant for <b>composition</b>
@ -2484,7 +2487,7 @@ public class Bundle extends Resource implements IBaseBundle {
* Path: <b>Bundle.entry.resource(0)</b><br>
* </p>
*/
@SearchParamDefinition(name="message", path="Bundle.entry.resource.item(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" )
@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" )
public static final String SP_MESSAGE = "message";
/**
* <b>Fluent Client</b> search parameter constant for <b>message</b>

View File

@ -29,7 +29,7 @@ package org.hl7.fhir.dstu3.model;
*/
// Generated on Sat, Jan 30, 2016 09:18-0500 for FHIR v1.3.0
// Generated on Fri, Apr 1, 2016 17:57-0400 for FHIR v1.4.0
import java.util.*;
@ -39,9 +39,8 @@ import ca.uhn.fhir.model.api.annotation.SearchParamDefinition;
import ca.uhn.fhir.model.api.annotation.Child;
import ca.uhn.fhir.model.api.annotation.Description;
import ca.uhn.fhir.model.api.annotation.Block;
import org.hl7.fhir.dstu3.exceptions.FHIRException;
import org.hl7.fhir.instance.model.api.*;
import org.hl7.fhir.dstu3.exceptions.FHIRException;
/**
* Describes the intention of how one or more practitioners intend to deliver care for a particular patient, group or community for a period of time, possibly limited to care for a specific condition or set of conditions.
*/
@ -626,8 +625,7 @@ public class CarePlan extends DomainResource {
}
public boolean isEmpty() {
return super.isEmpty() && (code == null || code.isEmpty()) && (plan == null || plan.isEmpty())
;
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( code, plan);
}
public String fhirType() {
@ -789,8 +787,7 @@ public class CarePlan extends DomainResource {
}
public boolean isEmpty() {
return super.isEmpty() && (role == null || role.isEmpty()) && (member == null || member.isEmpty())
;
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( role, member);
}
public String fhirType() {
@ -1083,8 +1080,8 @@ public class CarePlan extends DomainResource {
}
public boolean isEmpty() {
return super.isEmpty() && (actionResulting == null || actionResulting.isEmpty()) && (progress == null || progress.isEmpty())
&& (reference == null || reference.isEmpty()) && (detail == null || detail.isEmpty());
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( actionResulting, progress, reference
, detail);
}
public String fhirType() {
@ -2049,14 +2046,9 @@ public class CarePlan extends DomainResource {
}
public boolean isEmpty() {
return super.isEmpty() && (category == null || category.isEmpty()) && (code == null || code.isEmpty())
&& (reasonCode == null || reasonCode.isEmpty()) && (reasonReference == null || reasonReference.isEmpty())
&& (goal == null || goal.isEmpty()) && (status == null || status.isEmpty()) && (statusReason == null || statusReason.isEmpty())
&& (prohibited == null || prohibited.isEmpty()) && (scheduled == null || scheduled.isEmpty())
&& (location == null || location.isEmpty()) && (performer == null || performer.isEmpty())
&& (product == null || product.isEmpty()) && (dailyAmount == null || dailyAmount.isEmpty())
&& (quantity == null || quantity.isEmpty()) && (description == null || description.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);
}
public String fhirType() {
@ -3124,13 +3116,9 @@ public class CarePlan extends DomainResource {
}
public boolean isEmpty() {
return super.isEmpty() && (identifier == null || identifier.isEmpty()) && (subject == null || subject.isEmpty())
&& (status == null || status.isEmpty()) && (context == null || context.isEmpty()) && (period == null || period.isEmpty())
&& (author == null || author.isEmpty()) && (modified == null || modified.isEmpty()) && (category == null || category.isEmpty())
&& (description == null || description.isEmpty()) && (addresses == null || addresses.isEmpty())
&& (support == null || support.isEmpty()) && (relatedPlan == null || relatedPlan.isEmpty())
&& (participant == null || participant.isEmpty()) && (goal == null || goal.isEmpty()) && (activity == null || activity.isEmpty())
&& (note == null || note.isEmpty());
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( identifier, subject, status, context
, period, author, modified, category, description, addresses, support, relatedPlan, participant
, goal, activity, note);
}
@Override
@ -3232,7 +3220,7 @@ public class CarePlan extends DomainResource {
* Path: <b>CarePlan.activity.detail.performer</b><br>
* </p>
*/
@SearchParamDefinition(name="performer", path="CarePlan.activity.detail.performer", description="Matches if the practitioner is listed as a performer in any of the \"simple\" activities. (For performers of the detailed activities, chain through the activitydetail search parameter.)", type="reference" )
@SearchParamDefinition(name="performer", path="CarePlan.activity.detail.performer", description="Matches if the practitioner is listed as a performer in any of the \"simple\" activities. (For performers of the detailed activities, chain through the activitydetail search parameter.)", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Patient"), @ca.uhn.fhir.model.api.annotation.Compartment(name="Practitioner"), @ca.uhn.fhir.model.api.annotation.Compartment(name="RelatedPerson") } )
public static final String SP_PERFORMER = "performer";
/**
* <b>Fluent Client</b> search parameter constant for <b>performer</b>
@ -3330,7 +3318,7 @@ public class CarePlan extends DomainResource {
* Path: <b>CarePlan.participant.member</b><br>
* </p>
*/
@SearchParamDefinition(name="participant", path="CarePlan.participant.member", description="Who is involved", type="reference" )
@SearchParamDefinition(name="participant", path="CarePlan.participant.member", description="Who is involved", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Patient"), @ca.uhn.fhir.model.api.annotation.Compartment(name="Practitioner"), @ca.uhn.fhir.model.api.annotation.Compartment(name="RelatedPerson") } )
public static final String SP_PARTICIPANT = "participant";
/**
* <b>Fluent Client</b> search parameter constant for <b>participant</b>
@ -3428,7 +3416,7 @@ public class CarePlan extends DomainResource {
* Path: <b>CarePlan.subject</b><br>
* </p>
*/
@SearchParamDefinition(name="patient", path="CarePlan.subject", description="Who care plan is for", type="reference" )
@SearchParamDefinition(name="patient", path="CarePlan.subject", description="Who care plan is for", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Patient") } )
public static final String SP_PATIENT = "patient";
/**
* <b>Fluent Client</b> search parameter constant for <b>patient</b>

View File

@ -0,0 +1,923 @@
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 Fri, Apr 1, 2016 17:57-0400 for FHIR v1.4.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.Description;
import ca.uhn.fhir.model.api.annotation.Block;
import org.hl7.fhir.instance.model.api.*;
import org.hl7.fhir.dstu3.exceptions.FHIRException;
/**
* The Care Team includes all the people and organizations who plan to participate in the coordination and delivery of care for a patient.
*/
@ResourceDef(name="CareTeam", profile="http://hl7.org/fhir/Profile/CareTeam")
public class CareTeam extends DomainResource {
@Block()
public static class CareTeamParticipantComponent extends BackboneElement implements IBaseBackboneElement {
/**
* Indicates specific responsibility of an individual within the care team, such as "Primary physician", "Team coordinator", "Caregiver", etc.
*/
@Child(name = "role", type = {CodeableConcept.class}, order=1, min=0, max=1, modifier=false, summary=true)
@Description(shortDefinition="Type of involvement", formalDefinition="Indicates specific responsibility of an individual within the care team, such as \"Primary physician\", \"Team coordinator\", \"Caregiver\", etc." )
protected CodeableConcept role;
/**
* The specific person or organization who is participating/expected to participate in the care team.
*/
@Child(name = "member", type = {Practitioner.class, RelatedPerson.class, Patient.class, Organization.class}, order=2, min=0, max=1, modifier=false, summary=true)
@Description(shortDefinition="Who is involved", formalDefinition="The specific person or organization who is participating/expected to participate in the care team." )
protected Reference member;
/**
* The actual object that is the target of the reference (The specific person or organization who is participating/expected to participate in the care team.)
*/
protected Resource memberTarget;
/**
* Indicates when the specific member or organization did (or is intended to) come into effect and end.
*/
@Child(name = "period", type = {Period.class}, order=3, min=0, max=1, modifier=false, summary=false)
@Description(shortDefinition="Time period of participant", formalDefinition="Indicates when the specific member or organization did (or is intended to) come into effect and end." )
protected Period period;
private static final long serialVersionUID = -1416929603L;
/**
* Constructor
*/
public CareTeamParticipantComponent() {
super();
}
/**
* @return {@link #role} (Indicates specific responsibility of an individual within the care team, such as "Primary physician", "Team coordinator", "Caregiver", etc.)
*/
public CodeableConcept getRole() {
if (this.role == null)
if (Configuration.errorOnAutoCreate())
throw new Error("Attempt to auto-create CareTeamParticipantComponent.role");
else if (Configuration.doAutoCreate())
this.role = new CodeableConcept(); // cc
return this.role;
}
public boolean hasRole() {
return this.role != null && !this.role.isEmpty();
}
/**
* @param value {@link #role} (Indicates specific responsibility of an individual within the care team, such as "Primary physician", "Team coordinator", "Caregiver", etc.)
*/
public CareTeamParticipantComponent setRole(CodeableConcept value) {
this.role = value;
return this;
}
/**
* @return {@link #member} (The specific person or organization who is participating/expected to participate in the care team.)
*/
public Reference getMember() {
if (this.member == null)
if (Configuration.errorOnAutoCreate())
throw new Error("Attempt to auto-create CareTeamParticipantComponent.member");
else if (Configuration.doAutoCreate())
this.member = new Reference(); // cc
return this.member;
}
public boolean hasMember() {
return this.member != null && !this.member.isEmpty();
}
/**
* @param value {@link #member} (The specific person or organization who is participating/expected to participate in the care team.)
*/
public CareTeamParticipantComponent setMember(Reference value) {
this.member = value;
return this;
}
/**
* @return {@link #member} The actual object that is the target of the reference. The reference library doesn't populate this, but you can use it to hold the resource if you resolve it. (The specific person or organization who is participating/expected to participate in the care team.)
*/
public Resource getMemberTarget() {
return this.memberTarget;
}
/**
* @param value {@link #member} The actual object that is the target of the reference. The reference library doesn't use these, but you can use it to hold the resource if you resolve it. (The specific person or organization who is participating/expected to participate in the care team.)
*/
public CareTeamParticipantComponent setMemberTarget(Resource value) {
this.memberTarget = value;
return this;
}
/**
* @return {@link #period} (Indicates when the specific member or organization did (or is intended to) come into effect and end.)
*/
public Period getPeriod() {
if (this.period == null)
if (Configuration.errorOnAutoCreate())
throw new Error("Attempt to auto-create CareTeamParticipantComponent.period");
else if (Configuration.doAutoCreate())
this.period = new Period(); // cc
return this.period;
}
public boolean hasPeriod() {
return this.period != null && !this.period.isEmpty();
}
/**
* @param value {@link #period} (Indicates when the specific member or organization did (or is intended to) come into effect and end.)
*/
public CareTeamParticipantComponent setPeriod(Period value) {
this.period = value;
return this;
}
protected void listChildren(List<Property> childrenList) {
super.listChildren(childrenList);
childrenList.add(new Property("role", "CodeableConcept", "Indicates specific responsibility of an individual within the care team, such as \"Primary physician\", \"Team coordinator\", \"Caregiver\", etc.", 0, java.lang.Integer.MAX_VALUE, role));
childrenList.add(new Property("member", "Reference(Practitioner|RelatedPerson|Patient|Organization)", "The specific person or organization who is participating/expected to participate in the care team.", 0, java.lang.Integer.MAX_VALUE, member));
childrenList.add(new Property("period", "Period", "Indicates when the specific member or organization did (or is intended to) come into effect and end.", 0, java.lang.Integer.MAX_VALUE, period));
}
@Override
public void setProperty(String name, Base value) throws FHIRException {
if (name.equals("role"))
this.role = castToCodeableConcept(value); // CodeableConcept
else if (name.equals("member"))
this.member = castToReference(value); // Reference
else if (name.equals("period"))
this.period = castToPeriod(value); // Period
else
super.setProperty(name, value);
}
@Override
public Base addChild(String name) throws FHIRException {
if (name.equals("role")) {
this.role = new CodeableConcept();
return this.role;
}
else if (name.equals("member")) {
this.member = new Reference();
return this.member;
}
else if (name.equals("period")) {
this.period = new Period();
return this.period;
}
else
return super.addChild(name);
}
public CareTeamParticipantComponent copy() {
CareTeamParticipantComponent dst = new CareTeamParticipantComponent();
copyValues(dst);
dst.role = role == null ? null : role.copy();
dst.member = member == null ? null : member.copy();
dst.period = period == null ? null : period.copy();
return dst;
}
@Override
public boolean equalsDeep(Base other) {
if (!super.equalsDeep(other))
return false;
if (!(other instanceof CareTeamParticipantComponent))
return false;
CareTeamParticipantComponent o = (CareTeamParticipantComponent) other;
return compareDeep(role, o.role, true) && compareDeep(member, o.member, true) && compareDeep(period, o.period, true)
;
}
@Override
public boolean equalsShallow(Base other) {
if (!super.equalsShallow(other))
return false;
if (!(other instanceof CareTeamParticipantComponent))
return false;
CareTeamParticipantComponent o = (CareTeamParticipantComponent) other;
return true;
}
public boolean isEmpty() {
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( role, member, period);
}
public String fhirType() {
return "CareTeam.participant";
}
}
/**
* This records identifiers associated with this care team 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.
*/
@Child(name = "identifier", type = {Identifier.class}, order=0, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
@Description(shortDefinition="External Ids for this team", formalDefinition="This records identifiers associated with this care team 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." )
protected List<Identifier> identifier;
/**
* Indicates whether the care team is currently active, suspended, inactive, or entered in error.
*/
@Child(name = "status", type = {CodeableConcept.class}, order=1, min=0, max=1, modifier=true, summary=true)
@Description(shortDefinition="active | suspended | inactive | entered in error", formalDefinition="Indicates whether the care team is currently active, suspended, inactive, or entered in error." )
protected CodeableConcept status;
/**
* Identifies what kind of team. This is to support differentiation between multiple co-existing teams, such as care plan team, episode of care team, longitudinal care team.
*/
@Child(name = "type", type = {CodeableConcept.class}, order=2, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
@Description(shortDefinition="Type of team", formalDefinition="Identifies what kind of team. This is to support differentiation between multiple co-existing teams, such as care plan team, episode of care team, longitudinal care team." )
protected List<CodeableConcept> type;
/**
* Name of the care team.
*/
@Child(name = "name", type = {StringType.class}, order=3, min=0, max=1, modifier=false, summary=true)
@Description(shortDefinition="Name of the team, such as crisis assessment team", formalDefinition="Name of the care team." )
protected StringType name;
/**
* Identifies the patient or group whose intended care is handled by the team.
*/
@Child(name = "subject", type = {Patient.class, Group.class}, order=4, min=0, max=1, modifier=false, summary=true)
@Description(shortDefinition="Who care team is for", formalDefinition="Identifies the patient or group whose intended care is handled by the team." )
protected Reference subject;
/**
* The actual object that is the target of the reference (Identifies the patient or group whose intended care is handled by the team.)
*/
protected Resource subjectTarget;
/**
* Indicates when the team did (or is intended to) come into effect and end.
*/
@Child(name = "period", type = {Period.class}, order=5, min=0, max=1, modifier=false, summary=true)
@Description(shortDefinition="Time period team covers", formalDefinition="Indicates when the team did (or is intended to) come into effect and end." )
protected Period period;
/**
* Identifies all people and organizations who are expected to be involved in the care team.
*/
@Child(name = "participant", type = {}, order=6, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
@Description(shortDefinition="Members of the team", formalDefinition="Identifies all people and organizations who are expected to be involved in the care team." )
protected List<CareTeamParticipantComponent> participant;
/**
* The organization responsible for the care team.
*/
@Child(name = "managingOrganization", type = {Organization.class}, order=7, min=0, max=1, modifier=false, summary=true)
@Description(shortDefinition="Organization responsible for the care team", formalDefinition="The organization responsible for the care team." )
protected Reference managingOrganization;
/**
* The actual object that is the target of the reference (The organization responsible for the care team.)
*/
protected Organization managingOrganizationTarget;
private static final long serialVersionUID = -917605050L;
/**
* Constructor
*/
public CareTeam() {
super();
}
/**
* @return {@link #identifier} (This records identifiers associated with this care team 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.)
*/
public List<Identifier> getIdentifier() {
if (this.identifier == null)
this.identifier = new ArrayList<Identifier>();
return this.identifier;
}
public boolean hasIdentifier() {
if (this.identifier == null)
return false;
for (Identifier item : this.identifier)
if (!item.isEmpty())
return true;
return false;
}
/**
* @return {@link #identifier} (This records identifiers associated with this care team 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.)
*/
// syntactic sugar
public Identifier addIdentifier() { //3
Identifier t = new Identifier();
if (this.identifier == null)
this.identifier = new ArrayList<Identifier>();
this.identifier.add(t);
return t;
}
// syntactic sugar
public CareTeam addIdentifier(Identifier t) { //3
if (t == null)
return this;
if (this.identifier == null)
this.identifier = new ArrayList<Identifier>();
this.identifier.add(t);
return this;
}
/**
* @return {@link #status} (Indicates whether the care team is currently active, suspended, inactive, or entered in error.)
*/
public CodeableConcept getStatus() {
if (this.status == null)
if (Configuration.errorOnAutoCreate())
throw new Error("Attempt to auto-create CareTeam.status");
else if (Configuration.doAutoCreate())
this.status = new CodeableConcept(); // cc
return this.status;
}
public boolean hasStatus() {
return this.status != null && !this.status.isEmpty();
}
/**
* @param value {@link #status} (Indicates whether the care team is currently active, suspended, inactive, or entered in error.)
*/
public CareTeam setStatus(CodeableConcept value) {
this.status = value;
return this;
}
/**
* @return {@link #type} (Identifies what kind of team. This is to support differentiation between multiple co-existing teams, such as care plan team, episode of care team, longitudinal care team.)
*/
public List<CodeableConcept> getType() {
if (this.type == null)
this.type = new ArrayList<CodeableConcept>();
return this.type;
}
public boolean hasType() {
if (this.type == null)
return false;
for (CodeableConcept item : this.type)
if (!item.isEmpty())
return true;
return false;
}
/**
* @return {@link #type} (Identifies what kind of team. This is to support differentiation between multiple co-existing teams, such as care plan team, episode of care team, longitudinal care team.)
*/
// syntactic sugar
public CodeableConcept addType() { //3
CodeableConcept t = new CodeableConcept();
if (this.type == null)
this.type = new ArrayList<CodeableConcept>();
this.type.add(t);
return t;
}
// syntactic sugar
public CareTeam addType(CodeableConcept t) { //3
if (t == null)
return this;
if (this.type == null)
this.type = new ArrayList<CodeableConcept>();
this.type.add(t);
return this;
}
/**
* @return {@link #name} (Name of the care team.). This is the underlying object with id, value and extensions. The accessor "getName" gives direct access to the value
*/
public StringType getNameElement() {
if (this.name == null)
if (Configuration.errorOnAutoCreate())
throw new Error("Attempt to auto-create CareTeam.name");
else if (Configuration.doAutoCreate())
this.name = new StringType(); // bb
return this.name;
}
public boolean hasNameElement() {
return this.name != null && !this.name.isEmpty();
}
public boolean hasName() {
return this.name != null && !this.name.isEmpty();
}
/**
* @param value {@link #name} (Name of the care team.). This is the underlying object with id, value and extensions. The accessor "getName" gives direct access to the value
*/
public CareTeam setNameElement(StringType value) {
this.name = value;
return this;
}
/**
* @return Name of the care team.
*/
public String getName() {
return this.name == null ? null : this.name.getValue();
}
/**
* @param value Name of the care team.
*/
public CareTeam setName(String value) {
if (Utilities.noString(value))
this.name = null;
else {
if (this.name == null)
this.name = new StringType();
this.name.setValue(value);
}
return this;
}
/**
* @return {@link #subject} (Identifies the patient or group whose intended care is handled by the team.)
*/
public Reference getSubject() {
if (this.subject == null)
if (Configuration.errorOnAutoCreate())
throw new Error("Attempt to auto-create CareTeam.subject");
else if (Configuration.doAutoCreate())
this.subject = new Reference(); // cc
return this.subject;
}
public boolean hasSubject() {
return this.subject != null && !this.subject.isEmpty();
}
/**
* @param value {@link #subject} (Identifies the patient or group whose intended care is handled by the team.)
*/
public CareTeam setSubject(Reference value) {
this.subject = value;
return this;
}
/**
* @return {@link #subject} The actual object that is the target of the reference. The reference library doesn't populate this, but you can use it to hold the resource if you resolve it. (Identifies the patient or group whose intended care is handled by the team.)
*/
public Resource getSubjectTarget() {
return this.subjectTarget;
}
/**
* @param value {@link #subject} The actual object that is the target of the reference. The reference library doesn't use these, but you can use it to hold the resource if you resolve it. (Identifies the patient or group whose intended care is handled by the team.)
*/
public CareTeam setSubjectTarget(Resource value) {
this.subjectTarget = value;
return this;
}
/**
* @return {@link #period} (Indicates when the team did (or is intended to) come into effect and end.)
*/
public Period getPeriod() {
if (this.period == null)
if (Configuration.errorOnAutoCreate())
throw new Error("Attempt to auto-create CareTeam.period");
else if (Configuration.doAutoCreate())
this.period = new Period(); // cc
return this.period;
}
public boolean hasPeriod() {
return this.period != null && !this.period.isEmpty();
}
/**
* @param value {@link #period} (Indicates when the team did (or is intended to) come into effect and end.)
*/
public CareTeam setPeriod(Period value) {
this.period = value;
return this;
}
/**
* @return {@link #participant} (Identifies all people and organizations who are expected to be involved in the care team.)
*/
public List<CareTeamParticipantComponent> getParticipant() {
if (this.participant == null)
this.participant = new ArrayList<CareTeamParticipantComponent>();
return this.participant;
}
public boolean hasParticipant() {
if (this.participant == null)
return false;
for (CareTeamParticipantComponent item : this.participant)
if (!item.isEmpty())
return true;
return false;
}
/**
* @return {@link #participant} (Identifies all people and organizations who are expected to be involved in the care team.)
*/
// syntactic sugar
public CareTeamParticipantComponent addParticipant() { //3
CareTeamParticipantComponent t = new CareTeamParticipantComponent();
if (this.participant == null)
this.participant = new ArrayList<CareTeamParticipantComponent>();
this.participant.add(t);
return t;
}
// syntactic sugar
public CareTeam addParticipant(CareTeamParticipantComponent t) { //3
if (t == null)
return this;
if (this.participant == null)
this.participant = new ArrayList<CareTeamParticipantComponent>();
this.participant.add(t);
return this;
}
/**
* @return {@link #managingOrganization} (The organization responsible for the care team.)
*/
public Reference getManagingOrganization() {
if (this.managingOrganization == null)
if (Configuration.errorOnAutoCreate())
throw new Error("Attempt to auto-create CareTeam.managingOrganization");
else if (Configuration.doAutoCreate())
this.managingOrganization = new Reference(); // cc
return this.managingOrganization;
}
public boolean hasManagingOrganization() {
return this.managingOrganization != null && !this.managingOrganization.isEmpty();
}
/**
* @param value {@link #managingOrganization} (The organization responsible for the care team.)
*/
public CareTeam setManagingOrganization(Reference value) {
this.managingOrganization = value;
return this;
}
/**
* @return {@link #managingOrganization} The actual object that is the target of the reference. The reference library doesn't populate this, but you can use it to hold the resource if you resolve it. (The organization responsible for the care team.)
*/
public Organization getManagingOrganizationTarget() {
if (this.managingOrganizationTarget == null)
if (Configuration.errorOnAutoCreate())
throw new Error("Attempt to auto-create CareTeam.managingOrganization");
else if (Configuration.doAutoCreate())
this.managingOrganizationTarget = new Organization(); // aa
return this.managingOrganizationTarget;
}
/**
* @param value {@link #managingOrganization} The actual object that is the target of the reference. The reference library doesn't use these, but you can use it to hold the resource if you resolve it. (The organization responsible for the care team.)
*/
public CareTeam setManagingOrganizationTarget(Organization value) {
this.managingOrganizationTarget = value;
return this;
}
protected void listChildren(List<Property> childrenList) {
super.listChildren(childrenList);
childrenList.add(new Property("identifier", "Identifier", "This records identifiers associated with this care team 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.", 0, java.lang.Integer.MAX_VALUE, identifier));
childrenList.add(new Property("status", "CodeableConcept", "Indicates whether the care team is currently active, suspended, inactive, or entered in error.", 0, java.lang.Integer.MAX_VALUE, status));
childrenList.add(new Property("type", "CodeableConcept", "Identifies what kind of team. This is to support differentiation between multiple co-existing teams, such as care plan team, episode of care team, longitudinal care team.", 0, java.lang.Integer.MAX_VALUE, type));
childrenList.add(new Property("name", "string", "Name of the care team.", 0, java.lang.Integer.MAX_VALUE, name));
childrenList.add(new Property("subject", "Reference(Patient|Group)", "Identifies the patient or group whose intended care is handled by the team.", 0, java.lang.Integer.MAX_VALUE, subject));
childrenList.add(new Property("period", "Period", "Indicates when the team did (or is intended to) come into effect and end.", 0, java.lang.Integer.MAX_VALUE, period));
childrenList.add(new Property("participant", "", "Identifies all people and organizations who are expected to be involved in the care team.", 0, java.lang.Integer.MAX_VALUE, participant));
childrenList.add(new Property("managingOrganization", "Reference(Organization)", "The organization responsible for the care team.", 0, java.lang.Integer.MAX_VALUE, managingOrganization));
}
@Override
public void setProperty(String name, Base value) throws FHIRException {
if (name.equals("identifier"))
this.getIdentifier().add(castToIdentifier(value));
else if (name.equals("status"))
this.status = castToCodeableConcept(value); // CodeableConcept
else if (name.equals("type"))
this.getType().add(castToCodeableConcept(value));
else if (name.equals("name"))
this.name = castToString(value); // StringType
else if (name.equals("subject"))
this.subject = castToReference(value); // Reference
else if (name.equals("period"))
this.period = castToPeriod(value); // Period
else if (name.equals("participant"))
this.getParticipant().add((CareTeamParticipantComponent) value);
else if (name.equals("managingOrganization"))
this.managingOrganization = castToReference(value); // Reference
else
super.setProperty(name, value);
}
@Override
public Base addChild(String name) throws FHIRException {
if (name.equals("identifier")) {
return addIdentifier();
}
else if (name.equals("status")) {
this.status = new CodeableConcept();
return this.status;
}
else if (name.equals("type")) {
return addType();
}
else if (name.equals("name")) {
throw new FHIRException("Cannot call addChild on a primitive type CareTeam.name");
}
else if (name.equals("subject")) {
this.subject = new Reference();
return this.subject;
}
else if (name.equals("period")) {
this.period = new Period();
return this.period;
}
else if (name.equals("participant")) {
return addParticipant();
}
else if (name.equals("managingOrganization")) {
this.managingOrganization = new Reference();
return this.managingOrganization;
}
else
return super.addChild(name);
}
public String fhirType() {
return "CareTeam";
}
public CareTeam copy() {
CareTeam dst = new CareTeam();
copyValues(dst);
if (identifier != null) {
dst.identifier = new ArrayList<Identifier>();
for (Identifier i : identifier)
dst.identifier.add(i.copy());
};
dst.status = status == null ? null : status.copy();
if (type != null) {
dst.type = new ArrayList<CodeableConcept>();
for (CodeableConcept i : type)
dst.type.add(i.copy());
};
dst.name = name == null ? null : name.copy();
dst.subject = subject == null ? null : subject.copy();
dst.period = period == null ? null : period.copy();
if (participant != null) {
dst.participant = new ArrayList<CareTeamParticipantComponent>();
for (CareTeamParticipantComponent i : participant)
dst.participant.add(i.copy());
};
dst.managingOrganization = managingOrganization == null ? null : managingOrganization.copy();
return dst;
}
protected CareTeam typedCopy() {
return copy();
}
@Override
public boolean equalsDeep(Base other) {
if (!super.equalsDeep(other))
return false;
if (!(other instanceof CareTeam))
return false;
CareTeam o = (CareTeam) other;
return compareDeep(identifier, o.identifier, true) && compareDeep(status, o.status, true) && compareDeep(type, o.type, true)
&& compareDeep(name, o.name, true) && compareDeep(subject, o.subject, true) && compareDeep(period, o.period, true)
&& compareDeep(participant, o.participant, true) && compareDeep(managingOrganization, o.managingOrganization, true)
;
}
@Override
public boolean equalsShallow(Base other) {
if (!super.equalsShallow(other))
return false;
if (!(other instanceof CareTeam))
return false;
CareTeam o = (CareTeam) other;
return compareValues(name, o.name, true);
}
public boolean isEmpty() {
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( identifier, status, type, name
, subject, period, participant, managingOrganization);
}
@Override
public ResourceType getResourceType() {
return ResourceType.CareTeam;
}
/**
* Search parameter: <b>date</b>
* <p>
* Description: <b>Time period team covers</b><br>
* Type: <b>date</b><br>
* Path: <b>CareTeam.period</b><br>
* </p>
*/
@SearchParamDefinition(name="date", path="CareTeam.period", description="Time period team covers", type="date" )
public static final String SP_DATE = "date";
/**
* <b>Fluent Client</b> search parameter constant for <b>date</b>
* <p>
* Description: <b>Time period team covers</b><br>
* Type: <b>date</b><br>
* Path: <b>CareTeam.period</b><br>
* </p>
*/
public static final ca.uhn.fhir.rest.gclient.DateClientParam DATE = new ca.uhn.fhir.rest.gclient.DateClientParam(SP_DATE);
/**
* Search parameter: <b>identifier</b>
* <p>
* Description: <b>External Ids for this team</b><br>
* Type: <b>token</b><br>
* Path: <b>CareTeam.identifier</b><br>
* </p>
*/
@SearchParamDefinition(name="identifier", path="CareTeam.identifier", description="External Ids for this team", type="token" )
public static final String SP_IDENTIFIER = "identifier";
/**
* <b>Fluent Client</b> search parameter constant for <b>identifier</b>
* <p>
* Description: <b>External Ids for this team</b><br>
* Type: <b>token</b><br>
* Path: <b>CareTeam.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>patient</b>
* <p>
* Description: <b>Who care team is for</b><br>
* Type: <b>reference</b><br>
* Path: <b>CareTeam.subject</b><br>
* </p>
*/
@SearchParamDefinition(name="patient", path="CareTeam.subject", description="Who care team is for", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Patient") } )
public static final String SP_PATIENT = "patient";
/**
* <b>Fluent Client</b> search parameter constant for <b>patient</b>
* <p>
* Description: <b>Who care team is for</b><br>
* Type: <b>reference</b><br>
* Path: <b>CareTeam.subject</b><br>
* </p>
*/
public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PATIENT = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_PATIENT);
/**
* Constant for fluent queries to be used to add include statements. Specifies
* the path value of "<b>CareTeam:patient</b>".
*/
public static final ca.uhn.fhir.model.api.Include INCLUDE_PATIENT = new ca.uhn.fhir.model.api.Include("CareTeam:patient").toLocked();
/**
* Search parameter: <b>subject</b>
* <p>
* Description: <b>Who care team is for</b><br>
* Type: <b>reference</b><br>
* Path: <b>CareTeam.subject</b><br>
* </p>
*/
@SearchParamDefinition(name="subject", path="CareTeam.subject", description="Who care team is for", type="reference" )
public static final String SP_SUBJECT = "subject";
/**
* <b>Fluent Client</b> search parameter constant for <b>subject</b>
* <p>
* Description: <b>Who care team is for</b><br>
* Type: <b>reference</b><br>
* Path: <b>CareTeam.subject</b><br>
* </p>
*/
public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam SUBJECT = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_SUBJECT);
/**
* Constant for fluent queries to be used to add include statements. Specifies
* the path value of "<b>CareTeam:subject</b>".
*/
public static final ca.uhn.fhir.model.api.Include INCLUDE_SUBJECT = new ca.uhn.fhir.model.api.Include("CareTeam:subject").toLocked();
/**
* Search parameter: <b>type</b>
* <p>
* Description: <b>Type of team</b><br>
* Type: <b>token</b><br>
* Path: <b>CareTeam.type</b><br>
* </p>
*/
@SearchParamDefinition(name="type", path="CareTeam.type", description="Type of team", type="token" )
public static final String SP_TYPE = "type";
/**
* <b>Fluent Client</b> search parameter constant for <b>type</b>
* <p>
* Description: <b>Type of team</b><br>
* Type: <b>token</b><br>
* Path: <b>CareTeam.type</b><br>
* </p>
*/
public static final ca.uhn.fhir.rest.gclient.TokenClientParam TYPE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_TYPE);
/**
* Search parameter: <b>participant</b>
* <p>
* Description: <b>Who is involved</b><br>
* Type: <b>reference</b><br>
* Path: <b>CareTeam.participant.member</b><br>
* </p>
*/
@SearchParamDefinition(name="participant", path="CareTeam.participant.member", description="Who is involved", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Patient"), @ca.uhn.fhir.model.api.annotation.Compartment(name="Practitioner"), @ca.uhn.fhir.model.api.annotation.Compartment(name="RelatedPerson") } )
public static final String SP_PARTICIPANT = "participant";
/**
* <b>Fluent Client</b> search parameter constant for <b>participant</b>
* <p>
* Description: <b>Who is involved</b><br>
* Type: <b>reference</b><br>
* Path: <b>CareTeam.participant.member</b><br>
* </p>
*/
public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PARTICIPANT = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_PARTICIPANT);
/**
* Constant for fluent queries to be used to add include statements. Specifies
* the path value of "<b>CareTeam:participant</b>".
*/
public static final ca.uhn.fhir.model.api.Include INCLUDE_PARTICIPANT = new ca.uhn.fhir.model.api.Include("CareTeam:participant").toLocked();
/**
* Search parameter: <b>status</b>
* <p>
* Description: <b>active | suspended | inactive | entered in error</b><br>
* Type: <b>token</b><br>
* Path: <b>CareTeam.status</b><br>
* </p>
*/
@SearchParamDefinition(name="status", path="CareTeam.status", description="active | suspended | 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 | suspended | inactive | entered in error</b><br>
* Type: <b>token</b><br>
* Path: <b>CareTeam.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 Sat, Jan 30, 2016 09:18-0500 for FHIR v1.3.0
// Generated on Fri, Apr 1, 2016 17:57-0400 for FHIR v1.4.0
import java.util.*;
@ -39,9 +39,8 @@ import ca.uhn.fhir.model.api.annotation.SearchParamDefinition;
import ca.uhn.fhir.model.api.annotation.Child;
import ca.uhn.fhir.model.api.annotation.Description;
import ca.uhn.fhir.model.api.annotation.Block;
import org.hl7.fhir.dstu3.exceptions.FHIRException;
import org.hl7.fhir.instance.model.api.*;
import org.hl7.fhir.dstu3.exceptions.FHIRException;
/**
* A record of a clinical assessment performed to determine what problem(s) may affect the patient and before planning the treatments or management strategies that are best to manage a patient's condition. Assessments are often 1:1 with a clinical consultation / encounter, but this varies greatly depending on the clinical workflow. This resource is called "ClinicalImpression" rather than "ClinicalAssessment" to avoid confusion with the recording of assessment tools such as Apgar score.
*/
@ -324,8 +323,7 @@ public class ClinicalImpression extends DomainResource {
}
public boolean isEmpty() {
return super.isEmpty() && (code == null || code.isEmpty()) && (item == null || item.isEmpty())
;
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( code, item);
}
public String fhirType() {
@ -499,8 +497,7 @@ public class ClinicalImpression extends DomainResource {
}
public boolean isEmpty() {
return super.isEmpty() && (item == null || item.isEmpty()) && (cause == null || cause.isEmpty())
;
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( item, cause);
}
public String fhirType() {
@ -674,8 +671,7 @@ public class ClinicalImpression extends DomainResource {
}
public boolean isEmpty() {
return super.isEmpty() && (item == null || item.isEmpty()) && (reason == null || reason.isEmpty())
;
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( item, reason);
}
public String fhirType() {
@ -1840,13 +1836,9 @@ public class ClinicalImpression extends DomainResource {
}
public boolean isEmpty() {
return super.isEmpty() && (patient == null || patient.isEmpty()) && (assessor == null || assessor.isEmpty())
&& (status == null || status.isEmpty()) && (date == null || date.isEmpty()) && (description == null || description.isEmpty())
&& (previous == null || previous.isEmpty()) && (problem == null || problem.isEmpty()) && (trigger == null || trigger.isEmpty())
&& (investigations == null || investigations.isEmpty()) && (protocol == null || protocol.isEmpty())
&& (summary == null || summary.isEmpty()) && (finding == null || finding.isEmpty()) && (resolved == null || resolved.isEmpty())
&& (ruledOut == null || ruledOut.isEmpty()) && (prognosis == null || prognosis.isEmpty())
&& (plan == null || plan.isEmpty()) && (action == null || action.isEmpty());
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( patient, assessor, status, date
, description, previous, problem, trigger, investigations, protocol, summary, finding
, resolved, ruledOut, prognosis, plan, action);
}
@Override
@ -1908,7 +1900,7 @@ public class ClinicalImpression extends DomainResource {
* Path: <b>ClinicalImpression.assessor</b><br>
* </p>
*/
@SearchParamDefinition(name="assessor", path="ClinicalImpression.assessor", description="The clinician performing the assessment", type="reference" )
@SearchParamDefinition(name="assessor", path="ClinicalImpression.assessor", description="The clinician performing the assessment", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Practitioner") } )
public static final String SP_ASSESSOR = "assessor";
/**
* <b>Fluent Client</b> search parameter constant for <b>assessor</b>
@ -2026,7 +2018,7 @@ public class ClinicalImpression extends DomainResource {
* Path: <b>ClinicalImpression.patient</b><br>
* </p>
*/
@SearchParamDefinition(name="patient", path="ClinicalImpression.patient", description="The patient being assessed", type="reference" )
@SearchParamDefinition(name="patient", path="ClinicalImpression.patient", description="The patient being assessed", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Patient") } )
public static final String SP_PATIENT = "patient";
/**
* <b>Fluent Client</b> search parameter constant for <b>patient</b>

View File

@ -29,23 +29,21 @@ package org.hl7.fhir.dstu3.model;
*/
// Generated on Sat, Jan 30, 2016 09:18-0500 for FHIR v1.3.0
// Generated on Fri, Apr 1, 2016 17:57-0400 for FHIR v1.4.0
import java.util.*;
import org.hl7.fhir.utilities.Utilities;
import org.hl7.fhir.dstu3.model.Enumerations.*;
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.Description;
import ca.uhn.fhir.model.api.annotation.Block;
import org.hl7.fhir.dstu3.exceptions.FHIRException;
import org.hl7.fhir.dstu3.model.Enumerations.*;
import org.hl7.fhir.instance.model.api.*;
import org.hl7.fhir.dstu3.exceptions.FHIRException;
/**
* A code system specifies a set of codes drawn from one or more code systems.
* 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")
public class CodeSystem extends DomainResource {
@ -186,6 +184,14 @@ public class CodeSystem extends DomainResource {
* The property value is a string (often used to assign ranking values to concepts for supporting score assessments)
*/
INTEGER,
/**
* The property value is a boolean true | false
*/
BOOLEAN,
/**
* The property is a date or a date + time
*/
DATETIME,
/**
* added to help the parsers
*/
@ -201,6 +207,10 @@ public class CodeSystem extends DomainResource {
return STRING;
if ("integer".equals(codeString))
return INTEGER;
if ("boolean".equals(codeString))
return BOOLEAN;
if ("dateTime".equals(codeString))
return DATETIME;
throw new FHIRException("Unknown PropertyType code '"+codeString+"'");
}
public String toCode() {
@ -209,6 +219,8 @@ public class CodeSystem extends DomainResource {
case CODING: return "Coding";
case STRING: return "string";
case INTEGER: return "integer";
case BOOLEAN: return "boolean";
case DATETIME: return "dateTime";
default: return "?";
}
}
@ -218,6 +230,8 @@ public class CodeSystem extends DomainResource {
case CODING: return "http://hl7.org/fhir/concept-property-type";
case STRING: return "http://hl7.org/fhir/concept-property-type";
case INTEGER: return "http://hl7.org/fhir/concept-property-type";
case BOOLEAN: return "http://hl7.org/fhir/concept-property-type";
case DATETIME: return "http://hl7.org/fhir/concept-property-type";
default: return "?";
}
}
@ -227,6 +241,8 @@ public class CodeSystem extends DomainResource {
case CODING: return "The property value is a code defined in an external code system. This may be used for translations, but is not the intent";
case STRING: return "The property value is a string";
case INTEGER: return "The property value is a string (often used to assign ranking values to concepts for supporting score assessments)";
case BOOLEAN: return "The property value is a boolean true | false";
case DATETIME: return "The property is a date or a date + time";
default: return "?";
}
}
@ -236,6 +252,8 @@ public class CodeSystem extends DomainResource {
case CODING: return "Coding (external reference)";
case STRING: return "string";
case INTEGER: return "integer";
case BOOLEAN: return "boolean";
case DATETIME: return "dateTime";
default: return "?";
}
}
@ -254,6 +272,10 @@ public class CodeSystem extends DomainResource {
return PropertyType.STRING;
if ("integer".equals(codeString))
return PropertyType.INTEGER;
if ("boolean".equals(codeString))
return PropertyType.BOOLEAN;
if ("dateTime".equals(codeString))
return PropertyType.DATETIME;
throw new IllegalArgumentException("Unknown PropertyType code '"+codeString+"'");
}
public Enumeration<PropertyType> fromType(Base code) throws FHIRException {
@ -270,6 +292,10 @@ public class CodeSystem extends DomainResource {
return new Enumeration<PropertyType>(this, PropertyType.STRING);
if ("integer".equals(codeString))
return new Enumeration<PropertyType>(this, PropertyType.INTEGER);
if ("boolean".equals(codeString))
return new Enumeration<PropertyType>(this, PropertyType.BOOLEAN);
if ("dateTime".equals(codeString))
return new Enumeration<PropertyType>(this, PropertyType.DATETIME);
throw new FHIRException("Unknown PropertyType code '"+codeString+"'");
}
public String toCode(PropertyType code) {
@ -281,6 +307,10 @@ public class CodeSystem extends DomainResource {
return "string";
if (code == PropertyType.INTEGER)
return "integer";
if (code == PropertyType.BOOLEAN)
return "boolean";
if (code == PropertyType.DATETIME)
return "dateTime";
return "?";
}
public String toSystem(PropertyType code) {
@ -463,8 +493,7 @@ public class CodeSystem extends DomainResource {
}
public boolean isEmpty() {
return super.isEmpty() && (name == null || name.isEmpty()) && (telecom == null || telecom.isEmpty())
;
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( name, telecom);
}
public String fhirType() {
@ -792,8 +821,8 @@ public class CodeSystem extends DomainResource {
}
public boolean isEmpty() {
return super.isEmpty() && (code == null || code.isEmpty()) && (description == null || description.isEmpty())
&& (operator == null || operator.isEmpty()) && (value == null || value.isEmpty());
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( code, description, operator, value
);
}
public String fhirType() {
@ -823,7 +852,7 @@ public class CodeSystem extends DomainResource {
* The type of the property value.
*/
@Child(name = "type", type = {CodeType.class}, order=3, min=1, max=1, modifier=false, summary=true)
@Description(shortDefinition="code | Coding | string | integer", formalDefinition="The type of the property value." )
@Description(shortDefinition="code | Coding | string | integer | boolean | dateTime", formalDefinition="The type of the property value." )
protected Enumeration<PropertyType> type;
private static final long serialVersionUID = -1346176181L;
@ -1049,8 +1078,7 @@ public class CodeSystem extends DomainResource {
}
public boolean isEmpty() {
return super.isEmpty() && (code == null || code.isEmpty()) && (description == null || description.isEmpty())
&& (type == null || type.isEmpty());
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( code, description, type);
}
public String fhirType() {
@ -1484,9 +1512,8 @@ public class CodeSystem extends DomainResource {
}
public boolean isEmpty() {
return super.isEmpty() && (code == null || code.isEmpty()) && (display == null || display.isEmpty())
&& (definition == null || definition.isEmpty()) && (designation == null || designation.isEmpty())
&& (property == null || property.isEmpty()) && (concept == null || concept.isEmpty());
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( code, display, definition, designation
, property, concept);
}
public String fhirType() {
@ -1720,8 +1747,7 @@ public class CodeSystem extends DomainResource {
}
public boolean isEmpty() {
return super.isEmpty() && (language == null || language.isEmpty()) && (use == null || use.isEmpty())
&& (value == null || value.isEmpty());
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( language, use, value);
}
public String fhirType() {
@ -1743,7 +1769,7 @@ public class CodeSystem extends DomainResource {
/**
* The value of this property.
*/
@Child(name = "value", type = {CodeType.class, Coding.class, StringType.class, IntegerType.class}, order=2, min=1, max=1, modifier=false, summary=false)
@Child(name = "value", type = {CodeType.class, Coding.class, StringType.class, IntegerType.class, BooleanType.class, DateTimeType.class}, order=2, min=1, max=1, modifier=false, summary=false)
@Description(shortDefinition="Value of the property for this concept", formalDefinition="The value of this property." )
protected Type value;
@ -1869,6 +1895,32 @@ public class CodeSystem extends DomainResource {
return this.value instanceof IntegerType;
}
/**
* @return {@link #value} (The value of this property.)
*/
public BooleanType getValueBooleanType() throws FHIRException {
if (!(this.value instanceof BooleanType))
throw new FHIRException("Type mismatch: the type BooleanType was expected, but "+this.value.getClass().getName()+" was encountered");
return (BooleanType) this.value;
}
public boolean hasValueBooleanType() {
return this.value instanceof BooleanType;
}
/**
* @return {@link #value} (The value of this property.)
*/
public DateTimeType getValueDateTimeType() throws FHIRException {
if (!(this.value instanceof DateTimeType))
throw new FHIRException("Type mismatch: the type DateTimeType was expected, but "+this.value.getClass().getName()+" was encountered");
return (DateTimeType) this.value;
}
public boolean hasValueDateTimeType() {
return this.value instanceof DateTimeType;
}
public boolean hasValue() {
return this.value != null && !this.value.isEmpty();
}
@ -1884,7 +1936,7 @@ public class CodeSystem extends DomainResource {
protected void listChildren(List<Property> childrenList) {
super.listChildren(childrenList);
childrenList.add(new Property("code", "code", "A code that is a reference to CodeSystem.property.code.", 0, java.lang.Integer.MAX_VALUE, code));
childrenList.add(new Property("value[x]", "code|Coding|string|integer", "The value of this property.", 0, java.lang.Integer.MAX_VALUE, value));
childrenList.add(new Property("value[x]", "code|Coding|string|integer|boolean|dateTime", "The value of this property.", 0, java.lang.Integer.MAX_VALUE, value));
}
@Override
@ -1918,6 +1970,14 @@ public class CodeSystem extends DomainResource {
this.value = new IntegerType();
return this.value;
}
else if (name.equals("valueBoolean")) {
this.value = new BooleanType();
return this.value;
}
else if (name.equals("valueDateTime")) {
this.value = new DateTimeType();
return this.value;
}
else
return super.addChild(name);
}
@ -1951,8 +2011,7 @@ public class CodeSystem extends DomainResource {
}
public boolean isEmpty() {
return super.isEmpty() && (code == null || code.isEmpty()) && (value == null || value.isEmpty())
;
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( code, value);
}
public String fhirType() {
@ -2060,56 +2119,63 @@ public class CodeSystem extends DomainResource {
@Description(shortDefinition="If code comparison is case sensitive", formalDefinition="If code comparison is case sensitive when codes within this system are compared to each other." )
protected BooleanType caseSensitive;
/**
* Canonical URL of value set that contains the entire code system.
*/
@Child(name = "valueSet", type = {UriType.class}, order=14, min=0, max=1, modifier=false, summary=true)
@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;
/**
* True If code system defines a post-composition grammar.
*/
@Child(name = "compositional", type = {BooleanType.class}, order=14, min=0, max=1, modifier=false, summary=true)
@Child(name = "compositional", type = {BooleanType.class}, order=15, 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=15, min=0, max=1, modifier=false, summary=true)
@Child(name = "versionNeeded", type = {BooleanType.class}, order=16, 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=16, min=1, max=1, modifier=false, summary=true)
@Child(name = "content", type = {CodeType.class}, order=17, 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." )
protected Enumeration<CodeSystemContentMode> content;
/**
* 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=17, min=0, max=1, modifier=false, summary=true)
@Child(name = "count", type = {UnsignedIntType.class}, order=18, 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=18, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
@Child(name = "filter", type = {}, order=19, 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=19, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
@Child(name = "property", type = {}, order=20, 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<CodeSystemPropertyComponent> 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=20, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
@Child(name = "concept", type = {}, order=21, 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 = 331143159L;
private static final long serialVersionUID = 1466696062L;
/**
* Constructor
@ -2758,6 +2824,55 @@ public class CodeSystem extends DomainResource {
return this;
}
/**
* @return {@link #valueSet} (Canonical URL of value set that contains the entire code system.). This is the underlying object with id, value and extensions. The accessor "getValueSet" gives direct access to the value
*/
public UriType getValueSetElement() {
if (this.valueSet == null)
if (Configuration.errorOnAutoCreate())
throw new Error("Attempt to auto-create CodeSystem.valueSet");
else if (Configuration.doAutoCreate())
this.valueSet = new UriType(); // bb
return this.valueSet;
}
public boolean hasValueSetElement() {
return this.valueSet != null && !this.valueSet.isEmpty();
}
public boolean hasValueSet() {
return this.valueSet != null && !this.valueSet.isEmpty();
}
/**
* @param value {@link #valueSet} (Canonical URL of value set that contains the entire code system.). This is the underlying object with id, value and extensions. The accessor "getValueSet" gives direct access to the value
*/
public CodeSystem setValueSetElement(UriType value) {
this.valueSet = value;
return this;
}
/**
* @return Canonical URL of value set that contains the entire code system.
*/
public String getValueSet() {
return this.valueSet == null ? null : this.valueSet.getValue();
}
/**
* @param value Canonical URL of value set that contains the entire code system.
*/
public CodeSystem setValueSet(String value) {
if (Utilities.noString(value))
this.valueSet = null;
else {
if (this.valueSet == null)
this.valueSet = new UriType();
this.valueSet.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
*/
@ -3074,6 +3189,7 @@ public class CodeSystem extends DomainResource {
childrenList.add(new Property("requirements", "string", "Explains why this code system is needed and why it has been constrained as it has.", 0, java.lang.Integer.MAX_VALUE, requirements));
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("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));
@ -3113,6 +3229,8 @@ public class CodeSystem extends DomainResource {
this.copyright = castToString(value); // StringType
else if (name.equals("caseSensitive"))
this.caseSensitive = castToBoolean(value); // BooleanType
else if (name.equals("valueSet"))
this.valueSet = castToUri(value); // UriType
else if (name.equals("compositional"))
this.compositional = castToBoolean(value); // BooleanType
else if (name.equals("versionNeeded"))
@ -3176,6 +3294,9 @@ public class CodeSystem extends DomainResource {
else if (name.equals("caseSensitive")) {
throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.caseSensitive");
}
else if (name.equals("valueSet")) {
throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.valueSet");
}
else if (name.equals("compositional")) {
throw new FHIRException("Cannot call addChild on a primitive type CodeSystem.compositional");
}
@ -3231,6 +3352,7 @@ public class CodeSystem extends DomainResource {
dst.requirements = requirements == null ? null : requirements.copy();
dst.copyright = copyright == null ? null : copyright.copy();
dst.caseSensitive = caseSensitive == null ? null : caseSensitive.copy();
dst.valueSet = valueSet == null ? null : valueSet.copy();
dst.compositional = compositional == null ? null : compositional.copy();
dst.versionNeeded = versionNeeded == null ? null : versionNeeded.copy();
dst.content = content == null ? null : content.copy();
@ -3269,10 +3391,10 @@ public class CodeSystem extends DomainResource {
&& compareDeep(publisher, o.publisher, true) && compareDeep(contact, o.contact, true) && compareDeep(date, o.date, true)
&& compareDeep(description, o.description, true) && compareDeep(useContext, o.useContext, true)
&& compareDeep(requirements, o.requirements, true) && compareDeep(copyright, o.copyright, true)
&& compareDeep(caseSensitive, o.caseSensitive, 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(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);
}
@Override
@ -3286,20 +3408,16 @@ public class CodeSystem extends DomainResource {
&& compareValues(status, o.status, true) && compareValues(experimental, o.experimental, true) && compareValues(publisher, o.publisher, true)
&& compareValues(date, o.date, true) && compareValues(description, o.description, true) && compareValues(requirements, o.requirements, true)
&& compareValues(copyright, o.copyright, true) && compareValues(caseSensitive, o.caseSensitive, 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(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() && (url == null || url.isEmpty()) && (identifier == null || identifier.isEmpty())
&& (version == null || version.isEmpty()) && (name == null || name.isEmpty()) && (status == null || status.isEmpty())
&& (experimental == null || experimental.isEmpty()) && (publisher == null || publisher.isEmpty())
&& (contact == null || contact.isEmpty()) && (date == null || date.isEmpty()) && (description == null || description.isEmpty())
&& (useContext == null || useContext.isEmpty()) && (requirements == null || requirements.isEmpty())
&& (copyright == null || copyright.isEmpty()) && (caseSensitive == null || caseSensitive.isEmpty())
&& (compositional == null || compositional.isEmpty()) && (versionNeeded == null || versionNeeded.isEmpty())
&& (content == null || content.isEmpty()) && (count == null || count.isEmpty()) && (filter == null || filter.isEmpty())
&& (property == null || property.isEmpty()) && (concept == null || concept.isEmpty());
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( url, identifier, version, name
, status, experimental, publisher, contact, date, description, useContext, requirements
, copyright, caseSensitive, valueSet, compositional, versionNeeded, content, count, filter
, property, concept);
}
@Override
@ -3467,6 +3585,26 @@ public class CodeSystem extends DomainResource {
*/
public static final ca.uhn.fhir.rest.gclient.StringClientParam DESCRIPTION = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_DESCRIPTION);
/**
* Search parameter: <b>language</b>
* <p>
* Description: <b>A language in which a designation is provided</b><br>
* Type: <b>token</b><br>
* Path: <b>CodeSystem.concept.designation.language</b><br>
* </p>
*/
@SearchParamDefinition(name="language", path="CodeSystem.concept.designation.language", description="A language in which a designation is provided", type="token" )
public static final String SP_LANGUAGE = "language";
/**
* <b>Fluent Client</b> search parameter constant for <b>language</b>
* <p>
* Description: <b>A language in which a designation is provided</b><br>
* Type: <b>token</b><br>
* Path: <b>CodeSystem.concept.designation.language</b><br>
* </p>
*/
public static final ca.uhn.fhir.rest.gclient.TokenClientParam LANGUAGE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_LANGUAGE);
/**
* Search parameter: <b>version</b>
* <p>

View File

@ -29,7 +29,7 @@ package org.hl7.fhir.dstu3.model;
*/
// Generated on Sat, Jan 30, 2016 09:18-0500 for FHIR v1.3.0
// Generated on Fri, Apr 1, 2016 17:57-0400 for FHIR v1.4.0
import java.util.*;
@ -38,9 +38,8 @@ import ca.uhn.fhir.model.api.annotation.Child;
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.dstu3.exceptions.FHIRException;
import org.hl7.fhir.instance.model.api.*;
import org.hl7.fhir.dstu3.exceptions.FHIRException;
/**
* A concept that may be defined by a formal reference to a terminology or ontology or may be provided by text.
*/
@ -229,8 +228,7 @@ public class CodeableConcept extends Type implements ICompositeType {
}
public boolean isEmpty() {
return super.isEmpty() && (coding == null || coding.isEmpty()) && (text == null || text.isEmpty())
;
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( coding, text);
}

View File

@ -29,7 +29,7 @@ package org.hl7.fhir.dstu3.model;
*/
// Generated on Sat, Jan 30, 2016 09:18-0500 for FHIR v1.3.0
// Generated on Fri, Apr 1, 2016 17:57-0400 for FHIR v1.4.0
import java.util.*;
@ -38,9 +38,8 @@ import ca.uhn.fhir.model.api.annotation.Child;
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.dstu3.exceptions.FHIRException;
import org.hl7.fhir.instance.model.api.*;
import org.hl7.fhir.dstu3.exceptions.FHIRException;
/**
* A reference to a code defined by a terminology system.
*/
@ -433,9 +432,8 @@ public class Coding extends Type implements IBaseCoding, ICompositeType {
}
public boolean isEmpty() {
return super.isEmpty() && (system == null || system.isEmpty()) && (version == null || version.isEmpty())
&& (code == null || code.isEmpty()) && (display == null || display.isEmpty()) && (userSelected == null || userSelected.isEmpty())
;
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( system, version, code, display
, userSelected);
}

View File

@ -29,7 +29,7 @@ package org.hl7.fhir.dstu3.model;
*/
// Generated on Sat, Jan 30, 2016 09:18-0500 for FHIR v1.3.0
// Generated on Fri, Apr 1, 2016 17:57-0400 for FHIR v1.4.0
import java.util.*;
@ -39,9 +39,8 @@ import ca.uhn.fhir.model.api.annotation.SearchParamDefinition;
import ca.uhn.fhir.model.api.annotation.Child;
import ca.uhn.fhir.model.api.annotation.Description;
import ca.uhn.fhir.model.api.annotation.Block;
import org.hl7.fhir.dstu3.exceptions.FHIRException;
import org.hl7.fhir.instance.model.api.*;
import org.hl7.fhir.dstu3.exceptions.FHIRException;
/**
* An occurrence of information being transmitted; e.g. an alert that was sent to a responsible provider, a public health agency was notified about a reportable condition.
*/
@ -326,7 +325,7 @@ public class Communication extends DomainResource {
}
public boolean isEmpty() {
return super.isEmpty() && (content == null || content.isEmpty());
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( content);
}
public String fhirType() {
@ -1185,12 +1184,9 @@ public class Communication extends DomainResource {
}
public boolean isEmpty() {
return super.isEmpty() && (identifier == null || identifier.isEmpty()) && (category == null || category.isEmpty())
&& (sender == null || sender.isEmpty()) && (recipient == null || recipient.isEmpty()) && (payload == null || payload.isEmpty())
&& (medium == null || medium.isEmpty()) && (status == null || status.isEmpty()) && (encounter == null || encounter.isEmpty())
&& (sent == null || sent.isEmpty()) && (received == null || received.isEmpty()) && (reason == null || reason.isEmpty())
&& (subject == null || subject.isEmpty()) && (requestDetail == null || requestDetail.isEmpty())
;
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( identifier, category, sender
, recipient, payload, medium, status, encounter, sent, received, reason, subject, requestDetail
);
}
@Override
@ -1252,7 +1248,7 @@ public class Communication extends DomainResource {
* Path: <b>Communication.sender</b><br>
* </p>
*/
@SearchParamDefinition(name="sender", path="Communication.sender", description="Message sender", type="reference" )
@SearchParamDefinition(name="sender", path="Communication.sender", description="Message sender", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Device"), @ca.uhn.fhir.model.api.annotation.Compartment(name="Patient"), @ca.uhn.fhir.model.api.annotation.Compartment(name="Practitioner"), @ca.uhn.fhir.model.api.annotation.Compartment(name="RelatedPerson") } )
public static final String SP_SENDER = "sender";
/**
* <b>Fluent Client</b> search parameter constant for <b>sender</b>
@ -1278,7 +1274,7 @@ public class Communication extends DomainResource {
* Path: <b>Communication.subject</b><br>
* </p>
*/
@SearchParamDefinition(name="subject", path="Communication.subject", description="Focus of message", type="reference" )
@SearchParamDefinition(name="subject", path="Communication.subject", description="Focus of message", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Patient") } )
public static final String SP_SUBJECT = "subject";
/**
* <b>Fluent Client</b> search parameter constant for <b>subject</b>
@ -1330,7 +1326,7 @@ public class Communication extends DomainResource {
* Path: <b>Communication.recipient</b><br>
* </p>
*/
@SearchParamDefinition(name="recipient", path="Communication.recipient", description="Message recipient", type="reference" )
@SearchParamDefinition(name="recipient", path="Communication.recipient", description="Message recipient", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Device"), @ca.uhn.fhir.model.api.annotation.Compartment(name="Patient"), @ca.uhn.fhir.model.api.annotation.Compartment(name="Practitioner"), @ca.uhn.fhir.model.api.annotation.Compartment(name="RelatedPerson") } )
public static final String SP_RECIPIENT = "recipient";
/**
* <b>Fluent Client</b> search parameter constant for <b>recipient</b>
@ -1396,7 +1392,7 @@ public class Communication extends DomainResource {
* Path: <b>Communication.encounter</b><br>
* </p>
*/
@SearchParamDefinition(name="encounter", path="Communication.encounter", description="Encounter leading to message", type="reference" )
@SearchParamDefinition(name="encounter", path="Communication.encounter", description="Encounter leading to message", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Encounter") } )
public static final String SP_ENCOUNTER = "encounter";
/**
* <b>Fluent Client</b> search parameter constant for <b>encounter</b>

View File

@ -29,7 +29,7 @@ package org.hl7.fhir.dstu3.model;
*/
// Generated on Sat, Jan 30, 2016 09:18-0500 for FHIR v1.3.0
// Generated on Fri, Apr 1, 2016 17:57-0400 for FHIR v1.4.0
import java.util.*;
@ -39,9 +39,8 @@ import ca.uhn.fhir.model.api.annotation.SearchParamDefinition;
import ca.uhn.fhir.model.api.annotation.Child;
import ca.uhn.fhir.model.api.annotation.Description;
import ca.uhn.fhir.model.api.annotation.Block;
import org.hl7.fhir.dstu3.exceptions.FHIRException;
import org.hl7.fhir.instance.model.api.*;
import org.hl7.fhir.dstu3.exceptions.FHIRException;
/**
* A request to convey information; e.g. the CDS system proposes that an alert be sent to a responsible provider, the CDS system proposes that the public health agency be notified about a reportable condition.
*/
@ -406,7 +405,7 @@ public class CommunicationRequest extends DomainResource {
}
public boolean isEmpty() {
return super.isEmpty() && (content == null || content.isEmpty());
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( content);
}
public String fhirType() {
@ -1299,12 +1298,9 @@ public class CommunicationRequest extends DomainResource {
}
public boolean isEmpty() {
return super.isEmpty() && (identifier == null || identifier.isEmpty()) && (category == null || category.isEmpty())
&& (sender == null || sender.isEmpty()) && (recipient == null || recipient.isEmpty()) && (payload == null || payload.isEmpty())
&& (medium == null || medium.isEmpty()) && (requester == null || requester.isEmpty()) && (status == null || status.isEmpty())
&& (encounter == null || encounter.isEmpty()) && (scheduled == null || scheduled.isEmpty())
&& (reason == null || reason.isEmpty()) && (requestedOn == null || requestedOn.isEmpty())
&& (subject == null || subject.isEmpty()) && (priority == null || priority.isEmpty());
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( identifier, category, sender
, recipient, payload, medium, requester, status, encounter, scheduled, reason, requestedOn
, subject, priority);
}
@Override
@ -1320,7 +1316,7 @@ public class CommunicationRequest extends DomainResource {
* Path: <b>CommunicationRequest.requester</b><br>
* </p>
*/
@SearchParamDefinition(name="requester", path="CommunicationRequest.requester", description="An individual who requested a communication", type="reference" )
@SearchParamDefinition(name="requester", path="CommunicationRequest.requester", description="An individual who requested a communication", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Patient"), @ca.uhn.fhir.model.api.annotation.Compartment(name="Practitioner"), @ca.uhn.fhir.model.api.annotation.Compartment(name="RelatedPerson") } )
public static final String SP_REQUESTER = "requester";
/**
* <b>Fluent Client</b> search parameter constant for <b>requester</b>
@ -1366,7 +1362,7 @@ public class CommunicationRequest extends DomainResource {
* Path: <b>CommunicationRequest.subject</b><br>
* </p>
*/
@SearchParamDefinition(name="subject", path="CommunicationRequest.subject", description="Focus of message", type="reference" )
@SearchParamDefinition(name="subject", path="CommunicationRequest.subject", description="Focus of message", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Patient") } )
public static final String SP_SUBJECT = "subject";
/**
* <b>Fluent Client</b> search parameter constant for <b>subject</b>
@ -1412,7 +1408,7 @@ public class CommunicationRequest extends DomainResource {
* Path: <b>CommunicationRequest.encounter</b><br>
* </p>
*/
@SearchParamDefinition(name="encounter", path="CommunicationRequest.encounter", description="Encounter leading to message", type="reference" )
@SearchParamDefinition(name="encounter", path="CommunicationRequest.encounter", description="Encounter leading to message", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Encounter") } )
public static final String SP_ENCOUNTER = "encounter";
/**
* <b>Fluent Client</b> search parameter constant for <b>encounter</b>
@ -1478,7 +1474,7 @@ public class CommunicationRequest extends DomainResource {
* Path: <b>CommunicationRequest.sender</b><br>
* </p>
*/
@SearchParamDefinition(name="sender", path="CommunicationRequest.sender", description="Message sender", type="reference" )
@SearchParamDefinition(name="sender", path="CommunicationRequest.sender", description="Message sender", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Device"), @ca.uhn.fhir.model.api.annotation.Compartment(name="Patient"), @ca.uhn.fhir.model.api.annotation.Compartment(name="Practitioner"), @ca.uhn.fhir.model.api.annotation.Compartment(name="RelatedPerson") } )
public static final String SP_SENDER = "sender";
/**
* <b>Fluent Client</b> search parameter constant for <b>sender</b>
@ -1530,7 +1526,7 @@ public class CommunicationRequest extends DomainResource {
* Path: <b>CommunicationRequest.recipient</b><br>
* </p>
*/
@SearchParamDefinition(name="recipient", path="CommunicationRequest.recipient", description="Message recipient", type="reference" )
@SearchParamDefinition(name="recipient", path="CommunicationRequest.recipient", description="Message recipient", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Device"), @ca.uhn.fhir.model.api.annotation.Compartment(name="Patient"), @ca.uhn.fhir.model.api.annotation.Compartment(name="Practitioner"), @ca.uhn.fhir.model.api.annotation.Compartment(name="RelatedPerson") } )
public static final String SP_RECIPIENT = "recipient";
/**
* <b>Fluent Client</b> search parameter constant for <b>recipient</b>

View File

@ -29,7 +29,7 @@ package org.hl7.fhir.dstu3.model;
*/
// Generated on Sat, Jan 30, 2016 09:18-0500 for FHIR v1.3.0
// Generated on Fri, Apr 1, 2016 17:57-0400 for FHIR v1.4.0
import java.util.*;
@ -39,9 +39,8 @@ import ca.uhn.fhir.model.api.annotation.SearchParamDefinition;
import ca.uhn.fhir.model.api.annotation.Child;
import ca.uhn.fhir.model.api.annotation.Description;
import ca.uhn.fhir.model.api.annotation.Block;
import org.hl7.fhir.dstu3.exceptions.FHIRException;
import org.hl7.fhir.instance.model.api.*;
import org.hl7.fhir.dstu3.exceptions.FHIRException;
/**
* A set of healthcare-related information that is assembled together into a single logical document that provides a single coherent statement of meaning, establishes its own context and that has clinical attestation with regard to who is making the statement. While a Composition defines the structure, it does not actually contain the content: rather the full content of a document is contained in a Bundle, of which the Composition is the first resource contained.
*/
@ -535,8 +534,7 @@ public class Composition extends DomainResource {
}
public boolean isEmpty() {
return super.isEmpty() && (mode == null || mode.isEmpty()) && (time == null || time.isEmpty())
&& (party == null || party.isEmpty());
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( mode, time, party);
}
public String fhirType() {
@ -770,8 +768,7 @@ public class Composition extends DomainResource {
}
public boolean isEmpty() {
return super.isEmpty() && (code == null || code.isEmpty()) && (period == null || period.isEmpty())
&& (detail == null || detail.isEmpty());
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( code, period, detail);
}
public String fhirType() {
@ -1249,10 +1246,8 @@ public class Composition extends DomainResource {
}
public boolean isEmpty() {
return super.isEmpty() && (title == null || title.isEmpty()) && (code == null || code.isEmpty())
&& (text == null || text.isEmpty()) && (mode == null || mode.isEmpty()) && (orderedBy == null || orderedBy.isEmpty())
&& (entry == null || entry.isEmpty()) && (emptyReason == null || emptyReason.isEmpty()) && (section == null || section.isEmpty())
;
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( title, code, text, mode, orderedBy
, entry, emptyReason, section);
}
public String fhirType() {
@ -2131,12 +2126,9 @@ public class Composition extends DomainResource {
}
public boolean isEmpty() {
return super.isEmpty() && (identifier == null || identifier.isEmpty()) && (date == null || date.isEmpty())
&& (type == null || type.isEmpty()) && (class_ == null || class_.isEmpty()) && (title == null || title.isEmpty())
&& (status == null || status.isEmpty()) && (confidentiality == null || confidentiality.isEmpty())
&& (subject == null || subject.isEmpty()) && (author == null || author.isEmpty()) && (attester == null || attester.isEmpty())
&& (custodian == null || custodian.isEmpty()) && (event == null || event.isEmpty()) && (encounter == null || encounter.isEmpty())
&& (section == null || section.isEmpty());
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( identifier, date, type, class_
, title, status, confidentiality, subject, author, attester, custodian, event, encounter
, section);
}
@Override
@ -2212,7 +2204,7 @@ public class Composition extends DomainResource {
* Path: <b>Composition.subject</b><br>
* </p>
*/
@SearchParamDefinition(name="subject", path="Composition.subject", description="Who and/or what the composition is about", type="reference" )
@SearchParamDefinition(name="subject", path="Composition.subject", description="Who and/or what the composition is about", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Patient"), @ca.uhn.fhir.model.api.annotation.Compartment(name="Practitioner") } )
public static final String SP_SUBJECT = "subject";
/**
* <b>Fluent Client</b> search parameter constant for <b>subject</b>
@ -2238,7 +2230,7 @@ public class Composition extends DomainResource {
* Path: <b>Composition.author</b><br>
* </p>
*/
@SearchParamDefinition(name="author", path="Composition.author", description="Who and/or what authored the composition", type="reference" )
@SearchParamDefinition(name="author", path="Composition.author", description="Who and/or what authored the composition", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Device"), @ca.uhn.fhir.model.api.annotation.Compartment(name="Patient"), @ca.uhn.fhir.model.api.annotation.Compartment(name="Practitioner"), @ca.uhn.fhir.model.api.annotation.Compartment(name="RelatedPerson") } )
public static final String SP_AUTHOR = "author";
/**
* <b>Fluent Client</b> search parameter constant for <b>author</b>
@ -2304,7 +2296,7 @@ public class Composition extends DomainResource {
* Path: <b>Composition.encounter</b><br>
* </p>
*/
@SearchParamDefinition(name="encounter", path="Composition.encounter", description="Context of the Composition", type="reference" )
@SearchParamDefinition(name="encounter", path="Composition.encounter", description="Context of the Composition", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Encounter") } )
public static final String SP_ENCOUNTER = "encounter";
/**
* <b>Fluent Client</b> search parameter constant for <b>encounter</b>
@ -2370,7 +2362,7 @@ public class Composition extends DomainResource {
* Path: <b>Composition.attester.party</b><br>
* </p>
*/
@SearchParamDefinition(name="attester", path="Composition.attester.party", description="Who attested the composition", type="reference" )
@SearchParamDefinition(name="attester", path="Composition.attester.party", description="Who attested the composition", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Patient"), @ca.uhn.fhir.model.api.annotation.Compartment(name="Practitioner") } )
public static final String SP_ATTESTER = "attester";
/**
* <b>Fluent Client</b> search parameter constant for <b>attester</b>

View File

@ -29,21 +29,19 @@ package org.hl7.fhir.dstu3.model;
*/
// Generated on Sat, Jan 30, 2016 09:18-0500 for FHIR v1.3.0
// Generated on Fri, Apr 1, 2016 17:57-0400 for FHIR v1.4.0
import java.util.*;
import org.hl7.fhir.utilities.Utilities;
import org.hl7.fhir.dstu3.model.Enumerations.*;
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.Description;
import ca.uhn.fhir.model.api.annotation.Block;
import org.hl7.fhir.dstu3.exceptions.FHIRException;
import org.hl7.fhir.dstu3.model.Enumerations.*;
import org.hl7.fhir.instance.model.api.*;
import org.hl7.fhir.dstu3.exceptions.FHIRException;
/**
* A statement of relationships from one set of concepts to one or more other concepts - either code systems or data elements, or classes in class models.
*/
@ -56,7 +54,7 @@ public class ConceptMap extends DomainResource {
* The name of an individual to contact regarding the concept map.
*/
@Child(name = "name", type = {StringType.class}, order=1, min=0, max=1, modifier=false, summary=true)
@Description(shortDefinition="Name of a individual to contact", formalDefinition="The name of an individual to contact regarding the concept map." )
@Description(shortDefinition="Name of an individual to contact", formalDefinition="The name of an individual to contact regarding the concept map." )
protected StringType name;
/**
@ -225,8 +223,7 @@ public class ConceptMap extends DomainResource {
}
public boolean isEmpty() {
return super.isEmpty() && (name == null || name.isEmpty()) && (telecom == null || telecom.isEmpty())
;
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( name, telecom);
}
public String fhirType() {
@ -241,25 +238,32 @@ public class ConceptMap extends DomainResource {
/**
* An absolute URI that identifies the Code System (if the source is a value set that crosses more than one code system).
*/
@Child(name = "codeSystem", type = {UriType.class}, order=1, min=0, max=1, modifier=false, summary=false)
@Child(name = "system", type = {UriType.class}, order=1, min=0, max=1, modifier=false, summary=false)
@Description(shortDefinition="Code System (if value set crosses code systems)", formalDefinition="An absolute URI that identifies the Code System (if the source is a value set that crosses more than one code system)." )
protected UriType codeSystem;
protected UriType system;
/**
* The specific version of the code system, as determined by the code system authority.
*/
@Child(name = "version", type = {StringType.class}, order=2, min=0, max=1, modifier=false, summary=false)
@Description(shortDefinition="Specific version of the code system", formalDefinition="The specific version of the code system, as determined by the code system authority." )
protected StringType version;
/**
* Identity (code or path) or the element/item being mapped.
*/
@Child(name = "code", type = {CodeType.class}, order=2, min=0, max=1, modifier=false, summary=false)
@Child(name = "code", type = {CodeType.class}, order=3, min=0, max=1, modifier=false, summary=false)
@Description(shortDefinition="Identifies element being mapped", formalDefinition="Identity (code or path) or the element/item being mapped." )
protected CodeType code;
/**
* A concept from the target value set that this concept maps to.
*/
@Child(name = "target", type = {}, order=3, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
@Child(name = "target", type = {}, order=4, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
@Description(shortDefinition="Concept in target system for element", formalDefinition="A concept from the target value set that this concept maps to." )
protected List<TargetElementComponent> target;
private static final long serialVersionUID = -458143877L;
private static final long serialVersionUID = -387093487L;
/**
* Constructor
@ -269,50 +273,99 @@ public class ConceptMap extends DomainResource {
}
/**
* @return {@link #codeSystem} (An absolute URI that identifies the Code System (if the source is a value set that crosses more than one code system).). This is the underlying object with id, value and extensions. The accessor "getCodeSystem" gives direct access to the value
* @return {@link #system} (An absolute URI that identifies the Code System (if the source is a value set that crosses more than one code system).). This is the underlying object with id, value and extensions. The accessor "getSystem" gives direct access to the value
*/
public UriType getCodeSystemElement() {
if (this.codeSystem == null)
public UriType getSystemElement() {
if (this.system == null)
if (Configuration.errorOnAutoCreate())
throw new Error("Attempt to auto-create SourceElementComponent.codeSystem");
throw new Error("Attempt to auto-create SourceElementComponent.system");
else if (Configuration.doAutoCreate())
this.codeSystem = new UriType(); // bb
return this.codeSystem;
this.system = new UriType(); // bb
return this.system;
}
public boolean hasCodeSystemElement() {
return this.codeSystem != null && !this.codeSystem.isEmpty();
public boolean hasSystemElement() {
return this.system != null && !this.system.isEmpty();
}
public boolean hasCodeSystem() {
return this.codeSystem != null && !this.codeSystem.isEmpty();
public boolean hasSystem() {
return this.system != null && !this.system.isEmpty();
}
/**
* @param value {@link #codeSystem} (An absolute URI that identifies the Code System (if the source is a value set that crosses more than one code system).). This is the underlying object with id, value and extensions. The accessor "getCodeSystem" gives direct access to the value
* @param value {@link #system} (An absolute URI that identifies the Code System (if the source is a value set that crosses more than one code system).). This is the underlying object with id, value and extensions. The accessor "getSystem" gives direct access to the value
*/
public SourceElementComponent setCodeSystemElement(UriType value) {
this.codeSystem = value;
public SourceElementComponent setSystemElement(UriType value) {
this.system = value;
return this;
}
/**
* @return An absolute URI that identifies the Code System (if the source is a value set that crosses more than one code system).
*/
public String getCodeSystem() {
return this.codeSystem == null ? null : this.codeSystem.getValue();
public String getSystem() {
return this.system == null ? null : this.system.getValue();
}
/**
* @param value An absolute URI that identifies the Code System (if the source is a value set that crosses more than one code system).
*/
public SourceElementComponent setCodeSystem(String value) {
public SourceElementComponent setSystem(String value) {
if (Utilities.noString(value))
this.codeSystem = null;
this.system = null;
else {
if (this.codeSystem == null)
this.codeSystem = new UriType();
this.codeSystem.setValue(value);
if (this.system == null)
this.system = new UriType();
this.system.setValue(value);
}
return this;
}
/**
* @return {@link #version} (The specific version of the code system, as determined by the code system authority.). This is the underlying object with id, value and extensions. The accessor "getVersion" gives direct access to the value
*/
public StringType getVersionElement() {
if (this.version == null)
if (Configuration.errorOnAutoCreate())
throw new Error("Attempt to auto-create SourceElementComponent.version");
else if (Configuration.doAutoCreate())
this.version = new StringType(); // bb
return this.version;
}
public boolean hasVersionElement() {
return this.version != null && !this.version.isEmpty();
}
public boolean hasVersion() {
return this.version != null && !this.version.isEmpty();
}
/**
* @param value {@link #version} (The specific version of the code system, as determined by the code system authority.). This is the underlying object with id, value and extensions. The accessor "getVersion" gives direct access to the value
*/
public SourceElementComponent setVersionElement(StringType value) {
this.version = value;
return this;
}
/**
* @return The specific version of the code system, as determined by the code system authority.
*/
public String getVersion() {
return this.version == null ? null : this.version.getValue();
}
/**
* @param value The specific version of the code system, as determined by the code system authority.
*/
public SourceElementComponent setVersion(String value) {
if (Utilities.noString(value))
this.version = null;
else {
if (this.version == null)
this.version = new StringType();
this.version.setValue(value);
}
return this;
}
@ -408,15 +461,18 @@ public class ConceptMap extends DomainResource {
protected void listChildren(List<Property> childrenList) {
super.listChildren(childrenList);
childrenList.add(new Property("codeSystem", "uri", "An absolute URI that identifies the Code System (if the source is a value set that crosses more than one code system).", 0, java.lang.Integer.MAX_VALUE, codeSystem));
childrenList.add(new Property("system", "uri", "An absolute URI that identifies the Code System (if the source is a value set that crosses more than one code system).", 0, java.lang.Integer.MAX_VALUE, system));
childrenList.add(new Property("version", "string", "The specific version of the code system, as determined by the code system authority.", 0, java.lang.Integer.MAX_VALUE, version));
childrenList.add(new Property("code", "code", "Identity (code or path) or the element/item being mapped.", 0, java.lang.Integer.MAX_VALUE, code));
childrenList.add(new Property("target", "", "A concept from the target value set that this concept maps to.", 0, java.lang.Integer.MAX_VALUE, target));
}
@Override
public void setProperty(String name, Base value) throws FHIRException {
if (name.equals("codeSystem"))
this.codeSystem = castToUri(value); // UriType
if (name.equals("system"))
this.system = castToUri(value); // UriType
else if (name.equals("version"))
this.version = castToString(value); // StringType
else if (name.equals("code"))
this.code = castToCode(value); // CodeType
else if (name.equals("target"))
@ -427,8 +483,11 @@ public class ConceptMap extends DomainResource {
@Override
public Base addChild(String name) throws FHIRException {
if (name.equals("codeSystem")) {
throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.codeSystem");
if (name.equals("system")) {
throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.system");
}
else if (name.equals("version")) {
throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.version");
}
else if (name.equals("code")) {
throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.code");
@ -443,7 +502,8 @@ public class ConceptMap extends DomainResource {
public SourceElementComponent copy() {
SourceElementComponent dst = new SourceElementComponent();
copyValues(dst);
dst.codeSystem = codeSystem == null ? null : codeSystem.copy();
dst.system = system == null ? null : system.copy();
dst.version = version == null ? null : version.copy();
dst.code = code == null ? null : code.copy();
if (target != null) {
dst.target = new ArrayList<TargetElementComponent>();
@ -460,8 +520,8 @@ public class ConceptMap extends DomainResource {
if (!(other instanceof SourceElementComponent))
return false;
SourceElementComponent o = (SourceElementComponent) other;
return compareDeep(codeSystem, o.codeSystem, true) && compareDeep(code, o.code, true) && compareDeep(target, o.target, true)
;
return compareDeep(system, o.system, true) && compareDeep(version, o.version, true) && compareDeep(code, o.code, true)
&& compareDeep(target, o.target, true);
}
@Override
@ -471,12 +531,13 @@ public class ConceptMap extends DomainResource {
if (!(other instanceof SourceElementComponent))
return false;
SourceElementComponent o = (SourceElementComponent) other;
return compareValues(codeSystem, o.codeSystem, true) && compareValues(code, o.code, true);
return compareValues(system, o.system, true) && compareValues(version, o.version, true) && compareValues(code, o.code, true)
;
}
public boolean isEmpty() {
return super.isEmpty() && (codeSystem == null || codeSystem.isEmpty()) && (code == null || code.isEmpty())
&& (target == null || target.isEmpty());
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( system, version, code, target
);
}
public String fhirType() {
@ -491,46 +552,53 @@ public class ConceptMap extends DomainResource {
/**
* An absolute URI that identifies the code system of the target code (if the target is a value set that cross code systems).
*/
@Child(name = "codeSystem", type = {UriType.class}, order=1, min=0, max=1, modifier=false, summary=false)
@Child(name = "system", type = {UriType.class}, order=1, min=0, max=1, modifier=false, summary=false)
@Description(shortDefinition="System of the target (if necessary)", formalDefinition="An absolute URI that identifies the code system of the target code (if the target is a value set that cross code systems)." )
protected UriType codeSystem;
protected UriType system;
/**
* The specific version of the code system, as determined by the code system authority.
*/
@Child(name = "version", type = {StringType.class}, order=2, min=0, max=1, modifier=false, summary=false)
@Description(shortDefinition="Specific version of the code system", formalDefinition="The specific version of the code system, as determined by the code system authority." )
protected StringType version;
/**
* Identity (code or path) or the element/item that the map refers to.
*/
@Child(name = "code", type = {CodeType.class}, order=2, min=0, max=1, modifier=false, summary=false)
@Child(name = "code", type = {CodeType.class}, order=3, min=0, max=1, modifier=false, summary=false)
@Description(shortDefinition="Code that identifies the target element", formalDefinition="Identity (code or path) or the element/item that the map refers to." )
protected CodeType code;
/**
* The equivalence between the source and target concepts (counting for the dependencies and products). The equivalence is read from target to source (e.g. the target is 'wider' than the source).
*/
@Child(name = "equivalence", type = {CodeType.class}, order=3, min=1, max=1, modifier=true, summary=false)
@Child(name = "equivalence", type = {CodeType.class}, order=4, min=1, max=1, modifier=true, summary=false)
@Description(shortDefinition="equivalent | equal | wider | subsumes | narrower | specializes | inexact | unmatched | disjoint", formalDefinition="The equivalence between the source and target concepts (counting for the dependencies and products). The equivalence is read from target to source (e.g. the target is 'wider' than the source)." )
protected Enumeration<ConceptMapEquivalence> equivalence;
/**
* A description of status/issues in mapping that conveys additional information not represented in the structured data.
*/
@Child(name = "comments", type = {StringType.class}, order=4, min=0, max=1, modifier=false, summary=false)
@Child(name = "comments", type = {StringType.class}, order=5, min=0, max=1, modifier=false, summary=false)
@Description(shortDefinition="Description of status/issues in mapping", formalDefinition="A description of status/issues in mapping that conveys additional information not represented in the structured data." )
protected StringType comments;
/**
* A set of additional dependencies for this mapping to hold. This mapping is only applicable if the specified element can be resolved, and it has the specified value.
*/
@Child(name = "dependsOn", type = {}, order=5, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
@Child(name = "dependsOn", type = {}, order=6, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
@Description(shortDefinition="Other elements required for this mapping (from context)", formalDefinition="A set of additional dependencies for this mapping to hold. This mapping is only applicable if the specified element can be resolved, and it has the specified value." )
protected List<OtherElementComponent> dependsOn;
/**
* A set of additional outcomes from this mapping to other elements. To properly execute this mapping, the specified element must be mapped to some data element or source that is in context. The mapping may still be useful without a place for the additional data elements, but the equivalence cannot be relied on.
*/
@Child(name = "product", type = {OtherElementComponent.class}, order=6, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
@Child(name = "product", type = {OtherElementComponent.class}, order=7, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
@Description(shortDefinition="Other concepts that this mapping also produces", formalDefinition="A set of additional outcomes from this mapping to other elements. To properly execute this mapping, the specified element must be mapped to some data element or source that is in context. The mapping may still be useful without a place for the additional data elements, but the equivalence cannot be relied on." )
protected List<OtherElementComponent> product;
private static final long serialVersionUID = -804990059L;
private static final long serialVersionUID = 2147112127L;
/**
* Constructor
@ -548,50 +616,99 @@ public class ConceptMap extends DomainResource {
}
/**
* @return {@link #codeSystem} (An absolute URI that identifies the code system of the target code (if the target is a value set that cross code systems).). This is the underlying object with id, value and extensions. The accessor "getCodeSystem" gives direct access to the value
* @return {@link #system} (An absolute URI that identifies the code system of the target code (if the target is a value set that cross code systems).). This is the underlying object with id, value and extensions. The accessor "getSystem" gives direct access to the value
*/
public UriType getCodeSystemElement() {
if (this.codeSystem == null)
public UriType getSystemElement() {
if (this.system == null)
if (Configuration.errorOnAutoCreate())
throw new Error("Attempt to auto-create TargetElementComponent.codeSystem");
throw new Error("Attempt to auto-create TargetElementComponent.system");
else if (Configuration.doAutoCreate())
this.codeSystem = new UriType(); // bb
return this.codeSystem;
this.system = new UriType(); // bb
return this.system;
}
public boolean hasCodeSystemElement() {
return this.codeSystem != null && !this.codeSystem.isEmpty();
public boolean hasSystemElement() {
return this.system != null && !this.system.isEmpty();
}
public boolean hasCodeSystem() {
return this.codeSystem != null && !this.codeSystem.isEmpty();
public boolean hasSystem() {
return this.system != null && !this.system.isEmpty();
}
/**
* @param value {@link #codeSystem} (An absolute URI that identifies the code system of the target code (if the target is a value set that cross code systems).). This is the underlying object with id, value and extensions. The accessor "getCodeSystem" gives direct access to the value
* @param value {@link #system} (An absolute URI that identifies the code system of the target code (if the target is a value set that cross code systems).). This is the underlying object with id, value and extensions. The accessor "getSystem" gives direct access to the value
*/
public TargetElementComponent setCodeSystemElement(UriType value) {
this.codeSystem = value;
public TargetElementComponent setSystemElement(UriType value) {
this.system = value;
return this;
}
/**
* @return An absolute URI that identifies the code system of the target code (if the target is a value set that cross code systems).
*/
public String getCodeSystem() {
return this.codeSystem == null ? null : this.codeSystem.getValue();
public String getSystem() {
return this.system == null ? null : this.system.getValue();
}
/**
* @param value An absolute URI that identifies the code system of the target code (if the target is a value set that cross code systems).
*/
public TargetElementComponent setCodeSystem(String value) {
public TargetElementComponent setSystem(String value) {
if (Utilities.noString(value))
this.codeSystem = null;
this.system = null;
else {
if (this.codeSystem == null)
this.codeSystem = new UriType();
this.codeSystem.setValue(value);
if (this.system == null)
this.system = new UriType();
this.system.setValue(value);
}
return this;
}
/**
* @return {@link #version} (The specific version of the code system, as determined by the code system authority.). This is the underlying object with id, value and extensions. The accessor "getVersion" gives direct access to the value
*/
public StringType getVersionElement() {
if (this.version == null)
if (Configuration.errorOnAutoCreate())
throw new Error("Attempt to auto-create TargetElementComponent.version");
else if (Configuration.doAutoCreate())
this.version = new StringType(); // bb
return this.version;
}
public boolean hasVersionElement() {
return this.version != null && !this.version.isEmpty();
}
public boolean hasVersion() {
return this.version != null && !this.version.isEmpty();
}
/**
* @param value {@link #version} (The specific version of the code system, as determined by the code system authority.). This is the underlying object with id, value and extensions. The accessor "getVersion" gives direct access to the value
*/
public TargetElementComponent setVersionElement(StringType value) {
this.version = value;
return this;
}
/**
* @return The specific version of the code system, as determined by the code system authority.
*/
public String getVersion() {
return this.version == null ? null : this.version.getValue();
}
/**
* @param value The specific version of the code system, as determined by the code system authority.
*/
public TargetElementComponent setVersion(String value) {
if (Utilities.noString(value))
this.version = null;
else {
if (this.version == null)
this.version = new StringType();
this.version.setValue(value);
}
return this;
}
@ -821,7 +938,8 @@ public class ConceptMap extends DomainResource {
protected void listChildren(List<Property> childrenList) {
super.listChildren(childrenList);
childrenList.add(new Property("codeSystem", "uri", "An absolute URI that identifies the code system of the target code (if the target is a value set that cross code systems).", 0, java.lang.Integer.MAX_VALUE, codeSystem));
childrenList.add(new Property("system", "uri", "An absolute URI that identifies the code system of the target code (if the target is a value set that cross code systems).", 0, java.lang.Integer.MAX_VALUE, system));
childrenList.add(new Property("version", "string", "The specific version of the code system, as determined by the code system authority.", 0, java.lang.Integer.MAX_VALUE, version));
childrenList.add(new Property("code", "code", "Identity (code or path) or the element/item that the map refers to.", 0, java.lang.Integer.MAX_VALUE, code));
childrenList.add(new Property("equivalence", "code", "The equivalence between the source and target concepts (counting for the dependencies and products). The equivalence is read from target to source (e.g. the target is 'wider' than the source).", 0, java.lang.Integer.MAX_VALUE, equivalence));
childrenList.add(new Property("comments", "string", "A description of status/issues in mapping that conveys additional information not represented in the structured data.", 0, java.lang.Integer.MAX_VALUE, comments));
@ -831,8 +949,10 @@ public class ConceptMap extends DomainResource {
@Override
public void setProperty(String name, Base value) throws FHIRException {
if (name.equals("codeSystem"))
this.codeSystem = castToUri(value); // UriType
if (name.equals("system"))
this.system = castToUri(value); // UriType
else if (name.equals("version"))
this.version = castToString(value); // StringType
else if (name.equals("code"))
this.code = castToCode(value); // CodeType
else if (name.equals("equivalence"))
@ -849,8 +969,11 @@ public class ConceptMap extends DomainResource {
@Override
public Base addChild(String name) throws FHIRException {
if (name.equals("codeSystem")) {
throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.codeSystem");
if (name.equals("system")) {
throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.system");
}
else if (name.equals("version")) {
throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.version");
}
else if (name.equals("code")) {
throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.code");
@ -874,7 +997,8 @@ public class ConceptMap extends DomainResource {
public TargetElementComponent copy() {
TargetElementComponent dst = new TargetElementComponent();
copyValues(dst);
dst.codeSystem = codeSystem == null ? null : codeSystem.copy();
dst.system = system == null ? null : system.copy();
dst.version = version == null ? null : version.copy();
dst.code = code == null ? null : code.copy();
dst.equivalence = equivalence == null ? null : equivalence.copy();
dst.comments = comments == null ? null : comments.copy();
@ -898,9 +1022,9 @@ public class ConceptMap extends DomainResource {
if (!(other instanceof TargetElementComponent))
return false;
TargetElementComponent o = (TargetElementComponent) other;
return compareDeep(codeSystem, o.codeSystem, true) && compareDeep(code, o.code, true) && compareDeep(equivalence, o.equivalence, true)
&& compareDeep(comments, o.comments, true) && compareDeep(dependsOn, o.dependsOn, true) && compareDeep(product, o.product, true)
;
return compareDeep(system, o.system, true) && compareDeep(version, o.version, true) && compareDeep(code, o.code, true)
&& compareDeep(equivalence, o.equivalence, true) && compareDeep(comments, o.comments, true) && compareDeep(dependsOn, o.dependsOn, true)
&& compareDeep(product, o.product, true);
}
@Override
@ -910,14 +1034,13 @@ public class ConceptMap extends DomainResource {
if (!(other instanceof TargetElementComponent))
return false;
TargetElementComponent o = (TargetElementComponent) other;
return compareValues(codeSystem, o.codeSystem, true) && compareValues(code, o.code, true) && compareValues(equivalence, o.equivalence, true)
&& compareValues(comments, o.comments, true);
return compareValues(system, o.system, true) && compareValues(version, o.version, true) && compareValues(code, o.code, true)
&& compareValues(equivalence, o.equivalence, true) && compareValues(comments, o.comments, true);
}
public boolean isEmpty() {
return super.isEmpty() && (codeSystem == null || codeSystem.isEmpty()) && (code == null || code.isEmpty())
&& (equivalence == null || equivalence.isEmpty()) && (comments == null || comments.isEmpty())
&& (dependsOn == null || dependsOn.isEmpty()) && (product == null || product.isEmpty());
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( system, version, code, equivalence
, comments, dependsOn, product);
}
public String fhirType() {
@ -939,9 +1062,9 @@ public class ConceptMap extends DomainResource {
/**
* An absolute URI that identifies the code system of the dependency code (if the source/dependency is a value set that crosses code systems).
*/
@Child(name = "codeSystem", type = {UriType.class}, order=2, min=1, max=1, modifier=false, summary=false)
@Child(name = "system", type = {UriType.class}, order=2, min=1, max=1, modifier=false, summary=false)
@Description(shortDefinition="Code System (if necessary)", formalDefinition="An absolute URI that identifies the code system of the dependency code (if the source/dependency is a value set that crosses code systems)." )
protected UriType codeSystem;
protected UriType system;
/**
* Identity (code or path) or the element/item/ValueSet that the map depends on / refers to.
@ -950,7 +1073,7 @@ public class ConceptMap extends DomainResource {
@Description(shortDefinition="Value of the referenced element", formalDefinition="Identity (code or path) or the element/item/ValueSet that the map depends on / refers to." )
protected StringType code;
private static final long serialVersionUID = 1488522448L;
private static final long serialVersionUID = 1365816253L;
/**
* Constructor
@ -962,10 +1085,10 @@ public class ConceptMap extends DomainResource {
/**
* Constructor
*/
public OtherElementComponent(UriType element, UriType codeSystem, StringType code) {
public OtherElementComponent(UriType element, UriType system, StringType code) {
super();
this.element = element;
this.codeSystem = codeSystem;
this.system = system;
this.code = code;
}
@ -1015,47 +1138,47 @@ public class ConceptMap extends DomainResource {
}
/**
* @return {@link #codeSystem} (An absolute URI that identifies the code system of the dependency code (if the source/dependency is a value set that crosses code systems).). This is the underlying object with id, value and extensions. The accessor "getCodeSystem" gives direct access to the value
* @return {@link #system} (An absolute URI that identifies the code system of the dependency code (if the source/dependency is a value set that crosses code systems).). This is the underlying object with id, value and extensions. The accessor "getSystem" gives direct access to the value
*/
public UriType getCodeSystemElement() {
if (this.codeSystem == null)
public UriType getSystemElement() {
if (this.system == null)
if (Configuration.errorOnAutoCreate())
throw new Error("Attempt to auto-create OtherElementComponent.codeSystem");
throw new Error("Attempt to auto-create OtherElementComponent.system");
else if (Configuration.doAutoCreate())
this.codeSystem = new UriType(); // bb
return this.codeSystem;
this.system = new UriType(); // bb
return this.system;
}
public boolean hasCodeSystemElement() {
return this.codeSystem != null && !this.codeSystem.isEmpty();
public boolean hasSystemElement() {
return this.system != null && !this.system.isEmpty();
}
public boolean hasCodeSystem() {
return this.codeSystem != null && !this.codeSystem.isEmpty();
public boolean hasSystem() {
return this.system != null && !this.system.isEmpty();
}
/**
* @param value {@link #codeSystem} (An absolute URI that identifies the code system of the dependency code (if the source/dependency is a value set that crosses code systems).). This is the underlying object with id, value and extensions. The accessor "getCodeSystem" gives direct access to the value
* @param value {@link #system} (An absolute URI that identifies the code system of the dependency code (if the source/dependency is a value set that crosses code systems).). This is the underlying object with id, value and extensions. The accessor "getSystem" gives direct access to the value
*/
public OtherElementComponent setCodeSystemElement(UriType value) {
this.codeSystem = value;
public OtherElementComponent setSystemElement(UriType value) {
this.system = value;
return this;
}
/**
* @return An absolute URI that identifies the code system of the dependency code (if the source/dependency is a value set that crosses code systems).
*/
public String getCodeSystem() {
return this.codeSystem == null ? null : this.codeSystem.getValue();
public String getSystem() {
return this.system == null ? null : this.system.getValue();
}
/**
* @param value An absolute URI that identifies the code system of the dependency code (if the source/dependency is a value set that crosses code systems).
*/
public OtherElementComponent setCodeSystem(String value) {
if (this.codeSystem == null)
this.codeSystem = new UriType();
this.codeSystem.setValue(value);
public OtherElementComponent setSystem(String value) {
if (this.system == null)
this.system = new UriType();
this.system.setValue(value);
return this;
}
@ -1107,7 +1230,7 @@ public class ConceptMap extends DomainResource {
protected void listChildren(List<Property> childrenList) {
super.listChildren(childrenList);
childrenList.add(new Property("element", "uri", "A reference to a specific concept that holds a coded value. This can be an element in a FHIR resource, or a specific reference to a data element in a different specification (e.g. HL7 v2) or a general reference to a kind of data field, or a reference to a value set with an appropriately narrow definition.", 0, java.lang.Integer.MAX_VALUE, element));
childrenList.add(new Property("codeSystem", "uri", "An absolute URI that identifies the code system of the dependency code (if the source/dependency is a value set that crosses code systems).", 0, java.lang.Integer.MAX_VALUE, codeSystem));
childrenList.add(new Property("system", "uri", "An absolute URI that identifies the code system of the dependency code (if the source/dependency is a value set that crosses code systems).", 0, java.lang.Integer.MAX_VALUE, system));
childrenList.add(new Property("code", "string", "Identity (code or path) or the element/item/ValueSet that the map depends on / refers to.", 0, java.lang.Integer.MAX_VALUE, code));
}
@ -1115,8 +1238,8 @@ public class ConceptMap extends DomainResource {
public void setProperty(String name, Base value) throws FHIRException {
if (name.equals("element"))
this.element = castToUri(value); // UriType
else if (name.equals("codeSystem"))
this.codeSystem = castToUri(value); // UriType
else if (name.equals("system"))
this.system = castToUri(value); // UriType
else if (name.equals("code"))
this.code = castToString(value); // StringType
else
@ -1128,8 +1251,8 @@ public class ConceptMap extends DomainResource {
if (name.equals("element")) {
throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.element");
}
else if (name.equals("codeSystem")) {
throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.codeSystem");
else if (name.equals("system")) {
throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.system");
}
else if (name.equals("code")) {
throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.code");
@ -1142,7 +1265,7 @@ public class ConceptMap extends DomainResource {
OtherElementComponent dst = new OtherElementComponent();
copyValues(dst);
dst.element = element == null ? null : element.copy();
dst.codeSystem = codeSystem == null ? null : codeSystem.copy();
dst.system = system == null ? null : system.copy();
dst.code = code == null ? null : code.copy();
return dst;
}
@ -1154,7 +1277,7 @@ public class ConceptMap extends DomainResource {
if (!(other instanceof OtherElementComponent))
return false;
OtherElementComponent o = (OtherElementComponent) other;
return compareDeep(element, o.element, true) && compareDeep(codeSystem, o.codeSystem, true) && compareDeep(code, o.code, true)
return compareDeep(element, o.element, true) && compareDeep(system, o.system, true) && compareDeep(code, o.code, true)
;
}
@ -1165,13 +1288,12 @@ public class ConceptMap extends DomainResource {
if (!(other instanceof OtherElementComponent))
return false;
OtherElementComponent o = (OtherElementComponent) other;
return compareValues(element, o.element, true) && compareValues(codeSystem, o.codeSystem, true) && compareValues(code, o.code, true)
return compareValues(element, o.element, true) && compareValues(system, o.system, true) && compareValues(code, o.code, true)
;
}
public boolean isEmpty() {
return super.isEmpty() && (element == null || element.isEmpty()) && (codeSystem == null || codeSystem.isEmpty())
&& (code == null || code.isEmpty());
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( element, system, code);
}
public String fhirType() {
@ -2224,13 +2346,9 @@ public class ConceptMap extends DomainResource {
}
public boolean isEmpty() {
return super.isEmpty() && (url == null || url.isEmpty()) && (identifier == null || identifier.isEmpty())
&& (version == null || version.isEmpty()) && (name == null || name.isEmpty()) && (status == null || status.isEmpty())
&& (experimental == null || experimental.isEmpty()) && (publisher == null || publisher.isEmpty())
&& (contact == null || contact.isEmpty()) && (date == null || date.isEmpty()) && (description == null || description.isEmpty())
&& (useContext == null || useContext.isEmpty()) && (requirements == null || requirements.isEmpty())
&& (copyright == null || copyright.isEmpty()) && (source == null || source.isEmpty()) && (target == null || target.isEmpty())
&& (element == null || element.isEmpty());
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( url, identifier, version, name
, status, experimental, publisher, contact, date, description, useContext, requirements
, copyright, source, target, element);
}
@Override
@ -2298,6 +2416,26 @@ public class ConceptMap extends DomainResource {
*/
public static final ca.uhn.fhir.rest.gclient.UriClientParam PRODUCT = new ca.uhn.fhir.rest.gclient.UriClientParam(SP_PRODUCT);
/**
* Search parameter: <b>target-system</b>
* <p>
* Description: <b>System of the target (if necessary)</b><br>
* Type: <b>uri</b><br>
* Path: <b>ConceptMap.element.target.system</b><br>
* </p>
*/
@SearchParamDefinition(name="target-system", path="ConceptMap.element.target.system", description="System of the target (if necessary)", type="uri" )
public static final String SP_TARGET_SYSTEM = "target-system";
/**
* <b>Fluent Client</b> search parameter constant for <b>target-system</b>
* <p>
* Description: <b>System of the target (if necessary)</b><br>
* Type: <b>uri</b><br>
* Path: <b>ConceptMap.element.target.system</b><br>
* </p>
*/
public static final ca.uhn.fhir.rest.gclient.UriClientParam TARGET_SYSTEM = new ca.uhn.fhir.rest.gclient.UriClientParam(SP_TARGET_SYSTEM);
/**
* Search parameter: <b>dependson</b>
* <p>
@ -2338,26 +2476,6 @@ public class ConceptMap extends DomainResource {
*/
public static final ca.uhn.fhir.rest.gclient.StringClientParam DESCRIPTION = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_DESCRIPTION);
/**
* Search parameter: <b>targetsystem</b>
* <p>
* Description: <b>System of the target (if necessary)</b><br>
* Type: <b>uri</b><br>
* Path: <b>ConceptMap.element.target.codeSystem</b><br>
* </p>
*/
@SearchParamDefinition(name="targetsystem", path="ConceptMap.element.target.codeSystem", description="System of the target (if necessary)", type="uri" )
public static final String SP_TARGETSYSTEM = "targetsystem";
/**
* <b>Fluent Client</b> search parameter constant for <b>targetsystem</b>
* <p>
* Description: <b>System of the target (if necessary)</b><br>
* Type: <b>uri</b><br>
* Path: <b>ConceptMap.element.target.codeSystem</b><br>
* </p>
*/
public static final ca.uhn.fhir.rest.gclient.UriClientParam TARGETSYSTEM = new ca.uhn.fhir.rest.gclient.UriClientParam(SP_TARGETSYSTEM);
/**
* Search parameter: <b>source</b>
* <p>
@ -2404,26 +2522,6 @@ public class ConceptMap extends DomainResource {
*/
public static final ca.uhn.fhir.rest.gclient.TokenClientParam VERSION = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_VERSION);
/**
* Search parameter: <b>sourcesystem</b>
* <p>
* Description: <b>Code System (if value set crosses code systems)</b><br>
* Type: <b>uri</b><br>
* Path: <b>ConceptMap.element.codeSystem</b><br>
* </p>
*/
@SearchParamDefinition(name="sourcesystem", path="ConceptMap.element.codeSystem", description="Code System (if value set crosses code systems)", type="uri" )
public static final String SP_SOURCESYSTEM = "sourcesystem";
/**
* <b>Fluent Client</b> search parameter constant for <b>sourcesystem</b>
* <p>
* Description: <b>Code System (if value set crosses code systems)</b><br>
* Type: <b>uri</b><br>
* Path: <b>ConceptMap.element.codeSystem</b><br>
* </p>
*/
public static final ca.uhn.fhir.rest.gclient.UriClientParam SOURCESYSTEM = new ca.uhn.fhir.rest.gclient.UriClientParam(SP_SOURCESYSTEM);
/**
* Search parameter: <b>url</b>
* <p>
@ -2471,50 +2569,50 @@ public class ConceptMap extends DomainResource {
public static final ca.uhn.fhir.model.api.Include INCLUDE_TARGET = new ca.uhn.fhir.model.api.Include("ConceptMap:target").toLocked();
/**
* Search parameter: <b>sourcecode</b>
* Search parameter: <b>source-code</b>
* <p>
* Description: <b>Identifies element being mapped</b><br>
* Type: <b>token</b><br>
* Path: <b>ConceptMap.element.code</b><br>
* </p>
*/
@SearchParamDefinition(name="sourcecode", path="ConceptMap.element.code", description="Identifies element being mapped", type="token" )
public static final String SP_SOURCECODE = "sourcecode";
@SearchParamDefinition(name="source-code", path="ConceptMap.element.code", description="Identifies element being mapped", type="token" )
public static final String SP_SOURCE_CODE = "source-code";
/**
* <b>Fluent Client</b> search parameter constant for <b>sourcecode</b>
* <b>Fluent Client</b> search parameter constant for <b>source-code</b>
* <p>
* Description: <b>Identifies element being mapped</b><br>
* Type: <b>token</b><br>
* Path: <b>ConceptMap.element.code</b><br>
* </p>
*/
public static final ca.uhn.fhir.rest.gclient.TokenClientParam SOURCECODE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_SOURCECODE);
public static final ca.uhn.fhir.rest.gclient.TokenClientParam SOURCE_CODE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_SOURCE_CODE);
/**
* Search parameter: <b>sourceuri</b>
* Search parameter: <b>source-uri</b>
* <p>
* Description: <b>Identifies the source of the concepts which are being mapped</b><br>
* Type: <b>reference</b><br>
* Path: <b>ConceptMap.sourceUri</b><br>
* </p>
*/
@SearchParamDefinition(name="sourceuri", path="ConceptMap.sourceUri", description="Identifies the source of the concepts which are being mapped", type="reference" )
public static final String SP_SOURCEURI = "sourceuri";
@SearchParamDefinition(name="source-uri", path="ConceptMap.sourceUri", description="Identifies the source of the concepts which are being mapped", type="reference" )
public static final String SP_SOURCE_URI = "source-uri";
/**
* <b>Fluent Client</b> search parameter constant for <b>sourceuri</b>
* <b>Fluent Client</b> search parameter constant for <b>source-uri</b>
* <p>
* Description: <b>Identifies the source of the concepts which are being mapped</b><br>
* Type: <b>reference</b><br>
* Path: <b>ConceptMap.sourceUri</b><br>
* </p>
*/
public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam SOURCEURI = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_SOURCEURI);
public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam SOURCE_URI = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_SOURCE_URI);
/**
* Constant for fluent queries to be used to add include statements. Specifies
* the path value of "<b>ConceptMap:sourceuri</b>".
* the path value of "<b>ConceptMap:source-uri</b>".
*/
public static final ca.uhn.fhir.model.api.Include INCLUDE_SOURCEURI = new ca.uhn.fhir.model.api.Include("ConceptMap:sourceuri").toLocked();
public static final ca.uhn.fhir.model.api.Include INCLUDE_SOURCE_URI = new ca.uhn.fhir.model.api.Include("ConceptMap:source-uri").toLocked();
/**
* Search parameter: <b>name</b>
@ -2577,24 +2675,44 @@ public class ConceptMap extends DomainResource {
public static final ca.uhn.fhir.rest.gclient.StringClientParam PUBLISHER = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_PUBLISHER);
/**
* Search parameter: <b>targetcode</b>
* Search parameter: <b>source-system</b>
* <p>
* Description: <b>Code that identifies the target element</b><br>
* Type: <b>token</b><br>
* Path: <b>ConceptMap.element.target.code</b><br>
* Description: <b>Code System (if value set crosses code systems)</b><br>
* Type: <b>uri</b><br>
* Path: <b>ConceptMap.element.system</b><br>
* </p>
*/
@SearchParamDefinition(name="targetcode", path="ConceptMap.element.target.code", description="Code that identifies the target element", type="token" )
public static final String SP_TARGETCODE = "targetcode";
@SearchParamDefinition(name="source-system", path="ConceptMap.element.system", description="Code System (if value set crosses code systems)", type="uri" )
public static final String SP_SOURCE_SYSTEM = "source-system";
/**
* <b>Fluent Client</b> search parameter constant for <b>targetcode</b>
* <b>Fluent Client</b> search parameter constant for <b>source-system</b>
* <p>
* Description: <b>Code System (if value set crosses code systems)</b><br>
* Type: <b>uri</b><br>
* Path: <b>ConceptMap.element.system</b><br>
* </p>
*/
public static final ca.uhn.fhir.rest.gclient.UriClientParam SOURCE_SYSTEM = new ca.uhn.fhir.rest.gclient.UriClientParam(SP_SOURCE_SYSTEM);
/**
* Search parameter: <b>target-code</b>
* <p>
* Description: <b>Code that identifies the target element</b><br>
* Type: <b>token</b><br>
* Path: <b>ConceptMap.element.target.code</b><br>
* </p>
*/
public static final ca.uhn.fhir.rest.gclient.TokenClientParam TARGETCODE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_TARGETCODE);
@SearchParamDefinition(name="target-code", path="ConceptMap.element.target.code", description="Code that identifies the target element", type="token" )
public static final String SP_TARGET_CODE = "target-code";
/**
* <b>Fluent Client</b> search parameter constant for <b>target-code</b>
* <p>
* Description: <b>Code that identifies the target element</b><br>
* Type: <b>token</b><br>
* Path: <b>ConceptMap.element.target.code</b><br>
* </p>
*/
public static final ca.uhn.fhir.rest.gclient.TokenClientParam TARGET_CODE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_TARGET_CODE);
/**
* Search parameter: <b>status</b>

View File

@ -29,7 +29,7 @@ package org.hl7.fhir.dstu3.model;
*/
// Generated on Sat, Jan 30, 2016 09:18-0500 for FHIR v1.3.0
// Generated on Fri, Apr 1, 2016 17:57-0400 for FHIR v1.4.0
import java.util.*;
@ -39,9 +39,8 @@ import ca.uhn.fhir.model.api.annotation.SearchParamDefinition;
import ca.uhn.fhir.model.api.annotation.Child;
import ca.uhn.fhir.model.api.annotation.Description;
import ca.uhn.fhir.model.api.annotation.Block;
import org.hl7.fhir.dstu3.exceptions.FHIRException;
import org.hl7.fhir.instance.model.api.*;
import org.hl7.fhir.dstu3.exceptions.FHIRException;
/**
* Use to record detailed information about conditions, problems or diagnoses recognized by a clinician. There are many uses including: recording a diagnosis during an encounter; populating a problem list or a summary statement, such as a discharge summary.
*/
@ -364,8 +363,7 @@ public class Condition extends DomainResource {
}
public boolean isEmpty() {
return super.isEmpty() && (summary == null || summary.isEmpty()) && (assessment == null || assessment.isEmpty())
;
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( summary, assessment);
}
public String fhirType() {
@ -540,8 +538,7 @@ public class Condition extends DomainResource {
}
public boolean isEmpty() {
return super.isEmpty() && (code == null || code.isEmpty()) && (detail == null || detail.isEmpty())
;
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( code, detail);
}
public String fhirType() {
@ -1642,13 +1639,9 @@ public class Condition extends DomainResource {
}
public boolean isEmpty() {
return super.isEmpty() && (identifier == null || identifier.isEmpty()) && (patient == null || patient.isEmpty())
&& (encounter == null || encounter.isEmpty()) && (asserter == null || asserter.isEmpty())
&& (dateRecorded == null || dateRecorded.isEmpty()) && (code == null || code.isEmpty()) && (category == null || category.isEmpty())
&& (clinicalStatus == null || clinicalStatus.isEmpty()) && (verificationStatus == null || verificationStatus.isEmpty())
&& (severity == null || severity.isEmpty()) && (onset == null || onset.isEmpty()) && (abatement == null || abatement.isEmpty())
&& (stage == null || stage.isEmpty()) && (evidence == null || evidence.isEmpty()) && (bodySite == null || bodySite.isEmpty())
&& (notes == null || notes.isEmpty());
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( identifier, patient, encounter
, asserter, dateRecorded, code, category, clinicalStatus, verificationStatus, severity
, onset, abatement, stage, evidence, bodySite, notes);
}
@Override
@ -1784,7 +1777,7 @@ public class Condition extends DomainResource {
* Path: <b>Condition.encounter</b><br>
* </p>
*/
@SearchParamDefinition(name="encounter", path="Condition.encounter", description="Encounter when condition first asserted", type="reference" )
@SearchParamDefinition(name="encounter", path="Condition.encounter", description="Encounter when condition first asserted", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Encounter") } )
public static final String SP_ENCOUNTER = "encounter";
/**
* <b>Fluent Client</b> search parameter constant for <b>encounter</b>
@ -1830,7 +1823,7 @@ public class Condition extends DomainResource {
* Path: <b>Condition.asserter</b><br>
* </p>
*/
@SearchParamDefinition(name="asserter", path="Condition.asserter", description="Person who asserts this condition", type="reference" )
@SearchParamDefinition(name="asserter", path="Condition.asserter", description="Person who asserts this condition", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Practitioner") } )
public static final String SP_ASSERTER = "asserter";
/**
* <b>Fluent Client</b> search parameter constant for <b>asserter</b>
@ -1896,7 +1889,7 @@ public class Condition extends DomainResource {
* Path: <b>Condition.patient</b><br>
* </p>
*/
@SearchParamDefinition(name="patient", path="Condition.patient", description="Who has the condition?", type="reference" )
@SearchParamDefinition(name="patient", path="Condition.patient", description="Who has the condition?", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Patient") } )
public static final String SP_PATIENT = "patient";
/**
* <b>Fluent Client</b> search parameter constant for <b>patient</b>

View File

@ -29,21 +29,19 @@ package org.hl7.fhir.dstu3.model;
*/
// Generated on Sat, Jan 30, 2016 09:18-0500 for FHIR v1.3.0
// Generated on Fri, Apr 1, 2016 17:57-0400 for FHIR v1.4.0
import java.util.*;
import org.hl7.fhir.utilities.Utilities;
import org.hl7.fhir.dstu3.model.Enumerations.*;
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.Description;
import ca.uhn.fhir.model.api.annotation.Block;
import org.hl7.fhir.dstu3.exceptions.FHIRException;
import org.hl7.fhir.dstu3.model.Enumerations.*;
import org.hl7.fhir.instance.model.api.*;
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.
*/
@ -380,10 +378,6 @@ public class Conformance extends DomainResource implements IBaseConformance {
* null
*/
HISTORYINSTANCE,
/**
* null
*/
VALIDATE,
/**
* null
*/
@ -413,8 +407,6 @@ public class Conformance extends DomainResource implements IBaseConformance {
return DELETE;
if ("history-instance".equals(codeString))
return HISTORYINSTANCE;
if ("validate".equals(codeString))
return VALIDATE;
if ("history-type".equals(codeString))
return HISTORYTYPE;
if ("create".equals(codeString))
@ -430,7 +422,6 @@ public class Conformance extends DomainResource implements IBaseConformance {
case UPDATE: return "update";
case DELETE: return "delete";
case HISTORYINSTANCE: return "history-instance";
case VALIDATE: return "validate";
case HISTORYTYPE: return "history-type";
case CREATE: return "create";
case SEARCHTYPE: return "search-type";
@ -444,7 +435,6 @@ public class Conformance extends DomainResource implements IBaseConformance {
case UPDATE: return "http://hl7.org/fhir/restful-interaction";
case DELETE: return "http://hl7.org/fhir/restful-interaction";
case HISTORYINSTANCE: return "http://hl7.org/fhir/restful-interaction";
case VALIDATE: return "http://hl7.org/fhir/restful-interaction";
case HISTORYTYPE: return "http://hl7.org/fhir/restful-interaction";
case CREATE: return "http://hl7.org/fhir/restful-interaction";
case SEARCHTYPE: return "http://hl7.org/fhir/restful-interaction";
@ -458,7 +448,6 @@ public class Conformance extends DomainResource implements IBaseConformance {
case UPDATE: return "";
case DELETE: return "";
case HISTORYINSTANCE: return "";
case VALIDATE: return "";
case HISTORYTYPE: return "";
case CREATE: return "";
case SEARCHTYPE: return "";
@ -472,7 +461,6 @@ public class Conformance extends DomainResource implements IBaseConformance {
case UPDATE: return "update";
case DELETE: return "delete";
case HISTORYINSTANCE: return "history-instance";
case VALIDATE: return "validate";
case HISTORYTYPE: return "history-type";
case CREATE: return "create";
case SEARCHTYPE: return "search-type";
@ -496,8 +484,6 @@ public class Conformance extends DomainResource implements IBaseConformance {
return TypeRestfulInteraction.DELETE;
if ("history-instance".equals(codeString))
return TypeRestfulInteraction.HISTORYINSTANCE;
if ("validate".equals(codeString))
return TypeRestfulInteraction.VALIDATE;
if ("history-type".equals(codeString))
return TypeRestfulInteraction.HISTORYTYPE;
if ("create".equals(codeString))
@ -522,8 +508,6 @@ public class Conformance extends DomainResource implements IBaseConformance {
return new Enumeration<TypeRestfulInteraction>(this, TypeRestfulInteraction.DELETE);
if ("history-instance".equals(codeString))
return new Enumeration<TypeRestfulInteraction>(this, TypeRestfulInteraction.HISTORYINSTANCE);
if ("validate".equals(codeString))
return new Enumeration<TypeRestfulInteraction>(this, TypeRestfulInteraction.VALIDATE);
if ("history-type".equals(codeString))
return new Enumeration<TypeRestfulInteraction>(this, TypeRestfulInteraction.HISTORYTYPE);
if ("create".equals(codeString))
@ -543,8 +527,6 @@ public class Conformance extends DomainResource implements IBaseConformance {
return "delete";
if (code == TypeRestfulInteraction.HISTORYINSTANCE)
return "history-instance";
if (code == TypeRestfulInteraction.VALIDATE)
return "validate";
if (code == TypeRestfulInteraction.HISTORYTYPE)
return "history-type";
if (code == TypeRestfulInteraction.CREATE)
@ -1484,7 +1466,7 @@ public class Conformance extends DomainResource implements IBaseConformance {
* The name of an individual to contact regarding the conformance.
*/
@Child(name = "name", type = {StringType.class}, order=1, min=0, max=1, modifier=false, summary=true)
@Description(shortDefinition="Name of a individual to contact", formalDefinition="The name of an individual to contact regarding the conformance." )
@Description(shortDefinition="Name of an individual to contact", formalDefinition="The name of an individual to contact regarding the conformance." )
protected StringType name;
/**
@ -1653,8 +1635,7 @@ public class Conformance extends DomainResource implements IBaseConformance {
}
public boolean isEmpty() {
return super.isEmpty() && (name == null || name.isEmpty()) && (telecom == null || telecom.isEmpty())
;
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( name, telecom);
}
public String fhirType() {
@ -1913,8 +1894,7 @@ public class Conformance extends DomainResource implements IBaseConformance {
}
public boolean isEmpty() {
return super.isEmpty() && (name == null || name.isEmpty()) && (version == null || version.isEmpty())
&& (releaseDate == null || releaseDate.isEmpty());
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( name, version, releaseDate);
}
public String fhirType() {
@ -2108,8 +2088,7 @@ public class Conformance extends DomainResource implements IBaseConformance {
}
public boolean isEmpty() {
return super.isEmpty() && (description == null || description.isEmpty()) && (url == null || url.isEmpty())
;
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( description, url);
}
public String fhirType() {
@ -2145,7 +2124,7 @@ public class Conformance extends DomainResource implements IBaseConformance {
/**
* A specification of the restful capabilities of the solution for a specific resource type.
*/
@Child(name = "resource", type = {}, order=4, min=1, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
@Child(name = "resource", type = {}, order=4, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
@Description(shortDefinition="Resource served on the REST interface", formalDefinition="A specification of the restful capabilities of the solution for a specific resource type." )
protected List<ConformanceRestResourceComponent> resource;
@ -2178,10 +2157,10 @@ public class Conformance extends DomainResource implements IBaseConformance {
protected List<ConformanceRestOperationComponent> operation;
/**
* An absolute URI which is a reference to the definition of a compartment hosted by the system.
* 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)
@Description(shortDefinition="Compartments served/used by system", formalDefinition="An absolute URI which is a reference to the definition of a compartment hosted by the system." )
@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;
@ -2529,7 +2508,7 @@ public class Conformance extends DomainResource implements IBaseConformance {
}
/**
* @return {@link #compartment} (An absolute URI which is a reference to the definition of a compartment hosted by the system.)
* @return {@link #compartment} (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.)
*/
public List<UriType> getCompartment() {
if (this.compartment == null)
@ -2547,7 +2526,7 @@ public class Conformance extends DomainResource implements IBaseConformance {
}
/**
* @return {@link #compartment} (An absolute URI which is a reference to the definition of a compartment hosted by the system.)
* @return {@link #compartment} (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.)
*/
// syntactic sugar
public UriType addCompartmentElement() {//2
@ -2559,7 +2538,7 @@ public class Conformance extends DomainResource implements IBaseConformance {
}
/**
* @param value {@link #compartment} (An absolute URI which is a reference to the definition of a compartment hosted by the system.)
* @param value {@link #compartment} (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.)
*/
public ConformanceRestComponent addCompartment(String value) { //1
UriType t = new UriType();
@ -2571,7 +2550,7 @@ public class Conformance extends DomainResource implements IBaseConformance {
}
/**
* @param value {@link #compartment} (An absolute URI which is a reference to the definition of a compartment hosted by the system.)
* @param value {@link #compartment} (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.)
*/
public boolean hasCompartment(String value) {
if (this.compartment == null)
@ -2592,7 +2571,7 @@ public class Conformance extends DomainResource implements IBaseConformance {
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 hosted by the system.", 0, java.lang.Integer.MAX_VALUE, compartment));
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));
}
@Override
@ -2713,11 +2692,8 @@ public class Conformance extends DomainResource implements IBaseConformance {
}
public boolean isEmpty() {
return super.isEmpty() && (mode == null || mode.isEmpty()) && (documentation == null || documentation.isEmpty())
&& (security == null || security.isEmpty()) && (resource == null || resource.isEmpty()) && (interaction == null || interaction.isEmpty())
&& (transactionMode == null || transactionMode.isEmpty()) && (searchParam == null || searchParam.isEmpty())
&& (operation == null || operation.isEmpty()) && (compartment == null || compartment.isEmpty())
;
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( mode, documentation, security
, resource, interaction, transactionMode, searchParam, operation, compartment);
}
public String fhirType() {
@ -3020,9 +2996,8 @@ public class Conformance extends DomainResource implements IBaseConformance {
}
public boolean isEmpty() {
return super.isEmpty() && (cors == null || cors.isEmpty()) && (service == null || service.isEmpty())
&& (description == null || description.isEmpty()) && (certificate == null || certificate.isEmpty())
;
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( cors, service, description, certificate
);
}
public String fhirType() {
@ -3212,8 +3187,7 @@ public class Conformance extends DomainResource implements IBaseConformance {
}
public boolean isEmpty() {
return super.isEmpty() && (type == null || type.isEmpty()) && (blob == null || blob.isEmpty())
;
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( type, blob);
}
public String fhirType() {
@ -4039,13 +4013,9 @@ public class Conformance extends DomainResource implements IBaseConformance {
}
public boolean isEmpty() {
return super.isEmpty() && (type == null || type.isEmpty()) && (profile == null || profile.isEmpty())
&& (interaction == null || interaction.isEmpty()) && (versioning == null || versioning.isEmpty())
&& (readHistory == null || readHistory.isEmpty()) && (updateCreate == null || updateCreate.isEmpty())
&& (conditionalCreate == null || conditionalCreate.isEmpty()) && (conditionalUpdate == null || conditionalUpdate.isEmpty())
&& (conditionalDelete == null || conditionalDelete.isEmpty()) && (searchInclude == null || searchInclude.isEmpty())
&& (searchRevInclude == null || searchRevInclude.isEmpty()) && (searchParam == null || searchParam.isEmpty())
;
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( type, profile, interaction, versioning
, readHistory, updateCreate, conditionalCreate, conditionalUpdate, conditionalDelete, searchInclude
, searchRevInclude, searchParam);
}
public String fhirType() {
@ -4061,7 +4031,7 @@ public class Conformance extends DomainResource implements IBaseConformance {
* Coded identifier of the operation, supported by the system resource.
*/
@Child(name = "code", type = {CodeType.class}, order=1, min=1, max=1, modifier=false, summary=false)
@Description(shortDefinition="read | vread | update | delete | history-instance | validate | history-type | create | search-type", formalDefinition="Coded identifier of the operation, supported by the system resource." )
@Description(shortDefinition="read | vread | update | delete | history-instance | history-type | create | search-type", formalDefinition="Coded identifier of the operation, supported by the system resource." )
protected Enumeration<TypeRestfulInteraction> code;
/**
@ -4239,8 +4209,7 @@ public class Conformance extends DomainResource implements IBaseConformance {
}
public boolean isEmpty() {
return super.isEmpty() && (code == null || code.isEmpty()) && (documentation == null || documentation.isEmpty())
;
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( code, documentation);
}
public String fhirType() {
@ -4777,10 +4746,8 @@ public class Conformance extends DomainResource implements IBaseConformance {
}
public boolean isEmpty() {
return super.isEmpty() && (name == null || name.isEmpty()) && (definition == null || definition.isEmpty())
&& (type == null || type.isEmpty()) && (documentation == null || documentation.isEmpty())
&& (target == null || target.isEmpty()) && (modifier == null || modifier.isEmpty()) && (chain == null || chain.isEmpty())
;
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( name, definition, type, documentation
, target, modifier, chain);
}
public String fhirType() {
@ -4974,8 +4941,7 @@ public class Conformance extends DomainResource implements IBaseConformance {
}
public boolean isEmpty() {
return super.isEmpty() && (code == null || code.isEmpty()) && (documentation == null || documentation.isEmpty())
;
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( code, documentation);
}
public String fhirType() {
@ -4988,10 +4954,10 @@ public class Conformance extends DomainResource implements IBaseConformance {
@Block()
public static class ConformanceRestOperationComponent extends BackboneElement implements IBaseBackboneElement {
/**
* The name of a query, which is used in the _query parameter when the query is called.
* The name of the operation or query. For an operation, this is the name prefixed with $ and used in the url. For a query, this is the name used in the _query parameter when the query is called.
*/
@Child(name = "name", type = {StringType.class}, order=1, min=1, max=1, modifier=false, summary=false)
@Description(shortDefinition="Name by which the operation/query is invoked", formalDefinition="The name of a query, which is used in the _query parameter when the query is called." )
@Description(shortDefinition="Name by which the operation/query is invoked", formalDefinition="The name of the operation or query. For an operation, this is the name prefixed with $ and used in the url. For a query, this is the name used in the _query parameter when the query is called." )
protected StringType name;
/**
@ -5025,7 +4991,7 @@ public class Conformance extends DomainResource implements IBaseConformance {
}
/**
* @return {@link #name} (The name of a query, which is used in the _query parameter when the query is called.). This is the underlying object with id, value and extensions. The accessor "getName" gives direct access to the value
* @return {@link #name} (The name of the operation or query. For an operation, this is the name prefixed with $ and used in the url. For a query, this is the name used in the _query parameter when the query is called.). This is the underlying object with id, value and extensions. The accessor "getName" gives direct access to the value
*/
public StringType getNameElement() {
if (this.name == null)
@ -5045,7 +5011,7 @@ public class Conformance extends DomainResource implements IBaseConformance {
}
/**
* @param value {@link #name} (The name of a query, which is used in the _query parameter when the query is called.). This is the underlying object with id, value and extensions. The accessor "getName" gives direct access to the value
* @param value {@link #name} (The name of the operation or query. For an operation, this is the name prefixed with $ and used in the url. For a query, this is the name used in the _query parameter when the query is called.). This is the underlying object with id, value and extensions. The accessor "getName" gives direct access to the value
*/
public ConformanceRestOperationComponent setNameElement(StringType value) {
this.name = value;
@ -5053,14 +5019,14 @@ public class Conformance extends DomainResource implements IBaseConformance {
}
/**
* @return The name of a query, which is used in the _query parameter when the query is called.
* @return The name of the operation or query. For an operation, this is the name prefixed with $ and used in the url. For a query, this is the name used in the _query parameter when the query is called.
*/
public String getName() {
return this.name == null ? null : this.name.getValue();
}
/**
* @param value The name of a query, which is used in the _query parameter when the query is called.
* @param value The name of the operation or query. For an operation, this is the name prefixed with $ and used in the url. For a query, this is the name used in the _query parameter when the query is called.
*/
public ConformanceRestOperationComponent setName(String value) {
if (this.name == null)
@ -5115,7 +5081,7 @@ public class Conformance extends DomainResource implements IBaseConformance {
protected void listChildren(List<Property> childrenList) {
super.listChildren(childrenList);
childrenList.add(new Property("name", "string", "The name of a query, which is used in the _query parameter when the query is called.", 0, java.lang.Integer.MAX_VALUE, name));
childrenList.add(new Property("name", "string", "The name of the operation or query. For an operation, this is the name prefixed with $ and used in the url. For a query, this is the name used in the _query parameter when the query is called.", 0, java.lang.Integer.MAX_VALUE, name));
childrenList.add(new Property("definition", "Reference(OperationDefinition)", "Where the formal definition can be found.", 0, java.lang.Integer.MAX_VALUE, definition));
}
@ -5171,8 +5137,7 @@ public class Conformance extends DomainResource implements IBaseConformance {
}
public boolean isEmpty() {
return super.isEmpty() && (name == null || name.isEmpty()) && (definition == null || definition.isEmpty())
;
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( name, definition);
}
public String fhirType() {
@ -5476,9 +5441,8 @@ public class Conformance extends DomainResource implements IBaseConformance {
}
public boolean isEmpty() {
return super.isEmpty() && (endpoint == null || endpoint.isEmpty()) && (reliableCache == null || reliableCache.isEmpty())
&& (documentation == null || documentation.isEmpty()) && (event == null || event.isEmpty())
;
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( endpoint, reliableCache, documentation
, event);
}
public String fhirType() {
@ -5649,8 +5613,7 @@ public class Conformance extends DomainResource implements IBaseConformance {
}
public boolean isEmpty() {
return super.isEmpty() && (protocol == null || protocol.isEmpty()) && (address == null || address.isEmpty())
;
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( protocol, address);
}
public String fhirType() {
@ -6140,10 +6103,8 @@ public class Conformance extends DomainResource implements IBaseConformance {
}
public boolean isEmpty() {
return super.isEmpty() && (code == null || code.isEmpty()) && (category == null || category.isEmpty())
&& (mode == null || mode.isEmpty()) && (focus == null || focus.isEmpty()) && (request == null || request.isEmpty())
&& (response == null || response.isEmpty()) && (documentation == null || documentation.isEmpty())
;
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( code, category, mode, focus
, request, response, documentation);
}
public String fhirType() {
@ -6403,8 +6364,8 @@ public class Conformance extends DomainResource implements IBaseConformance {
}
public boolean isEmpty() {
return super.isEmpty() && (mode == null || mode.isEmpty()) && (documentation == null || documentation.isEmpty())
&& (profile == null || profile.isEmpty());
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( mode, documentation, profile
);
}
public String fhirType() {
@ -6438,7 +6399,7 @@ public class Conformance extends DomainResource implements IBaseConformance {
/**
* The status of this conformance statement.
*/
@Child(name = "status", type = {CodeType.class}, order=3, min=0, max=1, modifier=true, summary=true)
@Child(name = "status", type = {CodeType.class}, order=3, min=1, max=1, modifier=true, summary=true)
@Description(shortDefinition="draft | active | retired", formalDefinition="The status of this conformance statement." )
protected Enumeration<ConformanceResourceStatus> status;
@ -6477,66 +6438,73 @@ public class Conformance extends DomainResource implements IBaseConformance {
@Description(shortDefinition="Human description of the conformance statement", formalDefinition="A free text natural language description of the conformance statement and its use. Typically, this is used when the conformance statement describes a desired rather than an actual solution, for example as a formal expression of requirements as part of an RFP." )
protected StringType description;
/**
* The content was developed with a focus and intent of supporting the contexts that are listed. These terms may be used to assist with indexing and searching of conformance statements.
*/
@Child(name = "useContext", type = {CodeableConcept.class}, order=9, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
@Description(shortDefinition="Content intends to support these contexts", formalDefinition="The content was developed with a focus and intent of supporting the contexts that are listed. These terms may be used to assist with indexing and searching of conformance statements." )
protected List<CodeableConcept> useContext;
/**
* Explains why this conformance statement is needed and why it's been constrained as it has.
*/
@Child(name = "requirements", type = {StringType.class}, order=9, min=0, max=1, modifier=false, summary=false)
@Description(shortDefinition="Why is this needed?", formalDefinition="Explains why this conformance statement is needed and why it's been constrained as it has." )
@Child(name = "requirements", type = {StringType.class}, order=10, min=0, max=1, modifier=false, summary=false)
@Description(shortDefinition="Why this resource has been created", formalDefinition="Explains why this conformance statement is needed and why it's been constrained as it has." )
protected StringType requirements;
/**
* 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.
*/
@Child(name = "copyright", type = {StringType.class}, order=10, min=0, max=1, modifier=false, summary=false)
@Child(name = "copyright", type = {StringType.class}, order=11, min=0, max=1, modifier=false, summary=false)
@Description(shortDefinition="Use and/or publishing restrictions", formalDefinition="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." )
protected StringType copyright;
/**
* 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).
*/
@Child(name = "kind", type = {CodeType.class}, order=11, min=1, max=1, modifier=false, summary=true)
@Child(name = "kind", type = {CodeType.class}, order=12, min=1, max=1, modifier=false, summary=true)
@Description(shortDefinition="instance | capability | requirements", formalDefinition="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)." )
protected Enumeration<ConformanceStatementKind> kind;
/**
* 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=12, min=0, max=1, modifier=false, summary=true)
@Child(name = "software", type = {}, order=13, 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=13, min=0, max=1, modifier=false, summary=true)
@Child(name = "implementation", type = {}, order=14, 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=14, min=1, max=1, modifier=false, summary=true)
@Child(name = "fhirVersion", type = {IdType.class}, order=15, 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=15, min=1, max=1, modifier=false, summary=true)
@Child(name = "acceptUnknown", type = {CodeType.class}, order=16, 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." )
protected Enumeration<UnknownContentCode> acceptUnknown;
/**
* A list of the formats supported by this implementation using their content types.
*/
@Child(name = "format", type = {CodeType.class}, order=16, min=1, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
@Child(name = "format", type = {CodeType.class}, order=17, min=1, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
@Description(shortDefinition="formats supported (xml | json | 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=17, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
@Child(name = "profile", type = {StructureDefinition.class}, order=18, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
@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;
/**
@ -6548,25 +6516,25 @@ public class Conformance extends DomainResource implements IBaseConformance {
/**
* A definition of the restful capabilities of the solution, if any.
*/
@Child(name = "rest", type = {}, order=18, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
@Child(name = "rest", type = {}, order=19, 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=19, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
@Child(name = "messaging", type = {}, order=20, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
@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=20, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
@Child(name = "document", type = {}, order=21, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
@Description(shortDefinition="Document definition", formalDefinition="A document definition." )
protected List<ConformanceDocumentComponent> document;
private static final long serialVersionUID = 1969977598L;
private static final long serialVersionUID = 64276427L;
/**
* Constructor
@ -6578,8 +6546,9 @@ public class Conformance extends DomainResource implements IBaseConformance {
/**
* Constructor
*/
public Conformance(DateTimeType date, Enumeration<ConformanceStatementKind> kind, IdType fhirVersion, Enumeration<UnknownContentCode> acceptUnknown) {
public Conformance(Enumeration<ConformanceResourceStatus> status, DateTimeType date, Enumeration<ConformanceStatementKind> kind, IdType fhirVersion, Enumeration<UnknownContentCode> acceptUnknown) {
super();
this.status = status;
this.date = date;
this.kind = kind;
this.fhirVersion = fhirVersion;
@ -6772,13 +6741,9 @@ public class Conformance extends DomainResource implements IBaseConformance {
* @param value The status of this conformance statement.
*/
public Conformance setStatus(ConformanceResourceStatus value) {
if (value == null)
this.status = null;
else {
if (this.status == null)
this.status = new Enumeration<ConformanceResourceStatus>(new ConformanceResourceStatusEnumFactory());
this.status.setValue(value);
}
return this;
}
@ -7010,6 +6975,46 @@ public class Conformance extends DomainResource implements IBaseConformance {
return this;
}
/**
* @return {@link #useContext} (The content was developed with a focus and intent of supporting the contexts that are listed. These terms may be used to assist with indexing and searching of conformance statements.)
*/
public List<CodeableConcept> getUseContext() {
if (this.useContext == null)
this.useContext = new ArrayList<CodeableConcept>();
return this.useContext;
}
public boolean hasUseContext() {
if (this.useContext == null)
return false;
for (CodeableConcept item : this.useContext)
if (!item.isEmpty())
return true;
return false;
}
/**
* @return {@link #useContext} (The content was developed with a focus and intent of supporting the contexts that are listed. These terms may be used to assist with indexing and searching of conformance statements.)
*/
// syntactic sugar
public CodeableConcept addUseContext() { //3
CodeableConcept t = new CodeableConcept();
if (this.useContext == null)
this.useContext = new ArrayList<CodeableConcept>();
this.useContext.add(t);
return t;
}
// syntactic sugar
public Conformance addUseContext(CodeableConcept t) { //3
if (t == null)
return this;
if (this.useContext == null)
this.useContext = new ArrayList<CodeableConcept>();
this.useContext.add(t);
return this;
}
/**
* @return {@link #requirements} (Explains why this conformance statement is needed and why it's been constrained as it has.). This is the underlying object with id, value and extensions. The accessor "getRequirements" gives direct access to the value
*/
@ -7537,6 +7542,7 @@ public class Conformance extends DomainResource implements IBaseConformance {
childrenList.add(new Property("publisher", "string", "The name of the individual or organization that published the conformance.", 0, java.lang.Integer.MAX_VALUE, publisher));
childrenList.add(new Property("contact", "", "Contacts to assist a user in finding and communicating with the publisher.", 0, java.lang.Integer.MAX_VALUE, contact));
childrenList.add(new Property("description", "string", "A free text natural language description of the conformance statement and its use. Typically, this is used when the conformance statement describes a desired rather than an actual solution, for example as a formal expression of requirements as part of an RFP.", 0, java.lang.Integer.MAX_VALUE, description));
childrenList.add(new Property("useContext", "CodeableConcept", "The content was developed with a focus and intent of supporting the contexts that are listed. These terms may be used to assist with indexing and searching of conformance statements.", 0, java.lang.Integer.MAX_VALUE, useContext));
childrenList.add(new Property("requirements", "string", "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));
@ -7571,6 +7577,8 @@ public class Conformance extends DomainResource implements IBaseConformance {
this.getContact().add((ConformanceContactComponent) value);
else if (name.equals("description"))
this.description = castToString(value); // StringType
else if (name.equals("useContext"))
this.getUseContext().add(castToCodeableConcept(value));
else if (name.equals("requirements"))
this.requirements = castToString(value); // StringType
else if (name.equals("copyright"))
@ -7628,6 +7636,9 @@ public class Conformance extends DomainResource implements IBaseConformance {
else if (name.equals("description")) {
throw new FHIRException("Cannot call addChild on a primitive type Conformance.description");
}
else if (name.equals("useContext")) {
return addUseContext();
}
else if (name.equals("requirements")) {
throw new FHIRException("Cannot call addChild on a primitive type Conformance.requirements");
}
@ -7691,6 +7702,11 @@ public class Conformance extends DomainResource implements IBaseConformance {
dst.contact.add(i.copy());
};
dst.description = description == null ? null : description.copy();
if (useContext != null) {
dst.useContext = new ArrayList<CodeableConcept>();
for (CodeableConcept i : useContext)
dst.useContext.add(i.copy());
};
dst.requirements = requirements == null ? null : requirements.copy();
dst.copyright = copyright == null ? null : copyright.copy();
dst.kind = kind == null ? null : kind.copy();
@ -7740,11 +7756,12 @@ public class Conformance extends DomainResource implements IBaseConformance {
return compareDeep(url, o.url, true) && compareDeep(version, o.version, true) && compareDeep(name, o.name, true)
&& compareDeep(status, o.status, true) && compareDeep(experimental, o.experimental, true) && compareDeep(date, o.date, 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(useContext, o.useContext, 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)
;
}
@Override
@ -7762,15 +7779,10 @@ public class Conformance extends DomainResource implements IBaseConformance {
}
public boolean isEmpty() {
return super.isEmpty() && (url == null || url.isEmpty()) && (version == null || version.isEmpty())
&& (name == null || name.isEmpty()) && (status == null || status.isEmpty()) && (experimental == null || experimental.isEmpty())
&& (date == null || date.isEmpty()) && (publisher == null || publisher.isEmpty()) && (contact == null || contact.isEmpty())
&& (description == null || description.isEmpty()) && (requirements == null || requirements.isEmpty())
&& (copyright == null || copyright.isEmpty()) && (kind == null || kind.isEmpty()) && (software == null || software.isEmpty())
&& (implementation == null || implementation.isEmpty()) && (fhirVersion == null || fhirVersion.isEmpty())
&& (acceptUnknown == null || acceptUnknown.isEmpty()) && (format == null || format.isEmpty())
&& (profile == null || profile.isEmpty()) && (rest == null || rest.isEmpty()) && (messaging == null || messaging.isEmpty())
&& (document == null || document.isEmpty());
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( url, version, name, status, experimental
, date, publisher, contact, description, useContext, requirements, copyright, kind, software
, implementation, fhirVersion, acceptUnknown, format, profile, rest, messaging, document
);
}
@Override
@ -8050,6 +8062,26 @@ public class Conformance extends DomainResource implements IBaseConformance {
*/
public static final ca.uhn.fhir.rest.gclient.StringClientParam NAME = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_NAME);
/**
* Search parameter: <b>context</b>
* <p>
* Description: <b>A use context assigned to the conformance statement</b><br>
* Type: <b>token</b><br>
* Path: <b>Conformance.useContext</b><br>
* </p>
*/
@SearchParamDefinition(name="context", path="Conformance.useContext", description="A use context assigned to the conformance statement", type="token" )
public static final String SP_CONTEXT = "context";
/**
* <b>Fluent Client</b> search parameter constant for <b>context</b>
* <p>
* Description: <b>A use context assigned to the conformance statement</b><br>
* Type: <b>token</b><br>
* Path: <b>Conformance.useContext</b><br>
* </p>
*/
public static final ca.uhn.fhir.rest.gclient.TokenClientParam CONTEXT = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CONTEXT);
/**
* Search parameter: <b>publisher</b>
* <p>

View File

@ -29,12 +29,12 @@ package org.hl7.fhir.dstu3.model;
*/
// Generated on Sat, Jan 30, 2016 09:18-0500 for FHIR v1.3.0
// Generated on Fri, Apr 1, 2016 17:57-0400 for FHIR v1.4.0
public class Constants {
public final static String VERSION = "1.3.0";
public final static String REVISION = "7597";
public final static String DATE = "Sat Jan 30 09:18:49 EST 2016";
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";
}

View File

@ -29,7 +29,7 @@ package org.hl7.fhir.dstu3.model;
*/
// Generated on Sat, Jan 30, 2016 09:18-0500 for FHIR v1.3.0
// Generated on Fri, Apr 1, 2016 17:57-0400 for FHIR v1.4.0
import java.util.*;
@ -38,9 +38,8 @@ import ca.uhn.fhir.model.api.annotation.Child;
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.dstu3.exceptions.FHIRException;
import org.hl7.fhir.instance.model.api.*;
import org.hl7.fhir.dstu3.exceptions.FHIRException;
/**
* Details for all kinds of technology mediated contact points for a person or organization, including telephone, email, etc.
*/
@ -667,9 +666,8 @@ public class ContactPoint extends Type implements ICompositeType {
}
public boolean isEmpty() {
return super.isEmpty() && (system == null || system.isEmpty()) && (value == null || value.isEmpty())
&& (use == null || use.isEmpty()) && (rank == null || rank.isEmpty()) && (period == null || period.isEmpty())
;
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( system, value, use, rank, period
);
}

View File

@ -29,13 +29,12 @@ package org.hl7.fhir.dstu3.model;
*/
// Generated on Sat, Jan 30, 2016 09:18-0500 for FHIR v1.3.0
// Generated on Fri, Apr 1, 2016 17:57-0400 for FHIR v1.4.0
import ca.uhn.fhir.model.api.annotation.DatatypeDef;
import ca.uhn.fhir.model.api.annotation.Block;
import org.hl7.fhir.dstu3.exceptions.FHIRException;
import org.hl7.fhir.instance.model.api.*;
import org.hl7.fhir.dstu3.exceptions.FHIRException;
/**
* A measured amount (or an amount that can potentially be measured). Note that measured amounts include amounts that are not precisely quantified, including amounts involving arbitrary units and floating currencies.
*/
@ -82,9 +81,8 @@ public class Count extends Quantity {
}
public boolean isEmpty() {
return super.isEmpty() && (value == null || value.isEmpty()) && (comparator == null || comparator.isEmpty())
&& (unit == null || unit.isEmpty()) && (system == null || system.isEmpty()) && (code == null || code.isEmpty())
;
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( value, comparator, unit, system
, code);
}

View File

@ -29,21 +29,19 @@ package org.hl7.fhir.dstu3.model;
*/
// Generated on Sat, Jan 30, 2016 09:18-0500 for FHIR v1.3.0
// Generated on Fri, Apr 1, 2016 17:57-0400 for FHIR v1.4.0
import java.util.*;
import org.hl7.fhir.utilities.Utilities;
import org.hl7.fhir.dstu3.model.Enumerations.*;
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.Description;
import ca.uhn.fhir.model.api.annotation.Block;
import org.hl7.fhir.dstu3.exceptions.FHIRException;
import org.hl7.fhir.dstu3.model.Enumerations.*;
import org.hl7.fhir.instance.model.api.*;
import org.hl7.fhir.dstu3.exceptions.FHIRException;
/**
* The formal description of a single piece of information that can be gathered and reported.
*/
@ -207,7 +205,7 @@ public class DataElement extends DomainResource {
* The name of an individual to contact regarding the data element.
*/
@Child(name = "name", type = {StringType.class}, order=1, min=0, max=1, modifier=false, summary=true)
@Description(shortDefinition="Name of a individual to contact", formalDefinition="The name of an individual to contact regarding the data element." )
@Description(shortDefinition="Name of an individual to contact", formalDefinition="The name of an individual to contact regarding the data element." )
protected StringType name;
/**
@ -376,8 +374,7 @@ public class DataElement extends DomainResource {
}
public boolean isEmpty() {
return super.isEmpty() && (name == null || name.isEmpty()) && (telecom == null || telecom.isEmpty())
;
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( name, telecom);
}
public String fhirType() {
@ -413,11 +410,11 @@ public class DataElement extends DomainResource {
/**
* Comments about this mapping, including version notes, issues, scope limitations, and other important notes for usage.
*/
@Child(name = "comments", type = {StringType.class}, order=4, min=0, max=1, modifier=false, summary=false)
@Child(name = "comment", type = {StringType.class}, order=4, min=0, max=1, modifier=false, summary=false)
@Description(shortDefinition="Versions, Issues, Scope limitations etc.", formalDefinition="Comments about this mapping, including version notes, issues, scope limitations, and other important notes for usage." )
protected StringType comments;
protected StringType comment;
private static final long serialVersionUID = 299630820L;
private static final long serialVersionUID = 9610265L;
/**
* Constructor
@ -578,50 +575,50 @@ public class DataElement extends DomainResource {
}
/**
* @return {@link #comments} (Comments about this mapping, including version notes, issues, scope limitations, and other important notes for usage.). This is the underlying object with id, value and extensions. The accessor "getComments" gives direct access to the value
* @return {@link #comment} (Comments about this mapping, including version notes, issues, scope limitations, and other important notes for usage.). This is the underlying object with id, value and extensions. The accessor "getComment" gives direct access to the value
*/
public StringType getCommentsElement() {
if (this.comments == null)
public StringType getCommentElement() {
if (this.comment == null)
if (Configuration.errorOnAutoCreate())
throw new Error("Attempt to auto-create DataElementMappingComponent.comments");
throw new Error("Attempt to auto-create DataElementMappingComponent.comment");
else if (Configuration.doAutoCreate())
this.comments = new StringType(); // bb
return this.comments;
this.comment = new StringType(); // bb
return this.comment;
}
public boolean hasCommentsElement() {
return this.comments != null && !this.comments.isEmpty();
public boolean hasCommentElement() {
return this.comment != null && !this.comment.isEmpty();
}
public boolean hasComments() {
return this.comments != null && !this.comments.isEmpty();
public boolean hasComment() {
return this.comment != null && !this.comment.isEmpty();
}
/**
* @param value {@link #comments} (Comments about this mapping, including version notes, issues, scope limitations, and other important notes for usage.). This is the underlying object with id, value and extensions. The accessor "getComments" gives direct access to the value
* @param value {@link #comment} (Comments about this mapping, including version notes, issues, scope limitations, and other important notes for usage.). This is the underlying object with id, value and extensions. The accessor "getComment" gives direct access to the value
*/
public DataElementMappingComponent setCommentsElement(StringType value) {
this.comments = value;
public DataElementMappingComponent setCommentElement(StringType value) {
this.comment = value;
return this;
}
/**
* @return Comments about this mapping, including version notes, issues, scope limitations, and other important notes for usage.
*/
public String getComments() {
return this.comments == null ? null : this.comments.getValue();
public String getComment() {
return this.comment == null ? null : this.comment.getValue();
}
/**
* @param value Comments about this mapping, including version notes, issues, scope limitations, and other important notes for usage.
*/
public DataElementMappingComponent setComments(String value) {
public DataElementMappingComponent setComment(String value) {
if (Utilities.noString(value))
this.comments = null;
this.comment = null;
else {
if (this.comments == null)
this.comments = new StringType();
this.comments.setValue(value);
if (this.comment == null)
this.comment = new StringType();
this.comment.setValue(value);
}
return this;
}
@ -631,7 +628,7 @@ public class DataElement extends DomainResource {
childrenList.add(new Property("identity", "id", "An internal id that is used to identify this mapping set when specific mappings are made on a per-element basis.", 0, java.lang.Integer.MAX_VALUE, identity));
childrenList.add(new Property("uri", "uri", "An absolute URI that identifies the specification that this mapping is expressed to.", 0, java.lang.Integer.MAX_VALUE, uri));
childrenList.add(new Property("name", "string", "A name for the specification that is being mapped to.", 0, java.lang.Integer.MAX_VALUE, name));
childrenList.add(new Property("comments", "string", "Comments about this mapping, including version notes, issues, scope limitations, and other important notes for usage.", 0, java.lang.Integer.MAX_VALUE, comments));
childrenList.add(new Property("comment", "string", "Comments about this mapping, including version notes, issues, scope limitations, and other important notes for usage.", 0, java.lang.Integer.MAX_VALUE, comment));
}
@Override
@ -642,8 +639,8 @@ public class DataElement extends DomainResource {
this.uri = castToUri(value); // UriType
else if (name.equals("name"))
this.name = castToString(value); // StringType
else if (name.equals("comments"))
this.comments = castToString(value); // StringType
else if (name.equals("comment"))
this.comment = castToString(value); // StringType
else
super.setProperty(name, value);
}
@ -659,8 +656,8 @@ public class DataElement extends DomainResource {
else if (name.equals("name")) {
throw new FHIRException("Cannot call addChild on a primitive type DataElement.name");
}
else if (name.equals("comments")) {
throw new FHIRException("Cannot call addChild on a primitive type DataElement.comments");
else if (name.equals("comment")) {
throw new FHIRException("Cannot call addChild on a primitive type DataElement.comment");
}
else
return super.addChild(name);
@ -672,7 +669,7 @@ public class DataElement extends DomainResource {
dst.identity = identity == null ? null : identity.copy();
dst.uri = uri == null ? null : uri.copy();
dst.name = name == null ? null : name.copy();
dst.comments = comments == null ? null : comments.copy();
dst.comment = comment == null ? null : comment.copy();
return dst;
}
@ -684,7 +681,7 @@ public class DataElement extends DomainResource {
return false;
DataElementMappingComponent o = (DataElementMappingComponent) other;
return compareDeep(identity, o.identity, true) && compareDeep(uri, o.uri, true) && compareDeep(name, o.name, true)
&& compareDeep(comments, o.comments, true);
&& compareDeep(comment, o.comment, true);
}
@Override
@ -695,12 +692,12 @@ public class DataElement extends DomainResource {
return false;
DataElementMappingComponent o = (DataElementMappingComponent) other;
return compareValues(identity, o.identity, true) && compareValues(uri, o.uri, true) && compareValues(name, o.name, true)
&& compareValues(comments, o.comments, true);
&& compareValues(comment, o.comment, true);
}
public boolean isEmpty() {
return super.isEmpty() && (identity == null || identity.isEmpty()) && (uri == null || uri.isEmpty())
&& (name == null || name.isEmpty()) && (comments == null || comments.isEmpty());
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( identity, uri, name, comment
);
}
public String fhirType() {
@ -731,48 +728,48 @@ public class DataElement extends DomainResource {
@Description(shortDefinition="Logical id for this version of the data element", formalDefinition="The identifier that is used to identify this version of the data element when it is referenced in a StructureDefinition, Questionnaire or instance. This is an arbitrary value managed by the definition author manually." )
protected StringType version;
/**
* The term used by humans to refer to the data element. Should ideally be unique within the context in which the data element is expected to be used.
*/
@Child(name = "name", type = {StringType.class}, order=3, min=0, max=1, modifier=false, summary=true)
@Description(shortDefinition="Descriptive label for this element definition", formalDefinition="The term used by humans to refer to the data element. Should ideally be unique within the context in which the data element is expected to be used." )
protected StringType name;
/**
* The status of the data element.
*/
@Child(name = "status", type = {CodeType.class}, order=4, min=1, max=1, modifier=true, summary=true)
@Child(name = "status", type = {CodeType.class}, order=3, min=1, max=1, modifier=true, summary=true)
@Description(shortDefinition="draft | active | retired", formalDefinition="The status of the data element." )
protected Enumeration<ConformanceResourceStatus> status;
/**
* A flag to indicate that this search data element definition is authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage.
*/
@Child(name = "experimental", type = {BooleanType.class}, order=5, min=0, max=1, modifier=false, summary=true)
@Child(name = "experimental", type = {BooleanType.class}, order=4, min=0, max=1, modifier=false, summary=true)
@Description(shortDefinition="If for testing purposes, not real usage", formalDefinition="A flag to indicate that this search data element definition is authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage." )
protected BooleanType experimental;
/**
* The name of the individual or organization that published the data element.
*/
@Child(name = "publisher", type = {StringType.class}, order=6, min=0, max=1, modifier=false, summary=true)
@Child(name = "publisher", type = {StringType.class}, order=5, min=0, max=1, modifier=false, summary=true)
@Description(shortDefinition="Name of the publisher (Organization or individual)", formalDefinition="The name of the individual or organization that published the data element." )
protected StringType publisher;
/**
* Contacts to assist a user in finding and communicating with the publisher.
*/
@Child(name = "contact", type = {}, order=7, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
@Description(shortDefinition="Contact details of the publisher", formalDefinition="Contacts to assist a user in finding and communicating with the publisher." )
protected List<DataElementContactComponent> contact;
/**
* The date this version of the data element was published. The date must change when the business version changes, if it does, and it must change if the status code changes. In addition, it should change when the substantive content of the data element changes.
*/
@Child(name = "date", type = {DateTimeType.class}, order=8, min=0, max=1, modifier=false, summary=true)
@Child(name = "date", type = {DateTimeType.class}, order=6, min=0, max=1, modifier=false, summary=true)
@Description(shortDefinition="Date for this version of the data element", formalDefinition="The date this version of the data element was published. The date must change when the business version changes, if it does, and it must change if the status code changes. In addition, it should change when the substantive content of the data element changes." )
protected DateTimeType date;
/**
* The term used by humans to refer to the data element. Should ideally be unique within the context in which the data element is expected to be used.
*/
@Child(name = "name", type = {StringType.class}, order=7, min=0, max=1, modifier=false, summary=true)
@Description(shortDefinition="Descriptive label for this element definition", formalDefinition="The term used by humans to refer to the data element. Should ideally be unique within the context in which the data element is expected to be used." )
protected StringType name;
/**
* Contacts to assist a user in finding and communicating with the publisher.
*/
@Child(name = "contact", type = {}, order=8, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
@Description(shortDefinition="Contact details of the publisher", formalDefinition="Contacts to assist a user in finding and communicating with the publisher." )
protected List<DataElementContactComponent> contact;
/**
* The content was developed with a focus and intent of supporting the contexts that are listed. These terms may be used to assist with indexing and searching of data element definitions.
*/
@ -808,7 +805,7 @@ public class DataElement extends DomainResource {
@Description(shortDefinition="Definition of element", formalDefinition="Defines the structure, type, allowed values and other constraining characteristics of the data element." )
protected List<ElementDefinition> element;
private static final long serialVersionUID = 2017352331L;
private static final long serialVersionUID = 411433995L;
/**
* Constructor
@ -963,55 +960,6 @@ public class DataElement extends DomainResource {
return this;
}
/**
* @return {@link #name} (The term used by humans to refer to the data element. Should ideally be unique within the context in which the data element is expected to be used.). This is the underlying object with id, value and extensions. The accessor "getName" gives direct access to the value
*/
public StringType getNameElement() {
if (this.name == null)
if (Configuration.errorOnAutoCreate())
throw new Error("Attempt to auto-create DataElement.name");
else if (Configuration.doAutoCreate())
this.name = new StringType(); // bb
return this.name;
}
public boolean hasNameElement() {
return this.name != null && !this.name.isEmpty();
}
public boolean hasName() {
return this.name != null && !this.name.isEmpty();
}
/**
* @param value {@link #name} (The term used by humans to refer to the data element. Should ideally be unique within the context in which the data element is expected to be used.). This is the underlying object with id, value and extensions. The accessor "getName" gives direct access to the value
*/
public DataElement setNameElement(StringType value) {
this.name = value;
return this;
}
/**
* @return The term used by humans to refer to the data element. Should ideally be unique within the context in which the data element is expected to be used.
*/
public String getName() {
return this.name == null ? null : this.name.getValue();
}
/**
* @param value The term used by humans to refer to the data element. Should ideally be unique within the context in which the data element is expected to be used.
*/
public DataElement setName(String value) {
if (Utilities.noString(value))
this.name = null;
else {
if (this.name == null)
this.name = new StringType();
this.name.setValue(value);
}
return this;
}
/**
* @return {@link #status} (The status of the data element.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value
*/
@ -1151,46 +1099,6 @@ public class DataElement extends DomainResource {
return this;
}
/**
* @return {@link #contact} (Contacts to assist a user in finding and communicating with the publisher.)
*/
public List<DataElementContactComponent> getContact() {
if (this.contact == null)
this.contact = new ArrayList<DataElementContactComponent>();
return this.contact;
}
public boolean hasContact() {
if (this.contact == null)
return false;
for (DataElementContactComponent item : this.contact)
if (!item.isEmpty())
return true;
return false;
}
/**
* @return {@link #contact} (Contacts to assist a user in finding and communicating with the publisher.)
*/
// syntactic sugar
public DataElementContactComponent addContact() { //3
DataElementContactComponent t = new DataElementContactComponent();
if (this.contact == null)
this.contact = new ArrayList<DataElementContactComponent>();
this.contact.add(t);
return t;
}
// syntactic sugar
public DataElement addContact(DataElementContactComponent t) { //3
if (t == null)
return this;
if (this.contact == null)
this.contact = new ArrayList<DataElementContactComponent>();
this.contact.add(t);
return this;
}
/**
* @return {@link #date} (The date this version of the data element was published. The date must change when the business version changes, if it does, and it must change if the status code changes. In addition, it should change when the substantive content of the data element changes.). This is the underlying object with id, value and extensions. The accessor "getDate" gives direct access to the value
*/
@ -1240,6 +1148,95 @@ public class DataElement extends DomainResource {
return this;
}
/**
* @return {@link #name} (The term used by humans to refer to the data element. Should ideally be unique within the context in which the data element is expected to be used.). This is the underlying object with id, value and extensions. The accessor "getName" gives direct access to the value
*/
public StringType getNameElement() {
if (this.name == null)
if (Configuration.errorOnAutoCreate())
throw new Error("Attempt to auto-create DataElement.name");
else if (Configuration.doAutoCreate())
this.name = new StringType(); // bb
return this.name;
}
public boolean hasNameElement() {
return this.name != null && !this.name.isEmpty();
}
public boolean hasName() {
return this.name != null && !this.name.isEmpty();
}
/**
* @param value {@link #name} (The term used by humans to refer to the data element. Should ideally be unique within the context in which the data element is expected to be used.). This is the underlying object with id, value and extensions. The accessor "getName" gives direct access to the value
*/
public DataElement setNameElement(StringType value) {
this.name = value;
return this;
}
/**
* @return The term used by humans to refer to the data element. Should ideally be unique within the context in which the data element is expected to be used.
*/
public String getName() {
return this.name == null ? null : this.name.getValue();
}
/**
* @param value The term used by humans to refer to the data element. Should ideally be unique within the context in which the data element is expected to be used.
*/
public DataElement setName(String value) {
if (Utilities.noString(value))
this.name = null;
else {
if (this.name == null)
this.name = new StringType();
this.name.setValue(value);
}
return this;
}
/**
* @return {@link #contact} (Contacts to assist a user in finding and communicating with the publisher.)
*/
public List<DataElementContactComponent> getContact() {
if (this.contact == null)
this.contact = new ArrayList<DataElementContactComponent>();
return this.contact;
}
public boolean hasContact() {
if (this.contact == null)
return false;
for (DataElementContactComponent item : this.contact)
if (!item.isEmpty())
return true;
return false;
}
/**
* @return {@link #contact} (Contacts to assist a user in finding and communicating with the publisher.)
*/
// syntactic sugar
public DataElementContactComponent addContact() { //3
DataElementContactComponent t = new DataElementContactComponent();
if (this.contact == null)
this.contact = new ArrayList<DataElementContactComponent>();
this.contact.add(t);
return t;
}
// syntactic sugar
public DataElement addContact(DataElementContactComponent t) { //3
if (t == null)
return this;
if (this.contact == null)
this.contact = new ArrayList<DataElementContactComponent>();
this.contact.add(t);
return this;
}
/**
* @return {@link #useContext} (The content was developed with a focus and intent of supporting the contexts that are listed. These terms may be used to assist with indexing and searching of data element definitions.)
*/
@ -1463,12 +1460,12 @@ public class DataElement extends DomainResource {
childrenList.add(new Property("url", "uri", "An absolute URL that is used to identify this data element when it is referenced in a specification, model, design or an instance. This SHALL be a URL, SHOULD be globally unique, and SHOULD be an address at which this data element is (or will be) published.", 0, java.lang.Integer.MAX_VALUE, url));
childrenList.add(new Property("identifier", "Identifier", "Formal identifier that is used to identify this data element when it is represented in other formats, or referenced in a specification, model, design or an instance.", 0, java.lang.Integer.MAX_VALUE, identifier));
childrenList.add(new Property("version", "string", "The identifier that is used to identify this version of the data element when it is referenced in a StructureDefinition, Questionnaire or instance. This is an arbitrary value managed by the definition author manually.", 0, java.lang.Integer.MAX_VALUE, version));
childrenList.add(new Property("name", "string", "The term used by humans to refer to the data element. Should ideally be unique within the context in which the data element is expected to be used.", 0, java.lang.Integer.MAX_VALUE, name));
childrenList.add(new Property("status", "code", "The status of the data element.", 0, java.lang.Integer.MAX_VALUE, status));
childrenList.add(new Property("experimental", "boolean", "A flag to indicate that this search data element definition is authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage.", 0, java.lang.Integer.MAX_VALUE, experimental));
childrenList.add(new Property("publisher", "string", "The name of the individual or organization that published the data element.", 0, java.lang.Integer.MAX_VALUE, publisher));
childrenList.add(new Property("contact", "", "Contacts to assist a user in finding and communicating with the publisher.", 0, java.lang.Integer.MAX_VALUE, contact));
childrenList.add(new Property("date", "dateTime", "The date this version of the data element was published. The date must change when the business version changes, if it does, and it must change if the status code changes. In addition, it should change when the substantive content of the data element changes.", 0, java.lang.Integer.MAX_VALUE, date));
childrenList.add(new Property("name", "string", "The term used by humans to refer to the data element. Should ideally be unique within the context in which the data element is expected to be used.", 0, java.lang.Integer.MAX_VALUE, name));
childrenList.add(new Property("contact", "", "Contacts to assist a user in finding and communicating with the publisher.", 0, java.lang.Integer.MAX_VALUE, contact));
childrenList.add(new Property("useContext", "CodeableConcept", "The content was developed with a focus and intent of supporting the contexts that are listed. These terms may be used to assist with indexing and searching of data element definitions.", 0, java.lang.Integer.MAX_VALUE, useContext));
childrenList.add(new Property("copyright", "string", "A copyright statement relating to the definition of the data element. Copyright statements are generally legal restrictions on the use and publishing of the details of the definition of the data element.", 0, java.lang.Integer.MAX_VALUE, copyright));
childrenList.add(new Property("stringency", "code", "Identifies how precise the data element is in its definition.", 0, java.lang.Integer.MAX_VALUE, stringency));
@ -1484,18 +1481,18 @@ public class DataElement extends DomainResource {
this.getIdentifier().add(castToIdentifier(value));
else if (name.equals("version"))
this.version = castToString(value); // StringType
else if (name.equals("name"))
this.name = castToString(value); // StringType
else if (name.equals("status"))
this.status = new ConformanceResourceStatusEnumFactory().fromType(value); // Enumeration<ConformanceResourceStatus>
else if (name.equals("experimental"))
this.experimental = castToBoolean(value); // BooleanType
else if (name.equals("publisher"))
this.publisher = castToString(value); // StringType
else if (name.equals("contact"))
this.getContact().add((DataElementContactComponent) value);
else if (name.equals("date"))
this.date = castToDateTime(value); // DateTimeType
else if (name.equals("name"))
this.name = castToString(value); // StringType
else if (name.equals("contact"))
this.getContact().add((DataElementContactComponent) value);
else if (name.equals("useContext"))
this.getUseContext().add(castToCodeableConcept(value));
else if (name.equals("copyright"))
@ -1521,9 +1518,6 @@ public class DataElement extends DomainResource {
else if (name.equals("version")) {
throw new FHIRException("Cannot call addChild on a primitive type DataElement.version");
}
else if (name.equals("name")) {
throw new FHIRException("Cannot call addChild on a primitive type DataElement.name");
}
else if (name.equals("status")) {
throw new FHIRException("Cannot call addChild on a primitive type DataElement.status");
}
@ -1533,12 +1527,15 @@ public class DataElement extends DomainResource {
else if (name.equals("publisher")) {
throw new FHIRException("Cannot call addChild on a primitive type DataElement.publisher");
}
else if (name.equals("contact")) {
return addContact();
}
else if (name.equals("date")) {
throw new FHIRException("Cannot call addChild on a primitive type DataElement.date");
}
else if (name.equals("name")) {
throw new FHIRException("Cannot call addChild on a primitive type DataElement.name");
}
else if (name.equals("contact")) {
return addContact();
}
else if (name.equals("useContext")) {
return addUseContext();
}
@ -1573,16 +1570,16 @@ public class DataElement extends DomainResource {
dst.identifier.add(i.copy());
};
dst.version = version == null ? null : version.copy();
dst.name = name == null ? null : name.copy();
dst.status = status == null ? null : status.copy();
dst.experimental = experimental == null ? null : experimental.copy();
dst.publisher = publisher == null ? null : publisher.copy();
dst.date = date == null ? null : date.copy();
dst.name = name == null ? null : name.copy();
if (contact != null) {
dst.contact = new ArrayList<DataElementContactComponent>();
for (DataElementContactComponent i : contact)
dst.contact.add(i.copy());
};
dst.date = date == null ? null : date.copy();
if (useContext != null) {
dst.useContext = new ArrayList<CodeableConcept>();
for (CodeableConcept i : useContext)
@ -1615,8 +1612,8 @@ public class DataElement extends DomainResource {
return false;
DataElement o = (DataElement) other;
return compareDeep(url, o.url, true) && compareDeep(identifier, o.identifier, true) && compareDeep(version, o.version, true)
&& compareDeep(name, o.name, true) && compareDeep(status, o.status, true) && compareDeep(experimental, o.experimental, true)
&& compareDeep(publisher, o.publisher, true) && compareDeep(contact, o.contact, true) && compareDeep(date, o.date, true)
&& compareDeep(status, o.status, true) && compareDeep(experimental, o.experimental, true) && compareDeep(publisher, o.publisher, true)
&& compareDeep(date, o.date, true) && compareDeep(name, o.name, true) && compareDeep(contact, o.contact, true)
&& compareDeep(useContext, o.useContext, true) && compareDeep(copyright, o.copyright, true) && compareDeep(stringency, o.stringency, true)
&& compareDeep(mapping, o.mapping, true) && compareDeep(element, o.element, true);
}
@ -1628,19 +1625,16 @@ public class DataElement extends DomainResource {
if (!(other instanceof DataElement))
return false;
DataElement o = (DataElement) other;
return compareValues(url, o.url, true) && compareValues(version, o.version, true) && compareValues(name, o.name, true)
&& compareValues(status, o.status, true) && compareValues(experimental, o.experimental, true) && compareValues(publisher, o.publisher, true)
&& compareValues(date, o.date, true) && compareValues(copyright, o.copyright, true) && compareValues(stringency, o.stringency, true)
;
return compareValues(url, o.url, true) && compareValues(version, o.version, true) && compareValues(status, o.status, true)
&& compareValues(experimental, o.experimental, true) && compareValues(publisher, o.publisher, true)
&& compareValues(date, o.date, true) && compareValues(name, o.name, true) && compareValues(copyright, o.copyright, true)
&& compareValues(stringency, o.stringency, true);
}
public boolean isEmpty() {
return super.isEmpty() && (url == null || url.isEmpty()) && (identifier == null || identifier.isEmpty())
&& (version == null || version.isEmpty()) && (name == null || name.isEmpty()) && (status == null || status.isEmpty())
&& (experimental == null || experimental.isEmpty()) && (publisher == null || publisher.isEmpty())
&& (contact == null || contact.isEmpty()) && (date == null || date.isEmpty()) && (useContext == null || useContext.isEmpty())
&& (copyright == null || copyright.isEmpty()) && (stringency == null || stringency.isEmpty())
&& (mapping == null || mapping.isEmpty()) && (element == null || element.isEmpty());
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( url, identifier, version, status
, experimental, publisher, date, name, contact, useContext, copyright, stringency, mapping
, element);
}
@Override

View File

@ -29,7 +29,7 @@ package org.hl7.fhir.dstu3.model;
*/
// Generated on Sat, Jan 30, 2016 09:18-0500 for FHIR v1.3.0
// Generated on Fri, Apr 1, 2016 17:57-0400 for FHIR v1.4.0
import java.util.*;
@ -39,9 +39,8 @@ import ca.uhn.fhir.model.api.annotation.SearchParamDefinition;
import ca.uhn.fhir.model.api.annotation.Child;
import ca.uhn.fhir.model.api.annotation.Description;
import ca.uhn.fhir.model.api.annotation.Block;
import org.hl7.fhir.dstu3.exceptions.FHIRException;
import org.hl7.fhir.instance.model.api.*;
import org.hl7.fhir.dstu3.exceptions.FHIRException;
/**
* Indicates an actual or potential clinical issue with or between one or more active or proposed clinical actions for a patient; e.g. Drug-drug interaction, Ineffective treatment frequency, Procedure-condition conflict, etc.
*/
@ -380,8 +379,7 @@ public class DetectedIssue extends DomainResource {
}
public boolean isEmpty() {
return super.isEmpty() && (action == null || action.isEmpty()) && (date == null || date.isEmpty())
&& (author == null || author.isEmpty());
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( action, date, author);
}
public String fhirType() {
@ -1039,11 +1037,8 @@ public class DetectedIssue extends DomainResource {
}
public boolean isEmpty() {
return super.isEmpty() && (patient == null || patient.isEmpty()) && (category == null || category.isEmpty())
&& (severity == null || severity.isEmpty()) && (implicated == null || implicated.isEmpty())
&& (detail == null || detail.isEmpty()) && (date == null || date.isEmpty()) && (author == null || author.isEmpty())
&& (identifier == null || identifier.isEmpty()) && (reference == null || reference.isEmpty())
&& (mitigation == null || mitigation.isEmpty());
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( patient, category, severity, implicated
, detail, date, author, identifier, reference, mitigation);
}
@Override
@ -1099,7 +1094,7 @@ public class DetectedIssue extends DomainResource {
* Path: <b>DetectedIssue.patient</b><br>
* </p>
*/
@SearchParamDefinition(name="patient", path="DetectedIssue.patient", description="Associated patient", type="reference" )
@SearchParamDefinition(name="patient", path="DetectedIssue.patient", description="Associated patient", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Patient") } )
public static final String SP_PATIENT = "patient";
/**
* <b>Fluent Client</b> search parameter constant for <b>patient</b>
@ -1125,7 +1120,7 @@ public class DetectedIssue extends DomainResource {
* Path: <b>DetectedIssue.author</b><br>
* </p>
*/
@SearchParamDefinition(name="author", path="DetectedIssue.author", description="The provider or device that identified the issue", type="reference" )
@SearchParamDefinition(name="author", path="DetectedIssue.author", description="The provider or device that identified the issue", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Device"), @ca.uhn.fhir.model.api.annotation.Compartment(name="Practitioner") } )
public static final String SP_AUTHOR = "author";
/**
* <b>Fluent Client</b> search parameter constant for <b>author</b>

View File

@ -29,21 +29,19 @@ package org.hl7.fhir.dstu3.model;
*/
// Generated on Sat, Jan 30, 2016 09:18-0500 for FHIR v1.3.0
// Generated on Fri, Apr 1, 2016 17:57-0400 for FHIR v1.4.0
import java.util.*;
import org.hl7.fhir.utilities.Utilities;
import org.hl7.fhir.dstu3.model.Enumerations.*;
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.Description;
import ca.uhn.fhir.model.api.annotation.Block;
import org.hl7.fhir.dstu3.exceptions.FHIRException;
import org.hl7.fhir.dstu3.model.Enumerations.*;
import org.hl7.fhir.instance.model.api.*;
import org.hl7.fhir.dstu3.exceptions.FHIRException;
/**
* Describes the characteristics, operational status and capabilities of a medical-related component of a medical device.
*/
@ -477,8 +475,8 @@ public class DeviceComponent extends DomainResource {
}
public boolean isEmpty() {
return super.isEmpty() && (specType == null || specType.isEmpty()) && (componentId == null || componentId.isEmpty())
&& (productionSpec == null || productionSpec.isEmpty());
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( specType, componentId, productionSpec
);
}
public String fhirType() {
@ -1086,12 +1084,9 @@ public class DeviceComponent extends DomainResource {
}
public boolean isEmpty() {
return super.isEmpty() && (type == null || type.isEmpty()) && (identifier == null || identifier.isEmpty())
&& (lastSystemChange == null || lastSystemChange.isEmpty()) && (source == null || source.isEmpty())
&& (parent == null || parent.isEmpty()) && (operationalStatus == null || operationalStatus.isEmpty())
&& (parameterGroup == null || parameterGroup.isEmpty()) && (measurementPrinciple == null || measurementPrinciple.isEmpty())
&& (productionSpecification == null || productionSpecification.isEmpty()) && (languageCode == null || languageCode.isEmpty())
;
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( type, identifier, lastSystemChange
, source, parent, operationalStatus, parameterGroup, measurementPrinciple, productionSpecification
, languageCode);
}
@Override
@ -1133,7 +1128,7 @@ public class DeviceComponent extends DomainResource {
* Path: <b>DeviceComponent.source</b><br>
* </p>
*/
@SearchParamDefinition(name="source", path="DeviceComponent.source", description="The device source", type="reference" )
@SearchParamDefinition(name="source", path="DeviceComponent.source", description="The device source", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Device") } )
public static final String SP_SOURCE = "source";
/**
* <b>Fluent Client</b> search parameter constant for <b>source</b>

View File

@ -29,7 +29,7 @@ package org.hl7.fhir.dstu3.model;
*/
// Generated on Sat, Jan 30, 2016 09:18-0500 for FHIR v1.3.0
// Generated on Fri, Apr 1, 2016 17:57-0400 for FHIR v1.4.0
import java.util.*;
@ -39,9 +39,8 @@ import ca.uhn.fhir.model.api.annotation.SearchParamDefinition;
import ca.uhn.fhir.model.api.annotation.Child;
import ca.uhn.fhir.model.api.annotation.Description;
import ca.uhn.fhir.model.api.annotation.Block;
import org.hl7.fhir.dstu3.exceptions.FHIRException;
import org.hl7.fhir.instance.model.api.*;
import org.hl7.fhir.dstu3.exceptions.FHIRException;
/**
* Describes a measurement, calculation or setting capability of a medical device.
*/
@ -936,8 +935,7 @@ public class DeviceMetric extends DomainResource {
}
public boolean isEmpty() {
return super.isEmpty() && (type == null || type.isEmpty()) && (state == null || state.isEmpty())
&& (time == null || time.isEmpty());
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( type, state, time);
}
public String fhirType() {
@ -1549,11 +1547,8 @@ public class DeviceMetric extends DomainResource {
}
public boolean isEmpty() {
return super.isEmpty() && (type == null || type.isEmpty()) && (identifier == null || identifier.isEmpty())
&& (unit == null || unit.isEmpty()) && (source == null || source.isEmpty()) && (parent == null || parent.isEmpty())
&& (operationalStatus == null || operationalStatus.isEmpty()) && (color == null || color.isEmpty())
&& (category == null || category.isEmpty()) && (measurementPeriod == null || measurementPeriod.isEmpty())
&& (calibration == null || calibration.isEmpty());
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( type, identifier, unit, source
, parent, operationalStatus, color, category, measurementPeriod, calibration);
}
@Override
@ -1615,7 +1610,7 @@ public class DeviceMetric extends DomainResource {
* Path: <b>DeviceMetric.source</b><br>
* </p>
*/
@SearchParamDefinition(name="source", path="DeviceMetric.source", description="The device resource", type="reference" )
@SearchParamDefinition(name="source", path="DeviceMetric.source", description="The device resource", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Device") } )
public static final String SP_SOURCE = "source";
/**
* <b>Fluent Client</b> search parameter constant for <b>source</b>

View File

@ -29,7 +29,7 @@ package org.hl7.fhir.dstu3.model;
*/
// Generated on Sat, Jan 30, 2016 09:18-0500 for FHIR v1.3.0
// Generated on Fri, Apr 1, 2016 17:57-0400 for FHIR v1.4.0
import java.util.*;
@ -39,9 +39,8 @@ import ca.uhn.fhir.model.api.annotation.SearchParamDefinition;
import ca.uhn.fhir.model.api.annotation.Child;
import ca.uhn.fhir.model.api.annotation.Description;
import ca.uhn.fhir.model.api.annotation.Block;
import org.hl7.fhir.dstu3.exceptions.FHIRException;
import org.hl7.fhir.instance.model.api.*;
import org.hl7.fhir.dstu3.exceptions.FHIRException;
/**
* Represents a request for a patient to employ a medical device. The device may be an implantable device, or an external assistive device, such as a walker.
*/
@ -1292,12 +1291,9 @@ public class DeviceUseRequest extends DomainResource {
}
public boolean isEmpty() {
return super.isEmpty() && (bodySite == null || bodySite.isEmpty()) && (status == null || status.isEmpty())
&& (device == null || device.isEmpty()) && (encounter == null || encounter.isEmpty()) && (identifier == null || identifier.isEmpty())
&& (indication == null || indication.isEmpty()) && (notes == null || notes.isEmpty()) && (prnReason == null || prnReason.isEmpty())
&& (orderedOn == null || orderedOn.isEmpty()) && (recordedOn == null || recordedOn.isEmpty())
&& (subject == null || subject.isEmpty()) && (timing == null || timing.isEmpty()) && (priority == null || priority.isEmpty())
;
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( bodySite, status, device, encounter
, identifier, indication, notes, prnReason, orderedOn, recordedOn, subject, timing, priority
);
}
@Override
@ -1313,7 +1309,7 @@ public class DeviceUseRequest extends DomainResource {
* Path: <b>DeviceUseRequest.subject</b><br>
* </p>
*/
@SearchParamDefinition(name="subject", path="DeviceUseRequest.subject", description="Search by subject", type="reference" )
@SearchParamDefinition(name="subject", path="DeviceUseRequest.subject", description="Search by subject", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Patient") } )
public static final String SP_SUBJECT = "subject";
/**
* <b>Fluent Client</b> search parameter constant for <b>subject</b>
@ -1365,7 +1361,7 @@ public class DeviceUseRequest extends DomainResource {
* Path: <b>DeviceUseRequest.device</b><br>
* </p>
*/
@SearchParamDefinition(name="device", path="DeviceUseRequest.device", description="Device requested", type="reference" )
@SearchParamDefinition(name="device", path="DeviceUseRequest.device", description="Device requested", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Device") } )
public static final String SP_DEVICE = "device";
/**
* <b>Fluent Client</b> search parameter constant for <b>device</b>

View File

@ -29,7 +29,7 @@ package org.hl7.fhir.dstu3.model;
*/
// Generated on Sat, Jan 30, 2016 09:18-0500 for FHIR v1.3.0
// Generated on Fri, Apr 1, 2016 17:57-0400 for FHIR v1.4.0
import java.util.*;
@ -39,9 +39,8 @@ import ca.uhn.fhir.model.api.annotation.SearchParamDefinition;
import ca.uhn.fhir.model.api.annotation.Child;
import ca.uhn.fhir.model.api.annotation.Description;
import ca.uhn.fhir.model.api.annotation.Block;
import org.hl7.fhir.dstu3.exceptions.FHIRException;
import org.hl7.fhir.instance.model.api.*;
import org.hl7.fhir.dstu3.exceptions.FHIRException;
/**
* A record of a device being used by a patient where the record is the result of a report from the patient or another clinician.
*/
@ -684,10 +683,8 @@ public class DeviceUseStatement extends DomainResource {
}
public boolean isEmpty() {
return super.isEmpty() && (bodySite == null || bodySite.isEmpty()) && (whenUsed == null || whenUsed.isEmpty())
&& (device == null || device.isEmpty()) && (identifier == null || identifier.isEmpty()) && (indication == null || indication.isEmpty())
&& (notes == null || notes.isEmpty()) && (recordedOn == null || recordedOn.isEmpty()) && (subject == null || subject.isEmpty())
&& (timing == null || timing.isEmpty());
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( bodySite, whenUsed, device, identifier
, indication, notes, recordedOn, subject, timing);
}
@Override
@ -703,7 +700,7 @@ public class DeviceUseStatement extends DomainResource {
* Path: <b>DeviceUseStatement.subject</b><br>
* </p>
*/
@SearchParamDefinition(name="subject", path="DeviceUseStatement.subject", description="Search by subject", type="reference" )
@SearchParamDefinition(name="subject", path="DeviceUseStatement.subject", description="Search by subject", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Patient") } )
public static final String SP_SUBJECT = "subject";
/**
* <b>Fluent Client</b> search parameter constant for <b>subject</b>
@ -755,7 +752,7 @@ public class DeviceUseStatement extends DomainResource {
* Path: <b>DeviceUseStatement.device</b><br>
* </p>
*/
@SearchParamDefinition(name="device", path="DeviceUseStatement.device", description="Search by device", type="reference" )
@SearchParamDefinition(name="device", path="DeviceUseStatement.device", description="Search by device", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Device") } )
public static final String SP_DEVICE = "device";
/**
* <b>Fluent Client</b> search parameter constant for <b>device</b>

View File

@ -29,7 +29,7 @@ package org.hl7.fhir.dstu3.model;
*/
// Generated on Sat, Jan 30, 2016 09:18-0500 for FHIR v1.3.0
// Generated on Fri, Apr 1, 2016 17:57-0400 for FHIR v1.4.0
import java.util.*;
@ -39,9 +39,8 @@ import ca.uhn.fhir.model.api.annotation.SearchParamDefinition;
import ca.uhn.fhir.model.api.annotation.Child;
import ca.uhn.fhir.model.api.annotation.Description;
import ca.uhn.fhir.model.api.annotation.Block;
import org.hl7.fhir.dstu3.exceptions.FHIRException;
import org.hl7.fhir.instance.model.api.*;
import org.hl7.fhir.dstu3.exceptions.FHIRException;
/**
* A record of a request for a diagnostic investigation service to be performed.
*/
@ -726,8 +725,8 @@ public class DiagnosticOrder extends DomainResource {
}
public boolean isEmpty() {
return super.isEmpty() && (status == null || status.isEmpty()) && (description == null || description.isEmpty())
&& (dateTime == null || dateTime.isEmpty()) && (actor == null || actor.isEmpty());
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( status, description, dateTime
, actor);
}
public String fhirType() {
@ -1083,9 +1082,8 @@ public class DiagnosticOrder extends DomainResource {
}
public boolean isEmpty() {
return super.isEmpty() && (code == null || code.isEmpty()) && (specimen == null || specimen.isEmpty())
&& (bodySite == null || bodySite.isEmpty()) && (status == null || status.isEmpty()) && (event == null || event.isEmpty())
;
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( code, specimen, bodySite, status
, event);
}
public String fhirType() {
@ -1095,41 +1093,43 @@ public class DiagnosticOrder extends DomainResource {
}
/**
* Who or what the investigation is to be performed on. This is usually a human patient, but diagnostic tests can also be requested on animals, groups of humans or animals, devices such as dialysis machines, or even locations (typically for environmental scans).
*/
@Child(name = "subject", type = {Patient.class, Group.class, Location.class, Device.class}, order=0, min=1, max=1, modifier=false, summary=true)
@Description(shortDefinition="Who and/or what test is about", formalDefinition="Who or what the investigation is to be performed on. This is usually a human patient, but diagnostic tests can also be requested on animals, groups of humans or animals, devices such as dialysis machines, or even locations (typically for environmental scans)." )
protected Reference subject;
/**
* The actual object that is the target of the reference (Who or what the investigation is to be performed on. This is usually a human patient, but diagnostic tests can also be requested on animals, groups of humans or animals, devices such as dialysis machines, or even locations (typically for environmental scans).)
*/
protected Resource subjectTarget;
/**
* The practitioner that holds legal responsibility for ordering the investigation.
*/
@Child(name = "orderer", type = {Practitioner.class}, order=1, min=0, max=1, modifier=false, summary=true)
@Description(shortDefinition="Who ordered the test", formalDefinition="The practitioner that holds legal responsibility for ordering the investigation." )
protected Reference orderer;
/**
* The actual object that is the target of the reference (The practitioner that holds legal responsibility for ordering the investigation.)
*/
protected Practitioner ordererTarget;
/**
* Identifiers assigned to this order instance by the orderer and/or the receiver and/or order fulfiller.
*/
@Child(name = "identifier", type = {Identifier.class}, order=2, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
@Child(name = "identifier", type = {Identifier.class}, order=0, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
@Description(shortDefinition="Identifiers assigned to this order", formalDefinition="Identifiers assigned to this order instance by the orderer and/or the receiver and/or order fulfiller." )
protected List<Identifier> identifier;
/**
* The status of the order.
*/
@Child(name = "status", type = {CodeType.class}, order=1, min=0, max=1, modifier=true, summary=true)
@Description(shortDefinition="proposed | draft | planned | requested | received | accepted | in-progress | review | completed | cancelled | suspended | rejected | failed | entered-in-error", formalDefinition="The status of the order." )
protected Enumeration<DiagnosticOrderStatus> status;
/**
* The clinical priority associated with this order.
*/
@Child(name = "priority", type = {CodeType.class}, order=2, min=0, max=1, modifier=false, summary=true)
@Description(shortDefinition="routine | urgent | stat | asap", formalDefinition="The clinical priority associated with this order." )
protected Enumeration<DiagnosticOrderPriority> priority;
/**
* On whom or what the investigation is to be performed. This is usually a human patient, but diagnostic tests can also be requested on animals, groups of humans or animals, devices such as dialysis machines, or even locations (typically for environmental scans).
*/
@Child(name = "subject", type = {Patient.class, Group.class, Location.class, Device.class}, order=3, min=1, max=1, modifier=false, summary=true)
@Description(shortDefinition="Who and/or what test is about", formalDefinition="On whom or what the investigation is to be performed. This is usually a human patient, but diagnostic tests can also be requested on animals, groups of humans or animals, devices such as dialysis machines, or even locations (typically for environmental scans)." )
protected Reference subject;
/**
* The actual object that is the target of the reference (On whom or what the investigation is to be performed. This is usually a human patient, but diagnostic tests can also be requested on animals, groups of humans or animals, devices such as dialysis machines, or even locations (typically for environmental scans).)
*/
protected Resource subjectTarget;
/**
* An encounter that provides additional information about the healthcare context in which this request is made.
*/
@Child(name = "encounter", type = {Encounter.class}, order=3, min=0, max=1, modifier=false, summary=true)
@Child(name = "encounter", type = {Encounter.class}, order=4, min=0, max=1, modifier=false, summary=true)
@Description(shortDefinition="The encounter that this diagnostic order is associated with", formalDefinition="An encounter that provides additional information about the healthcare context in which this request is made." )
protected Reference encounter;
@ -1138,17 +1138,29 @@ public class DiagnosticOrder extends DomainResource {
*/
protected Encounter encounterTarget;
/**
* The practitioner that holds legal responsibility for ordering the investigation.
*/
@Child(name = "orderer", type = {Practitioner.class}, order=5, min=0, max=1, modifier=false, summary=true)
@Description(shortDefinition="Who ordered the test", formalDefinition="The practitioner that holds legal responsibility for ordering the investigation." )
protected Reference orderer;
/**
* The actual object that is the target of the reference (The practitioner that holds legal responsibility for ordering the investigation.)
*/
protected Practitioner ordererTarget;
/**
* An explanation or justification for why this diagnostic investigation is being requested. This is often for billing purposes. May relate to the resources referred to in supportingInformation.
*/
@Child(name = "reason", type = {CodeableConcept.class}, order=4, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
@Child(name = "reason", type = {CodeableConcept.class}, order=6, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
@Description(shortDefinition="Explanation/Justification for test", formalDefinition="An explanation or justification for why this diagnostic investigation is being requested. This is often for billing purposes. May relate to the resources referred to in supportingInformation." )
protected List<CodeableConcept> reason;
/**
* Additional clinical information about the patient or specimen that may influence test interpretations. This includes observations explicitly requested by the producer(filler) to provide context or supporting information needed to complete the order.
*/
@Child(name = "supportingInformation", type = {Observation.class, Condition.class, DocumentReference.class}, order=5, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
@Child(name = "supportingInformation", type = {Observation.class, Condition.class, DocumentReference.class}, order=7, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
@Description(shortDefinition="Additional clinical information", formalDefinition="Additional clinical information about the patient or specimen that may influence test interpretations. This includes observations explicitly requested by the producer(filler) to provide context or supporting information needed to complete the order." )
protected List<Reference> supportingInformation;
/**
@ -1160,7 +1172,7 @@ public class DiagnosticOrder extends DomainResource {
/**
* One or more specimens that the diagnostic investigation is about.
*/
@Child(name = "specimen", type = {Specimen.class}, order=6, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
@Child(name = "specimen", type = {Specimen.class}, order=8, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
@Description(shortDefinition="If the whole order relates to specific specimens", formalDefinition="One or more specimens that the diagnostic investigation is about." )
protected List<Reference> specimen;
/**
@ -1169,20 +1181,6 @@ public class DiagnosticOrder extends DomainResource {
protected List<Specimen> specimenTarget;
/**
* The status of the order.
*/
@Child(name = "status", type = {CodeType.class}, order=7, min=0, max=1, modifier=true, summary=true)
@Description(shortDefinition="proposed | draft | planned | requested | received | accepted | in-progress | review | completed | cancelled | suspended | rejected | failed | entered-in-error", formalDefinition="The status of the order." )
protected Enumeration<DiagnosticOrderStatus> status;
/**
* The clinical priority associated with this order.
*/
@Child(name = "priority", type = {CodeType.class}, order=8, min=0, max=1, modifier=false, summary=true)
@Description(shortDefinition="routine | urgent | stat | asap", formalDefinition="The clinical priority associated with this order." )
protected Enumeration<DiagnosticOrderPriority> priority;
/**
* A summary of the events of interest that have occurred as the request is processed; e.g. when the order was made, various processing steps (specimens received), when it was completed.
*/
@ -1204,7 +1202,7 @@ public class DiagnosticOrder extends DomainResource {
@Description(shortDefinition="Other notes and comments", formalDefinition="Any other notes associated with this patient, specimen or order (e.g. \"patient hates needles\")." )
protected List<Annotation> note;
private static final long serialVersionUID = 700891227L;
private static final long serialVersionUID = 1170289657L;
/**
* Constructor
@ -1221,89 +1219,6 @@ public class DiagnosticOrder extends DomainResource {
this.subject = subject;
}
/**
* @return {@link #subject} (Who or what the investigation is to be performed on. This is usually a human patient, but diagnostic tests can also be requested on animals, groups of humans or animals, devices such as dialysis machines, or even locations (typically for environmental scans).)
*/
public Reference getSubject() {
if (this.subject == null)
if (Configuration.errorOnAutoCreate())
throw new Error("Attempt to auto-create DiagnosticOrder.subject");
else if (Configuration.doAutoCreate())
this.subject = new Reference(); // cc
return this.subject;
}
public boolean hasSubject() {
return this.subject != null && !this.subject.isEmpty();
}
/**
* @param value {@link #subject} (Who or what the investigation is to be performed on. This is usually a human patient, but diagnostic tests can also be requested on animals, groups of humans or animals, devices such as dialysis machines, or even locations (typically for environmental scans).)
*/
public DiagnosticOrder setSubject(Reference value) {
this.subject = value;
return this;
}
/**
* @return {@link #subject} The actual object that is the target of the reference. The reference library doesn't populate this, but you can use it to hold the resource if you resolve it. (Who or what the investigation is to be performed on. This is usually a human patient, but diagnostic tests can also be requested on animals, groups of humans or animals, devices such as dialysis machines, or even locations (typically for environmental scans).)
*/
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. (Who or what the investigation is to be performed on. This is usually a human patient, but diagnostic tests can also be requested on animals, groups of humans or animals, devices such as dialysis machines, or even locations (typically for environmental scans).)
*/
public DiagnosticOrder setSubjectTarget(Resource value) {
this.subjectTarget = value;
return this;
}
/**
* @return {@link #orderer} (The practitioner that holds legal responsibility for ordering the investigation.)
*/
public Reference getOrderer() {
if (this.orderer == null)
if (Configuration.errorOnAutoCreate())
throw new Error("Attempt to auto-create DiagnosticOrder.orderer");
else if (Configuration.doAutoCreate())
this.orderer = new Reference(); // cc
return this.orderer;
}
public boolean hasOrderer() {
return this.orderer != null && !this.orderer.isEmpty();
}
/**
* @param value {@link #orderer} (The practitioner that holds legal responsibility for ordering the investigation.)
*/
public DiagnosticOrder setOrderer(Reference value) {
this.orderer = value;
return this;
}
/**
* @return {@link #orderer} The actual object that is the target of the reference. The reference library doesn't populate this, but you can use it to hold the resource if you resolve it. (The practitioner that holds legal responsibility for ordering the investigation.)
*/
public Practitioner getOrdererTarget() {
if (this.ordererTarget == null)
if (Configuration.errorOnAutoCreate())
throw new Error("Attempt to auto-create DiagnosticOrder.orderer");
else if (Configuration.doAutoCreate())
this.ordererTarget = new Practitioner(); // aa
return this.ordererTarget;
}
/**
* @param value {@link #orderer} The actual object that is the target of the reference. The reference library doesn't use these, but you can use it to hold the resource if you resolve it. (The practitioner that holds legal responsibility for ordering the investigation.)
*/
public DiagnosticOrder setOrdererTarget(Practitioner value) {
this.ordererTarget = value;
return this;
}
/**
* @return {@link #identifier} (Identifiers assigned to this order instance by the orderer and/or the receiver and/or order fulfiller.)
*/
@ -1344,6 +1259,143 @@ public class DiagnosticOrder extends DomainResource {
return this;
}
/**
* @return {@link #status} (The status of the order.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value
*/
public Enumeration<DiagnosticOrderStatus> getStatusElement() {
if (this.status == null)
if (Configuration.errorOnAutoCreate())
throw new Error("Attempt to auto-create DiagnosticOrder.status");
else if (Configuration.doAutoCreate())
this.status = new Enumeration<DiagnosticOrderStatus>(new DiagnosticOrderStatusEnumFactory()); // bb
return this.status;
}
public boolean hasStatusElement() {
return this.status != null && !this.status.isEmpty();
}
public boolean hasStatus() {
return this.status != null && !this.status.isEmpty();
}
/**
* @param value {@link #status} (The status of the order.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value
*/
public DiagnosticOrder setStatusElement(Enumeration<DiagnosticOrderStatus> value) {
this.status = value;
return this;
}
/**
* @return The status of the order.
*/
public DiagnosticOrderStatus getStatus() {
return this.status == null ? null : this.status.getValue();
}
/**
* @param value The status of the order.
*/
public DiagnosticOrder setStatus(DiagnosticOrderStatus value) {
if (value == null)
this.status = null;
else {
if (this.status == null)
this.status = new Enumeration<DiagnosticOrderStatus>(new DiagnosticOrderStatusEnumFactory());
this.status.setValue(value);
}
return this;
}
/**
* @return {@link #priority} (The clinical priority associated with this order.). This is the underlying object with id, value and extensions. The accessor "getPriority" gives direct access to the value
*/
public Enumeration<DiagnosticOrderPriority> getPriorityElement() {
if (this.priority == null)
if (Configuration.errorOnAutoCreate())
throw new Error("Attempt to auto-create DiagnosticOrder.priority");
else if (Configuration.doAutoCreate())
this.priority = new Enumeration<DiagnosticOrderPriority>(new DiagnosticOrderPriorityEnumFactory()); // bb
return this.priority;
}
public boolean hasPriorityElement() {
return this.priority != null && !this.priority.isEmpty();
}
public boolean hasPriority() {
return this.priority != null && !this.priority.isEmpty();
}
/**
* @param value {@link #priority} (The clinical priority associated with this order.). This is the underlying object with id, value and extensions. The accessor "getPriority" gives direct access to the value
*/
public DiagnosticOrder setPriorityElement(Enumeration<DiagnosticOrderPriority> value) {
this.priority = value;
return this;
}
/**
* @return The clinical priority associated with this order.
*/
public DiagnosticOrderPriority getPriority() {
return this.priority == null ? null : this.priority.getValue();
}
/**
* @param value The clinical priority associated with this order.
*/
public DiagnosticOrder setPriority(DiagnosticOrderPriority value) {
if (value == null)
this.priority = null;
else {
if (this.priority == null)
this.priority = new Enumeration<DiagnosticOrderPriority>(new DiagnosticOrderPriorityEnumFactory());
this.priority.setValue(value);
}
return this;
}
/**
* @return {@link #subject} (On whom or what the investigation is to be performed. This is usually a human patient, but diagnostic tests can also be requested on animals, groups of humans or animals, devices such as dialysis machines, or even locations (typically for environmental scans).)
*/
public Reference getSubject() {
if (this.subject == null)
if (Configuration.errorOnAutoCreate())
throw new Error("Attempt to auto-create DiagnosticOrder.subject");
else if (Configuration.doAutoCreate())
this.subject = new Reference(); // cc
return this.subject;
}
public boolean hasSubject() {
return this.subject != null && !this.subject.isEmpty();
}
/**
* @param value {@link #subject} (On whom or what the investigation is to be performed. This is usually a human patient, but diagnostic tests can also be requested on animals, groups of humans or animals, devices such as dialysis machines, or even locations (typically for environmental scans).)
*/
public DiagnosticOrder setSubject(Reference value) {
this.subject = value;
return this;
}
/**
* @return {@link #subject} The actual object that is the target of the reference. The reference library doesn't populate this, but you can use it to hold the resource if you resolve it. (On whom or what the investigation is to be performed. This is usually a human patient, but diagnostic tests can also be requested on animals, groups of humans or animals, devices such as dialysis machines, or even locations (typically for environmental scans).)
*/
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. (On whom or what the investigation is to be performed. This is usually a human patient, but diagnostic tests can also be requested on animals, groups of humans or animals, devices such as dialysis machines, or even locations (typically for environmental scans).)
*/
public DiagnosticOrder setSubjectTarget(Resource value) {
this.subjectTarget = value;
return this;
}
/**
* @return {@link #encounter} (An encounter that provides additional information about the healthcare context in which this request is made.)
*/
@ -1388,6 +1440,50 @@ public class DiagnosticOrder extends DomainResource {
return this;
}
/**
* @return {@link #orderer} (The practitioner that holds legal responsibility for ordering the investigation.)
*/
public Reference getOrderer() {
if (this.orderer == null)
if (Configuration.errorOnAutoCreate())
throw new Error("Attempt to auto-create DiagnosticOrder.orderer");
else if (Configuration.doAutoCreate())
this.orderer = new Reference(); // cc
return this.orderer;
}
public boolean hasOrderer() {
return this.orderer != null && !this.orderer.isEmpty();
}
/**
* @param value {@link #orderer} (The practitioner that holds legal responsibility for ordering the investigation.)
*/
public DiagnosticOrder setOrderer(Reference value) {
this.orderer = value;
return this;
}
/**
* @return {@link #orderer} The actual object that is the target of the reference. The reference library doesn't populate this, but you can use it to hold the resource if you resolve it. (The practitioner that holds legal responsibility for ordering the investigation.)
*/
public Practitioner getOrdererTarget() {
if (this.ordererTarget == null)
if (Configuration.errorOnAutoCreate())
throw new Error("Attempt to auto-create DiagnosticOrder.orderer");
else if (Configuration.doAutoCreate())
this.ordererTarget = new Practitioner(); // aa
return this.ordererTarget;
}
/**
* @param value {@link #orderer} The actual object that is the target of the reference. The reference library doesn't use these, but you can use it to hold the resource if you resolve it. (The practitioner that holds legal responsibility for ordering the investigation.)
*/
public DiagnosticOrder setOrdererTarget(Practitioner value) {
this.ordererTarget = value;
return this;
}
/**
* @return {@link #reason} (An explanation or justification for why this diagnostic investigation is being requested. This is often for billing purposes. May relate to the resources referred to in supportingInformation.)
*/
@ -1538,104 +1634,6 @@ public class DiagnosticOrder extends DomainResource {
return r;
}
/**
* @return {@link #status} (The status of the order.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value
*/
public Enumeration<DiagnosticOrderStatus> getStatusElement() {
if (this.status == null)
if (Configuration.errorOnAutoCreate())
throw new Error("Attempt to auto-create DiagnosticOrder.status");
else if (Configuration.doAutoCreate())
this.status = new Enumeration<DiagnosticOrderStatus>(new DiagnosticOrderStatusEnumFactory()); // bb
return this.status;
}
public boolean hasStatusElement() {
return this.status != null && !this.status.isEmpty();
}
public boolean hasStatus() {
return this.status != null && !this.status.isEmpty();
}
/**
* @param value {@link #status} (The status of the order.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value
*/
public DiagnosticOrder setStatusElement(Enumeration<DiagnosticOrderStatus> value) {
this.status = value;
return this;
}
/**
* @return The status of the order.
*/
public DiagnosticOrderStatus getStatus() {
return this.status == null ? null : this.status.getValue();
}
/**
* @param value The status of the order.
*/
public DiagnosticOrder setStatus(DiagnosticOrderStatus value) {
if (value == null)
this.status = null;
else {
if (this.status == null)
this.status = new Enumeration<DiagnosticOrderStatus>(new DiagnosticOrderStatusEnumFactory());
this.status.setValue(value);
}
return this;
}
/**
* @return {@link #priority} (The clinical priority associated with this order.). This is the underlying object with id, value and extensions. The accessor "getPriority" gives direct access to the value
*/
public Enumeration<DiagnosticOrderPriority> getPriorityElement() {
if (this.priority == null)
if (Configuration.errorOnAutoCreate())
throw new Error("Attempt to auto-create DiagnosticOrder.priority");
else if (Configuration.doAutoCreate())
this.priority = new Enumeration<DiagnosticOrderPriority>(new DiagnosticOrderPriorityEnumFactory()); // bb
return this.priority;
}
public boolean hasPriorityElement() {
return this.priority != null && !this.priority.isEmpty();
}
public boolean hasPriority() {
return this.priority != null && !this.priority.isEmpty();
}
/**
* @param value {@link #priority} (The clinical priority associated with this order.). This is the underlying object with id, value and extensions. The accessor "getPriority" gives direct access to the value
*/
public DiagnosticOrder setPriorityElement(Enumeration<DiagnosticOrderPriority> value) {
this.priority = value;
return this;
}
/**
* @return The clinical priority associated with this order.
*/
public DiagnosticOrderPriority getPriority() {
return this.priority == null ? null : this.priority.getValue();
}
/**
* @param value The clinical priority associated with this order.
*/
public DiagnosticOrder setPriority(DiagnosticOrderPriority value) {
if (value == null)
this.priority = null;
else {
if (this.priority == null)
this.priority = new Enumeration<DiagnosticOrderPriority>(new DiagnosticOrderPriorityEnumFactory());
this.priority.setValue(value);
}
return this;
}
/**
* @return {@link #event} (A summary of the events of interest that have occurred as the request is processed; e.g. when the order was made, various processing steps (specimens received), when it was completed.)
*/
@ -1758,15 +1756,15 @@ public class DiagnosticOrder extends DomainResource {
protected void listChildren(List<Property> childrenList) {
super.listChildren(childrenList);
childrenList.add(new Property("subject", "Reference(Patient|Group|Location|Device)", "Who or what the investigation is to be performed on. This is usually a human patient, but diagnostic tests can also be requested on animals, groups of humans or animals, devices such as dialysis machines, or even locations (typically for environmental scans).", 0, java.lang.Integer.MAX_VALUE, subject));
childrenList.add(new Property("orderer", "Reference(Practitioner)", "The practitioner that holds legal responsibility for ordering the investigation.", 0, java.lang.Integer.MAX_VALUE, orderer));
childrenList.add(new Property("identifier", "Identifier", "Identifiers assigned to this order instance by the orderer and/or the receiver and/or order fulfiller.", 0, java.lang.Integer.MAX_VALUE, identifier));
childrenList.add(new Property("status", "code", "The status of the order.", 0, java.lang.Integer.MAX_VALUE, status));
childrenList.add(new Property("priority", "code", "The clinical priority associated with this order.", 0, java.lang.Integer.MAX_VALUE, priority));
childrenList.add(new Property("subject", "Reference(Patient|Group|Location|Device)", "On whom or what the investigation is to be performed. This is usually a human patient, but diagnostic tests can also be requested on animals, groups of humans or animals, devices such as dialysis machines, or even locations (typically for environmental scans).", 0, java.lang.Integer.MAX_VALUE, subject));
childrenList.add(new Property("encounter", "Reference(Encounter)", "An encounter that provides additional information about the healthcare context in which this request is made.", 0, java.lang.Integer.MAX_VALUE, encounter));
childrenList.add(new Property("orderer", "Reference(Practitioner)", "The practitioner that holds legal responsibility for ordering the investigation.", 0, java.lang.Integer.MAX_VALUE, orderer));
childrenList.add(new Property("reason", "CodeableConcept", "An explanation or justification for why this diagnostic investigation is being requested. This is often for billing purposes. May relate to the resources referred to in supportingInformation.", 0, java.lang.Integer.MAX_VALUE, reason));
childrenList.add(new Property("supportingInformation", "Reference(Observation|Condition|DocumentReference)", "Additional clinical information about the patient or specimen that may influence test interpretations. This includes observations explicitly requested by the producer(filler) to provide context or supporting information needed to complete the order.", 0, java.lang.Integer.MAX_VALUE, supportingInformation));
childrenList.add(new Property("specimen", "Reference(Specimen)", "One or more specimens that the diagnostic investigation is about.", 0, java.lang.Integer.MAX_VALUE, specimen));
childrenList.add(new Property("status", "code", "The status of the order.", 0, java.lang.Integer.MAX_VALUE, status));
childrenList.add(new Property("priority", "code", "The clinical priority associated with this order.", 0, java.lang.Integer.MAX_VALUE, priority));
childrenList.add(new Property("event", "", "A summary of the events of interest that have occurred as the request is processed; e.g. when the order was made, various processing steps (specimens received), when it was completed.", 0, java.lang.Integer.MAX_VALUE, event));
childrenList.add(new Property("item", "", "The specific diagnostic investigations that are requested as part of this request. Sometimes, there can only be one item per request, but in most contexts, more than one investigation can be requested.", 0, java.lang.Integer.MAX_VALUE, item));
childrenList.add(new Property("note", "Annotation", "Any other notes associated with this patient, specimen or order (e.g. \"patient hates needles\").", 0, java.lang.Integer.MAX_VALUE, note));
@ -1774,24 +1772,24 @@ public class DiagnosticOrder extends DomainResource {
@Override
public void setProperty(String name, Base value) throws FHIRException {
if (name.equals("subject"))
this.subject = castToReference(value); // Reference
else if (name.equals("orderer"))
this.orderer = castToReference(value); // Reference
else if (name.equals("identifier"))
if (name.equals("identifier"))
this.getIdentifier().add(castToIdentifier(value));
else if (name.equals("status"))
this.status = new DiagnosticOrderStatusEnumFactory().fromType(value); // Enumeration<DiagnosticOrderStatus>
else if (name.equals("priority"))
this.priority = new DiagnosticOrderPriorityEnumFactory().fromType(value); // Enumeration<DiagnosticOrderPriority>
else if (name.equals("subject"))
this.subject = castToReference(value); // Reference
else if (name.equals("encounter"))
this.encounter = castToReference(value); // Reference
else if (name.equals("orderer"))
this.orderer = castToReference(value); // Reference
else if (name.equals("reason"))
this.getReason().add(castToCodeableConcept(value));
else if (name.equals("supportingInformation"))
this.getSupportingInformation().add(castToReference(value));
else if (name.equals("specimen"))
this.getSpecimen().add(castToReference(value));
else if (name.equals("status"))
this.status = new DiagnosticOrderStatusEnumFactory().fromType(value); // Enumeration<DiagnosticOrderStatus>
else if (name.equals("priority"))
this.priority = new DiagnosticOrderPriorityEnumFactory().fromType(value); // Enumeration<DiagnosticOrderPriority>
else if (name.equals("event"))
this.getEvent().add((DiagnosticOrderEventComponent) value);
else if (name.equals("item"))
@ -1804,21 +1802,27 @@ public class DiagnosticOrder extends DomainResource {
@Override
public Base addChild(String name) throws FHIRException {
if (name.equals("subject")) {
if (name.equals("identifier")) {
return addIdentifier();
}
else if (name.equals("status")) {
throw new FHIRException("Cannot call addChild on a primitive type DiagnosticOrder.status");
}
else if (name.equals("priority")) {
throw new FHIRException("Cannot call addChild on a primitive type DiagnosticOrder.priority");
}
else if (name.equals("subject")) {
this.subject = new Reference();
return this.subject;
}
else if (name.equals("orderer")) {
this.orderer = new Reference();
return this.orderer;
}
else if (name.equals("identifier")) {
return addIdentifier();
}
else if (name.equals("encounter")) {
this.encounter = new Reference();
return this.encounter;
}
else if (name.equals("orderer")) {
this.orderer = new Reference();
return this.orderer;
}
else if (name.equals("reason")) {
return addReason();
}
@ -1828,12 +1832,6 @@ public class DiagnosticOrder extends DomainResource {
else if (name.equals("specimen")) {
return addSpecimen();
}
else if (name.equals("status")) {
throw new FHIRException("Cannot call addChild on a primitive type DiagnosticOrder.status");
}
else if (name.equals("priority")) {
throw new FHIRException("Cannot call addChild on a primitive type DiagnosticOrder.priority");
}
else if (name.equals("event")) {
return addEvent();
}
@ -1855,14 +1853,16 @@ public class DiagnosticOrder extends DomainResource {
public DiagnosticOrder copy() {
DiagnosticOrder dst = new DiagnosticOrder();
copyValues(dst);
dst.subject = subject == null ? null : subject.copy();
dst.orderer = orderer == null ? null : orderer.copy();
if (identifier != null) {
dst.identifier = new ArrayList<Identifier>();
for (Identifier i : identifier)
dst.identifier.add(i.copy());
};
dst.status = status == null ? null : status.copy();
dst.priority = priority == null ? null : priority.copy();
dst.subject = subject == null ? null : subject.copy();
dst.encounter = encounter == null ? null : encounter.copy();
dst.orderer = orderer == null ? null : orderer.copy();
if (reason != null) {
dst.reason = new ArrayList<CodeableConcept>();
for (CodeableConcept i : reason)
@ -1878,8 +1878,6 @@ public class DiagnosticOrder extends DomainResource {
for (Reference i : specimen)
dst.specimen.add(i.copy());
};
dst.status = status == null ? null : status.copy();
dst.priority = priority == null ? null : priority.copy();
if (event != null) {
dst.event = new ArrayList<DiagnosticOrderEventComponent>();
for (DiagnosticOrderEventComponent i : event)
@ -1909,11 +1907,11 @@ public class DiagnosticOrder extends DomainResource {
if (!(other instanceof DiagnosticOrder))
return false;
DiagnosticOrder o = (DiagnosticOrder) other;
return compareDeep(subject, o.subject, true) && compareDeep(orderer, o.orderer, true) && compareDeep(identifier, o.identifier, true)
&& compareDeep(encounter, o.encounter, true) && compareDeep(reason, o.reason, true) && compareDeep(supportingInformation, o.supportingInformation, true)
&& compareDeep(specimen, o.specimen, true) && compareDeep(status, o.status, true) && compareDeep(priority, o.priority, true)
&& compareDeep(event, o.event, true) && compareDeep(item, o.item, true) && compareDeep(note, o.note, true)
;
return compareDeep(identifier, o.identifier, true) && compareDeep(status, o.status, true) && compareDeep(priority, o.priority, true)
&& compareDeep(subject, o.subject, true) && compareDeep(encounter, o.encounter, true) && compareDeep(orderer, o.orderer, true)
&& compareDeep(reason, o.reason, true) && compareDeep(supportingInformation, o.supportingInformation, true)
&& compareDeep(specimen, o.specimen, true) && compareDeep(event, o.event, true) && compareDeep(item, o.item, true)
&& compareDeep(note, o.note, true);
}
@Override
@ -1927,12 +1925,9 @@ public class DiagnosticOrder extends DomainResource {
}
public boolean isEmpty() {
return super.isEmpty() && (subject == null || subject.isEmpty()) && (orderer == null || orderer.isEmpty())
&& (identifier == null || identifier.isEmpty()) && (encounter == null || encounter.isEmpty())
&& (reason == null || reason.isEmpty()) && (supportingInformation == null || supportingInformation.isEmpty())
&& (specimen == null || specimen.isEmpty()) && (status == null || status.isEmpty()) && (priority == null || priority.isEmpty())
&& (event == null || event.isEmpty()) && (item == null || item.isEmpty()) && (note == null || note.isEmpty())
;
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( identifier, status, priority
, subject, encounter, orderer, reason, supportingInformation, specimen, event, item
, note);
}
@Override
@ -2068,7 +2063,7 @@ public class DiagnosticOrder extends DomainResource {
* Path: <b>DiagnosticOrder.subject</b><br>
* </p>
*/
@SearchParamDefinition(name="subject", path="DiagnosticOrder.subject", description="Who and/or what test is about", type="reference" )
@SearchParamDefinition(name="subject", path="DiagnosticOrder.subject", description="Who and/or what test is about", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Device"), @ca.uhn.fhir.model.api.annotation.Compartment(name="Patient") } )
public static final String SP_SUBJECT = "subject";
/**
* <b>Fluent Client</b> search parameter constant for <b>subject</b>
@ -2094,7 +2089,7 @@ public class DiagnosticOrder extends DomainResource {
* Path: <b>DiagnosticOrder.encounter</b><br>
* </p>
*/
@SearchParamDefinition(name="encounter", path="DiagnosticOrder.encounter", description="The encounter that this diagnostic order is associated with", type="reference" )
@SearchParamDefinition(name="encounter", path="DiagnosticOrder.encounter", description="The encounter that this diagnostic order is associated with", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Encounter") } )
public static final String SP_ENCOUNTER = "encounter";
/**
* <b>Fluent Client</b> search parameter constant for <b>encounter</b>
@ -2120,7 +2115,7 @@ public class DiagnosticOrder extends DomainResource {
* Path: <b>DiagnosticOrder.event.actor, DiagnosticOrder.item.event.actor</b><br>
* </p>
*/
@SearchParamDefinition(name="actor", path="DiagnosticOrder.event.actor | DiagnosticOrder.item.event.actor", description="Who recorded or did this", type="reference" )
@SearchParamDefinition(name="actor", path="DiagnosticOrder.event.actor | DiagnosticOrder.item.event.actor", description="Who recorded or did this", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Device"), @ca.uhn.fhir.model.api.annotation.Compartment(name="Practitioner") } )
public static final String SP_ACTOR = "actor";
/**
* <b>Fluent Client</b> search parameter constant for <b>actor</b>
@ -2252,7 +2247,7 @@ public class DiagnosticOrder extends DomainResource {
* Path: <b>DiagnosticOrder.orderer</b><br>
* </p>
*/
@SearchParamDefinition(name="orderer", path="DiagnosticOrder.orderer", description="Who ordered the test", type="reference" )
@SearchParamDefinition(name="orderer", path="DiagnosticOrder.orderer", description="Who ordered the test", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Practitioner") } )
public static final String SP_ORDERER = "orderer";
/**
* <b>Fluent Client</b> search parameter constant for <b>orderer</b>

View File

@ -29,7 +29,7 @@ package org.hl7.fhir.dstu3.model;
*/
// Generated on Sat, Jan 30, 2016 09:18-0500 for FHIR v1.3.0
// Generated on Fri, Apr 1, 2016 17:57-0400 for FHIR v1.4.0
import java.util.*;
@ -39,9 +39,8 @@ import ca.uhn.fhir.model.api.annotation.SearchParamDefinition;
import ca.uhn.fhir.model.api.annotation.Child;
import ca.uhn.fhir.model.api.annotation.Description;
import ca.uhn.fhir.model.api.annotation.Block;
import org.hl7.fhir.dstu3.exceptions.FHIRException;
import org.hl7.fhir.instance.model.api.*;
import org.hl7.fhir.dstu3.exceptions.FHIRException;
/**
* The findings and interpretation of diagnostic tests performed on patients, groups of patients, devices, and locations, and/or specimens derived from these. The report includes clinical context such as requesting and provider information, and some mix of atomic results, images, textual and coded interpretations, and formatted representation of diagnostic reports.
*/
@ -62,7 +61,7 @@ public class DiagnosticReport extends DomainResource {
*/
FINAL,
/**
* The report has been modified subsequent to being Final, and is complete and verified by an authorized person. New content has been added, but existing content hasn't changed
* The report has been modified subsequent to being Final, and is complete and verified by an authorized person
*/
CORRECTED,
/**
@ -129,7 +128,7 @@ public class DiagnosticReport extends DomainResource {
case REGISTERED: return "The existence of the report is registered, but there is nothing yet available.";
case PARTIAL: return "This is a partial (e.g. initial, interim or preliminary) report: data in the report may be incomplete or unverified.";
case FINAL: return "The report is complete and verified by an authorized person.";
case CORRECTED: return "The report has been modified subsequent to being Final, and is complete and verified by an authorized person. New content has been added, but existing content hasn't changed";
case CORRECTED: return "The report has been modified subsequent to being Final, and is complete and verified by an authorized person";
case APPENDED: return "The report has been modified subsequent to being Final, and is complete and verified by an authorized person. New content has been added, but existing content hasn't changed.";
case CANCELLED: return "The report is unavailable because the measurement was not started or not completed (also sometimes called \"aborted\").";
case ENTEREDINERROR: return "The report has been withdrawn following a previous final release.";
@ -404,8 +403,7 @@ public class DiagnosticReport extends DomainResource {
}
public boolean isEmpty() {
return super.isEmpty() && (comment == null || comment.isEmpty()) && (link == null || link.isEmpty())
;
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( comment, link);
}
public String fhirType() {
@ -1545,13 +1543,9 @@ public class DiagnosticReport extends DomainResource {
}
public boolean isEmpty() {
return super.isEmpty() && (identifier == null || identifier.isEmpty()) && (status == null || status.isEmpty())
&& (category == null || category.isEmpty()) && (code == null || code.isEmpty()) && (subject == null || subject.isEmpty())
&& (encounter == null || encounter.isEmpty()) && (effective == null || effective.isEmpty())
&& (issued == null || issued.isEmpty()) && (performer == null || performer.isEmpty()) && (request == null || request.isEmpty())
&& (specimen == null || specimen.isEmpty()) && (result == null || result.isEmpty()) && (imagingStudy == null || imagingStudy.isEmpty())
&& (image == null || image.isEmpty()) && (conclusion == null || conclusion.isEmpty()) && (codedDiagnosis == null || codedDiagnosis.isEmpty())
&& (presentedForm == null || presentedForm.isEmpty());
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( identifier, status, category
, code, subject, encounter, effective, issued, performer, request, specimen, result
, imagingStudy, image, conclusion, codedDiagnosis, presentedForm);
}
@Override
@ -1659,7 +1653,7 @@ public class DiagnosticReport extends DomainResource {
* Path: <b>DiagnosticReport.performer</b><br>
* </p>
*/
@SearchParamDefinition(name="performer", path="DiagnosticReport.performer", description="Who was the source of the report (organization)", type="reference" )
@SearchParamDefinition(name="performer", path="DiagnosticReport.performer", description="Who was the source of the report (organization)", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Practitioner") } )
public static final String SP_PERFORMER = "performer";
/**
* <b>Fluent Client</b> search parameter constant for <b>performer</b>
@ -1705,7 +1699,7 @@ public class DiagnosticReport extends DomainResource {
* Path: <b>DiagnosticReport.subject</b><br>
* </p>
*/
@SearchParamDefinition(name="subject", path="DiagnosticReport.subject", description="The subject of the report", type="reference" )
@SearchParamDefinition(name="subject", path="DiagnosticReport.subject", description="The subject of the report", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Device"), @ca.uhn.fhir.model.api.annotation.Compartment(name="Patient") } )
public static final String SP_SUBJECT = "subject";
/**
* <b>Fluent Client</b> search parameter constant for <b>subject</b>
@ -1751,7 +1745,7 @@ public class DiagnosticReport extends DomainResource {
* Path: <b>DiagnosticReport.encounter</b><br>
* </p>
*/
@SearchParamDefinition(name="encounter", path="DiagnosticReport.encounter", description="The Encounter when the order was made", type="reference" )
@SearchParamDefinition(name="encounter", path="DiagnosticReport.encounter", description="The Encounter when the order was made", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Encounter") } )
public static final String SP_ENCOUNTER = "encounter";
/**
* <b>Fluent Client</b> search parameter constant for <b>encounter</b>

View File

@ -29,13 +29,12 @@ package org.hl7.fhir.dstu3.model;
*/
// Generated on Sat, Jan 30, 2016 09:18-0500 for FHIR v1.3.0
// Generated on Fri, Apr 1, 2016 17:57-0400 for FHIR v1.4.0
import ca.uhn.fhir.model.api.annotation.DatatypeDef;
import ca.uhn.fhir.model.api.annotation.Block;
import org.hl7.fhir.dstu3.exceptions.FHIRException;
import org.hl7.fhir.instance.model.api.*;
import org.hl7.fhir.dstu3.exceptions.FHIRException;
/**
* A measured amount (or an amount that can potentially be measured). Note that measured amounts include amounts that are not precisely quantified, including amounts involving arbitrary units and floating currencies.
*/
@ -82,9 +81,8 @@ public class Distance extends Quantity {
}
public boolean isEmpty() {
return super.isEmpty() && (value == null || value.isEmpty()) && (comparator == null || comparator.isEmpty())
&& (unit == null || unit.isEmpty()) && (system == null || system.isEmpty()) && (code == null || code.isEmpty())
;
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( value, comparator, unit, system
, code);
}

View File

@ -29,21 +29,19 @@ package org.hl7.fhir.dstu3.model;
*/
// Generated on Sat, Jan 30, 2016 09:18-0500 for FHIR v1.3.0
// Generated on Fri, Apr 1, 2016 17:57-0400 for FHIR v1.4.0
import java.util.*;
import org.hl7.fhir.utilities.Utilities;
import org.hl7.fhir.dstu3.model.Enumerations.*;
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.Description;
import ca.uhn.fhir.model.api.annotation.Block;
import org.hl7.fhir.dstu3.exceptions.FHIRException;
import org.hl7.fhir.dstu3.model.Enumerations.*;
import org.hl7.fhir.instance.model.api.*;
import org.hl7.fhir.dstu3.exceptions.FHIRException;
/**
* A manifest that defines a set of documents.
*/
@ -55,7 +53,7 @@ public class DocumentManifest extends DomainResource {
/**
* The list of references to document content, or Attachment that consist of the parts of this document manifest. Usually, these would be document references, but direct references to Media or Attachments are also allowed.
*/
@Child(name = "p", type = {Attachment.class, ValueSet.class}, order=1, min=1, max=1, modifier=false, summary=true)
@Child(name = "p", type = {Attachment.class}, order=1, min=1, max=1, modifier=false, summary=true)
@Description(shortDefinition="Contents of this set of documents", formalDefinition="The list of references to document content, or Attachment that consist of the parts of this document manifest. Usually, these would be document references, but direct references to Media or Attachments are also allowed." )
protected Type p;
@ -176,7 +174,7 @@ public class DocumentManifest extends DomainResource {
}
public boolean isEmpty() {
return super.isEmpty() && (p == null || p.isEmpty());
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( p);
}
public String fhirType() {
@ -338,8 +336,7 @@ public class DocumentManifest extends DomainResource {
}
public boolean isEmpty() {
return super.isEmpty() && (identifier == null || identifier.isEmpty()) && (ref == null || ref.isEmpty())
;
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( identifier, ref);
}
public String fhirType() {
@ -1126,11 +1123,8 @@ public class DocumentManifest extends DomainResource {
}
public boolean isEmpty() {
return super.isEmpty() && (masterIdentifier == null || masterIdentifier.isEmpty()) && (identifier == null || identifier.isEmpty())
&& (subject == null || subject.isEmpty()) && (recipient == null || recipient.isEmpty()) && (type == null || type.isEmpty())
&& (author == null || author.isEmpty()) && (created == null || created.isEmpty()) && (source == null || source.isEmpty())
&& (status == null || status.isEmpty()) && (description == null || description.isEmpty())
&& (content == null || content.isEmpty()) && (related == null || related.isEmpty());
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( masterIdentifier, identifier, subject
, recipient, type, author, created, source, status, description, content, related);
}
@Override
@ -1212,7 +1206,7 @@ public class DocumentManifest extends DomainResource {
* Path: <b>DocumentManifest.subject</b><br>
* </p>
*/
@SearchParamDefinition(name="subject", path="DocumentManifest.subject", description="The subject of the set of documents", type="reference" )
@SearchParamDefinition(name="subject", path="DocumentManifest.subject", description="The subject of the set of documents", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Device"), @ca.uhn.fhir.model.api.annotation.Compartment(name="Patient"), @ca.uhn.fhir.model.api.annotation.Compartment(name="Practitioner") } )
public static final String SP_SUBJECT = "subject";
/**
* <b>Fluent Client</b> search parameter constant for <b>subject</b>
@ -1238,7 +1232,7 @@ public class DocumentManifest extends DomainResource {
* Path: <b>DocumentManifest.author</b><br>
* </p>
*/
@SearchParamDefinition(name="author", path="DocumentManifest.author", description="Who and/or what authored the manifest", type="reference" )
@SearchParamDefinition(name="author", path="DocumentManifest.author", description="Who and/or what authored the manifest", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Device"), @ca.uhn.fhir.model.api.annotation.Compartment(name="Patient"), @ca.uhn.fhir.model.api.annotation.Compartment(name="Practitioner"), @ca.uhn.fhir.model.api.annotation.Compartment(name="RelatedPerson") } )
public static final String SP_AUTHOR = "author";
/**
* <b>Fluent Client</b> search parameter constant for <b>author</b>
@ -1396,7 +1390,7 @@ public class DocumentManifest extends DomainResource {
* Path: <b>DocumentManifest.recipient</b><br>
* </p>
*/
@SearchParamDefinition(name="recipient", path="DocumentManifest.recipient", description="Intended to get notified about this set of documents", type="reference" )
@SearchParamDefinition(name="recipient", path="DocumentManifest.recipient", description="Intended to get notified about this set of documents", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Patient"), @ca.uhn.fhir.model.api.annotation.Compartment(name="Practitioner") } )
public static final String SP_RECIPIENT = "recipient";
/**
* <b>Fluent Client</b> search parameter constant for <b>recipient</b>

View File

@ -29,21 +29,19 @@ package org.hl7.fhir.dstu3.model;
*/
// Generated on Sat, Jan 30, 2016 09:18-0500 for FHIR v1.3.0
// Generated on Fri, Apr 1, 2016 17:57-0400 for FHIR v1.4.0
import java.util.*;
import org.hl7.fhir.utilities.Utilities;
import org.hl7.fhir.dstu3.model.Enumerations.*;
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.Description;
import ca.uhn.fhir.model.api.annotation.Block;
import org.hl7.fhir.dstu3.exceptions.FHIRException;
import org.hl7.fhir.dstu3.model.Enumerations.*;
import org.hl7.fhir.instance.model.api.*;
import org.hl7.fhir.dstu3.exceptions.FHIRException;
/**
* A reference to a document .
*/
@ -355,8 +353,7 @@ public class DocumentReference extends DomainResource {
}
public boolean isEmpty() {
return super.isEmpty() && (code == null || code.isEmpty()) && (target == null || target.isEmpty())
;
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( code, target);
}
public String fhirType() {
@ -525,8 +522,7 @@ public class DocumentReference extends DomainResource {
}
public boolean isEmpty() {
return super.isEmpty() && (attachment == null || attachment.isEmpty()) && (format == null || format.isEmpty())
;
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( attachment, format);
}
public String fhirType() {
@ -954,10 +950,8 @@ public class DocumentReference extends DomainResource {
}
public boolean isEmpty() {
return super.isEmpty() && (encounter == null || encounter.isEmpty()) && (event == null || event.isEmpty())
&& (period == null || period.isEmpty()) && (facilityType == null || facilityType.isEmpty())
&& (practiceSetting == null || practiceSetting.isEmpty()) && (sourcePatientInfo == null || sourcePatientInfo.isEmpty())
&& (related == null || related.isEmpty());
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( encounter, event, period, facilityType
, practiceSetting, sourcePatientInfo, related);
}
public String fhirType() {
@ -1119,8 +1113,7 @@ public class DocumentReference extends DomainResource {
}
public boolean isEmpty() {
return super.isEmpty() && (identifier == null || identifier.isEmpty()) && (ref == null || ref.isEmpty())
;
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( identifier, ref);
}
public String fhirType() {
@ -2133,13 +2126,9 @@ public class DocumentReference extends DomainResource {
}
public boolean isEmpty() {
return super.isEmpty() && (masterIdentifier == null || masterIdentifier.isEmpty()) && (identifier == null || identifier.isEmpty())
&& (subject == null || subject.isEmpty()) && (type == null || type.isEmpty()) && (class_ == null || class_.isEmpty())
&& (author == null || author.isEmpty()) && (custodian == null || custodian.isEmpty()) && (authenticator == null || authenticator.isEmpty())
&& (created == null || created.isEmpty()) && (indexed == null || indexed.isEmpty()) && (status == null || status.isEmpty())
&& (docStatus == null || docStatus.isEmpty()) && (relatesTo == null || relatesTo.isEmpty())
&& (description == null || description.isEmpty()) && (securityLabel == null || securityLabel.isEmpty())
&& (content == null || content.isEmpty()) && (context == null || context.isEmpty());
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( masterIdentifier, identifier, subject
, type, class_, author, custodian, authenticator, created, indexed, status, docStatus
, relatesTo, description, securityLabel, content, context);
}
@Override
@ -2175,7 +2164,7 @@ public class DocumentReference extends DomainResource {
* Path: <b>DocumentReference.subject</b><br>
* </p>
*/
@SearchParamDefinition(name="subject", path="DocumentReference.subject", description="Who/what is the subject of the document", type="reference" )
@SearchParamDefinition(name="subject", path="DocumentReference.subject", description="Who/what is the subject of the document", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Device"), @ca.uhn.fhir.model.api.annotation.Compartment(name="Patient"), @ca.uhn.fhir.model.api.annotation.Compartment(name="Practitioner") } )
public static final String SP_SUBJECT = "subject";
/**
* <b>Fluent Client</b> search parameter constant for <b>subject</b>
@ -2387,7 +2376,7 @@ public class DocumentReference extends DomainResource {
* Path: <b>DocumentReference.authenticator</b><br>
* </p>
*/
@SearchParamDefinition(name="authenticator", path="DocumentReference.authenticator", description="Who/what authenticated the document", type="reference" )
@SearchParamDefinition(name="authenticator", path="DocumentReference.authenticator", description="Who/what authenticated the document", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Practitioner") } )
public static final String SP_AUTHENTICATOR = "authenticator";
/**
* <b>Fluent Client</b> search parameter constant for <b>authenticator</b>
@ -2519,7 +2508,7 @@ public class DocumentReference extends DomainResource {
* Path: <b>DocumentReference.author</b><br>
* </p>
*/
@SearchParamDefinition(name="author", path="DocumentReference.author", description="Who and/or what authored the document", type="reference" )
@SearchParamDefinition(name="author", path="DocumentReference.author", description="Who and/or what authored the document", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Device"), @ca.uhn.fhir.model.api.annotation.Compartment(name="Patient"), @ca.uhn.fhir.model.api.annotation.Compartment(name="Practitioner"), @ca.uhn.fhir.model.api.annotation.Compartment(name="RelatedPerson") } )
public static final String SP_AUTHOR = "author";
/**
* <b>Fluent Client</b> search parameter constant for <b>author</b>

View File

@ -29,7 +29,7 @@ package org.hl7.fhir.dstu3.model;
*/
// Generated on Sat, Jan 30, 2016 09:18-0500 for FHIR v1.3.0
// Generated on Fri, Apr 1, 2016 17:57-0400 for FHIR v1.4.0
import java.util.*;
@ -38,9 +38,8 @@ import ca.uhn.fhir.model.api.annotation.SearchParamDefinition;
import ca.uhn.fhir.model.api.annotation.Child;
import ca.uhn.fhir.model.api.annotation.Description;
import ca.uhn.fhir.model.api.annotation.Block;
import org.hl7.fhir.dstu3.exceptions.FHIRException;
import org.hl7.fhir.instance.model.api.*;
import org.hl7.fhir.dstu3.exceptions.FHIRException;
/**
* A resource that includes narrative, extensions, and contained resources.
*/
@ -128,6 +127,16 @@ public abstract class DomainResource extends Resource implements IBaseHasExtensi
/**
* @return {@link #contained} (These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.)
*/
// syntactic sugar
public DomainResource addContained(Resource t) { //3
if (t == null)
return this;
if (this.contained == null)
this.contained = new ArrayList<Resource>();
this.contained.add(t);
return this;
}
/**
* @return {@link #extension} (May be used to represent additional information that is not part of the basic definition of the resource. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.)
*/
@ -326,9 +335,8 @@ public abstract class DomainResource extends Resource implements IBaseHasExtensi
}
public boolean isEmpty() {
return super.isEmpty() && (text == null || text.isEmpty()) && (contained == null || contained.isEmpty())
&& (extension == null || extension.isEmpty()) && (modifierExtension == null || modifierExtension.isEmpty())
;
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( text, contained, extension, modifierExtension
);
}

View File

@ -29,13 +29,12 @@ package org.hl7.fhir.dstu3.model;
*/
// Generated on Sat, Jan 30, 2016 09:18-0500 for FHIR v1.3.0
// Generated on Fri, Apr 1, 2016 17:57-0400 for FHIR v1.4.0
import ca.uhn.fhir.model.api.annotation.DatatypeDef;
import ca.uhn.fhir.model.api.annotation.Block;
import org.hl7.fhir.dstu3.exceptions.FHIRException;
import org.hl7.fhir.instance.model.api.*;
import org.hl7.fhir.dstu3.exceptions.FHIRException;
/**
* A measured amount (or an amount that can potentially be measured). Note that measured amounts include amounts that are not precisely quantified, including amounts involving arbitrary units and floating currencies.
*/
@ -82,9 +81,8 @@ public class Duration extends Quantity {
}
public boolean isEmpty() {
return super.isEmpty() && (value == null || value.isEmpty()) && (comparator == null || comparator.isEmpty())
&& (unit == null || unit.isEmpty()) && (system == null || system.isEmpty()) && (code == null || code.isEmpty())
;
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( value, comparator, unit, system
, code);
}

View File

@ -29,7 +29,7 @@ package org.hl7.fhir.dstu3.model;
*/
// Generated on Sat, Jan 30, 2016 09:18-0500 for FHIR v1.3.0
// Generated on Fri, Apr 1, 2016 17:57-0400 for FHIR v1.4.0
import java.util.*;
@ -38,9 +38,8 @@ import ca.uhn.fhir.model.api.annotation.Child;
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.dstu3.exceptions.FHIRException;
import org.hl7.fhir.instance.model.api.*;
import org.hl7.fhir.dstu3.exceptions.FHIRException;
/**
* Base definition for all elements in a resource.
*/
@ -255,8 +254,7 @@ public abstract class Element extends Base implements IBaseHasExtensions {
}
public boolean isEmpty() {
return super.isEmpty() && (id == null || id.isEmpty()) && (extension == null || extension.isEmpty())
;
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( id, extension);
}

View File

@ -29,20 +29,18 @@ package org.hl7.fhir.dstu3.model;
*/
// Generated on Sat, Jan 30, 2016 09:18-0500 for FHIR v1.3.0
// Generated on Fri, Apr 1, 2016 17:57-0400 for FHIR v1.4.0
import java.util.*;
import org.hl7.fhir.utilities.Utilities;
import org.hl7.fhir.dstu3.model.Enumerations.*;
import ca.uhn.fhir.model.api.annotation.Child;
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.dstu3.exceptions.FHIRException;
import org.hl7.fhir.dstu3.model.Enumerations.*;
import org.hl7.fhir.instance.model.api.*;
import org.hl7.fhir.dstu3.exceptions.FHIRException;
/**
* Captures constraints on each element within the resource, profile, or extension.
*/
@ -54,6 +52,18 @@ public class ElementDefinition extends Type implements ICompositeType {
* In XML, this property is represented as an attribute not an element.
*/
XMLATTR,
/**
* This element is represented using the XML text attribute (primitives only)
*/
XMLTEXT,
/**
* The type of this element is indicated using xsi:type
*/
TYPEATTR,
/**
* Use CDA narrative instead of XHTML
*/
CDATEXT,
/**
* added to help the parsers
*/
@ -63,29 +73,47 @@ public class ElementDefinition extends Type implements ICompositeType {
return null;
if ("xmlAttr".equals(codeString))
return XMLATTR;
if ("xmlText".equals(codeString))
return XMLTEXT;
if ("typeAttr".equals(codeString))
return TYPEATTR;
if ("cdaText".equals(codeString))
return CDATEXT;
throw new FHIRException("Unknown PropertyRepresentation code '"+codeString+"'");
}
public String toCode() {
switch (this) {
case XMLATTR: return "xmlAttr";
case XMLTEXT: return "xmlText";
case TYPEATTR: return "typeAttr";
case CDATEXT: return "cdaText";
default: return "?";
}
}
public String getSystem() {
switch (this) {
case XMLATTR: return "http://hl7.org/fhir/property-representation";
case XMLTEXT: return "http://hl7.org/fhir/property-representation";
case TYPEATTR: return "http://hl7.org/fhir/property-representation";
case CDATEXT: return "http://hl7.org/fhir/property-representation";
default: return "?";
}
}
public String getDefinition() {
switch (this) {
case XMLATTR: return "In XML, this property is represented as an attribute not an element.";
case XMLTEXT: return "This element is represented using the XML text attribute (primitives only)";
case TYPEATTR: return "The type of this element is indicated using xsi:type";
case CDATEXT: return "Use CDA narrative instead of XHTML";
default: return "?";
}
}
public String getDisplay() {
switch (this) {
case XMLATTR: return "XML Attribute";
case XMLTEXT: return "XML Text";
case TYPEATTR: return "Type Attribute";
case CDATEXT: return "CDA Text Format";
default: return "?";
}
}
@ -98,6 +126,12 @@ public class ElementDefinition extends Type implements ICompositeType {
return null;
if ("xmlAttr".equals(codeString))
return PropertyRepresentation.XMLATTR;
if ("xmlText".equals(codeString))
return PropertyRepresentation.XMLTEXT;
if ("typeAttr".equals(codeString))
return PropertyRepresentation.TYPEATTR;
if ("cdaText".equals(codeString))
return PropertyRepresentation.CDATEXT;
throw new IllegalArgumentException("Unknown PropertyRepresentation code '"+codeString+"'");
}
public Enumeration<PropertyRepresentation> fromType(Base code) throws FHIRException {
@ -108,11 +142,23 @@ public class ElementDefinition extends Type implements ICompositeType {
return null;
if ("xmlAttr".equals(codeString))
return new Enumeration<PropertyRepresentation>(this, PropertyRepresentation.XMLATTR);
if ("xmlText".equals(codeString))
return new Enumeration<PropertyRepresentation>(this, PropertyRepresentation.XMLTEXT);
if ("typeAttr".equals(codeString))
return new Enumeration<PropertyRepresentation>(this, PropertyRepresentation.TYPEATTR);
if ("cdaText".equals(codeString))
return new Enumeration<PropertyRepresentation>(this, PropertyRepresentation.CDATEXT);
throw new FHIRException("Unknown PropertyRepresentation code '"+codeString+"'");
}
public String toCode(PropertyRepresentation code) {
if (code == PropertyRepresentation.XMLATTR)
return "xmlAttr";
if (code == PropertyRepresentation.XMLTEXT)
return "xmlText";
if (code == PropertyRepresentation.TYPEATTR)
return "typeAttr";
if (code == PropertyRepresentation.CDATEXT)
return "cdaText";
return "?";
}
public String toSystem(PropertyRepresentation code) {
@ -326,6 +372,109 @@ public class ElementDefinition extends Type implements ICompositeType {
}
}
public enum ReferenceVersionRules {
/**
* The reference may be either version independent or version specific
*/
EITHER,
/**
* The reference must be version independent
*/
INDEPENDENT,
/**
* The reference must be version specific
*/
SPECIFIC,
/**
* added to help the parsers
*/
NULL;
public static ReferenceVersionRules fromCode(String codeString) throws FHIRException {
if (codeString == null || "".equals(codeString))
return null;
if ("either".equals(codeString))
return EITHER;
if ("independent".equals(codeString))
return INDEPENDENT;
if ("specific".equals(codeString))
return SPECIFIC;
throw new FHIRException("Unknown ReferenceVersionRules code '"+codeString+"'");
}
public String toCode() {
switch (this) {
case EITHER: return "either";
case INDEPENDENT: return "independent";
case SPECIFIC: return "specific";
default: return "?";
}
}
public String getSystem() {
switch (this) {
case EITHER: return "http://hl7.org/fhir/reference-version-rules";
case INDEPENDENT: return "http://hl7.org/fhir/reference-version-rules";
case SPECIFIC: return "http://hl7.org/fhir/reference-version-rules";
default: return "?";
}
}
public String getDefinition() {
switch (this) {
case EITHER: return "The reference may be either version independent or version specific";
case INDEPENDENT: return "The reference must be version independent";
case SPECIFIC: return "The reference must be version specific";
default: return "?";
}
}
public String getDisplay() {
switch (this) {
case EITHER: return "Either Specific or independent";
case INDEPENDENT: return "Version independent";
case SPECIFIC: return "Version Specific";
default: return "?";
}
}
}
public static class ReferenceVersionRulesEnumFactory implements EnumFactory<ReferenceVersionRules> {
public ReferenceVersionRules fromCode(String codeString) throws IllegalArgumentException {
if (codeString == null || "".equals(codeString))
if (codeString == null || "".equals(codeString))
return null;
if ("either".equals(codeString))
return ReferenceVersionRules.EITHER;
if ("independent".equals(codeString))
return ReferenceVersionRules.INDEPENDENT;
if ("specific".equals(codeString))
return ReferenceVersionRules.SPECIFIC;
throw new IllegalArgumentException("Unknown ReferenceVersionRules code '"+codeString+"'");
}
public Enumeration<ReferenceVersionRules> 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 ("either".equals(codeString))
return new Enumeration<ReferenceVersionRules>(this, ReferenceVersionRules.EITHER);
if ("independent".equals(codeString))
return new Enumeration<ReferenceVersionRules>(this, ReferenceVersionRules.INDEPENDENT);
if ("specific".equals(codeString))
return new Enumeration<ReferenceVersionRules>(this, ReferenceVersionRules.SPECIFIC);
throw new FHIRException("Unknown ReferenceVersionRules code '"+codeString+"'");
}
public String toCode(ReferenceVersionRules code) {
if (code == ReferenceVersionRules.EITHER)
return "either";
if (code == ReferenceVersionRules.INDEPENDENT)
return "independent";
if (code == ReferenceVersionRules.SPECIFIC)
return "specific";
return "?";
}
public String toSystem(ReferenceVersionRules code) {
return code.getSystem();
}
}
public enum ConstraintSeverity {
/**
* If the constraint is violated, the resource is not conformant.
@ -419,7 +568,7 @@ public class ElementDefinition extends Type implements ICompositeType {
* Designates which child elements are used to discriminate between the slices when processing an instance. If one or more discriminators are provided, the value of the child elements in the instance data SHALL completely distinguish which slice the element in the resource matches based on the allowed values for those elements in each of the slices.
*/
@Child(name = "discriminator", type = {StringType.class}, order=1, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
@Description(shortDefinition="Element values that used to distinguish the slices", formalDefinition="Designates which child elements are used to discriminate between the slices when processing an instance. If one or more discriminators are provided, the value of the child elements in the instance data SHALL completely distinguish which slice the element in the resource matches based on the allowed values for those elements in each of the slices." )
@Description(shortDefinition="Element values that are used to distinguish the slices", formalDefinition="Designates which child elements are used to discriminate between the slices when processing an instance. If one or more discriminators are provided, the value of the child elements in the instance data SHALL completely distinguish which slice the element in the resource matches based on the allowed values for those elements in each of the slices." )
protected List<StringType> discriminator;
/**
@ -730,8 +879,8 @@ public class ElementDefinition extends Type implements ICompositeType {
}
public boolean isEmpty() {
return super.isEmpty() && (discriminator == null || discriminator.isEmpty()) && (description == null || description.isEmpty())
&& (ordered == null || ordered.isEmpty()) && (rules == null || rules.isEmpty());
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( discriminator, description, ordered
, rules);
}
public String fhirType() {
@ -984,8 +1133,7 @@ public class ElementDefinition extends Type implements ICompositeType {
}
public boolean isEmpty() {
return super.isEmpty() && (path == null || path.isEmpty()) && (min == null || min.isEmpty())
&& (max == null || max.isEmpty());
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( path, min, max);
}
public String fhirType() {
@ -1018,7 +1166,14 @@ public class ElementDefinition extends Type implements ICompositeType {
@Description(shortDefinition="contained | referenced | bundled - how aggregated", formalDefinition="If the type is a reference to another resource, how the resource is or can be aggregated - is it a contained resource, or a reference, and if the context is a bundle, is it included in the bundle." )
protected List<Enumeration<AggregationMode>> aggregation;
private static final long serialVersionUID = -988693373L;
/**
* Whether this reference needs to be version specific or version independent, or whetehr either can be used.
*/
@Child(name = "versioning", type = {CodeType.class}, order=4, min=0, max=1, modifier=false, summary=true)
@Description(shortDefinition="either | independent | specific", formalDefinition="Whether this reference needs to be version specific or version independent, or whetehr either can be used." )
protected Enumeration<ReferenceVersionRules> versioning;
private static final long serialVersionUID = -829583924L;
/**
* Constructor
@ -1188,11 +1343,61 @@ public class ElementDefinition extends Type implements ICompositeType {
return false;
}
/**
* @return {@link #versioning} (Whether this reference needs to be version specific or version independent, or whetehr either can be used.). This is the underlying object with id, value and extensions. The accessor "getVersioning" gives direct access to the value
*/
public Enumeration<ReferenceVersionRules> getVersioningElement() {
if (this.versioning == null)
if (Configuration.errorOnAutoCreate())
throw new Error("Attempt to auto-create TypeRefComponent.versioning");
else if (Configuration.doAutoCreate())
this.versioning = new Enumeration<ReferenceVersionRules>(new ReferenceVersionRulesEnumFactory()); // bb
return this.versioning;
}
public boolean hasVersioningElement() {
return this.versioning != null && !this.versioning.isEmpty();
}
public boolean hasVersioning() {
return this.versioning != null && !this.versioning.isEmpty();
}
/**
* @param value {@link #versioning} (Whether this reference needs to be version specific or version independent, or whetehr either can be used.). This is the underlying object with id, value and extensions. The accessor "getVersioning" gives direct access to the value
*/
public TypeRefComponent setVersioningElement(Enumeration<ReferenceVersionRules> value) {
this.versioning = value;
return this;
}
/**
* @return Whether this reference needs to be version specific or version independent, or whetehr either can be used.
*/
public ReferenceVersionRules getVersioning() {
return this.versioning == null ? null : this.versioning.getValue();
}
/**
* @param value Whether this reference needs to be version specific or version independent, or whetehr either can be used.
*/
public TypeRefComponent setVersioning(ReferenceVersionRules value) {
if (value == null)
this.versioning = null;
else {
if (this.versioning == null)
this.versioning = new Enumeration<ReferenceVersionRules>(new ReferenceVersionRulesEnumFactory());
this.versioning.setValue(value);
}
return this;
}
protected void listChildren(List<Property> childrenList) {
super.listChildren(childrenList);
childrenList.add(new Property("code", "code", "Name of Data type or Resource that is a(or the) type used for this element.", 0, java.lang.Integer.MAX_VALUE, code));
childrenList.add(new Property("profile", "uri", "Identifies a profile structure or implementation Guide that SHALL hold for resources or datatypes referenced as the type of this element. Can be a local reference - to another structure in this profile, or a reference to a structure in another profile. When more than one profile is specified, the content must conform to all of them. When an implementation guide is specified, the resource SHALL conform to at least one profile defined in the implementation guide.", 0, java.lang.Integer.MAX_VALUE, profile));
childrenList.add(new Property("aggregation", "code", "If the type is a reference to another resource, how the resource is or can be aggregated - is it a contained resource, or a reference, and if the context is a bundle, is it included in the bundle.", 0, java.lang.Integer.MAX_VALUE, aggregation));
childrenList.add(new Property("versioning", "code", "Whether this reference needs to be version specific or version independent, or whetehr either can be used.", 0, java.lang.Integer.MAX_VALUE, versioning));
}
@Override
@ -1203,6 +1408,8 @@ public class ElementDefinition extends Type implements ICompositeType {
this.getProfile().add(castToUri(value));
else if (name.equals("aggregation"))
this.getAggregation().add(new AggregationModeEnumFactory().fromType(value));
else if (name.equals("versioning"))
this.versioning = new ReferenceVersionRulesEnumFactory().fromType(value); // Enumeration<ReferenceVersionRules>
else
super.setProperty(name, value);
}
@ -1218,6 +1425,9 @@ public class ElementDefinition extends Type implements ICompositeType {
else if (name.equals("aggregation")) {
throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.aggregation");
}
else if (name.equals("versioning")) {
throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.versioning");
}
else
return super.addChild(name);
}
@ -1236,6 +1446,7 @@ public class ElementDefinition extends Type implements ICompositeType {
for (Enumeration<AggregationMode> i : aggregation)
dst.aggregation.add(i.copy());
};
dst.versioning = versioning == null ? null : versioning.copy();
return dst;
}
@ -1247,7 +1458,7 @@ public class ElementDefinition extends Type implements ICompositeType {
return false;
TypeRefComponent o = (TypeRefComponent) other;
return compareDeep(code, o.code, true) && compareDeep(profile, o.profile, true) && compareDeep(aggregation, o.aggregation, true)
;
&& compareDeep(versioning, o.versioning, true);
}
@Override
@ -1258,12 +1469,12 @@ public class ElementDefinition extends Type implements ICompositeType {
return false;
TypeRefComponent o = (TypeRefComponent) other;
return compareValues(code, o.code, true) && compareValues(profile, o.profile, true) && compareValues(aggregation, o.aggregation, true)
;
&& compareValues(versioning, o.versioning, true);
}
public boolean isEmpty() {
return super.isEmpty() && (code == null || code.isEmpty()) && (profile == null || profile.isEmpty())
&& (aggregation == null || aggregation.isEmpty());
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( code, profile, aggregation, versioning
);
}
public String fhirType() {
@ -1286,7 +1497,7 @@ public class ElementDefinition extends Type implements ICompositeType {
* Description of why this constraint is necessary or appropriate.
*/
@Child(name = "requirements", type = {StringType.class}, order=2, min=0, max=1, modifier=false, summary=true)
@Description(shortDefinition="Why this constraint necessary or appropriate", formalDefinition="Description of why this constraint is necessary or appropriate." )
@Description(shortDefinition="Why this constraint is necessary or appropriate", formalDefinition="Description of why this constraint is necessary or appropriate." )
protected StringType requirements;
/**
@ -1303,14 +1514,21 @@ public class ElementDefinition extends Type implements ICompositeType {
@Description(shortDefinition="Human description of constraint", formalDefinition="Text that can be used to describe the constraint in messages identifying that the constraint has been violated." )
protected StringType human;
/**
* A [FluentPath](fluentpath.html) expression of constraint that can be executed to see if this constraint is met.
*/
@Child(name = "expression", type = {StringType.class}, order=5, min=0, max=1, modifier=false, summary=true)
@Description(shortDefinition="FluentPath expression of constraint", formalDefinition="A [FluentPath](fluentpath.html) expression of constraint that can be executed to see if this constraint is met." )
protected StringType expression;
/**
* An XPath expression of constraint that can be executed to see if this constraint is met.
*/
@Child(name = "xpath", type = {StringType.class}, order=5, min=1, max=1, modifier=false, summary=true)
@Child(name = "xpath", type = {StringType.class}, order=6, min=1, max=1, modifier=false, summary=true)
@Description(shortDefinition="XPath expression of constraint", formalDefinition="An XPath expression of constraint that can be executed to see if this constraint is met." )
protected StringType xpath;
private static final long serialVersionUID = 854521265L;
private static final long serialVersionUID = -1412249932L;
/**
* Constructor
@ -1514,6 +1732,55 @@ public class ElementDefinition extends Type implements ICompositeType {
return this;
}
/**
* @return {@link #expression} (A [FluentPath](fluentpath.html) expression of constraint that can be executed to see if this constraint is met.). This is the underlying object with id, value and extensions. The accessor "getExpression" gives direct access to the value
*/
public StringType getExpressionElement() {
if (this.expression == null)
if (Configuration.errorOnAutoCreate())
throw new Error("Attempt to auto-create ElementDefinitionConstraintComponent.expression");
else if (Configuration.doAutoCreate())
this.expression = new StringType(); // bb
return this.expression;
}
public boolean hasExpressionElement() {
return this.expression != null && !this.expression.isEmpty();
}
public boolean hasExpression() {
return this.expression != null && !this.expression.isEmpty();
}
/**
* @param value {@link #expression} (A [FluentPath](fluentpath.html) expression of constraint that can be executed to see if this constraint is met.). This is the underlying object with id, value and extensions. The accessor "getExpression" gives direct access to the value
*/
public ElementDefinitionConstraintComponent setExpressionElement(StringType value) {
this.expression = value;
return this;
}
/**
* @return A [FluentPath](fluentpath.html) expression of constraint that can be executed to see if this constraint is met.
*/
public String getExpression() {
return this.expression == null ? null : this.expression.getValue();
}
/**
* @param value A [FluentPath](fluentpath.html) expression of constraint that can be executed to see if this constraint is met.
*/
public ElementDefinitionConstraintComponent setExpression(String value) {
if (Utilities.noString(value))
this.expression = null;
else {
if (this.expression == null)
this.expression = new StringType();
this.expression.setValue(value);
}
return this;
}
/**
* @return {@link #xpath} (An XPath expression of constraint that can be executed to see if this constraint is met.). This is the underlying object with id, value and extensions. The accessor "getXpath" gives direct access to the value
*/
@ -1565,6 +1832,7 @@ public class ElementDefinition extends Type implements ICompositeType {
childrenList.add(new Property("requirements", "string", "Description of why this constraint is necessary or appropriate.", 0, java.lang.Integer.MAX_VALUE, requirements));
childrenList.add(new Property("severity", "code", "Identifies the impact constraint violation has on the conformance of the instance.", 0, java.lang.Integer.MAX_VALUE, severity));
childrenList.add(new Property("human", "string", "Text that can be used to describe the constraint in messages identifying that the constraint has been violated.", 0, java.lang.Integer.MAX_VALUE, human));
childrenList.add(new Property("expression", "string", "A [FluentPath](fluentpath.html) expression of constraint that can be executed to see if this constraint is met.", 0, java.lang.Integer.MAX_VALUE, expression));
childrenList.add(new Property("xpath", "string", "An XPath expression of constraint that can be executed to see if this constraint is met.", 0, java.lang.Integer.MAX_VALUE, xpath));
}
@ -1578,6 +1846,8 @@ public class ElementDefinition extends Type implements ICompositeType {
this.severity = new ConstraintSeverityEnumFactory().fromType(value); // Enumeration<ConstraintSeverity>
else if (name.equals("human"))
this.human = castToString(value); // StringType
else if (name.equals("expression"))
this.expression = castToString(value); // StringType
else if (name.equals("xpath"))
this.xpath = castToString(value); // StringType
else
@ -1598,6 +1868,9 @@ public class ElementDefinition extends Type implements ICompositeType {
else if (name.equals("human")) {
throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.human");
}
else if (name.equals("expression")) {
throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.expression");
}
else if (name.equals("xpath")) {
throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.xpath");
}
@ -1612,6 +1885,7 @@ public class ElementDefinition extends Type implements ICompositeType {
dst.requirements = requirements == null ? null : requirements.copy();
dst.severity = severity == null ? null : severity.copy();
dst.human = human == null ? null : human.copy();
dst.expression = expression == null ? null : expression.copy();
dst.xpath = xpath == null ? null : xpath.copy();
return dst;
}
@ -1624,7 +1898,8 @@ public class ElementDefinition extends Type implements ICompositeType {
return false;
ElementDefinitionConstraintComponent o = (ElementDefinitionConstraintComponent) other;
return compareDeep(key, o.key, true) && compareDeep(requirements, o.requirements, true) && compareDeep(severity, o.severity, true)
&& compareDeep(human, o.human, true) && compareDeep(xpath, o.xpath, true);
&& compareDeep(human, o.human, true) && compareDeep(expression, o.expression, true) && compareDeep(xpath, o.xpath, true)
;
}
@Override
@ -1635,13 +1910,13 @@ public class ElementDefinition extends Type implements ICompositeType {
return false;
ElementDefinitionConstraintComponent o = (ElementDefinitionConstraintComponent) other;
return compareValues(key, o.key, true) && compareValues(requirements, o.requirements, true) && compareValues(severity, o.severity, true)
&& compareValues(human, o.human, true) && compareValues(xpath, o.xpath, true);
&& compareValues(human, o.human, true) && compareValues(expression, o.expression, true) && compareValues(xpath, o.xpath, true)
;
}
public boolean isEmpty() {
return super.isEmpty() && (key == null || key.isEmpty()) && (requirements == null || requirements.isEmpty())
&& (severity == null || severity.isEmpty()) && (human == null || human.isEmpty()) && (xpath == null || xpath.isEmpty())
;
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( key, requirements, severity, human
, expression, xpath);
}
public String fhirType() {
@ -1901,8 +2176,8 @@ public class ElementDefinition extends Type implements ICompositeType {
}
public boolean isEmpty() {
return super.isEmpty() && (strength == null || strength.isEmpty()) && (description == null || description.isEmpty())
&& (valueSet == null || valueSet.isEmpty());
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( strength, description, valueSet
);
}
public String fhirType() {
@ -2158,8 +2433,7 @@ public class ElementDefinition extends Type implements ICompositeType {
}
public boolean isEmpty() {
return super.isEmpty() && (identity == null || identity.isEmpty()) && (language == null || language.isEmpty())
&& (map == null || map.isEmpty());
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( identity, language, map);
}
public String fhirType() {
@ -2180,14 +2454,14 @@ public class ElementDefinition extends Type implements ICompositeType {
* Codes that define how this element is represented in instances, when the deviation varies from the normal case.
*/
@Child(name = "representation", type = {CodeType.class}, order=1, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
@Description(shortDefinition="How this element is represented in instances", formalDefinition="Codes that define how this element is represented in instances, when the deviation varies from the normal case." )
@Description(shortDefinition="xmlAttr | xmlText | typeAttr | cdaText", formalDefinition="Codes that define how this element is represented in instances, when the deviation varies from the normal case." )
protected List<Enumeration<PropertyRepresentation>> representation;
/**
* The name of this element definition (to refer to it from other element definitions using ElementDefinition.nameReference). This is a unique name referring to a specific set of constraints applied to this element. One use of this is to provide a name to different slices of the same element.
* The name of this element definition. This is a unique name referring to a specific set of constraints applied to this element, used to provide a name to different slices of the same element.
*/
@Child(name = "name", type = {StringType.class}, order=2, min=0, max=1, modifier=false, summary=true)
@Description(shortDefinition="Name for this particular element definition (reference target)", formalDefinition="The name of this element definition (to refer to it from other element definitions using ElementDefinition.nameReference). This is a unique name referring to a specific set of constraints applied to this element. One use of this is to provide a name to different slices of the same element." )
@Description(shortDefinition="Name for this particular element definition (reference target)", formalDefinition="The name of this element definition. This is a unique name referring to a specific set of constraints applied to this element, used to provide a name to different slices of the same element." )
protected StringType name;
/**
@ -2236,7 +2510,7 @@ public class ElementDefinition extends Type implements ICompositeType {
* This element is for traceability of why the element was created and why the constraints exist as they do. This may be used to point to source materials or specifications that drove the structure of this element.
*/
@Child(name = "requirements", type = {MarkdownType.class}, order=9, min=0, max=1, modifier=false, summary=true)
@Description(shortDefinition="Why is this needed?", formalDefinition="This element is for traceability of why the element was created and why the constraints exist as they do. This may be used to point to source materials or specifications that drove the structure of this element." )
@Description(shortDefinition="Why this resource has been created", formalDefinition="This element is for traceability of why the element was created and why the constraints exist as they do. This may be used to point to source materials or specifications that drove the structure of this element." )
protected MarkdownType requirements;
/**
@ -2261,31 +2535,31 @@ public class ElementDefinition extends Type implements ICompositeType {
protected StringType max;
/**
* Information about the base definition of the element, provided to make it unncessary for tools to trace the deviation of the element through the derived and related profiles. This information is only provided where the element definition represents a constraint on another element definition, and must be present if there is a base element definition.
* Information about the base definition of the element, provided to make it unnecessary for tools to trace the deviation of the element through the derived and related profiles. This information is only provided where the element definition represents a constraint on another element definition, and must be present if there is a base element definition.
*/
@Child(name = "base", type = {}, order=13, min=0, max=1, modifier=false, summary=true)
@Description(shortDefinition="Base definition information for tools", formalDefinition="Information about the base definition of the element, provided to make it unncessary for tools to trace the deviation of the element through the derived and related profiles. This information is only provided where the element definition represents a constraint on another element definition, and must be present if there is a base element definition." )
@Description(shortDefinition="Base definition information for tools", formalDefinition="Information about the base definition of the element, provided to make it unnecessary for tools to trace the deviation of the element through the derived and related profiles. This information is only provided where the element definition represents a constraint on another element definition, and must be present if there is a base element definition." )
protected ElementDefinitionBaseComponent base;
/**
* Identifies the identity of an element defined elsewhere in the profile whose content rules should be applied to the current element.
*/
@Child(name = "contentReference", type = {UriType.class}, order=14, min=0, max=1, modifier=false, summary=true)
@Description(shortDefinition="Reference to definition of content for the element", formalDefinition="Identifies the identity of an element defined elsewhere in the profile whose content rules should be applied to the current element." )
protected UriType contentReference;
/**
* The data type or resource that the value of this element is permitted to be.
*/
@Child(name = "type", type = {}, order=14, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
@Child(name = "type", type = {}, order=15, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
@Description(shortDefinition="Data type and Profile for this element", formalDefinition="The data type or resource that the value of this element is permitted to be." )
protected List<TypeRefComponent> type;
/**
* Identifies the name of a slice defined elsewhere in the profile whose constraints should be applied to the current element.
*/
@Child(name = "nameReference", type = {StringType.class}, order=15, min=0, max=1, modifier=false, summary=true)
@Description(shortDefinition="To another element constraint (by element.name)", formalDefinition="Identifies the name of a slice defined elsewhere in the profile whose constraints should be applied to the current element." )
protected StringType nameReference;
/**
* The value that should be used if there is no value stated in the instance (e.g. 'if not otherwise specified, the abstract is false').
*/
@Child(name = "defaultValue", type = {}, order=16, min=0, max=1, modifier=false, summary=true)
@Description(shortDefinition="Specified value it missing from instance", formalDefinition="The value that should be used if there is no value stated in the instance (e.g. 'if not otherwise specified, the abstract is false')." )
@Description(shortDefinition="Specified value if missing from instance", formalDefinition="The value that should be used if there is no value stated in the instance (e.g. 'if not otherwise specified, the abstract is false')." )
protected org.hl7.fhir.dstu3.model.Type defaultValue;
/**
@ -2313,7 +2587,7 @@ public class ElementDefinition extends Type implements ICompositeType {
* A sample value for this element demonstrating the type of information that would typically be captured.
*/
@Child(name = "example", type = {}, order=20, min=0, max=1, modifier=false, summary=true)
@Description(shortDefinition="Example value: [as defined for type]", formalDefinition="A sample value for this element demonstrating the type of information that would typically be captured." )
@Description(shortDefinition="Example value (as defined for type)", formalDefinition="A sample value for this element demonstrating the type of information that would typically be captured." )
protected org.hl7.fhir.dstu3.model.Type example;
/**
@ -2386,7 +2660,7 @@ public class ElementDefinition extends Type implements ICompositeType {
@Description(shortDefinition="Map element to another set of definitions", formalDefinition="Identifies a concept from an external specification that roughly corresponds to this element." )
protected List<ElementDefinitionMappingComponent> mapping;
private static final long serialVersionUID = 529293980L;
private static final long serialVersionUID = -904637873L;
/**
* Constructor
@ -2503,7 +2777,7 @@ public class ElementDefinition extends Type implements ICompositeType {
}
/**
* @return {@link #name} (The name of this element definition (to refer to it from other element definitions using ElementDefinition.nameReference). This is a unique name referring to a specific set of constraints applied to this element. One use of this is to provide a name to different slices of the same element.). This is the underlying object with id, value and extensions. The accessor "getName" gives direct access to the value
* @return {@link #name} (The name of this element definition. This is a unique name referring to a specific set of constraints applied to this element, used to provide a name to different slices of the same element.). This is the underlying object with id, value and extensions. The accessor "getName" gives direct access to the value
*/
public StringType getNameElement() {
if (this.name == null)
@ -2523,7 +2797,7 @@ public class ElementDefinition extends Type implements ICompositeType {
}
/**
* @param value {@link #name} (The name of this element definition (to refer to it from other element definitions using ElementDefinition.nameReference). This is a unique name referring to a specific set of constraints applied to this element. One use of this is to provide a name to different slices of the same element.). This is the underlying object with id, value and extensions. The accessor "getName" gives direct access to the value
* @param value {@link #name} (The name of this element definition. This is a unique name referring to a specific set of constraints applied to this element, used to provide a name to different slices of the same element.). This is the underlying object with id, value and extensions. The accessor "getName" gives direct access to the value
*/
public ElementDefinition setNameElement(StringType value) {
this.name = value;
@ -2531,14 +2805,14 @@ public class ElementDefinition extends Type implements ICompositeType {
}
/**
* @return The name of this element definition (to refer to it from other element definitions using ElementDefinition.nameReference). This is a unique name referring to a specific set of constraints applied to this element. One use of this is to provide a name to different slices of the same element.
* @return The name of this element definition. This is a unique name referring to a specific set of constraints applied to this element, used to provide a name to different slices of the same element.
*/
public String getName() {
return this.name == null ? null : this.name.getValue();
}
/**
* @param value The name of this element definition (to refer to it from other element definitions using ElementDefinition.nameReference). This is a unique name referring to a specific set of constraints applied to this element. One use of this is to provide a name to different slices of the same element.
* @param value The name of this element definition. This is a unique name referring to a specific set of constraints applied to this element, used to provide a name to different slices of the same element.
*/
public ElementDefinition setName(String value) {
if (Utilities.noString(value))
@ -3009,7 +3283,7 @@ public class ElementDefinition extends Type implements ICompositeType {
}
/**
* @return {@link #base} (Information about the base definition of the element, provided to make it unncessary for tools to trace the deviation of the element through the derived and related profiles. This information is only provided where the element definition represents a constraint on another element definition, and must be present if there is a base element definition.)
* @return {@link #base} (Information about the base definition of the element, provided to make it unnecessary for tools to trace the deviation of the element through the derived and related profiles. This information is only provided where the element definition represents a constraint on another element definition, and must be present if there is a base element definition.)
*/
public ElementDefinitionBaseComponent getBase() {
if (this.base == null)
@ -3025,13 +3299,62 @@ public class ElementDefinition extends Type implements ICompositeType {
}
/**
* @param value {@link #base} (Information about the base definition of the element, provided to make it unncessary for tools to trace the deviation of the element through the derived and related profiles. This information is only provided where the element definition represents a constraint on another element definition, and must be present if there is a base element definition.)
* @param value {@link #base} (Information about the base definition of the element, provided to make it unnecessary for tools to trace the deviation of the element through the derived and related profiles. This information is only provided where the element definition represents a constraint on another element definition, and must be present if there is a base element definition.)
*/
public ElementDefinition setBase(ElementDefinitionBaseComponent value) {
this.base = value;
return this;
}
/**
* @return {@link #contentReference} (Identifies the identity of an element defined elsewhere in the profile whose content rules should be applied to the current element.). This is the underlying object with id, value and extensions. The accessor "getContentReference" gives direct access to the value
*/
public UriType getContentReferenceElement() {
if (this.contentReference == null)
if (Configuration.errorOnAutoCreate())
throw new Error("Attempt to auto-create ElementDefinition.contentReference");
else if (Configuration.doAutoCreate())
this.contentReference = new UriType(); // bb
return this.contentReference;
}
public boolean hasContentReferenceElement() {
return this.contentReference != null && !this.contentReference.isEmpty();
}
public boolean hasContentReference() {
return this.contentReference != null && !this.contentReference.isEmpty();
}
/**
* @param value {@link #contentReference} (Identifies the identity of an element defined elsewhere in the profile whose content rules should be applied to the current element.). This is the underlying object with id, value and extensions. The accessor "getContentReference" gives direct access to the value
*/
public ElementDefinition setContentReferenceElement(UriType value) {
this.contentReference = value;
return this;
}
/**
* @return Identifies the identity of an element defined elsewhere in the profile whose content rules should be applied to the current element.
*/
public String getContentReference() {
return this.contentReference == null ? null : this.contentReference.getValue();
}
/**
* @param value Identifies the identity of an element defined elsewhere in the profile whose content rules should be applied to the current element.
*/
public ElementDefinition setContentReference(String value) {
if (Utilities.noString(value))
this.contentReference = null;
else {
if (this.contentReference == null)
this.contentReference = new UriType();
this.contentReference.setValue(value);
}
return this;
}
/**
* @return {@link #type} (The data type or resource that the value of this element is permitted to be.)
*/
@ -3072,55 +3395,6 @@ public class ElementDefinition extends Type implements ICompositeType {
return this;
}
/**
* @return {@link #nameReference} (Identifies the name of a slice defined elsewhere in the profile whose constraints should be applied to the current element.). This is the underlying object with id, value and extensions. The accessor "getNameReference" gives direct access to the value
*/
public StringType getNameReferenceElement() {
if (this.nameReference == null)
if (Configuration.errorOnAutoCreate())
throw new Error("Attempt to auto-create ElementDefinition.nameReference");
else if (Configuration.doAutoCreate())
this.nameReference = new StringType(); // bb
return this.nameReference;
}
public boolean hasNameReferenceElement() {
return this.nameReference != null && !this.nameReference.isEmpty();
}
public boolean hasNameReference() {
return this.nameReference != null && !this.nameReference.isEmpty();
}
/**
* @param value {@link #nameReference} (Identifies the name of a slice defined elsewhere in the profile whose constraints should be applied to the current element.). This is the underlying object with id, value and extensions. The accessor "getNameReference" gives direct access to the value
*/
public ElementDefinition setNameReferenceElement(StringType value) {
this.nameReference = value;
return this;
}
/**
* @return Identifies the name of a slice defined elsewhere in the profile whose constraints should be applied to the current element.
*/
public String getNameReference() {
return this.nameReference == null ? null : this.nameReference.getValue();
}
/**
* @param value Identifies the name of a slice defined elsewhere in the profile whose constraints should be applied to the current element.
*/
public ElementDefinition setNameReference(String value) {
if (Utilities.noString(value))
this.nameReference = null;
else {
if (this.nameReference == null)
this.nameReference = new StringType();
this.nameReference.setValue(value);
}
return this;
}
/**
* @return {@link #defaultValue} (The value that should be used if there is no value stated in the instance (e.g. 'if not otherwise specified, the abstract is false').)
*/
@ -3626,7 +3900,7 @@ public class ElementDefinition extends Type implements ICompositeType {
super.listChildren(childrenList);
childrenList.add(new Property("path", "string", "The path identifies the element and is expressed as a \".\"-separated list of ancestor elements, beginning with the name of the resource or extension.", 0, java.lang.Integer.MAX_VALUE, path));
childrenList.add(new Property("representation", "code", "Codes that define how this element is represented in instances, when the deviation varies from the normal case.", 0, java.lang.Integer.MAX_VALUE, representation));
childrenList.add(new Property("name", "string", "The name of this element definition (to refer to it from other element definitions using ElementDefinition.nameReference). This is a unique name referring to a specific set of constraints applied to this element. One use of this is to provide a name to different slices of the same element.", 0, java.lang.Integer.MAX_VALUE, name));
childrenList.add(new Property("name", "string", "The name of this element definition. This is a unique name referring to a specific set of constraints applied to this element, used to provide a name to different slices of the same element.", 0, java.lang.Integer.MAX_VALUE, name));
childrenList.add(new Property("label", "string", "The text to display beside the element indicating its meaning or to use to prompt for the element in a user display or form.", 0, java.lang.Integer.MAX_VALUE, label));
childrenList.add(new Property("code", "Coding", "A code that provides the meaning for the element according to a particular terminology.", 0, java.lang.Integer.MAX_VALUE, code));
childrenList.add(new Property("slicing", "", "Indicates that the element is sliced into a set of alternative definitions (i.e. in a structure definition, there are multiple different constraints on a single element in the base resource). Slicing can be used in any resource that has cardinality ..* on the base resource, or any resource with a choice of types. The set of slices is any elements that come after this in the element sequence that have the same path, until a shorter path occurs (the shorter path terminates the set).", 0, java.lang.Integer.MAX_VALUE, slicing));
@ -3637,9 +3911,9 @@ public class ElementDefinition extends Type implements ICompositeType {
childrenList.add(new Property("alias", "string", "Identifies additional names by which this element might also be known.", 0, java.lang.Integer.MAX_VALUE, alias));
childrenList.add(new Property("min", "integer", "The minimum number of times this element SHALL appear in the instance.", 0, java.lang.Integer.MAX_VALUE, min));
childrenList.add(new Property("max", "string", "The maximum number of times this element is permitted to appear in the instance.", 0, java.lang.Integer.MAX_VALUE, max));
childrenList.add(new Property("base", "", "Information about the base definition of the element, provided to make it unncessary for tools to trace the deviation of the element through the derived and related profiles. This information is only provided where the element definition represents a constraint on another element definition, and must be present if there is a base element definition.", 0, java.lang.Integer.MAX_VALUE, base));
childrenList.add(new Property("base", "", "Information about the base definition of the element, provided to make it unnecessary for tools to trace the deviation of the element through the derived and related profiles. This information is only provided where the element definition represents a constraint on another element definition, and must be present if there is a base element definition.", 0, java.lang.Integer.MAX_VALUE, base));
childrenList.add(new Property("contentReference", "uri", "Identifies the identity of an element defined elsewhere in the profile whose content rules should be applied to the current element.", 0, java.lang.Integer.MAX_VALUE, contentReference));
childrenList.add(new Property("type", "", "The data type or resource that the value of this element is permitted to be.", 0, java.lang.Integer.MAX_VALUE, type));
childrenList.add(new Property("nameReference", "string", "Identifies the name of a slice defined elsewhere in the profile whose constraints should be applied to the current element.", 0, java.lang.Integer.MAX_VALUE, nameReference));
childrenList.add(new Property("defaultValue[x]", "*", "The value that should be used if there is no value stated in the instance (e.g. 'if not otherwise specified, the abstract is false').", 0, java.lang.Integer.MAX_VALUE, defaultValue));
childrenList.add(new Property("meaningWhenMissing", "markdown", "The Implicit meaning that is to be understood when this element is missing (e.g. 'when this element is missing, the period is ongoing'.", 0, java.lang.Integer.MAX_VALUE, meaningWhenMissing));
childrenList.add(new Property("fixed[x]", "*", "Specifies a value that SHALL be exactly the value for this element in the instance. For purposes of comparison, non-significant whitespace is ignored, and all values must be an exact match (case and accent sensitive). Missing elements/attributes must also be missing.", 0, java.lang.Integer.MAX_VALUE, fixed));
@ -3687,10 +3961,10 @@ public class ElementDefinition extends Type implements ICompositeType {
this.max = castToString(value); // StringType
else if (name.equals("base"))
this.base = (ElementDefinitionBaseComponent) value; // ElementDefinitionBaseComponent
else if (name.equals("contentReference"))
this.contentReference = castToUri(value); // UriType
else if (name.equals("type"))
this.getType().add((TypeRefComponent) value);
else if (name.equals("nameReference"))
this.nameReference = castToString(value); // StringType
else if (name.equals("defaultValue[x]"))
this.defaultValue = (org.hl7.fhir.dstu3.model.Type) value; // org.hl7.fhir.dstu3.model.Type
else if (name.equals("meaningWhenMissing"))
@ -3771,12 +4045,12 @@ public class ElementDefinition extends Type implements ICompositeType {
this.base = new ElementDefinitionBaseComponent();
return this.base;
}
else if (name.equals("contentReference")) {
throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.contentReference");
}
else if (name.equals("type")) {
return addType();
}
else if (name.equals("nameReference")) {
throw new FHIRException("Cannot call addChild on a primitive type ElementDefinition.nameReference");
}
else if (name.equals("defaultValueBoolean")) {
this.defaultValue = new BooleanType();
return this.defaultValue;
@ -4635,12 +4909,12 @@ public class ElementDefinition extends Type implements ICompositeType {
dst.min = min == null ? null : min.copy();
dst.max = max == null ? null : max.copy();
dst.base = base == null ? null : base.copy();
dst.contentReference = contentReference == null ? null : contentReference.copy();
if (type != null) {
dst.type = new ArrayList<TypeRefComponent>();
for (TypeRefComponent i : type)
dst.type.add(i.copy());
};
dst.nameReference = nameReference == null ? null : nameReference.copy();
dst.defaultValue = defaultValue == null ? null : defaultValue.copy();
dst.meaningWhenMissing = meaningWhenMissing == null ? null : meaningWhenMissing.copy();
dst.fixed = fixed == null ? null : fixed.copy();
@ -4686,12 +4960,11 @@ public class ElementDefinition extends Type implements ICompositeType {
&& compareDeep(label, o.label, true) && compareDeep(code, o.code, true) && compareDeep(slicing, o.slicing, true)
&& compareDeep(short_, o.short_, true) && compareDeep(definition, o.definition, true) && compareDeep(comments, o.comments, true)
&& compareDeep(requirements, o.requirements, true) && compareDeep(alias, o.alias, true) && compareDeep(min, o.min, true)
&& compareDeep(max, o.max, true) && compareDeep(base, o.base, true) && compareDeep(type, o.type, true)
&& compareDeep(nameReference, o.nameReference, true) && compareDeep(defaultValue, o.defaultValue, true)
&& compareDeep(meaningWhenMissing, o.meaningWhenMissing, true) && compareDeep(fixed, o.fixed, true)
&& compareDeep(pattern, o.pattern, true) && compareDeep(example, o.example, true) && compareDeep(minValue, o.minValue, true)
&& compareDeep(maxValue, o.maxValue, true) && compareDeep(maxLength, o.maxLength, true) && compareDeep(condition, o.condition, true)
&& compareDeep(constraint, o.constraint, true) && compareDeep(mustSupport, o.mustSupport, true)
&& compareDeep(max, o.max, true) && compareDeep(base, o.base, true) && compareDeep(contentReference, o.contentReference, true)
&& compareDeep(type, o.type, true) && compareDeep(defaultValue, o.defaultValue, true) && compareDeep(meaningWhenMissing, o.meaningWhenMissing, true)
&& compareDeep(fixed, o.fixed, true) && compareDeep(pattern, o.pattern, true) && compareDeep(example, o.example, true)
&& compareDeep(minValue, o.minValue, true) && compareDeep(maxValue, o.maxValue, true) && compareDeep(maxLength, o.maxLength, true)
&& compareDeep(condition, o.condition, true) && compareDeep(constraint, o.constraint, true) && compareDeep(mustSupport, o.mustSupport, true)
&& compareDeep(isModifier, o.isModifier, true) && compareDeep(isSummary, o.isSummary, true) && compareDeep(binding, o.binding, true)
&& compareDeep(mapping, o.mapping, true);
}
@ -4706,26 +4979,18 @@ public class ElementDefinition extends Type implements ICompositeType {
return compareValues(path, o.path, true) && compareValues(representation, o.representation, true) && compareValues(name, o.name, true)
&& compareValues(label, o.label, true) && compareValues(short_, o.short_, true) && compareValues(definition, o.definition, true)
&& compareValues(comments, o.comments, true) && compareValues(requirements, o.requirements, true) && compareValues(alias, o.alias, true)
&& compareValues(min, o.min, true) && compareValues(max, o.max, true) && compareValues(nameReference, o.nameReference, true)
&& compareValues(min, o.min, true) && compareValues(max, o.max, true) && compareValues(contentReference, o.contentReference, true)
&& compareValues(meaningWhenMissing, o.meaningWhenMissing, true) && compareValues(maxLength, o.maxLength, true)
&& compareValues(condition, o.condition, true) && compareValues(mustSupport, o.mustSupport, true) && compareValues(isModifier, o.isModifier, true)
&& compareValues(isSummary, o.isSummary, true);
}
public boolean isEmpty() {
return super.isEmpty() && (path == null || path.isEmpty()) && (representation == null || representation.isEmpty())
&& (name == null || name.isEmpty()) && (label == null || label.isEmpty()) && (code == null || code.isEmpty())
&& (slicing == null || slicing.isEmpty()) && (short_ == null || short_.isEmpty()) && (definition == null || definition.isEmpty())
&& (comments == null || comments.isEmpty()) && (requirements == null || requirements.isEmpty())
&& (alias == null || alias.isEmpty()) && (min == null || min.isEmpty()) && (max == null || max.isEmpty())
&& (base == null || base.isEmpty()) && (type == null || type.isEmpty()) && (nameReference == null || nameReference.isEmpty())
&& (defaultValue == null || defaultValue.isEmpty()) && (meaningWhenMissing == null || meaningWhenMissing.isEmpty())
&& (fixed == null || fixed.isEmpty()) && (pattern == null || pattern.isEmpty()) && (example == null || example.isEmpty())
&& (minValue == null || minValue.isEmpty()) && (maxValue == null || maxValue.isEmpty()) && (maxLength == null || maxLength.isEmpty())
&& (condition == null || condition.isEmpty()) && (constraint == null || constraint.isEmpty())
&& (mustSupport == null || mustSupport.isEmpty()) && (isModifier == null || isModifier.isEmpty())
&& (isSummary == null || isSummary.isEmpty()) && (binding == null || binding.isEmpty()) && (mapping == null || mapping.isEmpty())
;
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( path, representation, name, label
, code, slicing, short_, definition, comments, requirements, alias, min, max, base
, contentReference, type, defaultValue, meaningWhenMissing, fixed, pattern, example, minValue
, maxValue, maxLength, condition, constraint, mustSupport, isModifier, isSummary, binding
, mapping);
}

View File

@ -29,21 +29,19 @@ package org.hl7.fhir.dstu3.model;
*/
// Generated on Sat, Jan 30, 2016 09:18-0500 for FHIR v1.3.0
// Generated on Fri, Apr 1, 2016 17:57-0400 for FHIR v1.4.0
import java.util.*;
import org.hl7.fhir.utilities.Utilities;
import org.hl7.fhir.dstu3.model.Enumerations.*;
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.Description;
import ca.uhn.fhir.model.api.annotation.Block;
import org.hl7.fhir.dstu3.exceptions.FHIRException;
import org.hl7.fhir.dstu3.model.Enumerations.*;
import org.hl7.fhir.instance.model.api.*;
import org.hl7.fhir.dstu3.exceptions.FHIRException;
/**
* This resource provides eligibility and plan details from the processing of an Eligibility resource.
*/
@ -367,9 +365,8 @@ public class EligibilityResponse extends DomainResource {
}
public boolean isEmpty() {
return super.isEmpty() && (category == null || category.isEmpty()) && (subCategory == null || subCategory.isEmpty())
&& (network == null || network.isEmpty()) && (unit == null || unit.isEmpty()) && (term == null || term.isEmpty())
&& (financial == null || financial.isEmpty());
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( category, subCategory, network
, unit, term, financial);
}
public String fhirType() {
@ -609,8 +606,7 @@ public class EligibilityResponse extends DomainResource {
}
public boolean isEmpty() {
return super.isEmpty() && (type == null || type.isEmpty()) && (benefit == null || benefit.isEmpty())
&& (benefitUsed == null || benefitUsed.isEmpty());
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( type, benefit, benefitUsed);
}
public String fhirType() {
@ -721,7 +717,7 @@ public class EligibilityResponse extends DomainResource {
}
public boolean isEmpty() {
return super.isEmpty() && (code == null || code.isEmpty());
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( code);
}
public String fhirType() {
@ -741,14 +737,9 @@ public class EligibilityResponse extends DomainResource {
/**
* Original request resource reference.
*/
@Child(name = "request", type = {EligibilityRequest.class}, order=1, min=0, max=1, modifier=false, summary=true)
@Child(name = "request", type = {Identifier.class, EligibilityRequest.class}, order=1, min=0, max=1, modifier=false, summary=true)
@Description(shortDefinition="Claim reference", formalDefinition="Original request resource reference." )
protected Reference request;
/**
* The actual object that is the target of the reference (Original request resource reference.)
*/
protected EligibilityRequest requestTarget;
protected Type request;
/**
* Transaction status: error, complete.
@ -788,38 +779,23 @@ public class EligibilityResponse extends DomainResource {
/**
* The Insurer who produced this adjudicated response.
*/
@Child(name = "organization", type = {Organization.class}, order=7, min=0, max=1, modifier=false, summary=true)
@Child(name = "organization", type = {Identifier.class, Organization.class}, order=7, min=0, max=1, modifier=false, summary=true)
@Description(shortDefinition="Insurer", formalDefinition="The Insurer who produced this adjudicated response." )
protected Reference organization;
/**
* The actual object that is the target of the reference (The Insurer who produced this adjudicated response.)
*/
protected Organization organizationTarget;
protected Type organization;
/**
* The practitioner who is responsible for the services rendered to the patient.
*/
@Child(name = "requestProvider", type = {Practitioner.class}, order=8, min=0, max=1, modifier=false, summary=true)
@Child(name = "requestProvider", type = {Identifier.class, Practitioner.class}, order=8, min=0, max=1, modifier=false, summary=true)
@Description(shortDefinition="Responsible practitioner", formalDefinition="The practitioner who is responsible for the services rendered to the patient." )
protected Reference requestProvider;
/**
* The actual object that is the target of the reference (The practitioner who is responsible for the services rendered to the patient.)
*/
protected Practitioner requestProviderTarget;
protected Type requestProvider;
/**
* The organization which is responsible for the services rendered to the patient.
*/
@Child(name = "requestOrganization", type = {Organization.class}, order=9, min=0, max=1, modifier=false, summary=true)
@Child(name = "requestOrganization", type = {Identifier.class, Organization.class}, order=9, min=0, max=1, modifier=false, summary=true)
@Description(shortDefinition="Responsible organization", formalDefinition="The organization which is responsible for the services rendered to the patient." )
protected Reference requestOrganization;
/**
* The actual object that is the target of the reference (The organization which is responsible for the services rendered to the patient.)
*/
protected Organization requestOrganizationTarget;
protected Type requestOrganization;
/**
* Flag indicating if the coverage provided is inforce currently if no service date(s) specified or for the whole duration of the service dates.
@ -861,7 +837,7 @@ public class EligibilityResponse extends DomainResource {
@Description(shortDefinition="Processing errors", formalDefinition="Mutually exclusive with Services Provided (Item)." )
protected List<ErrorsComponent> error;
private static final long serialVersionUID = 1247668191L;
private static final long serialVersionUID = -674605791L;
/**
* Constructor
@ -913,15 +889,36 @@ public class EligibilityResponse extends DomainResource {
/**
* @return {@link #request} (Original request resource reference.)
*/
public Reference getRequest() {
if (this.request == null)
if (Configuration.errorOnAutoCreate())
throw new Error("Attempt to auto-create EligibilityResponse.request");
else if (Configuration.doAutoCreate())
this.request = new Reference(); // cc
public Type getRequest() {
return this.request;
}
/**
* @return {@link #request} (Original request resource reference.)
*/
public Identifier getRequestIdentifier() throws FHIRException {
if (!(this.request instanceof Identifier))
throw new FHIRException("Type mismatch: the type Identifier was expected, but "+this.request.getClass().getName()+" was encountered");
return (Identifier) this.request;
}
public boolean hasRequestIdentifier() {
return this.request instanceof Identifier;
}
/**
* @return {@link #request} (Original request resource reference.)
*/
public Reference getRequestReference() throws FHIRException {
if (!(this.request instanceof Reference))
throw new FHIRException("Type mismatch: the type Reference was expected, but "+this.request.getClass().getName()+" was encountered");
return (Reference) this.request;
}
public boolean hasRequestReference() {
return this.request instanceof Reference;
}
public boolean hasRequest() {
return this.request != null && !this.request.isEmpty();
}
@ -929,31 +926,11 @@ public class EligibilityResponse extends DomainResource {
/**
* @param value {@link #request} (Original request resource reference.)
*/
public EligibilityResponse setRequest(Reference value) {
public EligibilityResponse setRequest(Type value) {
this.request = value;
return this;
}
/**
* @return {@link #request} The actual object that is the target of the reference. The reference library doesn't populate this, but you can use it to hold the resource if you resolve it. (Original request resource reference.)
*/
public EligibilityRequest getRequestTarget() {
if (this.requestTarget == null)
if (Configuration.errorOnAutoCreate())
throw new Error("Attempt to auto-create EligibilityResponse.request");
else if (Configuration.doAutoCreate())
this.requestTarget = new EligibilityRequest(); // aa
return this.requestTarget;
}
/**
* @param value {@link #request} The actual object that is the target of the reference. The reference library doesn't use these, but you can use it to hold the resource if you resolve it. (Original request resource reference.)
*/
public EligibilityResponse setRequestTarget(EligibilityRequest value) {
this.requestTarget = value;
return this;
}
/**
* @return {@link #outcome} (Transaction status: error, complete.). This is the underlying object with id, value and extensions. The accessor "getOutcome" gives direct access to the value
*/
@ -1152,15 +1129,36 @@ public class EligibilityResponse extends DomainResource {
/**
* @return {@link #organization} (The Insurer who produced this adjudicated response.)
*/
public Reference getOrganization() {
if (this.organization == null)
if (Configuration.errorOnAutoCreate())
throw new Error("Attempt to auto-create EligibilityResponse.organization");
else if (Configuration.doAutoCreate())
this.organization = new Reference(); // cc
public Type getOrganization() {
return this.organization;
}
/**
* @return {@link #organization} (The Insurer who produced this adjudicated response.)
*/
public Identifier getOrganizationIdentifier() throws FHIRException {
if (!(this.organization instanceof Identifier))
throw new FHIRException("Type mismatch: the type Identifier was expected, but "+this.organization.getClass().getName()+" was encountered");
return (Identifier) this.organization;
}
public boolean hasOrganizationIdentifier() {
return this.organization instanceof Identifier;
}
/**
* @return {@link #organization} (The Insurer who produced this adjudicated response.)
*/
public Reference getOrganizationReference() throws FHIRException {
if (!(this.organization instanceof Reference))
throw new FHIRException("Type mismatch: the type Reference was expected, but "+this.organization.getClass().getName()+" was encountered");
return (Reference) this.organization;
}
public boolean hasOrganizationReference() {
return this.organization instanceof Reference;
}
public boolean hasOrganization() {
return this.organization != null && !this.organization.isEmpty();
}
@ -1168,43 +1166,44 @@ public class EligibilityResponse extends DomainResource {
/**
* @param value {@link #organization} (The Insurer who produced this adjudicated response.)
*/
public EligibilityResponse setOrganization(Reference value) {
public EligibilityResponse setOrganization(Type value) {
this.organization = value;
return this;
}
/**
* @return {@link #organization} The actual object that is the target of the reference. The reference library doesn't populate this, but you can use it to hold the resource if you resolve it. (The Insurer who produced this adjudicated response.)
*/
public Organization getOrganizationTarget() {
if (this.organizationTarget == null)
if (Configuration.errorOnAutoCreate())
throw new Error("Attempt to auto-create EligibilityResponse.organization");
else if (Configuration.doAutoCreate())
this.organizationTarget = new Organization(); // aa
return this.organizationTarget;
}
/**
* @param value {@link #organization} The actual object that is the target of the reference. The reference library doesn't use these, but you can use it to hold the resource if you resolve it. (The Insurer who produced this adjudicated response.)
*/
public EligibilityResponse setOrganizationTarget(Organization value) {
this.organizationTarget = value;
return this;
}
/**
* @return {@link #requestProvider} (The practitioner who is responsible for the services rendered to the patient.)
*/
public Reference getRequestProvider() {
if (this.requestProvider == null)
if (Configuration.errorOnAutoCreate())
throw new Error("Attempt to auto-create EligibilityResponse.requestProvider");
else if (Configuration.doAutoCreate())
this.requestProvider = new Reference(); // cc
public Type getRequestProvider() {
return this.requestProvider;
}
/**
* @return {@link #requestProvider} (The practitioner who is responsible for the services rendered to the patient.)
*/
public Identifier getRequestProviderIdentifier() throws FHIRException {
if (!(this.requestProvider instanceof Identifier))
throw new FHIRException("Type mismatch: the type Identifier was expected, but "+this.requestProvider.getClass().getName()+" was encountered");
return (Identifier) this.requestProvider;
}
public boolean hasRequestProviderIdentifier() {
return this.requestProvider instanceof Identifier;
}
/**
* @return {@link #requestProvider} (The practitioner who is responsible for the services rendered to the patient.)
*/
public Reference getRequestProviderReference() throws FHIRException {
if (!(this.requestProvider instanceof Reference))
throw new FHIRException("Type mismatch: the type Reference was expected, but "+this.requestProvider.getClass().getName()+" was encountered");
return (Reference) this.requestProvider;
}
public boolean hasRequestProviderReference() {
return this.requestProvider instanceof Reference;
}
public boolean hasRequestProvider() {
return this.requestProvider != null && !this.requestProvider.isEmpty();
}
@ -1212,43 +1211,44 @@ public class EligibilityResponse extends DomainResource {
/**
* @param value {@link #requestProvider} (The practitioner who is responsible for the services rendered to the patient.)
*/
public EligibilityResponse setRequestProvider(Reference value) {
public EligibilityResponse setRequestProvider(Type value) {
this.requestProvider = value;
return this;
}
/**
* @return {@link #requestProvider} The actual object that is the target of the reference. The reference library doesn't populate this, but you can use it to hold the resource if you resolve it. (The practitioner who is responsible for the services rendered to the patient.)
*/
public Practitioner getRequestProviderTarget() {
if (this.requestProviderTarget == null)
if (Configuration.errorOnAutoCreate())
throw new Error("Attempt to auto-create EligibilityResponse.requestProvider");
else if (Configuration.doAutoCreate())
this.requestProviderTarget = new Practitioner(); // aa
return this.requestProviderTarget;
}
/**
* @param value {@link #requestProvider} The actual object that is the target of the reference. The reference library doesn't use these, but you can use it to hold the resource if you resolve it. (The practitioner who is responsible for the services rendered to the patient.)
*/
public EligibilityResponse setRequestProviderTarget(Practitioner value) {
this.requestProviderTarget = value;
return this;
}
/**
* @return {@link #requestOrganization} (The organization which is responsible for the services rendered to the patient.)
*/
public Reference getRequestOrganization() {
if (this.requestOrganization == null)
if (Configuration.errorOnAutoCreate())
throw new Error("Attempt to auto-create EligibilityResponse.requestOrganization");
else if (Configuration.doAutoCreate())
this.requestOrganization = new Reference(); // cc
public Type getRequestOrganization() {
return this.requestOrganization;
}
/**
* @return {@link #requestOrganization} (The organization which is responsible for the services rendered to the patient.)
*/
public Identifier getRequestOrganizationIdentifier() throws FHIRException {
if (!(this.requestOrganization instanceof Identifier))
throw new FHIRException("Type mismatch: the type Identifier was expected, but "+this.requestOrganization.getClass().getName()+" was encountered");
return (Identifier) this.requestOrganization;
}
public boolean hasRequestOrganizationIdentifier() {
return this.requestOrganization instanceof Identifier;
}
/**
* @return {@link #requestOrganization} (The organization which is responsible for the services rendered to the patient.)
*/
public Reference getRequestOrganizationReference() throws FHIRException {
if (!(this.requestOrganization instanceof Reference))
throw new FHIRException("Type mismatch: the type Reference was expected, but "+this.requestOrganization.getClass().getName()+" was encountered");
return (Reference) this.requestOrganization;
}
public boolean hasRequestOrganizationReference() {
return this.requestOrganization instanceof Reference;
}
public boolean hasRequestOrganization() {
return this.requestOrganization != null && !this.requestOrganization.isEmpty();
}
@ -1256,31 +1256,11 @@ public class EligibilityResponse extends DomainResource {
/**
* @param value {@link #requestOrganization} (The organization which is responsible for the services rendered to the patient.)
*/
public EligibilityResponse setRequestOrganization(Reference value) {
public EligibilityResponse setRequestOrganization(Type value) {
this.requestOrganization = value;
return this;
}
/**
* @return {@link #requestOrganization} The actual object that is the target of the reference. The reference library doesn't populate this, but you can use it to hold the resource if you resolve it. (The organization which is responsible for the services rendered to the patient.)
*/
public Organization getRequestOrganizationTarget() {
if (this.requestOrganizationTarget == null)
if (Configuration.errorOnAutoCreate())
throw new Error("Attempt to auto-create EligibilityResponse.requestOrganization");
else if (Configuration.doAutoCreate())
this.requestOrganizationTarget = new Organization(); // aa
return this.requestOrganizationTarget;
}
/**
* @param value {@link #requestOrganization} The actual object that is the target of the reference. The reference library doesn't use these, but you can use it to hold the resource if you resolve it. (The organization which is responsible for the services rendered to the patient.)
*/
public EligibilityResponse setRequestOrganizationTarget(Organization value) {
this.requestOrganizationTarget = value;
return this;
}
/**
* @return {@link #inforce} (Flag indicating if the coverage provided is inforce currently if no service date(s) specified or for the whole duration of the service dates.). This is the underlying object with id, value and extensions. The accessor "getInforce" gives direct access to the value
*/
@ -1477,15 +1457,15 @@ public class EligibilityResponse extends DomainResource {
protected void listChildren(List<Property> childrenList) {
super.listChildren(childrenList);
childrenList.add(new Property("identifier", "Identifier", "The Response business identifier.", 0, java.lang.Integer.MAX_VALUE, identifier));
childrenList.add(new Property("request", "Reference(EligibilityRequest)", "Original request resource reference.", 0, java.lang.Integer.MAX_VALUE, request));
childrenList.add(new Property("request[x]", "Identifier|Reference(EligibilityRequest)", "Original request resource reference.", 0, java.lang.Integer.MAX_VALUE, request));
childrenList.add(new Property("outcome", "code", "Transaction status: error, complete.", 0, java.lang.Integer.MAX_VALUE, outcome));
childrenList.add(new Property("disposition", "string", "A description of the status of the adjudication.", 0, java.lang.Integer.MAX_VALUE, disposition));
childrenList.add(new Property("ruleset", "Coding", "The version of the style of resource contents. This should be mapped to the allowable profiles for this and supporting resources.", 0, java.lang.Integer.MAX_VALUE, ruleset));
childrenList.add(new Property("originalRuleset", "Coding", "The style (standard) and version of the original material which was converted into this resource.", 0, java.lang.Integer.MAX_VALUE, originalRuleset));
childrenList.add(new Property("created", "dateTime", "The date when the enclosed suite of services were performed or completed.", 0, java.lang.Integer.MAX_VALUE, created));
childrenList.add(new Property("organization", "Reference(Organization)", "The Insurer who produced this adjudicated response.", 0, java.lang.Integer.MAX_VALUE, organization));
childrenList.add(new Property("requestProvider", "Reference(Practitioner)", "The practitioner who is responsible for the services rendered to the patient.", 0, java.lang.Integer.MAX_VALUE, requestProvider));
childrenList.add(new Property("requestOrganization", "Reference(Organization)", "The organization which is responsible for the services rendered to the patient.", 0, java.lang.Integer.MAX_VALUE, requestOrganization));
childrenList.add(new Property("organization[x]", "Identifier|Reference(Organization)", "The Insurer who produced this adjudicated response.", 0, java.lang.Integer.MAX_VALUE, organization));
childrenList.add(new Property("requestProvider[x]", "Identifier|Reference(Practitioner)", "The practitioner who is responsible for the services rendered to the patient.", 0, java.lang.Integer.MAX_VALUE, requestProvider));
childrenList.add(new Property("requestOrganization[x]", "Identifier|Reference(Organization)", "The organization which is responsible for the services rendered to the patient.", 0, java.lang.Integer.MAX_VALUE, requestOrganization));
childrenList.add(new Property("inforce", "boolean", "Flag indicating if the coverage provided is inforce currently if no service date(s) specified or for the whole duration of the service dates.", 0, java.lang.Integer.MAX_VALUE, inforce));
childrenList.add(new Property("contract", "Reference(Contract)", "The contract resource which may provide more detailed information.", 0, java.lang.Integer.MAX_VALUE, contract));
childrenList.add(new Property("form", "Coding", "The form to be used for printing the content.", 0, java.lang.Integer.MAX_VALUE, form));
@ -1497,8 +1477,8 @@ public class EligibilityResponse extends DomainResource {
public void setProperty(String name, Base value) throws FHIRException {
if (name.equals("identifier"))
this.getIdentifier().add(castToIdentifier(value));
else if (name.equals("request"))
this.request = castToReference(value); // Reference
else if (name.equals("request[x]"))
this.request = (Type) value; // Type
else if (name.equals("outcome"))
this.outcome = new RemittanceOutcomeEnumFactory().fromType(value); // Enumeration<RemittanceOutcome>
else if (name.equals("disposition"))
@ -1509,12 +1489,12 @@ public class EligibilityResponse extends DomainResource {
this.originalRuleset = castToCoding(value); // Coding
else if (name.equals("created"))
this.created = castToDateTime(value); // DateTimeType
else if (name.equals("organization"))
this.organization = castToReference(value); // Reference
else if (name.equals("requestProvider"))
this.requestProvider = castToReference(value); // Reference
else if (name.equals("requestOrganization"))
this.requestOrganization = castToReference(value); // Reference
else if (name.equals("organization[x]"))
this.organization = (Type) value; // Type
else if (name.equals("requestProvider[x]"))
this.requestProvider = (Type) value; // Type
else if (name.equals("requestOrganization[x]"))
this.requestOrganization = (Type) value; // Type
else if (name.equals("inforce"))
this.inforce = castToBoolean(value); // BooleanType
else if (name.equals("contract"))
@ -1534,7 +1514,11 @@ public class EligibilityResponse extends DomainResource {
if (name.equals("identifier")) {
return addIdentifier();
}
else if (name.equals("request")) {
else if (name.equals("requestIdentifier")) {
this.request = new Identifier();
return this.request;
}
else if (name.equals("requestReference")) {
this.request = new Reference();
return this.request;
}
@ -1555,15 +1539,27 @@ public class EligibilityResponse extends DomainResource {
else if (name.equals("created")) {
throw new FHIRException("Cannot call addChild on a primitive type EligibilityResponse.created");
}
else if (name.equals("organization")) {
else if (name.equals("organizationIdentifier")) {
this.organization = new Identifier();
return this.organization;
}
else if (name.equals("organizationReference")) {
this.organization = new Reference();
return this.organization;
}
else if (name.equals("requestProvider")) {
else if (name.equals("requestProviderIdentifier")) {
this.requestProvider = new Identifier();
return this.requestProvider;
}
else if (name.equals("requestProviderReference")) {
this.requestProvider = new Reference();
return this.requestProvider;
}
else if (name.equals("requestOrganization")) {
else if (name.equals("requestOrganizationIdentifier")) {
this.requestOrganization = new Identifier();
return this.requestOrganization;
}
else if (name.equals("requestOrganizationReference")) {
this.requestOrganization = new Reference();
return this.requestOrganization;
}
@ -1657,14 +1653,9 @@ public class EligibilityResponse extends DomainResource {
}
public boolean isEmpty() {
return super.isEmpty() && (identifier == null || identifier.isEmpty()) && (request == null || request.isEmpty())
&& (outcome == null || outcome.isEmpty()) && (disposition == null || disposition.isEmpty())
&& (ruleset == null || ruleset.isEmpty()) && (originalRuleset == null || originalRuleset.isEmpty())
&& (created == null || created.isEmpty()) && (organization == null || organization.isEmpty())
&& (requestProvider == null || requestProvider.isEmpty()) && (requestOrganization == null || requestOrganization.isEmpty())
&& (inforce == null || inforce.isEmpty()) && (contract == null || contract.isEmpty()) && (form == null || form.isEmpty())
&& (benefitBalance == null || benefitBalance.isEmpty()) && (error == null || error.isEmpty())
;
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( identifier, request, outcome
, disposition, ruleset, originalRuleset, created, organization, requestProvider, requestOrganization
, inforce, contract, form, benefitBalance, error);
}
@Override
@ -1672,6 +1663,46 @@ 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.requestProviderIdentifier", 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.requestOrganizationIdentifier", 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>
@ -1692,32 +1723,6 @@ 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</b>
* <p>
* Description: <b>The EligibilityRequest reference</b><br>
* Type: <b>reference</b><br>
* Path: <b>EligibilityResponse.request</b><br>
* </p>
*/
@SearchParamDefinition(name="request", path="EligibilityResponse.request", description="The EligibilityRequest reference", type="reference" )
public static final String SP_REQUEST = "request";
/**
* <b>Fluent Client</b> search parameter constant for <b>request</b>
* <p>
* Description: <b>The EligibilityRequest reference</b><br>
* Type: <b>reference</b><br>
* Path: <b>EligibilityResponse.request</b><br>
* </p>
*/
public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam REQUEST = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_REQUEST);
/**
* Constant for fluent queries to be used to add include statements. Specifies
* the path value of "<b>EligibilityResponse:request</b>".
*/
public static final ca.uhn.fhir.model.api.Include INCLUDE_REQUEST = new ca.uhn.fhir.model.api.Include("EligibilityResponse:request").toLocked();
/**
* Search parameter: <b>disposition</b>
* <p>
@ -1738,6 +1743,26 @@ 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>
* <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="organizationidentifier", path="EligibilityResponse.organizationIdentifier", description="The organization which generated this resource", type="token" )
public static final String SP_ORGANIZATIONIDENTIFIER = "organizationidentifier";
/**
* <b>Fluent Client</b> search parameter constant for <b>organizationidentifier</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 ORGANIZATIONIDENTIFIER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_ORGANIZATIONIDENTIFIER);
/**
* Search parameter: <b>created</b>
* <p>
@ -1759,82 +1784,128 @@ 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>organization</b>
* Search parameter: <b>requestidentifier</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.requestIdentifier", description="The EligibilityRequest reference", type="token" )
public static final String SP_REQUESTIDENTIFIER = "requestidentifier";
/**
* <b>Fluent Client</b> search parameter constant for <b>requestidentifier</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);
/**
* Search parameter: <b>organizationreference</b>
* <p>
* Description: <b>The organization which generated this resource</b><br>
* Type: <b>reference</b><br>
* Path: <b>EligibilityResponse.organization</b><br>
* Path: <b>EligibilityResponse.organizationReference</b><br>
* </p>
*/
@SearchParamDefinition(name="organization", path="EligibilityResponse.organization", description="The organization which generated this resource", type="reference" )
public static final String SP_ORGANIZATION = "organization";
@SearchParamDefinition(name="organizationreference", path="EligibilityResponse.organizationReference", description="The organization which generated this resource", type="reference" )
public static final String SP_ORGANIZATIONREFERENCE = "organizationreference";
/**
* <b>Fluent Client</b> search parameter constant for <b>organization</b>
* <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.organization</b><br>
* Path: <b>EligibilityResponse.organizationReference</b><br>
* </p>
*/
public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam ORGANIZATION = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_ORGANIZATION);
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:organization</b>".
* the path value of "<b>EligibilityResponse:organizationreference</b>".
*/
public static final ca.uhn.fhir.model.api.Include INCLUDE_ORGANIZATION = new ca.uhn.fhir.model.api.Include("EligibilityResponse:organization").toLocked();
public static final ca.uhn.fhir.model.api.Include INCLUDE_ORGANIZATIONREFERENCE = new ca.uhn.fhir.model.api.Include("EligibilityResponse:organizationreference").toLocked();
/**
* Search parameter: <b>requestprovider</b>
* Search parameter: <b>requestproviderreference</b>
* <p>
* Description: <b>Reference to the EligibilityRequest provider</b><br>
* Description: <b>The EligibilityRequest provider</b><br>
* Type: <b>reference</b><br>
* Path: <b>EligibilityResponse.requestProvider</b><br>
* Path: <b>EligibilityResponse.requestProviderReference</b><br>
* </p>
*/
@SearchParamDefinition(name="requestprovider", path="EligibilityResponse.requestProvider", description="Reference to the EligibilityRequest provider", type="reference" )
public static final String SP_REQUESTPROVIDER = "requestprovider";
@SearchParamDefinition(name="requestproviderreference", path="EligibilityResponse.requestProviderReference", description="The EligibilityRequest provider", type="reference" )
public static final String SP_REQUESTPROVIDERREFERENCE = "requestproviderreference";
/**
* <b>Fluent Client</b> search parameter constant for <b>requestprovider</b>
* <b>Fluent Client</b> search parameter constant for <b>requestproviderreference</b>
* <p>
* Description: <b>Reference to the EligibilityRequest provider</b><br>
* Description: <b>The EligibilityRequest provider</b><br>
* Type: <b>reference</b><br>
* Path: <b>EligibilityResponse.requestProvider</b><br>
* Path: <b>EligibilityResponse.requestProviderReference</b><br>
* </p>
*/
public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam REQUESTPROVIDER = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_REQUESTPROVIDER);
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:requestprovider</b>".
* the path value of "<b>EligibilityResponse:requestproviderreference</b>".
*/
public static final ca.uhn.fhir.model.api.Include INCLUDE_REQUESTPROVIDER = new ca.uhn.fhir.model.api.Include("EligibilityResponse:requestprovider").toLocked();
public static final ca.uhn.fhir.model.api.Include INCLUDE_REQUESTPROVIDERREFERENCE = new ca.uhn.fhir.model.api.Include("EligibilityResponse:requestproviderreference").toLocked();
/**
* Search parameter: <b>requestorganization</b>
* Search parameter: <b>requestorganizationreference</b>
* <p>
* Description: <b>Reference to the EligibilityRequest organization</b><br>
* Description: <b>The EligibilityRequest organization</b><br>
* Type: <b>reference</b><br>
* Path: <b>EligibilityResponse.requestOrganization</b><br>
* Path: <b>EligibilityResponse.requestOrganizationReference</b><br>
* </p>
*/
@SearchParamDefinition(name="requestorganization", path="EligibilityResponse.requestOrganization", description="Reference to the EligibilityRequest organization", type="reference" )
public static final String SP_REQUESTORGANIZATION = "requestorganization";
@SearchParamDefinition(name="requestorganizationreference", path="EligibilityResponse.requestOrganizationReference", description="The EligibilityRequest organization", type="reference" )
public static final String SP_REQUESTORGANIZATIONREFERENCE = "requestorganizationreference";
/**
* <b>Fluent Client</b> search parameter constant for <b>requestorganization</b>
* <b>Fluent Client</b> search parameter constant for <b>requestorganizationreference</b>
* <p>
* Description: <b>Reference to the EligibilityRequest organization</b><br>
* Description: <b>The EligibilityRequest organization</b><br>
* Type: <b>reference</b><br>
* Path: <b>EligibilityResponse.requestOrganization</b><br>
* Path: <b>EligibilityResponse.requestOrganizationReference</b><br>
* </p>
*/
public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam REQUESTORGANIZATION = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_REQUESTORGANIZATION);
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:requestorganization</b>".
* the path value of "<b>EligibilityResponse:requestorganizationreference</b>".
*/
public static final ca.uhn.fhir.model.api.Include INCLUDE_REQUESTORGANIZATION = new ca.uhn.fhir.model.api.Include("EligibilityResponse:requestorganization").toLocked();
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.requestReference", description="The EligibilityRequest reference", type="reference" )
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();
/**
* Search parameter: <b>outcome</b>

View File

@ -29,7 +29,7 @@ package org.hl7.fhir.dstu3.model;
*/
// Generated on Sat, Jan 30, 2016 09:18-0500 for FHIR v1.3.0
// Generated on Fri, Apr 1, 2016 17:57-0400 for FHIR v1.4.0
import java.util.*;
@ -39,9 +39,8 @@ import ca.uhn.fhir.model.api.annotation.SearchParamDefinition;
import ca.uhn.fhir.model.api.annotation.Child;
import ca.uhn.fhir.model.api.annotation.Description;
import ca.uhn.fhir.model.api.annotation.Block;
import org.hl7.fhir.dstu3.exceptions.FHIRException;
import org.hl7.fhir.instance.model.api.*;
import org.hl7.fhir.dstu3.exceptions.FHIRException;
/**
* An interaction between a patient and healthcare provider(s) for the purpose of providing healthcare service(s) or assessing the health status of a patient.
*/
@ -682,8 +681,7 @@ Not to be used when the patient is currently at the location
}
public boolean isEmpty() {
return super.isEmpty() && (status == null || status.isEmpty()) && (period == null || period.isEmpty())
;
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( status, period);
}
public String fhirType() {
@ -904,8 +902,7 @@ Not to be used when the patient is currently at the location
}
public boolean isEmpty() {
return super.isEmpty() && (type == null || type.isEmpty()) && (period == null || period.isEmpty())
&& (individual == null || individual.isEmpty());
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( type, period, individual);
}
public String fhirType() {
@ -1600,13 +1597,9 @@ Not to be used when the patient is currently at the location
}
public boolean isEmpty() {
return super.isEmpty() && (preAdmissionIdentifier == null || preAdmissionIdentifier.isEmpty())
&& (origin == null || origin.isEmpty()) && (admitSource == null || admitSource.isEmpty())
&& (admittingDiagnosis == null || admittingDiagnosis.isEmpty()) && (reAdmission == null || reAdmission.isEmpty())
&& (dietPreference == null || dietPreference.isEmpty()) && (specialCourtesy == null || specialCourtesy.isEmpty())
&& (specialArrangement == null || specialArrangement.isEmpty()) && (destination == null || destination.isEmpty())
&& (dischargeDisposition == null || dischargeDisposition.isEmpty()) && (dischargeDiagnosis == null || dischargeDiagnosis.isEmpty())
;
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( preAdmissionIdentifier, origin
, admitSource, admittingDiagnosis, reAdmission, dietPreference, specialCourtesy, specialArrangement
, destination, dischargeDisposition, dischargeDiagnosis);
}
public String fhirType() {
@ -1845,8 +1838,7 @@ Not to be used when the patient is currently at the location
}
public boolean isEmpty() {
return super.isEmpty() && (location == null || location.isEmpty()) && (status == null || status.isEmpty())
&& (period == null || period.isEmpty());
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( location, status, period);
}
public String fhirType() {
@ -3054,15 +3046,10 @@ Not to be used when the patient is currently at the location
}
public boolean isEmpty() {
return super.isEmpty() && (identifier == null || identifier.isEmpty()) && (status == null || status.isEmpty())
&& (statusHistory == null || statusHistory.isEmpty()) && (class_ == null || class_.isEmpty())
&& (type == null || type.isEmpty()) && (priority == null || priority.isEmpty()) && (patient == null || patient.isEmpty())
&& (episodeOfCare == null || episodeOfCare.isEmpty()) && (incomingReferral == null || incomingReferral.isEmpty())
&& (participant == null || participant.isEmpty()) && (appointment == null || appointment.isEmpty())
&& (period == null || period.isEmpty()) && (length == null || length.isEmpty()) && (reason == null || reason.isEmpty())
&& (indication == null || indication.isEmpty()) && (hospitalization == null || hospitalization.isEmpty())
&& (location == null || location.isEmpty()) && (serviceProvider == null || serviceProvider.isEmpty())
&& (partOf == null || partOf.isEmpty());
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( identifier, status, statusHistory
, class_, type, priority, patient, episodeOfCare, incomingReferral, participant, appointment
, period, length, reason, indication, hospitalization, location, serviceProvider, partOf
);
}
@Override
@ -3210,7 +3197,7 @@ Not to be used when the patient is currently at the location
* Path: <b>Encounter.participant.individual</b><br>
* </p>
*/
@SearchParamDefinition(name="practitioner", path="Encounter.participant.individual", description="Persons involved in the encounter other than the patient", type="reference" )
@SearchParamDefinition(name="practitioner", path="Encounter.participant.individual", description="Persons involved in the encounter other than the patient", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Practitioner") } )
public static final String SP_PRACTITIONER = "practitioner";
/**
* <b>Fluent Client</b> search parameter constant for <b>practitioner</b>
@ -3354,7 +3341,7 @@ Not to be used when the patient is currently at the location
* Path: <b>Encounter.participant.individual</b><br>
* </p>
*/
@SearchParamDefinition(name="participant", path="Encounter.participant.individual", description="Persons involved in the encounter other than the patient", type="reference" )
@SearchParamDefinition(name="participant", path="Encounter.participant.individual", description="Persons involved in the encounter other than the patient", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Practitioner"), @ca.uhn.fhir.model.api.annotation.Compartment(name="RelatedPerson") } )
public static final String SP_PARTICIPANT = "participant";
/**
* <b>Fluent Client</b> search parameter constant for <b>participant</b>
@ -3406,7 +3393,7 @@ Not to be used when the patient is currently at the location
* Path: <b>Encounter.patient</b><br>
* </p>
*/
@SearchParamDefinition(name="patient", path="Encounter.patient", description="The patient present at the encounter", type="reference" )
@SearchParamDefinition(name="patient", path="Encounter.patient", description="The patient present at the encounter", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Patient") } )
public static final String SP_PATIENT = "patient";
/**
* <b>Fluent Client</b> search parameter constant for <b>patient</b>

View File

@ -29,19 +29,18 @@ package org.hl7.fhir.dstu3.model;
*/
// Generated on Sat, Jan 30, 2016 09:18-0500 for FHIR v1.3.0
// Generated on Fri, Apr 1, 2016 17:57-0400 for FHIR v1.4.0
import java.util.*;
import org.hl7.fhir.dstu3.model.Enumerations.*;
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.Description;
import ca.uhn.fhir.model.api.annotation.Block;
import org.hl7.fhir.dstu3.exceptions.FHIRException;
import org.hl7.fhir.dstu3.model.Enumerations.*;
import org.hl7.fhir.instance.model.api.*;
import org.hl7.fhir.dstu3.exceptions.FHIRException;
/**
* This resource provides the insurance enrollment details to the insurer regarding a specified coverage.
*/
@ -680,11 +679,8 @@ public class EnrollmentRequest extends DomainResource {
}
public boolean isEmpty() {
return super.isEmpty() && (identifier == null || identifier.isEmpty()) && (ruleset == null || ruleset.isEmpty())
&& (originalRuleset == null || originalRuleset.isEmpty()) && (created == null || created.isEmpty())
&& (target == null || target.isEmpty()) && (provider == null || provider.isEmpty()) && (organization == null || organization.isEmpty())
&& (subject == null || subject.isEmpty()) && (coverage == null || coverage.isEmpty()) && (relationship == null || relationship.isEmpty())
;
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( identifier, ruleset, originalRuleset
, created, target, provider, organization, subject, coverage, relationship);
}
@Override
@ -720,7 +716,7 @@ public class EnrollmentRequest extends DomainResource {
* Path: <b>EnrollmentRequest.subject</b><br>
* </p>
*/
@SearchParamDefinition(name="subject", path="EnrollmentRequest.subject", description="The party to be enrolled", type="reference" )
@SearchParamDefinition(name="subject", path="EnrollmentRequest.subject", description="The party to be enrolled", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Patient") } )
public static final String SP_SUBJECT = "subject";
/**
* <b>Fluent Client</b> search parameter constant for <b>subject</b>

View File

@ -29,21 +29,19 @@ package org.hl7.fhir.dstu3.model;
*/
// Generated on Sat, Jan 30, 2016 09:18-0500 for FHIR v1.3.0
// Generated on Fri, Apr 1, 2016 17:57-0400 for FHIR v1.4.0
import java.util.*;
import org.hl7.fhir.utilities.Utilities;
import org.hl7.fhir.dstu3.model.Enumerations.*;
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.Description;
import ca.uhn.fhir.model.api.annotation.Block;
import org.hl7.fhir.dstu3.exceptions.FHIRException;
import org.hl7.fhir.dstu3.model.Enumerations.*;
import org.hl7.fhir.instance.model.api.*;
import org.hl7.fhir.dstu3.exceptions.FHIRException;
/**
* This resource provides enrollment and plan details from the processing of an Enrollment resource.
*/
@ -696,12 +694,9 @@ public class EnrollmentResponse extends DomainResource {
}
public boolean isEmpty() {
return super.isEmpty() && (identifier == null || identifier.isEmpty()) && (request == null || request.isEmpty())
&& (outcome == null || outcome.isEmpty()) && (disposition == null || disposition.isEmpty())
&& (ruleset == null || ruleset.isEmpty()) && (originalRuleset == null || originalRuleset.isEmpty())
&& (created == null || created.isEmpty()) && (organization == null || organization.isEmpty())
&& (requestProvider == null || requestProvider.isEmpty()) && (requestOrganization == null || requestOrganization.isEmpty())
;
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( identifier, request, outcome
, disposition, ruleset, originalRuleset, created, organization, requestProvider, requestOrganization
);
}
@Override

View File

@ -1,6 +1,5 @@
package org.hl7.fhir.dstu3.model;
import java.io.Externalizable;
import java.io.IOException;
import java.io.ObjectInput;
import java.io.ObjectOutput;
@ -43,7 +42,7 @@ POSSIBILITY OF SUCH DAMAGE.
*
*/
@DatatypeDef(name = "code", isSpecialization = true)
public class Enumeration<T extends Enum<?>> extends PrimitiveType<T> implements IBaseEnumeration<T>, Externalizable {
public class Enumeration<T extends Enum<?>> extends PrimitiveType<T> implements IBaseEnumeration<T> {
private static final long serialVersionUID = 1L;
private EnumFactory<T> myEnumFactory;

View File

@ -29,7 +29,7 @@ package org.hl7.fhir.dstu3.model;
*/
// Generated on Sat, Jan 30, 2016 09:18-0500 for FHIR v1.3.0
// Generated on Fri, Apr 1, 2016 17:57-0400 for FHIR v1.4.0
import java.util.*;
@ -39,9 +39,8 @@ import ca.uhn.fhir.model.api.annotation.SearchParamDefinition;
import ca.uhn.fhir.model.api.annotation.Child;
import ca.uhn.fhir.model.api.annotation.Description;
import ca.uhn.fhir.model.api.annotation.Block;
import org.hl7.fhir.dstu3.exceptions.FHIRException;
import org.hl7.fhir.instance.model.api.*;
import org.hl7.fhir.dstu3.exceptions.FHIRException;
/**
* An association between a patient and an organization / healthcare provider(s) during which time encounters may occur. The managing organization assumes a level of responsibility for the patient during this time.
*/
@ -360,8 +359,7 @@ public class EpisodeOfCare extends DomainResource {
}
public boolean isEmpty() {
return super.isEmpty() && (status == null || status.isEmpty()) && (period == null || period.isEmpty())
;
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( status, period);
}
public String fhirType() {
@ -369,228 +367,6 @@ public class EpisodeOfCare extends DomainResource {
}
}
@Block()
public static class EpisodeOfCareCareTeamComponent extends BackboneElement implements IBaseBackboneElement {
/**
* The role this team member is taking within this episode of care.
*/
@Child(name = "role", type = {CodeableConcept.class}, order=1, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
@Description(shortDefinition="Role taken by this team member", formalDefinition="The role this team member is taking within this episode of care." )
protected List<CodeableConcept> role;
/**
* The period of time this practitioner is performing some role within the episode of care.
*/
@Child(name = "period", type = {Period.class}, order=2, min=0, max=1, modifier=false, summary=false)
@Description(shortDefinition="Period of time for this role", formalDefinition="The period of time this practitioner is performing some role within the episode of care." )
protected Period period;
/**
* The practitioner (or Organization) within the team.
*/
@Child(name = "member", type = {Practitioner.class, Organization.class}, order=3, min=0, max=1, modifier=false, summary=false)
@Description(shortDefinition="The practitioner (or Organization) within the team", formalDefinition="The practitioner (or Organization) within the team." )
protected Reference member;
/**
* The actual object that is the target of the reference (The practitioner (or Organization) within the team.)
*/
protected Resource memberTarget;
private static final long serialVersionUID = -437303089L;
/**
* Constructor
*/
public EpisodeOfCareCareTeamComponent() {
super();
}
/**
* @return {@link #role} (The role this team member is taking within this episode of care.)
*/
public List<CodeableConcept> getRole() {
if (this.role == null)
this.role = new ArrayList<CodeableConcept>();
return this.role;
}
public boolean hasRole() {
if (this.role == null)
return false;
for (CodeableConcept item : this.role)
if (!item.isEmpty())
return true;
return false;
}
/**
* @return {@link #role} (The role this team member is taking within this episode of care.)
*/
// syntactic sugar
public CodeableConcept addRole() { //3
CodeableConcept t = new CodeableConcept();
if (this.role == null)
this.role = new ArrayList<CodeableConcept>();
this.role.add(t);
return t;
}
// syntactic sugar
public EpisodeOfCareCareTeamComponent addRole(CodeableConcept t) { //3
if (t == null)
return this;
if (this.role == null)
this.role = new ArrayList<CodeableConcept>();
this.role.add(t);
return this;
}
/**
* @return {@link #period} (The period of time this practitioner is performing some role within the episode of care.)
*/
public Period getPeriod() {
if (this.period == null)
if (Configuration.errorOnAutoCreate())
throw new Error("Attempt to auto-create EpisodeOfCareCareTeamComponent.period");
else if (Configuration.doAutoCreate())
this.period = new Period(); // cc
return this.period;
}
public boolean hasPeriod() {
return this.period != null && !this.period.isEmpty();
}
/**
* @param value {@link #period} (The period of time this practitioner is performing some role within the episode of care.)
*/
public EpisodeOfCareCareTeamComponent setPeriod(Period value) {
this.period = value;
return this;
}
/**
* @return {@link #member} (The practitioner (or Organization) within the team.)
*/
public Reference getMember() {
if (this.member == null)
if (Configuration.errorOnAutoCreate())
throw new Error("Attempt to auto-create EpisodeOfCareCareTeamComponent.member");
else if (Configuration.doAutoCreate())
this.member = new Reference(); // cc
return this.member;
}
public boolean hasMember() {
return this.member != null && !this.member.isEmpty();
}
/**
* @param value {@link #member} (The practitioner (or Organization) within the team.)
*/
public EpisodeOfCareCareTeamComponent setMember(Reference value) {
this.member = value;
return this;
}
/**
* @return {@link #member} The actual object that is the target of the reference. The reference library doesn't populate this, but you can use it to hold the resource if you resolve it. (The practitioner (or Organization) within the team.)
*/
public Resource getMemberTarget() {
return this.memberTarget;
}
/**
* @param value {@link #member} The actual object that is the target of the reference. The reference library doesn't use these, but you can use it to hold the resource if you resolve it. (The practitioner (or Organization) within the team.)
*/
public EpisodeOfCareCareTeamComponent setMemberTarget(Resource value) {
this.memberTarget = value;
return this;
}
protected void listChildren(List<Property> childrenList) {
super.listChildren(childrenList);
childrenList.add(new Property("role", "CodeableConcept", "The role this team member is taking within this episode of care.", 0, java.lang.Integer.MAX_VALUE, role));
childrenList.add(new Property("period", "Period", "The period of time this practitioner is performing some role within the episode of care.", 0, java.lang.Integer.MAX_VALUE, period));
childrenList.add(new Property("member", "Reference(Practitioner|Organization)", "The practitioner (or Organization) within the team.", 0, java.lang.Integer.MAX_VALUE, member));
}
@Override
public void setProperty(String name, Base value) throws FHIRException {
if (name.equals("role"))
this.getRole().add(castToCodeableConcept(value));
else if (name.equals("period"))
this.period = castToPeriod(value); // Period
else if (name.equals("member"))
this.member = castToReference(value); // Reference
else
super.setProperty(name, value);
}
@Override
public Base addChild(String name) throws FHIRException {
if (name.equals("role")) {
return addRole();
}
else if (name.equals("period")) {
this.period = new Period();
return this.period;
}
else if (name.equals("member")) {
this.member = new Reference();
return this.member;
}
else
return super.addChild(name);
}
public EpisodeOfCareCareTeamComponent copy() {
EpisodeOfCareCareTeamComponent dst = new EpisodeOfCareCareTeamComponent();
copyValues(dst);
if (role != null) {
dst.role = new ArrayList<CodeableConcept>();
for (CodeableConcept i : role)
dst.role.add(i.copy());
};
dst.period = period == null ? null : period.copy();
dst.member = member == null ? null : member.copy();
return dst;
}
@Override
public boolean equalsDeep(Base other) {
if (!super.equalsDeep(other))
return false;
if (!(other instanceof EpisodeOfCareCareTeamComponent))
return false;
EpisodeOfCareCareTeamComponent o = (EpisodeOfCareCareTeamComponent) other;
return compareDeep(role, o.role, true) && compareDeep(period, o.period, true) && compareDeep(member, o.member, true)
;
}
@Override
public boolean equalsShallow(Base other) {
if (!super.equalsShallow(other))
return false;
if (!(other instanceof EpisodeOfCareCareTeamComponent))
return false;
EpisodeOfCareCareTeamComponent o = (EpisodeOfCareCareTeamComponent) other;
return true;
}
public boolean isEmpty() {
return super.isEmpty() && (role == null || role.isEmpty()) && (period == null || period.isEmpty())
&& (member == null || member.isEmpty());
}
public String fhirType() {
return "EpisodeOfCare.careTeam";
}
}
/**
@ -615,10 +391,10 @@ public class EpisodeOfCare extends DomainResource {
protected List<EpisodeOfCareStatusHistoryComponent> statusHistory;
/**
* A classification of the type of encounter; e.g. specialist referral, disease management, type of funded care.
* A classification of the type of episode of care; e.g. specialist referral, disease management, type of funded care.
*/
@Child(name = "type", type = {CodeableConcept.class}, order=3, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
@Description(shortDefinition="Type/class - e.g. specialist referral, disease management", formalDefinition="A classification of the type of encounter; e.g. specialist referral, disease management, type of funded care." )
@Description(shortDefinition="Type/class - e.g. specialist referral, disease management", formalDefinition="A classification of the type of episode of care; e.g. specialist referral, disease management, type of funded care." )
protected List<CodeableConcept> type;
/**
@ -691,11 +467,16 @@ public class EpisodeOfCare extends DomainResource {
/**
* The list of practitioners that may be facilitating this episode of care for specific purposes.
*/
@Child(name = "careTeam", type = {}, order=10, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
@Child(name = "team", type = {CareTeam.class}, order=10, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
@Description(shortDefinition="Other practitioners facilitating this episode of care", formalDefinition="The list of practitioners that may be facilitating this episode of care for specific purposes." )
protected List<EpisodeOfCareCareTeamComponent> careTeam;
protected List<Reference> team;
/**
* The actual objects that are the target of the reference (The list of practitioners that may be facilitating this episode of care for specific purposes.)
*/
protected List<CareTeam> teamTarget;
private static final long serialVersionUID = 1652653406L;
private static final long serialVersionUID = 922419354L;
/**
* Constructor
@ -839,7 +620,7 @@ public class EpisodeOfCare extends DomainResource {
}
/**
* @return {@link #type} (A classification of the type of encounter; e.g. specialist referral, disease management, type of funded care.)
* @return {@link #type} (A classification of the type of episode of care; e.g. specialist referral, disease management, type of funded care.)
*/
public List<CodeableConcept> getType() {
if (this.type == null)
@ -857,7 +638,7 @@ public class EpisodeOfCare extends DomainResource {
}
/**
* @return {@link #type} (A classification of the type of encounter; e.g. specialist referral, disease management, type of funded care.)
* @return {@link #type} (A classification of the type of episode of care; e.g. specialist referral, disease management, type of funded care.)
*/
// syntactic sugar
public CodeableConcept addType() { //3
@ -1157,58 +938,79 @@ public class EpisodeOfCare extends DomainResource {
}
/**
* @return {@link #careTeam} (The list of practitioners that may be facilitating this episode of care for specific purposes.)
* @return {@link #team} (The list of practitioners that may be facilitating this episode of care for specific purposes.)
*/
public List<EpisodeOfCareCareTeamComponent> getCareTeam() {
if (this.careTeam == null)
this.careTeam = new ArrayList<EpisodeOfCareCareTeamComponent>();
return this.careTeam;
public List<Reference> getTeam() {
if (this.team == null)
this.team = new ArrayList<Reference>();
return this.team;
}
public boolean hasCareTeam() {
if (this.careTeam == null)
public boolean hasTeam() {
if (this.team == null)
return false;
for (EpisodeOfCareCareTeamComponent item : this.careTeam)
for (Reference item : this.team)
if (!item.isEmpty())
return true;
return false;
}
/**
* @return {@link #careTeam} (The list of practitioners that may be facilitating this episode of care for specific purposes.)
* @return {@link #team} (The list of practitioners that may be facilitating this episode of care for specific purposes.)
*/
// syntactic sugar
public EpisodeOfCareCareTeamComponent addCareTeam() { //3
EpisodeOfCareCareTeamComponent t = new EpisodeOfCareCareTeamComponent();
if (this.careTeam == null)
this.careTeam = new ArrayList<EpisodeOfCareCareTeamComponent>();
this.careTeam.add(t);
public Reference addTeam() { //3
Reference t = new Reference();
if (this.team == null)
this.team = new ArrayList<Reference>();
this.team.add(t);
return t;
}
// syntactic sugar
public EpisodeOfCare addCareTeam(EpisodeOfCareCareTeamComponent t) { //3
public EpisodeOfCare addTeam(Reference t) { //3
if (t == null)
return this;
if (this.careTeam == null)
this.careTeam = new ArrayList<EpisodeOfCareCareTeamComponent>();
this.careTeam.add(t);
if (this.team == null)
this.team = new ArrayList<Reference>();
this.team.add(t);
return this;
}
/**
* @return {@link #team} (The actual objects that are the target of the reference. The reference library doesn't populate this, but you can use this to hold the resources if you resolvethemt. The list of practitioners that may be facilitating this episode of care for specific purposes.)
*/
public List<CareTeam> getTeamTarget() {
if (this.teamTarget == null)
this.teamTarget = new ArrayList<CareTeam>();
return this.teamTarget;
}
// syntactic sugar
/**
* @return {@link #team} (Add an actual object that is the target of the reference. The reference library doesn't use these, but you can use this to hold the resources if you resolvethemt. The list of practitioners that may be facilitating this episode of care for specific purposes.)
*/
public CareTeam addTeamTarget() {
CareTeam r = new CareTeam();
if (this.teamTarget == null)
this.teamTarget = new ArrayList<CareTeam>();
this.teamTarget.add(r);
return r;
}
protected void listChildren(List<Property> childrenList) {
super.listChildren(childrenList);
childrenList.add(new Property("identifier", "Identifier", "Identifier(s) by which this EpisodeOfCare is known.", 0, java.lang.Integer.MAX_VALUE, identifier));
childrenList.add(new Property("status", "code", "planned | waitlist | active | onhold | finished | cancelled.", 0, java.lang.Integer.MAX_VALUE, status));
childrenList.add(new Property("statusHistory", "", "The history of statuses that the EpisodeOfCare has been through (without requiring processing the history of the resource).", 0, java.lang.Integer.MAX_VALUE, statusHistory));
childrenList.add(new Property("type", "CodeableConcept", "A classification of the type of encounter; e.g. specialist referral, disease management, type of funded care.", 0, java.lang.Integer.MAX_VALUE, type));
childrenList.add(new Property("type", "CodeableConcept", "A classification of the type of episode of care; e.g. specialist referral, disease management, type of funded care.", 0, java.lang.Integer.MAX_VALUE, type));
childrenList.add(new Property("condition", "Reference(Condition)", "A list of conditions/problems/diagnoses that this episode of care is intended to be providing care for.", 0, java.lang.Integer.MAX_VALUE, condition));
childrenList.add(new Property("patient", "Reference(Patient)", "The patient that this EpisodeOfCare applies to.", 0, java.lang.Integer.MAX_VALUE, patient));
childrenList.add(new Property("managingOrganization", "Reference(Organization)", "The organization that has assumed the specific responsibilities for the specified duration.", 0, java.lang.Integer.MAX_VALUE, managingOrganization));
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("referralRequest", "Reference(ReferralRequest)", "Referral Request(s) that are fulfilled by this EpisodeOfCare, incoming referrals.", 0, java.lang.Integer.MAX_VALUE, referralRequest));
childrenList.add(new Property("careManager", "Reference(Practitioner)", "The practitioner that is the care manager/care co-ordinator for this patient.", 0, java.lang.Integer.MAX_VALUE, careManager));
childrenList.add(new Property("careTeam", "", "The list of practitioners that may be facilitating this episode of care for specific purposes.", 0, java.lang.Integer.MAX_VALUE, careTeam));
childrenList.add(new Property("team", "Reference(CareTeam)", "The list of practitioners that may be facilitating this episode of care for specific purposes.", 0, java.lang.Integer.MAX_VALUE, team));
}
@Override
@ -1233,8 +1035,8 @@ public class EpisodeOfCare extends DomainResource {
this.getReferralRequest().add(castToReference(value));
else if (name.equals("careManager"))
this.careManager = castToReference(value); // Reference
else if (name.equals("careTeam"))
this.getCareTeam().add((EpisodeOfCareCareTeamComponent) value);
else if (name.equals("team"))
this.getTeam().add(castToReference(value));
else
super.setProperty(name, value);
}
@ -1275,8 +1077,8 @@ public class EpisodeOfCare extends DomainResource {
this.careManager = new Reference();
return this.careManager;
}
else if (name.equals("careTeam")) {
return addCareTeam();
else if (name.equals("team")) {
return addTeam();
}
else
return super.addChild(name);
@ -1320,10 +1122,10 @@ public class EpisodeOfCare extends DomainResource {
dst.referralRequest.add(i.copy());
};
dst.careManager = careManager == null ? null : careManager.copy();
if (careTeam != null) {
dst.careTeam = new ArrayList<EpisodeOfCareCareTeamComponent>();
for (EpisodeOfCareCareTeamComponent i : careTeam)
dst.careTeam.add(i.copy());
if (team != null) {
dst.team = new ArrayList<Reference>();
for (Reference i : team)
dst.team.add(i.copy());
};
return dst;
}
@ -1343,7 +1145,7 @@ public class EpisodeOfCare extends DomainResource {
&& compareDeep(type, o.type, true) && compareDeep(condition, o.condition, true) && compareDeep(patient, o.patient, true)
&& compareDeep(managingOrganization, o.managingOrganization, true) && compareDeep(period, o.period, true)
&& compareDeep(referralRequest, o.referralRequest, true) && compareDeep(careManager, o.careManager, true)
&& compareDeep(careTeam, o.careTeam, true);
&& compareDeep(team, o.team, true);
}
@Override
@ -1357,12 +1159,9 @@ public class EpisodeOfCare extends DomainResource {
}
public boolean isEmpty() {
return super.isEmpty() && (identifier == null || identifier.isEmpty()) && (status == null || status.isEmpty())
&& (statusHistory == null || statusHistory.isEmpty()) && (type == null || type.isEmpty())
&& (condition == null || condition.isEmpty()) && (patient == null || patient.isEmpty()) && (managingOrganization == null || managingOrganization.isEmpty())
&& (period == null || period.isEmpty()) && (referralRequest == null || referralRequest.isEmpty())
&& (careManager == null || careManager.isEmpty()) && (careTeam == null || careTeam.isEmpty())
;
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( identifier, status, statusHistory
, type, condition, patient, managingOrganization, period, referralRequest, careManager
, team);
}
@Override
@ -1470,7 +1269,7 @@ public class EpisodeOfCare extends DomainResource {
* Path: <b>EpisodeOfCare.patient</b><br>
* </p>
*/
@SearchParamDefinition(name="patient", path="EpisodeOfCare.patient", description="Patient for this episode of care", type="reference" )
@SearchParamDefinition(name="patient", path="EpisodeOfCare.patient", description="Patient for this episode of care", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Patient") } )
public static final String SP_PATIENT = "patient";
/**
* <b>Fluent Client</b> search parameter constant for <b>patient</b>
@ -1514,32 +1313,6 @@ public class EpisodeOfCare extends DomainResource {
*/
public static final ca.uhn.fhir.model.api.Include INCLUDE_ORGANIZATION = new ca.uhn.fhir.model.api.Include("EpisodeOfCare:organization").toLocked();
/**
* Search parameter: <b>team-member</b>
* <p>
* Description: <b>A Practitioner or Organization allocated to the care team for this EpisodeOfCare</b><br>
* Type: <b>reference</b><br>
* Path: <b>EpisodeOfCare.careTeam.member</b><br>
* </p>
*/
@SearchParamDefinition(name="team-member", path="EpisodeOfCare.careTeam.member", description="A Practitioner or Organization allocated to the care team for this EpisodeOfCare", type="reference" )
public static final String SP_TEAM_MEMBER = "team-member";
/**
* <b>Fluent Client</b> search parameter constant for <b>team-member</b>
* <p>
* Description: <b>A Practitioner or Organization allocated to the care team for this EpisodeOfCare</b><br>
* Type: <b>reference</b><br>
* Path: <b>EpisodeOfCare.careTeam.member</b><br>
* </p>
*/
public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam TEAM_MEMBER = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_TEAM_MEMBER);
/**
* Constant for fluent queries to be used to add include statements. Specifies
* the path value of "<b>EpisodeOfCare:team-member</b>".
*/
public static final ca.uhn.fhir.model.api.Include INCLUDE_TEAM_MEMBER = new ca.uhn.fhir.model.api.Include("EpisodeOfCare:team-member").toLocked();
/**
* Search parameter: <b>type</b>
* <p>
@ -1568,7 +1341,7 @@ public class EpisodeOfCare extends DomainResource {
* Path: <b>EpisodeOfCare.careManager</b><br>
* </p>
*/
@SearchParamDefinition(name="care-manager", path="EpisodeOfCare.careManager", description="Care manager/care co-ordinator for the patient", type="reference" )
@SearchParamDefinition(name="care-manager", path="EpisodeOfCare.careManager", description="Care manager/care co-ordinator for the patient", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Practitioner") } )
public static final String SP_CARE_MANAGER = "care-manager";
/**
* <b>Fluent Client</b> search parameter constant for <b>care-manager</b>

View File

@ -29,21 +29,19 @@ package org.hl7.fhir.dstu3.model;
*/
// Generated on Sat, Jan 30, 2016 09:18-0500 for FHIR v1.3.0
// Generated on Fri, Apr 1, 2016 17:57-0400 for FHIR v1.4.0
import java.util.*;
import org.hl7.fhir.utilities.Utilities;
import org.hl7.fhir.dstu3.model.Enumerations.*;
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.Description;
import ca.uhn.fhir.model.api.annotation.Block;
import org.hl7.fhir.dstu3.exceptions.FHIRException;
import org.hl7.fhir.dstu3.model.Enumerations.*;
import org.hl7.fhir.instance.model.api.*;
import org.hl7.fhir.dstu3.exceptions.FHIRException;
/**
* Resource to define constraints on the Expansion of a FHIR ValueSet.
*/
@ -225,8 +223,7 @@ public class ExpansionProfile extends DomainResource {
}
public boolean isEmpty() {
return super.isEmpty() && (name == null || name.isEmpty()) && (telecom == null || telecom.isEmpty())
;
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( name, telecom);
}
public String fhirType() {
@ -368,8 +365,7 @@ public class ExpansionProfile extends DomainResource {
}
public boolean isEmpty() {
return super.isEmpty() && (include == null || include.isEmpty()) && (exclude == null || exclude.isEmpty())
;
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( include, exclude);
}
public String fhirType() {
@ -491,7 +487,7 @@ public class ExpansionProfile extends DomainResource {
}
public boolean isEmpty() {
return super.isEmpty() && (codeSystem == null || codeSystem.isEmpty());
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( codeSystem);
}
public String fhirType() {
@ -685,8 +681,7 @@ public class ExpansionProfile extends DomainResource {
}
public boolean isEmpty() {
return super.isEmpty() && (system == null || system.isEmpty()) && (version == null || version.isEmpty())
;
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( system, version);
}
public String fhirType() {
@ -808,7 +803,7 @@ public class ExpansionProfile extends DomainResource {
}
public boolean isEmpty() {
return super.isEmpty() && (codeSystem == null || codeSystem.isEmpty());
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( codeSystem);
}
public String fhirType() {
@ -1002,8 +997,7 @@ public class ExpansionProfile extends DomainResource {
}
public boolean isEmpty() {
return super.isEmpty() && (system == null || system.isEmpty()) && (version == null || version.isEmpty())
;
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( system, version);
}
public String fhirType() {
@ -1145,8 +1139,7 @@ public class ExpansionProfile extends DomainResource {
}
public boolean isEmpty() {
return super.isEmpty() && (include == null || include.isEmpty()) && (exclude == null || exclude.isEmpty())
;
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( include, exclude);
}
public String fhirType() {
@ -1268,7 +1261,7 @@ public class ExpansionProfile extends DomainResource {
}
public boolean isEmpty() {
return super.isEmpty() && (designation == null || designation.isEmpty());
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( designation);
}
public String fhirType() {
@ -1434,8 +1427,7 @@ public class ExpansionProfile extends DomainResource {
}
public boolean isEmpty() {
return super.isEmpty() && (language == null || language.isEmpty()) && (use == null || use.isEmpty())
;
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( language, use);
}
public String fhirType() {
@ -1557,7 +1549,7 @@ public class ExpansionProfile extends DomainResource {
}
public boolean isEmpty() {
return super.isEmpty() && (designation == null || designation.isEmpty());
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( designation);
}
public String fhirType() {
@ -1723,8 +1715,7 @@ public class ExpansionProfile extends DomainResource {
}
public boolean isEmpty() {
return super.isEmpty() && (language == null || language.isEmpty()) && (use == null || use.isEmpty())
;
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( language, use);
}
public String fhirType() {
@ -2964,16 +2955,10 @@ public class ExpansionProfile extends DomainResource {
}
public boolean isEmpty() {
return super.isEmpty() && (url == null || url.isEmpty()) && (identifier == null || identifier.isEmpty())
&& (version == null || version.isEmpty()) && (name == null || name.isEmpty()) && (status == null || status.isEmpty())
&& (experimental == null || experimental.isEmpty()) && (publisher == null || publisher.isEmpty())
&& (contact == null || contact.isEmpty()) && (date == null || date.isEmpty()) && (description == null || description.isEmpty())
&& (codeSystem == null || codeSystem.isEmpty()) && (includeDesignations == null || includeDesignations.isEmpty())
&& (designation == null || designation.isEmpty()) && (includeDefinition == null || includeDefinition.isEmpty())
&& (includeInactive == null || includeInactive.isEmpty()) && (excludeNested == null || excludeNested.isEmpty())
&& (excludeNotForUI == null || excludeNotForUI.isEmpty()) && (excludePostCoordinated == null || excludePostCoordinated.isEmpty())
&& (displayLanguage == null || displayLanguage.isEmpty()) && (limitedExpansion == null || limitedExpansion.isEmpty())
;
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( url, identifier, version, name
, status, experimental, publisher, contact, date, description, codeSystem, includeDesignations
, designation, includeDefinition, includeInactive, excludeNested, excludeNotForUI, excludePostCoordinated
, displayLanguage, limitedExpansion);
}
@Override

View File

@ -37,82 +37,105 @@ public class ExpressionNode {
}
}
public enum Function {
Empty, Item, Where, All, Any, First, Last, Tail, Count, AsInteger, StartsWith, Length, Matches, Substring, Contains, Distinct, Not, Resolve, Extension, Log;
Empty, Not, Exists, SubsetOf, SupersetOf, IsDistinct, Distinct, Count, Where, Select, All, Repeat, Item /*implicit from name[]*/, As, Is, Single,
First, Last, Tail, Skip, Take, Iif, ToInteger, ToDecimal, ToString, Substring, StartsWith, EndsWith, Matches, ReplaceMatches, Contains, Replace, Length,
Children, Descendents, MemberOf, Trace, Today, Now, Resolve, Extension;
public static Function fromCode(String name) {
if (name.equals("empty"))
return Function.Empty;
if (name.equals("item"))
return Function.Item;
if (name.equals("where"))
return Function.Where;
if (name.equals("all"))
return Function.All;
if (name.equals("any"))
return Function.Any;
if (name.equals("first"))
return Function.First;
if (name.equals("last"))
return Function.Last;
if (name.equals("tail"))
return Function.Tail;
if (name.equals("count"))
return Function.Count;
if (name.equals("asInteger"))
return Function.AsInteger;
if (name.equals("startsWith"))
return Function.StartsWith;
if (name.equals("length"))
return Function.Length;
if (name.equals("matches"))
return Function.Matches;
if (name.equals("contains"))
return Function.Contains;
if (name.equals("substring"))
return Function.Substring;
if (name.equals("distinct"))
return Function.Distinct;
if (name.equals("not"))
return Function.Not;
if (name.equals("resolve"))
return Function.Resolve;
if (name.equals("extension"))
return Function.Extension;
if (name.equals("log"))
return Function.Log;
if (name.equals("empty")) return Function.Empty;
if (name.equals("not")) return Function.Not;
if (name.equals("exists")) return Function.Exists;
if (name.equals("subsetOf")) return Function.SubsetOf;
if (name.equals("supersetOf")) return Function.SupersetOf;
if (name.equals("isDistinct")) return Function.IsDistinct;
if (name.equals("distinct")) return Function.Distinct;
if (name.equals("count")) return Function.Count;
if (name.equals("where")) return Function.Where;
if (name.equals("select")) return Function.Select;
if (name.equals("all")) return Function.All;
if (name.equals("repeat")) return Function.Repeat;
if (name.equals("item")) return Function.Item;
if (name.equals("as")) return Function.As;
if (name.equals("is")) return Function.Is;
if (name.equals("single")) return Function.Single;
if (name.equals("first")) return Function.First;
if (name.equals("last")) return Function.Last;
if (name.equals("tail")) return Function.Tail;
if (name.equals("skip")) return Function.Skip;
if (name.equals("take")) return Function.Take;
if (name.equals("iif")) return Function.Iif;
if (name.equals("toInteger")) return Function.ToInteger;
if (name.equals("toDecimal")) return Function.ToDecimal;
if (name.equals("toString")) return Function.ToString;
if (name.equals("substring")) return Function.Substring;
if (name.equals("startsWith")) return Function.StartsWith;
if (name.equals("endsWith")) return Function.EndsWith;
if (name.equals("matches")) return Function.Matches;
if (name.equals("replaceMatches")) return Function.ReplaceMatches;
if (name.equals("contains")) return Function.Contains;
if (name.equals("replace")) return Function.Replace;
if (name.equals("length")) return Function.Length;
if (name.equals("children")) return Function.Children;
if (name.equals("descendents")) return Function.Descendents;
if (name.equals("memberOf")) return Function.MemberOf;
if (name.equals("trace")) return Function.Trace;
if (name.equals("today")) return Function.Today;
if (name.equals("now")) return Function.Now;
if (name.equals("resolve")) return Function.Resolve;
if (name.equals("extension")) return Function.Extension;
return null;
}
public String toCode() {
switch (this) {
case Empty : return "empty";
case Item : return "item";
case Not : return "not";
case Exists : return "exists";
case SubsetOf : return "subsetOf";
case SupersetOf : return "supersetOf";
case IsDistinct : return "isDistinct";
case Distinct : return "distinct";
case Count : return "count";
case Where : return "where";
case Select : return "select";
case All : return "all";
case Any : return "any";
case Repeat : return "repeat";
case Item : return "item";
case As : return "as";
case Is : return "is";
case Single : return "single";
case First : return "first";
case Last : return "last";
case Tail : return "tail";
case Count : return "count";
case AsInteger : return "asInteger";
case Skip : return "skip";
case Take : return "take";
case Iif : return "iif";
case ToInteger : return "toInteger";
case ToDecimal : return "toDecimal";
case ToString : return "toString";
case Substring : return "substring";
case StartsWith : return "startsWith";
case Length : return "length";
case EndsWith : return "endsWith";
case Matches : return "matches";
case ReplaceMatches : return "replaceMatches";
case Contains : return "contains";
case Substring : return "substring";
case Distinct : return "distinct";
case Not : return "not";
case Replace : return "replace";
case Length : return "length";
case Children : return "children";
case Descendents : return "descendents";
case MemberOf : return "memberOf";
case Trace : return "trace";
case Today : return "today";
case Now : return "now";
case Resolve : return "resolve";
case Extension : return "extension";
case Log : return "log";
default: return "??";
}
}
}
public enum Operation {
Equals, Equivalent, NotEquals, NotEquivalent, LessThen, Greater, LessOrEqual, GreaterOrEqual, Union, In, Or, And, Xor, Implies, Plus, Minus, Concatenate;
Equals, Equivalent, NotEquals, NotEquivalent, LessThen, Greater, LessOrEqual, GreaterOrEqual, Is, As, Union, Or, And, Xor, Implies,
Times, DivideBy, Plus, Minus, Div, Mod, In;
public static Operation fromCode(String name) {
if (Utilities.noString(name))
@ -135,22 +158,32 @@ public class ExpressionNode {
return Operation.LessOrEqual;
if (name.equals("|"))
return Operation.Union;
if (name.equals("in"))
return Operation.In;
if (name.equals("or"))
return Operation.Or;
if (name.equals("and"))
return Operation.And;
if (name.equals("xor"))
return Operation.Xor;
if (name.equals("is"))
return Operation.Is;
if (name.equals("as"))
return Operation.As;
if (name.equals("*"))
return Operation.Times;
if (name.equals("/"))
return Operation.DivideBy;
if (name.equals("+"))
return Operation.Plus;
if (name.equals("-"))
return Operation.Minus;
if (name.equals("&"))
return Operation.Concatenate;
if (name.equals("implies"))
return Operation.Implies;
if (name.equals("div"))
return Operation.Div;
if (name.equals("mod"))
return Operation.Mod;
if (name.equals("in"))
return Operation.In;
return null;
}
@ -165,14 +198,19 @@ public class ExpressionNode {
case GreaterOrEqual : return ">=";
case LessOrEqual : return "<=";
case Union : return "|";
case In : return "in";
case Or : return "or";
case And : return "and";
case Xor : return "xor";
case Times : return "*";
case DivideBy : return "/";
case Plus : return "+";
case Minus : return "-";
case Concatenate : return "&";
case Implies : return "implies";
case Is : return "is";
case As : return "as";
case Div : return "div";
case Mod : return "mod";
case In : return "in";
default: return "??";
}
}
@ -451,5 +489,4 @@ public class ExpressionNode {
this.opTypes = opTypes;
}
}

View File

@ -29,7 +29,7 @@ package org.hl7.fhir.dstu3.model;
*/
// Generated on Sat, Jan 30, 2016 09:18-0500 for FHIR v1.3.0
// Generated on Fri, Apr 1, 2016 17:57-0400 for FHIR v1.4.0
import java.util.*;
@ -38,9 +38,8 @@ import ca.uhn.fhir.model.api.annotation.Child;
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.dstu3.exceptions.FHIRException;
import org.hl7.fhir.instance.model.api.*;
import org.hl7.fhir.dstu3.exceptions.FHIRException;
/**
* Optional Extensions Element - found in all resources.
*/
@ -61,7 +60,7 @@ public class Extension extends BaseExtension implements IBaseExtension<Extension
@Description(shortDefinition="Value of extension", formalDefinition="Value of extension - may be a resource or one of a constrained set of the data types (see Extensibility in the spec for list)." )
protected org.hl7.fhir.dstu3.model.Type value;
private static final long serialVersionUID = -1764879552L;
private static final long serialVersionUID = 1240831878L;
/**
* Constructor
@ -352,8 +351,7 @@ public class Extension extends BaseExtension implements IBaseExtension<Extension
}
public boolean isEmpty() {
return super.isEmpty() && (url == null || url.isEmpty()) && (value == null || value.isEmpty())
;
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( url, value);
}

View File

@ -29,21 +29,19 @@ package org.hl7.fhir.dstu3.model;
*/
// Generated on Sat, Jan 30, 2016 09:18-0500 for FHIR v1.3.0
// Generated on Fri, Apr 1, 2016 17:57-0400 for FHIR v1.4.0
import java.util.*;
import org.hl7.fhir.utilities.Utilities;
import org.hl7.fhir.dstu3.model.Enumerations.*;
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.Description;
import ca.uhn.fhir.model.api.annotation.Block;
import org.hl7.fhir.dstu3.exceptions.FHIRException;
import org.hl7.fhir.dstu3.model.Enumerations.*;
import org.hl7.fhir.instance.model.api.*;
import org.hl7.fhir.dstu3.exceptions.FHIRException;
/**
* Significant health events and conditions for a person related to the patient relevant in the context of care for the patient.
*/
@ -447,8 +445,7 @@ public class FamilyMemberHistory extends DomainResource {
}
public boolean isEmpty() {
return super.isEmpty() && (code == null || code.isEmpty()) && (outcome == null || outcome.isEmpty())
&& (onset == null || onset.isEmpty()) && (note == null || note.isEmpty());
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( code, outcome, onset, note);
}
public String fhirType() {
@ -1317,11 +1314,8 @@ public class FamilyMemberHistory extends DomainResource {
}
public boolean isEmpty() {
return super.isEmpty() && (identifier == null || identifier.isEmpty()) && (patient == null || patient.isEmpty())
&& (date == null || date.isEmpty()) && (status == null || status.isEmpty()) && (name == null || name.isEmpty())
&& (relationship == null || relationship.isEmpty()) && (gender == null || gender.isEmpty())
&& (born == null || born.isEmpty()) && (age == null || age.isEmpty()) && (deceased == null || deceased.isEmpty())
&& (note == null || note.isEmpty()) && (condition == null || condition.isEmpty());
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( identifier, patient, date, status
, name, relationship, gender, born, age, deceased, note, condition);
}
@Override
@ -1417,7 +1411,7 @@ public class FamilyMemberHistory extends DomainResource {
* Path: <b>FamilyMemberHistory.patient</b><br>
* </p>
*/
@SearchParamDefinition(name="patient", path="FamilyMemberHistory.patient", description="The identity of a subject to list family member history items for", type="reference" )
@SearchParamDefinition(name="patient", path="FamilyMemberHistory.patient", description="The identity of a subject to list family member history items for", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Patient") } )
public static final String SP_PATIENT = "patient";
/**
* <b>Fluent Client</b> search parameter constant for <b>patient</b>

View File

@ -29,7 +29,7 @@ package org.hl7.fhir.dstu3.model;
*/
// Generated on Sat, Jan 30, 2016 09:18-0500 for FHIR v1.3.0
// Generated on Fri, Apr 1, 2016 17:57-0400 for FHIR v1.4.0
import java.util.*;
@ -39,9 +39,8 @@ import ca.uhn.fhir.model.api.annotation.SearchParamDefinition;
import ca.uhn.fhir.model.api.annotation.Child;
import ca.uhn.fhir.model.api.annotation.Description;
import ca.uhn.fhir.model.api.annotation.Block;
import org.hl7.fhir.dstu3.exceptions.FHIRException;
import org.hl7.fhir.instance.model.api.*;
import org.hl7.fhir.dstu3.exceptions.FHIRException;
/**
* Prospective warnings of potential issues when providing care to the patient.
*/
@ -640,10 +639,8 @@ public class Flag extends DomainResource {
}
public boolean isEmpty() {
return super.isEmpty() && (identifier == null || identifier.isEmpty()) && (category == null || category.isEmpty())
&& (status == null || status.isEmpty()) && (period == null || period.isEmpty()) && (subject == null || subject.isEmpty())
&& (encounter == null || encounter.isEmpty()) && (author == null || author.isEmpty()) && (code == null || code.isEmpty())
;
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( identifier, category, status
, period, subject, encounter, author, code);
}
@Override
@ -705,7 +702,7 @@ public class Flag extends DomainResource {
* Path: <b>Flag.subject</b><br>
* </p>
*/
@SearchParamDefinition(name="patient", path="Flag.subject", description="The identity of a subject to list flags for", type="reference" )
@SearchParamDefinition(name="patient", path="Flag.subject", description="The identity of a subject to list flags for", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Patient") } )
public static final String SP_PATIENT = "patient";
/**
* <b>Fluent Client</b> search parameter constant for <b>patient</b>
@ -731,7 +728,7 @@ public class Flag extends DomainResource {
* Path: <b>Flag.author</b><br>
* </p>
*/
@SearchParamDefinition(name="author", path="Flag.author", description="Flag creator", type="reference" )
@SearchParamDefinition(name="author", path="Flag.author", description="Flag creator", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Device"), @ca.uhn.fhir.model.api.annotation.Compartment(name="Practitioner") } )
public static final String SP_AUTHOR = "author";
/**
* <b>Fluent Client</b> search parameter constant for <b>author</b>

View File

@ -29,7 +29,7 @@ package org.hl7.fhir.dstu3.model;
*/
// Generated on Sat, Jan 30, 2016 09:18-0500 for FHIR v1.3.0
// Generated on Fri, Apr 1, 2016 17:57-0400 for FHIR v1.4.0
import java.util.*;
@ -39,9 +39,8 @@ import ca.uhn.fhir.model.api.annotation.SearchParamDefinition;
import ca.uhn.fhir.model.api.annotation.Child;
import ca.uhn.fhir.model.api.annotation.Description;
import ca.uhn.fhir.model.api.annotation.Block;
import org.hl7.fhir.dstu3.exceptions.FHIRException;
import org.hl7.fhir.instance.model.api.*;
import org.hl7.fhir.dstu3.exceptions.FHIRException;
/**
* Describes the intended objective(s) for a patient, group or organization care, for example, weight loss, restoring an activity of daily living, obtaining herd immunity via immunization, meeting a process improvement objective, etc.
*/
@ -365,7 +364,7 @@ public class Goal extends DomainResource {
}
public boolean isEmpty() {
return super.isEmpty() && (result == null || result.isEmpty());
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( result);
}
public String fhirType() {
@ -1259,12 +1258,9 @@ public class Goal extends DomainResource {
}
public boolean isEmpty() {
return super.isEmpty() && (identifier == null || identifier.isEmpty()) && (subject == null || subject.isEmpty())
&& (start == null || start.isEmpty()) && (target == null || target.isEmpty()) && (category == null || category.isEmpty())
&& (description == null || description.isEmpty()) && (status == null || status.isEmpty())
&& (statusDate == null || statusDate.isEmpty()) && (statusReason == null || statusReason.isEmpty())
&& (author == null || author.isEmpty()) && (priority == null || priority.isEmpty()) && (addresses == null || addresses.isEmpty())
&& (note == null || note.isEmpty()) && (outcome == null || outcome.isEmpty());
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( identifier, subject, start, target
, category, description, status, statusDate, statusReason, author, priority, addresses
, note, outcome);
}
@Override
@ -1300,7 +1296,7 @@ public class Goal extends DomainResource {
* Path: <b>Goal.subject</b><br>
* </p>
*/
@SearchParamDefinition(name="patient", path="Goal.subject", description="Who this goal is intended for", type="reference" )
@SearchParamDefinition(name="patient", path="Goal.subject", description="Who this goal is intended for", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Patient") } )
public static final String SP_PATIENT = "patient";
/**
* <b>Fluent Client</b> search parameter constant for <b>patient</b>

View File

@ -29,7 +29,7 @@ package org.hl7.fhir.dstu3.model;
*/
// Generated on Sat, Jan 30, 2016 09:18-0500 for FHIR v1.3.0
// Generated on Fri, Apr 1, 2016 17:57-0400 for FHIR v1.4.0
import java.util.*;
@ -39,9 +39,8 @@ import ca.uhn.fhir.model.api.annotation.SearchParamDefinition;
import ca.uhn.fhir.model.api.annotation.Child;
import ca.uhn.fhir.model.api.annotation.Description;
import ca.uhn.fhir.model.api.annotation.Block;
import org.hl7.fhir.dstu3.exceptions.FHIRException;
import org.hl7.fhir.instance.model.api.*;
import org.hl7.fhir.dstu3.exceptions.FHIRException;
/**
* Represents a defined collection of entities that may be discussed or acted upon collectively but which are not expected to act collectively and are not formally or legally recognized; i.e. a collection of entities that isn't an Organization.
*/
@ -499,8 +498,8 @@ public class Group extends DomainResource {
}
public boolean isEmpty() {
return super.isEmpty() && (code == null || code.isEmpty()) && (value == null || value.isEmpty())
&& (exclude == null || exclude.isEmpty()) && (period == null || period.isEmpty());
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( code, value, exclude, period
);
}
public String fhirType() {
@ -730,8 +729,7 @@ public class Group extends DomainResource {
}
public boolean isEmpty() {
return super.isEmpty() && (entity == null || entity.isEmpty()) && (period == null || period.isEmpty())
&& (inactive == null || inactive.isEmpty());
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( entity, period, inactive);
}
public String fhirType() {
@ -1327,10 +1325,8 @@ public class Group extends DomainResource {
}
public boolean isEmpty() {
return super.isEmpty() && (identifier == null || identifier.isEmpty()) && (type == null || type.isEmpty())
&& (actual == null || actual.isEmpty()) && (active == null || active.isEmpty()) && (code == null || code.isEmpty())
&& (name == null || name.isEmpty()) && (quantity == null || quantity.isEmpty()) && (characteristic == null || characteristic.isEmpty())
&& (member == null || member.isEmpty());
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( identifier, type, actual, active
, code, name, quantity, characteristic, member);
}
@Override
@ -1426,7 +1422,7 @@ public class Group extends DomainResource {
* Path: <b>Group.member.entity</b><br>
* </p>
*/
@SearchParamDefinition(name="member", path="Group.member.entity", description="Reference to the group member", type="reference" )
@SearchParamDefinition(name="member", path="Group.member.entity", description="Reference to the group member", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Device"), @ca.uhn.fhir.model.api.annotation.Compartment(name="Patient"), @ca.uhn.fhir.model.api.annotation.Compartment(name="Practitioner") } )
public static final String SP_MEMBER = "member";
/**
* <b>Fluent Client</b> search parameter constant for <b>member</b>

View File

@ -29,7 +29,7 @@ package org.hl7.fhir.dstu3.model;
*/
// Generated on Sat, Jan 30, 2016 09:18-0500 for FHIR v1.3.0
// Generated on Fri, Apr 1, 2016 17:57-0400 for FHIR v1.4.0
import java.util.*;
@ -39,9 +39,8 @@ import ca.uhn.fhir.model.api.annotation.SearchParamDefinition;
import ca.uhn.fhir.model.api.annotation.Child;
import ca.uhn.fhir.model.api.annotation.Description;
import ca.uhn.fhir.model.api.annotation.Block;
import org.hl7.fhir.dstu3.exceptions.FHIRException;
import org.hl7.fhir.instance.model.api.*;
import org.hl7.fhir.dstu3.exceptions.FHIRException;
/**
* The details of a healthcare service available at a location.
*/
@ -215,176 +214,6 @@ public class HealthcareService extends DomainResource {
}
}
@Block()
public static class ServiceTypeComponent extends BackboneElement implements IBaseBackboneElement {
/**
* The specific type of service being delivered or performed.
*/
@Child(name = "type", type = {CodeableConcept.class}, order=1, min=1, max=1, modifier=false, summary=true)
@Description(shortDefinition="Type of service delivered or performed", formalDefinition="The specific type of service being delivered or performed." )
protected CodeableConcept type;
/**
* Collection of specialties handled by the service site. This is more of a medical term.
*/
@Child(name = "specialty", type = {CodeableConcept.class}, order=2, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
@Description(shortDefinition="Specialties handled by the Service Site", formalDefinition="Collection of specialties handled by the service site. This is more of a medical term." )
protected List<CodeableConcept> specialty;
private static final long serialVersionUID = 1703986174L;
/**
* Constructor
*/
public ServiceTypeComponent() {
super();
}
/**
* Constructor
*/
public ServiceTypeComponent(CodeableConcept type) {
super();
this.type = type;
}
/**
* @return {@link #type} (The specific type of service being delivered or performed.)
*/
public CodeableConcept getType() {
if (this.type == null)
if (Configuration.errorOnAutoCreate())
throw new Error("Attempt to auto-create ServiceTypeComponent.type");
else if (Configuration.doAutoCreate())
this.type = new CodeableConcept(); // cc
return this.type;
}
public boolean hasType() {
return this.type != null && !this.type.isEmpty();
}
/**
* @param value {@link #type} (The specific type of service being delivered or performed.)
*/
public ServiceTypeComponent setType(CodeableConcept value) {
this.type = value;
return this;
}
/**
* @return {@link #specialty} (Collection of specialties handled by the service site. This is more of a medical term.)
*/
public List<CodeableConcept> getSpecialty() {
if (this.specialty == null)
this.specialty = new ArrayList<CodeableConcept>();
return this.specialty;
}
public boolean hasSpecialty() {
if (this.specialty == null)
return false;
for (CodeableConcept item : this.specialty)
if (!item.isEmpty())
return true;
return false;
}
/**
* @return {@link #specialty} (Collection of specialties handled by the service site. This is more of a medical term.)
*/
// syntactic sugar
public CodeableConcept addSpecialty() { //3
CodeableConcept t = new CodeableConcept();
if (this.specialty == null)
this.specialty = new ArrayList<CodeableConcept>();
this.specialty.add(t);
return t;
}
// syntactic sugar
public ServiceTypeComponent addSpecialty(CodeableConcept t) { //3
if (t == null)
return this;
if (this.specialty == null)
this.specialty = new ArrayList<CodeableConcept>();
this.specialty.add(t);
return this;
}
protected void listChildren(List<Property> childrenList) {
super.listChildren(childrenList);
childrenList.add(new Property("type", "CodeableConcept", "The specific type of service being delivered or performed.", 0, java.lang.Integer.MAX_VALUE, type));
childrenList.add(new Property("specialty", "CodeableConcept", "Collection of specialties handled by the service site. This is more of a medical term.", 0, java.lang.Integer.MAX_VALUE, specialty));
}
@Override
public void setProperty(String name, Base value) throws FHIRException {
if (name.equals("type"))
this.type = castToCodeableConcept(value); // CodeableConcept
else if (name.equals("specialty"))
this.getSpecialty().add(castToCodeableConcept(value));
else
super.setProperty(name, value);
}
@Override
public Base addChild(String name) throws FHIRException {
if (name.equals("type")) {
this.type = new CodeableConcept();
return this.type;
}
else if (name.equals("specialty")) {
return addSpecialty();
}
else
return super.addChild(name);
}
public ServiceTypeComponent copy() {
ServiceTypeComponent dst = new ServiceTypeComponent();
copyValues(dst);
dst.type = type == null ? null : type.copy();
if (specialty != null) {
dst.specialty = new ArrayList<CodeableConcept>();
for (CodeableConcept i : specialty)
dst.specialty.add(i.copy());
};
return dst;
}
@Override
public boolean equalsDeep(Base other) {
if (!super.equalsDeep(other))
return false;
if (!(other instanceof ServiceTypeComponent))
return false;
ServiceTypeComponent o = (ServiceTypeComponent) other;
return compareDeep(type, o.type, true) && compareDeep(specialty, o.specialty, true);
}
@Override
public boolean equalsShallow(Base other) {
if (!super.equalsShallow(other))
return false;
if (!(other instanceof ServiceTypeComponent))
return false;
ServiceTypeComponent o = (ServiceTypeComponent) other;
return true;
}
public boolean isEmpty() {
return super.isEmpty() && (type == null || type.isEmpty()) && (specialty == null || specialty.isEmpty())
;
}
public String fhirType() {
return "HealthcareService.serviceType";
}
}
@Block()
public static class HealthcareServiceAvailableTimeComponent extends BackboneElement implements IBaseBackboneElement {
/**
@ -698,9 +527,8 @@ public class HealthcareService extends DomainResource {
}
public boolean isEmpty() {
return super.isEmpty() && (daysOfWeek == null || daysOfWeek.isEmpty()) && (allDay == null || allDay.isEmpty())
&& (availableStartTime == null || availableStartTime.isEmpty()) && (availableEndTime == null || availableEndTime.isEmpty())
;
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( daysOfWeek, allDay, availableStartTime
, availableEndTime);
}
public String fhirType() {
@ -870,8 +698,7 @@ public class HealthcareService extends DomainResource {
}
public boolean isEmpty() {
return super.isEmpty() && (description == null || description.isEmpty()) && (during == null || during.isEmpty())
;
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( description, during);
}
public String fhirType() {
@ -908,63 +735,70 @@ public class HealthcareService extends DomainResource {
protected CodeableConcept serviceCategory;
/**
* A specific type of service that may be delivered or performed.
* The specific type of service that may be delivered or performed.
*/
@Child(name = "serviceType", type = {}, order=3, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
@Description(shortDefinition="Specific service delivered or performed", formalDefinition="A specific type of service that may be delivered or performed." )
protected List<ServiceTypeComponent> serviceType;
@Child(name = "serviceType", type = {CodeableConcept.class}, order=3, 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." )
protected List<CodeableConcept> serviceType;
/**
* The location where this healthcare service may be provided.
* Collection of specialties handled by the service site. This is more of a medical term.
*/
@Child(name = "location", type = {Location.class}, order=4, min=1, max=1, modifier=false, summary=true)
@Description(shortDefinition="Location where service may be provided", formalDefinition="The location where this healthcare service may be provided." )
protected Reference location;
@Child(name = "specialty", type = {CodeableConcept.class}, order=4, 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." )
protected List<CodeableConcept> specialty;
/**
* The actual object that is the target of the reference (The location where this healthcare service may be provided.)
* The location(s) where this healthcare service may be provided.
*/
protected Location locationTarget;
@Child(name = "location", type = {Location.class}, order=5, 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;
/**
* The actual objects that are the target of the reference (The location(s) where this healthcare service may be provided.)
*/
protected List<Location> locationTarget;
/**
* Further description of the service as it would be presented to a consumer while searching.
*/
@Child(name = "serviceName", type = {StringType.class}, order=5, min=0, max=1, modifier=false, summary=true)
@Child(name = "serviceName", type = {StringType.class}, order=6, 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=6, min=0, max=1, modifier=false, summary=true)
@Child(name = "comment", type = {StringType.class}, order=7, 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=7, min=0, max=1, modifier=false, summary=false)
@Child(name = "extraDetails", type = {StringType.class}, order=8, 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=8, min=0, max=1, modifier=false, summary=true)
@Child(name = "photo", type = {Attachment.class}, order=9, 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=9, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
@Child(name = "telecom", type = {ContactPoint.class}, order=10, 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=10, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
@Child(name = "coverageArea", type = {Location.class}, order=11, 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;
/**
@ -976,81 +810,81 @@ 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=11, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
@Child(name = "serviceProvisionCode", type = {CodeableConcept.class}, order=12, 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." )
protected List<CodeableConcept> serviceProvisionCode;
/**
* 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=12, min=0, max=1, modifier=false, summary=false)
@Child(name = "eligibility", type = {CodeableConcept.class}, order=13, 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=13, min=0, max=1, modifier=false, summary=false)
@Child(name = "eligibilityNote", type = {StringType.class}, order=14, 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=14, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
@Child(name = "programName", type = {StringType.class}, order=15, 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=15, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
@Child(name = "characteristic", type = {CodeableConcept.class}, order=16, 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=16, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
@Child(name = "referralMethod", type = {CodeableConcept.class}, order=17, 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." )
protected List<CodeableConcept> referralMethod;
/**
* 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=17, min=0, max=1, modifier=false, summary=false)
@Child(name = "publicKey", type = {StringType.class}, order=18, 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=18, min=0, max=1, modifier=false, summary=false)
@Child(name = "appointmentRequired", type = {BooleanType.class}, order=19, 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=19, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
@Child(name = "availableTime", type = {}, order=20, 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=20, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
@Child(name = "notAvailable", type = {}, order=21, 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=21, min=0, max=1, modifier=false, summary=false)
@Child(name = "availabilityExceptions", type = {StringType.class}, order=22, 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 = 683771126L;
private static final long serialVersionUID = -874217100L;
/**
* Constructor
@ -1059,14 +893,6 @@ public class HealthcareService extends DomainResource {
super();
}
/**
* Constructor
*/
public HealthcareService(Reference location) {
super();
this.location = location;
}
/**
* @return {@link #identifier} (External identifiers for this item.)
*/
@ -1176,87 +1002,144 @@ public class HealthcareService extends DomainResource {
}
/**
* @return {@link #serviceType} (A specific type of service that may be delivered or performed.)
* @return {@link #serviceType} (The specific type of service that may be delivered or performed.)
*/
public List<ServiceTypeComponent> getServiceType() {
public List<CodeableConcept> getServiceType() {
if (this.serviceType == null)
this.serviceType = new ArrayList<ServiceTypeComponent>();
this.serviceType = new ArrayList<CodeableConcept>();
return this.serviceType;
}
public boolean hasServiceType() {
if (this.serviceType == null)
return false;
for (ServiceTypeComponent item : this.serviceType)
for (CodeableConcept item : this.serviceType)
if (!item.isEmpty())
return true;
return false;
}
/**
* @return {@link #serviceType} (A specific type of service that may be delivered or performed.)
* @return {@link #serviceType} (The specific type of service that may be delivered or performed.)
*/
// syntactic sugar
public ServiceTypeComponent addServiceType() { //3
ServiceTypeComponent t = new ServiceTypeComponent();
public CodeableConcept addServiceType() { //3
CodeableConcept t = new CodeableConcept();
if (this.serviceType == null)
this.serviceType = new ArrayList<ServiceTypeComponent>();
this.serviceType = new ArrayList<CodeableConcept>();
this.serviceType.add(t);
return t;
}
// syntactic sugar
public HealthcareService addServiceType(ServiceTypeComponent t) { //3
public HealthcareService addServiceType(CodeableConcept t) { //3
if (t == null)
return this;
if (this.serviceType == null)
this.serviceType = new ArrayList<ServiceTypeComponent>();
this.serviceType = new ArrayList<CodeableConcept>();
this.serviceType.add(t);
return this;
}
/**
* @return {@link #location} (The location where this healthcare service may be provided.)
* @return {@link #specialty} (Collection of specialties handled by the service site. This is more of a medical term.)
*/
public Reference getLocation() {
public List<CodeableConcept> getSpecialty() {
if (this.specialty == null)
this.specialty = new ArrayList<CodeableConcept>();
return this.specialty;
}
public boolean hasSpecialty() {
if (this.specialty == null)
return false;
for (CodeableConcept item : this.specialty)
if (!item.isEmpty())
return true;
return false;
}
/**
* @return {@link #specialty} (Collection of specialties handled by the service site. This is more of a medical term.)
*/
// syntactic sugar
public CodeableConcept addSpecialty() { //3
CodeableConcept t = new CodeableConcept();
if (this.specialty == null)
this.specialty = new ArrayList<CodeableConcept>();
this.specialty.add(t);
return t;
}
// syntactic sugar
public HealthcareService addSpecialty(CodeableConcept t) { //3
if (t == null)
return this;
if (this.specialty == null)
this.specialty = new ArrayList<CodeableConcept>();
this.specialty.add(t);
return this;
}
/**
* @return {@link #location} (The location(s) where this healthcare service may be provided.)
*/
public List<Reference> getLocation() {
if (this.location == null)
if (Configuration.errorOnAutoCreate())
throw new Error("Attempt to auto-create HealthcareService.location");
else if (Configuration.doAutoCreate())
this.location = new Reference(); // cc
this.location = new ArrayList<Reference>();
return this.location;
}
public boolean hasLocation() {
return this.location != null && !this.location.isEmpty();
if (this.location == null)
return false;
for (Reference item : this.location)
if (!item.isEmpty())
return true;
return false;
}
/**
* @param value {@link #location} (The location where this healthcare service may be provided.)
* @return {@link #location} (The location(s) where this healthcare service may be provided.)
*/
public HealthcareService setLocation(Reference value) {
this.location = value;
// syntactic sugar
public Reference addLocation() { //3
Reference t = new Reference();
if (this.location == null)
this.location = new ArrayList<Reference>();
this.location.add(t);
return t;
}
// syntactic sugar
public HealthcareService addLocation(Reference t) { //3
if (t == null)
return this;
if (this.location == null)
this.location = new ArrayList<Reference>();
this.location.add(t);
return this;
}
/**
* @return {@link #location} 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 location where this healthcare service may be provided.)
* @return {@link #location} (The actual objects that are the target of the reference. The reference library doesn't populate this, but you can use this to hold the resources if you resolvethemt. The location(s) where this healthcare service may be provided.)
*/
public Location getLocationTarget() {
public List<Location> getLocationTarget() {
if (this.locationTarget == null)
if (Configuration.errorOnAutoCreate())
throw new Error("Attempt to auto-create HealthcareService.location");
else if (Configuration.doAutoCreate())
this.locationTarget = new Location(); // aa
this.locationTarget = new ArrayList<Location>();
return this.locationTarget;
}
// syntactic sugar
/**
* @param value {@link #location} 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 location where this healthcare service may be provided.)
* @return {@link #location} (Add an actual object that is the target of the reference. The reference library doesn't use these, but you can use this to hold the resources if you resolvethemt. The location(s) where this healthcare service may be provided.)
*/
public HealthcareService setLocationTarget(Location value) {
this.locationTarget = value;
return this;
public Location addLocationTarget() {
Location r = new Location();
if (this.locationTarget == null)
this.locationTarget = new ArrayList<Location>();
this.locationTarget.add(r);
return r;
}
/**
@ -2006,8 +1889,9 @@ public class HealthcareService extends DomainResource {
childrenList.add(new Property("identifier", "Identifier", "External identifiers for this item.", 0, java.lang.Integer.MAX_VALUE, identifier));
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", "", "A specific type of service that may be delivered or performed.", 0, java.lang.Integer.MAX_VALUE, serviceType));
childrenList.add(new Property("location", "Reference(Location)", "The location where this healthcare service may be provided.", 0, java.lang.Integer.MAX_VALUE, location));
childrenList.add(new Property("serviceType", "CodeableConcept", "The specific type of service that may be delivered or performed.", 0, java.lang.Integer.MAX_VALUE, serviceType));
childrenList.add(new Property("specialty", "CodeableConcept", "Collection of specialties handled by the service site. This is more of a medical term.", 0, java.lang.Integer.MAX_VALUE, specialty));
childrenList.add(new Property("location", "Reference(Location)", "The location(s) where this healthcare service may be provided.", 0, java.lang.Integer.MAX_VALUE, location));
childrenList.add(new Property("serviceName", "string", "Further description of the service as it would be presented to a consumer while searching.", 0, java.lang.Integer.MAX_VALUE, serviceName));
childrenList.add(new Property("comment", "string", "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.", 0, java.lang.Integer.MAX_VALUE, comment));
childrenList.add(new Property("extraDetails", "string", "Extra details about the service that can't be placed in the other fields.", 0, java.lang.Integer.MAX_VALUE, extraDetails));
@ -2036,9 +1920,11 @@ public class HealthcareService extends DomainResource {
else if (name.equals("serviceCategory"))
this.serviceCategory = castToCodeableConcept(value); // CodeableConcept
else if (name.equals("serviceType"))
this.getServiceType().add((ServiceTypeComponent) value);
this.getServiceType().add(castToCodeableConcept(value));
else if (name.equals("specialty"))
this.getSpecialty().add(castToCodeableConcept(value));
else if (name.equals("location"))
this.location = castToReference(value); // Reference
this.getLocation().add(castToReference(value));
else if (name.equals("serviceName"))
this.serviceName = castToString(value); // StringType
else if (name.equals("comment"))
@ -2093,9 +1979,11 @@ public class HealthcareService extends DomainResource {
else if (name.equals("serviceType")) {
return addServiceType();
}
else if (name.equals("specialty")) {
return addSpecialty();
}
else if (name.equals("location")) {
this.location = new Reference();
return this.location;
return addLocation();
}
else if (name.equals("serviceName")) {
throw new FHIRException("Cannot call addChild on a primitive type HealthcareService.serviceName");
@ -2170,11 +2058,20 @@ public class HealthcareService extends DomainResource {
dst.providedBy = providedBy == null ? null : providedBy.copy();
dst.serviceCategory = serviceCategory == null ? null : serviceCategory.copy();
if (serviceType != null) {
dst.serviceType = new ArrayList<ServiceTypeComponent>();
for (ServiceTypeComponent i : serviceType)
dst.serviceType = new ArrayList<CodeableConcept>();
for (CodeableConcept i : serviceType)
dst.serviceType.add(i.copy());
};
dst.location = location == null ? null : location.copy();
if (specialty != null) {
dst.specialty = new ArrayList<CodeableConcept>();
for (CodeableConcept i : specialty)
dst.specialty.add(i.copy());
};
if (location != null) {
dst.location = new ArrayList<Reference>();
for (Reference i : location)
dst.location.add(i.copy());
};
dst.serviceName = serviceName == null ? null : serviceName.copy();
dst.comment = comment == null ? null : comment.copy();
dst.extraDetails = extraDetails == null ? null : extraDetails.copy();
@ -2240,9 +2137,9 @@ public class HealthcareService extends DomainResource {
HealthcareService o = (HealthcareService) other;
return compareDeep(identifier, o.identifier, true) && compareDeep(providedBy, o.providedBy, true)
&& compareDeep(serviceCategory, o.serviceCategory, true) && compareDeep(serviceType, o.serviceType, 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) && compareDeep(telecom, o.telecom, true)
&& compareDeep(coverageArea, o.coverageArea, true) && compareDeep(serviceProvisionCode, o.serviceProvisionCode, 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)
&& compareDeep(telecom, o.telecom, true) && compareDeep(coverageArea, o.coverageArea, true) && compareDeep(serviceProvisionCode, o.serviceProvisionCode, true)
&& compareDeep(eligibility, o.eligibility, true) && compareDeep(eligibilityNote, o.eligibilityNote, true)
&& compareDeep(programName, o.programName, true) && compareDeep(characteristic, o.characteristic, true)
&& compareDeep(referralMethod, o.referralMethod, true) && compareDeep(publicKey, o.publicKey, true)
@ -2265,17 +2162,11 @@ public class HealthcareService extends DomainResource {
}
public boolean isEmpty() {
return super.isEmpty() && (identifier == null || identifier.isEmpty()) && (providedBy == null || providedBy.isEmpty())
&& (serviceCategory == null || serviceCategory.isEmpty()) && (serviceType == null || serviceType.isEmpty())
&& (location == null || location.isEmpty()) && (serviceName == null || serviceName.isEmpty())
&& (comment == null || comment.isEmpty()) && (extraDetails == null || extraDetails.isEmpty())
&& (photo == null || photo.isEmpty()) && (telecom == null || telecom.isEmpty()) && (coverageArea == null || coverageArea.isEmpty())
&& (serviceProvisionCode == null || serviceProvisionCode.isEmpty()) && (eligibility == null || eligibility.isEmpty())
&& (eligibilityNote == null || eligibilityNote.isEmpty()) && (programName == null || programName.isEmpty())
&& (characteristic == null || characteristic.isEmpty()) && (referralMethod == null || referralMethod.isEmpty())
&& (publicKey == null || publicKey.isEmpty()) && (appointmentRequired == null || appointmentRequired.isEmpty())
&& (availableTime == null || availableTime.isEmpty()) && (notAvailable == null || notAvailable.isEmpty())
&& (availabilityExceptions == null || availabilityExceptions.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
);
}
@Override
@ -2328,17 +2219,17 @@ public class HealthcareService extends DomainResource {
* <p>
* Description: <b>The type of service provided by this healthcare service</b><br>
* Type: <b>token</b><br>
* Path: <b>HealthcareService.serviceType.type</b><br>
* Path: <b>HealthcareService.serviceType</b><br>
* </p>
*/
@SearchParamDefinition(name="servicetype", path="HealthcareService.serviceType.type", description="The type of service provided by this healthcare service", type="token" )
@SearchParamDefinition(name="servicetype", path="HealthcareService.serviceType", description="The type of service provided by this healthcare service", type="token" )
public static final String SP_SERVICETYPE = "servicetype";
/**
* <b>Fluent Client</b> search parameter constant for <b>servicetype</b>
* <p>
* Description: <b>The type of service provided by this healthcare service</b><br>
* Type: <b>token</b><br>
* Path: <b>HealthcareService.serviceType.type</b><br>
* Path: <b>HealthcareService.serviceType</b><br>
* </p>
*/
public static final ca.uhn.fhir.rest.gclient.TokenClientParam SERVICETYPE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_SERVICETYPE);

View File

@ -29,19 +29,17 @@ package org.hl7.fhir.dstu3.model;
*/
// Generated on Sat, Jan 30, 2016 09:18-0500 for FHIR v1.3.0
// Generated on Fri, Apr 1, 2016 17:57-0400 for FHIR v1.4.0
import java.util.*;
import org.hl7.fhir.utilities.Utilities;
import ca.uhn.fhir.model.api.annotation.Child;
import ca.uhn.fhir.model.api.annotation.Description;
import ca.uhn.fhir.util.ElementUtil;
import ca.uhn.fhir.model.api.annotation.DatatypeDef;
import ca.uhn.fhir.model.api.annotation.Block;
import org.hl7.fhir.dstu3.exceptions.FHIRException;
import org.hl7.fhir.instance.model.api.*;
import org.hl7.fhir.dstu3.exceptions.FHIRException;
/**
* A human's name with the ability to identify parts and usage.
*/
@ -807,7 +805,8 @@ public class HumanName extends Type implements ICompositeType {
}
public boolean isEmpty() {
return super.isEmpty() && ElementUtil.isEmpty(use, text, family, given, prefix, suffix, period);
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( use, text, family, given, prefix
, suffix, period);
}

View File

@ -79,7 +79,7 @@ import ca.uhn.fhir.model.api.annotation.DatatypeDef;
* identity on objects it creates as a convenience.
* </p>
* <p>
* Regex for ID: [a-zA-Z0-9\-\.]{1,36}
* Regex for ID: [a-z0-9\-\.]{1,36}
* </p>
*/
@DatatypeDef(name = "id", profileOf=StringType.class)
@ -208,9 +208,6 @@ public final class IdType extends UriType implements IPrimitiveType<String>, IId
myUnqualifiedId = theId;
myUnqualifiedVersionId = StringUtils.defaultIfBlank(theVersionId, null);
myHaveComponentParts = true;
if (isBlank(myBaseUrl) && isBlank(myResourceType) && isBlank(myUnqualifiedId) && isBlank(myUnqualifiedVersionId)) {
myHaveComponentParts = false;
}
}
/**

View File

@ -29,20 +29,18 @@ package org.hl7.fhir.dstu3.model;
*/
// Generated on Sat, Jan 30, 2016 09:18-0500 for FHIR v1.3.0
// Generated on Fri, Apr 1, 2016 17:57-0400 for FHIR v1.4.0
import java.util.*;
import org.hl7.fhir.utilities.Utilities;
import org.hl7.fhir.dstu3.model.Enumerations.*;
import ca.uhn.fhir.model.api.annotation.Child;
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.dstu3.exceptions.FHIRException;
import org.hl7.fhir.dstu3.model.Enumerations.*;
import org.hl7.fhir.instance.model.api.*;
import org.hl7.fhir.dstu3.exceptions.FHIRException;
/**
* A technical identifier - identifies some entity uniquely and unambiguously.
*/
@ -190,10 +188,10 @@ public class Identifier extends Type implements ICompositeType {
protected UriType system;
/**
* The portion of the identifier typically displayed to the user and which is unique within the context of the system.
* The portion of the identifier typically relevant to the user and which is unique within the context of the system.
*/
@Child(name = "value", type = {StringType.class}, order=3, min=0, max=1, modifier=false, summary=true)
@Description(shortDefinition="The value that is unique", formalDefinition="The portion of the identifier typically displayed to the user and which is unique within the context of the system." )
@Description(shortDefinition="The value that is unique", formalDefinition="The portion of the identifier typically relevant to the user and which is unique within the context of the system." )
protected StringType value;
/**
@ -347,7 +345,7 @@ public class Identifier extends Type implements ICompositeType {
}
/**
* @return {@link #value} (The portion of the identifier typically displayed to the user and which is unique within the context of the system.). This is the underlying object with id, value and extensions. The accessor "getValue" gives direct access to the value
* @return {@link #value} (The portion of the identifier typically relevant to the user and which is unique within the context of the system.). This is the underlying object with id, value and extensions. The accessor "getValue" gives direct access to the value
*/
public StringType getValueElement() {
if (this.value == null)
@ -367,7 +365,7 @@ public class Identifier extends Type implements ICompositeType {
}
/**
* @param value {@link #value} (The portion of the identifier typically displayed to the user and which is unique within the context of the system.). This is the underlying object with id, value and extensions. The accessor "getValue" gives direct access to the value
* @param value {@link #value} (The portion of the identifier typically relevant to the user and which is unique within the context of the system.). This is the underlying object with id, value and extensions. The accessor "getValue" gives direct access to the value
*/
public Identifier setValueElement(StringType value) {
this.value = value;
@ -375,14 +373,14 @@ public class Identifier extends Type implements ICompositeType {
}
/**
* @return The portion of the identifier typically displayed to the user and which is unique within the context of the system.
* @return The portion of the identifier typically relevant to the user and which is unique within the context of the system.
*/
public String getValue() {
return this.value == null ? null : this.value.getValue();
}
/**
* @param value The portion of the identifier typically displayed to the user and which is unique within the context of the system.
* @param value The portion of the identifier typically relevant to the user and which is unique within the context of the system.
*/
public Identifier setValue(String value) {
if (Utilities.noString(value))
@ -468,7 +466,7 @@ public class Identifier extends Type implements ICompositeType {
childrenList.add(new Property("use", "code", "The purpose of this identifier.", 0, java.lang.Integer.MAX_VALUE, use));
childrenList.add(new Property("type", "CodeableConcept", "A coded type for the identifier that can be used to determine which identifier to use for a specific purpose.", 0, java.lang.Integer.MAX_VALUE, type));
childrenList.add(new Property("system", "uri", "Establishes the namespace in which set of possible id values is unique.", 0, java.lang.Integer.MAX_VALUE, system));
childrenList.add(new Property("value", "string", "The portion of the identifier typically displayed to the user and which is unique within the context of the system.", 0, java.lang.Integer.MAX_VALUE, value));
childrenList.add(new Property("value", "string", "The portion of the identifier typically relevant to the user and which is unique within the context of the system.", 0, java.lang.Integer.MAX_VALUE, value));
childrenList.add(new Property("period", "Period", "Time period during which identifier is/was valid for use.", 0, java.lang.Integer.MAX_VALUE, period));
childrenList.add(new Property("assigner", "Reference(Organization)", "Organization that issued/manages the identifier.", 0, java.lang.Integer.MAX_VALUE, assigner));
}
@ -563,9 +561,8 @@ public class Identifier extends Type implements ICompositeType {
}
public boolean isEmpty() {
return super.isEmpty() && (use == null || use.isEmpty()) && (type == null || type.isEmpty())
&& (system == null || system.isEmpty()) && (value == null || value.isEmpty()) && (period == null || period.isEmpty())
&& (assigner == null || assigner.isEmpty());
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( use, type, system, value, period
, assigner);
}

View File

@ -29,7 +29,7 @@ package org.hl7.fhir.dstu3.model;
*/
// Generated on Sat, Jan 30, 2016 09:18-0500 for FHIR v1.3.0
// Generated on Fri, Apr 1, 2016 17:57-0400 for FHIR v1.4.0
import java.util.*;
@ -39,9 +39,8 @@ import ca.uhn.fhir.model.api.annotation.SearchParamDefinition;
import ca.uhn.fhir.model.api.annotation.Child;
import ca.uhn.fhir.model.api.annotation.Description;
import ca.uhn.fhir.model.api.annotation.Block;
import org.hl7.fhir.dstu3.exceptions.FHIRException;
import org.hl7.fhir.instance.model.api.*;
import org.hl7.fhir.dstu3.exceptions.FHIRException;
/**
* A manifest of a set of DICOM Service-Object Pair Instances (SOP Instances). The referenced SOP Instances (images or other content) are for a single patient, and may be from one or more studies. The referenced SOP Instances have been selected for a purpose, such as quality assurance, conference, or consult. Reflecting that range of purposes, typical ImagingObjectSelection resources may include all SOP Instances in a study (perhaps for sharing through a Health Information Exchange); key images from multiple studies (for reference by a referring or treating physician); a multi-frame ultrasound instance ("cine" video clip) and a set of measurements taken from that instance (for inclusion in a teaching file); and so on.
*/
@ -355,8 +354,8 @@ public class ImagingObjectSelection extends DomainResource {
}
public boolean isEmpty() {
return super.isEmpty() && (uid == null || uid.isEmpty()) && (url == null || url.isEmpty()) && (imagingStudy == null || imagingStudy.isEmpty())
&& (series == null || series.isEmpty());
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( uid, url, imagingStudy, series
);
}
public String fhirType() {
@ -371,7 +370,7 @@ public class ImagingObjectSelection extends DomainResource {
/**
* Series instance UID of the SOP instances in the selection.
*/
@Child(name = "uid", type = {OidType.class}, order=1, min=0, max=1, modifier=false, summary=true)
@Child(name = "uid", type = {OidType.class}, order=1, min=1, max=1, modifier=false, summary=true)
@Description(shortDefinition="Series instance UID", formalDefinition="Series instance UID of the SOP instances in the selection." )
protected OidType uid;
@ -398,6 +397,14 @@ public class ImagingObjectSelection extends DomainResource {
super();
}
/**
* Constructor
*/
public SeriesComponent(OidType uid) {
super();
this.uid = uid;
}
/**
* @return {@link #uid} (Series instance UID of the SOP instances in the selection.). This is the underlying object with id, value and extensions. The accessor "getUid" gives direct access to the value
*/
@ -437,13 +444,9 @@ public class ImagingObjectSelection extends DomainResource {
* @param value Series instance UID of the SOP instances in the selection.
*/
public SeriesComponent setUid(String value) {
if (Utilities.noString(value))
this.uid = null;
else {
if (this.uid == null)
this.uid = new OidType();
this.uid.setValue(value);
}
return this;
}
@ -605,8 +608,7 @@ public class ImagingObjectSelection extends DomainResource {
}
public boolean isEmpty() {
return super.isEmpty() && (uid == null || uid.isEmpty()) && (url == null || url.isEmpty()) && (instance == null || instance.isEmpty())
;
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( uid, url, instance);
}
public String fhirType() {
@ -642,11 +644,11 @@ public class ImagingObjectSelection extends DomainResource {
/**
* Identity and location information of the frames in the selected instance.
*/
@Child(name = "frames", type = {}, order=4, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
@Child(name = "frame", type = {}, order=4, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
@Description(shortDefinition="The frame set", formalDefinition="Identity and location information of the frames in the selected instance." )
protected List<FramesComponent> frames;
protected List<FramesComponent> frame;
private static final long serialVersionUID = 1641180916L;
private static final long serialVersionUID = -1609681911L;
/**
* Constructor
@ -801,42 +803,42 @@ public class ImagingObjectSelection extends DomainResource {
}
/**
* @return {@link #frames} (Identity and location information of the frames in the selected instance.)
* @return {@link #frame} (Identity and location information of the frames in the selected instance.)
*/
public List<FramesComponent> getFrames() {
if (this.frames == null)
this.frames = new ArrayList<FramesComponent>();
return this.frames;
public List<FramesComponent> getFrame() {
if (this.frame == null)
this.frame = new ArrayList<FramesComponent>();
return this.frame;
}
public boolean hasFrames() {
if (this.frames == null)
public boolean hasFrame() {
if (this.frame == null)
return false;
for (FramesComponent item : this.frames)
for (FramesComponent item : this.frame)
if (!item.isEmpty())
return true;
return false;
}
/**
* @return {@link #frames} (Identity and location information of the frames in the selected instance.)
* @return {@link #frame} (Identity and location information of the frames in the selected instance.)
*/
// syntactic sugar
public FramesComponent addFrames() { //3
public FramesComponent addFrame() { //3
FramesComponent t = new FramesComponent();
if (this.frames == null)
this.frames = new ArrayList<FramesComponent>();
this.frames.add(t);
if (this.frame == null)
this.frame = new ArrayList<FramesComponent>();
this.frame.add(t);
return t;
}
// syntactic sugar
public InstanceComponent addFrames(FramesComponent t) { //3
public InstanceComponent addFrame(FramesComponent t) { //3
if (t == null)
return this;
if (this.frames == null)
this.frames = new ArrayList<FramesComponent>();
this.frames.add(t);
if (this.frame == null)
this.frame = new ArrayList<FramesComponent>();
this.frame.add(t);
return this;
}
@ -845,7 +847,7 @@ public class ImagingObjectSelection extends DomainResource {
childrenList.add(new Property("sopClass", "oid", "SOP class UID of the selected instance.", 0, java.lang.Integer.MAX_VALUE, sopClass));
childrenList.add(new Property("uid", "oid", "SOP Instance UID of the selected instance.", 0, java.lang.Integer.MAX_VALUE, uid));
childrenList.add(new Property("url", "uri", "WADO-RS URL to retrieve the DICOM SOP Instance.", 0, java.lang.Integer.MAX_VALUE, url));
childrenList.add(new Property("frames", "", "Identity and location information of the frames in the selected instance.", 0, java.lang.Integer.MAX_VALUE, frames));
childrenList.add(new Property("frame", "", "Identity and location information of the frames in the selected instance.", 0, java.lang.Integer.MAX_VALUE, frame));
}
@Override
@ -856,8 +858,8 @@ public class ImagingObjectSelection extends DomainResource {
this.uid = castToOid(value); // OidType
else if (name.equals("url"))
this.url = castToUri(value); // UriType
else if (name.equals("frames"))
this.getFrames().add((FramesComponent) value);
else if (name.equals("frame"))
this.getFrame().add((FramesComponent) value);
else
super.setProperty(name, value);
}
@ -873,8 +875,8 @@ public class ImagingObjectSelection extends DomainResource {
else if (name.equals("url")) {
throw new FHIRException("Cannot call addChild on a primitive type ImagingObjectSelection.url");
}
else if (name.equals("frames")) {
return addFrames();
else if (name.equals("frame")) {
return addFrame();
}
else
return super.addChild(name);
@ -886,10 +888,10 @@ public class ImagingObjectSelection extends DomainResource {
dst.sopClass = sopClass == null ? null : sopClass.copy();
dst.uid = uid == null ? null : uid.copy();
dst.url = url == null ? null : url.copy();
if (frames != null) {
dst.frames = new ArrayList<FramesComponent>();
for (FramesComponent i : frames)
dst.frames.add(i.copy());
if (frame != null) {
dst.frame = new ArrayList<FramesComponent>();
for (FramesComponent i : frame)
dst.frame.add(i.copy());
};
return dst;
}
@ -902,7 +904,7 @@ public class ImagingObjectSelection extends DomainResource {
return false;
InstanceComponent o = (InstanceComponent) other;
return compareDeep(sopClass, o.sopClass, true) && compareDeep(uid, o.uid, true) && compareDeep(url, o.url, true)
&& compareDeep(frames, o.frames, true);
&& compareDeep(frame, o.frame, true);
}
@Override
@ -917,8 +919,7 @@ public class ImagingObjectSelection extends DomainResource {
}
public boolean isEmpty() {
return super.isEmpty() && (sopClass == null || sopClass.isEmpty()) && (uid == null || uid.isEmpty())
&& (url == null || url.isEmpty()) && (frames == null || frames.isEmpty());
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( sopClass, uid, url, frame);
}
public String fhirType() {
@ -931,11 +932,11 @@ public class ImagingObjectSelection extends DomainResource {
@Block()
public static class FramesComponent extends BackboneElement implements IBaseBackboneElement {
/**
* The frame numbers in the frame set.
* The specific frame reference within a multi-frame object.
*/
@Child(name = "frameNumbers", type = {UnsignedIntType.class}, order=1, min=1, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
@Description(shortDefinition="Frame numbers", formalDefinition="The frame numbers in the frame set." )
protected List<UnsignedIntType> frameNumbers;
@Child(name = "number", type = {UnsignedIntType.class}, order=1, min=1, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
@Description(shortDefinition="Frame reference number", formalDefinition="The specific frame reference within a multi-frame object." )
protected List<UnsignedIntType> number;
/**
* WADO-RS URL to retrieve the DICOM frames.
@ -944,7 +945,7 @@ public class ImagingObjectSelection extends DomainResource {
@Description(shortDefinition="Retrieve frame URL", formalDefinition="WADO-RS URL to retrieve the DICOM frames." )
protected UriType url;
private static final long serialVersionUID = -2068206970L;
private static final long serialVersionUID = 236505178L;
/**
* Constructor
@ -962,54 +963,54 @@ public class ImagingObjectSelection extends DomainResource {
}
/**
* @return {@link #frameNumbers} (The frame numbers in the frame set.)
* @return {@link #number} (The specific frame reference within a multi-frame object.)
*/
public List<UnsignedIntType> getFrameNumbers() {
if (this.frameNumbers == null)
this.frameNumbers = new ArrayList<UnsignedIntType>();
return this.frameNumbers;
public List<UnsignedIntType> getNumber() {
if (this.number == null)
this.number = new ArrayList<UnsignedIntType>();
return this.number;
}
public boolean hasFrameNumbers() {
if (this.frameNumbers == null)
public boolean hasNumber() {
if (this.number == null)
return false;
for (UnsignedIntType item : this.frameNumbers)
for (UnsignedIntType item : this.number)
if (!item.isEmpty())
return true;
return false;
}
/**
* @return {@link #frameNumbers} (The frame numbers in the frame set.)
* @return {@link #number} (The specific frame reference within a multi-frame object.)
*/
// syntactic sugar
public UnsignedIntType addFrameNumbersElement() {//2
public UnsignedIntType addNumberElement() {//2
UnsignedIntType t = new UnsignedIntType();
if (this.frameNumbers == null)
this.frameNumbers = new ArrayList<UnsignedIntType>();
this.frameNumbers.add(t);
if (this.number == null)
this.number = new ArrayList<UnsignedIntType>();
this.number.add(t);
return t;
}
/**
* @param value {@link #frameNumbers} (The frame numbers in the frame set.)
* @param value {@link #number} (The specific frame reference within a multi-frame object.)
*/
public FramesComponent addFrameNumbers(int value) { //1
public FramesComponent addNumber(int value) { //1
UnsignedIntType t = new UnsignedIntType();
t.setValue(value);
if (this.frameNumbers == null)
this.frameNumbers = new ArrayList<UnsignedIntType>();
this.frameNumbers.add(t);
if (this.number == null)
this.number = new ArrayList<UnsignedIntType>();
this.number.add(t);
return this;
}
/**
* @param value {@link #frameNumbers} (The frame numbers in the frame set.)
* @param value {@link #number} (The specific frame reference within a multi-frame object.)
*/
public boolean hasFrameNumbers(int value) {
if (this.frameNumbers == null)
public boolean hasNumber(int value) {
if (this.number == null)
return false;
for (UnsignedIntType v : this.frameNumbers)
for (UnsignedIntType v : this.number)
if (v.equals(value)) // unsignedInt
return true;
return false;
@ -1062,14 +1063,14 @@ public class ImagingObjectSelection extends DomainResource {
protected void listChildren(List<Property> childrenList) {
super.listChildren(childrenList);
childrenList.add(new Property("frameNumbers", "unsignedInt", "The frame numbers in the frame set.", 0, java.lang.Integer.MAX_VALUE, frameNumbers));
childrenList.add(new Property("number", "unsignedInt", "The specific frame reference within a multi-frame object.", 0, java.lang.Integer.MAX_VALUE, number));
childrenList.add(new Property("url", "uri", "WADO-RS URL to retrieve the DICOM frames.", 0, java.lang.Integer.MAX_VALUE, url));
}
@Override
public void setProperty(String name, Base value) throws FHIRException {
if (name.equals("frameNumbers"))
this.getFrameNumbers().add(castToUnsignedInt(value));
if (name.equals("number"))
this.getNumber().add(castToUnsignedInt(value));
else if (name.equals("url"))
this.url = castToUri(value); // UriType
else
@ -1078,8 +1079,8 @@ public class ImagingObjectSelection extends DomainResource {
@Override
public Base addChild(String name) throws FHIRException {
if (name.equals("frameNumbers")) {
throw new FHIRException("Cannot call addChild on a primitive type ImagingObjectSelection.frameNumbers");
if (name.equals("number")) {
throw new FHIRException("Cannot call addChild on a primitive type ImagingObjectSelection.number");
}
else if (name.equals("url")) {
throw new FHIRException("Cannot call addChild on a primitive type ImagingObjectSelection.url");
@ -1091,10 +1092,10 @@ public class ImagingObjectSelection extends DomainResource {
public FramesComponent copy() {
FramesComponent dst = new FramesComponent();
copyValues(dst);
if (frameNumbers != null) {
dst.frameNumbers = new ArrayList<UnsignedIntType>();
for (UnsignedIntType i : frameNumbers)
dst.frameNumbers.add(i.copy());
if (number != null) {
dst.number = new ArrayList<UnsignedIntType>();
for (UnsignedIntType i : number)
dst.number.add(i.copy());
};
dst.url = url == null ? null : url.copy();
return dst;
@ -1107,7 +1108,7 @@ public class ImagingObjectSelection extends DomainResource {
if (!(other instanceof FramesComponent))
return false;
FramesComponent o = (FramesComponent) other;
return compareDeep(frameNumbers, o.frameNumbers, true) && compareDeep(url, o.url, true);
return compareDeep(number, o.number, true) && compareDeep(url, o.url, true);
}
@Override
@ -1117,16 +1118,15 @@ public class ImagingObjectSelection extends DomainResource {
if (!(other instanceof FramesComponent))
return false;
FramesComponent o = (FramesComponent) other;
return compareValues(frameNumbers, o.frameNumbers, true) && compareValues(url, o.url, true);
return compareValues(number, o.number, true) && compareValues(url, o.url, true);
}
public boolean isEmpty() {
return super.isEmpty() && (frameNumbers == null || frameNumbers.isEmpty()) && (url == null || url.isEmpty())
;
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( number, url);
}
public String fhirType() {
return "ImagingObjectSelection.study.series.instance.frames";
return "ImagingObjectSelection.study.series.instance.frame";
}
@ -1152,23 +1152,16 @@ public class ImagingObjectSelection extends DomainResource {
protected Patient patientTarget;
/**
* The reason for, or significance of, the selection of objects referenced in the resource.
* Date and time when the selection of the referenced instances were made. It is (typically) different from the creation date of the selection resource, and from dates associated with the referenced instances (e.g. capture time of the referenced image).
*/
@Child(name = "title", type = {CodeableConcept.class}, order=2, min=1, max=1, modifier=false, summary=true)
@Description(shortDefinition="Reason for selection", formalDefinition="The reason for, or significance of, the selection of objects referenced in the resource." )
protected CodeableConcept title;
/**
* Text description of the DICOM SOP instances selected in the ImagingObjectSelection. This should be aligned with the content of the title element, and can provide further explanation of the SOP instances in the selection.
*/
@Child(name = "description", type = {StringType.class}, order=3, min=0, max=1, modifier=false, summary=true)
@Description(shortDefinition="Description text", formalDefinition="Text description of the DICOM SOP instances selected in the ImagingObjectSelection. This should be aligned with the content of the title element, and can provide further explanation of the SOP instances in the selection." )
protected StringType description;
@Child(name = "authoringTime", type = {DateTimeType.class}, order=2, min=0, max=1, modifier=false, summary=true)
@Description(shortDefinition="Time when the imaging object selection was created", formalDefinition="Date and time when the selection of the referenced instances were made. It is (typically) different from the creation date of the selection resource, and from dates associated with the referenced instances (e.g. capture time of the referenced image)." )
protected DateTimeType authoringTime;
/**
* Author of ImagingObjectSelection. It can be a human author or a device which made the decision of the SOP instances selected. For example, a radiologist selected a set of imaging SOP instances to attach in a diagnostic report, and a CAD application may author a selection to describe SOP instances it used to generate a detection conclusion.
*/
@Child(name = "author", type = {Practitioner.class, Device.class, Organization.class, Patient.class, RelatedPerson.class}, order=4, min=0, max=1, modifier=false, summary=true)
@Child(name = "author", type = {Practitioner.class, Device.class, Organization.class, Patient.class, RelatedPerson.class}, order=3, min=0, max=1, modifier=false, summary=true)
@Description(shortDefinition="Author (human or machine)", formalDefinition="Author of ImagingObjectSelection. It can be a human author or a device which made the decision of the SOP instances selected. For example, a radiologist selected a set of imaging SOP instances to attach in a diagnostic report, and a CAD application may author a selection to describe SOP instances it used to generate a detection conclusion." )
protected Reference author;
@ -1178,11 +1171,18 @@ public class ImagingObjectSelection extends DomainResource {
protected Resource authorTarget;
/**
* Date and time when the selection of the referenced instances were made. It is (typically) different from the creation date of the selection resource, and from dates associated with the referenced instances (e.g. capture time of the referenced image).
* The reason for, or significance of, the selection of objects referenced in the resource.
*/
@Child(name = "authoringTime", type = {DateTimeType.class}, order=5, min=0, max=1, modifier=false, summary=true)
@Description(shortDefinition="Authoring time of the selection", formalDefinition="Date and time when the selection of the referenced instances were made. It is (typically) different from the creation date of the selection resource, and from dates associated with the referenced instances (e.g. capture time of the referenced image)." )
protected DateTimeType authoringTime;
@Child(name = "title", type = {CodeableConcept.class}, order=4, min=1, max=1, modifier=false, summary=true)
@Description(shortDefinition="Reason for selection", formalDefinition="The reason for, or significance of, the selection of objects referenced in the resource." )
protected CodeableConcept title;
/**
* Text description of the DICOM SOP instances selected in the ImagingObjectSelection. This should be aligned with the content of the title element, and can provide further explanation of the SOP instances in the selection.
*/
@Child(name = "description", type = {StringType.class}, order=5, min=0, max=1, modifier=false, summary=true)
@Description(shortDefinition="Description text", formalDefinition="Text description of the DICOM SOP instances selected in the ImagingObjectSelection. This should be aligned with the content of the title element, and can provide further explanation of the SOP instances in the selection." )
protected StringType description;
/**
* Study identity and locating information of the DICOM SOP instances in the selection.
@ -1191,7 +1191,7 @@ public class ImagingObjectSelection extends DomainResource {
@Description(shortDefinition="Study identity of the selected instances", formalDefinition="Study identity and locating information of the DICOM SOP instances in the selection." )
protected List<StudyComponent> study;
private static final long serialVersionUID = -1961832713L;
private static final long serialVersionUID = 1428713335L;
/**
* Constructor
@ -1299,6 +1299,94 @@ public class ImagingObjectSelection extends DomainResource {
return this;
}
/**
* @return {@link #authoringTime} (Date and time when the selection of the referenced instances were made. It is (typically) different from the creation date of the selection resource, and from dates associated with the referenced instances (e.g. capture time of the referenced image).). This is the underlying object with id, value and extensions. The accessor "getAuthoringTime" gives direct access to the value
*/
public DateTimeType getAuthoringTimeElement() {
if (this.authoringTime == null)
if (Configuration.errorOnAutoCreate())
throw new Error("Attempt to auto-create ImagingObjectSelection.authoringTime");
else if (Configuration.doAutoCreate())
this.authoringTime = new DateTimeType(); // bb
return this.authoringTime;
}
public boolean hasAuthoringTimeElement() {
return this.authoringTime != null && !this.authoringTime.isEmpty();
}
public boolean hasAuthoringTime() {
return this.authoringTime != null && !this.authoringTime.isEmpty();
}
/**
* @param value {@link #authoringTime} (Date and time when the selection of the referenced instances were made. It is (typically) different from the creation date of the selection resource, and from dates associated with the referenced instances (e.g. capture time of the referenced image).). This is the underlying object with id, value and extensions. The accessor "getAuthoringTime" gives direct access to the value
*/
public ImagingObjectSelection setAuthoringTimeElement(DateTimeType value) {
this.authoringTime = value;
return this;
}
/**
* @return Date and time when the selection of the referenced instances were made. It is (typically) different from the creation date of the selection resource, and from dates associated with the referenced instances (e.g. capture time of the referenced image).
*/
public Date getAuthoringTime() {
return this.authoringTime == null ? null : this.authoringTime.getValue();
}
/**
* @param value Date and time when the selection of the referenced instances were made. It is (typically) different from the creation date of the selection resource, and from dates associated with the referenced instances (e.g. capture time of the referenced image).
*/
public ImagingObjectSelection setAuthoringTime(Date value) {
if (value == null)
this.authoringTime = null;
else {
if (this.authoringTime == null)
this.authoringTime = new DateTimeType();
this.authoringTime.setValue(value);
}
return this;
}
/**
* @return {@link #author} (Author of ImagingObjectSelection. It can be a human author or a device which made the decision of the SOP instances selected. For example, a radiologist selected a set of imaging SOP instances to attach in a diagnostic report, and a CAD application may author a selection to describe SOP instances it used to generate a detection conclusion.)
*/
public Reference getAuthor() {
if (this.author == null)
if (Configuration.errorOnAutoCreate())
throw new Error("Attempt to auto-create ImagingObjectSelection.author");
else if (Configuration.doAutoCreate())
this.author = new Reference(); // cc
return this.author;
}
public boolean hasAuthor() {
return this.author != null && !this.author.isEmpty();
}
/**
* @param value {@link #author} (Author of ImagingObjectSelection. It can be a human author or a device which made the decision of the SOP instances selected. For example, a radiologist selected a set of imaging SOP instances to attach in a diagnostic report, and a CAD application may author a selection to describe SOP instances it used to generate a detection conclusion.)
*/
public ImagingObjectSelection setAuthor(Reference value) {
this.author = value;
return this;
}
/**
* @return {@link #author} The actual object that is the target of the reference. The reference library doesn't populate this, but you can use it to hold the resource if you resolve it. (Author of ImagingObjectSelection. It can be a human author or a device which made the decision of the SOP instances selected. For example, a radiologist selected a set of imaging SOP instances to attach in a diagnostic report, and a CAD application may author a selection to describe SOP instances it used to generate a detection conclusion.)
*/
public Resource getAuthorTarget() {
return this.authorTarget;
}
/**
* @param value {@link #author} The actual object that is the target of the reference. The reference library doesn't use these, but you can use it to hold the resource if you resolve it. (Author of ImagingObjectSelection. It can be a human author or a device which made the decision of the SOP instances selected. For example, a radiologist selected a set of imaging SOP instances to attach in a diagnostic report, and a CAD application may author a selection to describe SOP instances it used to generate a detection conclusion.)
*/
public ImagingObjectSelection setAuthorTarget(Resource value) {
this.authorTarget = value;
return this;
}
/**
* @return {@link #title} (The reason for, or significance of, the selection of objects referenced in the resource.)
*/
@ -1372,94 +1460,6 @@ public class ImagingObjectSelection extends DomainResource {
return this;
}
/**
* @return {@link #author} (Author of ImagingObjectSelection. It can be a human author or a device which made the decision of the SOP instances selected. For example, a radiologist selected a set of imaging SOP instances to attach in a diagnostic report, and a CAD application may author a selection to describe SOP instances it used to generate a detection conclusion.)
*/
public Reference getAuthor() {
if (this.author == null)
if (Configuration.errorOnAutoCreate())
throw new Error("Attempt to auto-create ImagingObjectSelection.author");
else if (Configuration.doAutoCreate())
this.author = new Reference(); // cc
return this.author;
}
public boolean hasAuthor() {
return this.author != null && !this.author.isEmpty();
}
/**
* @param value {@link #author} (Author of ImagingObjectSelection. It can be a human author or a device which made the decision of the SOP instances selected. For example, a radiologist selected a set of imaging SOP instances to attach in a diagnostic report, and a CAD application may author a selection to describe SOP instances it used to generate a detection conclusion.)
*/
public ImagingObjectSelection setAuthor(Reference value) {
this.author = value;
return this;
}
/**
* @return {@link #author} The actual object that is the target of the reference. The reference library doesn't populate this, but you can use it to hold the resource if you resolve it. (Author of ImagingObjectSelection. It can be a human author or a device which made the decision of the SOP instances selected. For example, a radiologist selected a set of imaging SOP instances to attach in a diagnostic report, and a CAD application may author a selection to describe SOP instances it used to generate a detection conclusion.)
*/
public Resource getAuthorTarget() {
return this.authorTarget;
}
/**
* @param value {@link #author} The actual object that is the target of the reference. The reference library doesn't use these, but you can use it to hold the resource if you resolve it. (Author of ImagingObjectSelection. It can be a human author or a device which made the decision of the SOP instances selected. For example, a radiologist selected a set of imaging SOP instances to attach in a diagnostic report, and a CAD application may author a selection to describe SOP instances it used to generate a detection conclusion.)
*/
public ImagingObjectSelection setAuthorTarget(Resource value) {
this.authorTarget = value;
return this;
}
/**
* @return {@link #authoringTime} (Date and time when the selection of the referenced instances were made. It is (typically) different from the creation date of the selection resource, and from dates associated with the referenced instances (e.g. capture time of the referenced image).). This is the underlying object with id, value and extensions. The accessor "getAuthoringTime" gives direct access to the value
*/
public DateTimeType getAuthoringTimeElement() {
if (this.authoringTime == null)
if (Configuration.errorOnAutoCreate())
throw new Error("Attempt to auto-create ImagingObjectSelection.authoringTime");
else if (Configuration.doAutoCreate())
this.authoringTime = new DateTimeType(); // bb
return this.authoringTime;
}
public boolean hasAuthoringTimeElement() {
return this.authoringTime != null && !this.authoringTime.isEmpty();
}
public boolean hasAuthoringTime() {
return this.authoringTime != null && !this.authoringTime.isEmpty();
}
/**
* @param value {@link #authoringTime} (Date and time when the selection of the referenced instances were made. It is (typically) different from the creation date of the selection resource, and from dates associated with the referenced instances (e.g. capture time of the referenced image).). This is the underlying object with id, value and extensions. The accessor "getAuthoringTime" gives direct access to the value
*/
public ImagingObjectSelection setAuthoringTimeElement(DateTimeType value) {
this.authoringTime = value;
return this;
}
/**
* @return Date and time when the selection of the referenced instances were made. It is (typically) different from the creation date of the selection resource, and from dates associated with the referenced instances (e.g. capture time of the referenced image).
*/
public Date getAuthoringTime() {
return this.authoringTime == null ? null : this.authoringTime.getValue();
}
/**
* @param value Date and time when the selection of the referenced instances were made. It is (typically) different from the creation date of the selection resource, and from dates associated with the referenced instances (e.g. capture time of the referenced image).
*/
public ImagingObjectSelection setAuthoringTime(Date value) {
if (value == null)
this.authoringTime = null;
else {
if (this.authoringTime == null)
this.authoringTime = new DateTimeType();
this.authoringTime.setValue(value);
}
return this;
}
/**
* @return {@link #study} (Study identity and locating information of the DICOM SOP instances in the selection.)
*/
@ -1504,10 +1504,10 @@ public class ImagingObjectSelection extends DomainResource {
super.listChildren(childrenList);
childrenList.add(new Property("uid", "oid", "Instance UID of the DICOM KOS SOP Instances represented in this resource.", 0, java.lang.Integer.MAX_VALUE, uid));
childrenList.add(new Property("patient", "Reference(Patient)", "A patient resource reference which is the patient subject of all DICOM SOP Instances in this ImagingObjectSelection.", 0, java.lang.Integer.MAX_VALUE, patient));
childrenList.add(new Property("authoringTime", "dateTime", "Date and time when the selection of the referenced instances were made. It is (typically) different from the creation date of the selection resource, and from dates associated with the referenced instances (e.g. capture time of the referenced image).", 0, java.lang.Integer.MAX_VALUE, authoringTime));
childrenList.add(new Property("author", "Reference(Practitioner|Device|Organization|Patient|RelatedPerson)", "Author of ImagingObjectSelection. It can be a human author or a device which made the decision of the SOP instances selected. For example, a radiologist selected a set of imaging SOP instances to attach in a diagnostic report, and a CAD application may author a selection to describe SOP instances it used to generate a detection conclusion.", 0, java.lang.Integer.MAX_VALUE, author));
childrenList.add(new Property("title", "CodeableConcept", "The reason for, or significance of, the selection of objects referenced in the resource.", 0, java.lang.Integer.MAX_VALUE, title));
childrenList.add(new Property("description", "string", "Text description of the DICOM SOP instances selected in the ImagingObjectSelection. This should be aligned with the content of the title element, and can provide further explanation of the SOP instances in the selection.", 0, java.lang.Integer.MAX_VALUE, description));
childrenList.add(new Property("author", "Reference(Practitioner|Device|Organization|Patient|RelatedPerson)", "Author of ImagingObjectSelection. It can be a human author or a device which made the decision of the SOP instances selected. For example, a radiologist selected a set of imaging SOP instances to attach in a diagnostic report, and a CAD application may author a selection to describe SOP instances it used to generate a detection conclusion.", 0, java.lang.Integer.MAX_VALUE, author));
childrenList.add(new Property("authoringTime", "dateTime", "Date and time when the selection of the referenced instances were made. It is (typically) different from the creation date of the selection resource, and from dates associated with the referenced instances (e.g. capture time of the referenced image).", 0, java.lang.Integer.MAX_VALUE, authoringTime));
childrenList.add(new Property("study", "", "Study identity and locating information of the DICOM SOP instances in the selection.", 0, java.lang.Integer.MAX_VALUE, study));
}
@ -1517,14 +1517,14 @@ public class ImagingObjectSelection extends DomainResource {
this.uid = castToOid(value); // OidType
else if (name.equals("patient"))
this.patient = castToReference(value); // Reference
else if (name.equals("authoringTime"))
this.authoringTime = castToDateTime(value); // DateTimeType
else if (name.equals("author"))
this.author = castToReference(value); // Reference
else if (name.equals("title"))
this.title = castToCodeableConcept(value); // CodeableConcept
else if (name.equals("description"))
this.description = castToString(value); // StringType
else if (name.equals("author"))
this.author = castToReference(value); // Reference
else if (name.equals("authoringTime"))
this.authoringTime = castToDateTime(value); // DateTimeType
else if (name.equals("study"))
this.getStudy().add((StudyComponent) value);
else
@ -1540,6 +1540,13 @@ public class ImagingObjectSelection extends DomainResource {
this.patient = new Reference();
return this.patient;
}
else if (name.equals("authoringTime")) {
throw new FHIRException("Cannot call addChild on a primitive type ImagingObjectSelection.authoringTime");
}
else if (name.equals("author")) {
this.author = new Reference();
return this.author;
}
else if (name.equals("title")) {
this.title = new CodeableConcept();
return this.title;
@ -1547,13 +1554,6 @@ public class ImagingObjectSelection extends DomainResource {
else if (name.equals("description")) {
throw new FHIRException("Cannot call addChild on a primitive type ImagingObjectSelection.description");
}
else if (name.equals("author")) {
this.author = new Reference();
return this.author;
}
else if (name.equals("authoringTime")) {
throw new FHIRException("Cannot call addChild on a primitive type ImagingObjectSelection.authoringTime");
}
else if (name.equals("study")) {
return addStudy();
}
@ -1571,10 +1571,10 @@ public class ImagingObjectSelection extends DomainResource {
copyValues(dst);
dst.uid = uid == null ? null : uid.copy();
dst.patient = patient == null ? null : patient.copy();
dst.authoringTime = authoringTime == null ? null : authoringTime.copy();
dst.author = author == null ? null : author.copy();
dst.title = title == null ? null : title.copy();
dst.description = description == null ? null : description.copy();
dst.author = author == null ? null : author.copy();
dst.authoringTime = authoringTime == null ? null : authoringTime.copy();
if (study != null) {
dst.study = new ArrayList<StudyComponent>();
for (StudyComponent i : study)
@ -1594,8 +1594,8 @@ public class ImagingObjectSelection extends DomainResource {
if (!(other instanceof ImagingObjectSelection))
return false;
ImagingObjectSelection o = (ImagingObjectSelection) other;
return compareDeep(uid, o.uid, true) && compareDeep(patient, o.patient, true) && compareDeep(title, o.title, true)
&& compareDeep(description, o.description, true) && compareDeep(author, o.author, true) && compareDeep(authoringTime, o.authoringTime, true)
return compareDeep(uid, o.uid, true) && compareDeep(patient, o.patient, true) && compareDeep(authoringTime, o.authoringTime, true)
&& compareDeep(author, o.author, true) && compareDeep(title, o.title, true) && compareDeep(description, o.description, true)
&& compareDeep(study, o.study, true);
}
@ -1606,15 +1606,13 @@ public class ImagingObjectSelection extends DomainResource {
if (!(other instanceof ImagingObjectSelection))
return false;
ImagingObjectSelection o = (ImagingObjectSelection) other;
return compareValues(uid, o.uid, true) && compareValues(description, o.description, true) && compareValues(authoringTime, o.authoringTime, true)
return compareValues(uid, o.uid, true) && compareValues(authoringTime, o.authoringTime, true) && compareValues(description, o.description, true)
;
}
public boolean isEmpty() {
return super.isEmpty() && (uid == null || uid.isEmpty()) && (patient == null || patient.isEmpty())
&& (title == null || title.isEmpty()) && (description == null || description.isEmpty()) && (author == null || author.isEmpty())
&& (authoringTime == null || authoringTime.isEmpty()) && (study == null || study.isEmpty())
;
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( uid, patient, authoringTime, author
, title, description, study);
}
@Override
@ -1690,7 +1688,7 @@ public class ImagingObjectSelection extends DomainResource {
* Path: <b>ImagingObjectSelection.author</b><br>
* </p>
*/
@SearchParamDefinition(name="author", path="ImagingObjectSelection.author", description="Author of key DICOM object selection", type="reference" )
@SearchParamDefinition(name="author", path="ImagingObjectSelection.author", description="Author of key DICOM object selection", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Device"), @ca.uhn.fhir.model.api.annotation.Compartment(name="Patient"), @ca.uhn.fhir.model.api.annotation.Compartment(name="Practitioner"), @ca.uhn.fhir.model.api.annotation.Compartment(name="RelatedPerson") } )
public static final String SP_AUTHOR = "author";
/**
* <b>Fluent Client</b> search parameter constant for <b>author</b>
@ -1716,7 +1714,7 @@ public class ImagingObjectSelection extends DomainResource {
* Path: <b>ImagingObjectSelection.patient</b><br>
* </p>
*/
@SearchParamDefinition(name="patient", path="ImagingObjectSelection.patient", description="Subject of key DICOM object selection", type="reference" )
@SearchParamDefinition(name="patient", path="ImagingObjectSelection.patient", description="Subject of key DICOM object selection", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Patient") } )
public static final String SP_PATIENT = "patient";
/**
* <b>Fluent Client</b> search parameter constant for <b>patient</b>

View File

@ -29,7 +29,7 @@ package org.hl7.fhir.dstu3.model;
*/
// Generated on Sat, Jan 30, 2016 09:18-0500 for FHIR v1.3.0
// Generated on Fri, Apr 1, 2016 17:57-0400 for FHIR v1.4.0
import java.util.*;
@ -39,9 +39,8 @@ import ca.uhn.fhir.model.api.annotation.SearchParamDefinition;
import ca.uhn.fhir.model.api.annotation.Child;
import ca.uhn.fhir.model.api.annotation.Description;
import ca.uhn.fhir.model.api.annotation.Block;
import org.hl7.fhir.dstu3.exceptions.FHIRException;
import org.hl7.fhir.instance.model.api.*;
import org.hl7.fhir.dstu3.exceptions.FHIRException;
/**
* Describes the event of a patient being administered a vaccination or a record of a vaccination as reported by a patient, a clinician or another party and may include vaccine reaction information and what vaccination protocol was followed.
*/
@ -219,8 +218,7 @@ public class Immunization extends DomainResource {
}
public boolean isEmpty() {
return super.isEmpty() && (reason == null || reason.isEmpty()) && (reasonNotGiven == null || reasonNotGiven.isEmpty())
;
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( reason, reasonNotGiven);
}
public String fhirType() {
@ -471,8 +469,7 @@ public class Immunization extends DomainResource {
}
public boolean isEmpty() {
return super.isEmpty() && (date == null || date.isEmpty()) && (detail == null || detail.isEmpty())
&& (reported == null || reported.isEmpty());
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( date, detail, reported);
}
public String fhirType() {
@ -993,10 +990,8 @@ public class Immunization extends DomainResource {
}
public boolean isEmpty() {
return super.isEmpty() && (doseSequence == null || doseSequence.isEmpty()) && (description == null || description.isEmpty())
&& (authority == null || authority.isEmpty()) && (series == null || series.isEmpty()) && (seriesDoses == null || seriesDoses.isEmpty())
&& (targetDisease == null || targetDisease.isEmpty()) && (doseStatus == null || doseStatus.isEmpty())
&& (doseStatusReason == null || doseStatusReason.isEmpty());
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( doseSequence, description, authority
, series, seriesDoses, targetDisease, doseStatus, doseStatusReason);
}
public String fhirType() {
@ -2265,16 +2260,10 @@ public class Immunization extends DomainResource {
}
public boolean isEmpty() {
return super.isEmpty() && (identifier == null || identifier.isEmpty()) && (status == null || status.isEmpty())
&& (date == null || date.isEmpty()) && (vaccineCode == null || vaccineCode.isEmpty()) && (patient == null || patient.isEmpty())
&& (wasNotGiven == null || wasNotGiven.isEmpty()) && (reported == null || reported.isEmpty())
&& (performer == null || performer.isEmpty()) && (requester == null || requester.isEmpty())
&& (encounter == null || encounter.isEmpty()) && (manufacturer == null || manufacturer.isEmpty())
&& (location == null || location.isEmpty()) && (lotNumber == null || lotNumber.isEmpty())
&& (expirationDate == null || expirationDate.isEmpty()) && (site == null || site.isEmpty())
&& (route == null || route.isEmpty()) && (doseQuantity == null || doseQuantity.isEmpty())
&& (note == null || note.isEmpty()) && (explanation == null || explanation.isEmpty()) && (reaction == null || reaction.isEmpty())
&& (vaccinationProtocol == null || vaccinationProtocol.isEmpty());
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( identifier, status, date, vaccineCode
, patient, wasNotGiven, reported, performer, requester, encounter, manufacturer, location
, lotNumber, expirationDate, site, route, doseQuantity, note, explanation, reaction
, vaccinationProtocol);
}
@Override
@ -2310,7 +2299,7 @@ public class Immunization extends DomainResource {
* Path: <b>Immunization.requester</b><br>
* </p>
*/
@SearchParamDefinition(name="requester", path="Immunization.requester", description="The practitioner who ordered the vaccination", type="reference" )
@SearchParamDefinition(name="requester", path="Immunization.requester", description="The practitioner who ordered the vaccination", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Practitioner") } )
public static final String SP_REQUESTER = "requester";
/**
* <b>Fluent Client</b> search parameter constant for <b>requester</b>
@ -2376,7 +2365,7 @@ public class Immunization extends DomainResource {
* Path: <b>Immunization.performer</b><br>
* </p>
*/
@SearchParamDefinition(name="performer", path="Immunization.performer", description="The practitioner who administered the vaccination", type="reference" )
@SearchParamDefinition(name="performer", path="Immunization.performer", description="The practitioner who administered the vaccination", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Practitioner") } )
public static final String SP_PERFORMER = "performer";
/**
* <b>Fluent Client</b> search parameter constant for <b>performer</b>
@ -2514,7 +2503,7 @@ public class Immunization extends DomainResource {
* Path: <b>Immunization.patient</b><br>
* </p>
*/
@SearchParamDefinition(name="patient", path="Immunization.patient", description="The patient for the vaccination record", type="reference" )
@SearchParamDefinition(name="patient", path="Immunization.patient", description="The patient for the vaccination record", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Patient") } )
public static final String SP_PATIENT = "patient";
/**
* <b>Fluent Client</b> search parameter constant for <b>patient</b>

View File

@ -29,7 +29,7 @@ package org.hl7.fhir.dstu3.model;
*/
// Generated on Sat, Jan 30, 2016 09:18-0500 for FHIR v1.3.0
// Generated on Fri, Apr 1, 2016 17:57-0400 for FHIR v1.4.0
import java.util.*;
@ -39,9 +39,8 @@ import ca.uhn.fhir.model.api.annotation.SearchParamDefinition;
import ca.uhn.fhir.model.api.annotation.Child;
import ca.uhn.fhir.model.api.annotation.Description;
import ca.uhn.fhir.model.api.annotation.Block;
import org.hl7.fhir.dstu3.exceptions.FHIRException;
import org.hl7.fhir.instance.model.api.*;
import org.hl7.fhir.dstu3.exceptions.FHIRException;
/**
* A patient's point-in-time immunization and recommendation (i.e. forecasting a patient's immunization eligibility according to a published schedule) with optional supporting justification.
*/
@ -564,11 +563,9 @@ public class ImmunizationRecommendation extends DomainResource {
}
public boolean isEmpty() {
return super.isEmpty() && (date == null || date.isEmpty()) && (vaccineCode == null || vaccineCode.isEmpty())
&& (doseNumber == null || doseNumber.isEmpty()) && (forecastStatus == null || forecastStatus.isEmpty())
&& (dateCriterion == null || dateCriterion.isEmpty()) && (protocol == null || protocol.isEmpty())
&& (supportingImmunization == null || supportingImmunization.isEmpty()) && (supportingPatientInformation == null || supportingPatientInformation.isEmpty())
;
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( date, vaccineCode, doseNumber
, forecastStatus, dateCriterion, protocol, supportingImmunization, supportingPatientInformation
);
}
public String fhirType() {
@ -739,8 +736,7 @@ public class ImmunizationRecommendation extends DomainResource {
}
public boolean isEmpty() {
return super.isEmpty() && (code == null || code.isEmpty()) && (value == null || value.isEmpty())
;
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( code, value);
}
public String fhirType() {
@ -1055,8 +1051,8 @@ public class ImmunizationRecommendation extends DomainResource {
}
public boolean isEmpty() {
return super.isEmpty() && (doseSequence == null || doseSequence.isEmpty()) && (description == null || description.isEmpty())
&& (authority == null || authority.isEmpty()) && (series == null || series.isEmpty());
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( doseSequence, description, authority
, series);
}
public String fhirType() {
@ -1316,8 +1312,8 @@ public class ImmunizationRecommendation extends DomainResource {
}
public boolean isEmpty() {
return super.isEmpty() && (identifier == null || identifier.isEmpty()) && (patient == null || patient.isEmpty())
&& (recommendation == null || recommendation.isEmpty());
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( identifier, patient, recommendation
);
}
@Override
@ -1393,7 +1389,7 @@ public class ImmunizationRecommendation extends DomainResource {
* Path: <b>ImmunizationRecommendation.patient</b><br>
* </p>
*/
@SearchParamDefinition(name="patient", path="ImmunizationRecommendation.patient", description="Who this profile is for", type="reference" )
@SearchParamDefinition(name="patient", path="ImmunizationRecommendation.patient", description="Who this profile is for", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Patient") } )
public static final String SP_PATIENT = "patient";
/**
* <b>Fluent Client</b> search parameter constant for <b>patient</b>

View File

@ -29,21 +29,19 @@ package org.hl7.fhir.dstu3.model;
*/
// Generated on Sat, Jan 30, 2016 09:18-0500 for FHIR v1.3.0
// Generated on Fri, Apr 1, 2016 17:57-0400 for FHIR v1.4.0
import java.util.*;
import org.hl7.fhir.utilities.Utilities;
import org.hl7.fhir.dstu3.model.Enumerations.*;
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.Description;
import ca.uhn.fhir.model.api.annotation.Block;
import org.hl7.fhir.dstu3.exceptions.FHIRException;
import org.hl7.fhir.dstu3.model.Enumerations.*;
import org.hl7.fhir.instance.model.api.*;
import org.hl7.fhir.dstu3.exceptions.FHIRException;
/**
* A set of rules or how FHIR is used to solve a particular problem. This resource is used to gather all the parts of an implementation guide into a logical whole, and to publish a computable definition of all the parts.
*/
@ -137,157 +135,6 @@ public class ImplementationGuide extends DomainResource {
}
}
public enum GuideResourcePurpose {
/**
* The resource is intended as an example.
*/
EXAMPLE,
/**
* The resource defines a value set or concept map used in the implementation guide.
*/
TERMINOLOGY,
/**
* The resource defines a profile (StructureDefinition) that is used in the implementation guide.
*/
PROFILE,
/**
* The resource defines an extension (StructureDefinition) that is used in the implementation guide.
*/
EXTENSION,
/**
* The resource contains a dictionary that is part of the implementation guide.
*/
DICTIONARY,
/**
* The resource defines a logical model (in a StructureDefinition) that is used in the implementation guide.
*/
LOGICAL,
/**
* added to help the parsers
*/
NULL;
public static GuideResourcePurpose fromCode(String codeString) throws FHIRException {
if (codeString == null || "".equals(codeString))
return null;
if ("example".equals(codeString))
return EXAMPLE;
if ("terminology".equals(codeString))
return TERMINOLOGY;
if ("profile".equals(codeString))
return PROFILE;
if ("extension".equals(codeString))
return EXTENSION;
if ("dictionary".equals(codeString))
return DICTIONARY;
if ("logical".equals(codeString))
return LOGICAL;
throw new FHIRException("Unknown GuideResourcePurpose code '"+codeString+"'");
}
public String toCode() {
switch (this) {
case EXAMPLE: return "example";
case TERMINOLOGY: return "terminology";
case PROFILE: return "profile";
case EXTENSION: return "extension";
case DICTIONARY: return "dictionary";
case LOGICAL: return "logical";
default: return "?";
}
}
public String getSystem() {
switch (this) {
case EXAMPLE: return "http://hl7.org/fhir/guide-resource-purpose";
case TERMINOLOGY: return "http://hl7.org/fhir/guide-resource-purpose";
case PROFILE: return "http://hl7.org/fhir/guide-resource-purpose";
case EXTENSION: return "http://hl7.org/fhir/guide-resource-purpose";
case DICTIONARY: return "http://hl7.org/fhir/guide-resource-purpose";
case LOGICAL: return "http://hl7.org/fhir/guide-resource-purpose";
default: return "?";
}
}
public String getDefinition() {
switch (this) {
case EXAMPLE: return "The resource is intended as an example.";
case TERMINOLOGY: return "The resource defines a value set or concept map used in the implementation guide.";
case PROFILE: return "The resource defines a profile (StructureDefinition) that is used in the implementation guide.";
case EXTENSION: return "The resource defines an extension (StructureDefinition) that is used in the implementation guide.";
case DICTIONARY: return "The resource contains a dictionary that is part of the implementation guide.";
case LOGICAL: return "The resource defines a logical model (in a StructureDefinition) that is used in the implementation guide.";
default: return "?";
}
}
public String getDisplay() {
switch (this) {
case EXAMPLE: return "Example";
case TERMINOLOGY: return "Terminology";
case PROFILE: return "Profile";
case EXTENSION: return "Extension";
case DICTIONARY: return "Dictionary";
case LOGICAL: return "Logical Model";
default: return "?";
}
}
}
public static class GuideResourcePurposeEnumFactory implements EnumFactory<GuideResourcePurpose> {
public GuideResourcePurpose fromCode(String codeString) throws IllegalArgumentException {
if (codeString == null || "".equals(codeString))
if (codeString == null || "".equals(codeString))
return null;
if ("example".equals(codeString))
return GuideResourcePurpose.EXAMPLE;
if ("terminology".equals(codeString))
return GuideResourcePurpose.TERMINOLOGY;
if ("profile".equals(codeString))
return GuideResourcePurpose.PROFILE;
if ("extension".equals(codeString))
return GuideResourcePurpose.EXTENSION;
if ("dictionary".equals(codeString))
return GuideResourcePurpose.DICTIONARY;
if ("logical".equals(codeString))
return GuideResourcePurpose.LOGICAL;
throw new IllegalArgumentException("Unknown GuideResourcePurpose code '"+codeString+"'");
}
public Enumeration<GuideResourcePurpose> 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 ("example".equals(codeString))
return new Enumeration<GuideResourcePurpose>(this, GuideResourcePurpose.EXAMPLE);
if ("terminology".equals(codeString))
return new Enumeration<GuideResourcePurpose>(this, GuideResourcePurpose.TERMINOLOGY);
if ("profile".equals(codeString))
return new Enumeration<GuideResourcePurpose>(this, GuideResourcePurpose.PROFILE);
if ("extension".equals(codeString))
return new Enumeration<GuideResourcePurpose>(this, GuideResourcePurpose.EXTENSION);
if ("dictionary".equals(codeString))
return new Enumeration<GuideResourcePurpose>(this, GuideResourcePurpose.DICTIONARY);
if ("logical".equals(codeString))
return new Enumeration<GuideResourcePurpose>(this, GuideResourcePurpose.LOGICAL);
throw new FHIRException("Unknown GuideResourcePurpose code '"+codeString+"'");
}
public String toCode(GuideResourcePurpose code) {
if (code == GuideResourcePurpose.EXAMPLE)
return "example";
if (code == GuideResourcePurpose.TERMINOLOGY)
return "terminology";
if (code == GuideResourcePurpose.PROFILE)
return "profile";
if (code == GuideResourcePurpose.EXTENSION)
return "extension";
if (code == GuideResourcePurpose.DICTIONARY)
return "dictionary";
if (code == GuideResourcePurpose.LOGICAL)
return "logical";
return "?";
}
public String toSystem(GuideResourcePurpose code) {
return code.getSystem();
}
}
public enum GuidePageKind {
/**
* This is a page of content that is included in the implementation guide. It has no particular function.
@ -477,7 +324,7 @@ public class ImplementationGuide extends DomainResource {
* The name of an individual to contact regarding the implementation guide.
*/
@Child(name = "name", type = {StringType.class}, order=1, min=0, max=1, modifier=false, summary=true)
@Description(shortDefinition="Name of a individual to contact", formalDefinition="The name of an individual to contact regarding the implementation guide." )
@Description(shortDefinition="Name of an individual to contact", formalDefinition="The name of an individual to contact regarding the implementation guide." )
protected StringType name;
/**
@ -646,8 +493,7 @@ public class ImplementationGuide extends DomainResource {
}
public boolean isEmpty() {
return super.isEmpty() && (name == null || name.isEmpty()) && (telecom == null || telecom.isEmpty())
;
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( name, telecom);
}
public String fhirType() {
@ -838,8 +684,7 @@ public class ImplementationGuide extends DomainResource {
}
public boolean isEmpty() {
return super.isEmpty() && (type == null || type.isEmpty()) && (uri == null || uri.isEmpty())
;
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( type, uri);
}
public String fhirType() {
@ -1092,8 +937,7 @@ public class ImplementationGuide extends DomainResource {
}
public boolean isEmpty() {
return super.isEmpty() && (name == null || name.isEmpty()) && (description == null || description.isEmpty())
&& (resource == null || resource.isEmpty());
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( name, description, resource);
}
public String fhirType() {
@ -1106,11 +950,11 @@ public class ImplementationGuide extends DomainResource {
@Block()
public static class ImplementationGuidePackageResourceComponent extends BackboneElement implements IBaseBackboneElement {
/**
* Why the resource is included in the guide.
* Whether a resource is included in the guide as part of the rules defined by the guide, or just as an example of a resource that conforms to the rules and/or help implementers understand the intent of the guide.
*/
@Child(name = "purpose", type = {CodeType.class}, order=1, min=1, max=1, modifier=false, summary=true)
@Description(shortDefinition="example | terminology | profile | extension | dictionary | logical", formalDefinition="Why the resource is included in the guide." )
protected Enumeration<GuideResourcePurpose> purpose;
@Child(name = "example", type = {BooleanType.class}, order=1, min=1, max=1, modifier=false, summary=true)
@Description(shortDefinition="If not an example, has it's normal meaning", formalDefinition="Whether a resource is included in the guide as part of the rules defined by the guide, or just as an example of a resource that conforms to the rules and/or help implementers understand the intent of the guide." )
protected BooleanType example;
/**
* A human assigned name for the resource. All resources SHOULD have a name, but the name may be extracted from the resource (e.g. ValueSet.name).
@ -1152,7 +996,7 @@ public class ImplementationGuide extends DomainResource {
*/
protected StructureDefinition exampleForTarget;
private static final long serialVersionUID = 428339533L;
private static final long serialVersionUID = 2085404852L;
/**
* Constructor
@ -1164,54 +1008,54 @@ public class ImplementationGuide extends DomainResource {
/**
* Constructor
*/
public ImplementationGuidePackageResourceComponent(Enumeration<GuideResourcePurpose> purpose, Type source) {
public ImplementationGuidePackageResourceComponent(BooleanType example, Type source) {
super();
this.purpose = purpose;
this.example = example;
this.source = source;
}
/**
* @return {@link #purpose} (Why the resource is included in the guide.). This is the underlying object with id, value and extensions. The accessor "getPurpose" gives direct access to the value
* @return {@link #example} (Whether a resource is included in the guide as part of the rules defined by the guide, or just as an example of a resource that conforms to the rules and/or help implementers understand the intent of the guide.). This is the underlying object with id, value and extensions. The accessor "getExample" gives direct access to the value
*/
public Enumeration<GuideResourcePurpose> getPurposeElement() {
if (this.purpose == null)
public BooleanType getExampleElement() {
if (this.example == null)
if (Configuration.errorOnAutoCreate())
throw new Error("Attempt to auto-create ImplementationGuidePackageResourceComponent.purpose");
throw new Error("Attempt to auto-create ImplementationGuidePackageResourceComponent.example");
else if (Configuration.doAutoCreate())
this.purpose = new Enumeration<GuideResourcePurpose>(new GuideResourcePurposeEnumFactory()); // bb
return this.purpose;
this.example = new BooleanType(); // bb
return this.example;
}
public boolean hasPurposeElement() {
return this.purpose != null && !this.purpose.isEmpty();
public boolean hasExampleElement() {
return this.example != null && !this.example.isEmpty();
}
public boolean hasPurpose() {
return this.purpose != null && !this.purpose.isEmpty();
public boolean hasExample() {
return this.example != null && !this.example.isEmpty();
}
/**
* @param value {@link #purpose} (Why the resource is included in the guide.). This is the underlying object with id, value and extensions. The accessor "getPurpose" gives direct access to the value
* @param value {@link #example} (Whether a resource is included in the guide as part of the rules defined by the guide, or just as an example of a resource that conforms to the rules and/or help implementers understand the intent of the guide.). This is the underlying object with id, value and extensions. The accessor "getExample" gives direct access to the value
*/
public ImplementationGuidePackageResourceComponent setPurposeElement(Enumeration<GuideResourcePurpose> value) {
this.purpose = value;
public ImplementationGuidePackageResourceComponent setExampleElement(BooleanType value) {
this.example = value;
return this;
}
/**
* @return Why the resource is included in the guide.
* @return Whether a resource is included in the guide as part of the rules defined by the guide, or just as an example of a resource that conforms to the rules and/or help implementers understand the intent of the guide.
*/
public GuideResourcePurpose getPurpose() {
return this.purpose == null ? null : this.purpose.getValue();
public boolean getExample() {
return this.example == null || this.example.isEmpty() ? false : this.example.getValue();
}
/**
* @param value Why the resource is included in the guide.
* @param value Whether a resource is included in the guide as part of the rules defined by the guide, or just as an example of a resource that conforms to the rules and/or help implementers understand the intent of the guide.
*/
public ImplementationGuidePackageResourceComponent setPurpose(GuideResourcePurpose value) {
if (this.purpose == null)
this.purpose = new Enumeration<GuideResourcePurpose>(new GuideResourcePurposeEnumFactory());
this.purpose.setValue(value);
public ImplementationGuidePackageResourceComponent setExample(boolean value) {
if (this.example == null)
this.example = new BooleanType();
this.example.setValue(value);
return this;
}
@ -1453,7 +1297,7 @@ public class ImplementationGuide extends DomainResource {
protected void listChildren(List<Property> childrenList) {
super.listChildren(childrenList);
childrenList.add(new Property("purpose", "code", "Why the resource is included in the guide.", 0, java.lang.Integer.MAX_VALUE, purpose));
childrenList.add(new Property("example", "boolean", "Whether a resource is included in the guide as part of the rules defined by the guide, or just as an example of a resource that conforms to the rules and/or help implementers understand the intent of the guide.", 0, java.lang.Integer.MAX_VALUE, example));
childrenList.add(new Property("name", "string", "A human assigned name for the resource. All resources SHOULD have a name, but the name may be extracted from the resource (e.g. ValueSet.name).", 0, java.lang.Integer.MAX_VALUE, name));
childrenList.add(new Property("description", "string", "A description of the reason that a resource has been included in the implementation guide.", 0, java.lang.Integer.MAX_VALUE, description));
childrenList.add(new Property("acronym", "string", "A short code that may be used to identify the resource throughout the implementation guide.", 0, java.lang.Integer.MAX_VALUE, acronym));
@ -1463,8 +1307,8 @@ public class ImplementationGuide extends DomainResource {
@Override
public void setProperty(String name, Base value) throws FHIRException {
if (name.equals("purpose"))
this.purpose = new GuideResourcePurposeEnumFactory().fromType(value); // Enumeration<GuideResourcePurpose>
if (name.equals("example"))
this.example = castToBoolean(value); // BooleanType
else if (name.equals("name"))
this.name = castToString(value); // StringType
else if (name.equals("description"))
@ -1481,8 +1325,8 @@ public class ImplementationGuide extends DomainResource {
@Override
public Base addChild(String name) throws FHIRException {
if (name.equals("purpose")) {
throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.purpose");
if (name.equals("example")) {
throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.example");
}
else if (name.equals("name")) {
throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.name");
@ -1512,7 +1356,7 @@ public class ImplementationGuide extends DomainResource {
public ImplementationGuidePackageResourceComponent copy() {
ImplementationGuidePackageResourceComponent dst = new ImplementationGuidePackageResourceComponent();
copyValues(dst);
dst.purpose = purpose == null ? null : purpose.copy();
dst.example = example == null ? null : example.copy();
dst.name = name == null ? null : name.copy();
dst.description = description == null ? null : description.copy();
dst.acronym = acronym == null ? null : acronym.copy();
@ -1528,7 +1372,7 @@ public class ImplementationGuide extends DomainResource {
if (!(other instanceof ImplementationGuidePackageResourceComponent))
return false;
ImplementationGuidePackageResourceComponent o = (ImplementationGuidePackageResourceComponent) other;
return compareDeep(purpose, o.purpose, true) && compareDeep(name, o.name, true) && compareDeep(description, o.description, true)
return compareDeep(example, o.example, true) && compareDeep(name, o.name, true) && compareDeep(description, o.description, true)
&& compareDeep(acronym, o.acronym, true) && compareDeep(source, o.source, true) && compareDeep(exampleFor, o.exampleFor, true)
;
}
@ -1540,14 +1384,13 @@ public class ImplementationGuide extends DomainResource {
if (!(other instanceof ImplementationGuidePackageResourceComponent))
return false;
ImplementationGuidePackageResourceComponent o = (ImplementationGuidePackageResourceComponent) other;
return compareValues(purpose, o.purpose, true) && compareValues(name, o.name, true) && compareValues(description, o.description, true)
return compareValues(example, o.example, true) && compareValues(name, o.name, true) && compareValues(description, o.description, true)
&& compareValues(acronym, o.acronym, true);
}
public boolean isEmpty() {
return super.isEmpty() && (purpose == null || purpose.isEmpty()) && (name == null || name.isEmpty())
&& (description == null || description.isEmpty()) && (acronym == null || acronym.isEmpty())
&& (source == null || source.isEmpty()) && (exampleFor == null || exampleFor.isEmpty());
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( example, name, description, acronym
, source, exampleFor);
}
public String fhirType() {
@ -1743,8 +1586,7 @@ public class ImplementationGuide extends DomainResource {
}
public boolean isEmpty() {
return super.isEmpty() && (type == null || type.isEmpty()) && (profile == null || profile.isEmpty())
;
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( type, profile);
}
public String fhirType() {
@ -2264,9 +2106,8 @@ public class ImplementationGuide extends DomainResource {
}
public boolean isEmpty() {
return super.isEmpty() && (source == null || source.isEmpty()) && (name == null || name.isEmpty())
&& (kind == null || kind.isEmpty()) && (type == null || type.isEmpty()) && (package_ == null || package_.isEmpty())
&& (format == null || format.isEmpty()) && (page == null || page.isEmpty());
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( source, name, kind, type, package_
, format, page);
}
public String fhirType() {
@ -2354,10 +2195,10 @@ public class ImplementationGuide extends DomainResource {
protected StringType copyright;
/**
* The version of the FHIR specification on which this ImplementationGuide is based - this is the formal version of the specification, without the revision number, e.g. [publication].[major].[minor], which is 1.3.0 for this version.
* The version of the FHIR specification on which this ImplementationGuide is based - this is the formal version of the specification, without the revision number, e.g. [publication].[major].[minor], which is 1.4.0 for this version.
*/
@Child(name = "fhirVersion", type = {IdType.class}, order=11, min=0, max=1, modifier=false, summary=true)
@Description(shortDefinition="FHIR Version this Implementation Guide targets", formalDefinition="The version of the FHIR specification on which this ImplementationGuide is based - this is the formal version of the specification, without the revision number, e.g. [publication].[major].[minor], which is 1.3.0 for this version." )
@Description(shortDefinition="FHIR Version this Implementation Guide targets", formalDefinition="The version of the FHIR specification on which this ImplementationGuide is based - this is the formal version of the specification, without the revision number, e.g. [publication].[major].[minor], which is 1.4.0 for this version." )
protected IdType fhirVersion;
/**
@ -2921,7 +2762,7 @@ public class ImplementationGuide extends DomainResource {
}
/**
* @return {@link #fhirVersion} (The version of the FHIR specification on which this ImplementationGuide is based - this is the formal version of the specification, without the revision number, e.g. [publication].[major].[minor], which is 1.3.0 for this version.). This is the underlying object with id, value and extensions. The accessor "getFhirVersion" gives direct access to the value
* @return {@link #fhirVersion} (The version of the FHIR specification on which this ImplementationGuide is based - this is the formal version of the specification, without the revision number, e.g. [publication].[major].[minor], which is 1.4.0 for this version.). This is the underlying object with id, value and extensions. The accessor "getFhirVersion" gives direct access to the value
*/
public IdType getFhirVersionElement() {
if (this.fhirVersion == null)
@ -2941,7 +2782,7 @@ public class ImplementationGuide extends DomainResource {
}
/**
* @param value {@link #fhirVersion} (The version of the FHIR specification on which this ImplementationGuide is based - this is the formal version of the specification, without the revision number, e.g. [publication].[major].[minor], which is 1.3.0 for this version.). This is the underlying object with id, value and extensions. The accessor "getFhirVersion" gives direct access to the value
* @param value {@link #fhirVersion} (The version of the FHIR specification on which this ImplementationGuide is based - this is the formal version of the specification, without the revision number, e.g. [publication].[major].[minor], which is 1.4.0 for this version.). This is the underlying object with id, value and extensions. The accessor "getFhirVersion" gives direct access to the value
*/
public ImplementationGuide setFhirVersionElement(IdType value) {
this.fhirVersion = value;
@ -2949,14 +2790,14 @@ public class ImplementationGuide extends DomainResource {
}
/**
* @return The version of the FHIR specification on which this ImplementationGuide is based - this is the formal version of the specification, without the revision number, e.g. [publication].[major].[minor], which is 1.3.0 for this version.
* @return The version of the FHIR specification on which this ImplementationGuide is based - this is the formal version of the specification, without the revision number, e.g. [publication].[major].[minor], which is 1.4.0 for this version.
*/
public String getFhirVersion() {
return this.fhirVersion == null ? null : this.fhirVersion.getValue();
}
/**
* @param value The version of the FHIR specification on which this ImplementationGuide is based - this is the formal version of the specification, without the revision number, e.g. [publication].[major].[minor], which is 1.3.0 for this version.
* @param value The version of the FHIR specification on which this ImplementationGuide is based - this is the formal version of the specification, without the revision number, e.g. [publication].[major].[minor], which is 1.4.0 for this version.
*/
public ImplementationGuide setFhirVersion(String value) {
if (Utilities.noString(value))
@ -3180,7 +3021,7 @@ public class ImplementationGuide extends DomainResource {
childrenList.add(new Property("description", "string", "A free text natural language description of the Implementation Guide and its use.", 0, java.lang.Integer.MAX_VALUE, description));
childrenList.add(new Property("useContext", "CodeableConcept", "The content was developed with a focus and intent of supporting the contexts that are listed. These terms may be used to assist with indexing and searching of implementation guides. The most common use of this element is to represent the country / jurisdiction for which this implementation guide was defined.", 0, java.lang.Integer.MAX_VALUE, useContext));
childrenList.add(new Property("copyright", "string", "A copyright statement relating to the implementation guide and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the details of the constraints and mappings.", 0, java.lang.Integer.MAX_VALUE, copyright));
childrenList.add(new Property("fhirVersion", "id", "The version of the FHIR specification on which this ImplementationGuide is based - this is the formal version of the specification, without the revision number, e.g. [publication].[major].[minor], which is 1.3.0 for this version.", 0, java.lang.Integer.MAX_VALUE, fhirVersion));
childrenList.add(new Property("fhirVersion", "id", "The version of the FHIR specification on which this ImplementationGuide is based - this is the formal version of the specification, without the revision number, e.g. [publication].[major].[minor], which is 1.4.0 for this version.", 0, java.lang.Integer.MAX_VALUE, fhirVersion));
childrenList.add(new Property("dependency", "", "Another implementation guide that this implementation depends on. Typically, an implementation guide uses value sets, profiles etc.defined in other implementation guides.", 0, java.lang.Integer.MAX_VALUE, dependency));
childrenList.add(new Property("package", "", "A logical group of resources. Logical groups can be used when building pages.", 0, java.lang.Integer.MAX_VALUE, package_));
childrenList.add(new Property("global", "", "A set of profiles that all resources covered by this implementation guide must conform to.", 0, java.lang.Integer.MAX_VALUE, global));
@ -3371,14 +3212,9 @@ public class ImplementationGuide extends DomainResource {
}
public boolean isEmpty() {
return super.isEmpty() && (url == null || url.isEmpty()) && (version == null || version.isEmpty())
&& (name == null || name.isEmpty()) && (status == null || status.isEmpty()) && (experimental == null || experimental.isEmpty())
&& (publisher == null || publisher.isEmpty()) && (contact == null || contact.isEmpty()) && (date == null || date.isEmpty())
&& (description == null || description.isEmpty()) && (useContext == null || useContext.isEmpty())
&& (copyright == null || copyright.isEmpty()) && (fhirVersion == null || fhirVersion.isEmpty())
&& (dependency == null || dependency.isEmpty()) && (package_ == null || package_.isEmpty())
&& (global == null || global.isEmpty()) && (binary == null || binary.isEmpty()) && (page == null || page.isEmpty())
;
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( url, version, name, status, experimental
, publisher, contact, date, description, useContext, copyright, fhirVersion, dependency
, package_, global, binary, page);
}
@Override
@ -3426,6 +3262,32 @@ public class ImplementationGuide extends DomainResource {
*/
public static final ca.uhn.fhir.rest.gclient.UriClientParam DEPENDENCY = new ca.uhn.fhir.rest.gclient.UriClientParam(SP_DEPENDENCY);
/**
* Search parameter: <b>resource</b>
* <p>
* Description: <b>Location of the resource</b><br>
* Type: <b>reference</b><br>
* Path: <b>ImplementationGuide.package.resource.source[x]</b><br>
* </p>
*/
@SearchParamDefinition(name="resource", path="ImplementationGuide.package.resource.source[x]", description="Location of the resource", type="reference" )
public static final String SP_RESOURCE = "resource";
/**
* <b>Fluent Client</b> search parameter constant for <b>resource</b>
* <p>
* Description: <b>Location of the resource</b><br>
* Type: <b>reference</b><br>
* Path: <b>ImplementationGuide.package.resource.source[x]</b><br>
* </p>
*/
public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam RESOURCE = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_RESOURCE);
/**
* Constant for fluent queries to be used to add include statements. Specifies
* the path value of "<b>ImplementationGuide:resource</b>".
*/
public static final ca.uhn.fhir.model.api.Include INCLUDE_RESOURCE = new ca.uhn.fhir.model.api.Include("ImplementationGuide:resource").toLocked();
/**
* Search parameter: <b>name</b>
* <p>

View File

@ -29,7 +29,7 @@ package org.hl7.fhir.dstu3.model;
*/
// Generated on Sat, Jan 30, 2016 09:18-0500 for FHIR v1.3.0
// Generated on Fri, Apr 1, 2016 17:57-0400 for FHIR v1.4.0
import java.util.*;
@ -39,9 +39,8 @@ import ca.uhn.fhir.model.api.annotation.SearchParamDefinition;
import ca.uhn.fhir.model.api.annotation.Child;
import ca.uhn.fhir.model.api.annotation.Description;
import ca.uhn.fhir.model.api.annotation.Block;
import org.hl7.fhir.dstu3.exceptions.FHIRException;
import org.hl7.fhir.instance.model.api.*;
import org.hl7.fhir.dstu3.exceptions.FHIRException;
/**
* Identifies two or more records (resource instances) that are referring to the same real-world "occurrence".
*/
@ -312,8 +311,7 @@ public class Linkage extends DomainResource {
}
public boolean isEmpty() {
return super.isEmpty() && (type == null || type.isEmpty()) && (resource == null || resource.isEmpty())
;
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( type, resource);
}
public String fhirType() {
@ -501,8 +499,7 @@ public class Linkage extends DomainResource {
}
public boolean isEmpty() {
return super.isEmpty() && (author == null || author.isEmpty()) && (item == null || item.isEmpty())
;
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( author, item);
}
@Override
@ -544,7 +541,7 @@ public class Linkage extends DomainResource {
* Path: <b>Linkage.author</b><br>
* </p>
*/
@SearchParamDefinition(name="author", path="Linkage.author", description="Author of the Linkage", type="reference" )
@SearchParamDefinition(name="author", path="Linkage.author", description="Author of the Linkage", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Practitioner") } )
public static final String SP_AUTHOR = "author";
/**
* <b>Fluent Client</b> search parameter constant for <b>author</b>

View File

@ -29,7 +29,7 @@ package org.hl7.fhir.dstu3.model;
*/
// Generated on Sat, Jan 30, 2016 09:18-0500 for FHIR v1.3.0
// Generated on Fri, Apr 1, 2016 17:57-0400 for FHIR v1.4.0
import java.util.*;
@ -39,9 +39,8 @@ import ca.uhn.fhir.model.api.annotation.SearchParamDefinition;
import ca.uhn.fhir.model.api.annotation.Child;
import ca.uhn.fhir.model.api.annotation.Description;
import ca.uhn.fhir.model.api.annotation.Block;
import org.hl7.fhir.dstu3.exceptions.FHIRException;
import org.hl7.fhir.instance.model.api.*;
import org.hl7.fhir.dstu3.exceptions.FHIRException;
/**
* A set of information summarized from a list of other resources.
*/
@ -537,8 +536,7 @@ public class ListResource extends DomainResource {
}
public boolean isEmpty() {
return super.isEmpty() && (flag == null || flag.isEmpty()) && (deleted == null || deleted.isEmpty())
&& (date == null || date.isEmpty()) && (item == null || item.isEmpty());
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( flag, deleted, date, item);
}
public String fhirType() {
@ -1340,11 +1338,8 @@ public class ListResource extends DomainResource {
}
public boolean isEmpty() {
return super.isEmpty() && (identifier == null || identifier.isEmpty()) && (status == null || status.isEmpty())
&& (mode == null || mode.isEmpty()) && (title == null || title.isEmpty()) && (code == null || code.isEmpty())
&& (subject == null || subject.isEmpty()) && (encounter == null || encounter.isEmpty()) && (date == null || date.isEmpty())
&& (source == null || source.isEmpty()) && (orderedBy == null || orderedBy.isEmpty()) && (note == null || note.isEmpty())
&& (entry == null || entry.isEmpty()) && (emptyReason == null || emptyReason.isEmpty());
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( identifier, status, mode, title
, code, subject, encounter, date, source, orderedBy, note, entry, emptyReason);
}
@Override

View File

@ -29,7 +29,7 @@ package org.hl7.fhir.dstu3.model;
*/
// Generated on Sat, Jan 30, 2016 09:18-0500 for FHIR v1.3.0
// Generated on Fri, Apr 1, 2016 17:57-0400 for FHIR v1.4.0
import java.util.*;
@ -40,9 +40,8 @@ import ca.uhn.fhir.model.api.annotation.SearchParamDefinition;
import ca.uhn.fhir.model.api.annotation.Child;
import ca.uhn.fhir.model.api.annotation.Description;
import ca.uhn.fhir.model.api.annotation.Block;
import org.hl7.fhir.dstu3.exceptions.FHIRException;
import org.hl7.fhir.instance.model.api.*;
import org.hl7.fhir.dstu3.exceptions.FHIRException;
/**
* Details and position information for a physical place where services are provided and resources and participants may be stored, found, contained or accommodated.
*/
@ -539,8 +538,8 @@ public class Location extends DomainResource {
}
public boolean isEmpty() {
return super.isEmpty() && (longitude == null || longitude.isEmpty()) && (latitude == null || latitude.isEmpty())
&& (altitude == null || altitude.isEmpty());
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( longitude, latitude, altitude
);
}
public String fhirType() {
@ -575,7 +574,7 @@ public class Location extends DomainResource {
* Description of the Location, which helps in finding or referencing the place.
*/
@Child(name = "description", type = {StringType.class}, order=3, min=0, max=1, modifier=false, summary=true)
@Description(shortDefinition="Description of the location", formalDefinition="Description of the Location, which helps in finding or referencing the place." )
@Description(shortDefinition="Additional details about the location that could be displayed as further information to identify the location beyond its name", formalDefinition="Description of the Location, which helps in finding or referencing the place." )
protected StringType description;
/**
@ -1268,12 +1267,9 @@ public class Location extends DomainResource {
}
public boolean isEmpty() {
return super.isEmpty() && (identifier == null || identifier.isEmpty()) && (status == null || status.isEmpty())
&& (name == null || name.isEmpty()) && (description == null || description.isEmpty()) && (mode == null || mode.isEmpty())
&& (type == null || type.isEmpty()) && (telecom == null || telecom.isEmpty()) && (address == null || address.isEmpty())
&& (physicalType == null || physicalType.isEmpty()) && (position == null || position.isEmpty())
&& (managingOrganization == null || managingOrganization.isEmpty()) && (partOf == null || partOf.isEmpty())
;
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( identifier, status, name, description
, mode, type, telecom, address, physicalType, position, managingOrganization, partOf
);
}
@Override

View File

@ -29,7 +29,7 @@ package org.hl7.fhir.dstu3.model;
*/
// Generated on Sat, Jan 30, 2016 09:18-0500 for FHIR v1.3.0
// Generated on Fri, Apr 1, 2016 17:57-0400 for FHIR v1.4.0
import java.util.*;
@ -39,9 +39,8 @@ import ca.uhn.fhir.model.api.annotation.SearchParamDefinition;
import ca.uhn.fhir.model.api.annotation.Child;
import ca.uhn.fhir.model.api.annotation.Description;
import ca.uhn.fhir.model.api.annotation.Block;
import org.hl7.fhir.dstu3.exceptions.FHIRException;
import org.hl7.fhir.instance.model.api.*;
import org.hl7.fhir.dstu3.exceptions.FHIRException;
/**
* A photo, video, or audio recording acquired or used in healthcare. The actual content may be inline or provided by direct reference.
*/
@ -883,11 +882,8 @@ public class Media extends DomainResource {
}
public boolean isEmpty() {
return super.isEmpty() && (identifier == null || identifier.isEmpty()) && (type == null || type.isEmpty())
&& (subtype == null || subtype.isEmpty()) && (view == null || view.isEmpty()) && (subject == null || subject.isEmpty())
&& (operator == null || operator.isEmpty()) && (deviceName == null || deviceName.isEmpty())
&& (height == null || height.isEmpty()) && (width == null || width.isEmpty()) && (frames == null || frames.isEmpty())
&& (duration == null || duration.isEmpty()) && (content == null || content.isEmpty());
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( identifier, type, subtype, view
, subject, operator, deviceName, height, width, frames, duration, content);
}
@Override
@ -983,7 +979,7 @@ public class Media extends DomainResource {
* Path: <b>Media.subject</b><br>
* </p>
*/
@SearchParamDefinition(name="subject", path="Media.subject", description="Who/What this Media is a record of", type="reference" )
@SearchParamDefinition(name="subject", path="Media.subject", description="Who/What this Media is a record of", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Device"), @ca.uhn.fhir.model.api.annotation.Compartment(name="Patient"), @ca.uhn.fhir.model.api.annotation.Compartment(name="Practitioner") } )
public static final String SP_SUBJECT = "subject";
/**
* <b>Fluent Client</b> search parameter constant for <b>subject</b>
@ -1055,7 +1051,7 @@ public class Media extends DomainResource {
* Path: <b>Media.operator</b><br>
* </p>
*/
@SearchParamDefinition(name="operator", path="Media.operator", description="The person who generated the image", type="reference" )
@SearchParamDefinition(name="operator", path="Media.operator", description="The person who generated the image", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Practitioner") } )
public static final String SP_OPERATOR = "operator";
/**
* <b>Fluent Client</b> search parameter constant for <b>operator</b>

View File

@ -29,7 +29,7 @@ package org.hl7.fhir.dstu3.model;
*/
// Generated on Sat, Jan 30, 2016 09:18-0500 for FHIR v1.3.0
// Generated on Fri, Apr 1, 2016 17:57-0400 for FHIR v1.4.0
import java.util.*;
@ -39,9 +39,8 @@ import ca.uhn.fhir.model.api.annotation.SearchParamDefinition;
import ca.uhn.fhir.model.api.annotation.Child;
import ca.uhn.fhir.model.api.annotation.Description;
import ca.uhn.fhir.model.api.annotation.Block;
import org.hl7.fhir.dstu3.exceptions.FHIRException;
import org.hl7.fhir.instance.model.api.*;
import org.hl7.fhir.dstu3.exceptions.FHIRException;
/**
* This resource is primarily used for the identification and definition of a medication. It covers the ingredients and the packaging for a medication.
*/
@ -258,8 +257,7 @@ public class Medication extends DomainResource {
}
public boolean isEmpty() {
return super.isEmpty() && (form == null || form.isEmpty()) && (ingredient == null || ingredient.isEmpty())
&& (batch == null || batch.isEmpty());
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( form, ingredient, batch);
}
public String fhirType() {
@ -274,14 +272,9 @@ public class Medication extends DomainResource {
/**
* The actual ingredient - either a substance (simple ingredient) or another medication.
*/
@Child(name = "item", type = {Substance.class, Medication.class}, order=1, min=1, max=1, modifier=false, summary=false)
@Child(name = "item", type = {CodeableConcept.class, Substance.class, Medication.class}, order=1, min=1, max=1, modifier=false, summary=false)
@Description(shortDefinition="The product contained", formalDefinition="The actual ingredient - either a substance (simple ingredient) or another medication." )
protected Reference item;
/**
* The actual object that is the target of the reference (The actual ingredient - either a substance (simple ingredient) or another medication.)
*/
protected Resource itemTarget;
protected Type item;
/**
* Specifies how many (or how much) of the items there are in this Medication. For example, 250 mg per tablet.
@ -290,7 +283,7 @@ public class Medication extends DomainResource {
@Description(shortDefinition="Quantity of ingredient present", formalDefinition="Specifies how many (or how much) of the items there are in this Medication. For example, 250 mg per tablet." )
protected Ratio amount;
private static final long serialVersionUID = -1217232889L;
private static final long serialVersionUID = -651644952L;
/**
* Constructor
@ -302,7 +295,7 @@ public class Medication extends DomainResource {
/**
* Constructor
*/
public MedicationProductIngredientComponent(Reference item) {
public MedicationProductIngredientComponent(Type item) {
super();
this.item = item;
}
@ -310,15 +303,36 @@ public class Medication extends DomainResource {
/**
* @return {@link #item} (The actual ingredient - either a substance (simple ingredient) or another medication.)
*/
public Reference getItem() {
if (this.item == null)
if (Configuration.errorOnAutoCreate())
throw new Error("Attempt to auto-create MedicationProductIngredientComponent.item");
else if (Configuration.doAutoCreate())
this.item = new Reference(); // cc
public Type getItem() {
return this.item;
}
/**
* @return {@link #item} (The actual ingredient - either a substance (simple ingredient) or another medication.)
*/
public CodeableConcept getItemCodeableConcept() throws FHIRException {
if (!(this.item instanceof CodeableConcept))
throw new FHIRException("Type mismatch: the type CodeableConcept was expected, but "+this.item.getClass().getName()+" was encountered");
return (CodeableConcept) this.item;
}
public boolean hasItemCodeableConcept() {
return this.item instanceof CodeableConcept;
}
/**
* @return {@link #item} (The actual ingredient - either a substance (simple ingredient) or another medication.)
*/
public Reference getItemReference() throws FHIRException {
if (!(this.item instanceof Reference))
throw new FHIRException("Type mismatch: the type Reference was expected, but "+this.item.getClass().getName()+" was encountered");
return (Reference) this.item;
}
public boolean hasItemReference() {
return this.item instanceof Reference;
}
public boolean hasItem() {
return this.item != null && !this.item.isEmpty();
}
@ -326,26 +340,11 @@ public class Medication extends DomainResource {
/**
* @param value {@link #item} (The actual ingredient - either a substance (simple ingredient) or another medication.)
*/
public MedicationProductIngredientComponent setItem(Reference value) {
public MedicationProductIngredientComponent setItem(Type value) {
this.item = value;
return this;
}
/**
* @return {@link #item} 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 actual ingredient - either a substance (simple ingredient) or another medication.)
*/
public Resource getItemTarget() {
return this.itemTarget;
}
/**
* @param value {@link #item} 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 actual ingredient - either a substance (simple ingredient) or another medication.)
*/
public MedicationProductIngredientComponent setItemTarget(Resource value) {
this.itemTarget = value;
return this;
}
/**
* @return {@link #amount} (Specifies how many (or how much) of the items there are in this Medication. For example, 250 mg per tablet.)
*/
@ -372,14 +371,14 @@ public class Medication extends DomainResource {
protected void listChildren(List<Property> childrenList) {
super.listChildren(childrenList);
childrenList.add(new Property("item", "Reference(Substance|Medication)", "The actual ingredient - either a substance (simple ingredient) or another medication.", 0, java.lang.Integer.MAX_VALUE, item));
childrenList.add(new Property("item[x]", "CodeableConcept|Reference(Substance|Medication)", "The actual ingredient - either a substance (simple ingredient) or another medication.", 0, java.lang.Integer.MAX_VALUE, item));
childrenList.add(new Property("amount", "Ratio", "Specifies how many (or how much) of the items there are in this Medication. For example, 250 mg per tablet.", 0, java.lang.Integer.MAX_VALUE, amount));
}
@Override
public void setProperty(String name, Base value) throws FHIRException {
if (name.equals("item"))
this.item = castToReference(value); // Reference
if (name.equals("item[x]"))
this.item = (Type) value; // Type
else if (name.equals("amount"))
this.amount = castToRatio(value); // Ratio
else
@ -388,7 +387,11 @@ public class Medication extends DomainResource {
@Override
public Base addChild(String name) throws FHIRException {
if (name.equals("item")) {
if (name.equals("itemCodeableConcept")) {
this.item = new CodeableConcept();
return this.item;
}
else if (name.equals("itemReference")) {
this.item = new Reference();
return this.item;
}
@ -429,8 +432,7 @@ public class Medication extends DomainResource {
}
public boolean isEmpty() {
return super.isEmpty() && (item == null || item.isEmpty()) && (amount == null || amount.isEmpty())
;
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( item, amount);
}
public String fhirType() {
@ -622,8 +624,7 @@ public class Medication extends DomainResource {
}
public boolean isEmpty() {
return super.isEmpty() && (lotNumber == null || lotNumber.isEmpty()) && (expirationDate == null || expirationDate.isEmpty())
;
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( lotNumber, expirationDate);
}
public String fhirType() {
@ -784,8 +785,7 @@ public class Medication extends DomainResource {
}
public boolean isEmpty() {
return super.isEmpty() && (container == null || container.isEmpty()) && (content == null || content.isEmpty())
;
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( container, content);
}
public String fhirType() {
@ -800,14 +800,9 @@ public class Medication extends DomainResource {
/**
* Identifies one of the items in the package.
*/
@Child(name = "item", type = {Medication.class}, order=1, min=1, max=1, modifier=false, summary=false)
@Child(name = "item", type = {CodeableConcept.class, Medication.class}, order=1, min=1, max=1, modifier=false, summary=false)
@Description(shortDefinition="The item in the package", formalDefinition="Identifies one of the items in the package." )
protected Reference item;
/**
* The actual object that is the target of the reference (Identifies one of the items in the package.)
*/
protected Medication itemTarget;
protected Type item;
/**
* The amount of the product that is in the package.
@ -816,7 +811,7 @@ public class Medication extends DomainResource {
@Description(shortDefinition="Quantity present in the package", formalDefinition="The amount of the product that is in the package." )
protected SimpleQuantity amount;
private static final long serialVersionUID = -1150048030L;
private static final long serialVersionUID = 1669610080L;
/**
* Constructor
@ -828,7 +823,7 @@ public class Medication extends DomainResource {
/**
* Constructor
*/
public MedicationPackageContentComponent(Reference item) {
public MedicationPackageContentComponent(Type item) {
super();
this.item = item;
}
@ -836,15 +831,36 @@ public class Medication extends DomainResource {
/**
* @return {@link #item} (Identifies one of the items in the package.)
*/
public Reference getItem() {
if (this.item == null)
if (Configuration.errorOnAutoCreate())
throw new Error("Attempt to auto-create MedicationPackageContentComponent.item");
else if (Configuration.doAutoCreate())
this.item = new Reference(); // cc
public Type getItem() {
return this.item;
}
/**
* @return {@link #item} (Identifies one of the items in the package.)
*/
public CodeableConcept getItemCodeableConcept() throws FHIRException {
if (!(this.item instanceof CodeableConcept))
throw new FHIRException("Type mismatch: the type CodeableConcept was expected, but "+this.item.getClass().getName()+" was encountered");
return (CodeableConcept) this.item;
}
public boolean hasItemCodeableConcept() {
return this.item instanceof CodeableConcept;
}
/**
* @return {@link #item} (Identifies one of the items in the package.)
*/
public Reference getItemReference() throws FHIRException {
if (!(this.item instanceof Reference))
throw new FHIRException("Type mismatch: the type Reference was expected, but "+this.item.getClass().getName()+" was encountered");
return (Reference) this.item;
}
public boolean hasItemReference() {
return this.item instanceof Reference;
}
public boolean hasItem() {
return this.item != null && !this.item.isEmpty();
}
@ -852,31 +868,11 @@ public class Medication extends DomainResource {
/**
* @param value {@link #item} (Identifies one of the items in the package.)
*/
public MedicationPackageContentComponent setItem(Reference value) {
public MedicationPackageContentComponent setItem(Type value) {
this.item = value;
return this;
}
/**
* @return {@link #item} 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 one of the items in the package.)
*/
public Medication getItemTarget() {
if (this.itemTarget == null)
if (Configuration.errorOnAutoCreate())
throw new Error("Attempt to auto-create MedicationPackageContentComponent.item");
else if (Configuration.doAutoCreate())
this.itemTarget = new Medication(); // aa
return this.itemTarget;
}
/**
* @param value {@link #item} 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 one of the items in the package.)
*/
public MedicationPackageContentComponent setItemTarget(Medication value) {
this.itemTarget = value;
return this;
}
/**
* @return {@link #amount} (The amount of the product that is in the package.)
*/
@ -903,14 +899,14 @@ public class Medication extends DomainResource {
protected void listChildren(List<Property> childrenList) {
super.listChildren(childrenList);
childrenList.add(new Property("item", "Reference(Medication)", "Identifies one of the items in the package.", 0, java.lang.Integer.MAX_VALUE, item));
childrenList.add(new Property("item[x]", "CodeableConcept|Reference(Medication)", "Identifies one of the items in the package.", 0, java.lang.Integer.MAX_VALUE, item));
childrenList.add(new Property("amount", "SimpleQuantity", "The amount of the product that is in the package.", 0, java.lang.Integer.MAX_VALUE, amount));
}
@Override
public void setProperty(String name, Base value) throws FHIRException {
if (name.equals("item"))
this.item = castToReference(value); // Reference
if (name.equals("item[x]"))
this.item = (Type) value; // Type
else if (name.equals("amount"))
this.amount = castToSimpleQuantity(value); // SimpleQuantity
else
@ -919,7 +915,11 @@ public class Medication extends DomainResource {
@Override
public Base addChild(String name) throws FHIRException {
if (name.equals("item")) {
if (name.equals("itemCodeableConcept")) {
this.item = new CodeableConcept();
return this.item;
}
else if (name.equals("itemReference")) {
this.item = new Reference();
return this.item;
}
@ -960,8 +960,7 @@ public class Medication extends DomainResource {
}
public boolean isEmpty() {
return super.isEmpty() && (item == null || item.isEmpty()) && (amount == null || amount.isEmpty())
;
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( item, amount);
}
public String fhirType() {
@ -1273,9 +1272,8 @@ public class Medication extends DomainResource {
}
public boolean isEmpty() {
return super.isEmpty() && (code == null || code.isEmpty()) && (isBrand == null || isBrand.isEmpty())
&& (manufacturer == null || manufacturer.isEmpty()) && (product == null || product.isEmpty())
&& (package_ == null || package_.isEmpty());
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( code, isBrand, manufacturer, product
, package_);
}
@Override
@ -1283,6 +1281,26 @@ public class Medication extends DomainResource {
return ResourceType.Medication;
}
/**
* Search parameter: <b>ingredient-code</b>
* <p>
* Description: <b>The product contained</b><br>
* Type: <b>token</b><br>
* Path: <b>Medication.product.ingredient.itemCodeableConcept</b><br>
* </p>
*/
@SearchParamDefinition(name="ingredient-code", path="Medication.product.ingredient.itemCodeableConcept", description="The product contained", type="token" )
public static final String SP_INGREDIENT_CODE = "ingredient-code";
/**
* <b>Fluent Client</b> search parameter constant for <b>ingredient-code</b>
* <p>
* Description: <b>The product contained</b><br>
* Type: <b>token</b><br>
* Path: <b>Medication.product.ingredient.itemCodeableConcept</b><br>
* </p>
*/
public static final ca.uhn.fhir.rest.gclient.TokenClientParam INGREDIENT_CODE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_INGREDIENT_CODE);
/**
* Search parameter: <b>container</b>
* <p>
@ -1303,6 +1321,32 @@ public class Medication extends DomainResource {
*/
public static final ca.uhn.fhir.rest.gclient.TokenClientParam CONTAINER = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CONTAINER);
/**
* Search parameter: <b>package-item</b>
* <p>
* Description: <b>The item in the package</b><br>
* Type: <b>reference</b><br>
* Path: <b>Medication.package.content.itemReference</b><br>
* </p>
*/
@SearchParamDefinition(name="package-item", path="Medication.package.content.itemReference", description="The item in the package", type="reference" )
public static final String SP_PACKAGE_ITEM = "package-item";
/**
* <b>Fluent Client</b> search parameter constant for <b>package-item</b>
* <p>
* Description: <b>The item in the package</b><br>
* Type: <b>reference</b><br>
* Path: <b>Medication.package.content.itemReference</b><br>
* </p>
*/
public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PACKAGE_ITEM = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_PACKAGE_ITEM);
/**
* Constant for fluent queries to be used to add include statements. Specifies
* the path value of "<b>Medication:package-item</b>".
*/
public static final ca.uhn.fhir.model.api.Include INCLUDE_PACKAGE_ITEM = new ca.uhn.fhir.model.api.Include("Medication:package-item").toLocked();
/**
* Search parameter: <b>code</b>
* <p>
@ -1328,17 +1372,17 @@ public class Medication extends DomainResource {
* <p>
* Description: <b>The product contained</b><br>
* Type: <b>reference</b><br>
* Path: <b>Medication.product.ingredient.item</b><br>
* Path: <b>Medication.product.ingredient.itemReference</b><br>
* </p>
*/
@SearchParamDefinition(name="ingredient", path="Medication.product.ingredient.item", description="The product contained", type="reference" )
@SearchParamDefinition(name="ingredient", path="Medication.product.ingredient.itemReference", description="The product contained", type="reference" )
public static final String SP_INGREDIENT = "ingredient";
/**
* <b>Fluent Client</b> search parameter constant for <b>ingredient</b>
* <p>
* Description: <b>The product contained</b><br>
* Type: <b>reference</b><br>
* Path: <b>Medication.product.ingredient.item</b><br>
* Path: <b>Medication.product.ingredient.itemReference</b><br>
* </p>
*/
public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam INGREDIENT = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_INGREDIENT);
@ -1370,30 +1414,24 @@ public class Medication extends DomainResource {
public static final ca.uhn.fhir.rest.gclient.TokenClientParam FORM = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_FORM);
/**
* Search parameter: <b>packageitem</b>
* Search parameter: <b>package-item-code</b>
* <p>
* Description: <b>The item in the package</b><br>
* Type: <b>reference</b><br>
* Path: <b>Medication.package.content.item</b><br>
* Type: <b>token</b><br>
* Path: <b>Medication.package.content.itemCodeableConcept</b><br>
* </p>
*/
@SearchParamDefinition(name="packageitem", path="Medication.package.content.item", description="The item in the package", type="reference" )
public static final String SP_PACKAGEITEM = "packageitem";
@SearchParamDefinition(name="package-item-code", path="Medication.package.content.itemCodeableConcept", description="The item in the package", type="token" )
public static final String SP_PACKAGE_ITEM_CODE = "package-item-code";
/**
* <b>Fluent Client</b> search parameter constant for <b>packageitem</b>
* <b>Fluent Client</b> search parameter constant for <b>package-item-code</b>
* <p>
* Description: <b>The item in the package</b><br>
* Type: <b>reference</b><br>
* Path: <b>Medication.package.content.item</b><br>
* Type: <b>token</b><br>
* Path: <b>Medication.package.content.itemCodeableConcept</b><br>
* </p>
*/
public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam PACKAGEITEM = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_PACKAGEITEM);
/**
* Constant for fluent queries to be used to add include statements. Specifies
* the path value of "<b>Medication:packageitem</b>".
*/
public static final ca.uhn.fhir.model.api.Include INCLUDE_PACKAGEITEM = new ca.uhn.fhir.model.api.Include("Medication:packageitem").toLocked();
public static final ca.uhn.fhir.rest.gclient.TokenClientParam PACKAGE_ITEM_CODE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_PACKAGE_ITEM_CODE);
/**
* Search parameter: <b>manufacturer</b>

View File

@ -29,7 +29,7 @@ package org.hl7.fhir.dstu3.model;
*/
// Generated on Sat, Jan 30, 2016 09:18-0500 for FHIR v1.3.0
// Generated on Fri, Apr 1, 2016 17:57-0400 for FHIR v1.4.0
import java.util.*;
@ -39,9 +39,8 @@ import ca.uhn.fhir.model.api.annotation.SearchParamDefinition;
import ca.uhn.fhir.model.api.annotation.Child;
import ca.uhn.fhir.model.api.annotation.Description;
import ca.uhn.fhir.model.api.annotation.Block;
import org.hl7.fhir.dstu3.exceptions.FHIRException;
import org.hl7.fhir.instance.model.api.*;
import org.hl7.fhir.dstu3.exceptions.FHIRException;
/**
* Describes the event of a patient consuming or otherwise being administered a medication. This may be as simple as swallowing a tablet or it may be a long running infusion. Related resources tie this event to the authorizing prescription, and the specific encounter between patient and health care practitioner.
*/
@ -189,7 +188,7 @@ public class MedicationAdministration extends DomainResource {
* Free text dosage instructions can be used for cases where the instructions are too complex to code. When coded instructions are present, the free text instructions may still be present for display to humans taking or administering the medication.
*/
@Child(name = "text", type = {StringType.class}, order=1, min=0, max=1, modifier=false, summary=true)
@Description(shortDefinition="Dosage Instructions", formalDefinition="Free text dosage instructions can be used for cases where the instructions are too complex to code. When coded instructions are present, the free text instructions may still be present for display to humans taking or administering the medication." )
@Description(shortDefinition="Free text dosage instructions e.g. SIG", formalDefinition="Free text dosage instructions can be used for cases where the instructions are too complex to code. When coded instructions are present, the free text instructions may still be present for display to humans taking or administering the medication." )
protected StringType text;
/**
@ -547,9 +546,8 @@ public class MedicationAdministration extends DomainResource {
}
public boolean isEmpty() {
return super.isEmpty() && (text == null || text.isEmpty()) && (site == null || site.isEmpty())
&& (route == null || route.isEmpty()) && (method == null || method.isEmpty()) && (quantity == null || quantity.isEmpty())
&& (rate == null || rate.isEmpty());
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( text, site, route, method, quantity
, rate);
}
public String fhirType() {
@ -1488,13 +1486,9 @@ public class MedicationAdministration extends DomainResource {
}
public boolean isEmpty() {
return super.isEmpty() && (identifier == null || identifier.isEmpty()) && (status == null || status.isEmpty())
&& (medication == null || medication.isEmpty()) && (patient == null || patient.isEmpty())
&& (encounter == null || encounter.isEmpty()) && (effectiveTime == null || effectiveTime.isEmpty())
&& (practitioner == null || practitioner.isEmpty()) && (prescription == null || prescription.isEmpty())
&& (wasNotGiven == null || wasNotGiven.isEmpty()) && (reasonNotGiven == null || reasonNotGiven.isEmpty())
&& (reasonGiven == null || reasonGiven.isEmpty()) && (device == null || device.isEmpty())
&& (note == null || note.isEmpty()) && (dosage == null || dosage.isEmpty());
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( identifier, status, medication
, patient, encounter, effectiveTime, practitioner, prescription, wasNotGiven, reasonNotGiven
, reasonGiven, device, note, dosage);
}
@Override
@ -1596,7 +1590,7 @@ public class MedicationAdministration extends DomainResource {
* Path: <b>MedicationAdministration.practitioner</b><br>
* </p>
*/
@SearchParamDefinition(name="practitioner", path="MedicationAdministration.practitioner", description="Who administered substance", type="reference" )
@SearchParamDefinition(name="practitioner", path="MedicationAdministration.practitioner", description="Who administered substance", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Practitioner") } )
public static final String SP_PRACTITIONER = "practitioner";
/**
* <b>Fluent Client</b> search parameter constant for <b>practitioner</b>
@ -1622,7 +1616,7 @@ public class MedicationAdministration extends DomainResource {
* Path: <b>MedicationAdministration.patient</b><br>
* </p>
*/
@SearchParamDefinition(name="patient", path="MedicationAdministration.patient", description="The identity of a patient to list administrations for", type="reference" )
@SearchParamDefinition(name="patient", path="MedicationAdministration.patient", description="The identity of a patient to list administrations for", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Patient") } )
public static final String SP_PATIENT = "patient";
/**
* <b>Fluent Client</b> search parameter constant for <b>patient</b>
@ -1694,7 +1688,7 @@ public class MedicationAdministration extends DomainResource {
* Path: <b>MedicationAdministration.encounter</b><br>
* </p>
*/
@SearchParamDefinition(name="encounter", path="MedicationAdministration.encounter", description="Return administrations that share this encounter", type="reference" )
@SearchParamDefinition(name="encounter", path="MedicationAdministration.encounter", description="Return administrations that share this encounter", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Encounter") } )
public static final String SP_ENCOUNTER = "encounter";
/**
* <b>Fluent Client</b> search parameter constant for <b>encounter</b>
@ -1720,7 +1714,7 @@ public class MedicationAdministration extends DomainResource {
* Path: <b>MedicationAdministration.device</b><br>
* </p>
*/
@SearchParamDefinition(name="device", path="MedicationAdministration.device", description="Return administrations with this administration device identity", type="reference" )
@SearchParamDefinition(name="device", path="MedicationAdministration.device", description="Return administrations with this administration device identity", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Device") } )
public static final String SP_DEVICE = "device";
/**
* <b>Fluent Client</b> search parameter constant for <b>device</b>

View File

@ -29,7 +29,7 @@ package org.hl7.fhir.dstu3.model;
*/
// Generated on Sat, Jan 30, 2016 09:18-0500 for FHIR v1.3.0
// Generated on Fri, Apr 1, 2016 17:57-0400 for FHIR v1.4.0
import java.util.*;
@ -39,9 +39,8 @@ import ca.uhn.fhir.model.api.annotation.SearchParamDefinition;
import ca.uhn.fhir.model.api.annotation.Child;
import ca.uhn.fhir.model.api.annotation.Description;
import ca.uhn.fhir.model.api.annotation.Block;
import org.hl7.fhir.dstu3.exceptions.FHIRException;
import org.hl7.fhir.instance.model.api.*;
import org.hl7.fhir.dstu3.exceptions.FHIRException;
/**
* Indicates that a medication product is to be or has been dispensed for a named person/patient. This includes a description of the medication product (supply) provided and the instructions for administering the medication. The medication dispense is the result of a pharmacy system responding to a medication order.
*/
@ -764,11 +763,8 @@ Specifically if 'boolean' datatype is selected, then the following logic applies
}
public boolean isEmpty() {
return super.isEmpty() && (text == null || text.isEmpty()) && (additionalInstructions == null || additionalInstructions.isEmpty())
&& (timing == null || timing.isEmpty()) && (asNeeded == null || asNeeded.isEmpty()) && (site == null || site.isEmpty())
&& (route == null || route.isEmpty()) && (method == null || method.isEmpty()) && (dose == null || dose.isEmpty())
&& (rate == null || rate.isEmpty()) && (maxDosePerPeriod == null || maxDosePerPeriod.isEmpty())
;
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( text, additionalInstructions, timing
, asNeeded, site, route, method, dose, rate, maxDosePerPeriod);
}
public String fhirType() {
@ -1022,8 +1018,8 @@ Specifically if 'boolean' datatype is selected, then the following logic applies
}
public boolean isEmpty() {
return super.isEmpty() && (type == null || type.isEmpty()) && (reason == null || reason.isEmpty())
&& (responsibleParty == null || responsibleParty.isEmpty());
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( type, reason, responsibleParty
);
}
public String fhirType() {
@ -1157,10 +1153,10 @@ Specifically if 'boolean' datatype is selected, then the following logic applies
protected List<Annotation> note;
/**
* Indicates how the medication is to be used by the patient.
* Indicates how the medication is to be used by the patient. The pharmacist reviews the medication order prior to dispense and updates the dosageInstruction based on the actual product being dispensed.
*/
@Child(name = "dosageInstruction", type = {}, order=14, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
@Description(shortDefinition="Medicine administration instructions to the patient/caregiver", formalDefinition="Indicates how the medication is to be used by the patient." )
@Description(shortDefinition="Medicine administration instructions to the patient/caregiver", formalDefinition="Indicates how the medication is to be used by the patient. The pharmacist reviews the medication order prior to dispense and updates the dosageInstruction based on the actual product being dispensed." )
protected List<MedicationDispenseDosageInstructionComponent> dosageInstruction;
/**
@ -1758,7 +1754,7 @@ Specifically if 'boolean' datatype is selected, then the following logic applies
}
/**
* @return {@link #dosageInstruction} (Indicates how the medication is to be used by the patient.)
* @return {@link #dosageInstruction} (Indicates how the medication is to be used by the patient. The pharmacist reviews the medication order prior to dispense and updates the dosageInstruction based on the actual product being dispensed.)
*/
public List<MedicationDispenseDosageInstructionComponent> getDosageInstruction() {
if (this.dosageInstruction == null)
@ -1776,7 +1772,7 @@ Specifically if 'boolean' datatype is selected, then the following logic applies
}
/**
* @return {@link #dosageInstruction} (Indicates how the medication is to be used by the patient.)
* @return {@link #dosageInstruction} (Indicates how the medication is to be used by the patient. The pharmacist reviews the medication order prior to dispense and updates the dosageInstruction based on the actual product being dispensed.)
*/
// syntactic sugar
public MedicationDispenseDosageInstructionComponent addDosageInstruction() { //3
@ -1837,7 +1833,7 @@ Specifically if 'boolean' datatype is selected, then the following logic applies
childrenList.add(new Property("destination", "Reference(Location)", "Identification of the facility/location where the medication was shipped to, as part of the dispense event.", 0, java.lang.Integer.MAX_VALUE, destination));
childrenList.add(new Property("receiver", "Reference(Patient|Practitioner)", "Identifies the person who picked up the medication. This will usually be a patient or their caregiver, but some cases exist where it can be a healthcare professional.", 0, java.lang.Integer.MAX_VALUE, receiver));
childrenList.add(new Property("note", "Annotation", "Extra information about the dispense that could not be conveyed in the other attributes.", 0, java.lang.Integer.MAX_VALUE, note));
childrenList.add(new Property("dosageInstruction", "", "Indicates how the medication is to be used by the patient.", 0, java.lang.Integer.MAX_VALUE, dosageInstruction));
childrenList.add(new Property("dosageInstruction", "", "Indicates how the medication is to be used by the patient. The pharmacist reviews the medication order prior to dispense and updates the dosageInstruction based on the actual product being dispensed.", 0, java.lang.Integer.MAX_VALUE, dosageInstruction));
childrenList.add(new Property("substitution", "", "Indicates whether or not substitution was made as part of the dispense. In some cases substitution will be expected but does not happen, in other cases substitution is not expected but does happen. This block explains what substitution did or did not happen and why.", 0, java.lang.Integer.MAX_VALUE, substitution));
}
@ -2021,14 +2017,9 @@ Specifically if 'boolean' datatype is selected, then the following logic applies
}
public boolean isEmpty() {
return super.isEmpty() && (identifier == null || identifier.isEmpty()) && (status == null || status.isEmpty())
&& (medication == null || medication.isEmpty()) && (patient == null || patient.isEmpty())
&& (dispenser == null || dispenser.isEmpty()) && (authorizingPrescription == null || authorizingPrescription.isEmpty())
&& (type == null || type.isEmpty()) && (quantity == null || quantity.isEmpty()) && (daysSupply == null || daysSupply.isEmpty())
&& (whenPrepared == null || whenPrepared.isEmpty()) && (whenHandedOver == null || whenHandedOver.isEmpty())
&& (destination == null || destination.isEmpty()) && (receiver == null || receiver.isEmpty())
&& (note == null || note.isEmpty()) && (dosageInstruction == null || dosageInstruction.isEmpty())
&& (substitution == null || substitution.isEmpty());
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( identifier, status, medication
, patient, dispenser, authorizingPrescription, type, quantity, daysSupply, whenPrepared
, whenHandedOver, destination, receiver, note, dosageInstruction, substitution);
}
@Override
@ -2084,7 +2075,7 @@ Specifically if 'boolean' datatype is selected, then the following logic applies
* Path: <b>MedicationDispense.receiver</b><br>
* </p>
*/
@SearchParamDefinition(name="receiver", path="MedicationDispense.receiver", description="Who collected the medication", type="reference" )
@SearchParamDefinition(name="receiver", path="MedicationDispense.receiver", description="Who collected the medication", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Practitioner") } )
public static final String SP_RECEIVER = "receiver";
/**
* <b>Fluent Client</b> search parameter constant for <b>receiver</b>
@ -2162,7 +2153,7 @@ Specifically if 'boolean' datatype is selected, then the following logic applies
* Path: <b>MedicationDispense.substitution.responsibleParty</b><br>
* </p>
*/
@SearchParamDefinition(name="responsibleparty", path="MedicationDispense.substitution.responsibleParty", description="Return all dispenses with the specified responsible party", type="reference" )
@SearchParamDefinition(name="responsibleparty", path="MedicationDispense.substitution.responsibleParty", description="Return all dispenses with the specified responsible party", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Practitioner") } )
public static final String SP_RESPONSIBLEPARTY = "responsibleparty";
/**
* <b>Fluent Client</b> search parameter constant for <b>responsibleparty</b>
@ -2248,7 +2239,7 @@ Specifically if 'boolean' datatype is selected, then the following logic applies
* Path: <b>MedicationDispense.dispenser</b><br>
* </p>
*/
@SearchParamDefinition(name="dispenser", path="MedicationDispense.dispenser", description="Return all dispenses performed by a specific individual", type="reference" )
@SearchParamDefinition(name="dispenser", path="MedicationDispense.dispenser", description="Return all dispenses performed by a specific individual", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Practitioner") } )
public static final String SP_DISPENSER = "dispenser";
/**
* <b>Fluent Client</b> search parameter constant for <b>dispenser</b>
@ -2300,7 +2291,7 @@ Specifically if 'boolean' datatype is selected, then the following logic applies
* Path: <b>MedicationDispense.patient</b><br>
* </p>
*/
@SearchParamDefinition(name="patient", path="MedicationDispense.patient", description="The identity of a patient to list dispenses for", type="reference" )
@SearchParamDefinition(name="patient", path="MedicationDispense.patient", description="The identity of a patient to list dispenses for", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Patient") } )
public static final String SP_PATIENT = "patient";
/**
* <b>Fluent Client</b> search parameter constant for <b>patient</b>

View File

@ -29,7 +29,7 @@ package org.hl7.fhir.dstu3.model;
*/
// Generated on Sat, Jan 30, 2016 09:18-0500 for FHIR v1.3.0
// Generated on Fri, Apr 1, 2016 17:57-0400 for FHIR v1.4.0
import java.util.*;
@ -39,9 +39,8 @@ import ca.uhn.fhir.model.api.annotation.SearchParamDefinition;
import ca.uhn.fhir.model.api.annotation.Child;
import ca.uhn.fhir.model.api.annotation.Description;
import ca.uhn.fhir.model.api.annotation.Block;
import org.hl7.fhir.dstu3.exceptions.FHIRException;
import org.hl7.fhir.instance.model.api.*;
import org.hl7.fhir.dstu3.exceptions.FHIRException;
/**
* An order for both supply of the medication and the instructions for administration of the medication to a patient. The resource is called "MedicationOrder" rather than "MedicationPrescription" to generalize the use across inpatient and outpatient settings as well as for care plans, etc.
*/
@ -205,7 +204,7 @@ public class MedicationOrder extends DomainResource {
* Free text dosage instructions can be used for cases where the instructions are too complex to code. The content of this attribute does not include the name or description of the medication. When coded instructions are present, the free text instructions may still be present for display to humans taking or administering the medication. It is expected that the text instructions will always be populated. If the dosage.timing attribute is also populated, then the dosage.text should reflect the same information as the timing.
*/
@Child(name = "text", type = {StringType.class}, order=1, min=0, max=1, modifier=false, summary=true)
@Description(shortDefinition="Dosage instructions expressed as text", formalDefinition="Free text dosage instructions can be used for cases where the instructions are too complex to code. The content of this attribute does not include the name or description of the medication. When coded instructions are present, the free text instructions may still be present for display to humans taking or administering the medication. It is expected that the text instructions will always be populated. If the dosage.timing attribute is also populated, then the dosage.text should reflect the same information as the timing." )
@Description(shortDefinition="Free text dosage instructions e.g. SIG", formalDefinition="Free text dosage instructions can be used for cases where the instructions are too complex to code. The content of this attribute does not include the name or description of the medication. When coded instructions are present, the free text instructions may still be present for display to humans taking or administering the medication. It is expected that the text instructions will always be populated. If the dosage.timing attribute is also populated, then the dosage.text should reflect the same information as the timing." )
protected StringType text;
/**
@ -260,7 +259,7 @@ public class MedicationOrder extends DomainResource {
/**
* Identifies the speed with which the medication was or will be introduced into the patient. Typically the rate for an infusion e.g. 100 ml per 1 hour or 100 ml/hr. May also be expressed as a rate per unit of time e.g. 500 ml per 2 hours. Currently we do not specify a default of '1' in the denominator, but this is being discussed. Other examples: 200 mcg/min or 200 mcg/1 minute; 1 liter/8 hours.
*/
@Child(name = "rate", type = {Ratio.class, Range.class}, order=9, min=0, max=1, modifier=false, summary=true)
@Child(name = "rate", type = {Ratio.class, Range.class, SimpleQuantity.class}, order=9, min=0, max=1, modifier=false, summary=true)
@Description(shortDefinition="Amount of medication per unit of time", formalDefinition="Identifies the speed with which the medication was or will be introduced into the patient. Typically the rate for an infusion e.g. 100 ml per 1 hour or 100 ml/hr. May also be expressed as a rate per unit of time e.g. 500 ml per 2 hours. Currently we do not specify a default of '1' in the denominator, but this is being discussed. Other examples: 200 mcg/min or 200 mcg/1 minute; 1 liter/8 hours." )
protected Type rate;
@ -593,6 +592,19 @@ public class MedicationOrder extends DomainResource {
return this.rate instanceof Range;
}
/**
* @return {@link #rate} (Identifies the speed with which the medication was or will be introduced into the patient. Typically the rate for an infusion e.g. 100 ml per 1 hour or 100 ml/hr. May also be expressed as a rate per unit of time e.g. 500 ml per 2 hours. Currently we do not specify a default of '1' in the denominator, but this is being discussed. Other examples: 200 mcg/min or 200 mcg/1 minute; 1 liter/8 hours.)
*/
public SimpleQuantity getRateSimpleQuantity() throws FHIRException {
if (!(this.rate instanceof SimpleQuantity))
throw new FHIRException("Type mismatch: the type SimpleQuantity was expected, but "+this.rate.getClass().getName()+" was encountered");
return (SimpleQuantity) this.rate;
}
public boolean hasRateSimpleQuantity() {
return this.rate instanceof SimpleQuantity;
}
public boolean hasRate() {
return this.rate != null && !this.rate.isEmpty();
}
@ -639,7 +651,7 @@ public class MedicationOrder extends DomainResource {
childrenList.add(new Property("route", "CodeableConcept", "A code specifying the route or physiological path of administration of a therapeutic agent into or onto a patient's body.", 0, java.lang.Integer.MAX_VALUE, route));
childrenList.add(new Property("method", "CodeableConcept", "A coded value indicating the method by which the medication is introduced into or onto the body. Most commonly used for injections. For examples, Slow Push; Deep IV.", 0, java.lang.Integer.MAX_VALUE, method));
childrenList.add(new Property("dose[x]", "Range|SimpleQuantity", "The amount of therapeutic or other substance given at one administration event.", 0, java.lang.Integer.MAX_VALUE, dose));
childrenList.add(new Property("rate[x]", "Ratio|Range", "Identifies the speed with which the medication was or will be introduced into the patient. Typically the rate for an infusion e.g. 100 ml per 1 hour or 100 ml/hr. May also be expressed as a rate per unit of time e.g. 500 ml per 2 hours. Currently we do not specify a default of '1' in the denominator, but this is being discussed. Other examples: 200 mcg/min or 200 mcg/1 minute; 1 liter/8 hours.", 0, java.lang.Integer.MAX_VALUE, rate));
childrenList.add(new Property("rate[x]", "Ratio|Range|SimpleQuantity", "Identifies the speed with which the medication was or will be introduced into the patient. Typically the rate for an infusion e.g. 100 ml per 1 hour or 100 ml/hr. May also be expressed as a rate per unit of time e.g. 500 ml per 2 hours. Currently we do not specify a default of '1' in the denominator, but this is being discussed. Other examples: 200 mcg/min or 200 mcg/1 minute; 1 liter/8 hours.", 0, java.lang.Integer.MAX_VALUE, rate));
childrenList.add(new Property("maxDosePerPeriod", "Ratio", "The maximum total quantity of a therapeutic substance that may be administered to a subject over the period of time. For example, 1000mg in 24 hours.", 0, java.lang.Integer.MAX_VALUE, maxDosePerPeriod));
}
@ -722,6 +734,10 @@ public class MedicationOrder extends DomainResource {
this.rate = new Range();
return this.rate;
}
else if (name.equals("rateSimpleQuantity")) {
this.rate = new SimpleQuantity();
return this.rate;
}
else if (name.equals("maxDosePerPeriod")) {
this.maxDosePerPeriod = new Ratio();
return this.maxDosePerPeriod;
@ -770,11 +786,8 @@ public class MedicationOrder extends DomainResource {
}
public boolean isEmpty() {
return super.isEmpty() && (text == null || text.isEmpty()) && (additionalInstructions == null || additionalInstructions.isEmpty())
&& (timing == null || timing.isEmpty()) && (asNeeded == null || asNeeded.isEmpty()) && (site == null || site.isEmpty())
&& (route == null || route.isEmpty()) && (method == null || method.isEmpty()) && (dose == null || dose.isEmpty())
&& (rate == null || rate.isEmpty()) && (maxDosePerPeriod == null || maxDosePerPeriod.isEmpty())
;
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( text, additionalInstructions, timing
, asNeeded, site, route, method, dose, rate, maxDosePerPeriod);
}
public String fhirType() {
@ -1080,9 +1093,8 @@ public class MedicationOrder extends DomainResource {
}
public boolean isEmpty() {
return super.isEmpty() && (medication == null || medication.isEmpty()) && (validityPeriod == null || validityPeriod.isEmpty())
&& (numberOfRepeatsAllowed == null || numberOfRepeatsAllowed.isEmpty()) && (quantity == null || quantity.isEmpty())
&& (expectedSupplyDuration == null || expectedSupplyDuration.isEmpty());
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( medication, validityPeriod, numberOfRepeatsAllowed
, quantity, expectedSupplyDuration);
}
public String fhirType() {
@ -1232,8 +1244,7 @@ public class MedicationOrder extends DomainResource {
}
public boolean isEmpty() {
return super.isEmpty() && (type == null || type.isEmpty()) && (reason == null || reason.isEmpty())
;
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( type, reason);
}
public String fhirType() {
@ -1310,56 +1321,68 @@ public class MedicationOrder extends DomainResource {
/**
* Can be the reason or the indication for writing the prescription.
*/
@Child(name = "reason", type = {CodeableConcept.class, Condition.class}, order=7, min=0, max=1, modifier=false, summary=true)
@Child(name = "reasonCode", type = {CodeableConcept.class}, order=7, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
@Description(shortDefinition="Reason or indication for writing the prescription", formalDefinition="Can be the reason or the indication for writing the prescription." )
protected Type reason;
protected List<CodeableConcept> reasonCode;
/**
* Condition that supports why the prescription is being written.
*/
@Child(name = "reasonReference", type = {Condition.class}, order=8, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
@Description(shortDefinition="Condition that supports why the prescription is being written", formalDefinition="Condition that supports why the prescription is being written." )
protected List<Reference> reasonReference;
/**
* The actual objects that are the target of the reference (Condition that supports why the prescription is being written.)
*/
protected List<Condition> reasonReferenceTarget;
/**
* The date (and perhaps time) when the prescription was stopped.
*/
@Child(name = "dateEnded", type = {DateTimeType.class}, order=8, min=0, max=1, modifier=false, summary=true)
@Child(name = "dateEnded", type = {DateTimeType.class}, order=9, min=0, max=1, modifier=false, summary=true)
@Description(shortDefinition="When prescription was stopped", formalDefinition="The date (and perhaps time) when the prescription was stopped." )
protected DateTimeType dateEnded;
/**
* The reason why the prescription was stopped, if it was.
*/
@Child(name = "reasonEnded", type = {CodeableConcept.class}, order=9, min=0, max=1, modifier=false, summary=true)
@Child(name = "reasonEnded", type = {CodeableConcept.class}, order=10, min=0, max=1, modifier=false, summary=true)
@Description(shortDefinition="Why prescription was stopped", formalDefinition="The reason why the prescription was stopped, if it was." )
protected CodeableConcept reasonEnded;
/**
* Extra information about the prescription that could not be conveyed by the other attributes.
*/
@Child(name = "note", type = {Annotation.class}, order=10, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
@Child(name = "note", type = {Annotation.class}, order=11, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
@Description(shortDefinition="Information about the prescription", formalDefinition="Extra information about the prescription that could not be conveyed by the other attributes." )
protected List<Annotation> note;
/**
* Indicates how the medication is to be used by the patient.
*/
@Child(name = "dosageInstruction", type = {}, order=11, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
@Child(name = "dosageInstruction", type = {}, order=12, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
@Description(shortDefinition="How medication should be taken", formalDefinition="Indicates how the medication is to be used by the patient." )
protected List<MedicationOrderDosageInstructionComponent> dosageInstruction;
/**
* Indicates the specific details for the dispense or medication supply part of a medication order (also known as a Medication Prescription). Note that this information is NOT always sent with the order. There may be in some settings (e.g. hospitals) institutional or system support for completing the dispense details in the pharmacy department.
*/
@Child(name = "dispenseRequest", type = {}, order=12, min=0, max=1, modifier=false, summary=true)
@Child(name = "dispenseRequest", type = {}, order=13, min=0, max=1, modifier=false, summary=true)
@Description(shortDefinition="Medication supply authorization", formalDefinition="Indicates the specific details for the dispense or medication supply part of a medication order (also known as a Medication Prescription). Note that this information is NOT always sent with the order. There may be in some settings (e.g. hospitals) institutional or system support for completing the dispense details in the pharmacy department." )
protected MedicationOrderDispenseRequestComponent dispenseRequest;
/**
* Indicates whether or not substitution can or should be part of the dispense. In some cases substitution must happen, in other cases substitution must not happen, and in others it does not matter. This block explains the prescriber's intent. If nothing is specified substitution may be done.
*/
@Child(name = "substitution", type = {}, order=13, min=0, max=1, modifier=false, summary=true)
@Child(name = "substitution", type = {}, order=14, min=0, max=1, modifier=false, summary=true)
@Description(shortDefinition="Any restrictions on medication substitution", formalDefinition="Indicates whether or not substitution can or should be part of the dispense. In some cases substitution must happen, in other cases substitution must not happen, and in others it does not matter. This block explains the prescriber's intent. If nothing is specified substitution may be done." )
protected MedicationOrderSubstitutionComponent substitution;
/**
* A link to a resource representing an earlier order or prescription that this order supersedes.
*/
@Child(name = "priorPrescription", type = {MedicationOrder.class}, order=14, min=0, max=1, modifier=false, summary=true)
@Child(name = "priorPrescription", type = {MedicationOrder.class}, order=15, min=0, max=1, modifier=false, summary=true)
@Description(shortDefinition="An order/prescription that this supersedes", formalDefinition="A link to a resource representing an earlier order or prescription that this order supersedes." )
protected Reference priorPrescription;
@ -1368,7 +1391,7 @@ public class MedicationOrder extends DomainResource {
*/
protected MedicationOrder priorPrescriptionTarget;
private static final long serialVersionUID = 1534564169L;
private static final long serialVersionUID = -1031457736L;
/**
* Constructor
@ -1701,50 +1724,106 @@ public class MedicationOrder extends DomainResource {
}
/**
* @return {@link #reason} (Can be the reason or the indication for writing the prescription.)
* @return {@link #reasonCode} (Can be the reason or the indication for writing the prescription.)
*/
public Type getReason() {
return this.reason;
public List<CodeableConcept> getReasonCode() {
if (this.reasonCode == null)
this.reasonCode = new ArrayList<CodeableConcept>();
return this.reasonCode;
}
public boolean hasReasonCode() {
if (this.reasonCode == null)
return false;
for (CodeableConcept item : this.reasonCode)
if (!item.isEmpty())
return true;
return false;
}
/**
* @return {@link #reason} (Can be the reason or the indication for writing the prescription.)
* @return {@link #reasonCode} (Can be the reason or the indication for writing the prescription.)
*/
public CodeableConcept getReasonCodeableConcept() throws FHIRException {
if (!(this.reason instanceof CodeableConcept))
throw new FHIRException("Type mismatch: the type CodeableConcept was expected, but "+this.reason.getClass().getName()+" was encountered");
return (CodeableConcept) this.reason;
// syntactic sugar
public CodeableConcept addReasonCode() { //3
CodeableConcept t = new CodeableConcept();
if (this.reasonCode == null)
this.reasonCode = new ArrayList<CodeableConcept>();
this.reasonCode.add(t);
return t;
}
public boolean hasReasonCodeableConcept() {
return this.reason instanceof CodeableConcept;
// syntactic sugar
public MedicationOrder addReasonCode(CodeableConcept t) { //3
if (t == null)
return this;
if (this.reasonCode == null)
this.reasonCode = new ArrayList<CodeableConcept>();
this.reasonCode.add(t);
return this;
}
/**
* @return {@link #reason} (Can be the reason or the indication for writing the prescription.)
* @return {@link #reasonReference} (Condition that supports why the prescription is being written.)
*/
public Reference getReasonReference() throws FHIRException {
if (!(this.reason instanceof Reference))
throw new FHIRException("Type mismatch: the type Reference was expected, but "+this.reason.getClass().getName()+" was encountered");
return (Reference) this.reason;
public List<Reference> getReasonReference() {
if (this.reasonReference == null)
this.reasonReference = new ArrayList<Reference>();
return this.reasonReference;
}
public boolean hasReasonReference() {
return this.reason instanceof Reference;
}
public boolean hasReason() {
return this.reason != null && !this.reason.isEmpty();
if (this.reasonReference == null)
return false;
for (Reference item : this.reasonReference)
if (!item.isEmpty())
return true;
return false;
}
/**
* @param value {@link #reason} (Can be the reason or the indication for writing the prescription.)
* @return {@link #reasonReference} (Condition that supports why the prescription is being written.)
*/
public MedicationOrder setReason(Type value) {
this.reason = value;
// syntactic sugar
public Reference addReasonReference() { //3
Reference t = new Reference();
if (this.reasonReference == null)
this.reasonReference = new ArrayList<Reference>();
this.reasonReference.add(t);
return t;
}
// syntactic sugar
public MedicationOrder addReasonReference(Reference t) { //3
if (t == null)
return this;
if (this.reasonReference == null)
this.reasonReference = new ArrayList<Reference>();
this.reasonReference.add(t);
return this;
}
/**
* @return {@link #reasonReference} (The actual objects that are the target of the reference. The reference library doesn't populate this, but you can use this to hold the resources if you resolvethemt. Condition that supports why the prescription is being written.)
*/
public List<Condition> getReasonReferenceTarget() {
if (this.reasonReferenceTarget == null)
this.reasonReferenceTarget = new ArrayList<Condition>();
return this.reasonReferenceTarget;
}
// syntactic sugar
/**
* @return {@link #reasonReference} (Add an actual object that is the target of the reference. The reference library doesn't use these, but you can use this to hold the resources if you resolvethemt. Condition that supports why the prescription is being written.)
*/
public Condition addReasonReferenceTarget() {
Condition r = new Condition();
if (this.reasonReferenceTarget == null)
this.reasonReferenceTarget = new ArrayList<Condition>();
this.reasonReferenceTarget.add(r);
return r;
}
/**
* @return {@link #dateEnded} (The date (and perhaps time) when the prescription was stopped.). This is the underlying object with id, value and extensions. The accessor "getDateEnded" gives direct access to the value
*/
@ -1999,7 +2078,8 @@ public class MedicationOrder extends DomainResource {
childrenList.add(new Property("encounter", "Reference(Encounter)", "A link to a resource that identifies the particular occurrence of contact between patient and health care provider.", 0, java.lang.Integer.MAX_VALUE, encounter));
childrenList.add(new Property("dateWritten", "dateTime", "The date (and perhaps time) when the prescription was written.", 0, java.lang.Integer.MAX_VALUE, dateWritten));
childrenList.add(new Property("prescriber", "Reference(Practitioner)", "The healthcare professional responsible for authorizing the prescription.", 0, java.lang.Integer.MAX_VALUE, prescriber));
childrenList.add(new Property("reason[x]", "CodeableConcept|Reference(Condition)", "Can be the reason or the indication for writing the prescription.", 0, java.lang.Integer.MAX_VALUE, reason));
childrenList.add(new Property("reasonCode", "CodeableConcept", "Can be the reason or the indication for writing the prescription.", 0, java.lang.Integer.MAX_VALUE, reasonCode));
childrenList.add(new Property("reasonReference", "Reference(Condition)", "Condition that supports why the prescription is being written.", 0, java.lang.Integer.MAX_VALUE, reasonReference));
childrenList.add(new Property("dateEnded", "dateTime", "The date (and perhaps time) when the prescription was stopped.", 0, java.lang.Integer.MAX_VALUE, dateEnded));
childrenList.add(new Property("reasonEnded", "CodeableConcept", "The reason why the prescription was stopped, if it was.", 0, java.lang.Integer.MAX_VALUE, reasonEnded));
childrenList.add(new Property("note", "Annotation", "Extra information about the prescription that could not be conveyed by the other attributes.", 0, java.lang.Integer.MAX_VALUE, note));
@ -2025,8 +2105,10 @@ public class MedicationOrder extends DomainResource {
this.dateWritten = castToDateTime(value); // DateTimeType
else if (name.equals("prescriber"))
this.prescriber = castToReference(value); // Reference
else if (name.equals("reason[x]"))
this.reason = (Type) value; // Type
else if (name.equals("reasonCode"))
this.getReasonCode().add(castToCodeableConcept(value));
else if (name.equals("reasonReference"))
this.getReasonReference().add(castToReference(value));
else if (name.equals("dateEnded"))
this.dateEnded = castToDateTime(value); // DateTimeType
else if (name.equals("reasonEnded"))
@ -2076,13 +2158,11 @@ public class MedicationOrder extends DomainResource {
this.prescriber = new Reference();
return this.prescriber;
}
else if (name.equals("reasonCodeableConcept")) {
this.reason = new CodeableConcept();
return this.reason;
else if (name.equals("reasonCode")) {
return addReasonCode();
}
else if (name.equals("reasonReference")) {
this.reason = new Reference();
return this.reason;
return addReasonReference();
}
else if (name.equals("dateEnded")) {
throw new FHIRException("Cannot call addChild on a primitive type MedicationOrder.dateEnded");
@ -2132,7 +2212,16 @@ public class MedicationOrder extends DomainResource {
dst.encounter = encounter == null ? null : encounter.copy();
dst.dateWritten = dateWritten == null ? null : dateWritten.copy();
dst.prescriber = prescriber == null ? null : prescriber.copy();
dst.reason = reason == null ? null : reason.copy();
if (reasonCode != null) {
dst.reasonCode = new ArrayList<CodeableConcept>();
for (CodeableConcept i : reasonCode)
dst.reasonCode.add(i.copy());
};
if (reasonReference != null) {
dst.reasonReference = new ArrayList<Reference>();
for (Reference i : reasonReference)
dst.reasonReference.add(i.copy());
};
dst.dateEnded = dateEnded == null ? null : dateEnded.copy();
dst.reasonEnded = reasonEnded == null ? null : reasonEnded.copy();
if (note != null) {
@ -2164,10 +2253,11 @@ public class MedicationOrder extends DomainResource {
MedicationOrder o = (MedicationOrder) other;
return compareDeep(identifier, o.identifier, true) && compareDeep(status, o.status, true) && compareDeep(medication, o.medication, true)
&& compareDeep(patient, o.patient, true) && compareDeep(encounter, o.encounter, true) && compareDeep(dateWritten, o.dateWritten, true)
&& compareDeep(prescriber, o.prescriber, true) && compareDeep(reason, o.reason, true) && compareDeep(dateEnded, o.dateEnded, true)
&& compareDeep(reasonEnded, o.reasonEnded, true) && compareDeep(note, o.note, true) && compareDeep(dosageInstruction, o.dosageInstruction, true)
&& compareDeep(dispenseRequest, o.dispenseRequest, true) && compareDeep(substitution, o.substitution, true)
&& compareDeep(priorPrescription, o.priorPrescription, true);
&& compareDeep(prescriber, o.prescriber, true) && compareDeep(reasonCode, o.reasonCode, true) && compareDeep(reasonReference, o.reasonReference, true)
&& compareDeep(dateEnded, o.dateEnded, true) && compareDeep(reasonEnded, o.reasonEnded, true) && compareDeep(note, o.note, true)
&& compareDeep(dosageInstruction, o.dosageInstruction, true) && compareDeep(dispenseRequest, o.dispenseRequest, true)
&& compareDeep(substitution, o.substitution, true) && compareDeep(priorPrescription, o.priorPrescription, true)
;
}
@Override
@ -2182,13 +2272,10 @@ public class MedicationOrder extends DomainResource {
}
public boolean isEmpty() {
return super.isEmpty() && (identifier == null || identifier.isEmpty()) && (status == null || status.isEmpty())
&& (medication == null || medication.isEmpty()) && (patient == null || patient.isEmpty())
&& (encounter == null || encounter.isEmpty()) && (dateWritten == null || dateWritten.isEmpty())
&& (prescriber == null || prescriber.isEmpty()) && (reason == null || reason.isEmpty()) && (dateEnded == null || dateEnded.isEmpty())
&& (reasonEnded == null || reasonEnded.isEmpty()) && (note == null || note.isEmpty()) && (dosageInstruction == null || dosageInstruction.isEmpty())
&& (dispenseRequest == null || dispenseRequest.isEmpty()) && (substitution == null || substitution.isEmpty())
&& (priorPrescription == null || priorPrescription.isEmpty());
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( identifier, status, medication
, patient, encounter, dateWritten, prescriber, reasonCode, reasonReference, dateEnded
, reasonEnded, note, dosageInstruction, dispenseRequest, substitution, priorPrescription
);
}
@Override
@ -2204,7 +2291,7 @@ public class MedicationOrder extends DomainResource {
* Path: <b>MedicationOrder.prescriber</b><br>
* </p>
*/
@SearchParamDefinition(name="prescriber", path="MedicationOrder.prescriber", description="Who ordered the medication(s)", type="reference" )
@SearchParamDefinition(name="prescriber", path="MedicationOrder.prescriber", description="Who ordered the medication(s)", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Practitioner") } )
public static final String SP_PRESCRIBER = "prescriber";
/**
* <b>Fluent Client</b> search parameter constant for <b>prescriber</b>
@ -2270,7 +2357,7 @@ public class MedicationOrder extends DomainResource {
* Path: <b>MedicationOrder.patient</b><br>
* </p>
*/
@SearchParamDefinition(name="patient", path="MedicationOrder.patient", description="The identity of a patient to list orders for", type="reference" )
@SearchParamDefinition(name="patient", path="MedicationOrder.patient", description="The identity of a patient to list orders for", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Patient") } )
public static final String SP_PATIENT = "patient";
/**
* <b>Fluent Client</b> search parameter constant for <b>patient</b>
@ -2342,7 +2429,7 @@ public class MedicationOrder extends DomainResource {
* Path: <b>MedicationOrder.encounter</b><br>
* </p>
*/
@SearchParamDefinition(name="encounter", path="MedicationOrder.encounter", description="Return prescriptions with this encounter identifier", type="reference" )
@SearchParamDefinition(name="encounter", path="MedicationOrder.encounter", description="Return prescriptions with this encounter identifier", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Encounter") } )
public static final String SP_ENCOUNTER = "encounter";
/**
* <b>Fluent Client</b> search parameter constant for <b>encounter</b>

View File

@ -29,7 +29,7 @@ package org.hl7.fhir.dstu3.model;
*/
// Generated on Sat, Jan 30, 2016 09:18-0500 for FHIR v1.3.0
// Generated on Fri, Apr 1, 2016 17:57-0400 for FHIR v1.4.0
import java.util.*;
@ -39,9 +39,8 @@ import ca.uhn.fhir.model.api.annotation.SearchParamDefinition;
import ca.uhn.fhir.model.api.annotation.Child;
import ca.uhn.fhir.model.api.annotation.Description;
import ca.uhn.fhir.model.api.annotation.Block;
import org.hl7.fhir.dstu3.exceptions.FHIRException;
import org.hl7.fhir.instance.model.api.*;
import org.hl7.fhir.dstu3.exceptions.FHIRException;
/**
* A record of a medication that is being consumed by a patient. A MedicationStatement may indicate that the patient may be taking the medication now, or has taken the medication in the past or will be taking the medication in the future. The source of this information can be the patient, significant other (such as a family member or spouse), or a clinician. A common scenario where this information is captured is during the history taking process during a patient visit or stay. The medication information may come from e.g. the patient's memory, from a prescription bottle, or from a list of medications the patient, clinician or other party maintains The primary difference between a medication statement and a medication administration is that the medication administration has complete administration information and is based on actual administration information from the person who administered the medication. A medication statement is often, if not always, less specific. There is no required date/time when the medication was administered, in fact we only know that a source has reported the patient is taking this medication, where details such as time, quantity, or rate or even medication product may be incomplete or missing or less precise. As stated earlier, the medication statement information may come from the patient's memory, from a prescription bottle or from a list of medications the patient, clinician or other party maintains. Medication administration is more formal and is not missing detailed information.
*/
@ -173,7 +172,7 @@ public class MedicationStatement extends DomainResource {
* Free text dosage information as reported about a patient's medication use. When coded dosage information is present, the free text may still be present for display to humans.
*/
@Child(name = "text", type = {StringType.class}, order=1, min=0, max=1, modifier=false, summary=true)
@Description(shortDefinition="Reported dosage information", formalDefinition="Free text dosage information as reported about a patient's medication use. When coded dosage information is present, the free text may still be present for display to humans." )
@Description(shortDefinition="Free text dosage instructions as reported by the information source", formalDefinition="Free text dosage information as reported about a patient's medication use. When coded dosage information is present, the free text may still be present for display to humans." )
protected StringType text;
/**
@ -709,10 +708,8 @@ Specifically if 'boolean' datatype is selected, then the following logic applies
}
public boolean isEmpty() {
return super.isEmpty() && (text == null || text.isEmpty()) && (timing == null || timing.isEmpty())
&& (asNeeded == null || asNeeded.isEmpty()) && (site == null || site.isEmpty()) && (route == null || route.isEmpty())
&& (method == null || method.isEmpty()) && (quantity == null || quantity.isEmpty()) && (rate == null || rate.isEmpty())
&& (maxDosePerPeriod == null || maxDosePerPeriod.isEmpty());
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( text, timing, asNeeded, site
, route, method, quantity, rate, maxDosePerPeriod);
}
public String fhirType() {
@ -763,64 +760,64 @@ Specifically if 'boolean' datatype is selected, then the following logic applies
protected Type effective;
/**
* The person who provided the information about the taking of this medication.
* The person who provided the information about the taking of this medication. Note: A MedicationStatement may be derived from supportingInformation e.g claims or medicationOrder.
*/
@Child(name = "informationSource", type = {Patient.class, Practitioner.class, RelatedPerson.class}, order=5, min=0, max=1, modifier=false, summary=true)
@Description(shortDefinition="", formalDefinition="The person who provided the information about the taking of this medication." )
@Description(shortDefinition="Person who provided the information about the taking of this medication", formalDefinition="The person who provided the information about the taking of this medication. Note: A MedicationStatement may be derived from supportingInformation e.g claims or medicationOrder." )
protected Reference informationSource;
/**
* The actual object that is the target of the reference (The person who provided the information about the taking of this medication.)
* The actual object that is the target of the reference (The person who provided the information about the taking of this medication. Note: A MedicationStatement may be derived from supportingInformation e.g claims or medicationOrder.)
*/
protected Resource informationSourceTarget;
/**
* Allows linking the MedicationStatement to the underlying MedicationOrder, or to other information that supports or is used to derive the MedicationStatement.
*/
@Child(name = "supportingInformation", type = {}, order=6, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
@Description(shortDefinition="Additional supporting information", formalDefinition="Allows linking the MedicationStatement to the underlying MedicationOrder, or to other information that supports or is used to derive the MedicationStatement." )
protected List<Reference> supportingInformation;
/**
* The actual objects that are the target of the reference (Allows linking the MedicationStatement to the underlying MedicationOrder, or to other information that supports or is used to derive the MedicationStatement.)
*/
protected List<Resource> supportingInformationTarget;
/**
* The date when the medication statement was asserted by the information source.
*/
@Child(name = "dateAsserted", type = {DateTimeType.class}, order=6, min=0, max=1, modifier=false, summary=true)
@Child(name = "dateAsserted", type = {DateTimeType.class}, order=7, min=0, max=1, modifier=false, summary=true)
@Description(shortDefinition="When the statement was asserted?", formalDefinition="The date when the medication statement was asserted by the information source." )
protected DateTimeType dateAsserted;
/**
* Set this to true if the record is saying that the medication was NOT taken.
*/
@Child(name = "wasNotTaken", type = {BooleanType.class}, order=7, min=0, max=1, modifier=true, summary=true)
@Child(name = "wasNotTaken", type = {BooleanType.class}, order=8, min=0, max=1, modifier=true, summary=true)
@Description(shortDefinition="True if medication is/was not being taken", formalDefinition="Set this to true if the record is saying that the medication was NOT taken." )
protected BooleanType wasNotTaken;
/**
* A code indicating why the medication was not taken.
*/
@Child(name = "reasonNotTaken", type = {CodeableConcept.class}, order=8, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
@Child(name = "reasonNotTaken", type = {CodeableConcept.class}, order=9, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
@Description(shortDefinition="True if asserting medication was not given", formalDefinition="A code indicating why the medication was not taken." )
protected List<CodeableConcept> reasonNotTaken;
/**
* A reason for why the medication is being/was taken.
*/
@Child(name = "reasonForUse", type = {CodeableConcept.class, Condition.class}, order=9, min=0, max=1, modifier=false, summary=true)
@Child(name = "reasonForUse", type = {CodeableConcept.class, Condition.class}, order=10, min=0, max=1, modifier=false, summary=true)
@Description(shortDefinition="", formalDefinition="A reason for why the medication is being/was taken." )
protected Type reasonForUse;
/**
* Provides extra information about the medication statement that is not conveyed by the other attributes.
*/
@Child(name = "note", type = {Annotation.class}, order=10, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
@Child(name = "note", type = {Annotation.class}, order=11, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
@Description(shortDefinition="Further information about the statement", formalDefinition="Provides extra information about the medication statement that is not conveyed by the other attributes." )
protected List<Annotation> note;
/**
* Allows linking the MedicationStatement to the underlying MedicationOrder, or to other information that supports the MedicationStatement.
*/
@Child(name = "supportingInformation", type = {}, order=11, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
@Description(shortDefinition="Additional supporting information", formalDefinition="Allows linking the MedicationStatement to the underlying MedicationOrder, or to other information that supports the MedicationStatement." )
protected List<Reference> supportingInformation;
/**
* The actual objects that are the target of the reference (Allows linking the MedicationStatement to the underlying MedicationOrder, or to other information that supports the MedicationStatement.)
*/
protected List<Resource> supportingInformationTarget;
/**
* Indicates how the medication is/was used by the patient.
*/
@ -828,7 +825,7 @@ Specifically if 'boolean' datatype is selected, then the following logic applies
@Description(shortDefinition="Details of how medication was taken", formalDefinition="Indicates how the medication is/was used by the patient." )
protected List<MedicationStatementDosageComponent> dosage;
private static final long serialVersionUID = -1434390772L;
private static final long serialVersionUID = -425948910L;
/**
* Constructor
@ -1067,7 +1064,7 @@ Specifically if 'boolean' datatype is selected, then the following logic applies
}
/**
* @return {@link #informationSource} (The person who provided the information about the taking of this medication.)
* @return {@link #informationSource} (The person who provided the information about the taking of this medication. Note: A MedicationStatement may be derived from supportingInformation e.g claims or medicationOrder.)
*/
public Reference getInformationSource() {
if (this.informationSource == null)
@ -1083,7 +1080,7 @@ Specifically if 'boolean' datatype is selected, then the following logic applies
}
/**
* @param value {@link #informationSource} (The person who provided the information about the taking of this medication.)
* @param value {@link #informationSource} (The person who provided the information about the taking of this medication. Note: A MedicationStatement may be derived from supportingInformation e.g claims or medicationOrder.)
*/
public MedicationStatement setInformationSource(Reference value) {
this.informationSource = value;
@ -1091,20 +1088,69 @@ Specifically if 'boolean' datatype is selected, then the following logic applies
}
/**
* @return {@link #informationSource} The actual object that is the target of the reference. The reference library doesn't populate this, but you can use it to hold the resource if you resolve it. (The person who provided the information about the taking of this medication.)
* @return {@link #informationSource} The actual object that is the target of the reference. The reference library doesn't populate this, but you can use it to hold the resource if you resolve it. (The person who provided the information about the taking of this medication. Note: A MedicationStatement may be derived from supportingInformation e.g claims or medicationOrder.)
*/
public Resource getInformationSourceTarget() {
return this.informationSourceTarget;
}
/**
* @param value {@link #informationSource} The actual object that is the target of the reference. The reference library doesn't use these, but you can use it to hold the resource if you resolve it. (The person who provided the information about the taking of this medication.)
* @param value {@link #informationSource} The actual object that is the target of the reference. The reference library doesn't use these, but you can use it to hold the resource if you resolve it. (The person who provided the information about the taking of this medication. Note: A MedicationStatement may be derived from supportingInformation e.g claims or medicationOrder.)
*/
public MedicationStatement setInformationSourceTarget(Resource value) {
this.informationSourceTarget = value;
return this;
}
/**
* @return {@link #supportingInformation} (Allows linking the MedicationStatement to the underlying MedicationOrder, or to other information that supports or is used to derive the MedicationStatement.)
*/
public List<Reference> getSupportingInformation() {
if (this.supportingInformation == null)
this.supportingInformation = new ArrayList<Reference>();
return this.supportingInformation;
}
public boolean hasSupportingInformation() {
if (this.supportingInformation == null)
return false;
for (Reference item : this.supportingInformation)
if (!item.isEmpty())
return true;
return false;
}
/**
* @return {@link #supportingInformation} (Allows linking the MedicationStatement to the underlying MedicationOrder, or to other information that supports or is used to derive the MedicationStatement.)
*/
// syntactic sugar
public Reference addSupportingInformation() { //3
Reference t = new Reference();
if (this.supportingInformation == null)
this.supportingInformation = new ArrayList<Reference>();
this.supportingInformation.add(t);
return t;
}
// syntactic sugar
public MedicationStatement addSupportingInformation(Reference t) { //3
if (t == null)
return this;
if (this.supportingInformation == null)
this.supportingInformation = new ArrayList<Reference>();
this.supportingInformation.add(t);
return this;
}
/**
* @return {@link #supportingInformation} (The actual objects that are the target of the reference. The reference library doesn't populate this, but you can use this to hold the resources if you resolvethemt. Allows linking the MedicationStatement to the underlying MedicationOrder, or to other information that supports or is used to derive the MedicationStatement.)
*/
public List<Resource> getSupportingInformationTarget() {
if (this.supportingInformationTarget == null)
this.supportingInformationTarget = new ArrayList<Resource>();
return this.supportingInformationTarget;
}
/**
* @return {@link #dateAsserted} (The date when the medication statement was asserted by the information source.). This is the underlying object with id, value and extensions. The accessor "getDateAsserted" gives direct access to the value
*/
@ -1324,55 +1370,6 @@ Specifically if 'boolean' datatype is selected, then the following logic applies
return this;
}
/**
* @return {@link #supportingInformation} (Allows linking the MedicationStatement to the underlying MedicationOrder, or to other information that supports the MedicationStatement.)
*/
public List<Reference> getSupportingInformation() {
if (this.supportingInformation == null)
this.supportingInformation = new ArrayList<Reference>();
return this.supportingInformation;
}
public boolean hasSupportingInformation() {
if (this.supportingInformation == null)
return false;
for (Reference item : this.supportingInformation)
if (!item.isEmpty())
return true;
return false;
}
/**
* @return {@link #supportingInformation} (Allows linking the MedicationStatement to the underlying MedicationOrder, or to other information that supports the MedicationStatement.)
*/
// syntactic sugar
public Reference addSupportingInformation() { //3
Reference t = new Reference();
if (this.supportingInformation == null)
this.supportingInformation = new ArrayList<Reference>();
this.supportingInformation.add(t);
return t;
}
// syntactic sugar
public MedicationStatement addSupportingInformation(Reference t) { //3
if (t == null)
return this;
if (this.supportingInformation == null)
this.supportingInformation = new ArrayList<Reference>();
this.supportingInformation.add(t);
return this;
}
/**
* @return {@link #supportingInformation} (The actual objects that are the target of the reference. The reference library doesn't populate this, but you can use this to hold the resources if you resolvethemt. Allows linking the MedicationStatement to the underlying MedicationOrder, or to other information that supports the MedicationStatement.)
*/
public List<Resource> getSupportingInformationTarget() {
if (this.supportingInformationTarget == null)
this.supportingInformationTarget = new ArrayList<Resource>();
return this.supportingInformationTarget;
}
/**
* @return {@link #dosage} (Indicates how the medication is/was used by the patient.)
*/
@ -1420,13 +1417,13 @@ Specifically if 'boolean' datatype is selected, then the following logic applies
childrenList.add(new Property("medication[x]", "CodeableConcept|Reference(Medication)", "Identifies the medication being administered. This is either a link to a resource representing the details of the medication or a simple attribute carrying a code that identifies the medication from a known list of medications.", 0, java.lang.Integer.MAX_VALUE, medication));
childrenList.add(new Property("patient", "Reference(Patient)", "The person or animal who is/was taking the medication.", 0, java.lang.Integer.MAX_VALUE, patient));
childrenList.add(new Property("effective[x]", "dateTime|Period", "The interval of time during which it is being asserted that the patient was taking the medication (or was not taking, when the wasNotGiven element is true).", 0, java.lang.Integer.MAX_VALUE, effective));
childrenList.add(new Property("informationSource", "Reference(Patient|Practitioner|RelatedPerson)", "The person who provided the information about the taking of this medication.", 0, java.lang.Integer.MAX_VALUE, informationSource));
childrenList.add(new Property("informationSource", "Reference(Patient|Practitioner|RelatedPerson)", "The person who provided the information about the taking of this medication. Note: A MedicationStatement may be derived from supportingInformation e.g claims or medicationOrder.", 0, java.lang.Integer.MAX_VALUE, informationSource));
childrenList.add(new Property("supportingInformation", "Reference(Any)", "Allows linking the MedicationStatement to the underlying MedicationOrder, or to other information that supports or is used to derive the MedicationStatement.", 0, java.lang.Integer.MAX_VALUE, supportingInformation));
childrenList.add(new Property("dateAsserted", "dateTime", "The date when the medication statement was asserted by the information source.", 0, java.lang.Integer.MAX_VALUE, dateAsserted));
childrenList.add(new Property("wasNotTaken", "boolean", "Set this to true if the record is saying that the medication was NOT taken.", 0, java.lang.Integer.MAX_VALUE, wasNotTaken));
childrenList.add(new Property("reasonNotTaken", "CodeableConcept", "A code indicating why the medication was not taken.", 0, java.lang.Integer.MAX_VALUE, reasonNotTaken));
childrenList.add(new Property("reasonForUse[x]", "CodeableConcept|Reference(Condition)", "A reason for why the medication is being/was taken.", 0, java.lang.Integer.MAX_VALUE, reasonForUse));
childrenList.add(new Property("note", "Annotation", "Provides extra information about the medication statement that is not conveyed by the other attributes.", 0, java.lang.Integer.MAX_VALUE, note));
childrenList.add(new Property("supportingInformation", "Reference(Any)", "Allows linking the MedicationStatement to the underlying MedicationOrder, or to other information that supports the MedicationStatement.", 0, java.lang.Integer.MAX_VALUE, supportingInformation));
childrenList.add(new Property("dosage", "", "Indicates how the medication is/was used by the patient.", 0, java.lang.Integer.MAX_VALUE, dosage));
}
@ -1444,6 +1441,8 @@ Specifically if 'boolean' datatype is selected, then the following logic applies
this.effective = (Type) value; // Type
else if (name.equals("informationSource"))
this.informationSource = castToReference(value); // Reference
else if (name.equals("supportingInformation"))
this.getSupportingInformation().add(castToReference(value));
else if (name.equals("dateAsserted"))
this.dateAsserted = castToDateTime(value); // DateTimeType
else if (name.equals("wasNotTaken"))
@ -1454,8 +1453,6 @@ Specifically if 'boolean' datatype is selected, then the following logic applies
this.reasonForUse = (Type) value; // Type
else if (name.equals("note"))
this.getNote().add(castToAnnotation(value));
else if (name.equals("supportingInformation"))
this.getSupportingInformation().add(castToReference(value));
else if (name.equals("dosage"))
this.getDosage().add((MedicationStatementDosageComponent) value);
else
@ -1494,6 +1491,9 @@ Specifically if 'boolean' datatype is selected, then the following logic applies
this.informationSource = new Reference();
return this.informationSource;
}
else if (name.equals("supportingInformation")) {
return addSupportingInformation();
}
else if (name.equals("dateAsserted")) {
throw new FHIRException("Cannot call addChild on a primitive type MedicationStatement.dateAsserted");
}
@ -1514,9 +1514,6 @@ Specifically if 'boolean' datatype is selected, then the following logic applies
else if (name.equals("note")) {
return addNote();
}
else if (name.equals("supportingInformation")) {
return addSupportingInformation();
}
else if (name.equals("dosage")) {
return addDosage();
}
@ -1542,6 +1539,11 @@ Specifically if 'boolean' datatype is selected, then the following logic applies
dst.patient = patient == null ? null : patient.copy();
dst.effective = effective == null ? null : effective.copy();
dst.informationSource = informationSource == null ? null : informationSource.copy();
if (supportingInformation != null) {
dst.supportingInformation = new ArrayList<Reference>();
for (Reference i : supportingInformation)
dst.supportingInformation.add(i.copy());
};
dst.dateAsserted = dateAsserted == null ? null : dateAsserted.copy();
dst.wasNotTaken = wasNotTaken == null ? null : wasNotTaken.copy();
if (reasonNotTaken != null) {
@ -1555,11 +1557,6 @@ Specifically if 'boolean' datatype is selected, then the following logic applies
for (Annotation i : note)
dst.note.add(i.copy());
};
if (supportingInformation != null) {
dst.supportingInformation = new ArrayList<Reference>();
for (Reference i : supportingInformation)
dst.supportingInformation.add(i.copy());
};
if (dosage != null) {
dst.dosage = new ArrayList<MedicationStatementDosageComponent>();
for (MedicationStatementDosageComponent i : dosage)
@ -1581,10 +1578,10 @@ Specifically if 'boolean' datatype is selected, then the following logic applies
MedicationStatement o = (MedicationStatement) other;
return compareDeep(identifier, o.identifier, true) && compareDeep(status, o.status, true) && compareDeep(medication, o.medication, true)
&& compareDeep(patient, o.patient, true) && compareDeep(effective, o.effective, true) && compareDeep(informationSource, o.informationSource, true)
&& compareDeep(dateAsserted, o.dateAsserted, true) && compareDeep(wasNotTaken, o.wasNotTaken, true)
&& compareDeep(reasonNotTaken, o.reasonNotTaken, true) && compareDeep(reasonForUse, o.reasonForUse, true)
&& compareDeep(note, o.note, true) && compareDeep(supportingInformation, o.supportingInformation, true)
&& compareDeep(dosage, o.dosage, true);
&& compareDeep(supportingInformation, o.supportingInformation, true) && compareDeep(dateAsserted, o.dateAsserted, true)
&& compareDeep(wasNotTaken, o.wasNotTaken, true) && compareDeep(reasonNotTaken, o.reasonNotTaken, true)
&& compareDeep(reasonForUse, o.reasonForUse, true) && compareDeep(note, o.note, true) && compareDeep(dosage, o.dosage, true)
;
}
@Override
@ -1599,13 +1596,9 @@ Specifically if 'boolean' datatype is selected, then the following logic applies
}
public boolean isEmpty() {
return super.isEmpty() && (identifier == null || identifier.isEmpty()) && (status == null || status.isEmpty())
&& (medication == null || medication.isEmpty()) && (patient == null || patient.isEmpty())
&& (effective == null || effective.isEmpty()) && (informationSource == null || informationSource.isEmpty())
&& (dateAsserted == null || dateAsserted.isEmpty()) && (wasNotTaken == null || wasNotTaken.isEmpty())
&& (reasonNotTaken == null || reasonNotTaken.isEmpty()) && (reasonForUse == null || reasonForUse.isEmpty())
&& (note == null || note.isEmpty()) && (supportingInformation == null || supportingInformation.isEmpty())
&& (dosage == null || dosage.isEmpty());
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( identifier, status, medication
, patient, effective, informationSource, supportingInformation, dateAsserted, wasNotTaken
, reasonNotTaken, reasonForUse, note, dosage);
}
@Override
@ -1681,7 +1674,7 @@ Specifically if 'boolean' datatype is selected, then the following logic applies
* Path: <b>MedicationStatement.patient</b><br>
* </p>
*/
@SearchParamDefinition(name="patient", path="MedicationStatement.patient", description="The identity of a patient to list statements for", type="reference" )
@SearchParamDefinition(name="patient", path="MedicationStatement.patient", description="The identity of a patient to list statements for", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Patient") } )
public static final String SP_PATIENT = "patient";
/**
* <b>Fluent Client</b> search parameter constant for <b>patient</b>
@ -1733,7 +1726,7 @@ Specifically if 'boolean' datatype is selected, then the following logic applies
* Path: <b>MedicationStatement.informationSource</b><br>
* </p>
*/
@SearchParamDefinition(name="source", path="MedicationStatement.informationSource", description="Who the information in the statement came from", type="reference" )
@SearchParamDefinition(name="source", path="MedicationStatement.informationSource", description="Who the information in the statement came from", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Patient"), @ca.uhn.fhir.model.api.annotation.Compartment(name="Practitioner"), @ca.uhn.fhir.model.api.annotation.Compartment(name="RelatedPerson") } )
public static final String SP_SOURCE = "source";
/**
* <b>Fluent Client</b> search parameter constant for <b>source</b>

View File

@ -29,21 +29,19 @@ package org.hl7.fhir.dstu3.model;
*/
// Generated on Sat, Jan 30, 2016 09:18-0500 for FHIR v1.3.0
// Generated on Fri, Apr 1, 2016 17:57-0400 for FHIR v1.4.0
import java.util.*;
import org.hl7.fhir.utilities.Utilities;
import org.hl7.fhir.dstu3.model.Enumerations.*;
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.Description;
import ca.uhn.fhir.model.api.annotation.Block;
import org.hl7.fhir.dstu3.exceptions.FHIRException;
import org.hl7.fhir.dstu3.model.Enumerations.*;
import org.hl7.fhir.instance.model.api.*;
import org.hl7.fhir.dstu3.exceptions.FHIRException;
/**
* The header for a message exchange that is either requesting or responding to an action. The reference(s) that are the subject of the action as well as other information related to the action are typically transmitted in a bundle in which the MessageHeader resource instance is the first resource in the bundle.
*/
@ -399,8 +397,7 @@ public class MessageHeader extends DomainResource {
}
public boolean isEmpty() {
return super.isEmpty() && (identifier == null || identifier.isEmpty()) && (code == null || code.isEmpty())
&& (details == null || details.isEmpty());
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( identifier, code, details);
}
public String fhirType() {
@ -761,9 +758,8 @@ public class MessageHeader extends DomainResource {
}
public boolean isEmpty() {
return super.isEmpty() && (name == null || name.isEmpty()) && (software == null || software.isEmpty())
&& (version == null || version.isEmpty()) && (contact == null || contact.isEmpty()) && (endpoint == null || endpoint.isEmpty())
;
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( name, software, version, contact
, endpoint);
}
public String fhirType() {
@ -1022,8 +1018,7 @@ public class MessageHeader extends DomainResource {
}
public boolean isEmpty() {
return super.isEmpty() && (name == null || name.isEmpty()) && (target == null || target.isEmpty())
&& (endpoint == null || endpoint.isEmpty());
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( name, target, endpoint);
}
public String fhirType() {
@ -1698,11 +1693,8 @@ public class MessageHeader extends DomainResource {
}
public boolean isEmpty() {
return super.isEmpty() && (timestamp == null || timestamp.isEmpty()) && (event == null || event.isEmpty())
&& (response == null || response.isEmpty()) && (source == null || source.isEmpty()) && (destination == null || destination.isEmpty())
&& (enterer == null || enterer.isEmpty()) && (author == null || author.isEmpty()) && (receiver == null || receiver.isEmpty())
&& (responsible == null || responsible.isEmpty()) && (reason == null || reason.isEmpty())
&& (data == null || data.isEmpty());
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( timestamp, event, response, source
, destination, enterer, author, receiver, responsible, reason, data);
}
@Override
@ -1764,7 +1756,7 @@ public class MessageHeader extends DomainResource {
* Path: <b>MessageHeader.receiver</b><br>
* </p>
*/
@SearchParamDefinition(name="receiver", path="MessageHeader.receiver", description="Intended \"real-world\" recipient for the data", type="reference" )
@SearchParamDefinition(name="receiver", path="MessageHeader.receiver", description="Intended \"real-world\" recipient for the data", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Practitioner") } )
public static final String SP_RECEIVER = "receiver";
/**
* <b>Fluent Client</b> search parameter constant for <b>receiver</b>
@ -1790,7 +1782,7 @@ public class MessageHeader extends DomainResource {
* Path: <b>MessageHeader.author</b><br>
* </p>
*/
@SearchParamDefinition(name="author", path="MessageHeader.author", description="The source of the decision", type="reference" )
@SearchParamDefinition(name="author", path="MessageHeader.author", description="The source of the decision", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Practitioner") } )
public static final String SP_AUTHOR = "author";
/**
* <b>Fluent Client</b> search parameter constant for <b>author</b>
@ -1856,7 +1848,7 @@ public class MessageHeader extends DomainResource {
* Path: <b>MessageHeader.destination.target</b><br>
* </p>
*/
@SearchParamDefinition(name="target", path="MessageHeader.destination.target", description="Particular delivery destination within the destination", type="reference" )
@SearchParamDefinition(name="target", path="MessageHeader.destination.target", description="Particular delivery destination within the destination", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Device") } )
public static final String SP_TARGET = "target";
/**
* <b>Fluent Client</b> search parameter constant for <b>target</b>
@ -1922,7 +1914,7 @@ public class MessageHeader extends DomainResource {
* Path: <b>MessageHeader.responsible</b><br>
* </p>
*/
@SearchParamDefinition(name="responsible", path="MessageHeader.responsible", description="Final responsibility for event", type="reference" )
@SearchParamDefinition(name="responsible", path="MessageHeader.responsible", description="Final responsibility for event", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Practitioner") } )
public static final String SP_RESPONSIBLE = "responsible";
/**
* <b>Fluent Client</b> search parameter constant for <b>responsible</b>
@ -1968,7 +1960,7 @@ public class MessageHeader extends DomainResource {
* Path: <b>MessageHeader.enterer</b><br>
* </p>
*/
@SearchParamDefinition(name="enterer", path="MessageHeader.enterer", description="The source of the data entry", type="reference" )
@SearchParamDefinition(name="enterer", path="MessageHeader.enterer", description="The source of the data entry", type="reference", providesMembershipIn={ @ca.uhn.fhir.model.api.annotation.Compartment(name="Practitioner") } )
public static final String SP_ENTERER = "enterer";
/**
* <b>Fluent Client</b> search parameter constant for <b>enterer</b>

View File

@ -29,20 +29,18 @@ package org.hl7.fhir.dstu3.model;
*/
// Generated on Sat, Jan 30, 2016 09:18-0500 for FHIR v1.3.0
// Generated on Fri, Apr 1, 2016 17:57-0400 for FHIR v1.4.0
import java.util.*;
import org.hl7.fhir.utilities.Utilities;
import org.hl7.fhir.dstu3.model.Enumerations.*;
import ca.uhn.fhir.model.api.annotation.Child;
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.dstu3.exceptions.FHIRException;
import org.hl7.fhir.dstu3.model.Enumerations.*;
import org.hl7.fhir.instance.model.api.*;
import org.hl7.fhir.dstu3.exceptions.FHIRException;
/**
* The metadata about a resource. This is content in the resource that is maintained by the infrastructure. Changes to the content may not always be associated with version changes to the resource.
*/
@ -476,9 +474,8 @@ public class Meta extends Type implements IBaseMetaType {
}
public boolean isEmpty() {
return super.isEmpty() && (versionId == null || versionId.isEmpty()) && (lastUpdated == null || lastUpdated.isEmpty())
&& (profile == null || profile.isEmpty()) && (security == null || security.isEmpty()) && (tag == null || tag.isEmpty())
;
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( versionId, lastUpdated, profile
, security, tag);
}

View File

@ -29,19 +29,19 @@ package org.hl7.fhir.dstu3.model;
*/
// Generated on Sat, Jan 30, 2016 09:18-0500 for FHIR v1.3.0
// Generated on Fri, Apr 1, 2016 17:57-0400 for FHIR v1.4.0
import java.util.*;
import org.hl7.fhir.utilities.Utilities;
import org.hl7.fhir.dstu3.model.Enumerations.*;
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.Description;
import ca.uhn.fhir.model.api.annotation.Block;
import org.hl7.fhir.dstu3.exceptions.FHIRException;
import org.hl7.fhir.instance.model.api.*;
import org.hl7.fhir.dstu3.exceptions.FHIRException;
/**
* The ModuleDefinition resource defines the data requirements for a quality artifact.
*/
@ -297,8 +297,7 @@ public class ModuleDefinition extends DomainResource {
}
public boolean isEmpty() {
return super.isEmpty() && (name == null || name.isEmpty()) && (identifier == null || identifier.isEmpty())
&& (version == null || version.isEmpty());
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( name, identifier, version);
}
public String fhirType() {
@ -617,8 +616,8 @@ public class ModuleDefinition extends DomainResource {
}
public boolean isEmpty() {
return super.isEmpty() && (name == null || name.isEmpty()) && (identifier == null || identifier.isEmpty())
&& (version == null || version.isEmpty()) && (document == null || document.isEmpty());
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( name, identifier, version, document
);
}
public String fhirType() {
@ -874,8 +873,7 @@ public class ModuleDefinition extends DomainResource {
}
public boolean isEmpty() {
return super.isEmpty() && (name == null || name.isEmpty()) && (identifier == null || identifier.isEmpty())
&& (version == null || version.isEmpty());
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( name, identifier, version);
}
public String fhirType() {
@ -1203,9 +1201,8 @@ public class ModuleDefinition extends DomainResource {
}
public boolean isEmpty() {
return super.isEmpty() && (name == null || name.isEmpty()) && (identifier == null || identifier.isEmpty())
&& (version == null || version.isEmpty()) && (codeSystem == null || codeSystem.isEmpty())
;
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( name, identifier, version, codeSystem
);
}
public String fhirType() {
@ -1585,9 +1582,8 @@ public class ModuleDefinition extends DomainResource {
}
public boolean isEmpty() {
return super.isEmpty() && (name == null || name.isEmpty()) && (use == null || use.isEmpty())
&& (documentation == null || documentation.isEmpty()) && (type == null || type.isEmpty())
&& (profile == null || profile.isEmpty());
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( name, use, documentation, type
, profile);
}
public String fhirType() {
@ -1971,9 +1967,8 @@ public class ModuleDefinition extends DomainResource {
}
public boolean isEmpty() {
return super.isEmpty() && (type == null || type.isEmpty()) && (profile == null || profile.isEmpty())
&& (mustSupport == null || mustSupport.isEmpty()) && (codeFilter == null || codeFilter.isEmpty())
&& (dateFilter == null || dateFilter.isEmpty());
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( type, profile, mustSupport, codeFilter
, dateFilter);
}
public String fhirType() {
@ -2227,8 +2222,8 @@ public class ModuleDefinition extends DomainResource {
}
public boolean isEmpty() {
return super.isEmpty() && (path == null || path.isEmpty()) && (valueSet == null || valueSet.isEmpty())
&& (codeableConcept == null || codeableConcept.isEmpty());
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( path, valueSet, codeableConcept
);
}
public String fhirType() {
@ -2423,8 +2418,7 @@ public class ModuleDefinition extends DomainResource {
}
public boolean isEmpty() {
return super.isEmpty() && (path == null || path.isEmpty()) && (value == null || value.isEmpty())
;
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( path, value);
}
public String fhirType() {
@ -2966,10 +2960,8 @@ public class ModuleDefinition extends DomainResource {
}
public boolean isEmpty() {
return super.isEmpty() && (identifier == null || identifier.isEmpty()) && (version == null || version.isEmpty())
&& (model == null || model.isEmpty()) && (library == null || library.isEmpty()) && (codeSystem == null || codeSystem.isEmpty())
&& (valueSet == null || valueSet.isEmpty()) && (parameter == null || parameter.isEmpty())
&& (data == null || data.isEmpty());
return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty( identifier, version, model, library
, codeSystem, valueSet, parameter, data);
}
@Override

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